Skip to content

fix: count until-revoked admissions as active - #37

Merged
abrichr merged 2 commits into
mainfrom
agent/until-revoked-active-20260903
Sep 3, 2026
Merged

fix: count until-revoked admissions as active#37
abrichr merged 2 commits into
mainfrom
agent/until-revoked-active-20260903

Conversation

@abrichr

@abrichr abrichr commented Sep 3, 2026

Copy link
Copy Markdown
Member

#35 counted every expires_at: null record as inactive, so the validator reported 0/7 even though the signed ledgers were still there. The issuer interface already says admission_validity: until_revoked. Policy revision 6 disagreed with that.

Revision 7 puts them back in agreement. expires_at JSON null is the live window. A timestamped expiry on a live v2/v4 object is refused. The retained v1 ledger still uses its 30-day bound.

python3 scripts/validate_production_lifecycle.py now prints 7 active target admissions and 7 active workflow admissions. Evidence class is still remote-safe-synthetic. Workflow bundle_version is still 0.0.0-synthetic. This does not invent MockMed production_acceptance, write a ledger row, start a signer-registry clock, or turn the refuse-closed issuer on.

What a reviewer should check:

  • Null expiry stays active; a timestamped live admission is refused
  • is_product_production is true only with all seven targets
  • No new evidence objects

Follow-up, not this PR: ops and web still pin 078db7a / fe51c2c and their renderers treat null as inactive. Don't merge openadapt-web#492; it encodes the revision-6 rule.

Opened by an agent session, not the founder.

Policy revision 7 restores admission_validity=until_revoked. expires_at
JSON null is the live window. A timestamped expiry is refused. The
signed remote-safe-synthetic ledgers stay active until revoked.

Does not write a ledger row, start a signer-registry clock, or activate
the refuse-closed issuer.
sign_receipt verifies against wall-clock. The 7-day fixture expired at
2026-09-03T12:00:00Z and failed CI. Null expiry stays active. This does
not start a signer-registry clock.
@abrichr
abrichr merged commit 9b61391 into main Sep 3, 2026
3 checks passed
@abrichr
abrichr deleted the agent/until-revoked-active-20260903 branch September 3, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant