agentleFS
QuentinCodyQuentinCody/interlinked-cli/skills/interlinked-harness/SKILL.md

interlinked-harness

Skill185 starsChanged 25 days agoMITView on GitHub

Understand and respond to the Interlinked PreToolUse guard — the local daemon that BLOCKS dangerous tool calls before they run. Load this when a Bash command or file edit was refused with \"BLOCKED: … Suggestion: …\", when you see an `[interlinked:check-id]` warning tagged `[proven]` or `[heuristic]`, when a destructive command / force-push / protected-file / secret / repo-confinement rule fired, when a grep was answered by the index, or when you need to know how to legitimately suppress a false positive or disable a guard rule. Covers what blocks, how to read the reason, suppression grammar, determinism tags, and the degraded cold fallback.

  • Reads credentials
  • Deletes or force-pushes
  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit-time function-token diagnostics compare against HEAD and name their scope: staged index, tracked working tree, selected constructed …

    line 8
  2. Distinctive:

    Only the first eight findings are displayed.

    line 11
  3. Very specific:

    Every fallback of a recognized push is typed and visible (2026-11-05).

    line 40
  4. Very specific:

    When maintaining this repository's gate or its helper runtime, regenerate the reviewed trust map with node …

    line 70
  5. Very specific:

    Only with explicit enforced policy, before intentionally changing which if guards an existing return or throw, declare the expected …

    line 92
  6. Distinctive:

    Only explicit blocking repair decisions request another model turn.

    line 145
  7. Very specific:

    If a stopping rule matches only data, you get [interlinked:guard] rule <id> matched inside a string literal (…).

    line 230
  8. Distinctive:

    All sensitivity levels have unlimited tool-call budgets by default.

    line 345
  9. Distinctive:

    If a nested project's imported lint policy belongs to an ancestor project, background recovery waits for that policy project's lease within …

    line 412
  10. Very specific:

    Every warning is tagged. [proven] = a real compiler/linter/scanner/parser/test-runner produced it — authoritative, fix it.

    line 444
  11. Very specific:

    No output therefore never proves the full daemon check set ran.

    line 485
  12. Very specific:

    Do not trust a tool name as proof that no file changed.

    line 524
  13. Very specific:

    Stop. Do not describe a deferred edit as type-checked.

    line 586
  14. Distinctive:

    If the configured daemon socket is unreachable — including a zombie with a live process but dead listener — every ordinary hook phase …

    line 635
  15. Very specific:

    If the installed hook binary itself is missing or broken, the self-contained wrapper follows the same no-deadlock boundary: Claude/Codex …

    line 653

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

interlinked-harness — the guard: what blocks you & how to respond

Commit-time function-token diagnostics compare against HEAD and name their scope: staged index, tracked working tree, selected constructed paths, or a conservative worktree scan. They do not identify the writer or when the changes were made. Only the first eight findings are displayed; the full set still determines the block. For unresolved compound staging scope, stage first and commit in a separate tool call to check the exact index. This changes the observed scope, not the cap or enforcement.

INTERLINKED_RUNTIME_POLICY=local-restricted opts into a packaged local runtime policy shared by the CLI, daemon and generated cold fallback. It denies network calls and selected external commands, and refuses recognized agent reads of .interlinked/config.local.json; internal configuration readers still work. It is application policy, not a sandbox for arbitrary child code or computed paths. Unavailable tools remain unmeasured; this mode does not certify skipped checks.

Remote-pipe detection permits interpreter inline programs preceded by bare flags (for example, curl URL | python3 -I -c '...'), where stdin is data. Shell sinks retain their existing remote-execution block.

For recognized protected pushes in this repository, Codex and Claude can receive a native command replacement that makes Git's exact-revision pre-push hook the sole owner of typecheck and test execution. The replacement pins Git/Node, verifies a private snapshot of the recognized hook and its helper runtime, and forces Git to use that hook. Git still supplies the actual ref updates and pushed SHAs. This is not a cached passing verdict, and every other pre-tool guard remains active.

Recognition is intentionally narrow: a plain git push <named-remote> <protected-ref> from the repository root, with supported literal output redirection. Compound commands, environment/config overrides, unsupported clients, custom/missing/changed hooks or unavailable snapshots retain legacy checks. A prepared command whose snapshot or execution context changes refuses the push. Do not weaken guards or use bypass flags to force the handoff. See docs/verification-efficiency.md.

Every fallback of a recognized push is typed and visible (2026-11-05). The daemon writes a pre-tool:managed-push row with status fallback and reuse_denied_reason: handoff-fallback:<cause> to the stage ledger, and the agent sees one [interlinked:managed_push_fallback] … (<cause>: <detail>) warning. Causes: environment-override (the detail names the variable keys, never values), repository-mismatch, hook-mismatch, stale-trust-map (regenerate the map after reviewing the change), executable-identity, snapshot-failure. A command or client the handoff never covers (unsupported-*) leaves no fallback row; the legacy rows are its record. The IDE prompt helpers GIT_ASKPASS and GIT_EDITOR are allowed at preparation and execution (VS Code exports both in every terminal; neither selects a repository, configuration, hook, exec path, transport or loader). Every other GIT_* variable except GIT_PAGER still refuses the handoff. Explain a real push from one trace with interlinked tests trace (see interlinked-verify). For a recognized fallback on a client supporting command replacement, the response adds only the trace environment assignment to the original push; the legacy checks still run. If the client disconnects before receiving that response, the plain push has a separate hook trace: do not infer a complete daemon/hook join. Unknown failures use a bounded operation/error-code detail, never arbitrary exception or file contents.

A hook client that times out (240 s PreToolUse in the installed settings) and cold-allows the push no longer leaves the daemon's legacy test gate holding the host slot: both socket transports abort a request's signal when its client disconnects, and the pre-tool git gate kills its child on it, recording interrupted. Queued framed requests retain that aborted signal after disconnect as well.

Once the frozen hook is selected, it clears the launcher's command-scoped Git configuration before verification. This keeps the forced core.hooksPath from overriding nested fixture repositories; the outer push still executes its pinned protected hook. Ordinary pushes retain their own command-scoped Git settings.

When maintaining this repository's gate or its helper runtime, regenerate the reviewed trust map with node scripts/generate-managed-push-manifest.mjs and run the same command with --check. A stale map disables recognition; it does not authorize skipping the legacy checks. Native client approval policies still apply.

[interlinked:decision-metrics] is opt-in PostToolUse semantic advice. It can report an adverse judgment, uncertainty, failure or missing evidence, but it never sets a pre-execution block or authorizes an action. Both flags in .interlinked/decision-metrics.json default off. The short inference deadline can be followed by up to five seconds of local-model unload verification. Load interlinked-quality-gates for configuration, replay and calibration; do not weaken deterministic policy to satisfy a model's judgment.

Predict changes to guards

The prediction phase includes a local JS/TS if-ownership oracle, independent of Supermodel and graph_prediction.enabled. Its default mode is shadow; harness.guard_prediction.mode in shared .interlinked/config.json accepts enforced, shadow (record/reveal without refusing), or off.

In the default shadow mode, review concise scope-change advice and relevant tests; no declaration receipt is required. Repeated unchanged advice is deduplicated. Only with explicit enforced policy, before intentionally changing which if guards an existing return or throw, declare the expected ownership change. The raw before/after AST comparison runs before content checks; do not brace or format away an unexpected change. Unpredicted changes block as protocol mismatches, not proven bugs. Correct the proposal, or reconcile the exact revealed change with a rationale and behavioral validation. A matching prediction does not prove correctness.

Receipts are JSON at .interlinked/predictions/guards/<sha256(session)>/<id>.json. Fields: version: 1, session, id, file (canonical repository-relative path), beforeSha256, afterSha256, nonce (nonempty declaration identifier), and changes: an array of {owner, statement, before, after}. Statement and condition strings use parser token spellings joined by spaces. Each guard is {condition, branch: "then" | "else"}; arrays list outer to inner guards. The ID is SHA-256 of JSON.stringify([1, file, beforeSha256, afterSha256]), with UTF-8 hashes of the exact source bytes. Use the native session identity printed in a reveal. The reveal includes the measured fields and receipt path. After a reveal, include reconcile: id and a nonempty rationale; a late prediction alone cannot pass. Identical retries retain their declaration; changed bytes, file or session require a matching receipt. Never use a wildcard acknowledgment.

The append-only predictions/guard-events.jsonl retains reveal, predicted, and reconciled evidence; acceptance never erases a surprise. Dry runs do not persist events. Invalid or inaccessible protocol state cannot authorize a changed proposal. This is local intent bookkeeping, not an adversarial security boundary.

The initial oracle handles unique existing statements in identifiable function scopes, plus unchanged complete function bodies. Changed ambiguous/anonymous scopes and changed statement text produce partial/NOT CHECKED evidence. It does not establish loop/switch/exception dominance, semantic predicate equivalence, deleted statements, cross-file moves, or arbitrary shell effects. Native cold fallback runs the same oracle; a standalone generated hook without the daemon reports NOT CHECKED because it has no AST runtime. Restore the daemon or use interlinked-hook for that check. Single-line guards remain valid code; brace style is a separate policy.

Claude's demonstrated native PostToolBatch boundary coalesces TypeScript checks for declared single-file edits. The final tree is checked before the next model request; security guards remain per edit; metric caps advise unless harness.edit_metrics.mode is explicitly enforced. Final compiler findings are repair context, with unresolved work enforced at Stop/commit. See interlinked-verify for fallback and recovery behavior. Merely using multiple Edit calls is not evidence of a retry: correlate their emission time and assistant message with hook feedback.

Repeated pre-edit content advice, test-evidence limitations, and unchanged coverage gaps are deduplicated for model delivery. Full observations remain in local evidence. Deep-audit style/design findings are retained in raw check evidence and available through verify --all-checks; ordinary hook feedback announces this once instead of sending every finding. Errors and blocking decisions remain visible. A persistent warning never becomes a proven error merely because it repeats. Changing coverage counts alone do not repeat the same instruction; a recovered gap that recurs or a different unavailable-check reason is announced again.

Claude and Codex Stop/SubagentStop advisories remain operator diagnostics on stderr. Only explicit blocking repair decisions request another model turn. Source guidance is sent during editing. File-size advice and per-function gates share native edit/patch content projection; unreadable or invalid updates stay unmeasured. Shell effects remain post-execution evidence unless a supported pre-write path is used.

PostToolUse classifies recognized untracked Python environments, installed Node dependency trees and named harness outputs before authored-source checks. Explicit edits, tracked files, protected policy and unsafe/symlink paths do not receive this exemption. Security scope stays separate; excluded files are not passes and runtime-input fingerprints are not narrowed. The same source role separates recovery batches. Repeated unavailable-check diagnostics are deduplicated for delivery; raw findings and unresolved evidence remain. Retry when prerequisites change, not merely because the same diagnostic repeats. Missing evidence cannot yield “all clean.”

For edits outside the guarded repository, both command-based and named external checks (affected tests and dependency audit) skip this repository's runner. Inline content checks remain available. Security findings on excluded dependency files retain normal severity and enforcement; source-quality exclusion is not a security exemption.

The built-in generic rm prior-inspection rule is advisory. A recent literal Read event does not prove inspection of the deletion targets, and clients may expose different read tools. Inspect the intended targets using the available tools; this heuristic does not require a particular invocation. Deterministic destructive-command, reservation and protected-file decisions still apply. Do not infer safe deletion merely from a recent unrelated read.

The legacy same_command_thrice_no_observe advisory excludes simple read commands such as tail, rg, and git status: polling their output is observation. Compound commands, shell expansion and output redirection remain eligible. The advisory reports matching command observations in session history; hook events do not prove distinct executions or whether the agent read the output. This exception changes no execution gates.

Guard audit records retain references for repeated warning text. Use interlinked data search --source warning-occurrences to inspect full first/changed messages, hashes and occurrence counts; data show ID opens their raw evidence. This bounds repetition in the activity mirror without changing the guard decision or the warning returned by the evaluator. A later not-reported observation does not prove that the underlying issue was fixed.

Interlinked runs a local daemon that evaluates each pre-execution event the installed runner exposes to its hook surface (PreToolUse). It is default-permit with targeted forbid: it allows everything except known-dangerous shapes, which it refuses with an actionable reason and a safer alternative. It is a fast deterministic guardrail, not a security trust boundary (it's local and bypassable) — so the right instinct when blocked is to take the suggested safe path, not to defeat the pattern.

Load this when

For the experimental Cowork plugin, first load interlinked-cowork. Its portable guard is a subset of this daemon: exact tool/path denials and the shared destructive command guard. Native crashes/timeouts were observed to fail open; the plugin's launcher mitigates child failure but cannot enforce an absent/provider-killed hook. Host file policies require explicit bridge mapping and matching file snapshots.

  • A tool call was refused: BLOCKED: <reason> / Suggestion: <safer alternative>.
  • You see an [interlinked:<check>] warning (tagged [proven] or [heuristic]).
  • A destructive command, git push --force, protected-file, secret, repo-confinement, or bash-redirect-bypass rule fired.
  • You need to legitimately suppress a check false-positive, or disable a wrong guard rule.

Mental model

  • Each installed hook event ships its payload to the daemon over a Unix socket. The daemon runs an ordered set of phases; the first phase that returns a terminal decision wins.
  • Framed daemon RPC validates each method's request shape, including nested hook metadata and administrative arguments, before dispatch. The client accepts only matching-id responses with the expected method result shape. Malformed frames do not become successful decisions; the existing timeout and fallback behavior still applies.
  • Local quality-check overrides validate each supplied field before merging it. Malformed fields are ignored while valid fields and sibling checks survive; new checks require the complete mandatory configuration. Team overrides affect existing checks only. Default configuration copies preserve non-JSON values such as an unlimited (Infinity) step limit.
  • Content-scanner allowlists skip malformed entries. Known entry kinds require their declared string fields; an unrecognized scanner runtime cannot select a backend. These checks apply to these boundaries and do not imply that every legacy configuration section has a schema.
  • Decisions: block (tool refused, you see the reason), ask (human confirmation — Claude and supported Cursor gates can ask natively; interactive Pi calls ctx.ui.confirm; headless Pi, OpenCode's stable tool gate, Codex PreToolUse, Copilot, and Gemini deny instead; Claude/Codex PermissionRequest allow/ask abstain so the provider retains authority), or allow (may still carry non-blocking warnings, or an updated_input rewrite).
  • Built-in rules are regex patterns on the command/tool-input. Use interlinked harness checks for the authoritative current inventory. Patterns are ORed over positive entries; negate:true patterns are exceptions. executed_only masks quoted/heredoc/comment text, so mentioning rm -rf / in an echo is allowed while the bare command blocks. A quote around ONE shell word is an operand, not a mention: it stays visible, so truncate -s 0 "src/app.ts" blocks like its unquoted twin, while a quoted body with whitespace or a metacharacter (git commit -m 'rm -rf /') stays masked. A quoted argument of eval (or of bash -c, python -c, node -e) is code and is scanned. Compound commands (&&, ||, ;, |, newline) are decomposed and each part checked.
  • If a stopping rule matches only data, you get [interlinked:guard] rule <id> matched inside a string literal (…); not blocked instead of a block. Data here is a harness test argument, a grep/rg pattern, an echo/printf argument, or a string in a node -e/python3 -c program with no child_process/subprocess/system/exec. If the text can reach sh, bash, eval, xargs, or a script that the same command runs, the block stands.
  • Python open(...) checks inspect executable calls and recognize write and append modes; read-only calls and quoted examples do not establish a file write. Keep malformed tool input tests at the raw hook-input boundary rather than passing invalid normalized events.
  • The log-output guard measures ordinary single-file head/tail windows of up to 200 lines before rejecting a file over 100 KiB. Small windows pass on large logs; a selected line over the byte budget still blocks. Signed counts and unfamiliar option combinations retain the file-size gate. Daemon and generated-hook paths use the same bounded reader.

Two unrelated things are called "guard". This skill is the PreToolUse guard (the daemon, operated via interlinked harness …). interlinked guard is a separate git pre-commit/pre-push hook that checks staged files against file reservations — see interlinked-coordination.

What gets blocked (with concrete examples)

CategoryBlocks (examples)Allows (examples)
Destructive fsrm -rf /, rm -rf *, rm node_modules, sudo rm …, dd, mkfs, shred, chmod 777rm -rf /tmp/x, rm -rf dist/, rm -rf .wrangler/cache
Process killingpkill node, killall wrangler, kill -9 1234, kill $(pgrep …), … | xargs killpkill -f 'wrangler dev', grep -rn "kill -9" src/
Gitgit push --force/-f, git reset --hard, git clean -fd, git checkout -- ., git branch -D, git stash drop/clear, agent-created worktrees (git worktree add; Claude WorktreeCreate)git push --force-with-lease; git worktree list/remove/prune
DB / cloud / IaC / containersDROP DATABASE/TRUNCATE/DELETE-without-WHERE, docker … prune/rm -f, kubectl delete, terraform destroy, pulumi destroy—
Info-flow / persistenceenv exfil (env | curl …, printenv | nc …), .npmrc/.yarnrc writes, nohup curl … &, crontab -e, systemctl enable, writes to /etc/cron.d/, *.service—
Protected filesRead/Write of *.pem/*.key; Write of *.env* only if secrets detected; Delete of CI configs, migrations/**, .gitignore, lockfiles, Dockerfile.env.example / .sample
Sensitive-file readRead of .env, credentials.json, service-account*.json, *.pem/*.key.env.example
Repo confinementany Write/Edit whose real (symlink-resolved) target is outside the repo rootpaths under the allowlist / session scratchpad
Package installsany un-allowlisted npm/pip/cargo/go/… install; URL/git/tarball specs — see interlinked-supply-chainallowlisted + exact-pinned
Bash-routed write bypassa > / tee redirect, sed -i / perl -pi / gawk -i inplace / ex / ed in-place edit, patch / working-tree git apply, or a wrapped form (xargs, find -exec, timeout) writing a tracked source file (dodges the content gate)Write/Edit, interlinked write, or index-only git apply --cached <patch>
Applier-script execution (builtin-patch-applier)running an interpreter on a pre-existing throwaway script that writes into repo sourceroute the edit through Write/Edit; committed codegen belongs in scripts/
Bash-edit obligation (bash-edit-obligation)a bash-channel edit left an INTRODUCED pre_block-class finding on disk; the owning session's write-class calls to OTHER files are refused until it is fixed (edits to the flagged file and reads stay allowed; the gate re-checks and self-releases)fix the flagged file first; unknown-writer findings do not acquire a guessed session owner
Hand-rolled patch appliera throwaway script in the scratchpad or scratch/ that calls writeFileSync/appendFileSync/write_text on a path outside its sandbox ("src/…", process.cwd(), ../) — a re-implementation of Edit with the gates removedprobes that only READ repo source; scripts writing beside themselves; committed codegen under scripts/
Content pre_block (introduced-only)edit that introduces merge-conflict markers, eval(), and other zero-FP checkspre-existing instances (warn, not block)

Inline interpreter writes (builtin-interpreter-write) require evidence about the write's own destination: a literal source path or a simple variable binding to it. Reading or hashing a source file while writing a JSON ledger does not establish a source edit. The guard does not pair unrelated filenames with writes elsewhere in the program. Reassigned, shadowed or otherwise unresolved destinations are not grounds for this hard block; computed-write warnings remain advisory. Actual source writes still belong in Write/Edit or the supported Interlinked write flow.

When you're BLOCKED: what to do

Distinguish a hook rejection from a command that executed and then failed. OS EPERM, DNS failure or a host proxy denial after Interlinked allowed a command requires runtime network diagnosis: interlinked network check <http(s)-endpoints...> --json in that agent shell. Follow interlinked-setup for reusable host permission profiles. Do not clear guard state, disable hooks or restart the daemon to repair an external sandbox restriction.

For selected-hunk staging, prepare and review a patch, then run git apply --cached <patch>. It changes only the index and preserves other working-tree edits. git add -p, -i, and -e remain blocked as interactive operations; use git add <paths> for whole files. Flags on a later shell command do not make staging interactive; a backslash-escaped newline continues the same command and retains its interactive restrictions. A normal git apply or git apply --index still writes the working tree and must use the content gate.

  1. Read the reason and Suggestion:. The suggestion is the intended path (force-push → --force-with-lease; rm node_modules → npm cache clean --force && npm install; pkill node → target the PID or pkill -f 'wrangler dev'). Take it — but the safe flag is not always the whole answer. For a destructive or history-rewriting op on a shared target (force-push to main, dropping data), the block is also a prompt to check intent: confirm the action is warranted and that you have explicit user authorization before proceeding.
  2. Don't rewrite to dodge the regex. The pattern encodes a real hazard; evading it is the wrong move (and trajectory detectors watch for evasion).
  3. Content-check blocks are introduced-only. A pre_block finding ([check_id] in the reason) blocks only when your content has more instances of that finding's line text than the file already had (multiset over whitespace-normalized text — moving a pre-existing finding doesn't count; a brand-new file counts everything). Fix the line(s) you added, then retry.
  4. Legitimate suppression — only when a flagged line is genuinely deliberate:
    • Inline, on the line above the finding: // interlinked-ignore: <check-id> — <why> (reason separator —, --, or –; comma-separate multiple check ids).
    • File/glob-level: an entry in .interlinked/verify-suppressions.json ({ "<file-or-glob>": { "<check>": {"reason","by","at"} } }).
    • Both are honored identically at pre_block, PostToolUse, and interlinked verify, and are ratcheted/audited (visible exceptions, not silent bypasses).
    • Distinct: // interlinked: defer <check> -- reason acknowledges a finding without suppressing it (still logged) — for pre-existing findings you're choosing not to fix now.
    • A [interlinked:sequence] pre_block (trajectory detectors such as secret_read_then_network_call) is deferred the same way, but the marker must sit in the call itself — the Bash command text, or the content you are writing — and must name the detector id exactly. The call then runs and the harness logs [interlinked:sequence-deferred] with your reason. These detectors latch on session state. Since 2026-10-08 secret_read_then_network_call is default-off: sensitivity is tracked and warned, never blocked, on outbound network calls.
  5. When NOT to suppress: [proven] findings (tsc/biome/gitleaks/semgrep actually ran) and any destructive/security guard-rule block. Suppression directives affect checks, not rules — you cannot // interlinked-ignore a git push --force block. If a rule is wrong for your repo, the fix is config (below), not a comment. Don't add @ts-ignore/biome-ignore to silence a [proven] check — that trips suppressions-unjustified.

Loopback requests after a sensitive read. Since 2026-10-08 the sensitivity guard tracks and warns, but never blocks, outbound network calls; the rules below apply when secret_read_then_network_call is enabled. It uses destination-aware classification. Explicit HTTP(S) curl requests to localhost, IPv4 loopback (127.0.0.0/8), or IPv6 loopback (::1) are exempt, including ordinary request/data/header flags. Simple nc/ncat/netcat loopback connections are also exempt. Wget requires --max-redirect=0 and a supported simple invocation. Each network command and destination must qualify: a local request never exempts another remote request in the same shell command. Sensitivity remains unchanged. LAN/private addresses, unknown destinations/options, shell expansions, curl redirect flags, explicit proxies, alternate resolution and config-file options retain guarding. Explicit environment assignments selecting proxies or client configuration also retain guarding. This is a static command classifier; it does not inspect ambient client configuration or prove what a local service does with received data. Other guards continue to apply.

Sensitivity follows the acting worker and its ancestors. An already-running clean sibling keeps its own sensitivity; new children inherit their parent's current sensitivity. This also applies to the optional content scanner. Unknown actors and legacy state retain the conservative session-level fallback.

All sensitivity levels have unlimited tool-call budgets by default. Long sessions do not enter read-only mode or receive budget warnings merely because of their call count. After rebuilding and restarting, the next event applies current step-limit policy even to a restored session with an older finite cap, preserving its sensitivity and trajectory.

Git scope checks normalize absolute session write paths and Git's repository-relative paths against the repository root, including commands invoked from subdirectories. Unowned files still require review; matching a path does not authorize a commit by itself.

Inspecting the sensitivity level. interlinked harness taint status [--session <id>] [--json] reports the level, the step limit, the source that SET the level (proven from the escalated flag, or inferred as the earliest source at that level on a pre-flag snapshot) and the last sources; it reads live daemon state when a daemon answers, otherwise .interlinked/sessions/<id>.live.json, and says which. Lowering a level is operator-only: interlinked harness taint clear --session <id> --reason "<text>" needs a real terminal on stdin and stdout plus a typed session-id prefix, has no --yes/--force, and appends an audit row to .interlinked/taint-clears.jsonl — so ask the operator to run it from their own shell rather than trying to clear your own taint (like every local check, the TTY gate is a convenience, not a trust boundary).

Commit-risk nudge. On a real Bash git commit, [interlinked:jit][heuristic] warns when the currently staged diff ranks at p90 or above against recent commits in this repo. It is advisory, never blocks, and does not replace subsequent commit gates. Inspect it with interlinked metrics jit --staged --message '<planned subject>'; see interlinked-quality-gates for calibration, interpretation and snapshot limits.

An agent must not create a Git worktree to route around shared-workspace policy. Use the current workspace. If isolation is genuinely required, ask a human operator to provision an approved worktree; listing and cleanup of existing worktrees remain allowed.

Warnings: [proven] vs [heuristic]

Filesystem observations and native control limits

The daemon watches protected policy files and literal in-workspace reservation paths, then reconciles content identities periodically and at delivery boundaries. Writes by a shell, editor or agent can create durable pending verification entries. Writer identity is unknown; a reservation is not proof that its holder performed the write. Glob reservations, symbolic links, inaccessible or oversized files remain explicitly unmeasured. A stopped or unavailable observer cannot certify coverage.

harness coverage status --progress --json reads cached observation time, generation and recovery counts without reconciling files or returning receipt history. Use it for progress, not to certify current bytes. Plain harness coverage status --json still reconciles and returns full evidence. Neither status command starts recovery. Starting verification returns a compact job acknowledgement. The waiting CLI refreshes current pending versions and the matching job's detailed results before declaring success, without copying historical receipts into each recovery response. An unmeasured check is not a successful verification, even if no findings or pending versions remain. While waiting, transient control outages are retried read-only for up to two minutes per outage (plus an in-flight RPC deadline), rather than failing after three timeouts. Terminal stderr reports the outage; JSON stdout remains one final document. A responsive report resets that outage window. Host permission denial and invalid control responses stop immediately; verification mutations are never automatically resubmitted after an ambiguous response. Receipts with nonempty unavailable retain completed checks as partial evidence while keeping the version pending. Retrying is not made unnecessary merely by having a receipt; safe cross-run reuse needs the relevant check input identities.

Background coverage recovery runs ShellCheck and Taplo in file mode, sequentially under one project lease, with at most 32 inputs and a 30-second shared deadline per tool. Interactive multi-file requests still defer these file-only runners. Missing tools, truncated output, process failures and unparsed nonzero exits remain unavailable evidence; they cannot clear a pending version. Recovery may finish with pending versions when native test scopes or tools are missing, or when an observed file was deleted. Inspect the retained reasons before retrying; a completed job is not a claim that every version was checked. If a nested project's imported lint policy belongs to an ancestor project, background recovery waits for that policy project's lease within the existing tool deadline. Foreground checks still report contention immediately. Time spent waiting reduces the analyzer's remaining budget; it does not extend the job.

harness coverage accept-policy <digest> records an explicitly reviewed current policy identity. It neither runs checks nor restores old policy bytes. A later Claude ConfigChange can refuse application of a differing identity, after the disk write has happened. This is not an immutable trust anchor or a universal policy reload interlock. Do not describe watcher readiness as baseline-integrity enforcement.

Native translations are recorded in .interlinked/hook-translations.jsonl by the compiled entry point. A post-tool refusal may become context, continuation or batch cancellation; observational events cannot enforce a denial. Copilot/Gemini approval requests conservatively deny where native approval is not certified. Experimental Antigravity uses force_ask; Antigravity and Windsurf refuse a required input rewrite that their hook cannot apply. Read translation status separately from native enforcement. Harness-disable trajectory detection reads executable command positions, so a mutation-test filename containing kill is not a process-kill event. Failed commands do not establish a successful disable. A later event served by the daemon retires process/socket-outage suspicion; it does not retire a recorded weakening of disabled_rules. Shadow verdicts remain advisory and do not include a misleading BLOCKED: prefix.

The optional-chain check uses syntax grouping: passing value?.field to a function and then accessing that function's result is different from (value?.field).name. Without optional TypeScript syntax support it cannot establish this finding; silence is not a clean verdict. SQL migration checks likewise cannot prove a column absent from an interpolated column list. For it.each(table)(name, callback), assertion checks inspect the callback, not functions inside the data table. An unparsed callback cannot prove assertion absence; table assertions also cannot satisfy an assertion-free callback. A call to a same-file helper that asserts (directly or through another such helper), or to an assertX(...) function, counts as an assertion.

Every warning is tagged. [proven] = a real compiler/linter/scanner/parser/test-runner produced it — authoritative, fix it. [heuristic] = regex/AST-shape match that could be a false positive — evaluate it. No tag = unknown check id (never guessed).

Visibility varies by runner. On the supported Claude and Codex gate surfaces, a block reason is surfaced through the provider's blocking channel. Experimental adapters target their native response or exit-code shapes, but registration is not proof that every provider version enforces them identically. Claude and Codex use model-visible additionalContext only on events whose contracts support it. A Claude PermissionRequest deny uses hookSpecificOutput.decision = { behavior: "deny", message }, not PreToolUse's permissionDecision; allow/ask abstain on stdout, and non-blocking PermissionRequest diagnostics stay on stderr. Cursor uses additional_context on generic postToolUse. OpenCode appends post-tool feedback to tool output; Pi appends it to tool_result and can notify an interactive UI. Copilot remains stderr-only and some lifecycle events are observation-only. Allow-warnings are easy to overlook — read them.

Codex Stop and SubagentStop request continuation only for an explicit harness block. Its reason is preserved before any additional context or warnings. An allow or ask decision emits no stdout; diagnostics stay on exit-0 stderr for operator inspection, not model-visible continuation. These events have no native approval channel. Pending hook-coverage evidence alone does not force another turn or become checked by allowing completion; inspect coverage status separately.

Silence = no model-visible finding, NOT "everything was checked" (2026-08-27). A served, clean PostToolUse result writes ZERO BYTES — no [interlinked:Bash] all clean (354ms) row, not even an empty {} envelope — because runners render one hook row per response and parallel tool calls multiplied that into unusable noise. Outage visibility is phase- and runtime-specific:

ResultWhat you see
Clean PostToolUse result served by the daemonnothing (recorded locally only)
Findingsone compact [interlinked:<check>] block
Blockthe reason plus the affected target — including a block that carries no warnings
Daemon unavailable, packaged PreToolUse runtimean explicit evaluator skipped diagnostic; code edits also report function-token enforcement as not measured
Daemon unavailable, generated PostToolUse runtimemay remain model-silent while recording local no_harness status
typescript unresolvable (--omit=optional install)a [interlinked:self_import] NOT MEASURED warning on every JS/TS edit — that pre_block check ran no scan and never guesses; the cyclomatic gate degrades to the regex walker; the daemon startup warning names both
self_import cannot place the file in ONE projectthe same NOT MEASURED warning on that edit only, naming the cause: a tsconfig on the walk (nearest config, its extends, its references, its sibling tsconfig*.json files) could not be parsed; two projects both claim the file; the reference walk hit its 32-project bound with projects unvisited; no config in reach claims the file by a files/include pattern (a .js/.jsx/.mjs/.cjs importer is matched by pattern even when the project never enables allowJs — a JS self-import is a runtime fact); or the importer's directory is not on disk yet. The check resolves with the project's own compiler options and caches nothing, so fixing the config applies on the next edit. In a batch (write --batch, multi-edit, verify-changeset) it sees the whole proposed batch, and the baseline is judged against the disk
a batch rewrites a file of the project's configuration graph — the selected tsconfig, any file its extends chain reaches (whatever it is called, base.json included), or any tsconfig*.json / jsconfig.json / package.jsoneach TypeScript entry of that batch carries a type checker cannot see the proposed configuration row (error for transactional callers) — the checker reads the disk's config; land the configuration change first, then the sources
a batch includes a member whose bytes equal the disk beside members that differthe unchanged member is still type-checked, against the proposed siblings (a changed exporter can break an untouched consumer); multi-edit validates every manifest member and writes only the changed ones. Only a batch whose members are ALL unchanged skips the check. A config member whose bytes equal the disk is not a configuration rewrite
the type checker cannot place the file in ONE projecttype checker unavailable (project_orphan: …) or (project_ambiguous: …) on that edit — a warning on the hook path, an error for transactional callers. The compiler judges each file under the SAME project self_import selects (nearest config, references, sibling tsconfig*.json, membership by pattern; one program per governing config) and never under the project root's config by guess. Its disk baseline is recomputed on every check, so a dependency repaired or broken on disk is reflected the next time the file is judged. A warm compiler service is rebuilt when the CONTENT of any file of its configuration graph (the tsconfig or an extends target) changes on disk, re-reads the project's root files on every reuse (a declaration file added or removed on disk joins or leaves the program), sees a dependency rewritten on disk by its compiler TEXT (every UTF-16 code unit is preserved, including lone surrogates; a touch that changes no text does not count; each check reads a file once, so what it compiles is what it fingerprinted), forgets a proposal the moment its check ends (a refused proposal never colours a later check), and a configured project with no source on disk yet still measures the first source written into it

No output therefore never proves the full daemon check set ran. To distinguish a served clean result from a silent degraded PostToolUse path, ask interlinked harness status or interlinked doctor; inspect .interlinked/activity.jsonl and the statusline for the per-call state.

The block row is load-bearing: the response path decides on the DECISION, never on whether the warning list happens to be non-empty. If you are about to rely on "the harness would have caught it", confirm the daemon is answering first — silence is not evidence that it was.

Test edits use the same hook loop. Deterministic introduced test theatre (assertion-free or tautological cases, SUT self-mocking, focus markers, unconditional skips) blocks before the write. Lower-confidence but low-noise test-quality findings are PreToolUse warnings so even a small writer can correct them immediately; context-heavier suite review stays in PostToolUse. Do not silence a warning merely to land the edit—assert a precise observable behavior, or justify the actual public compatibility contract.

With explicit structural_checks.test_first_mode: "enforce", an empty repository does not exempt new JS/TS or Python source from companion-test requirements. Write the first meaningful test, observe its failure, then implement the behavior. Existing pair-debt workflow remains available after a suite exists; warning mode stays advisory. This creation gate does not itself prove that every later change followed red–green TDD.

Test-discrimination advisories are post warnings and also run under verify --all-checks. They review fallback-only evidence, indistinguishable positive/negative expectations, unpinned spy arguments, wildcard observables, in-tree fixtures, fixed ports, ambiguous throw messages, unguarded catch assertions, vacuous loops, mock return echoes, duplicate bodies, spies without restoration, export existence smoke tests, and commented-out assertions. They never block. Evaluate the intended contract: forwarding a mock value or preserving an export can be legitimate. Fix a detector false positive before rewriting valid tests. spy_without_restore recognizes applicable local cleanup and statically discovered Vitest/Jest restoration settings; clearAllMocks/resetAllMocks are insufficient. Fresh test-owned array literals are exempt, as are fresh test-owned objects; module/suite arrays, shared aliases, and prototype methods still need restoration. Source headers and docs/design/test-discrimination-checks.md describe limits and calibration. A corpus hit count is not precision or proof of a surviving mutant.

Bash effects and sandbox evidence

Do not trust a tool name as proof that no file changed. For Bash and other potentially mutating tools, the daemon snapshots Git-visible files plus standalone ignored local files (for example .env, while collapsing bulk ignored directory trees) before the call and attaches the observed created/modified/deleted ChangeSet after it. PostToolUse file checks prefer those observed paths over command text or runner-declared paths.

A read-only tool contributes no observed paths. The ChangeSet is a diff of the window the call occupied, not a record of what the call did, so on Read / Glob / Grep / WebFetch / WebSearch / TodoRead / NotebookRead / ListFiles every path in it was written by somebody else — another agent on the same tree, a background test run, a watcher. Those calls are charged nothing and run no file checks. Bash is NOT in that set and keeps its ChangeSet (it is the bash-edit obligation channel), and neither is an unknown tool, so a new writer cannot open the bypass by using an unfamiliar name. The list is one definition, at src/lib/hook-read-only-tools.ts. Claude Code's PostToolUse hook is also registered only for Write|Edit|MultiEdit|NotebookEdit|Bash; Codex keeps the all-tools matcher because apply_patch arrives through it. Reservation handling parses every apply_patch section destination and move source once; PreToolUse grants and PostToolUse idle-release scheduling consume the same ordered, de-duplicated path list. It preflights that full list before granting, so a later blocking path cannot strand an earlier lease when the tool never runs and therefore has no PostToolUse.

A Stop-time [interlinked:effect-residue] warning means a PostToolUse was missing/unreconciled; the observed files were added to the touched-file rescan. Effects reconciled by another actor are excluded (the warning reports the excluded count) — this includes another session and a sibling subagent that shares the same Codex session id, so one parallel actor is not charged for another's work. Actor identity is evidence-bounded: Interlinked uses the stable subagent id when Codex supplies one and otherwise stays at root-session scope. Persisted pre-upgrade rows with no actor field remain conservatively session-scoped; new rows distinguish a known root from a known child across daemon restarts. The noisy .interlinked/ runtime tree stays collapsed, but its exact local policy/control files are observed and cannot be silenced by skip_paths.

Interpret [interlinked:sandbox] as evidence visible to the hook:

  • attested — the runner marked this call sandboxed;
  • configured — restrictive client config was found, but a CLI/profile override may differ;
  • disabled — the call/config explicitly selected unsandboxed/escalated execution; or
  • unknown — no trustworthy evidence reached the hook.

A workspace-write sandbox limits blast radius but still writes the real project, so it is defense-in-depth, not rollback. Do not rerun or rewrite a command to evade this warning. For changes that require rejection before disk, use Edit/Write or gated interlinked write/multi-edit. The transactional commands share the content gate and commit lock. They capture target state before checking, abort on target drift, preserve modes, and refuse rollback over newer edits. Unavailable Biome or TypeScript checks abort a transaction. Re-read and re-gate a conflicted proposal; consult interlinked-verify for the command contracts and transaction limits. The observer is bounded ordinary-process evidence: concurrent writers can cause conservative extra attribution, and an incomplete snapshot is never proof of absence.

Compiler acceleration

The separate Bash compiler accelerator recognizes tsc / npx tsc only in executable positions of flat, quote-aware command lists. Quoted search patterns and look-alike names are never compiler invocations. Commands with comments, newlines, substitutions, or grouping run unchanged through the normal tool.

TypeScript check scheduler (off by default)

[interlinked:typescript] deferred by scheduler (p=0.xx) means the daemon did not run tsc for that edit. A logistic over free edit features predicted a clean result. This is not a pass. The file stays in a per-session deferred set until tsc runs. The next edit that the scheduler runs checks the set, and Stop always checks it. A Stop drain with type errors or without a verdict blocks Stop. Do not describe a deferred edit as type-checked. The scheduler is OFF by default. It is calibrated on one repository (interlinked-cli) and does not transfer across repositories. Only guard-rules.local.json can enable it: {"quality_checks":{"typescript":{"scheduler":{"enabled":true}}}}. An edit that changes an import line is never deferred. To list the deferred runs, use interlinked query checks --where scheduler.deferred=true.

False-positive filter for [heuristic] findings (off by default)

[interlinked:fp-filter] [heuristic] N findings suppressed by fp_filter (p<…) means the daemon withheld N [heuristic] findings that a free logistic (check id, path class, severity, repeat count, message length) scored as probably not worth a fix. It never touches [proven] findings, pre_block checks or blocking results. The filter is OFF by default. It is calibrated on one repository (interlinked-cli: holdout AUROC 0.906, kept 26/26 true positives, suppressed 66/122 false positives). Only guard-rules.local.json can enable it: {"fp_filter":{"enabled":true,"mode":"downgrade"}} ("hide" gives the count only; min_p moves the cut). Each suppressed finding is still recorded in check-results.jsonl. To audit them, use interlinked query checks --where fp_filter_suppressed=true.

Grep acceleration

The guard intercepts Grep tool calls and Bash rg/grep, queries a trigram index for candidate files, and can answer the search directly (block-and-answer) faster than a full scan. It is strictly never-worse-than-native: on small/medium repos it declines and native rg runs unaccelerated. It's a large-monorepo optimization; you don't manage it. Inspect what it would match with interlinked index query <pattern>. Your own just-written edits are immediately searchable (in-memory dirty layer).

Configuring the guard (when a rule is genuinely wrong for the repo)

Config lives in .interlinked/guard-rules.json (team) + .interlinked/guard-rules.local.json (personal, gitignored). Merge priority: local > team > built-in.

  • disabled_rules: ["builtin-git-force-push", …] — turn a built-in rule off (built-ins can be disabled, never edited).
  • extra_exceptions: { "<rule-id>": ["substring", …] } — the rule won't fire if the command contains a listed substring.
  • Team/local/distilled files hot-reload within ~2s (watchFile); interlinked harness restart forces a full reload.

The cold fallback (daemon outage degrades; deterministic gates stay closed)

Hook invocations record their transport outcome in .interlinked/hook-transport.jsonl: daemon means a valid daemon response, cold means fallback, and suppressed means intentional repeated-Stop suppression. Correlate event_id, session_id, native_event, hook_pid, socket_path and protocol. The hook PID identifies the receipt writer; verify daemon PID ownership separately. Daemon activity rows carry writer: "daemon"; the generated hook also writes activity, so an unmarked activity row is not proof of daemon handling. If the configured daemon socket is unreachable — including a zombie with a live process but dead listener — every ordinary hook phase enters a cross-process, single-flight recovery path. Daemon absence alone does not blanket-block safe reads, diagnostics, or repair work. The current call proceeds in degraded mode after the inline deterministic subset runs: merge-conflict markers, destructive commands, package installs, graph-shard protection, and file-dump limits. Native fallback also enforces local guard-prediction reconciliation; physical file size only advises. Checks needing the full evaluator are explicitly unavailable rather than silently reported clean.

interlinked harness status, harness start / restart, doctor, disable, and the exact interlinked install-hooks --refresh --preserve-mode repair remain executable during an outage and do not race the automatic launch. A recovery message says “launch attempted” only when this hook actually spawned; lock/backoff/stand-down paths do not claim that a supervisor is bringing anything back. A valid guard-disabled.json or guard-disabled.local.json marker suppresses self-heal. interlinked harness status confirms recovery — a red ZOMBIE line means a live PID is answering nothing, so trust the socket probe over the PID. See interlinked-setup for the liveness states and startup-failure ledger.

If the installed hook binary itself is missing or broken, the self-contained wrapper follows the same no-deadlock boundary: Claude/Codex reserved read builtins and Cursor's dedicated beforeReadFile event proceed with an explicit degraded warning. Ambiguous generic names on other gates do not. Exact build/status/repair/non-destructive-disable commands remain available, while mutating and unknown tools receive the provider's native deny response. Shell commands are never inferred read-only from their text. Restore the runtime before relying on the full evaluator.

Gotchas

  • The "sleep is blocked" claim in old docs is stale — there is no standalone sleep block in the current rule set. Don't rely on it.
  • interlinked harness test "<cmd>" fires a synthetic event at the daemon to see if it would block — and is itself exempt from destructive rules so you can test them safely. A chained destructive tail still blocks; "test allowed it" ≠ "the real command is allowed".
  • harness restart clears per-session trajectory state — soft_block "retry allowed" memory and trajectory detectors reset. A restart mid-task can change guard behavior.
  • SessionEnd heavy checks are single-flight per daemon — a burst of agent shutdowns does not start duplicate recurrence scans or coverage ratchets. While one detached job is still active, later SessionEnd events log it as already running and skip that copy; the next run becomes eligible when the child exits or the daemon restarts.
  • Shadow trajectory observations are recorded in check-executions.jsonl as hook-observation.v1 rows (kind: trajectory), without model warnings. They preview possible rules and do not enforce the reported action. Enforced trajectory rules remain active.
  • PreToolUse blocking: Claude Code and Codex are supported. Claude also registers PermissionRequest; Codex registers all twelve native lifecycle/tool events. Codex PreToolUse ask becomes deny, while both providers' PermissionRequest ask preserves the native user prompt. Codex Interrupt is asynchronous observation only: it emits zero stdout and never runs Stop/SessionEnd cleanup. Cursor, Copilot, and Gemini adapters can register and parse events, but their end-to-end provider enforcement remains experimental (no provider-level contract test). Copilot/Gemini collapse ask → deny. OpenCode and Pi are experimental managed bridges: OpenCode hard-gates generic tool execution but ask denies and its permission/Stop signals cannot control the provider; Pi gates both tool_call and direct user_bash, asks through an interactive UI, and denies headless. Neither has dedicated native MCP, subagent, or worktree lifecycle events. Do not infer an absent event from silence; the shared git worktree add shell block still applies.
  • PII content scanner is separate and opt-in: interlinked scanner on|off|toggle|status|review.
  • Decision shadows (opt-in decision_shadow in guard-rules.local.json) log a model's second opinion and never change a verdict. A guard_block row means a shell block was asked "is this destructive as written?": would_release (p < 0.1476) says the model saw no destructive action, and would_hold says it agrees with the block. A secret_hit row means a secret signature was asked "is this a real credential?": would_clear (p < 0.479) says it is likely a placeholder or fixture, and would_keep says it is likely real. Release rate = would_release rows / all guard_block rows; read them with interlinked query .interlinked/decision-shadow.jsonl --where surface=guard_block (add --by verdict for the split). A release is NOT permission: the block still stands. The same ledger holds the edit-shadow rows (surface=edit, question edit_needs_verification_v1); every row kind keys its session as session_id.
  • Env bypasses (logged, documented-flows only): INTERLINKED_DISABLE_PACKAGE_GUARD=1, INTERLINKED_DISABLE_BASELINE_GUARD=1, INTERLINKED_DISABLE_SCRATCH_GUARD=1.

Quick reference

interlinked harness test "git push --force"   # would this block? (safe to run)
interlinked harness checks                     # authoritative check inventory
interlinked harness status --json              # liveness + socket_answered
interlinked index query "<pattern>"            # what the grep accelerator would match
interlinked harness restart                    # reload everything (clears trajectory)

Related skills

  • interlinked-verify — the check catalog behind the warnings, interlinked verify, and how to land edits through the gates.
  • interlinked-quality-gates — advisory file size and the coverage/complexity/function-token ratchets.
  • interlinked-supply-chain — the package-install gate in detail.
  • interlinked-setup — starting/restarting the daemon, doctor, config.

Permission proposals and unavailable checks

The permission learner is suggestion-only. Crossing an observation threshold does not write Claude permissions or guard rules. Proposals retain the observed command and conservative pattern; observations do not prove approval or execution. Interpreter-wide and compound-command proposals are withheld. Cross-session learned-rules.json is observational proposal history, including its legacy decision: allow field; it is not effective authorization. Existing explicit permissions remain operator-owned.

Unknown active_when session predicates leave a distilled rule dormant with a diagnostic. The registered predicate is active_agent_count_at_least with count; do not substitute invented predicates or the legacy top-level session_predicate shape. See enforce for supported typed conditions.

Existing top-level session_predicate fields retain their historical unconditional matching and the operator's enabled setting, with a migration diagnostic. They are not evaluated conditions. Migrate them explicitly to supported active_when rather than silently disabling existing guards.

The baseline-effect guard compares bounded pre-call snapshots with the files after a tool call and restores the WHOLE pre-call file when a protected water-line loosened. Reapply any legitimate tightening that shared the same file. Restore audits live in .interlinked/baseline-undo/restored/; a failed restore leaves recovery evidence and a warning. Mutation-manifest changes and first-time seeding of an absent complexity metric are record-only: review and restore inappropriate changes yourself. Intentional resets require the operator's INTERLINKED_DISABLE_BASELINE_GUARD=1 in the daemon environment; putting it in tool text does not authorize a reset. Dry runs neither restore nor record.

Snapshots do not cover unbracketed background writes, oversized files, or an absent prior water-line. A concurrent write inside another call's bracket may be attributed to that call. Unresolvable Vitest denominator/config comparisons report NOT CHECKED, not a guessed restore. This local guard is not an immutable security boundary. Explicit edit aliases, including VS Code replacement arrays, are normalized per target file; shell wrappers retain their cwd when checking commits and baseline writes. Read-only shell examples are not edits.

A thrown sequence detector or failed Stop scan records NOT CHECKED evidence while healthy detectors continue. Stop rescans are confined to the selected repository, including resolved symlink targets. External memory/config writes retained in session history are reported out of scope; they cannot launch another project's scan or receive repository check receipts. Project-aware detectors receive absolute paths in that repository. Endpoint checks build a project graph only when a finding requires reachability annotation. An instrumentation failure is not a source violation or a clean scan. LTL remains shadow-only: its event-clock.v1 counts PreToolUse and PostToolUse separately, including a paired tool-use ID. Open finite-trace obligations remain unknown at Stop; predicate exceptions taint that property and cannot manufacture violations. No local control-file guard is an immutable security boundary.

Each throwing trajectory rule produces unavailable shadow telemetry while peer rules and the LTL monitor continue. Adapter failures also retain unavailable telemetry without changing the enforcement decision.

Opt-in TypeScript history at Stop

verification_stop_checks.session_tsc_history defaults to false. Setting it to true appends advisory context only when the existing unverified-code Stop warning already fires. It reads up to the final 8 MiB of this repository's .interlinked/check-results.jsonl, using only the same session's executed TypeScript outcomes strictly before Stop and within the preceding hour. At least three valid runs and (finding runs + 1) / (runs + 2) >= 0.5 are required; the latest valid run must still report a finding. Counted outcomes must carry a nonempty invocation ID; repeated IDs count only once. Missing, skipped, deferred, timeout and process/resource failure evidence does not count as a clean run. A later no-reported-findings result suppresses the addendum.

This is a reported-finding history hint, not proof of full compile failure or success, not a per-edit risk score, and never a hard block. It does not change the TypeScript scheduler. Partial or unavailable log history can suppress the hint. Continue to use actual verification evidence for the final outcome.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.