feat: render Production lifecycle from the signed registry - #131
Draft
abrichr wants to merge 1 commit into
Draft
Conversation
- Pin the canonical organization-profile commit and the SHA-256 of every lifecycle input (policy, admissions, registry, schemas, validator) in production-lifecycle-source.json. - Add a deterministic renderer that fetches those exact bytes, refuses any digest or URL drift, runs the pinned canonical validator, and only then writes the remote-safe projection docs/production-lifecycle.json. - The projection derives Production from the latest signed admission at read time. It stores no static Production flag, no fallback to an older release, and currently no admissions: every target renders with an empty admission history, so no visible lifecycle label or claim changes. - Document the admission contract in docs/reference/production-lifecycle.md and register the page in the reference nav. - Gate drift in CI: a new workflow re-renders with --check on pull requests, main pushes, manual dispatch, and a daily schedule, and files a durable issue on scheduled failure; the committed projection is also checked network-free by the test suite that ci.yml and the deploy pipeline already run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
production-lifecycle-source.jsonpins the canonical organization-profile commit (OpenAdaptAI/.github@6d882bd) and the SHA-256 of every lifecycle input: policy, admissions ledger, repository registry, the three evidence schemas, the policy schema, and the canonical validator itself.scripts/render_production_lifecycle.pyfetches those exact commit-bound bytes, refuses any digest, URL, path, or inventory drift, runs the pinned canonical validator on the fetched inputs, and only then writes the remote-safe projectiondocs/production-lifecycle.json.docs/schemas/production-lifecycle-public.schema.jsonfixes the projection shape.docs/reference/production-lifecycle.mddocuments the admission contract (qualified workflow, release admission, current-state derivation) and is registered in the reference nav..github/workflows/production-lifecycle-policy.ymlre-renders with--checkon pull requests, main pushes, manual dispatch, and a daily schedule, and files a durable issue on scheduled failure. The committed projection is also checked network-free by the test suite thatci.ymland thesync.ymldeploy pipeline already run, so a stale, missing, malformed, or admission-bearing projection fails PR and deploy checks — the same fail-closed pattern the Flow version registry uses (feat: harden production readiness operations #128).Current state
All seven targets render with
latest_admission: nulland an empty admission history. No visible lifecycle label or site claim changes. The page states explicitly that runnable does not mean admitted.Coordination
The source pin references org-profile draft PR OpenAdaptAI/.github#11 at its current head. When that mechanism merges, refresh
source_commitand the input digests, re-run the renderer, and commit the regenerated pin and projection in one PR.Validation
uv run pytest tests/ -q— 188 passed (includes 4 projection tests)python3 scripts/render_production_lifecycle.pythen--check— rendered and validated against the live pinned commit; canonical validator reports 0 active admissionsuv run python scripts/validate_docs.pyuv run python scripts/check_published_version_claims.py --offlineuv run mkdocs build --strictactionlint .github/workflows/production-lifecycle-policy.yml🤖 Generated with Claude Code