feat: lawful metadata harvest smoke bundle, run artifact schema, and CI gate#286
Open
mdheller wants to merge 1 commit into
Open
feat: lawful metadata harvest smoke bundle, run artifact schema, and CI gate#286mdheller wants to merge 1 commit into
mdheller wants to merge 1 commit into
Conversation
…CI gate (#160) Adds lawful-metadata-harvest-run-artifact.schema.v0.1.json: run artifact for OAI-PMH-style three-batch harvest. Fields: artifact_id, run_ref, harvest_batches (verb enum: Identify/ListRecords/etc), envelope_ref, replay_ref, promotion_decision (explicit, not implied), token_loop_anomaly, and no_live_network_harvest (const: true). Compatible with ProCybernetica lawful-metadata-harvest-envelope contract structure. Adds bundles/lawful-metadata-harvest-smoke/bundle.json: smoke bundle descriptor with ProCybernetica and SocioSphere upstream anchors. No live network harvesting. Adds harvest-run-artifact.valid.json (three-batch run, promotion deferred, no anomaly) and reject_token-loop-anomaly.json (resumption_loop detected). Adds tools/validate_lawful_metadata_harvest.py with policy gates: no live harvest, explicit promotion, token loop anomaly invalidates replay; 4 checks pass. Wires validate-lawful-metadata-harvest into make validate. Closes #160
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.
Summary
schemas/lawful-metadata-harvest-run-artifact.schema.v0.1.json: OAI-PMH-style harvest run artifact; three-batch fixture, compatible with ProCyberneticalawful-metadata-harvest-envelopecontract; enforcesno_live_network_harvest=trueandpromotion_decision.promotion_is_explicit=true(promotion is never an implied effect of harvest completion)bundles/lawful-metadata-harvest-smoke/bundle.json: bundle descriptor with ProCybernetica and SocioSphere upstream anchors; non-live smoke modeharvest-run-artifact.valid.json(3-batch OAI-PMH harvest, promotion deferred, no anomaly) andreject_token-loop-anomaly.json(resumption loop detected, replay invalidated)tools/validate_lawful_metadata_harvest.pywith 3 policy gate checks; 4 checks pass; wiresvalidate-lawful-metadata-harvestintomake validateCloses #160
Test plan
make validate-lawful-metadata-harvestpasses (4/4)make validatepasses (aggregate)reject_token-loop-anomaly.jsonis correctly rejected