interlinked-verify
Skill185 starsChanged 25 days agoMITView on GitHub
Run `interlinked verify`, understand the PostToolUse quality checks, and land multi-file edits through the content gate. Load this when you want to check your changes (`interlinked verify` — the on-demand whole-project check run), when a `pre_block` check refused an edit, when you need to land a cross-file refactor without transient tsc errors (`interlinked write --batch` / `multi-edit` / `verify-changeset` and the exporter-before-importers rule), when deciding whether a finding is default-gate or advisory, or when you need to know where to put probe/scratch scripts (`interlinked scratch`). Verify reports ordinary findings with exit 0; an unavailable/deferred run exits nonzero because no verdict exists.
- Reads credentials
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- enforceSkill
- interlinked-coordinationSkill
- interlinked-coworkSkill
- interlinked-harnessSkill
- interlinked-observabilitySkill
- interlinked-quality-gatesSkill
- interlinked-semantic-indexSkill
- interlinked-setupSkill
- interlinked-simplificationSkill
- interlinkedSkill
- interlinked-spec-auditSkill
- interlinked-supply-chainSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
After a Claude session has delivered a native PostToolBatch, declared single-file edits queue TypeScript checking until that boundary.
- Very specific: line 182
When editing a hook entry, adapter, daemon, installer, generated hook, or ledger writer identified by src/harness/e2e-boundary.ts, add or …
- Distinctive: line 243
Every run copies the project into a disposable snapshot first.
- Very specific: line 283
Never "fix" a weakening by editing gates in the candidate: the candidate's own gate setting cannot waive POLICY_WEAKENED.
- Distinctive: line 291
COMMIT into a disposable directory with empty execution state, runs every plain scenario and every stability cohort there and checks the …
- Very specific: line 375
Stop hooks. Do not recommend interlinked jev or jev.enabled to users.
- Very specific: line 443
No runner is installed automatically.
- Very specific: line 493
When stderr is a terminal, the waiting command prints progress immediately and every ten seconds, including in --json mode.
- Very specific: line 501
If the daemon logs [interlinked:hook-coverage] NOT MEASURED: Hook coverage history log … holds N of M committed bytes, the append-only …
- Distinctive: line 539
When observer readiness interrupts recovery, the failed job retains the observer's first three concrete reasons rather than only a generic …
- Distinctive: line 642
Two tiers: Default = high-signal gate: tsc, biome, oxlint/eslint, semgrep, gitleaks, dep-audit (+ language tools as available) plus the …
- Very specific: line 768
When a bounded edit request already requires the full suite, the scheduler retains its durable obligation and records budget-exceeded …
- Distinctive: line 876
If the execution itself fails or is deferred, concurrent source/environment changes do not trigger an automatic retry: the command returns …
- Distinctive: line 1035
Run verify to see pre-existing findings in a file you're about to touch (the edit gate hides those as warnings).
- Very specific: line 1123
Use --only-selected with --config or --eslint-config when adding an isolated profile: new automatic/inferred linters remain review items, …
- Distinctive: line 1158
Default inferred targets still use the adapter's discovery exclusions.
- Very specific: line 1234
Prefer deleting a redundant assertion, adding a checked declaration type, using vi.mocked with complete test fixtures, or validating an …
- Very specific: line 1252
Default vs advisory: Default-gate checks fire on every edit + default verify.
- Very specific: line 1295
Every finding is tagged [proven] (a real tool ran it — fix it) or [heuristic] (regex/AST shape — evaluate it).
- Very specific: line 1343
When several PostToolUse checks defer for one edited file, the model-visible output is one [interlinked:checks-deferred] NOT CHECKED …
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
interlinked-verify — check your work & land edits through the gates
verify --all-checks also includes the advisory catalogue for README command
drift, unread configuration keys and summary coverage of observed file touches.
These checks are omitted with --only; --skip still applies. Unavailable inputs
remain counted separately. Summary evidence is session history, not a net Git diff,
and lexical command/configuration findings require source review. Per-check timing
is supplementary telemetry and never substitutes for a completed check.
The experimental metrics decisions pipeline is separate from verify and its
check registry. Its opt-in PostToolUse warnings are advisory, use actual pre-edit
hashes, and retain failures/budget exclusions as unmeasured outcomes. They do not
clear type, coverage, mutation or e2e obligations and do not change
DEFAULT_ADVISORY_SKIPS. Use interlinked-quality-gates and
docs/decision-metrics.md for pilot labels, five-arm audits and model drift.
Claude compiler batches
After a Claude session has delivered a native PostToolBatch, declared single-file
edits queue TypeScript checking until that boundary. Related edits in the same model
message are checked against the completed tree, once per project. Existing atomic
multi-file calls retain their shared check path. Other clients, unknown writers, and
Claude sessions that have not demonstrated the boundary keep per-edit checking.
Security, content guards and lint still apply per edit. Function-token and
complexity caps advise by default; harness.edit_metrics.mode: "enforced"
opts into their existing hard edit gate without changing limits or baselines.
Deep-audit findings follow DEFAULT_ADVISORY_SKIPS in ordinary hook feedback as
well as default verify. Run verify --all-checks for the full review; raw findings
remain in check-results.jsonl. Repeated warnings never gain severity or confidence
from repetition. Project-wide Gitleaks runs in explicit verify/background recovery,
not the interactive ChangeSet batch. Inline secret checks remain active. A deferred
Gitleaks scan is NOT CHECKED, never a passing security verdict.
Gitleaks subprocesses use at most two Go execution threads (GOMAXPROCS); an
existing value of 1 is preserved. Interrupted or truncated asynchronous scans
produce unavailable evidence. Recovery retains a failed scan per project for the
rest of that job in the current daemon, instead of repeating it for every receipt
batch. Successful scans are not cached across different inputs. A fresh explicit
recovery job or daemon replacement permits another attempt.
The idle drain does not restart a completed recovery plan while all pending
versions were already in that plan, including after daemon restart. New observed
versions permit automatic recovery again. After repairing a tool or capacity issue,
run interlinked harness coverage verify --json to retry unchanged pending work.
Pending evidence is retained; stopping automatic repetition does not certify it.
Final compiler errors arrive as batch context so Claude can repair them; a native batch
block would cancel its loop. Unresolved errors and unavailable compiler work remain
in .interlinked/compiler-batches/ and are checked before Stop and commit, including
after daemon restart. Do not delete this state to bypass verification. A queued edit
has no TypeScript verdict and must not be described as fully checked. Explicit verify
and commit checks remain necessary for the required repository validation scope.
The opt-in TypeScript scheduler (quality_checks.typescript.scheduler, OFF by
default, local tier only) can defer the synchronous tsc run for an edit that a
logistic predicts clean. The edit prints [interlinked:typescript] deferred by
scheduler (p=0.xx) and gets no TypeScript verdict. The deferred files are
checked together at the next edit that the scheduler runs and always at Stop. If
you must claim a clean tree, run interlinked verify or tsc yourself. The weights
were fitted on interlinked-cli only (holdout AUROC 0.805; AUROC 0.510 on a second
repository). Every decision is in check-results.jsonl; to list the deferred
runs, use interlinked query checks --where scheduler.deferred=true.
Scheduler obligations are scoped to the session and child actor. Stop, SubagentStop, SessionEnd and commit drain that actor's pending work, even after the option is disabled. Compiler errors remain pending across retries and daemon replacement until a later check resolves them; diff filtering cannot demote an outstanding error into a pass. Work arriving during a drain stays pending. An inapplicable project is reported without claiming tsc ran. Unreadable deferred state is retained and continues to block completion. Restore that file from a known-good backup before retrying; deleting it or renaming it is not verification.
Runner summaries from rg -n/grep -n are recognized with a single numeric line prefix.
A failure in any recognized summary takes precedence over a pass; shell success after
a pipe/trailing command alone still does not prove that tests passed.
Repeated implementation advisory
repeated_implementation compares same-file Python and JS/TS function bodies by
AST structure, with a minimum of five statements. Tests, generated files, small
delegates and functions containing nested implementations are excluded. This is
conservative structural matching, not proof that two contracts are equivalent.
It names the matching functions and source lines, shows literal values, and suggests
a shared operation when the contracts match. Do not compress lines or automatically
extract helpers to satisfy it. Preserve correctness and independently evolving behavior.
The daemon reports new or changed groups once per session after all files in the
observed tool changeset have landed. Unchanged groups remain in structured check
results. Stop rescans current touched files through the existing digest and repeat-Stop
filter; verify --all-checks reports the full advisory inventory. Default verify skips
this check. It never blocks an edit or Stop and never creates a completion obligation.
A daemon restart can repeat advice. Separate tool calls are separate observed changesets.
Python uses an isolated, bounded python3 AST parser and does not execute candidate
code. Missing parsers, invalid syntax and oversized detector input return NOT CHECKED,
not a clean duplication verdict. Initial scope is whole functions within one file;
cross-file matching and arbitrary repeated sub-blocks are not covered by this check.
On the first authored edit per language/session without a detected test layout,
PostToolUse probes Python/JS/TS/Rust/Go runner readiness and supplies setup/test guidance.
It does not install packages or hard-block absent tests. Inspect custom layouts before
adding public-contract assertions, then execute them. Explicit tests readiness rechecks
changed prerequisites; the automatic probe does not run on every edit.
For Cowork, load interlinked-cowork. cowork verify <workspace> runs only tsc,
biome and gitleaks with before/after workspace hashes; skipped checks remain
unmeasured. It is not the full verify command or a per-edit ratchet. Run configured
repository checks on the filesystem holding the actual version being reviewed.
The optional Bash tsc accelerator recognizes executable tsc / npx tsc
segments in flat, quote-aware command lists. It preserves quoted arguments and
rewrites only the matched invocation. Search patterns, look-alike executable
names, comments, multiline commands, substitutions, and shell grouping fall
through unchanged; run the original compiler normally in those cases.
The file-mode Rust formatter reads the nearest Cargo.toml only within the
project root. A neighboring directory with a shared name prefix is outside
that scope; unreadable manifests are reported instead of guessing an edition.
Python behavioral suites run from the resolved project root; companion filenames are
not a sound dependency boundary. Directory-name prefixes never establish confinement.
Missing-companion guidance describes a naming-convention observation, not proof of missing
behavioral coverage. Inspect the project's test layout before adding language-appropriate
public-contract tests.
Interlinked gates edits at three moments, and they run different check sets:
- PreToolUse content gate: real agent Edit/Write calls run deterministic
pre_blockchecks without synchronously launching biome/tsc on the daemon event loop; those external overlays are recorded as scheduled for applicable file types and run asynchronously after the write. Routine scheduling produces no model warning; unavailable or failed checks still report NOT CHECKED. Python/Go/Rust edits do not receive JS/TS overlay scheduling. Transactional CLI paths (interlinked write/verify-changeset) still runpre_block → biome → tscand fail closed.interlinked multi-edituses the same shared content gate. - Other PreToolUse guards (real Edit/Write only): function tokens, coverage, cyclomatic, CRAP, baseline — see interlinked-quality-gates; package/allowlist — see interlinked-supply-chain.
- PostToolUse (after the write lands): external tools (tsc/biome/eslint/semgrep/gitleaks/…) plus the inline check registry. Findings arrive after the write; default-gate errors can return blocking feedback requiring repair, without rolling back the tool. Bash and unknown writer tools are routed by their observed filesystem ChangeSet, not merely command parsing.
PostToolUse keeps full findings in the check-results ledger while presenting compact diagnostics. Repeated advisories are acknowledged per session, check and file; a successful scoped recheck clears that acknowledgment. Pre-existing TypeScript findings show a count and the evidence path. "Newly observed" means changed since the previous compiler report, not proven caused by this edit. Changes observed outside the tool's declared write targets are labeled "writer unknown"; TypeScript findings there are workspace feedback and do not block the observing call. Security checks and workspace obligations still apply.
For test evidence, a recognized runner summary can establish the outcome of a piped run. An unsummarized pipeline's final exit code alone cannot prove the test process passed. For scratch probes, reading a repository file and writing an unrelated temporary fixture does not establish a patch applier; the guard checks statically resolved write destinations. Unknown destinations still rely on filesystem observation after execution.
interlinked verify is the on-demand, whole-project run of that same check catalog.
Its function_tokens finding uses the shared interlinked-code-v2 adapters and reports every current
product-source implementation over the effective cap. Unsupported languages are reported as
not measured; semantic-model token counts are unrelated and never substitute for this check.
JS/TS counts match metrics score function size, edit gates and commit checks. Recovered source
syntax remains unmeasured. Verify is an inventory of current over-cap functions; edit/commit
ratchets separately allow existing debt to hold or shrink, including debt revealed by migration.
Explain that size unit as syntax tokens (lexical tokens); AST-node counts and embedding
model tokens are different units. metrics score is an advisory composite, not a replacement
for verify or the hard cap. A provisional score does not prove checks passed. Use
metrics gates --json for actual coverage execution/freshness and metrics coverage status
for index validity. metrics coverage warm explicitly runs full Vitest coverage; subsequent
per-edit runs can replace affected test-file contributions. Proposed evidence promotes only
after the matching edit lands, and unsupported/stale capture remains visibly unmeasured.
Route evidence receipts, incremental coverage setup and deletion trials to
interlinked-quality-gates.
Load this when
E2E lane for Interlinked CLI boundary edits
When editing a hook entry, adapter, daemon, installer, generated hook, or ledger
writer identified by src/harness/e2e-boundary.ts, add or run a fixture-backed
test: npm run build:e2e && npm run test:e2e. Fixtures own their cwd, sockets,
daemon PID and ledgers. Daemon assertions require a fresh transport receipt
with outcome: "daemon", plus PID ownership; cold fallback is a separate case.
interlinked e2e scaffold <name> --event PreToolUse --tool Edit creates
src/e2e/<name>.e2e.test.ts. --dry-run prints it. Replace the deliberate
failure with the required behavior and add MUST-NOT-FIRE cases.
npm run test:e2e:coverage collects child coverage after build:e2e.
Its merger reads one raw child report at a time and retains only scripts under
the built dist/ directory before a single bulk merge. Incremental V8 merges
are not equivalent because function/block granularity precedence changes.
The lane still requires every recorded
child to exit cleanly and flush coverage, includes product grandchildren, and
preserves zero-hit executable models. A passing test suite alone is insufficient:
the merge and strict coverage check must finish successfully. The merge stage
records total scripts read, retained bundle scripts, and unique merged scripts.
Vitest-only src/test-setup/ helpers are outside the product boundary inventory;
their unit tests remain in the full test suite.
The source-only Jev entry modules src/commands/jev.ts and
src/harness/jev/internal-cli.ts are also outside that inventory. Any emitted runtime
bytes from either module fail inventory generation until it is reclassified. Runtime
shadow writers and isolated runtime bundles still retain zero-hit coverage obligations.
Route ratchet refusals to interlinked-quality-gates.
The advisory [interlinked:e2e-obligation] Stop warning credits only commands
observed in the current session. Run the lane from that session; another
agent's run, a terminal run, and unit-only evidence do not satisfy it. The viz
feed labels base, unit, integration, e2e and unknown lanes separately.
E2E_STABILITY=1 npm run test:e2e adds the 5,000-event stress case.
Project e2e scenarios in any host repository
A repository with .interlinked/e2e-policy.json declares projects, suites
(managed-contracts: argv prepare steps, build artifacts), scenarios
(affects globs, contractIds from .interlinked/behavioral-contracts.json,
required, boundary) and expectation records. Only that policy creates
obligations; a repository without it pays nothing.
[interlinked:e2e] <project>: <scenario> needs current e2e evidence after <path> changedfires on any observed edit to a mapped input (Edit, Write, Bash, patch). Run the exact command it prints:interlinked tests e2e run --project <p> --scenario <s>.needs-mappingmeans a protected input has no scenario. Add it to a scenario'saffects; do not delete the protected glob.tests e2e status/planinspect (exit 0).tests e2e checkverifies the working tree (exit 0 satisfied, 1 open requirement or measured failure, 2 UNCONFIGURED / unavailable).tests e2e runprepares, drives the public executable in a disposable workspace, writes.interlinked/test-runs/e2e/<runId>/receipt.jsonand appends to.interlinked/e2e-obligations.jsonl.- A receipt satisfies only its exact generation: policy digest, affected
files, the contract manifest and acceptance file, each case's cited
requirement document, declared inputs and the bytes of any path-shaped
executable the case invokes. Another relevant edit makes it
stale; a failed case isfailed; a missing toolchain, a failed prepare step, an input the collector could not capture (over 8 MiB, a symlink) or a receipt that does not parse strictly isunavailable; an unaccepted contract isreview-requiredeven when execution passed. A receipt from another worktree or with a runId the ledger never recorded isRECEIPT_MISMATCH. - Every run copies the project into a disposable snapshot first; prepare steps and cases execute there with a private HOME. The live tree is only read. Compiled executables are copied byte-for-byte with their mode.
- Boundaries:
entry: "process"(real: ["application"]),entry: "http"driven through a suite-OWNEDservicesentry (the supervisor allocates the port, proves readiness and clean shutdown; a port that still answers after stop belonged to something else and the run cannot qualify), andentry: "browser"for aplaywrightsuite (the app is owned, fronted by the supervisor's recording proxy, and every declaredrequestsentry must be observed through it — a health check or an intercepted API earns nothing). A literal-URL case is never a boundary. - A bound PROPOSED expectation is visible as an advisory (
~line) and does not block completion unless the project setsgates.review: "require". Disputed and superseded bindings always block. - The loop for a new behavior:
tests e2e scaffold <name> [--suite <id>] [--write]prints a proposed scenario (required: false, empty affects, a placeholder contract id) and a skeleton whose only assertion FAILS deliberately with every assumption markedASSUMPTION/REPLACE. Replace the assumptions with the observed outcome, add the scenario to the policy yourself (the command never edits it),tests e2e run, thentests e2e qualify --scenario <id>for a stability cohort, thentests e2e check. A deliberate failure is CASE_FAILED, never a pass. - A
qualifiedcohort is a sample, not a flake-free claim. Its reason states the one-sided 95% upper bound on the per-run failure rate, 1 − 0.05^(1/n): the default 3/3 bounds it only to ≤ 63.2%, 5/5 to ≤ 45.1%. The bound assumes independent attempts; each attempt declares its own seed, but whether a run consumed it is not checked. Amixedcohort states its observed failure rate. Quote the bound, never "qualified" alone, when you report stability. - Completion gates judge EXACT bytes, never "the repository":
tests e2e check --stagedjudges the index (an unstaged fix does not count),--revision <rev>an exact commit; both are materialized from git's object store (no archive attributes, no smudge filters).--base <rev>compares the judged policy with the trusted base's: a removed/demoted requirement, a loosened gate (an omitted gate is its default: commit/ci require), a narrowedaffects, an unbound contract, a dropped proof/request/stability profile isPOLICY_WEAKENED(exit 1). The reviewed path istests e2e policy replace --base <rev> --project <p> [--scenario <s>] --rationale "<why>"; the record is read from the judged target, so COMMIT.interlinked/e2e-policy-changes.jsonl(carve it out of.gitignore). Never "fix" a weakening by editing gates in the candidate: the candidate's own gate setting cannot waivePOLICY_WEAKENED. tests e2e gate installwrites pre-commit (check --gate commit --staged --base HEAD) and pre-push (onecheck --gate ci --revision <sha> --base <remote sha>per ref) hooks that CHAIN with existing hooks and only CHECK;gate uninstallrestores the originals. A blocked commit or push prints the exact recovery command: run it, do not bypass the hook.tests e2e ci [--base <rev>] [--revision <rev>]exports the candidate COMMIT into a disposable directory with empty execution state, runs every plain scenario and every stability cohort there and checks the export against the event base. Workstation receipts, cohorts, untracked fixes and local records never count (CI_RECEIPT_NOT_FRESH); preparation steps must provision dependencies. Evidence lands in.interlinked/test-runs/e2e/ci/<commit>/.- The Stop reminder is bounded: three identical reminders, one pause note,
silence until the open set changes; an all-
unavailableset is a HANDOFF (do not retry in a loop); with the daemon down it says NOT CHECKED.interlinked verifyprints the same verdict in itse2esection. - The operator guide is
docs/project-e2e.md(schema, codes, targets, gates, CI, proof limits, recovery table). [interlinked:e2e-quality] <project>/<scenario>: <rule> at <path>:<line>is advice attached to the scenario a test edit affects (§12.3): a removed assertion or test block, an added.only/.skip, a specific matcher replaced by truthiness, a raised timeout/retry budget,force: true, a fixed timing wait, a CSS/XPath locator, an intercepted application endpoint, or a new test with no assertion. Net-new only (a moved line is not a signal); it never changes the verdict — the scenario still clears only through a supervised run.- A
playwrightsuite owns its application as aservicesentry; the run fronts it with a recording proxy (INTERLINKED_E2E_BASE_URLis the proxy) and forces--reporter=json --workers=1. A browser case earns thebrowser-driverboundary only when the proxy saw its requests inside the case's first attempt;@playwright/testabsent in the project isunavailablewith install guidance (tests e2e doctornames it too), never an install. - Expectations:
tests e2e expectations propose --from draft.jsonrecords an agent-authored statement with sources, assumptions and questions asproposed.accept --from decision.jsonbinds the exactrevisiondigest and records the linked contract digests as configured acceptance (a local decision, never authenticated human approval).replacesupersedes with rationale and invalidates affected receipts;reviewlists questions, source provenance (matched/stale/unavailable) and diffs. Keep unresolved product questions inquestions; do not turn an inference into a hard requirement. - Adoption workflow for a repository with no policy yet (all read-only until
adopt):tests e2e discover --out report.jsoninspects manifests, build and test commands, executables and existing contract cases, proposes an ADVISORY policy with one scenario per process-runner case, and lists gaps (no contract cases, ambiguous nested manifests, unsupported runners). Review the report, thentests e2e adopt --from report.json [--project <id>] [--scenario <id>]writes only the selected configuration;--mode requiredmust be explicit and expectations in a proposal are always dropped.--replaceis required to overwrite a policy (discarded, not merged).tests e2e surfaces [--write]inventories bins, scripts and OpenAPI JSON operations and shows which scenariosurfaceIdsbind them (explicit/unresolved/dangling); YAML documents, routes registered in code and unresolved$refs are reported as limits, never as an empty complete inventory. An interface no extractor knows is declared in the project'ssurfaceslist ({"id": "cli:custom", "kind": "other", "address": "…"}) and bound through a scenario'ssurfaceIds; that is the language-independent path. Discovery protects the real layout (src/**, python packages, top-level source files, the executable's file) and binds build scripts as shared inputs; a build whose outputs it cannot infer is asuites[].artifactsgap to resolve before--mode required, which refuses a project with no scenarios or with protected globs that match nothing. Depth-omitted subtrees are listed in the report'slimits.omittedSubtrees.tests e2e doctordiagnoses policy, manifest, contracts, acceptance, toolchain, mapping, ledger and receipts without running anything (exit 1 on a failed prerequisite, 2 on an invalid policy). Configuration alone never produces a pass; the next step is alwaystests e2e run.
Shipped: managed process contracts for any language with a build/run argv
(TypeScript and Python validated locally; the Rust fixture's compiled route
waits for a Cargo-equipped runner), the discover / surfaces / adopt /
doctor adoption workflow, structured-runner suites (JSON protocol / JUnit
report import), owned loopback HTTP services with service-bound contracts,
and per-scenario proof modes (proof {mode: old-new | controlled-fault |
characterization}). A controlled-fault proof may record several violations
of the same requirement with faults: [...]; it is demonstrated only when the
designated cases fail under every one, because a case often notices one
violation and misses another. A counterfactual proof names its designated cases as
{id, outcome?, action?}: outcome lists the observables that ARE the
designated outcome (the case's other declared observables must hold on the
comparison side), action lists cases that must pass there first. Without
that declared evidence the supervisor cannot tell a setup failure from a
behavioral red, so it reports INCONCLUSIVE; output presence, exit codes
and status classes never count as evidence. Scaffolding, browser runs,
repetition cohorts and git/CI gates are implemented as described above.
Automatic conversion of existing tests into proposed contracts remains planned;
the MCP/Worker profile remains an explicit release gap.
Jev evaluations are internal experiments, separate from public verification and
Stop hooks. Do not recommend interlinked jev or jev.enabled to users.
For authorized internal evaluations, see docs/internal/jev.md. The runner
sends selected evidence to TypeSafe; its findings are advisory, not gate evidence.
- You want to verify a batch of edits before declaring done.
- A
pre_blockcheck blocked an edit (see also interlinked-harness for how blocks read). - You're landing a cross-file refactor and hitting transient
tscerrors. - You're unsure whether a finding is default-gate or advisory-only.
- You need to write a probe/analysis script and want it in the right place.
interlinked verify
Behavioral contract evidence
interlinked tests contracts import <source> --json prints proposed cases from explicit
json interlinked-contract fences; it never executes or accepts them. Each fence is a
JSON object with id, description, inputs (literal project-relative UTF-8 files),
runner: {kind: "process", argv: ["python3", "main.py"]} and
expect: {exitCode: 0, json: {message: "ready"}}. Import records source path/hash/quote
and ties expected observations to that exact example. Save selected cases in a
version-1 cases manifest at .interlinked/behavioral-contracts.json (or use --file).
inspect --json reads provenance; run --timeout 60000 --json explicitly executes the
selected runners and records per-case receipts under .interlinked/contract-runs/.
run --previous <manifest> also tests retained prior expectations against current code.
Process cases use a disposable workspace containing declared inputs and already installed
tooling. This is not an OS sandbox. External state is unsealed, so historical passes are
not reused as current verdicts. HTTP cases use a literal loopback HTTP URL, GET/POST,
no redirects, and exact text/JSON/status/header expectations. Comparisons do not normalize
string values. Missing tooling, stale inputs, conflicting citations and budget exhaustion
are separate from a measured failure. A source citation alone does not prove semantics:
use source.observation: json|stdout|contract-example for exact example binding.
Accepted case digests belong in operator-owned .interlinked/contract-policy.json,
{version: 1, accepted: {"<digest>": "rationale"}}. Never self-approve a proposed case.
configured describes that file, not authenticated ownership; protect it outside agent
write authority when required. Intentional replacements need rationale and changed
requirements. replaces: {id, reason} does not automatically grant acceptance.
Post-edit [interlinked:test-contract-review] is bounded, deduplicated advisory guidance
about new/changed expectations, fixtures or collection settings. Review expectations
against user requirements before adapting them to implementation output. No automatic
runner execution or Stop repair loop is added. See
docs/plans/behavioral-contract-verification-20260916.md for schema and scope limits.
interlinked tests readiness <language> --cwd <project> --json probes prerequisites for
Python, TypeScript/JavaScript, Rust and Go without collecting tests or installing packages.
Python names the selected interpreter and reports exact approved install argv when possible;
an absent runner or coverage plugin is unavailable evidence. Provision within the existing
authorization boundary, then rerun readiness and execute the tests. There is no system-Python
fallback around a broken selected environment.
At a meaningful change boundary, interlinked tests review [paths...] --base HEAD --json
provides a bounded source/test inventory and at most five simplification candidates. Without
paths it discovers staged, unstaged and untracked Git changes. It reads at most 32 source/test
files of 256 KiB each; deletions, unsafe paths and exhausted budgets are explicit gaps. This
is review guidance, not test execution or a passing verdict. Retain executable assertions for
old public contracts and new requirements; review validation ownership, duplication, forwarding
and shared mutable state together. After behavior passes, one focused simplification pass is
enough; rerun relevant tests after changing code and leave uncertain advice unresolved.
interlinked tests suite <language> --cwd <project> --timeout <ms> --json explicitly runs
a bounded project suite for typescript, javascript, python, rust or go. The default
budget is 60 seconds including admission. TS/JS use the shared Vitest scheduler; Python uses
the active VIRTUAL_ENV, then project .venv/venv, then platform Python (an explicit
adapter interpreter takes precedence). A selected missing interpreter is unavailable;
it never silently switches environments. Rust uses offline Cargo
with two jobs/test threads; Go runs all packages with two build jobs and caching disabled.
No runner is installed automatically. Python retains project pytest options and configured
discovery (testpaths, python_files); the invocation does not append an implicit ..
Fresh structured pytest case reports distinguish test failures from collection/configuration
errors and coverage-plugin failures. Fixture and teardown failures count as failed tests.
Known failures remain visible alongside incomplete collection; bounded diagnostics accompany
unavailable results. Terminal text alone is not a pytest verdict. Only an observed passing suite exits successfully;
missing/empty execution is not a pass. tests plan/run/status remain the TS/JS dependency-aware
queue interface; the non-TS suite command does not certify or discharge that queue.
Active distributed pytest collection is currently unmeasured. Serial execution remains
supported when xdist is installed but inactive; no plugin is silently disabled to obtain a pass.
The default Python edit/commit coverage runner isolates each invocation's JSON report and
coverage.py database (COVERAGE_FILE) in an owned temporary subdirectory of the requested
report directory. Normalized results survive; those temporary files are cleaned after parsing,
including failure paths. Project cwd and pytest configuration remain in effect, and existing
caller coverage files are preserved. Custom command overrides retain their argv/report contract
and remain unqualified for concurrent report isolation and structured red/green verdicts.
Python CRAP attribution requires native function regions with declaration lines; unsupported,
ambiguous or wholly excluded functions remain explicitly unmeasured. A green suite with an
unmeasured enabled quality check does not discharge commit obligations. See the quality-gates
skill for the native coverage.py/Radon attribution contract.
For evolving requirements, distinguish newly required observable behavior from contracts that should remain valid. Exercise representative successful, boundary, error and state-transition cases from the public task before concluding the implementation is complete. Existing passing tests can all remain green while the new feature is largely missing. Keep this proportional to the change; do not create a mandatory test-authoring loop for trivial reversible edits. Hidden evaluator cases are unavailable to product checks and must not shape harness rules.
Heavy runners retain at least the configured 2 GiB admission budget plus the host reserve; the proportional ceiling does not reject an otherwise idle nominal 8 GiB Linux guest merely because its reported usable RAM is slightly smaller. Insufficient available memory still defers.
The proposed qualification baseline is an 8 GB whole host shared with the user's
other applications. Its operator plan, docs/plans/8gb-host-resource-plan.md, is private
operator material and absent from public clones. Qualification requires aggregate measurements across owned
processes and useful completed checks, not merely successful resource deferrals. It does
not change today's verification contract: interrupted or partial work remains unmeasured,
and a constrained run cannot satisfy a required full scope by selecting fewer tests.
Cognitive-complexity, type-smuggling, and cast-justification diagnostics align snippets with TypeScript's line numbering, including CRLF, lone CR, and Unicode line/paragraph separators. Preserve those line endings when reproducing a warning; normalizing a fixture can hide a location bug.
For [interlinked:hook-coverage] NOT CHECKED, use interlinked harness coverage verify
--json. This starts one daemon-owned recovery run over the pending versions and waits
for completion; --no-wait returns after starting it. Use harness coverage status
--progress --json for cached progress: it reports generation, observation time, pending
count and job counters without rehashing files or returning historical receipts. This
is not a fresh coverage verdict. Verification starts with a compact job acknowledgement.
When stderr is a terminal, the waiting command prints progress immediately and every ten
seconds, including in --json mode; stdout remains one final JSON document. Batch counters
can stay unchanged while a large test plan runs. The latest project test observation is
shown separately: it may belong to another request and is not a liveness or success claim.
Imported lint uses its asynchronous project runner during recovery; it is not a file-only
deferral. Its ordinary tool timeout and resource admission still apply.
Redirected stderr stays quiet. Ctrl-C stops the waiting CLI, not the daemon-owned job;
inspect it from another terminal with harness coverage status --progress --json.
If the daemon logs [interlinked:hook-coverage] NOT MEASURED: Hook coverage history log …
holds N of M committed bytes, the append-only history log was shortened or removed while
hook-coverage.json kept its pointer; the daemon refuses to report less history than it
committed. Run interlinked harness coverage repair-history (offline, explicit): it sets the
partial log aside as hook-coverage-history.jsonl.orphan-<stamp>, restarts the history at
zero and keeps the current state and pending obligations. Stop the daemon first with
interlinked harness stop; repair refuses an active daemon so its in-memory ledger cannot
overwrite the repair. Start it again after the repair. Lost history is not recovered evidence.
The waiting CLI refreshes pending identities and the matching job's detailed results before
reporting completion, without copying historical receipts. Older daemons returning full
reports remain supported. Incomplete or unmeasured checks exit nonzero even when findings
and pending counts are zero. Use plain harness coverage status --json for an explicit refresh,
all pending identities and recent receipt details. Status considers the newest 100 automated
receipts and 100 manual reviews, returning at most 1 MiB per kind. Oversized rows are omitted
whole; history reports total, returned and omitted counts, ordering, limits and ledgerPath.
Complete history stays in that on-disk ledger; omission from a status response never deletes
evidence or acknowledges pending work. Checks reuse the configured PostToolUse battery in bounded
external batches. This does not replay PreToolUse guards or certify every hook phase.
The test scheduler collapses wholly ignored dependency/build directories during checkout
pollution scans, while retaining individually ignored files such as .claude/settings.json.
It does not enumerate node_modules into the Git status buffer before every test batch.
While waiting, an unavailable status response is retried up to three consecutive
polls without restarting verification. A responsive report resets that counter.
Persistent unavailability exits nonzero with the original reason; the job may still
be running. Only a ready response with a missing or different job establishes that
the observed job changed or disappeared.
On Claude and Codex Stop/SubagentStop, advisory coverage feedback stays on exit-0 stderr and
does not request another agent turn. Only an explicit blocking decision requests
continuation. This delivery rule does not clear pending evidence or certify checks;
retry unavailable recovery after its prerequisites change, not merely because a
turn ended. Writer identity remains unknown after recovery.
An initially absent watched path contributes to policy identity but creates no write-check
obligation. Creation or deletion after observation still requires evidence; previously
recorded historical gaps are not cleared by this rule.
Repository recovery observes only reservations lexically inside that repository. Reservations
for external memory files or other checkouts do not make this repository unmeasured and gain
no coverage receipt from it. In-repository symlinks and unsupported glob reservations remain
explicitly unmeasured.
When observer readiness interrupts recovery, the failed job retains the observer's
first three concrete reasons rather than only a generic filesystem-unavailable message.
Recovery groups pending files by project and applicable checks, then checks up to 32
compatible files together. Documentation does not inherit an unrelated source-test
timeout, and nested projects acquire their own admission lane sequentially. Receipt
batches share one fresh test scheduling request per project, language and check configuration
over the job's complete planned input cohort. This prevents an opaque full-suite plan
from running again for every 32 files. The shared request is queued once; later receipt
batches do not recreate completed test requests. The scheduler may retry actual input
drift within that request's deadline; unrelated requests arriving later cannot hold its
validated completion open or replace its result. Each recovery test process gets at
least 15 minutes and at most two workers within the original 30-minute job deadline.
Source inventory, all planned inputs, declared fixtures and environment must still
match before a later batch receives the result; a claimed validated runtime is checked
again too. Changed inputs remain pending for a fresh job. Failed and unavailable results
are retained for this job without repeated execution and are never promoted into passes.
This is one job's execution evidence, not a persistent test cache: another job or daemon
replacement executes a fresh test cohort for its remaining inputs. Ordinary hook deadlines,
source-count limits and unavailable-result semantics remain unchanged.
Explicit recovery now waits up to 30 seconds for each external batch's existing project
lease. Its affected-test scheduler waits within the configured recovery deadline and
permits a necessary full-suite plan without the interactive test-count cap, retaining the
two-worker limit. Ordinary PostToolUse still uses immediate admission and its test-count
cap. Unsupported runners and exhausted capacity/time remain unmeasured; the shared named
test dispatcher supports TS/JS with Vitest and single-language Python/pytest, Rust/Cargo,
and Go project suites. Mixed-language batches remain explicitly deferred. Python no longer
guesses one companion file, Rust executes assertions instead of only compiling tests, and
Go covers the project packages. These project suites produce fresh execution evidence, not
reusable dependency-closure receipts. Missing runners, empty/unrecognized successful output,
and pytest collection/configuration errors are unmeasured. Current non-TS suite failures are
warnings; without a before result they are not classified as introduced regressions.
Automatic non-TS suites require a marker for their own language at the selected root.
A Python file under a TypeScript repository without a Python project marker stays
unmeasured rather than launching pytest over unrelated scratch projects. pytest.ini
and .pytest.ini identify Python project roots, alongside the existing Python markers.
Python/Rust/Go files are not enqueued as Vitest requests. Explicit tests suite commands
retain their selected-project contract; declare the intended test project before retrying
an automatic check with no qualified root.
The external path cap applies separately to each check's applicable paths in the selected project.
An inapplicable binary path does not consume a TypeScript check slot; an applicable security
target still counts. This is not a blanket dependency/cache exclusion.
The daemon retains automated_check receipts with exact file identities, completed check
names and findings. Completed checks may have findings; a receipt is not a clean verdict.
Nonempty unavailable on a receipt means partial evidence: completed checks and their
findings are retained, but the file version stays pending. Multi-file per-file checks retain
partial receipts when shared checks defer. Shared receipts include per-check configuration
hashes and the request's captured file identities. File or policy changes prevent full discharge.
Legacy receipts
remain readable. These historical receipts are not yet a cache for skipping future work;
check-specific configuration/dependency/runtime identities and exact batch scope are still
required before safe reuse.
Ordinary single-file and multi-file PostToolUse checks consume their exact pending versions
when all applicable evidence completes without deferral. Explicit recovery uses the same
shared scope evidence. Recovery has a 30-minute job budget; cancellation reaches the job's
owned asynchronous subprocesses and capacity waits. Earlier recorded evidence survives.
Unavailable checks, unreadable/excluded/absent files, and file or policy changes during
verification stay pending. With waiting enabled, findings or remaining pending versions
produce exit 1. Re-run after the reported capacity/tool problem is resolved.
The current verification job is durable in .interlinked/hook-coverage.json: its exact
input plan, job ID, batch cursor, findings, unavailable details and original deadline
survive daemon replacement. The successor automatically resumes an interrupted batch
under the same job ID; completed batches are not repeated. File identities and current
policy are checked again before accepting new evidence. Receipts and batch progress
commit atomically, so a crash cannot advance progress without saving its evidence:
receipts append to .interlinked/hook-coverage-history.jsonl first, and the state write
that names the new log length commits them (a failed state write rolls the append back).
Completed job results also survive restart for waiting clients. Restart does not renew
the 30-minute budget; an expired job finishes with unmeasured work and pending versions.
An older daemon's memory-only job cannot be reconstructed during this upgrade: its saved
receipts survive, but a new verification run is needed after activating the updated daemon.
Filesystem reconciliation persists all observed changes in one atomic transaction, and
recovery persists each checker batch once. These writes retain the full receipt history
without cloning it or serializing it into one giant string. Generations still advance for
each changed observation or accepted receipt; partial and stale evidence cannot clear gaps.
Active recovery keeps the raw and framed listeners out of idle shutdown and delays
automatic build handover within its normal freshness deadline. Explicit restarts and
memory safety shutdowns still cancel owned subprocesses; the successor resumes durable
work within its original deadline. The CLI keeps following the same job across a short
transport interruption and still refuses a genuinely missing or different job.
Released reservations remain watched while pending, so review cannot acknowledge a stale
historical hash. harness coverage acknowledge <id> <generation> <identity> <evidence>
records an explicit manual review of the current version, including a reviewed deletion or
optional absence. It does not manufacture automated evidence. Do not bulk-acknowledge
unreviewed files. Checking/reviewing files never accepts protected policy; that is the
separate harness coverage accept-policy <digest> operation. Writer identity stays unknown.
interlinked verify [target]
--all-checks add the advisory smell/complexity/dead-code tier to the default gate
--only <tool> run only one external tool (e.g. --only tsc)
--skip <ids> comma-separated check ids to skip
--suggestions also run scored regex heuristics (sql-injection/perf/quality)
--structure also run artifact-structure checks
--adoption-gate fail when adopted structure categories drop below thresholds
--suppress <e...> add a suppression (file:check or file:check:reason)
--json --details machine-readable / per-file detailtarget may be a local path, a GitHub/git URL (cloned to a tmpdir, scanned, deleted), or
omitted (scans cwd). Narrow with --subdir <path> in monorepos.
Two tiers. Default = high-signal gate: tsc, biome, oxlint/eslint, semgrep, gitleaks,
dep-audit (+ language tools as available) plus the FP-safe inline checks. --all-checks
adds the advisory tier (complexity, taste/smell, DRY clones, most ubs_*, test heuristics) —
a review tool, expect noise, not a gate.
interlinked verifyexits 0 even with findings. It is a reporting tool, not a pass/fail gate — do not&&-chain on its exit status. To gate programmatically, parse--json, or useinterlinked write/verify-changeset(which do exit nonzero on blocking findings). (Exceptions that do exit nonzero: usage errors, and--structure-only/--adoption-gate, or a deferred/unavailable run that produced no verification verdict.)
Whole-project heavyweight work is admitted once per canonical project across CLI and agent
processes. If another verify/check/test batch already owns that lane, verify does not queue or
start a second memory-heavy scan: it prints verify deferred, states that no verdict was
produced, and exits 1. Retry after the active project run finishes. Different project roots use
independent lanes, and the compiler has a separate nested lease so --only tsc can run while
verify owns the heavyweight lane. --only <tool> really runs only that external tool; it skips
the inline code-quality census rather than retaining the whole-project scan before the requested
tool.
SessionEnd maintenance, fuzz, and benchmark runners additionally share a host-wide background lane owned by a detached supervisor. Duplicate jobs coalesce across daemon restarts; other jobs wait at most two minutes. Memory admission can defer a job, and low memory or a ten-minute deadline terminates the child group. Fuzz/benchmark worker counts are bounded by current CPU and RAM capacity and rechecked before execution. A deferred or interrupted background job is not a successful verification; use current completed reports and explicit checks for a verdict. See interlinked-setup for the memory budget and its limits. Scheduled Vitest runs and verify also acquire this host lane. Foreground requests close background admission while waiting; the background monitor interrupts its child group to yield capacity. Verify waits at most five seconds for the host lane, then exits 1 without a verdict.
Scheduled foreground test execution now checks host memory and runner-tree RSS throughout
the run. Its 4 GiB maximum tree budget includes workers; a sampled overrun, lost headroom,
or unavailable telemetry interrupts the process group and retains the request without a
pass receipt. Worker planning reads current CPU load as well as available memory. These are
sampled limits; see interlinked-setup for process-group and platform limitations.
The scheduled Vitest coordinator uses a 1536 MiB V8 old-space ceiling. Built-in
forks/vmForks workers receive an explicit cap after project resolution, preserving
smaller supported absolute limits from worker arguments or NODE_OPTIONS;
thread pools inherit it from the coordinator. Existing worker arguments and reporters
are retained. Custom pools are not given an inferred heap contract, but remain inside
the combined process-tree monitor. A heap limit is not an RSS limit: the 4 GiB tree
budget still includes native memory and subprocesses. Receipt identities include the
coordinator and fork heap settings.
Percentage heap settings and ambiguous quoted/escaped heap overrides are unsupported
and produce unavailable/deferred evidence, never a passing receipt. Unrelated runtime
arguments are retained; prefer an unambiguous absolute heap setting when one is needed.
Repository pre-push checks use the same admission lane and monitor. Do not respond to a
resource deferral by launching the full suite directly. Small checks can use the repository's
scripts/run-resource-bounded.ts --light supervisor with an enforced 1 GiB tree ceiling;
this does not replace required full verification.
Public interlinked verify and interlinked tests commands have an outer resource supervisor
as well: in-process planning/scanning is measured along with the runner tree. This supervisor
does not acquire a second host lease; the actual command keeps its existing admission protocol.
Memory interruption exits 75 without a verification verdict, even if partial output was printed.
Interrupted outer runs print peak RSS (or unavailable), budget and reserve bytes and
retain a deferred cli:<command> verification-stage row without a passing identity.
This includes a null child exit status from an external signal even when the local
supervisor did not initiate cancellation. A child's own numeric exit 75 remains a
completed child exit and does not acquire that interruption diagnostic or fallback row.
The fallback ledger follows tests --cwd; an explicit stage-ledger override still wins.
Exit 75 alone cannot say what happened — admission that never happened, a child killed
mid-run and a child that itself exits 75 all surface as 75 — so the bounded runner
(scripts/run-resource-bounded.ts, used by every pre-push gate step) writes a VERDICT
record to INTERLINKED_BOUNDED_OUTCOME beside its status (2026-09-28): not-run
(capacity timeout, memory budget unavailable, or cancelled while waiting; stderr
[resources] NOT RUN: … with the wait), interrupted (started, then killed or timed
out; [resources] INTERRUPTED: …), or exit (ran to completion; the child's own code,
including its own 75). The pre-push hook reads the record: not-run prints
[pre-push] NOT RUN (host capacity or memory unavailable; nothing failed): <command>,
interrupted prints [pre-push] INTERRUPTED (killed or timed out; no verdict): <command>,
and only exit (or a missing record) prints <gate> failed. The stage ledger row carries
the matching reuse_denied_reason. The push is blocked in every non-zero case — nothing
was verified — but only a real verdict names a failed gate.
The daemon's async project test gate and legacy affected-test process adapter also acquire
the shared host lane, even when their caller already owns project admission. They monitor
the runner tree and host reserve, set a 768 MiB Node heap limit, and pass
VITEST_MAX_WORKERS=1 to prevent a second uncapped Vitest suite during a push. The current
Vitest adapter honors that variable; other runners still use their own worker controls
and remain subject to the memory monitor. Capacity loss is an explicit deferral.
Repository pre-push heavy commands wait at most ten minutes for that shared lane;
light diagnostic commands wait five seconds. The same admission deadline includes
temporary memory shortages. Interactive scheduled tests may wait for a worker within
their existing request deadline; edit callers that decline waiting still defer promptly.
Waiting supplies no verdict. The bounded wrapper preserves smaller absolute
NODE_OPTIONS heap limits and refuses ambiguous or percentage overrides.
For this repository's protected pushes, the managed push handoff can make the
exact-revision Git gate the single validation owner on native clients that support
command replacement. Unknown hooks, unsupported commands or an unavailable handoff
retain the legacy checks, and a fallback of a recognized push is recorded with its
cause and shown to the agent. See interlinked-harness and
docs/verification-efficiency.md for the recognition and fallback boundaries.
Two read-only commands explain verification cost (2026-11-05):
interlinked tests trace [--trace <id>] [--json]folds one request's stage-ledger rows (joined onINTERLINKED_VERIFICATION_TRACE, which the daemon mints for a judged push, hands to the native command, and the pre-push hook prints and exports) into owners, phase costs, the wall-clock wait (overlapping waits counted once), the handoff fallback cause, and every check that ran fresh or produced no verdict. Default: the newest push trace; exit 2 when none exists. A push from a plain shell, or a client that never received the native replacement, has a hook-only trace. Test-file counts come from runner reports, not planned scope;unmeasured_runsretains missing counts in JSON and the human summary.interlinked tests opacity [--limit n] [--json]ranks the modules whose unhashed reads or unresolved imports make test results non-reusable by the recorded duration of the tests that reach them, with one import chain each. Durations come from the coverage index's accepted manifest; a test without one is unmeasured, never free. Native Vitest discovery supplies the test universe and shared setup and configuration inputs. Discovery unavailable means exit 2, not zero opaque tests. It changes no selection or reuse decision.
The repository gate builds the E2E-capable CLI once, then runs
node scripts/e2e-preflight.mjs before the full unit suite. This checks inventory,
baseline, declared moves, build maps and report destinations; it does not measure
coverage. The E2E execution and final strict measured coverage gate still run afterward.
Optional coverage-index comparison now requires
INTERLINKED_PRE_PUSH_COVERAGE_COMPARE=1; its existing skip flag takes precedence.
It supplies advisory comparison evidence and cannot replace the full suite.
Select, explain and resume tests
When a bounded edit request already requires the full suite, the scheduler retains
its durable obligation and records budget-exceeded before project/host admission,
test discovery or runtime hashing. This preserves the existing full-suite budget
policy; it is not a test pass. An already valid shared completion is checked first,
and an unbounded tests run can still discharge the pending request.
For substantial changes, identify the required verification scope before executing it. Record completed checks, the inputs they covered and unresolved work in the task plan. Repeat checks after relevant edits, failures, stale evidence or changed prerequisites; once the required checks pass on the final inputs, proceed to the handoff. Intentional flakiness/repetition experiments and required CI/coverage gates still need their own runs. Group related edits through the existing batch commands when they form one consistent change.
interlinked tests plan --base HEAD --json
interlinked tests run src/lib/config.ts --workers 2 --timeout 120000
interlinked tests status --json
interlinked tests run --all --timeout 3600000Paths are relative to --cwd (default cwd). With no paths, plan/run include staged,
unstaged, deleted and untracked inputs relative to --base (default HEAD), plus pending
requests. --all works without Git and asks the native runner for its full suite.
Plan loads the project's Vitest configuration in a bounded child but runs no assertions.
Status returns pending inputs and the last observed job ID, PID, snapshot and state; a
retained running observation is not proof its owner is still alive.
Normal tests plan, run and status output bounds each plan-reason, test-entry and
pending-input listing to 12 entries, shortening entries over 320 characters. Display
elision is labeled separately from tests omitted from execution. --details expands
the listings; --json retains all structured evidence. Runner diagnostics and execution
reasons remain visible in full. Use plan --details for inspection; run --details
still requests execution. A run's Evidence: line distinguishes completed/shared runs
from reused receipts and reports missing runtime validation explicitly. A plan alone,
an empty selection, a deferred run or a stale result never certifies a passing test run.
Static selection and result reuse are OFF by default (operator decision 2026-10-06). Three
review rounds found escapes in the effect classifier below (mkdirSync, aliased or
parenthesized vi.importActual, escaped Function/eval, import.meta["url"], environment
keys the receipt identity does not hash) that produced false-green plans: a cached pass for a
test that now fails, or an affected test left out. So every tests run / scheduled run executes
the whole universe and certifies nothing reusable; the run is still validated before and after
(runtime hash) and still binds measured sources for the commit coverage gate. The classifier
remains TELEMETRY: tests plan prints Classifier estimate (not applied unless
--static-selection), and the CI comparison job (scripts/ci-select-compare.mjs) plans with
--static-selection to keep measuring it. Pass --static-selection only to experiment; do not
make it the default before a runtime-traced design exists.
Planning indexes companion prefixes once and retains a bounded, process-local cache of module-analysis summaries keyed by source bytes and path. Imports are resolved against the current inventory on every plan; changed/deleted files, extra fixtures, syntax failures and uncertainty retain their existing behavior. This cache holds neither test results nor reusable execution evidence and does not enable static selection. The first plan after a daemon restart still pays the analysis cost.
The TypeScript/Vitest hook paths use this same union: edited tests, static transitive
consumers, colocated and __tests__ companions, declared inputs, and historical coverage
consumers. Estimates use existing per-shard durations and otherwise say unmeasured.
Each module is classified per OPERATION (src/harness/runtime-effects.ts, 2026-10-02):
OPAQUE when executing it may read inputs the identity does not hash (an fs READ —
readFileSync, existsSync, stat, a namespace or default fs import; child_process,
worker_threads, vm, module, network builtins, fetch; package code; dynamic
import()/require, eval, Function; a computed global[...] access);
NONDETERMINISTIC when its result may not repeat (the clock, performance, Math.random,
crypto randomness, timers, Buffer.allocUnsafe); neither for the environment (process.env,
cwd(), os.* — already in the identity's environment hash), pure builtins, and fs
WRITES (outputs, not inputs). An opaque test runs on any input change; a nondeterministic
one is selected only by its real dependencies but its run is never reused. src/ fixture
modules (__fixtures__/, fixtures/) are import targets in the graph, so a changed fixture
selects its importers instead of widening; they are outside the identity hash, so a closure
that reaches one is never reused. Shared opaque setup/configuration, unknown/deleted inputs,
incomplete discovery or an explicit full request widen to the full suite.
Named/multiple Vitest projects currently use native full execution rather than selective
indexing. Python/Rust/Go retain their existing dispatchers; mixed-language batches defer.
Selection is measured in CI before it decides anything (Unit 8, comparison mode). The
select-compare job plans against the event's base (scripts/ci-select-compare.mjs select,
base from the shared resolveCiBase) and runs only the must-run files (run-selected, which
refuses an empty list: vitest run without filters runs everything). The full unit and
integration lanes upload their vitest JSON reports, and select-compare-report writes one
row per run: SELECTION_MISS when a file failed in the full lanes but was in the plan's
omitted set; widened when the plan omitted nothing; incomplete when a lane, the
selection or the selected run left no report (a miss already seen still reports as a miss).
The serial comparison job has a 40-minute total budget because broad selections can
include most unit and integration files. Cancellation still produces incomplete evidence;
the extra time does not change selection, assertions, worker limits, or coverage policy.
Neither job is a required check and neither fails on a miss. Promotion needs zero misses over
at least 30 rows that are SELECTIVE and complete; a widened row proves nothing. Measured
2026-10-02 in a clean clone after the per-operation rule: the setup and config are
transparent and the last three commits each plan selected, running 1978 and omitting 547
of 2526 test files (most remaining closures are opaque through fs reads); a commit that
changes shared configuration still widens.
Optional .interlinked/test-dependencies.json declares additive literal inputs:
{"version":1,"tests":{"src/cli.test.ts":["src/templates/config.json","dist/index.js"]}}Declarations never make uncontrolled I/O cacheable. Exact passing-result reuse is limited
to plans without uncertain dependencies and requires matching source/scope, captured runtime
bytes, runner/dependency/configuration inputs, platform/environment and worker count.
Opaque plans run fresh without the expensive reusable-evidence census. Their results say
runtimeVerified:false: the runner completed and the scheduler checked analyzed source
stability, but no exact runtime or coverage verdict exists. A failed bounded runtime census
also disables reuse and widens selection. No runtime values are persisted in receipts.
Failed, interrupted, missing-report, all-skipped and empty runs never create passing receipts.
Edits during execution trigger another plan; stale evidence cannot clear pending work.
If the execution itself fails or is deferred, concurrent source/environment changes
do not trigger an automatic retry: the command returns that result with the input-change
reason and retains pending requests. Fix the reported failure or capacity issue before
retrying. A failure observed on older inputs does not certify the current checkout.
For Python, check prerequisites in the selected project interpreter after creating a
venv. System pytest/coverage packages are not available in an ordinary isolated venv.
interlinked tests readiness python --json reports that distinction; install approved
test tools there rather than silently switching interpreters. Explicit test-first
enforcement requires the first companion even when the repository starts without tests.
Requests coalesce across nearby edits and identical in-flight subscribers. Cross-process
leases serialize execution. A waiting process can consume its request's completed result
after rechecking source, declared/requested inputs, environment and platform; exact-runtime
results also require a fresh matching runtime census. This request-specific sharing is
distinct from reusable passing-result caching. Hooks defer immediately when another process occupies capacity,
while explicit CLI runs wait within their deadline. A subscriber's timeout does not cancel
another caller's shared work. Durable requests survive timeout and process restart. The
queue reads at most 1,000 requests per batch. A caller returns once its own request has
a validated completion; it does not wait for unrelated requests added during its run.
Later subscribers schedule their remaining work separately, and unattended requests
stay queued for the next drain. Actual input drift still requires a fresh execution.
A passing run is certified by a RECEIPT keyed by its CHECK IDENTITY (2026-09-28,
src/harness/check-identity.ts): the plan snapshot and runtime hash (inputs), the logical
runner argv (mode, workers, --coverage, extra reporters), the toolchain (node plus the
installed vitest and typescript versions), the normalized environment, the platform and
the POLICY digest (.interlinked/coverage-baseline.json, coverage-edit-baseline.json,
metric-caps.json and every vitest*.config.* at the root). Changing any dimension is a
new check: a raised coverage baseline re-runs the same tests. The environment component
drops ONLY variables proven not to reach a verdict — the shell's cwd bookkeeping (PWD,
OLDPWD, SHLVL, _), git's hook-only variables (GIT_EXEC_PATH, GIT_PREFIX,
GIT_CONFIG_PARAMETERS) and this route's own bookkeeping (INTERLINKED_STAGE,
INTERLINKED_STAGES_LEDGER, INTERLINKED_BOUNDED_OUTCOME, INTERLINKED_LEASE_ANCESTORS,
INTERLINKED_COVERAGE_SCOPE_FILE, INTERLINKED_TEST_CAPACITY_SCOPE); PATH, toolchain
paths, CI, NODE_ENV, NODE_OPTIONS, TMPDIR, every other INTERLINKED_* and any user
variable stay in the hash because a test may read them. The child still receives the exact
environment, and the shared-completion path keeps the exact hash. A full run is reusable
evidence only when every closure resolves inside the inventory, repeats and nothing is
untracked: an opaque test (an fs read, dynamic import, fetch, package code), a
nondeterministic one (the clock, randomness, timers), a closure that reaches a fixture
module, or a test outside the inventory makes the run fresh-only, because hashing repository
bytes cannot see what those tests read or pin what they draw; an opaque or nondeterministic
SHARED setup or configuration file (it runs in every test) makes every run fresh-only,
selected or full, changed or not. A reporter module run
from outside the checkout (--coverage-reporter) is bound by the digest of its bytes and
of every dependency it loads. Loads are read from the PARSED source (a specifier that is
not one string literal — import("./x" + ext), a template — is a computed load, never a
prefix match), and each is resolved by its OWN loading mode from the importing module's
location: require("x") by CommonJS rules, from "x" / import "x" / import("x") by
ESM rules (a conditional exports map is read under the import condition, so the entry
Node executes is the entry that is bound; a relative ESM import must name an exact file).
A dependency inside node_modules is bound by its COMPLETE installed contents plus,
transitively, the installed contents of every package it declares (a version pins
nothing — an edited internal helper is a different reporter). A computed load, an
unparseable or unresolvable module, an exports shape the resolver does not model
(patterns, arrays, an unexported subpath), a declared dependency that is not installed,
or a closure over 400 files is UNRESOLVED. And the reporter is held to a STRICTER rule
than a test or setup file (the pre-2026-10-02 text rule, runtimeOpacity), and so is every
installed code file of a bound package (declaration files never run); a stricter reporter
rule can only make a run fresh-only, never reuse wrong bytes: a module that names a runtime read the
bytes cannot pin — process, fetch, Date, Buffer, timers, require/createRequire,
import.meta, Math.random, eval — or imports a builtin OPERATION that is not pure is
OPAQUE, because complete module hashing cannot cover external data, network responses,
the working directory or the clock. Purity is per operation, never module-wide: whole
modules only where every export is pure (node:assert,
node:string_decoder, node:querystring, node:util/types); otherwise named imports
from a short list (path: join, basename, dirname, extname, normalize,
parse, format, isAbsolute, sep, delimiter; url: fileURLToPath, URL,
URLSearchParams; util: format, inspect, isDeepStrictEqual, promisify,
inherits, types). Imports from node:buffer and node:events are opaque:
File defaults its timestamp from the clock, unsafe buffers expose untracked memory,
and EventEmitterAsyncResource captures async context. Global Buffer is opaque too.
path.resolve and path.relative read the working directory,
url.pathToFileURL resolves through it, and a default or namespace import of any
listed-by-name module reaches them, so all of those are opaque. Unresolved or opaque, the
run executes, exports its artifacts and certifies nothing reusable. CONSEQUENCE:
scripts/pre-push-coverage.mjs reads process.env and walks src/ through node:fs
to ask the coverage provider for its inclusion scope, so every pre-push coverage run is
fresh-only today; a coverage run without an external reporter (vitest's own json-summary)
reuses across a byte-identical export. Re-establishing reuse for the scope needs the
inclusion decision computed OUTSIDE the run (the provider's include/exclude globs
re-evaluated deterministically), not a more permissive rule. Every identity input,
the reporter binding included, is re-read after the run: a change between hashing and
execution is stale and certifies nothing. In THIS repository about 1,980 of 2,526
test closures are still opaque (mostly through fs reads), so full-run receipts are not
produced here today. A subscriber that
shares a run but owns a different receipt store gets the artifacts materialized into its
own store (sha256-verified), so its export never depends on the producer's store. Receipts are v2 (identity, platform, toolchain,
stages, optional artifacts), unsigned and local; a v1 receipt is ignored.
interlinked tests run --all --coverage [--coverage-reporter <module>]… [--receipt-store <dir>]
[--artifacts-out <dir>] collects coverage (json-summary) INSIDE the run directory of the
receipt store, records the summary and the inclusion scope (scripts/pre-push-coverage.mjs
as the reporter; without explicit targets it records every src/ code file, so the scope
serves any later changed-file set) as sha256-pinned artifacts on the receipt, and copies
them into --artifacts-out after a passing run — fresh or reused — refusing any file whose
bytes no longer match, and RE-ROOTED to the consuming checkout (the scope's root and the
summary's file keys name the run's absolute root; a reused run may come from another export
of the same bytes). The receipt's artifactRoot retains the source root even without a
scope reporter. Export relocates JSON path fields after verifying the stored bytes;
receipts containing artifacts but missing this root are ignored. Exit 1 is a failed run;
75 is deferred/stale (no verdict). A request
that needs coverage coalesces only onto a request that produces it, a batch produces what
every pending request requires, and a completion discharges only the requests whose
requirements the run met — a plain run never satisfies a coverage subscriber. The pre-push
hook's coverage branch runs exactly this with --receipt-store pointing at the SOURCE
checkout's .interlinked/test-runs. That shared store retains execution artifacts; it
does not make this path reusable. Static selection is opt-in, and the scope reporter
is opaque, so the current pre-push coverage path runs fresh even for the same revision.
A LOCAL tests run --all --coverage does not seed the export in practice: the runtime
snapshot hashes every on-disk byte outside .git, .interlinked and generated
directories, so gitignored local files (scratch/, coverage/, logs) enter the local
identity but not the export's — and honouring gitignore alone would not prove those
ignored inputs irrelevant, so this stays an unmet acceptance criterion (recorded in the
campaign file). The export's node_modules is a symlink to the source's: the runtime
snapshot hashes the canonical path of the mounted dependency tree, so a copied
node_modules is a different runtime and never reuses. That step is not bounded (the
scheduler owns admission and supervision).
Requests coalesce at write time (2026-09-28): a new request that a pending one already
covers returns that request's id, and a wider request retires the narrower pending
requests that no caller in its process still awaits (subscriptions are reference-counted,
so a shared id stays protected until its last caller leaves) — a full request is never
retired by a selected one (an empty-path full request keeps its obligation), and each
retirement is recorded in .interlinked/test-runs/requests/superseded.jsonl. Request
files are immutable: a request that adds a path to covering work is stored as its own
file (never merged into an in-flight request, whose completion would otherwise discharge
an input it never tracked), and a replacing request absorbs the retired requests' paths,
so no path is ever dropped — those paths are the inputs the freshness check re-hashes
after a run. Concurrent writers in separate processes therefore cannot lose paths. Between batches the
drain YIELDS all three leases (scheduler, project, host) for a short window, so a same-root
interlinked tests run or another repository's pre-push export takes the next slot instead
of waiting for the whole queue. Hook-originated work (stage edit) runs at background
priority and never blocks a waiting interactive caller at the host gate; CLI and pre-push
runs are interactive (ScheduleTestsOptions.priority overrides). A drain that cannot
re-acquire after yielding returns deferred with the work retained, and a queue another
drain emptied meanwhile resolves to that drain's shared completion.
TypeScript hooks use max_dependent_tests as a cap on the complete selected test-file
union (default 150). Full and over-budget plans defer intact; run interlinked tests run
to drain them with an explicit deadline. The external-tool batch releases its project lease
before entering the test scheduler. Capacity, path-cap and tool-cap deferrals retain inputs.
affected_tests remains opt-in. Its default empty filename suffix includes configuration
and fixtures in Node projects; explicit repository file_types and skip_test_files
settings still control which changes trigger it. After a triggered batch, all changed inputs
are considered. Raw npm test and independently launched tools do not use this scheduler.
The full pre-push/CI coverage gates remain authoritative; passing focused tests does not
satisfy them or re-enable a disabled local coverage policy.
Lease ownership binds the PID to an OS-derived process-start identity, so a live unrelated process that reused the same PID cannot keep compiler or heavyweight capacity busy. Legacy lockfiles without that identity remain compatible while fresh, but expire after 24 hours — well beyond every minute-scale workload timeout — rather than starving a project indefinitely.
A compiler watch process that fails to spawn is unavailable. Shutdown waits for its close event and releases the compiler lease without signaling a missing process; callers can then use the normal cold compiler fallback.
There is no --file/--changed/--staged flag — verify always walks the whole discovered
set (or target/--subdir). Diff-awareness lives at the edit-time gate, not in verify.
Run verify to see pre-existing findings in a file you're about to touch (the edit gate
hides those as warnings).
Check families & phases
interlinked verify --fp-filter (also on when fp_filter.enabled is set in
guard-rules.local.json) adds an fp_filter section: per check, how many
[heuristic] findings the E18 false-positive filter would withhold at
PostToolUse. The same counts are the fp_filter key of --json. Verify hides
nothing; it is the audit surface. The filter is a free logistic
(src/harness/fp-filter.ts) calibrated on one repository (holdout AUROC 0.906,
26/26 true positives kept, 66/122 false positives suppressed), so it is off by
default and its counts in another codebase are a prior, not a verdict. Verify
scores with repeat count 0 and the per-issue message, so its counts approximate
the hook. To audit what the hook actually withheld, use
interlinked query checks --where fp_filter_suppressed=true.
html_duplicate_id is a default PostToolUse/verify warning for repeated static IDs in
an explicit <body> in .html/.htm files. It reports each later occurrence with the
first occurrence's line. IDs are case-sensitive; comments, script/raw-text contents,
inert <template> contents, and dynamic ID expressions are excluded. IDs on the body,
script, and template elements themselves still count. This is a lexical check, not a
browser DOM audit: it does not infer omitted body tags, normalize equivalent entity
spellings, evaluate template branches, or execute JavaScript. Rename duplicate IDs and
update links, labels, ARIA references, and selectors; use classes for shared styling.
Adopt existing project linters
For expression-level review, run interlinked metrics expressions <path> --json
or verify --all-checks. expression_size, inline_callback_count,
control_flow_depth, expression_measurement, required_braces,
statements_per_line, nested_ternaries and ubs_deeply_nested_callback are advisory.
The callback check now uses exact syntax and defaults to >2 inline callback levels.
Generic brace advice accepts single-line guards, diagnoses multiline bodies, and
defers to detected target style configuration. Explicit imported brace rules retain
their native policy. Verify intended scope before adding braces; no bulk brace
autofix runs. Guard changes are handled before the edit by the prediction protocol
described in interlinked-harness. Physical file size (large_files) also belongs
to --all-checks advice, never a source-edit or verification block.
Missing parser/policy evidence produces NOT CHECKED, not a clean measurement. Use
interlinked-quality-gates for counting boundaries and .interlinked/readability.json.
Formatting requires explicit adoption of the project's formatter. biome imports
lint rules; biome-format imports read-only format checking with the same config and
inheritance tracking. Example: lint import --config biome-format=biome.json
--target src/example.ts --only-selected --cadence audit --write. Repeat --target
to bound rollout; targets are relative to --scope and require --config. --gate errors
keeps explicit native warnings advisory in lint check, while errors and unknown
severity remain gating. Default all preserves existing behavior. Both modes retain
all findings in JSON; cadence and gate survive re-import. Formatter-disabled or
zero-file runs cannot establish formatter compliance. Width is a formatting target,
not a hard maximum. Normalize a bounded scope first; avoid repo-wide churn or implicit
line-baseline resets. This repository's doctor pilot is enforced by CI through
npm run format:check and npm run lint:readability.
Biome sibling overlays can ignore literal-file overrides confined to another directory. Overrides that may select the target or its temporary sibling still require supported filename-invariant selectors; otherwise the overlay is unavailable.
interlinked lint scan [directory] --json inventories recognized lint configs,
manifest sections, declaration/selector candidates, ignores, scripts/aliases and task/CI evidence
across nested packages. lint import previews which sources can become imported
checks and which need review; lint import --write --baseline applies supported
scopes, enables quality_checks.lint_import, and measures existing debt.
Preview never executes configuration; the baseline run invokes installed analyzers.
The native adapters cover ESLint, Biome (lint and format), Oxlint, Ruff, Clippy, golangci-lint,
SwiftLint, RuboCop, Stylelint, mypy, Pylint, Flake8, Standard Ruby, ShellCheck,
Hadolint, actionlint, PHPCS, PHPStan, Psalm, SQLFluff, Semgrep and Prettier.
Other analyzers can use reviewed SARIF stdout declarations in
.interlinked/lint-adapters.json (schema/example in docs/lint-adoption.md).
Unsupported flags, shell setup and dynamic invocations remain explicit
review items. Rules retain their original analyzer semantics and IDs; static
discovery does not resolve every dynamic preset or replace arbitrary rules with
native guards. See docs/lint-adoption.md for recognition and execution boundaries.
Oxlint adoption runs the installed oxlint --format=json ., including configured
JS plugin rules. Warnings from exit 0 remain findings; parse failures, invalid
reports and zero measured files produce no verdict. .eslintignore is tracked.
Select named ESLint files with repeatable lint import --eslint-config <file>;
add --write --baseline to apply and measure. Files are relative to the command
target, inspected as text in preview, and passed through ESLint's --config.
--eslint-scope <directory> sets the working directory/. lint target for those
selections (default: project root, not config directory). It requires a selector.
Named eslint.<name>.config.* profiles are automatic audit candidates; inspect their
inferred package scope. General repeatable --config tool=file and optional --scope
select arbitrary configs for any adapter supporting an explicit config flag.
--cadence hook|audit sets cadence for all profiles in the import plan.
Use --only-selected with --config or --eslint-config when adding an isolated
profile: new automatic/inferred linters remain review items, all previously adopted
profiles remain, and --cadence changes only the explicit selections. Without that
flag, import still includes supported discovered profiles. Preview before adoption.
For this repo's focused anti-slop audit, select --config oxlint=oxlint.anti-slop.json
--scope src --cadence audit --only-selected, then --write --baseline. This enables
two complementary rules through the existing lint runner/baseline, not new native
checks. The separate all-18 research config is an explicit census only; its report
can exceed the runner's 10 MiB capture bound. Never promote a rule solely for zero hits.
Each config/scope/target/flag profile has its own
ratchet identity; re-import retains selected profiles without repeating flags.
PostToolUse and ordinary verify run hook profiles; verify --all-checks and
lint check run all profiles. Saved cadence survives re-import. Named/type/build-heavy
and CI profiles initially use audit cadence. Imported checks run asynchronously; hook findings
warn, never become automatic pre_block errors. lint check is the explicit
gate: exit 0 = complete/no new gating debt, 1 = new gating debt, 2 = incomplete/no verdict.
lint check --update-baseline seeds new scopes and tightens existing allowances.
Ordinary complete checks also retire resolved debt; incomplete runs never do.
Analyzer report capture has a 10 MiB threshold per stream. A truncated report is
unavailable even if its captured prefix parses; it cannot seed or retire debt.
Stylelint's stderr fallback also requires completely captured, empty stdout.
Truncated diagnostic logging on stderr does not invalidate a complete stdout report.
Source snapshots before/after each analyzer and again at batch completion reject
changed, added, deleted or replaced files; stale clean reports cannot retire debt.
Snapshots stream SHA-256 over every regular file in the working scope, including
custom extensions, dependencies, generated files and Git-ignored output. They also
compare file identity, mode and nanosecond timestamps; metadata alone cannot
detect unflushed memory-mapped writes. This is observational before/after freshness,
not an atomic filesystem snapshot or proof of arbitrary reads outside that closure.
For native ShellCheck and Hadolint, explicit targets must name existing regular
files in the working scope; confined regular-file symlinks are supported. Each
target is checked independently, including files under vendor or other default
discovery exclusions. Missing files, directories, escaping links and explicit
glob patterns make the result unavailable; another valid target cannot hide them.
Default inferred targets still use the adapter's discovery exclusions. Expand
explicit globs into a reviewed literal file list before importing the command.
Regular symlink targets are hashed; confined directory links are traversed with
cycle detection. Escaping directory links are unavailable. Diagnostic anchors use
a checked stream matching the original digest; out-of-snapshot diagnostics fail.
The census omits .git, .interlinked, __pycache__, .mypy_cache,
.ruff_cache, .pytest_cache, .eslintcache and .stylelintcache; explicit
targets or ignore overrides intersecting omitted runtime state are unavailable.
Each snapshot permits 100,000 entries and 4 GiB total, streamed in 64 KiB chunks
within the shared batch deadline. Large files do not require whole-file allocation;
diagnostic anchor lines have a separate 1 MiB character limit. Unreadable inputs or
exhausted bounds mean unavailable, never clean. Large scopes incur repeated reads
and may need a longer timeout or narrower valid working scope. Native ignores are
not guessed to make a census fit.
Native Clippy runs use a unique temporary Cargo target/build directory outside
the project, removed when the process finishes; compiler caches start fresh on each
measurement. Cargo arguments and child
environment override configured output locations so normal compilation cannot
invalidate the source snapshot. Existing target files remain measured inputs;
source, lockfile or build-script writes inside the scope still make the result
unavailable. A temporary-directory setting inside the project is unavailable.
Other analyzers that write inside their scope can also invalidate
their snapshots; only the listed runtime/cache exclusions are omitted.
Config drift requires review with lint import, then --write. The default
batch budget is 30000 ms (--timeout, maximum 300000 ms, on lint commands).
Literal config/plugin imports and package/lock context are fingerprinted. Ruff's
extend and local Biome/Oxlint JSON extends paths also enter the transitive digest
closure, including bare relative names such as base.toml. Paths resolve from each
declaring config, not the analyzer's working directory. Missing, out-of-project or
unresolved literal inputs prevent measurement. Existing policies missing one of these
dependencies require re-import; checking does not silently approve the new input.
Ruff's reader handles ordinary literal strings and table/dotted/inline keys; unsupported
string escapes or multiline inline inheritance require review. Biome package presets
retain package/lock tracking. This is not general YAML or dynamic inheritance resolution.
Discovery
does not execute config or expand arbitrary environment/matrix/build expressions.
YAML task parsing needs the optional yaml package; unavailable/invalid YAML remains
review evidence. Follow the supply-chain skill if adding the parser is blocked;
do not silently approve a dependency. An inventory marked complete can still have
unadopted review items. Never describe it as universal effective-rule coverage.
Two catalogs, both surfaced by verify + PostToolUse: the tool wrappers (typescript,
biome_lint, eslint, semgrep, gitleaks, dependency_audit, secrets_in_source,
affected_tests, per-language tools…) and the inline families in
src/harness/checks/<family>.ts (security/injection, PII/secrets, async/promises,
correctness/bug-class, agent-clarity, complexity, test-quality, comment/spec drift, …). Use
interlinked harness checks for the authoritative current inventory.
Phase determines what blocks:
pre_block— the only inline checks that BLOCK an edit. Zero-FP, deterministic (eval,nan_comparison,throw_literal,promise_reject_non_error,child_process_exec_user_input,cookie_missing_security_flags, mostubs_*blockers…). Introduced-only. (Merge-conflict markers also block, but via a separate write-guard on real Edit/Write — not thepre_blockregistry, sointerlinked writewon't catch them in a new file.)pre_warn— PreToolUse warning, never blocks (e.g.floating_promises,broad_object_types).post— PostToolUse warning + surfaced by verify (the bulk:nan_coercion_guard,write_without_mkdir,unvalidated_json_boundary,magic_literal_in_conditional,non_null_assertionratchet,introverted_test, …).
Comment and string stripping is parser-backed. The shared stripComments /
stripCommentsAndStrings that most inline checks read first go through the TypeScript parser
when the content parses as TS or TSX. Other content (Python, Rust, Go, fragments, an install
without typescript) uses the line scanner. INTERLINKED_STRIP_PARSER=0 sends every caller to
the line scanner, as a rollback or to compare fire rates. The advisory hand_rolled_lexer
check names a new function that lexes JS by hand (a character loop with quote or comment
state). Mark a deliberate fallback with a lexer-fallback: <reason> comment.
Type assertions. unjustified_cast uses the TypeScript AST when available, including
angle-bracket assertions, literal targets, and anonymous object targets. as const is excluded.
A justification must be an actual comment with a nonempty SAFETY: explanation on the
assertion's line, asserted expression's starting line, or nearest enclosing statement's starting line, or the immediately preceding
comment lines (up to two). Text inside
a string does not qualify. Without TypeScript, the legacy lexical scan remains available;
malformed syntax combines recovered AST findings with that fallback.
Prefer deleting a redundant assertion, adding a checked declaration type, using vi.mocked
with complete test fixtures, or validating an unknown input. Keep an assertion only when its
specific invariant is understood and explained. Exercise malformed external data at its actual
parser or adapter boundary. Do not fabricate impossible internal states just to kill a mutant
or prove that a removed feature stays absent. Retain a malformed-input assertion only when an
actual untyped caller can supply that value, and explain that caller and the expected behavior.
A generic explanation or an unchecked JSON annotation does not establish safety.
Test-file ladder. A test edit is checked before it lands as well as after it lands. pre_block
rejects only introduced deterministic theatre/sabotage: assertion-free cases, tautologies
(including identical literals/constant truthiness), SUT self-mocking, focused cases, and
unconditional skips. PreToolUse warnings immediately coach low-noise shapes such as removed test
signals, duplicate names, real I/O, nondeterministic clocks/RNG, fixed waits, missing SUT imports,
mock-only assertions, private-member access, silent dependency skips, and test_legitimacy.
PostToolUse retains context-heavier review such as happy-path-only and introverted tests. A warning
is not a pass; rewrite toward a precise observable behavior or document the real compatibility
contract.
Default vs advisory. Default-gate checks fire on every edit + default verify. Advisory
checks (the DEFAULT_ADVISORY_SKIPS list — complexity, CRAP, DRY clones, boolean_trap,
write_without_mkdir, homedir_write_escape, most ubs_*, Swift/test heuristics,
conditional_empty_object_spread, unknown_type_alias…) fire
only under verify --all-checks. unvalidated_json_boundary was PROMOTED to the
default gate 2026-08-10 after the boundary-parser sweep took the repo to 0 fires — expect
it on ordinary edits: route parsed JSON through a local parseX(v: unknown): X | null
(or an isX guard / Array.isArray gate) before field access. "Advisory" ≠ silent — an advisory check that fires at PostToolUse
still warns; demoting a check doesn't stop it warning on edits. Fix the detector, not the list.
test_legitimacy is one of those advisory test heuristics. It runs as immediate PreToolUse
coaching and under verify --all-checks. For each case in a
*.mutation-kill.*, *.mutation-hardening.*, or *.survivor(s).* JS/TS test, put an adjacent
contract receipt immediately before the case:
// test-contract: boundary — parseWindow rejects the documented zero-width interval
it("rejects a zero-width interval", () => { /* precise public-behavior assertion */ });Kinds are public-api, invariant, bug, security, or boundary; the rationale must be
specific, not “kills the mutant.” The check also reviews broad toBeTruthy/toBeFalsy,
incidental call-order assertions, and explicitly private/internal imports, including multiline
named imports such as __test_only__. Cast-based private-member access is a companion warning. These shapes are not
automatically wrong, so this check stays heuristic: exact CLI/help/policy strings are legitimate
compatibility assertions, while unpromised internal formatting usually is not.
The React missing_effect_cleanup advisory recognizes cleanup-shaped returns rather
than arbitrary component render returns. Shared full-component examples in
src/harness/checks/__fixtures__/effect-cleanup-cases.ts exercise the detector and real
hook delivery. It still scans to the next effect or EOF; unrelated cleanup-shaped
returns can hide findings, so do not treat this heuristic as proof of correct disposal
or promote it to a deterministic block.
Two newer TS type-discipline advisories, both AST-parsed and both [heuristic]:
unknown_type_alias— a named alias resolving to exactlyunknown, chased through same-file non-generic aliases (type Foo = unknown; type Bar = Foo;flags both). Name the real shape, or keepunknownat the boundary and narrow with a parser/guard.conditional_empty_object_spread—{ ...(cond ? {} : { field: v }) }, the spread-a- ternary trick for omitting a field. The idiomatic guarded passthroughguard ? { key: guard } : {}is exempt.
Every finding is tagged [proven] (a real tool ran it — fix it) or
[heuristic] (regex/AST shape — evaluate it). See interlinked-harness for
the suppression grammar (// interlinked-ignore: <check> — reason /
verify-suppressions.json).
Stale suppressions (2026-10-05). The suppression hygiene row lists
suppressions that matched nothing. It is report-only and does not change the
exit code. The two kinds have different strength:
stale_file_suppression[proven]: averify-suppressions.jsonentry whose literal path does not exist. Remove the entry. Glob keys are not judged.unused_inline_suppression[heuristic]: aninterlinked-ignoredirective that suppressed no finding within ±1 line in this run. verify does not record which checks ran on each file, so this means EITHER the finding is gone OR verify does not run that check here (hook-only checks, advisory checks without--all-checks). Before you remove the directive, run the named detector on the file; remove it only when the detector finds nothing.
Checker availability is a first-class state (2026-08-27). The tsc overlay
returns one of three outcomes: ok (it RAN — empty findings = checked clean),
skipped (it deliberately did not apply: non-TS file or operator mode: off —
nothing was verified, and nothing claims to be), or unavailable (it SHOULD
have run and could not: sidecar spawn failure, timeout, cooldown, or per-project
compiler backpressure). Unavailable
is never clean: transactional paths — interlinked write (single AND
--batch), multi-edit, verify-changeset — ABORT with a
tsc-overlay-unavailable failure and leave files untouched; the ordinary
single-edit hook path does not launch the sidecar at all. It records scheduled work,
and the admitted PostToolUse path checks the on-disk result asynchronously. A scheduled
record is not a passing verdict; unavailable PostToolUse checks still surface missing evidence.
Full-project TypeScript children are serialized per project across concurrent
hook and CLI processes. Heavy verify/check/test/audit/sweep work uses one
project-scoped cross-process lease: contention is an explicit deferred/no-verdict result
for external-tool batches. Tests retain requests and use the bounded scheduler described
above. Each accepted request runs after its own edit is on disk; cached test results require
matching validated inputs.
A multi-file PostToolUse request also owns one external-tool batch for its
entire ChangeSet: project-capable compilers, linters, and security scanners run
at most once, then their findings are attributed back to the touched files.
Cheap inline checks still run once per file. A same-ecosystem dependency audit
runs once for the ChangeSet, and TypeScript/Vitest affected tests run once with
the union of changed inputs, including tests. Mixed-language affected-test sets,
multi-ecosystem audits, file/tool-cap overflow, a file-only external runner, or
a batch denied by capacity produce one aggregate NOT CHECKED result for the
request instead of N subprocesses or N warnings. Existing-file TypeScript
diagnostics from the batch warn without claiming they were introduced: only a
request-proven new file has an empty compiler baseline; the exact per-edit
introduction decision remains the PreToolUse overlay's responsibility.
When several PostToolUse checks defer for one edited file, the model-visible
output is one [interlinked:checks-deferred] NOT CHECKED warning with the
individual reasons; structured check_results still retain every deferral.
checks_ran lists only checks that completed with a real verdict; attempted
checks that throw or defer are recorded under a deferred_<check> timing
boundary instead of being reported as completed.
The same deferral is not repeated by the project-wide sweep, and a deferred
event never receives an all clean summary. Re-editing a file cannot repair
checker capacity, so operational deferrals also never become a
persistent_warning_escalation source error, recurrence signal, or
feedback-effectiveness warning/resolution. They remain structured operational
telemetry, and the NOT CHECKED notice remains visible until a real verdict
exists. Retry every named check before claiming the edit is verified.
PostTool warning delivery is request-owned. Each daemon check pass writes its
own tokenized active/ready record under .interlinked/quality-warning-spool/;
both installed hook runtimes acknowledge a synchronous result before showing
it, while a result that finishes after the hook timeout is atomically claimed
and shown once on that same session's next PreToolUse. The originating hook's
PID preserves its first-delivery right without making another hook wait.
Parallel agents cannot overwrite or unlink one another's work, clean results
create no replay record, and a PreToolUse never force-removes a live check
marker. A PostTool pipeline exception publishes an explicit NOT CHECKED
diagnostic instead of an empty record, and an abandoned active-only marker is
claimed only after its hook process is gone (or the marker expires); live
markers are preserved. The old shared pending-quality-warnings.json file is read only as a
one-time rolling-upgrade migration path; when request-owned evidence exists,
unscoped legacy text is discarded rather than mixed into another request.
Because the synchronous overlay path cannot wait without blocking the daemon
from reaping an async compiler, contention returns unavailable immediately;
retry after the active check finishes instead of treating the edit as verified.
The synchronous export-ripple advisory follows the same rule: it reports an
explicit export_ripple_compilation_deferred info finding and launches no
second compiler while same-project compiler work is active.
Different project roots remain independent and may compile concurrently.
Reviewing test discrimination
After a fix, run interlinked tests fail-before-fix (optionally --session <id>).
This Git/Vitest workflow replays logged edits from HEAD and must reproduce current bytes
before reconstructing pre-session product code. It runs changed tests live and in a
Git-visible temporary copy with linked node_modules, plus their old counterparts.
No changed test files produces no-tests (exit 0), without a discrimination verdict.
If a selected file has no executed case on either side, or a product file cannot be
reconstructed, the report is unavailable. Whole-run interruption yields no usable rows;
a reported test timeout, product crash or load failure is inconclusive. The presence
check is per file and does not prove that every expected case executed. Only a test's
own failing check demonstrates discrimination. The temporary copy confines supervisor
edits and rejects symlink write targets; arbitrary test code is not OS-sandboxed.
Exit 0 means evidence reported, 2 means unavailable/no session, and --strict exits 1
when a new test whose subject changed passes on the old code. Such a test may deliberately
preserve existing behavior; review its purpose before changing it. A negative case must
also isolate its clause: remove the one exemption it names and
the case must fail (a case that another exemption already keeps quiet pins nothing).
To measure that, record the removal as a requirement fault (clause:<module>:k<n>) in
.interlinked/requirement-faults.json, run interlinked tests faults run, then read
interlinked tests faults clauses. Write faults without reading the tests they target.
The fault corpus is { "version": 1, "faults": [...] }. Each fault contains id,
requirement: {id, text?, source?}, confined path, exactly-once find, replace,
rationale, nonempty tests, and origin: authored | edit-log | revision. The Vitest
runner applies one fault at a time to a Git-visible copy. A kill requires a passing
live control and a failing own check under the fault; missing baseline evidence is
inconclusive. --corpus, --ids and --timeout narrow the run. The reported fraction
is killed / (killed + survived); invalid and inconclusive faults are reported separately.
The command is advisory: a surviving fault does not itself set a failure exit code.
test-runs/faults/latest.json and outcomes.json retain historical results under
.interlinked/. Clause joins use clause:<module>:k<n>; unmeasured clauses remain
unmeasured. These outcomes lack current source-digest authentication: rerun after code,
tests, clauses or fault recipes change. A perfect fraction covers only recorded faults.
Use paired examples that distinguish a real violation from similar valid code. In
test_legitimacy, import-shaped text inside multiline fixture strings is not a real
private import; an actual import after that fixture still reports its own line.
Mutation-directed receipts must be standalone comments, and a specific rationale may
mention “contract” without being a generic placeholder. Shared behavioral examples can
drive both a detector unit test and a real hook/daemon e2e test: assert the finding and
location in the unit lane, and delivery, severity and transport ownership in the e2e lane.
Neither lane's passing result substitutes for the other. Keep examples and expected
outcomes separate from implementation-derived values so other language adapters can
exercise the same requirement through their own public boundaries.
Check-evidence stores must preserve complete result lists. A corpus record with
missing, non-array, or non-string hits, or an adversarial review with malformed
findings, is rejected and leaves its obligation unsatisfied. Re-run the scan or
review to replace that record; do not replace unknown results with []. An explicit
empty list from a completed run remains valid evidence of no findings. Corpus
satisfaction also requires a positive integer files_scanned; an empty scan or
missing/invalid scan count cannot satisfy the obligation.
interlinked verify --all-checks --details includes fourteen advisory test-discrimination
and isolation checks; default verify omits them. They remain PostToolUse warnings.
Review each finding against the observable contract before editing the test.
mock_return_echo: check whether forwarding the configured value is the contract. Negated/throwing evidence is not an echo; coarse values count only with one discovered mock target. Literal overlap is a heuristic, not dataflow proof.duplicate_test_body: compare inputs and setup. Setup comparison includes hooks declared after tests and preserves whitespace inside literals.vacuous_loop_assertion: pin non-emptiness or use a positive assertion count. Mapped-array equality pins are recognized;expect.assertions(0)is not a guard.spy_without_restore: use applicable restore hooks,mockRestore,using, or runnerrestoreMocks. Discovery reads default Vitest/Jest configs and literal setup paths at the nearest package root; custom config loading is unresolved. Fresh objects and array literals owned by a test are exempt. Shared arrays still need cleanup; review ownership before adding restoration solely to clear a warning.export_existence_smoke_test: only imported export presence/type evidence; these cases are excluded fromwildcard_in_observable. Export availability may be an intentional compatibility contract.commented_out_assertion: a real disabled assertion inside an active test; prose mentions and code-as-string fixtures are excluded.
In the Interlinked CLI source checkout, reproduce the census with
npx tsx scripts/scan-test-discrimination.ts [corpus-root] [check-id ...].
It reads current contents of tracked JS/TS tests and prints counts plus locations
as JSON. Per-file finding caps apply; zero findings and builder-reviewed samples
do not establish independent precision. AST detectors and duplicate-body setup
comparison require optional TypeScript; its absence yields no detector findings,
not verification.
Landing multi-file edits (the ordering rule)
Three agent-callable commands gate proposed content without running function-token/coverage/complexity/post
checks. interlinked write, multi-edit, and verify-changeset share pre_block → biome → tsc:
interlinked write <path> --stdin # single gated write, content on stdin
interlinked write --batch <manifest.json> # gated batch with rollback protection
interlinked multi-edit <path> --stdin # single-file old→new edits
interlinked multi-edit --manifest <file> # single- or multi-file edits
interlinked verify-changeset --file <cs.json> # preview the gate, write nothingwrite --batchmanifest:{ "version": 1, "writes": [ { "path", "content" }, … ] }. The gate sees all final contents before any write, so a blocking finding writes nothing. Commit uses per-file atomic renames, preserves existing target modes, and performs best-effort rollback if a later rename fails; POSIX provides no literal multi-file atomic rename, and an incomplete rollback is reported explicitly. New files use an empty biome/TypeScript baseline, so diagnostics introduced by a fresh.ts,.tsx,.mts, or.ctsfile block just like diagnostics introduced while editing an existing file;scratch/is not an escape lane.multi-editmanifest:{ "version": 1, "edits": [ { "old_string", "new_string" }, … ] }(path = positional arg), or{ "version": 1, "batches": [ { "path", "edits": […] } ] }. Edits apply in order to an in-memory buffer; the gate runs once on the final content. Ambiguity is judged after prior edits — eachold_stringmust match exactly one location in the current buffer state.verify-changesetpreviews (Write/Edit/MultiEdit shapes), enforces nothing; exit 1 = "would be blocked".
Transactional consistency. write and multi-edit capture target bytes and modes before
verification, then compare them again under a shared project commit lock. A concurrent change
aborts the batch: re-read the targets and rebuild the proposal. Unchanged multi-edit members
still participate in this comparison. Both commands preserve existing file permissions and use
guarded rollback that refuses to overwrite newer content. Targets must be regular files or
missing; symlink targets, duplicate physical targets, and escapes through parent symlinks are
rejected. Parent resolution is checked again before staging, committing, and rollback;
a redirected parent aborts the operation. A failed multi-edit reports the actual failing
target in error_detail.path. write --unsafe-outside-repo retains its explicit outside-root exception. This lock
coordinates Interlinked transactions; it does not make ordinary editors participate or make
multi-file writes crash-atomic. An incumbent lock is an unavailable transaction, never permission
to delete the lock blindly.
Biome availability. A configured analyzer that times out, crashes, or returns unreadable
diagnostics produces biome-overlay-unavailable and aborts transactional writes/previews.
Ordinary edit hooks retain asynchronous PostToolUse checking and visible NOT CHECKED feedback.
Unconfigured projects skip Biome. Existing and proposed contents are measured with the same
analyzer; moving existing lint debt is allowed, while another occurrence of the same rule is
new debt. A missing diagnostic cache never establishes a clean baseline. Overlay execution
uses installed tooling without installing a missing package.
The Biome overlay uses a sibling temporary file. It supports directory and simple
extension selectors; filename selectors (including *.test.ts), inherited config,
plugins, VCS ignore rules, filename-sensitive rules, and BIOME_CONFIG_PATH report
unavailable because the temporary file cannot reproduce their semantics. Nested
target configs are discovered even without a root config. For an unsupported
configuration, use the ordinary edit workflow and run Biome on the actual file;
do not interpret an unavailable preview as approval or weaken project rules to
make the preview pass.
Creating, changing, or deleting a governing Biome config in the same proposal also
reports unavailable, since the analyzer reads disk configuration. Land that config
change before the source batch. A submitted config whose bytes equal disk is unchanged.
CRITICAL — exporter before importers. The tsc overlay blocks newly-introduced type errors per file, so importing a not-yet-exported symbol is a
TS2305/TS2304the overlay blames on your edit. Either (a) put the exporter and every importer in one atomicwrite --batch/multi-edit --manifest(the gate sees the whole consistent final state), or (b) if sequencing with real Edits, land the exporter first, then the importers — never the reverse. (Batch editing skips the function-token and coverage ratchets, so a batch can land over-cap or under-covered; the commit backstop/next real Edit and coverage gate re-assert them.)
Scratch — where probe/draft code goes
The scratchpad guard blocks agent-authored code aimed at the host session scratchpad and
redirects you to <repo>/scratch/ (rg-searchable, quality-gated, survives the session;
coverage/companion-test ratchets are exempt there, like scripts/).
interlinked scratch init # provision scratch/ (README + .gitignore carve-out + .ignore negation)
interlinked scratch statusConvention: one date-prefixed subdir per effort (scratch/2026-07-19-<slug>/). Downloads and
npm pack extractions still belong in the host scratchpad (non-code bulk). Softening:
scratchpad_guard.code_write_mode: "warn"|"off"; bypass INTERLINKED_DISABLE_SCRATCH_GUARD=1
(placement only — the secrets scan on temp paths is never bypassed).
Common workflows
Verify writes observed outside tool gates
interlinked harness coverage status --json shows all pending exact file identities,
watcher readiness and bounded recent check/review receipts with explicit history counts. Run
interlinked harness coverage verify --json to check the pending versions through
the daemon's configured PostToolUse checks; --no-wait starts the job and returns.
Polling status reports progress. A completed job can still contain findings or
unmeasured versions. Missing files, excluded paths, deferred checks and concurrent
changes do not gain a clean verdict. Receipts enumerate the checks actually run;
they do not certify PreToolUse enforcement or approve a baseline rewrite.
For an explicitly reviewed absence or other manual disposition, use
harness coverage acknowledge <id> <generation> <identity> <evidence> with the
current status values and a concrete review record. This records manual review,
not a test pass. Stale identities/generations are refused. If a mutation's response
is lost, inspect status before retrying. Never blanket-acknowledge pending entries
to silence the warning. Policy acceptance is a separate explicit action.
- Verify-after-edit: make edits →
interlinked verify→ fix[proven]findings first, then triage[heuristic]. Read the output; don't rely on$?. - Pre-flight a risky change: build a changeset →
interlinked verify-changeset --file cs.json --json→ fix untilok:true→ submit aswrite --batch(or real edits, exporter-first). - Cross-file rename: author all files → one
write --batchwith{writes:[exporter, …importers]}→ single gate pass, no transient tsc error. - One-off script:
interlinked scratch init(once) → write underscratch/<date>-<slug>/. - Mutation-directed test review: add a per-case
test-contractreceipt → runinterlinked verify --all-checks --details→ resolvetest_legitimacytogether with the existing assertion/mock/hermeticity findings → formally remeasure the source file. A killed mutant is necessary evidence for that campaign, not proof that the test protects a real contract.
Gotchas
- Batch gate ≠ full edit gate —
write/multi-edit/verify-changesetskip function tokens, coverage, cyclomatic, CRAP, andpostchecks. A batch that passes can still trip those on the next real Edit, and verify will still flagpostfindings. - New files ARE checked by the biome/tsc overlay in the
write/multi-edit/verify-changesetgate — a fresh file diffs against an EMPTY baseline, so every diagnostic it introduces counts (the earlier "new files skip the overlay" claim was stale; corrected 2026-08-27). The real-Edit hook path is where the merge-conflict caveat above applies. --all-checksre-enables high-FP heuristics; it's for periodic audits, not CI gating.
Quick reference
interlinked verify # default gate, whole project (reports, exits 0)
interlinked verify --all-checks --details # deep audit with per-file detail
interlinked verify --only tsc # just typecheck
interlinked write --batch changes.json --json
interlinked verify-changeset --file cs.json --jsonRelated skills
- interlinked-harness — how blocks read, suppression grammar, determinism tags.
- interlinked-quality-gates — function-token/coverage/complexity ratchets and advisory file-size measurements.
- interlinked-supply-chain — the package-install gate.
Corpus qualification and replay evidence
Use interlinked harness corpus status --json to inspect all stored records and interlinked harness corpus scan <check-id...> --json to rescan 1–20 registered checks. With no IDs, scan runs the three qualification candidates. Scans execute raw detectors under src, exclude fixture directories explicitly, include tests for applicable detectors, and retain dirty input digests, detector/config identity, counts, failures and prior records. Missing paths, zero eligible files, thrown detectors or input races cannot qualify. Historical v1 records remain readable but unqualified.
Only corpus_cohort members in .interlinked/check-evidence-baseline.json acquire the corpus obligation. The initial enabled members are async_promise_executor and nan_comparison. A complete zero-hit run also needs positive, negative and sensitivity controls. unawaited_async_assertion is withheld while its retained single-line positive control is missed. Removing a cohort member is a baseline weakening requiring review; adding one must be accompanied by fresh evidence. The contract test scans the current cohort in memory on every local, pre-push and CI run without rewriting the historical store. No preparatory scan is needed after a clean edit. Stored result digests bind hits and occurrences; they detect inconsistent edits but are not authority signatures. Historical records without these bindings stay unqualified. Fresh hits still require review.
interlinked tests e2e attempts <cohort> --json joins stored attempt metadata and receipts. tests e2e replay <cohort> <attempt> --timeout 120000 --json reuses the seed/clock against matching declared inputs and runtime. Changed inputs are refused. Replay publishes diagnostic receipts and replay records without appending acceptance-ledger rows, reconciling obligations or serving open requests. A passing replay leaves the failed obligation unchanged. Reproduced, not-reproduced, diverged and inconclusive are observation outcomes; external environment closure is not certified. Mixed varied-seed attempts are not proof of flakiness.
The fast-check wrapper binds replay to engine/runtime, test source, lockfile and an optional explicit generator version. It is a candidate cache, not a portable counterexample across arbitrary helper/environment changes. INTERLINKED_FC_EXAMPLES=off prevents persistence and pruning; malformed stores are retained, dynamic titles are not pruned, and passing replay archives “not reproduced”. Writes use a bounded cross-process lock and preserve failure history. Fixed CI seeds have a separate INTERLINKED_FC_EXPLORE=1 cadence. Promote confirmed failures to durable requirement-based tests.
The weekly evidence audit is advisory, owned by the repository maintainer, bounded to 15 minutes of verification with 14-day artifacts. Inspect NOT CHECKED and incomplete output before interpreting finding counts. Lexical property-weakening candidates failed paired-intent calibration, so this work adds no pre_warn/pre_block policy for them. Skill tokens are diagnostic (python3 scripts/skill-token-cost.py), with no hard budget.
INTERLINKED_FC_EXPLORE=1 bypasses the fixed CI seed, including an explicit INTERLINKED_FC_CI_SEED. The weekly exploration step visibly fails on failed tests; an always-run summary consumes its JSON and reports passed, failed or unavailable. A missing or zero-test report is not success. The workflow is an advisory lane, not a required merge gate.
Edit-time shared-helper overlap advisory
extracted_helper_duplicate remains a heuristic pre_warn advisory and a default
verify skip. Its partial arm compares newly introduced named functions against bounded
same-directory siblings; no-op/post-edit scans remain silent. Existing whole-body
similarity/move handling is unchanged and can also compare introduced functions
internally, including same-file parent/callback overlap. The partial path recognizes five contiguous
AST statements with matching literals, property names and local binding relationships,
including alpha-renamed locals. It excludes direct relative import edges and windows
whose break/continue targets lie outside the block. Scans are capped at 40 sibling
files of 256KiB each, 20,000 traversal visits and 256 windows per file; missing optional
TypeScript is NOT MEASURED, and invalid syntax yields no partial-overlap claim.
A partial-overlap message asks for review of shared logic while preserving behavioral differences. It does not prove semantic equivalence, safe extraction, a requirement to reuse, or net savings after parameters/imports/return plumbing. Common setup may be worth retaining. Inspect each caller and its context before changing an abstraction. Same-file overlaps are excluded from the partial arm; already-existing functions are outside both arms under the name-based edit delta; an empty result is not a whole-repository duplication audit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

