Repository navigation
Weak evidence yields a plan, not an edit (#146) - #162
Open
QuintinBotes wants to merge 1 commit into
Open
QuintinBotes wants to merge 1 commit into
QuintinBotes wants to merge 1 commit into
Conversation
Every slice records gaps (its findings' uncertainties and non-observed evidence, lexical reads and analysis-coverage holes in its scope) and evidence_strength; low confidence or mostly inferred evidence raises risk one level. apply refuses with UK_INSUFFICIENT_EVIDENCE a non-test slice whose scope was mostly read lexically, unless a person opts the campaign in with evidence.allow_weak in the accepted config; org policy can forbid it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Weak evidence now yields a plan, not an edit.
gaps(its source findings' uncertainties, evidence that is not observed, lexical reads and analysis-coverage holes in its scope) andevidence_strength(lowest finding confidence, inferred vs total evidence entries).weak evidence: ....UK_INSUFFICIENT_EVIDENCE(exit 3, HTTP 403). The message names the gap and both ways forward: a SCIP index then re-map, or a person setsevidence.allow_weak: [CMP-n](ortrue) and runsunknot config acceptin a terminal. An unaccepted edit is inert (the existing acceptance path already stripsevidence).evidence.allow_weak: falseforbids it; an orgtrueis ignored. Orgevidencelists now replace the repository's list by list instead of replacing the whole block.New module
runtime/policy/evidence.mjs; small hooks inplan/campaign.mjs,policy/risk.mjs,apply/apply.mjs,policy/merge.mjs,core/errors.mjs; schemas and docs updated. Nothing inruntime/graphchanged.Acceptance scenarios
gapsfrom finding uncertainties, evidence gaps, and coverage holes in scopetests/integration/weak-evidence.test.mjs"a slice carries the gaps…"; mews copy:plan --findings F-0002gives 4 gaps (uncertainty, no confidence, 1/1 modules read lexically, csharp analysis-coverage hole)medium: weak evidence: source finding confidence is lowapplyrefuses withUK_INSUFFICIENT_EVIDENCE, naming the gap and both ways forwardstartApply); a different campaign's opt-in still refuses, this campaign's opt-in reaches PATCHINGapprovals: ['any-approver'], so lane-eligible) and is refused; the existingproven-deletion*.test.mjsandlane.test.mjspass unchangedallow_weakUK_INSUFFICIENT_EVIDENCEand allows a tests slice;allow_weak: [CMP-1]lifts the refusal. The fullunknot applyCLI could not run there because the copy's config is unaccepted (plan mode), and accepting the config and approving both need a person at a TTY. The CLI path is covered by the fixture test for scenario 3.Check
npm test: 3681 tests, 3665 pass, 7 fail, 9 skipped. The 7 failures are the known local-onlytests/unit/daemon/remote.test.mjsTLS failures ("CA signature digest algorithm too weak", LibreSSL), which also fail on clean main.Secret scan: gitleaks could not run in this agent's sandbox and trufflehog is not installed. The diff adds no credentials; the test passphrase also appears in the existing tests.
Closes #146
🤖 Generated with Claude Code