feat(runtime): govern generated proof artifact lifecycle - #1980
Draft
bartytime4life wants to merge 2 commits into
Draft
feat(runtime): govern generated proof artifact lifecycle#1980bartytime4life wants to merge 2 commits into
bartytime4life wants to merge 2 commits into
Conversation
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.
Goal
Implement the next dependency-closed gap from
New Ideas 4-15-26.pdfand the repository's governed source map: KFM-TRIAD-069 — Generated Runtime-Proof Artifact Lifecycle.This change defines how generated runtime-test outputs such as
actual.response.jsonmove through ephemeral, retained, reviewed, promoted-golden, stale, invalidated, and deleted states without becoming evidence, policy, KFM lifecycle promotion, release, or publication authority.Status labels
main@f25175455642c61aea022b09e7ed16e592abaa0b.afe2f8177e2713363712cc2697979e39b31b7d7d; two commits; 25 added paths; 2,489 additions; zero deletions; branch is two ahead and zero behind its authoring base.Evidence and idea lineage
The supplied packet recommends a hybrid runtime-proof artifact policy:
The current repository source map records that generated actuals had no confirmed common lifecycle covering ephemeral output, retained review material, reviewed and promoted goldens, staleness, invalidation, provenance, and deletion. This slice closes that bounded gap using synthetic data only.
Directory Rules basis
Accepted ADR-0029 makes
docs/doctrine/directory-rules.mdthe writable Directory Rules authority. Placement follows responsibility rather than topic:contracts/runtime/generated_runtime_proof_artifact.mdcontracts/schemas/contracts/v1/runtime/generated_runtime_proof_artifact.schema.jsonschemas/fixtures/contracts/v1/runtime/generated_runtime_proof_artifact/**fixtures/tools/validators/validate_generated_runtime_proof_artifact.pytools/tests/validators/test_validate_generated_runtime_proof_artifact.pytests/.github/workflows/generated-runtime-proof-artifact.yml.github/data/receipts/generated/genrec-generated-runtime-proof-artifact-20260805.jsondata/receipts/generated/No new root, parallel contract/schema/policy/fixture/proof/release authority, lifecycle store, public path, or artifact payload store is introduced.
What changed
Semantic contract and schema
Adds a proposed
GeneratedRuntimeProofArtifactprofile with:spec_hash, and input references;EPHEMERAL,RETAINED,REVIEWED,PROMOTED_GOLDEN,STALE,INVALIDATED, andDELETED;golden_promotiondecision withTEST_FIXTURE_ONLYauthority and expiry;Validator
Adds a deterministic no-network validator that:
Fixtures and tests
Adds seven valid lifecycle states and ten exact-negative cases covering:
Eight focused tests cover schema validity, valid-state acceptance, exact-negative finding sets, CLI fixture replay, duplicate keys, non-finite numbers, missing files, and non-echoing diagnostics.
Shared schema-lane compatibility correction
The first hosted run exposed a real integration issue: repository-wide schema tests require every
fixtures/contracts/v1/**/invalid/invalid_*.jsonfile to be JSON-Schema invalid, while the new negative cases were initially schema-valid and rejected only by the dedicated semantic validator.Commit
afe2f8177e2713363712cc2697979e39b31b7d7dapplies the smallest correction:SCHEMA_INVALIDand the case-specific semantic finding;This repairs the shared fixture convention rather than weakening the generic schema test or dropping semantic coverage.
CI and provenance
The focused workflow retains read-only
contents: read, immutable action pins, GitHub-hosted execution, bounded timeout, no secrets, no OIDC, and no artifact upload, comment mutation, deployment, release, or publication step. It runs focused tests, fixture replay, schema/JSON checks, and generated-receipt integrity.Local validation
Exact-head hosted validation
Directly affected workflow
generated-runtime-proof-artifactrun30970718617succeeded at exact headafe2f8177e2713363712cc2697979e39b31b7d7d:Integration workflows
The correction restored all directly related repository-wide lanes:
contracts-validate— success;schema-validation— success;contract-drift— success;validator-suite— success;generated-runtime-proof-artifact— success.Repository-wide snapshot
All 38 pull-request workflows reached terminal state:
domain-roads-rail-trade— unrelated readiness holdThe existing Roads/Rail/Trade lane still reports missing executable validator coverage in untouched scaffold roots. This branch changes no Roads/Rail/Trade path.
rollback-drill— unrelated stale readiness assertionThe workflow still asserts that RollbackCard schemas, fixtures, and validators remain permissive or absent. Current main has since gained a bounded RollbackCard implementation, so the old hold assertion now fails. The workflow explicitly reports that no rollback was simulated. This branch changes no rollback path.
release-dry-run— unrelated dependency-installation gapThe
rollback-card-presencejob invokestools/validators/release/validate_rollback_card.py --fixtureswithout installing repository dependencies. It fails withModuleNotFoundError: No module named 'jsonschema'. The same workflow's candidate-assembly and promotion-gate jobs succeeded. This branch changes no release-dry-run or RollbackCard path.These failures do not implicate the generated runtime-proof contract, schema, validator, fixture corpus, test lane, or workflow, but the repository is not fully green and this PR remains draft.
Trust boundary
A green result proves only the proposed schema, local lifecycle consistency, exact synthetic fixture polarity, deterministic no-network validator behavior, and declared authoring-artifact integrity.
It does not:
EvidenceReforEvidenceBundleclosure;ProofPack,PromotionReceipt,ReleaseManifest, orRollbackCard.The word
proofnames the test lane only.PROMOTED_GOLDENis a reviewed test-fixture state, not KFMPUBLISHEDstate.What did not change
actual.response.jsonpayload is committed by this slice.Rollback
Before merge, close this draft pull request and abandon
agent/generated-runtime-proof-artifact-20260805. After an authorized merge, revert commits in reverse order:afe2f8177e2713363712cc2697979e39b31b7d7d;f047efd931add3083c4d282a31e7dea8a4e40210.No source activation, lifecycle data, schema migration, generated payload, release state, deployment, or public artifact requires restoration.
Reviewer disposition
DRAFT — DIRECT IMPLEMENTATION AND EXACT-HEAD HOSTED VALIDATION PASS; HUMAN REVIEW AND REQUIRED-CHECK COUPLING REMAIN PENDING. The three unrelated repository failures remain visible. Do not mark ready, merge, release, deploy, publish, activate sources, or change repository settings from this pull request.