Repository navigation
Persist Shadow maturity evidence for reviewed improvements - #84
Draft
hongmaple0820 wants to merge 19 commits into
Draft
hongmaple0820 wants to merge 19 commits into
hongmaple0820 wants to merge 19 commits into
Conversation
6 tasks
This branch has not been deployed
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
.scale/evals/rule-maturity/.shadow-hitto reference an existing regular evidence file inside the project directory (10 MiB maximum), hash it with SHA-256, reject paths escaping the project, and reject duplicate content by digest.sha256:<64 lowercase hex>evidence IDs at the store API boundary and serialize writes with a fail-closed per-record lock to prevent concurrent lost updates.Safety boundary
This is a persistent evidence ledger, not an executable Shadow replay engine.
shadow-hitverifies and registers an externally produced artifact; it does not run the rule or replay the task.shadow-evaluatereports eligibility but never changes the persistedshadowstage, creates hooks, or edits production policies. A passing result only identifiescandidate-hookas the next review stage.Validation
90e8375andd185583.d185583, Coverage and Published Package Gate (Ubuntu/macOS) passed; Source CI failed only at the supply-chain audit after lint/typecheck/build passed and the Windows guardrails corpus passed (113 tests).npm audit --audit-level=high --omit=dev. It reports 9 production-tree advisories: 7 high (picomatch GHSA-fc5q-39xc-vjpf) and 2 moderate (Hono / @hono/node-server). The report traces picomatch through bothchokidar -> anymatch/readdirpand@typescript-eslint/typescript-estree -> tinyglobby/fdir. npm's suggested--forceremediation would move chokidar 3 to 6 (breaking major); no fixed picomatch version is currently listed by the advisory. The audit is not suppressed and no force-upgrade is being applied without compatibility and security evidence.44259119953), Coverage (44259119796) and Published Package Gate (44259119907) runs are pending for head4cf20098cb4bdca3a3293289b532c2b24aea7c0c; do not treat this PR as validated until all required jobs finish successfully.No local execution is claimed in this environment. This PR is stacked on #83 and should be reviewed together with its base; do not merge it independently into master.