ci: ratify backend/security invariant registry in make check and CI#183
Closed
devitway wants to merge 1 commit into
Closed
ci: ratify backend/security invariant registry in make check and CI#183devitway wants to merge 1 commit into
devitway wants to merge 1 commit into
Conversation
189d34a to
793f9d4
Compare
Add scripts/contracts/: a hand-authored registry (contracts.json, 89 invariants) of authz / multi-tenant isolation / SSRF / fail-closed / write-atomicity / SQL-injection properties, plus a deterministic gate (pusk_contract_gate.py) that ratifies it against the working tree. Teeth: DRIFT (a contract's code anchor vanished), REGRESSION (a guard was removed or a guarded function renamed away), and NEW BLIND SPOT (a new unenforced gap not in gap-baseline). Complements the existing frontend/coherence linters, which do not cover backend security invariants. One known gap is baselined and visible (addressed by a separate fix PR). One contract documents that markChannelRead is intentionally open to non-subscribers (feature #101, unread badges for unsubscribed channels) and fails if a membership guard is ever added there. Wire it into 'make check' (new contracts target) and the CI build job.
793f9d4 to
7335b42
Compare
Contributor
Author
|
Closing — keeping this check in the local maintainer workflow rather than vendoring it into the repo. |
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.
Adds
scripts/contracts/: a hand-authored registry (contracts.json, 89 invariants) of authz / multi-tenant isolation / SSRF / fail-closed / write-atomicity / SQL-injection properties, plus a deterministic gate (pusk_contract_gate.py) that ratifies it against the working tree.Teeth (each → exit 1): DRIFT (a contract's code anchor vanished), REGRESSION (a guard was removed or a guarded function renamed away), NEW BLIND SPOT (a new unenforced gap not in
gap-baseline). Complements the existing frontend/coherence linters, which do not cover backend security invariants. Two known gaps are baselined and visible (addressed by separate fix PRs).Wired into
make check(newcontractstarget) and the CI build job.