advance.py
python
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
| 1 | """``current_step`` advance rules (§K9.4).""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | |
| 6 | def compute_advance( |
| 7 | template_steps: list[str], |
| 8 | verified_step: str, |
| 9 | steps_verified: dict[str, bool], |
| 10 | current_step: str, |
| 11 | ) -> str: |
| 12 | """Apply frozen advance rule using post-verify verified flags.""" |
| 13 | if verified_step not in template_steps: |
| 14 | return current_step |
| 15 | index = template_steps.index(verified_step) |
| 16 | for prior_id in template_steps[:index]: |
| 17 | if not steps_verified.get(prior_id, False): |
| 18 | return current_step |
| 19 | if index + 1 < len(template_steps): |
| 20 | return template_steps[index + 1] |
| 21 | return verified_step |
File History
2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12
Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71…
Human
minor
⚠
8 days ago