fix: bridge project-context hashes and preserve forced repairs - #78
Merged
Conversation
Accept only exact legacy v1 producer hashes, normalize persisted state to the canonical hash, and retain strict schema and hash requirements. Fail closed on malformed managed markers unless forced; forced repair preserves adjacent user bytes and creates a restorable before-image snapshot for every target mutation. Tasks: d8d5e195-561e-4e05-b83f-38e5a5c63877, ed31c2f5-61bc-4950-9f34-a0201ea35bd5. Incident: 687465. Agent: Quintilianus
Contributor
Author
|
[REVIEW] GO at Independent adversarial verification found zero concrete, reachable, in-scope Release order remains binding: publish/install this dual-compatible Instructions |
andrei-hasna
marked this pull request as ready for review
August 8, 2026 22:58
andrei-hasna
added a commit
that referenced
this pull request
Aug 8, 2026
Release @hasna/instructions 0.4.26 with the project-context hash compatibility bridge and malformed managed-block rollback repair from PR #78. Validation: 644 tests passed with zero failures; typecheck, build, package, and Linux/macOS CI gates passed. Agent: Quintilianus
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
generated_at--forcerepairs it while preserving same-line trailing user bytesRelease order
That sequence is zero-downtime: new Instructions accepts both the old exact legacy producer hash and the new canonical producer hash, then persists canonical state. Old Instructions never needs to consume the new Projects producer.
Regression coverage
instructions session planinstructions session restore: PASS and restores the exact malformed preimageGates
109 pass, 0 failacross 4 files643 pass, 0 failacross 56 filesbun run typecheck: exit 0bun run build: exit 0git diff --checkand staged diff check: exit 0no leaks found1 commits scannedandno leaks foundGO, no P0/P1 blockersThe post-remediation validation was deliberately scoped to the four affected lanes; the remediation changed only same-revision recovery proof and its regression.
Live acceptance follow-up
After review/release, rerun the user-supplied station01 fixture for
wks_ZXg7liK4CFJ1KZjC_Fg_bat unchanged revision2026-08-02T22:25:51.298Zthrough managed Codewith render and two post-render applies. That production-path rerun is intentionally not claimed by this station02 candidate gate.Tracking
d8d5e195-561e-4e05-b83f-38e5a5c63877ed31c2f5-61bc-4950-9f34-a0201ea35bd568746595d07dbc-d521-4c94-975d-509ac57c9d23Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.