Repository navigation
docs(skills): prereg-seal — seal predictions before a scan - #2150
Draft
aarontrowbridge wants to merge 1 commit into
Draft
aarontrowbridge wants to merge 1 commit into
aarontrowbridge wants to merge 1 commit into
Conversation
…pt refuses changed rules or results older than the seal
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Related Issue
None filed yet — draft from the skills-integrity loop (proposal
S-fcz-02). File an issue before marking ready.Description
New public skill
prereg-seal: write rules/predictions to a file before a scan, hash and stat it (seal.py, stdlib only), and make the keys script refuse to run if a sealed file changed or any result file is older than the seal. Includes what belongs in a seal (rules, predictions, named non-answer outcomes, grid derived from the prediction, the keys script itself), the one-clock rule, and amendments as first-class sealed files.Evidence
Sealing was hand-rolled in G1, H2c, D2a, re-derived in G1b and A2 (obs notes under
fluxonium-cz-intermediate/ledger/observations/); G1's three self-reported stamps disagreed by minutes.Honesty flags
seal.pywas run against 8 cases (table in the card). The file-mtime ordering check is new in this card — earlier campaign scripts only re-hashed. It catches accidents, not an adversary (touch -dforges mtimes); the card's Limits section says so.detached-run(companion PR) andresearch/deliberate(companion PRs); merge order does not matter for correctness, only for the cross-references.Verification
cd packages/extension && node scripts/lint-skills.mjs --known scripts/lint-skills-known.txt→lint-skills: 41 skills, 0 error(s), 5 warning(s) — ok(the 5 warnings are pre-existing, none in this card). Also run with the unmergedprivate-packagerule fromorigin/private-skills-out(--denylist): 0 hits in this card. Tests:skills_integrity,skill_salvage_851,workflow_skills_public42/42 pass; the fullvitest runshows the same 128 failures as cleanorigin/mainin this environment (fleet/sidebar/pack tests; unrelated) plus one flakyfake_serve_reapercase that passes alone.