You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config(#3532): validate custom_harness registrations against parsed Cargo target metadata #3608
TestHarnessRegistration::file_wide_harness_evidence grants file-wide evidence role from the repository's own kind = \"custom_harness\" declaration alone. The claim is typed and fail-closed at parse time (exact target, identity participation, provenance recorded), but nothing validates it against the workspace's actual Cargo target metadata: a target that is not declared harness = false in Cargo.toml, is stale, or does not exist still receives file-wide evidence role — suppressing production probing for that file on an unverified premise (#3593 review round five, coderabbit, raised at head 3faa554).
repository: EffortlessMetrics/ripr-swarm; branch feat/analysis-test-harness-modeling-3532; inspected head 3faa5542f (2026-08-31); not present on main (535138c)
classification: verified_current (mechanics by reading; the normal registered-repo case behaves as declared)
confidence: high on mechanics; real-world impact requires a misdeclared registration
Acceptance
surface parsed Cargo [[test]] target metadata (target path + harness flag) into the registry validation path (reusing the existing workspace/package manifest loading rather than a new discovery walk)
a registration whose target is missing from Cargo metadata, or whose Cargo target still has harness = true, produces a typed limitation (or is demoted to per-function behavior) instead of file-wide evidence role
discriminating fixture: a misdeclared custom_harness target keeps seeding production seams and records the conflict
Landed. PR #3632 merged to main at 1941b1d5 (2026-09-04), Linux CI green on the final head after 8 review rounds (devin, codex, coderabbit; every substantive finding fixed with pinning tests, every thread replied and resolved).
Delivered:
custom_harness registrations validated against parsed Cargo target metadata: declaration map with lexical path resolution (CurDir/ParentDir collapse), workspace-membership gating (root + members globs + excludes + path-dep closure; recursive **; absent members fail closed), edition-2015 autotest-discovery default, name-only declarations crediting only tests/<name>.rs, malformed manifests → ManifestUnavailable.
Failure semantics: the libtest-mimic adapter runs only on HarnessDisabled; every other verdict records a typed limitation (harness_flag_conflict / target_not_declared / manifest_unavailable) with no demotion and no subjects; all seven role-consumption surfaces share one validated grant.
Cache generations bumped (1.3→1.4, 0.9→0.10, 0.10→0.11) with warm-cache regressions.
Residual (tracked): exotic workspace edge cases consolidated in #3634 — workspace-inherited path deps, exclude wildcard nesting boundaries, ambiguous exclude×path-dep precedence (documented exclude-wins), and a cargo-metadata-backed validation rework as the principled endgame. All residual gaps fail in the under-credit direction.
Claim boundary: valid registrations on conventional layouts behave byte-identically to pre-#3608 (zero golden drift); misconfigurations now degrade with named typed limitations instead of silently granting harness authority.
Claim boundary note: the emulation's residual edge cases fail in the under-credit direction; #3634 owns the cargo-metadata-backed rework.
Activity
fix(config): resolve harness targets by manifest ownership and bump c…
fix(config): declaration-driven harness target ownership and inherite…
fix(config): workspace-wide harness declaration map with lexical path…
fix(config): gate harness validation to workspace members and scope n…
fix(config): recursive member globs, absent-member fail-closed, and d…
fix(config): exclusion semantics cover path-dependency members (#3608 …
fix(config): workspace exclusions cover directory prefixes of path de…
fix(config): explicit member entries beat parent-prefix exclusions (#…
EffortlessSteven commentedon Sep 4, 2026
Reconciliation: harness registration validation delivered — PR #3632 (merge 1941b1d)
Landed. PR #3632 merged to
mainat1941b1d5(2026-09-04), Linux CI green on the final head after 8 review rounds (devin, codex, coderabbit; every substantive finding fixed with pinning tests, every thread replied and resolved).Delivered:
custom_harnessregistrations validated against parsed Cargo target metadata: declaration map with lexical path resolution (CurDir/ParentDir collapse), workspace-membership gating (root + members globs + excludes + path-dep closure; recursive**; absent members fail closed), edition-2015 autotest-discovery default, name-only declarations crediting onlytests/<name>.rs, malformed manifests →ManifestUnavailable.HarnessDisabled; every other verdict records a typed limitation (harness_flag_conflict/target_not_declared/manifest_unavailable) with no demotion and no subjects; all seven role-consumption surfaces share one validated grant.Residual (tracked): exotic workspace edge cases consolidated in #3634 — workspace-inherited path deps, exclude wildcard nesting boundaries, ambiguous exclude×path-dep precedence (documented exclude-wins), and a cargo-metadata-backed validation rework as the principled endgame. All residual gaps fail in the under-credit direction.
Claim boundary: valid registrations on conventional layouts behave byte-identically to pre-#3608 (zero golden drift); misconfigurations now degrade with named typed limitations instead of silently granting harness authority.
Claim boundary note: the emulation's residual edge cases fail in the under-credit direction; #3634 owns the cargo-metadata-backed rework.
merge origin/main: combine cache transition notes and warm-cache regr…
test(analysis): declare harness-false targets in trial-parity fixture…
fix(analysis): syntactic char-literal recognition, turbofish-only rec…
fix(analysis): syntactic char-literal recognition, turbofish-only rec…
fix(analysis): AST-resolved callback scope and changelog entry for tr…
fix(analysis): AST-resolved callback scope and changelog entry for tr…
feat(analysis): trial subject evidence parity for helper callbacks an…