@descryy/core 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/budget/reply.d.ts +11 -46
- package/dist/budget/reply.d.ts.map +1 -1
- package/dist/budget/reply.js +10 -39
- package/dist/budget/reply.js.map +1 -1
- package/dist/budget/size.d.ts +2 -21
- package/dist/budget/size.d.ts.map +1 -1
- package/dist/budget/size.js +3 -24
- package/dist/budget/size.js.map +1 -1
- package/dist/capabilities/preconditions.d.ts +7 -68
- package/dist/capabilities/preconditions.d.ts.map +1 -1
- package/dist/capabilities/preconditions.js +6 -57
- package/dist/capabilities/preconditions.js.map +1 -1
- package/dist/contracts/engine.d.ts +26 -12
- package/dist/contracts/engine.d.ts.map +1 -1
- package/dist/contracts/engine.js +28 -11
- package/dist/contracts/engine.js.map +1 -1
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/orphans.d.ts +28 -77
- package/dist/contracts/orphans.d.ts.map +1 -1
- package/dist/contracts/orphans.js +124 -94
- package/dist/contracts/orphans.js.map +1 -1
- package/dist/contracts/paths.d.ts +4 -114
- package/dist/contracts/paths.d.ts.map +1 -1
- package/dist/contracts/paths.js +7 -140
- package/dist/contracts/paths.js.map +1 -1
- package/dist/contracts/shapes.d.ts +13 -66
- package/dist/contracts/shapes.d.ts.map +1 -1
- package/dist/contracts/shapes.js +20 -91
- package/dist/contracts/shapes.js.map +1 -1
- package/dist/governance/budget.d.ts +12 -48
- package/dist/governance/budget.d.ts.map +1 -1
- package/dist/governance/budget.js +12 -48
- package/dist/governance/budget.js.map +1 -1
- package/dist/governance/candidate-boundary.d.ts +4 -32
- package/dist/governance/candidate-boundary.d.ts.map +1 -1
- package/dist/governance/candidate-boundary.js +4 -32
- package/dist/governance/candidate-boundary.js.map +1 -1
- package/dist/governance/escalation.d.ts +7 -45
- package/dist/governance/escalation.d.ts.map +1 -1
- package/dist/governance/escalation.js +7 -45
- package/dist/governance/escalation.js.map +1 -1
- package/dist/governance/fact-boundary.d.ts +7 -49
- package/dist/governance/fact-boundary.d.ts.map +1 -1
- package/dist/governance/fact-boundary.js +5 -43
- package/dist/governance/fact-boundary.js.map +1 -1
- package/dist/governance/finding-funnel.d.ts +11 -72
- package/dist/governance/finding-funnel.d.ts.map +1 -1
- package/dist/governance/finding-funnel.js +9 -68
- package/dist/governance/finding-funnel.js.map +1 -1
- package/dist/graph/build.d.ts +13 -75
- package/dist/graph/build.d.ts.map +1 -1
- package/dist/graph/build.js +0 -0
- package/dist/graph/build.js.map +1 -1
- package/dist/graph/cross-language.d.ts +4 -43
- package/dist/graph/cross-language.d.ts.map +1 -1
- package/dist/graph/cross-language.js +9 -77
- package/dist/graph/cross-language.js.map +1 -1
- package/dist/graph/index.d.ts +1 -1
- package/dist/graph/index.d.ts.map +1 -1
- package/dist/graph/merge.d.ts +8 -76
- package/dist/graph/merge.d.ts.map +1 -1
- package/dist/graph/merge.js +27 -77
- package/dist/graph/merge.js.map +1 -1
- package/dist/graph/observed-tests.d.ts +7 -68
- package/dist/graph/observed-tests.d.ts.map +1 -1
- package/dist/graph/observed-tests.js +5 -60
- package/dist/graph/observed-tests.js.map +1 -1
- package/dist/graph/persist.d.ts +2 -25
- package/dist/graph/persist.d.ts.map +1 -1
- package/dist/graph/persist.js +2 -25
- package/dist/graph/persist.js.map +1 -1
- package/dist/graph/runtime-confirmation.d.ts +14 -91
- package/dist/graph/runtime-confirmation.d.ts.map +1 -1
- package/dist/graph/runtime-confirmation.js +19 -103
- package/dist/graph/runtime-confirmation.js.map +1 -1
- package/dist/ledger/mint.d.ts +9 -43
- package/dist/ledger/mint.d.ts.map +1 -1
- package/dist/ledger/mint.js +15 -65
- package/dist/ledger/mint.js.map +1 -1
- package/dist/ledger/resolve.d.ts +13 -81
- package/dist/ledger/resolve.d.ts.map +1 -1
- package/dist/ledger/resolve.js +13 -76
- package/dist/ledger/resolve.js.map +1 -1
- package/dist/multipr/fingerprint.d.ts +5 -46
- package/dist/multipr/fingerprint.d.ts.map +1 -1
- package/dist/multipr/fingerprint.js +22 -74
- package/dist/multipr/fingerprint.js.map +1 -1
- package/dist/multipr/hidden-dependency.d.ts +13 -73
- package/dist/multipr/hidden-dependency.d.ts.map +1 -1
- package/dist/multipr/hidden-dependency.js +12 -63
- package/dist/multipr/hidden-dependency.js.map +1 -1
- package/dist/multipr/mechanical.d.ts +25 -160
- package/dist/multipr/mechanical.d.ts.map +1 -1
- package/dist/multipr/mechanical.js +21 -137
- package/dist/multipr/mechanical.js.map +1 -1
- package/dist/multipr/migration-heads.d.ts +18 -105
- package/dist/multipr/migration-heads.d.ts.map +1 -1
- package/dist/multipr/migration-heads.js +15 -84
- package/dist/multipr/migration-heads.js.map +1 -1
- package/dist/multipr/overlap.d.ts +16 -94
- package/dist/multipr/overlap.d.ts.map +1 -1
- package/dist/multipr/overlap.js +25 -105
- package/dist/multipr/overlap.js.map +1 -1
- package/dist/multipr/scope-store.d.ts +15 -80
- package/dist/multipr/scope-store.d.ts.map +1 -1
- package/dist/multipr/scope-store.js +17 -87
- package/dist/multipr/scope-store.js.map +1 -1
- package/dist/multipr/superseded.d.ts +10 -95
- package/dist/multipr/superseded.d.ts.map +1 -1
- package/dist/multipr/superseded.js +7 -60
- package/dist/multipr/superseded.js.map +1 -1
- package/dist/query/confirmed-facts.d.ts +12 -58
- package/dist/query/confirmed-facts.d.ts.map +1 -1
- package/dist/query/confirmed-facts.js +8 -47
- package/dist/query/confirmed-facts.js.map +1 -1
- package/dist/query/declared-value-closure.d.ts +13 -104
- package/dist/query/declared-value-closure.d.ts.map +1 -1
- package/dist/query/declared-value-closure.js +15 -104
- package/dist/query/declared-value-closure.js.map +1 -1
- package/dist/query/memory.d.ts +5 -9
- package/dist/query/memory.d.ts.map +1 -1
- package/dist/query/memory.js +31 -15
- package/dist/query/memory.js.map +1 -1
- package/dist/query/prominence.d.ts +6 -55
- package/dist/query/prominence.d.ts.map +1 -1
- package/dist/query/prominence.js +6 -55
- package/dist/query/prominence.js.map +1 -1
- package/dist/query/provider.d.ts +28 -81
- package/dist/query/provider.d.ts.map +1 -1
- package/dist/query/provider.js +8 -29
- package/dist/query/provider.js.map +1 -1
- package/dist/query/queries.d.ts +15 -65
- package/dist/query/queries.d.ts.map +1 -1
- package/dist/query/queries.js +43 -100
- package/dist/query/queries.js.map +1 -1
- package/dist/query/refusal-fetch.d.ts +8 -85
- package/dist/query/refusal-fetch.d.ts.map +1 -1
- package/dist/query/refusal-fetch.js +11 -93
- package/dist/query/refusal-fetch.js.map +1 -1
- package/dist/query/refusal-questions.d.ts +17 -92
- package/dist/query/refusal-questions.d.ts.map +1 -1
- package/dist/query/refusal-questions.js +14 -78
- package/dist/query/refusal-questions.js.map +1 -1
- package/dist/query/resolution-floor.d.ts +3 -23
- package/dist/query/resolution-floor.d.ts.map +1 -1
- package/dist/query/resolution-floor.js +3 -23
- package/dist/query/resolution-floor.js.map +1 -1
- package/dist/query/root-cause-score.d.ts +11 -161
- package/dist/query/root-cause-score.d.ts.map +1 -1
- package/dist/query/root-cause-score.js +6 -137
- package/dist/query/root-cause-score.js.map +1 -1
- package/dist/query/row-closure-picture.d.ts +5 -67
- package/dist/query/row-closure-picture.d.ts.map +1 -1
- package/dist/query/row-closure-picture.js +6 -67
- package/dist/query/row-closure-picture.js.map +1 -1
- package/dist/query/similar-incidents.d.ts +6 -41
- package/dist/query/similar-incidents.d.ts.map +1 -1
- package/dist/query/similar-incidents.js +15 -69
- package/dist/query/similar-incidents.js.map +1 -1
- package/dist/query/sqlite.d.ts +3 -7
- package/dist/query/sqlite.d.ts.map +1 -1
- package/dist/query/sqlite.js +13 -16
- package/dist/query/sqlite.js.map +1 -1
- package/dist/query/test-coverage.d.ts +5 -45
- package/dist/query/test-coverage.d.ts.map +1 -1
- package/dist/query/test-coverage.js +10 -53
- package/dist/query/test-coverage.js.map +1 -1
- package/dist/query/traverse.d.ts +22 -126
- package/dist/query/traverse.d.ts.map +1 -1
- package/dist/query/traverse.js +0 -0
- package/dist/query/traverse.js.map +1 -1
- package/dist/query/unresolved.d.ts +19 -164
- package/dist/query/unresolved.d.ts.map +1 -1
- package/dist/query/unresolved.js +11 -138
- package/dist/query/unresolved.js.map +1 -1
- package/dist/query/verification-status.d.ts +12 -109
- package/dist/query/verification-status.d.ts.map +1 -1
- package/dist/query/verification-status.js +9 -99
- package/dist/query/verification-status.js.map +1 -1
- package/dist/recording/migrate.d.ts +4 -10
- package/dist/recording/migrate.d.ts.map +1 -1
- package/dist/recording/migrate.js +4 -10
- package/dist/recording/migrate.js.map +1 -1
- package/dist/recording/reader.d.ts +2 -7
- package/dist/recording/reader.d.ts.map +1 -1
- package/dist/recording/reader.js +2 -7
- package/dist/recording/reader.js.map +1 -1
- package/dist/recording/redact.d.ts +6 -57
- package/dist/recording/redact.d.ts.map +1 -1
- package/dist/recording/redact.js +8 -64
- package/dist/recording/redact.js.map +1 -1
- package/dist/recording/schema.d.ts +3 -38
- package/dist/recording/schema.d.ts.map +1 -1
- package/dist/recording/schema.js +3 -38
- package/dist/recording/schema.js.map +1 -1
- package/dist/recording/writer.d.ts +11 -74
- package/dist/recording/writer.d.ts.map +1 -1
- package/dist/recording/writer.js +3 -43
- package/dist/recording/writer.js.map +1 -1
- package/dist/scoping/fanout.d.ts +6 -68
- package/dist/scoping/fanout.d.ts.map +1 -1
- package/dist/scoping/fanout.js +6 -68
- package/dist/scoping/fanout.js.map +1 -1
- package/dist/scoping/score.d.ts +20 -70
- package/dist/scoping/score.d.ts.map +1 -1
- package/dist/scoping/score.js +20 -70
- package/dist/scoping/score.js.map +1 -1
- package/dist/scoping/tiers.d.ts +4 -16
- package/dist/scoping/tiers.d.ts.map +1 -1
- package/dist/scoping/tiers.js +4 -16
- package/dist/scoping/tiers.js.map +1 -1
- package/dist/scoping/traverse.d.ts +3 -25
- package/dist/scoping/traverse.d.ts.map +1 -1
- package/dist/scoping/traverse.js +14 -49
- package/dist/scoping/traverse.js.map +1 -1
- package/dist/scoping/weights.d.ts +10 -74
- package/dist/scoping/weights.d.ts.map +1 -1
- package/dist/scoping/weights.js +14 -86
- package/dist/scoping/weights.js.map +1 -1
- package/dist/sources/confirmed/incidents.d.ts +5 -35
- package/dist/sources/confirmed/incidents.d.ts.map +1 -1
- package/dist/sources/confirmed/incidents.js +14 -48
- package/dist/sources/confirmed/incidents.js.map +1 -1
- package/dist/sources/git/diff.d.ts +71 -65
- package/dist/sources/git/diff.d.ts.map +1 -1
- package/dist/sources/git/diff.js +136 -83
- package/dist/sources/git/diff.js.map +1 -1
- package/dist/sources/git/env.d.ts +7 -0
- package/dist/sources/git/env.d.ts.map +1 -1
- package/dist/sources/git/env.js +10 -11
- package/dist/sources/git/env.js.map +1 -1
- package/dist/sources/git/history.d.ts +64 -84
- package/dist/sources/git/history.d.ts.map +1 -1
- package/dist/sources/git/history.js +141 -112
- package/dist/sources/git/history.js.map +1 -1
- package/dist/sources/git/incidents.d.ts +13 -75
- package/dist/sources/git/incidents.d.ts.map +1 -1
- package/dist/sources/git/incidents.js +21 -91
- package/dist/sources/git/incidents.js.map +1 -1
- package/dist/sources/git/index.d.ts +5 -3
- package/dist/sources/git/index.d.ts.map +1 -1
- package/dist/sources/git/index.js +3 -2
- package/dist/sources/git/index.js.map +1 -1
- package/dist/sources/git/source.d.ts +9 -79
- package/dist/sources/git/source.d.ts.map +1 -1
- package/dist/sources/git/source.js +0 -0
- package/dist/sources/git/source.js.map +1 -1
- package/dist/sources/migrations/across-change.d.ts +94 -0
- package/dist/sources/migrations/across-change.d.ts.map +1 -0
- package/dist/sources/migrations/across-change.js +278 -0
- package/dist/sources/migrations/across-change.js.map +1 -0
- package/dist/sources/migrations/dialects.d.ts +20 -36
- package/dist/sources/migrations/dialects.d.ts.map +1 -1
- package/dist/sources/migrations/dialects.js +11 -36
- package/dist/sources/migrations/dialects.js.map +1 -1
- package/dist/sources/migrations/index.d.ts +3 -1
- package/dist/sources/migrations/index.d.ts.map +1 -1
- package/dist/sources/migrations/index.js +2 -1
- package/dist/sources/migrations/index.js.map +1 -1
- package/dist/sources/migrations/read.d.ts +14 -79
- package/dist/sources/migrations/read.d.ts.map +1 -1
- package/dist/sources/migrations/read.js +14 -89
- package/dist/sources/migrations/read.js.map +1 -1
- package/dist/sources/workspace/workspace.d.ts +6 -42
- package/dist/sources/workspace/workspace.d.ts.map +1 -1
- package/dist/sources/workspace/workspace.js +10 -53
- package/dist/sources/workspace/workspace.js.map +1 -1
- package/dist/store/driver/driver.d.ts +9 -38
- package/dist/store/driver/driver.d.ts.map +1 -1
- package/dist/store/driver/driver.js +4 -22
- package/dist/store/driver/driver.js.map +1 -1
- package/dist/store/driver/node-sqlite.d.ts +3 -12
- package/dist/store/driver/node-sqlite.d.ts.map +1 -1
- package/dist/store/driver/node-sqlite.js +4 -18
- package/dist/store/driver/node-sqlite.js.map +1 -1
- package/dist/store/index.d.ts +2 -7
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +4 -10
- package/dist/store/index.js.map +1 -1
- package/dist/store/migrate.d.ts +14 -50
- package/dist/store/migrate.d.ts.map +1 -1
- package/dist/store/migrate.js +15 -52
- package/dist/store/migrate.js.map +1 -1
- package/dist/store/reader.d.ts +19 -84
- package/dist/store/reader.d.ts.map +1 -1
- package/dist/store/reader.js +25 -92
- package/dist/store/reader.js.map +1 -1
- package/dist/store/schema.d.ts +14 -76
- package/dist/store/schema.d.ts.map +1 -1
- package/dist/store/schema.js +14 -76
- package/dist/store/schema.js.map +1 -1
- package/dist/store/writer.d.ts +14 -88
- package/dist/store/writer.d.ts.map +1 -1
- package/dist/store/writer.js +29 -123
- package/dist/store/writer.js.map +1 -1
- package/dist/tiers/certify.d.ts +46 -281
- package/dist/tiers/certify.d.ts.map +1 -1
- package/dist/tiers/certify.js +46 -226
- package/dist/tiers/certify.js.map +1 -1
- package/dist/tiers/ladder.d.ts +7 -51
- package/dist/tiers/ladder.d.ts.map +1 -1
- package/dist/tiers/ladder.js +13 -89
- package/dist/tiers/ladder.js.map +1 -1
- package/dist/validation/attributes.d.ts +47 -0
- package/dist/validation/attributes.d.ts.map +1 -0
- package/dist/validation/attributes.js +130 -0
- package/dist/validation/attributes.js.map +1 -0
- package/dist/validation/config-graph.d.ts +7 -56
- package/dist/validation/config-graph.d.ts.map +1 -1
- package/dist/validation/config-graph.js +15 -61
- package/dist/validation/config-graph.js.map +1 -1
- package/dist/validation/env.d.ts +53 -2
- package/dist/validation/env.d.ts.map +1 -1
- package/dist/validation/env.js +99 -4
- package/dist/validation/env.js.map +1 -1
- package/dist/validation/index.d.ts +5 -1
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +3 -1
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/join-substitution.d.ts +22 -120
- package/dist/validation/join-substitution.d.ts.map +1 -1
- package/dist/validation/join-substitution.js +13 -90
- package/dist/validation/join-substitution.js.map +1 -1
- package/dist/validation/migration-integrity.d.ts +72 -0
- package/dist/validation/migration-integrity.d.ts.map +1 -0
- package/dist/validation/migration-integrity.js +238 -0
- package/dist/validation/migration-integrity.js.map +1 -0
- package/dist/validation/migrations.d.ts +23 -88
- package/dist/validation/migrations.d.ts.map +1 -1
- package/dist/validation/migrations.js +20 -79
- package/dist/validation/migrations.js.map +1 -1
- package/dist/validation/nodes.d.ts +3 -1
- package/dist/validation/nodes.d.ts.map +1 -1
- package/dist/validation/nodes.js +3 -1
- package/dist/validation/nodes.js.map +1 -1
- package/dist/validation/rollback.d.ts +10 -73
- package/dist/validation/rollback.d.ts.map +1 -1
- package/dist/validation/rollback.js +23 -81
- package/dist/validation/rollback.js.map +1 -1
- package/dist/validation/route-drift.d.ts +9 -62
- package/dist/validation/route-drift.d.ts.map +1 -1
- package/dist/validation/route-drift.js +7 -52
- package/dist/validation/route-drift.js.map +1 -1
- package/dist/validation/sources.d.ts +16 -94
- package/dist/validation/sources.d.ts.map +1 -1
- package/dist/validation/sources.js +51 -147
- package/dist/validation/sources.js.map +1 -1
- package/dist/worker/pool.d.ts +6 -45
- package/dist/worker/pool.d.ts.map +1 -1
- package/dist/worker/pool.js +5 -42
- package/dist/worker/pool.js.map +1 -1
- package/dist/worker/protocol.d.ts +7 -20
- package/dist/worker/protocol.d.ts.map +1 -1
- package/dist/worker/protocol.js +3 -10
- package/dist/worker/protocol.js.map +1 -1
- package/dist/worker/traversal.worker.d.ts +2 -21
- package/dist/worker/traversal.worker.d.ts.map +1 -1
- package/dist/worker/traversal.worker.js +4 -23
- package/dist/worker/traversal.worker.js.map +1 -1
- package/package.json +11 -2
package/dist/validation/env.d.ts
CHANGED
|
@@ -102,6 +102,51 @@
|
|
|
102
102
|
* this, `outline` reports three database credentials belonging to an image it
|
|
103
103
|
* merely depends on.
|
|
104
104
|
*
|
|
105
|
+
* ## A second read-side rule: scoped to the diff, not to whether the read is required
|
|
106
|
+
*
|
|
107
|
+
* UAT round 3, Suggestion 4 — the miss the field report called the costliest.
|
|
108
|
+
* `REQUIRED_NOT_DECLARED`'s failing-accessor precondition is correct for the
|
|
109
|
+
* repository it was measured against, and structurally silent on one where
|
|
110
|
+
* almost no read is required by construction. Driven against a real
|
|
111
|
+
* in-progress Python feature, `src/services/reviews.py` read two new
|
|
112
|
+
* third-party API keys through `os.environ.get()` — an accessor that yields
|
|
113
|
+
* an absent value rather than failing — declared in neither `.env` nor
|
|
114
|
+
* `.env-example`, and this check said "Clean": no read anywhere asserted
|
|
115
|
+
* requirement, so `REQUIRED_NOT_DECLARED` never had a candidate to report.
|
|
116
|
+
*
|
|
117
|
+
* The useful finding was never *"a required variable is undeclared"* on a
|
|
118
|
+
* language where that precondition is near-empty across the whole codebase.
|
|
119
|
+
* It is *"this change introduces a read of a variable that no declaration
|
|
120
|
+
* surface declares"* — provable from the graph alone, with no need to know
|
|
121
|
+
* whether the accessor fails on absence. So `NEW_READ_UNDECLARED` drops the
|
|
122
|
+
* failing-accessor precondition entirely and replaces it with a different
|
|
123
|
+
* one: **the read has to be new in this diff.** Precision comes from that
|
|
124
|
+
* substitution alone, not from an additional guard — unlike
|
|
125
|
+
* `REQUIRED_NOT_DECLARED`, this rule is not gated by `CoverageGuard`, because
|
|
126
|
+
* its whole population (`declaredAt`, every declaration surface) is not the
|
|
127
|
+
* quantity that guard exists to protect.
|
|
128
|
+
*
|
|
129
|
+
* "New in this diff" is operationalised the same way every other scoped check
|
|
130
|
+
* in this package already operationalises it: `options.files`, at file
|
|
131
|
+
* granularity. When it is given, the read-side loop above already restricts
|
|
132
|
+
* `reads` to files inside it before this rule ever runs, so every entry it
|
|
133
|
+
* sees already satisfies the precondition by construction — there is nothing
|
|
134
|
+
* further to filter. **This rule never fires when `options.files` is
|
|
135
|
+
* absent.** Without a diff there is nothing for "new" to mean, and firing it
|
|
136
|
+
* repository-wide would reopen exactly the noise `REQUIRED_NOT_DECLARED`'s
|
|
137
|
+
* own coverage guard exists to prevent — the same near-total-precision
|
|
138
|
+
* discipline, just moved to a different precondition.
|
|
139
|
+
*
|
|
140
|
+
* A pre-existing read in a file the diff also touches counts as "new" here,
|
|
141
|
+
* the same file-level honesty `contracts`' `paths` and this check's own
|
|
142
|
+
* `files` scope already carry elsewhere — this check does not have line-level
|
|
143
|
+
* diff information to do better, and says so via the same scope disclosure
|
|
144
|
+
* every `files`-scoped call already emits.
|
|
145
|
+
*
|
|
146
|
+
* Deduplicated against `REQUIRED_NOT_DECLARED`: a variable this rule already
|
|
147
|
+
* flagged is skipped by that one, so a required, undeclared, diff-scoped read
|
|
148
|
+
* is reported once, not twice, by the stronger of the two rules.
|
|
149
|
+
*
|
|
105
150
|
* ## Resolution, and why a config read is not R0
|
|
106
151
|
*
|
|
107
152
|
* A `.env` file is not code. *"This name is on line 12 of one file and in none of
|
|
@@ -118,16 +163,22 @@
|
|
|
118
163
|
* two, and the report says so rather than picking one.
|
|
119
164
|
*/
|
|
120
165
|
import type { ResolutionLevel } from "@descryy/ir";
|
|
166
|
+
import type { ContractClaim } from "../contracts/orphans.ts";
|
|
121
167
|
import type { AdjacencyProvider, QueryResult } from "../query/provider.ts";
|
|
122
168
|
import type { ConfigSurface, SurfaceScan } from "./sources.ts";
|
|
123
|
-
export type EnvFindingKind = "REQUIRED_NOT_DECLARED" | "SET_BUT_UNDOCUMENTED";
|
|
169
|
+
export type EnvFindingKind = "REQUIRED_NOT_DECLARED" | "SET_BUT_UNDOCUMENTED" | "NEW_READ_UNDECLARED";
|
|
124
170
|
/**
|
|
125
171
|
* How strongly the finding is stated.
|
|
126
172
|
*
|
|
127
173
|
* `lead` follows `ROUTE_NOT_CALLED`'s precedent: a fact worth a look whose usual
|
|
128
174
|
* explanation is benign, worded so that a reader is not told it is a defect.
|
|
175
|
+
*
|
|
176
|
+
* An alias of `ContractClaim` rather than a second declaration of the same two
|
|
177
|
+
* words. Two checks that both answer "is this a fault claim?" must answer it in
|
|
178
|
+
* one vocabulary, or the composite above them has to translate — and a
|
|
179
|
+
* translation is where one of them silently acquires a third case.
|
|
129
180
|
*/
|
|
130
|
-
export type EnvClaim =
|
|
181
|
+
export type EnvClaim = ContractClaim;
|
|
131
182
|
export interface EnvEvidence {
|
|
132
183
|
readonly file: string;
|
|
133
184
|
readonly line: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/validation/env.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/validation/env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAy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AED,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,kEAAkE;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAe1C;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,eAAe,GAC1B;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAmC9F;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,WAAW,EACjB,OAAO,GAAE,eAAoB,GAC5B,WAAW,CAAC,SAAS,CAAC,CAqWxB"}
|
package/dist/validation/env.js
CHANGED
|
@@ -102,6 +102,51 @@
|
|
|
102
102
|
* this, `outline` reports three database credentials belonging to an image it
|
|
103
103
|
* merely depends on.
|
|
104
104
|
*
|
|
105
|
+
* ## A second read-side rule: scoped to the diff, not to whether the read is required
|
|
106
|
+
*
|
|
107
|
+
* UAT round 3, Suggestion 4 — the miss the field report called the costliest.
|
|
108
|
+
* `REQUIRED_NOT_DECLARED`'s failing-accessor precondition is correct for the
|
|
109
|
+
* repository it was measured against, and structurally silent on one where
|
|
110
|
+
* almost no read is required by construction. Driven against a real
|
|
111
|
+
* in-progress Python feature, `src/services/reviews.py` read two new
|
|
112
|
+
* third-party API keys through `os.environ.get()` — an accessor that yields
|
|
113
|
+
* an absent value rather than failing — declared in neither `.env` nor
|
|
114
|
+
* `.env-example`, and this check said "Clean": no read anywhere asserted
|
|
115
|
+
* requirement, so `REQUIRED_NOT_DECLARED` never had a candidate to report.
|
|
116
|
+
*
|
|
117
|
+
* The useful finding was never *"a required variable is undeclared"* on a
|
|
118
|
+
* language where that precondition is near-empty across the whole codebase.
|
|
119
|
+
* It is *"this change introduces a read of a variable that no declaration
|
|
120
|
+
* surface declares"* — provable from the graph alone, with no need to know
|
|
121
|
+
* whether the accessor fails on absence. So `NEW_READ_UNDECLARED` drops the
|
|
122
|
+
* failing-accessor precondition entirely and replaces it with a different
|
|
123
|
+
* one: **the read has to be new in this diff.** Precision comes from that
|
|
124
|
+
* substitution alone, not from an additional guard — unlike
|
|
125
|
+
* `REQUIRED_NOT_DECLARED`, this rule is not gated by `CoverageGuard`, because
|
|
126
|
+
* its whole population (`declaredAt`, every declaration surface) is not the
|
|
127
|
+
* quantity that guard exists to protect.
|
|
128
|
+
*
|
|
129
|
+
* "New in this diff" is operationalised the same way every other scoped check
|
|
130
|
+
* in this package already operationalises it: `options.files`, at file
|
|
131
|
+
* granularity. When it is given, the read-side loop above already restricts
|
|
132
|
+
* `reads` to files inside it before this rule ever runs, so every entry it
|
|
133
|
+
* sees already satisfies the precondition by construction — there is nothing
|
|
134
|
+
* further to filter. **This rule never fires when `options.files` is
|
|
135
|
+
* absent.** Without a diff there is nothing for "new" to mean, and firing it
|
|
136
|
+
* repository-wide would reopen exactly the noise `REQUIRED_NOT_DECLARED`'s
|
|
137
|
+
* own coverage guard exists to prevent — the same near-total-precision
|
|
138
|
+
* discipline, just moved to a different precondition.
|
|
139
|
+
*
|
|
140
|
+
* A pre-existing read in a file the diff also touches counts as "new" here,
|
|
141
|
+
* the same file-level honesty `contracts`' `paths` and this check's own
|
|
142
|
+
* `files` scope already carry elsewhere — this check does not have line-level
|
|
143
|
+
* diff information to do better, and says so via the same scope disclosure
|
|
144
|
+
* every `files`-scoped call already emits.
|
|
145
|
+
*
|
|
146
|
+
* Deduplicated against `REQUIRED_NOT_DECLARED`: a variable this rule already
|
|
147
|
+
* flagged is skipped by that one, so a required, undeclared, diff-scoped read
|
|
148
|
+
* is reported once, not twice, by the stronger of the two rules.
|
|
149
|
+
*
|
|
105
150
|
* ## Resolution, and why a config read is not R0
|
|
106
151
|
*
|
|
107
152
|
* A `.env` file is not code. *"This name is on line 12 of one file and in none of
|
|
@@ -272,10 +317,47 @@ export function checkEnvironment(provider, scan, options = {}) {
|
|
|
272
317
|
}
|
|
273
318
|
// --- findings ------------------------------------------------------------
|
|
274
319
|
const findings = [];
|
|
320
|
+
// UAT round 3, Suggestion 4 — see the header. Fires only when `options.files`
|
|
321
|
+
// scoped this call to a diff: `reads` above is already restricted to it, so
|
|
322
|
+
// every entry here is "new in this diff" by construction. Not gated by
|
|
323
|
+
// `CoverageGuard` at all — that guard protects a different quantity
|
|
324
|
+
// (whether the *required-read* denominator is large enough to trust a
|
|
325
|
+
// ratio), and this rule's precision comes entirely from the diff scope,
|
|
326
|
+
// per the header's own reasoning.
|
|
327
|
+
const diffFlagged = new Set();
|
|
328
|
+
if (scoped !== null) {
|
|
329
|
+
const firstReadOf = new Map();
|
|
330
|
+
for (const read of reads) {
|
|
331
|
+
const existing = firstReadOf.get(read.name);
|
|
332
|
+
if (existing === undefined || read.file < existing.file)
|
|
333
|
+
firstReadOf.set(read.name, read);
|
|
334
|
+
}
|
|
335
|
+
for (const [name, read] of firstReadOf) {
|
|
336
|
+
if (declaredAt.has(name))
|
|
337
|
+
continue;
|
|
338
|
+
diffFlagged.add(name);
|
|
339
|
+
const where = read.line > 0 ? `${read.file}:${read.line}` : read.file;
|
|
340
|
+
findings.push({
|
|
341
|
+
kind: "NEW_READ_UNDECLARED",
|
|
342
|
+
name,
|
|
343
|
+
claim: "defect",
|
|
344
|
+
detail: `${name} is read at ${where}, a file this call scoped to, and no configuration file in ` +
|
|
345
|
+
"this repository declares it anywhere. This is a new read this change introduces, not a " +
|
|
346
|
+
"claim about whether the accessor fails when the variable is absent — see " +
|
|
347
|
+
"REQUIRED_NOT_DECLARED for that rule.",
|
|
348
|
+
evidence: [{ file: read.file, line: read.line, says: "read here, in a file this call scoped to" }],
|
|
349
|
+
resolution: Math.min(DECLARATIVE_RESOLUTION, read.resolution),
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
}
|
|
275
353
|
if (coverage !== null && coverage.passed) {
|
|
276
354
|
for (const [name, read] of requiredReads) {
|
|
277
355
|
if (declaredAt.has(name))
|
|
278
356
|
continue;
|
|
357
|
+
// Already reported once, by the stronger diff-scoped rule above — see
|
|
358
|
+
// the header's "Deduplicated against REQUIRED_NOT_DECLARED".
|
|
359
|
+
if (diffFlagged.has(name))
|
|
360
|
+
continue;
|
|
279
361
|
const where = read.line > 0 ? `${read.file}:${read.line}` : read.file;
|
|
280
362
|
findings.push({
|
|
281
363
|
kind: "REQUIRED_NOT_DECLARED",
|
|
@@ -346,7 +428,9 @@ export function checkEnvironment(provider, scan, options = {}) {
|
|
|
346
428
|
if (!readsAvailable) {
|
|
347
429
|
notes.push("No file in the graph carries environment reads, so nothing was checked against the code. " +
|
|
348
430
|
"This engine reads attrs.envReads on a file-scoped node — an array of { name, required, line } — " +
|
|
349
|
-
"
|
|
431
|
+
"which some adapters supply and others do not yet, so this sentence is about the " +
|
|
432
|
+
"producers behind this graph rather than about every producer there is. " +
|
|
433
|
+
"Only the configuration files were compared against each " +
|
|
350
434
|
"other. This is not a result of zero problems.");
|
|
351
435
|
}
|
|
352
436
|
else if (filesWithoutReads > 0) {
|
|
@@ -367,9 +451,13 @@ export function checkEnvironment(provider, scan, options = {}) {
|
|
|
367
451
|
if (coverage === null && readsAvailable) {
|
|
368
452
|
notes.push(`Every one of the ${namedVariables.size} variable(s) this code names is read through an ` +
|
|
369
453
|
"accessor that yields an absent value rather than failing, so no read asserts that any " +
|
|
370
|
-
"variable is required and
|
|
371
|
-
"with an absent value depends on what happens to it afterwards, which needs
|
|
372
|
-
"this run did not reach.
|
|
454
|
+
"variable is required and REQUIRED_NOT_DECLARED could not fire for any of them. Whether the " +
|
|
455
|
+
"code copes with an absent value depends on what happens to it afterwards, which needs " +
|
|
456
|
+
"resolution this run did not reach. " +
|
|
457
|
+
(scoped === null
|
|
458
|
+
? "The check is not saying the configuration is complete."
|
|
459
|
+
: "NEW_READ_UNDECLARED does not depend on accessor shape, and may still have reported a " +
|
|
460
|
+
'finding for a read inside "files" — see findings, not this note, for that.'));
|
|
373
461
|
}
|
|
374
462
|
if (dynamic > 0) {
|
|
375
463
|
notes.push(`${dynamic} environment read(s) use a computed name and were not resolved to a variable. ` +
|
|
@@ -392,6 +480,13 @@ export function checkEnvironment(provider, scan, options = {}) {
|
|
|
392
480
|
if (scoped !== null) {
|
|
393
481
|
notes.push(`The read side was restricted to ${scoped.size} scoped file(s). Configuration files were ` +
|
|
394
482
|
"read in full, because a declaration is repository-wide regardless of what changed.");
|
|
483
|
+
if (diffFlagged.size > 0) {
|
|
484
|
+
notes.push(`${diffFlagged.size} variable(s) read in these scoped file(s) are declared nowhere: ` +
|
|
485
|
+
`${[...diffFlagged].sort().join(", ")} — see NEW_READ_UNDECLARED in findings. Scoped at ` +
|
|
486
|
+
'file granularity, like every other check here that takes "files": a pre-existing read ' +
|
|
487
|
+
"in a file this call also scoped counts as new, since this check has no line-level diff " +
|
|
488
|
+
"information to do better.");
|
|
489
|
+
}
|
|
395
490
|
}
|
|
396
491
|
if (kept.length < findings.length) {
|
|
397
492
|
notes.push(`${findings.length - kept.length} further finding(s) were withheld: a report is capped at ` +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/validation/env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,QAAQ,EAAE,aAAa,CAAC,IAAI;gBAC5B,YAAY,EAAE,iBAAiB,CAAC,IAAI;gBACpC,OAAO;aACR;YACD,QAAQ;YACR,iBAAiB;YACjB,cAAc;SACf;QACD,KAAK;QACL,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM;QAC7E,KAAK;KACN,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,QAAuB;IAC9C,OAAO,CACL,4BAA4B,QAAQ,CAAC,QAAQ,WAAW,QAAQ,CAAC,QAAQ,sBAAsB;QAC/F,yBAAyB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,GAAG,GAAG,CAAC,sCAAsC;QAC/F,WAAW;QACX,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { fileScopedNodes, FILE_SCOPED_NODE_TYPES } from "./nodes.ts";
|
|
2
|
-
export { scanMigrations, readMigration, classifyStatement, statements, } from "./migrations.ts";
|
|
2
|
+
export { scanMigrations, readMigration, classifyStatement, statements, MIGRATION_DIRECTORY, } from "./migrations.ts";
|
|
3
3
|
export type { DestructiveKind, MigrationFile, MigrationOp, MigrationScan, MigrationScanOptions, MigrationSection, } from "./migrations.ts";
|
|
4
|
+
export { checkMigrationHeads, checkMigrationIntegrity, readMigrationRevision } from "./migration-integrity.ts";
|
|
5
|
+
export type { MigrationDownRevision, MigrationHeadsReport, MigrationIntegrityFinding, MigrationIntegrityFindingKind, MigrationIntegrityOptions, MigrationIntegrityReport, MigrationRevisionInfo, } from "./migration-integrity.ts";
|
|
6
|
+
export { checkAttributeExistence, readUnresolvedFields } from "./attributes.ts";
|
|
7
|
+
export type { AttributeCheckOptions, AttributeFinding, AttributeReport, } from "./attributes.ts";
|
|
4
8
|
export { buildConfigGraph } from "./config-graph.ts";
|
|
5
9
|
export type { ConfigDeclaration, ConfigGraph, ConfigGraphOptions, ConfigReadSite, ConfigVariable, } from "./config-graph.ts";
|
|
6
10
|
export { checkRollbackReadiness, readMigrationOps } from "./rollback.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC/G,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAChF,YAAY,EACV,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EACV,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClF,YAAY,EACV,aAAa,EACb,eAAe,EACf,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,OAAO,EACP,SAAS,GACV,MAAM,UAAU,CAAC"}
|
package/dist/validation/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { fileScopedNodes, FILE_SCOPED_NODE_TYPES } from "./nodes.js";
|
|
2
|
-
export { scanMigrations, readMigration, classifyStatement, statements, } from "./migrations.js";
|
|
2
|
+
export { scanMigrations, readMigration, classifyStatement, statements, MIGRATION_DIRECTORY, } from "./migrations.js";
|
|
3
|
+
export { checkMigrationHeads, checkMigrationIntegrity, readMigrationRevision } from "./migration-integrity.js";
|
|
4
|
+
export { checkAttributeExistence, readUnresolvedFields } from "./attributes.js";
|
|
3
5
|
export { buildConfigGraph } from "./config-graph.js";
|
|
4
6
|
export { checkRollbackReadiness, readMigrationOps } from "./rollback.js";
|
|
5
7
|
export { checkRouteDrift } from "./route-drift.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAUzB,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAW/G,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAOhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAWpE,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAWtB,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,91 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* DEC-166
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* them is why the row looked unreachable. **Source fidelity** — does a call
|
|
6
|
-
* site's text really support the edge's claim — is
|
|
7
|
-
* `bench/precision-adjudicate.mjs`'s job and is almost entirely
|
|
8
|
-
* `null`-producing (NOTE-C). **Join / identity fidelity** — does the endpoint
|
|
9
|
-
* id a caller's edge targets correspond, and *only* correspond, to the route
|
|
10
|
-
* an independent producer says is served there — is this file's job, and it
|
|
11
|
-
* is the layer the numbers this project publishes are actually made of.
|
|
12
|
-
*
|
|
13
|
-
* ## The instrument
|
|
14
|
-
*
|
|
15
|
-
* For every joined `USES_API` edge:
|
|
16
|
-
*
|
|
17
|
-
* 1. Take the **population** — every `SERVES_API`-linked route in the same
|
|
18
|
-
* repository, deduplicated by (method, normalised template). A fact
|
|
19
|
-
* produced by a *different pass* than the one under test.
|
|
20
|
-
* 2. **Exclude** any route identical in (method, template) to the edge's true
|
|
21
|
-
* target. A group of one substitutes onto itself, which is not a wrong
|
|
22
|
-
* target. This exclusion is load-bearing: without it every draw would match
|
|
23
|
-
* by construction and the control would manufacture false acceptances.
|
|
24
|
-
* 3. Substitute a different route from that population, holding the caller's
|
|
25
|
-
* raw evidence fixed.
|
|
26
|
-
* 4. Re-run the same identity computation against the substituted target.
|
|
27
|
-
* 5. **Expect refusal, always.** The substituted target's identity did not
|
|
28
|
-
* come from the rule under test and did not come from the caller — it came
|
|
29
|
-
* from an independent producer, so the harness can say why the seeded value
|
|
30
|
-
* is wrong without consulting the rule being tested. That is precisely what
|
|
31
|
-
* NOTE-C limit (a) requires and address-keyed source rules could not give.
|
|
32
|
-
*
|
|
33
|
-
* **Threshold 0%, and it is not a dial.** Wrongness here is established by an
|
|
34
|
-
* independent producer, so 0% is the honest floor rather than a number picked
|
|
35
|
-
* to accommodate anything. A non-zero acceptance is a row to read, never a
|
|
36
|
-
* ceiling to raise.
|
|
37
|
-
*
|
|
38
|
-
* ## What this control is, honestly, and what it is not
|
|
39
|
-
*
|
|
40
|
-
* On a correct implementation this control is **structurally** 0%: the
|
|
41
|
-
* caller's evidence normalises onto its own target, the population is
|
|
42
|
-
* deduplicated by that same identity, and every other group is by definition
|
|
43
|
-
* a different string. That is not a weakness dressed up as a floor — it is
|
|
44
|
-
* what a 0% floor *means*, and it is why the number is not a dial. Its value
|
|
45
|
-
* is as a **regression detector over the normalisation layer**: change
|
|
46
|
-
* `normaliseEndpointPath` (or the DEC-097 base composition, or the method
|
|
47
|
-
* half of the identity) so that it discards discriminating information, and
|
|
48
|
-
* two genuinely distinct routes collapse onto one string — at which point the
|
|
49
|
-
* caller's evidence supports a route it never called and the acceptance rate
|
|
50
|
-
* leaves zero. It is a detector for the *class* of suspect join, not a rule
|
|
51
|
-
* that says which flagged rows are wrong; a flagged row still needs a
|
|
52
|
-
* decision, the same way DEC-163's own open question does.
|
|
53
|
-
*
|
|
54
|
-
* ## Why the exclusion key is fixed while the identity under test is not
|
|
55
|
-
*
|
|
56
|
-
* `options.identity` exists so a deliberately degraded identity can be run
|
|
57
|
-
* through the same instrument and the control observed to fire — this repo's
|
|
58
|
-
* standing bar for an instrument (DEC-162's seeded-grader work): a control
|
|
59
|
-
* that has never been seen to fire proves nothing. The population's dedup and
|
|
60
|
-
* step 2's exclusion deliberately do **not** use it. They use the engine's
|
|
61
|
-
* fixed `endpointQsp`, because they are arithmetic over an independently
|
|
62
|
-
* produced route table, not the thing under test. If the exclusion used the
|
|
63
|
-
* identity under test, a degraded identity would collapse the whole
|
|
64
|
-
* population into the target's own group, every candidate would be excluded,
|
|
65
|
-
* and the run would report `UNCONTROLLABLE` — the defect hiding inside the
|
|
66
|
-
* one state that is explicitly not a pass. `join-substitution.test.ts` pins
|
|
67
|
-
* exactly that.
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* One route from the independently-produced side: a `SERVES_API`-linked
|
|
71
|
-
* route's own declared method and path template.
|
|
2
|
+
* DEC-166's join/identity control for `USES_API` (distinct from source fidelity in `bench/precision-adjudicate.mjs`, NOTE-C).
|
|
3
|
+
* Substitutes an independent route, keyed by the fixed engine identity — never `options.identity` under test — and expects refusal always.
|
|
4
|
+
* Threshold 0%: a DEC-097 normalisation regression detector, not a dial.
|
|
72
5
|
*/
|
|
6
|
+
/** One route from the independently-produced side: a `SERVES_API`-linked
|
|
7
|
+
* route's own declared method and path template. */
|
|
73
8
|
export interface SubstitutionRoute {
|
|
74
9
|
readonly method: string;
|
|
75
10
|
readonly path: string;
|
|
76
11
|
/** Reporting only — never part of any key. */
|
|
77
12
|
readonly label?: string;
|
|
78
13
|
}
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* `basePath` is DEC-097's base with the origin already stripped and the path
|
|
84
|
-
* prefix kept; `written` is the path exactly as it appears at the call site.
|
|
85
|
-
* The composition is `basePath + written` and nothing else — re-implementing
|
|
86
|
-
* it here is how the instrument and the engine drift into disagreeing about
|
|
87
|
-
* what a join even is.
|
|
88
|
-
*/
|
|
14
|
+
/** One joined `USES_API` edge: caller's raw evidence plus its joined target.
|
|
15
|
+
* `basePath` is DEC-097's base (origin stripped); composition is always
|
|
16
|
+
* `basePath + written`, never re-implemented here. */
|
|
89
17
|
export interface SubstitutionCaller {
|
|
90
18
|
/** Where the call site is, for reporting only. */
|
|
91
19
|
readonly at: string;
|
|
@@ -96,14 +24,8 @@ export interface SubstitutionCaller {
|
|
|
96
24
|
readonly targetMethod: string;
|
|
97
25
|
readonly targetPath: string;
|
|
98
26
|
}
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* Same third-state discipline as DEC-162: none of these counts toward a
|
|
103
|
-
* numerator or a denominator, and a repository reporting one has said nothing
|
|
104
|
-
* about whether its join logic is sound — it has said it has no material to
|
|
105
|
-
* test it against, which is a fact about the corpus, not the engine.
|
|
106
|
-
*/
|
|
27
|
+
/** No material to run against (DEC-162 third-state discipline): counts toward
|
|
28
|
+
* neither numerator nor denominator — a fact about the corpus, not the engine. */
|
|
107
29
|
export type SubstitutionUncontrollable = {
|
|
108
30
|
readonly code: "POPULATION_ZERO";
|
|
109
31
|
readonly detail: string;
|
|
@@ -114,15 +36,9 @@ export type SubstitutionUncontrollable = {
|
|
|
114
36
|
readonly code: "NO_JOINED_EDGES";
|
|
115
37
|
readonly detail: string;
|
|
116
38
|
};
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* `trueTarget` and `substituted` are the **fixed** group keys, not the
|
|
121
|
-
* identity under test — a flagged row has to name two routes a human can go
|
|
122
|
-
* and read, and under a degraded identity the string under test is precisely
|
|
123
|
-
* the one that no longer distinguishes them. `collapsedTo` is that string:
|
|
124
|
-
* the value both the caller's evidence and the substituted route produced.
|
|
125
|
-
*/
|
|
39
|
+
/** A substituted route the caller's evidence accepted — must never happen.
|
|
40
|
+
* `trueTarget`/`substituted` are the fixed group keys, not the identity under
|
|
41
|
+
* test; `collapsedTo` is the string both produced. */
|
|
126
42
|
export interface FlaggedSubstitution {
|
|
127
43
|
readonly at: string;
|
|
128
44
|
/** The route the edge actually joined to, by fixed group key. */
|
|
@@ -132,14 +48,9 @@ export interface FlaggedSubstitution {
|
|
|
132
48
|
/** The identity string the caller's evidence and the substitute both produced. */
|
|
133
49
|
readonly collapsedTo: string;
|
|
134
50
|
}
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* Reported separately from an acceptance because it is a different statement:
|
|
139
|
-
* an acceptance says the evidence supports more than one route, this says the
|
|
140
|
-
* evidence does not support the route the edge claims. Both are defects; only
|
|
141
|
-
* the first is what the substitution draw measures.
|
|
142
|
-
*/
|
|
51
|
+
/** A joined edge whose own raw evidence doesn't rebuild its stored target.
|
|
52
|
+
* Reported separately from an acceptance: a different defect, not what the
|
|
53
|
+
* substitution draw measures. */
|
|
143
54
|
export interface UnreproducibleJoin {
|
|
144
55
|
readonly at: string;
|
|
145
56
|
/** What the caller's own raw evidence produced, under the identity in force. */
|
|
@@ -165,22 +76,13 @@ export interface JoinSubstitutionReport {
|
|
|
165
76
|
readonly unreproducible: readonly UnreproducibleJoin[];
|
|
166
77
|
}
|
|
167
78
|
export interface JoinSubstitutionOptions {
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
* file's header for why the seam exists and why the exclusion key does not
|
|
172
|
-
* share it.
|
|
173
|
-
*/
|
|
79
|
+
/** Identity under test. Defaults to the engine's `endpointQsp` — the only
|
|
80
|
+
* value a real run should use; see file header for why the exclusion key
|
|
81
|
+
* doesn't share it. */
|
|
174
82
|
readonly identity?: (method: string, path: string) => string;
|
|
175
83
|
}
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* Deterministic and exhaustive: every candidate in the population is drawn for
|
|
180
|
-
* every caller, never a fixed-N sample. Route tables are frequently far below
|
|
181
|
-
* any fixed draw size — axum shipped 18/18, full population — and a fixed-N
|
|
182
|
-
* bar would make this layer structurally uncontrollable for exactly the
|
|
183
|
-
* repositories with the smallest, most auditable route tables.
|
|
184
|
-
*/
|
|
84
|
+
/** Runs the control over one repository's joined edges and route table.
|
|
85
|
+
* Deterministic and exhaustive — every candidate is drawn for every caller,
|
|
86
|
+
* never a fixed-N sample (axum shipped 18/18, full population). */
|
|
185
87
|
export declare function runJoinSubstitutionControl(callers: readonly SubstitutionCaller[], routes: readonly SubstitutionRoute[], options?: JoinSubstitutionOptions): JoinSubstitutionReport;
|
|
186
88
|
//# sourceMappingURL=join-substitution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join-substitution.d.ts","sourceRoot":"","sources":["../../src/validation/join-substitution.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"join-substitution.d.ts","sourceRoot":"","sources":["../../src/validation/join-substitution.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;qDACqD;AACrD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE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