Revision: 3 Last modified: 2026-12-04T21:12:29Z
Index of every docs/scripts/*.md companion guide. Each scripts/** tool a governed project runs
carries one in-source documentation block and one guide here (§11.4.18). This file is the entry
point that makes those guides reachable: README.md links the docs/scripts/ directory, and a
directory link resolves to its README.md (§11.4.212 — no document may be an orphan).
Every one-line description below is the tool's own ## Overview opening, read from the guide it
points at. None is invented. Where a guide opens by naming its gate or its mandate rather than a
verb phrase, the description quotes that opening instead of paraphrasing a purpose the guide does not
state.
| Area | Guides |
|---|---|
| Gates and pre-build checks | 10 |
| CodeGraph — sanctioned entry points and MCP | 12 |
| CodeGraph — scope, watch, Lumen and owed-work | 12 |
| CodeGraph — consumer-project update and sync | 3 |
| Release and versioning | 8 |
| Documentation sync, exports and badges | 14 |
| DeepWiki badge | 6 |
| Multi-track binding, labels and guard hooks | 7 |
| Multi-track engine — aliases, sessions, locks and configuration | 21 |
| Multi-track engine — RED/GREEN guards and suites | 25 |
| Reporting and feature scheduling | 5 |
| Agent CLI plugins and prefix commands | 3 |
| HelixCode integration | 3 |
| Token-efficiency and host-safety libraries | 8 |
| Installation, update and setup | 7 |
| Coordination | 1 |
| Pull-request delivery engine (§11.4.297) | 10 |
| Total guides indexed | 155 |
Every guide under docs/scripts/ is listed below; the audit script
scripts/testing/doc_reachability_report.py is what verifies that no guide here is an orphan (§11.4.212).
| Guide | What it does |
|---|---|
| catalog_engine_parse_gate | Turns a project's pre-build verification script into one test-catalog record per CM-* gate, and exposes the same recognition to other tools so that no two consumers can disagree about which gates exist. |
| cm_covenant_12_9_propagation | Enforces that the DISK axis of §12 travels whole into the governance carriers (CM-COVENANT-12-9-PROPAGATION). |
| make_fixture_tracker | Builds a real workable-items SQLite tracker inside a throw-away consumer-shaped fixture project, for fastcycle tests that read <ROOT>/docs/workable_items.db. |
| cm_doc_reachability | The §11.4.212 reachability gate: every in-scope document must be reachable from README.md, and a blind instrument reports BLIND, never orphans=0. |
| cm_doc_reachability_mutation_test | The paired §1.1 mutation test for the reachability gate: plants an orphan, empties the corpus, deletes the start document, and mutates the gate itself. |
| cm_docs_composite_sync | The §11.4.60 composite-sync gate: it asserts that every §11.4.60 documentation class instance carries .html and .pdf siblings no older than its .md. |
| cm_gitlink_on_remote | Gate CM-GITLINK-ON-REMOTE, with its paired mutation test. |
| cm_script_docs_ratchet | The §11.4.18 documentation-debt ratchet: enumerates every scripts/** tool, decides whether it carries its in-source block and its docs/scripts/ guide, and holds the shortfall against a checked-in baseline that may only come down. |
| cm_script_docs_ratchet_mutation_test | The paired §1.1 mutation test for CM-SCRIPT-DOCS-RATCHET: it proves the ratchet can actually refuse, and that it is genuinely load-bearing rather than decorative. |
| cm_storage_floor_and_scratch_budget | Proves that the §12.9 DISK guard — scripts/lib/storage_budget.sh — is not only present but actually refuses. |
| gate_helix_code_home_resolves | Pre-build gate CM-HELIX-CODE-HOME-RESOLVES: verifies the HelixCode home resolver exists, is parse-clean, and its companion doc is present. |
| run_full_suite | The §11.4.40 full-suite retest runner: every test entry point of the repository, outside submodule paths, that the manifest config/full_suite_manifest.tsv declares. |
| zero_findings_sweep | The §11.4.261 mechanical zero-findings audit sweep, iterating the closed ten-class finding vocabulary over the repository. |
| Guide | What it does |
|---|---|
| codegraph_safe | The ONLY sanctioned entry point for CodeGraph init, index and sync. |
| codegraph_safe_helper | Read-only, deterministic measurements that the launcher codegraph_safe.sh needs and that are awkward in POSIX shell. |
| codegraph_guard | Mechanical gate CM-CODEGRAPH-SAFE-INDEX-PATH. |
| codegraph_launch_class | Decides, from the command and args of an MCP server entry, what the entry LAUNCHES. |
| codegraph_mcp | The only sanctioned way to start a CodeGraph MCP server. |
| codegraph_mcp_health | A dependency-free probe answering, with captured evidence and never from configuration alone, whether an agent platform that spawns this project's declared codegraph MCP server will work. |
| codegraph_mcp_preflight | A pre-flight check answering, with evidence and without touching the project's index, "can an agent safely use the CodeGraph MCP server here?". |
| codegraph_mcp_probe | A minimal, dependency-free MCP client. |
| codegraph_scope_guard | Proves that the file set a CodeGraph index would contain is the mandated scope: third-party submodules out, own-organisation submodules in, first-party source indexed. |
| scope_render | Renders a project's CodeGraph index scope from ONE declarative scope.yaml plus the project's .gitmodules. |
| scope_enumerate | A read-only bridge into an installed CodeGraph runner's own file-discovery code. |
| index_watch | Progress-proven monitor for a running codegraph index / init / sync bulk job — every reading is a measurement from the live process, never inferred. |
| Guide | What it does |
|---|---|
| disk_tripwire | Companion to the bulk index's unbounded SQLite growth — the disk-safety tripwire. |
| fk_index_patch | Builds a private, version-keyed, PATCHED copy of the CodeGraph platform package. |
| fk_cascade_probe | A read-only decision tool for one installed CodeGraph build: can its bulk-index windows fall into the FK-cascade full-scan trap? |
| lumen_verify | Golden-query verification of a real Lumen semantic-search index. |
| gen_lumenignore | Turns an ALLOW-list ("these directories are first-party") into an explicit .lumenignore DENY list. |
| owed_report | A generated, read-only report of which governed indexing tools still lack tests or a §11.4.18 companion guide. |
Each of these patches a private copy of one CodeGraph release; none edits the shared install.
| Guide | What it does |
|---|---|
| datafrag1 | Stops stock CodeGraph handing raw number-fragment C headers to tree-sitter, where each burns three 20 s hard-kill windows plus a retry. |
| fkidx1 | Restores the secondary indexes that stock CodeGraph 1.6.0 drops before a bulk window. |
| lockfix1 | Fixes stock FileLock.acquire treating a lock file older than two minutes as stale whatever the recorded PID is. |
| mcpro1 | Builds a READ-ONLY CodeGraph runner for MCP serving. |
| resolve1 | Removes the per-call SELECT path FROM files ORDER BY path full-table read in the reference resolver. |
| resolve2 | Fixes the Swift/ObjC framework stage doing an unbounded getNodesByKind('method') filter. |
| Guide | What it does |
|---|---|
| codegraph_update | The §11.4.80 regular-update automation: compares the locally-installed @colbymchenry/codegraph against npm's latest and installs the newer one, on the host, not in the project. |
| codegraph_sync | The §11.4.80 sync automation for a consuming project: runs the canonical sync sequence after an update and writes an evidence ledger. |
| codegraph_update_and_resync | The operator's one-shot: pull, refresh the CodeGraph index, commit, push — the whole local cycle in one command. |
| Guide | What it does |
|---|---|
| release_all | The ONE command that takes a git work tree from "uncommitted work" to "released, published on every platform we can reach, next version opened". |
| release | The one command that releases a project — any project that incorporates the Helix Constitution, and the Constitution itself: it commits pending work, prepares and validates the release, and publishes it. |
| release_changelog | Generates the change log for one release tag from git history, so the document is verifiable and re-derivable by anyone instead of written from memory. |
| release_prefix | Resolves the project's release and tag prefix — the <PREFIX> in <PREFIX>-<version> (§11.4.151) — as the single source of truth for that naming. |
| release_tag | Creates one annotated tag named <PREFIX>-<version>, with the prefix taken only from release_prefix.sh; no prefix literal lives in this file. |
| release_publish_gitea | Publishes (creates or updates) a Gitea/Forgejo release for an existing git tag, through the Gitea REST API. |
| ensure_release_shim | Gives a project its scripts/release.sh — a symlink to the Constitution's release engine, which forwards every argument. |
| sync_governance_twins | Regenerates the .html + .pdf twins of the six root governance documents. |
| Guide | What it does |
|---|---|
| doc_revision_bump | The ONLY authorised way to change a document's §11.4.44 revision header. |
| doc_header_scaffold | Creates the §11.4.44 header in a document that has none, and normalises an offset timestamp to the equivalent Z instant. |
| export_docs_formats | The ONE exporter of the §11.4.60 documentation classes. |
| generate_summaries | Regenerates docs/Issues_Summary.md and docs/Fixed_Summary.md from the workable-items SQLite source of truth. |
| sync_issues_docs | The single doc-sync entry point for the workable-items document set. |
| sync_readme_export | Regenerates the .html and .pdf exports of the project README.md, and can answer without writing anything whether those exports are current. |
| update_readme_doc_links | Keeps the Tracked-Items + Status Documents table in README.md truthful. |
| status_summary_archive | Maintains §11.4.61(A)'s one-line Status summary hook in a governance file's metadata table. |
| compute_badges | The canonical README quality-badge computer. |
| verify_readme_badge_images | Verifies that every badge image referenced by README.md is something a browser can actually render. |
| verify_readme_logo | Deterministic visual validation of the README seal. |
| post_update_hook | The §11.4.164 auto-propagation seam that runs after a constitution pull. |
| formats_export_lib | One shared reader of the "formats export" switch, so every exporter and every sibling-parity gate in a consuming repository agree on whether the Markdown exports are on. |
| doc_reachability_report | Measures §11.4.212 reachability: walks the Markdown links outward from README.md to a fixpoint and reports every in-scope document no chain of links reaches. |
| Guide | What it does |
|---|---|
| deepwiki | Thin shell front end for the DeepWiki "Ask DeepWiki" badge engine. |
| deepwiki_py | The engine behind the badge: a verified indexing oracle plus an idempotent, byte-conservative README writer. |
| test_deepwiki | Entry point for the badge engine's deterministic, hermetic test suite — the command a gate, a reviewer or an operator runs to prove the engine still decides correctly after a change. |
| mutation_test_deepwiki | The paired mutation test proving the badge engine's own suite can actually fail (§1.1). |
| test_deepwiki_hook_wiring | Proves the DeepWiki badge sync is wired into the constitution-pull seam, not merely present as an engine nobody invokes, and that the wiring is safe for a consumer project. |
| mutation_test_deepwiki_hook_wiring | The paired mutation for the hook wiring: three single-point mutations to a copy of post_update_hook.sh, each of which the wiring test must catch. |
| Guide | What it does |
|---|---|
| track_branch_label | The reference §11.4.182 work-stream labeler — the single source of truth for the work-stream identity label. |
| guard-track-branch-label | PreToolUse guard hook enforcing that every agent-dispatching tool call carries a §11.4.182 work-stream label. |
| multitrack_work_binding | The shared, project-agnostic resolver answering whether a changed-file set or ticket belongs to a logic-group whose canonical branch differs from the current one. |
| guard-work-track-binding | The PREVENTIVE layer of §11.4.191 — a PreToolUse guard hook. |
| gen_agent_label_defs | Generates the agent-type definitions that carry the §11.4.182 label in the type name, because the agents list renders only the type and its progress. |
| install_agent_label_defs | Derives the project's (track, branch) set and runs the generator for each into <project>/.claude/agents/. |
| guard-forbidden-commands | A Claude Code PreToolUse guard hook — the anti-forgetting mechanical enforcement floor of §11.4.109. |
| Guide | What it does |
|---|---|
| agent_label_frontmatter_check | A strict, generator-independent validator for agent-type label definitions (T<N>-<branch>-<model>-<effort>.md). It exists so the test suite can judge the generator's output with a parser that shares no code with the generator — the §11.4.245 oracle-independence discipline applied to a config generator. |
| multitrack | multitrack.sh is the top-level entry point of the multi-track engine. It deliberately implements no mechanism of its own: it binds three already-built siblings into one command surface — multitrack_config.sh (host/config resolution + track enumeration), multitrack_registry.sh (the .ws_state/streams.tsv accessor) and multitrack_device_lock.sh (the device arbiter). |
| multitrack_alias_orchestrator | The alias ↔ track orchestration layer. It binds each track to exactly one Claude Toolkit alias (each alias is a distinct account/subscription), records the binding durably, and falls a track over to another alias when its own hits a limit — without losing its device leases. |
| multitrack_balance | A sourced library, not a CLI — the caller-side route policy for the worker pool. The spawner takes a first-class auth selector and hardcodes no alias; this file decides WHICH route each spawn uses. |
| multitrack_bootstrap | The ONE idempotent command that wires the multi-track engine into a consuming project out of the box — run when a project first adds the constitution submodule, and on every later constitution pull (auto-fired from the §11.4.164 post-update seam). |
| multitrack_build | A single-builder FIFO build queue. Tracks enqueue a rebuild request; one run-next worker pops the FIFO head under an flock, so at most ONE heavy build runs at a time (the §12.7/§12.8 "never two concurrent heavy builds" invariant, made mechanical). |
| multitrack_checkout_owner_lock | The §11.4.119 single-resource-owner lock for the track checkout — the third resource class, alongside work items and devices. It guarantees that at most ONE writing agent owns a given checkout at a time, across every launch path: the headless supervisor, the interactive cwd-hook session, an operator shell, or any future launcher. |
| multitrack_claim | The exactly-once work-ITEM claim registry for parallel tracks: it guarantees that a workable item (any stable id — ATM-NNN, JIRA-123, a logical work group) is assigned to at most ONE track at a time, so two tracks can never both grab the same item and duplicate or clobber each other's work (§9.2). |
| multitrack_conductor_monitor_autoarm | multitrack-up auto-arms a rate-limit fallback monitor for every track worker it launches. The conductor session is never launched by multitrack-up (the operator starts it directly in the main checkout), so it used to get no monitor at all — the fallback simply did not fire for the conductor's own alias. This helper closes that gap. |
| multitrack_config | This is a sourced library, not a CLI. source it and call its functions; it is read-only by design — every destructive drive operation lives in a different script, behind --apply + root + confirmation. |
| multitrack_constitution_sync | Keeps a consuming project's constitution/ checkout current with its upstream main — but only in the one direction that cannot lose work. It fetches and fast-forwards, and it refuses every other situation with a logged SKIPPED- decision. |
| multitrack_cwd_hook | The thin adapter that a Claude Toolkit cma_run wrapper invokes on every alias session start to learn which directory this session should work in. Given the alias label it prints the alias's bound track worktree, or prints nothing (the toolkit then leaves the session in its current checkout). |
| multitrack_device_lock | The capability-aware device arbiter: it hands out exclusive use of a shared, scarce pool of test devices (D1/D2 Orange Pi boards plus future nano_kvm devices) across N tracks that outnumber the M devices. A track leases devices selected by required capability, not just identity — the nano_kvm track asks for nano_kvm, the main track leases both boards for maximal coverage. |
| multitrack_fallback_monitor | A side-effect-free background monitor that tails one Claude Code session transcript (JSONL) for a rate-limit signature and, only on a genuine quota-exhausted limit, invokes multitrack_alias_orchestrator.sh fallback --track T so that alias's track moves to a healthy alias. |
| multitrack_host_budget | A sourced library, not a CLI. It answers one question — "is it safe to start one more worker right now?" — by requiring ALL of three conditions: 1. pool cap — live workers < MT_MAX_WORKERS (default 4). There is no --force and no cap-bypass anywhere in the file. 2. build-quiet — no heavy build in flight (m -j, gradle, build_maxres, the JVM compile-daemon family). 3. §12.6 budget — the projected aggregate RSS of (live workers + one more) stays inside the host-safety lib's 60%-of-RAM ceiling, using the same arithmetic the AOSP build path already uses. |
| multitrack_persistent_launch | A sourced library, not a CLI — one function, mt_persistent_launch, that launches a background command into its own systemd user scope so it survives the teardown of the session or cron job that started it. |
| multitrack_registry | A small, dependency-light accessor for the multi-track stream registry .ws_state/streams.tsv — the §11.4.167(K) single source of truth for "is this track owed / what state is it in". It reads and writes individual columns under an flock so concurrent tracks cannot corrupt the file. |
| multitrack_resolve_worktree | Deterministic resolver: given an alias name it prints the absolute path of the git worktree that alias should work in. It is the CORE of the "permanent multi-track switch" — the cwd-hook is merely its toolkit-facing adapter. |
| multitrack_sessions | The headless spawn / drive / resume / status / stop primitive: the piece that lets a conductor (Track-1) drive an autonomous per-track worker with no human at a terminal. |
| multitrack_supervisor | The ruler self-supervisor + durable handoff. It closes a specific gap: the spawn registry (multitrack_sessions.sh) is tmpfs by design, so if the conductor dies at the same moment the tmpfs area is lost, every track's alias/session_id/worktree binding is gone with no way to know which track was talking to which alias, from where, with what session. |
| track_label_audit | Audits a documentation tree for stale toolkit-alias work-stream labels of the form (T<N>/<branch> - <alias>). A label whose <alias> field disagrees with the LIVE alias (the toolkit currently driving this checkout) is stale — a §11.4.182 correctness defect that an alias switch would otherwise leave behind unnoticed. It reports each file:line so a switch never silently leaves wrong labels. |
| Guide | What it does |
|---|---|
| test_gen_agent_label_defs | Hermetic test suite for gen_agent_label_defs.sh and the independent checker agent_label_frontmatter_check.py. |
| test_install_agent_label_defs | Hermetic test suite for install_agent_label_defs.sh and its wiring into scripts/post_update_hook.sh — the §11.4.164 seam that must regenerate the label definitions on every constitution pull. |
| test_multitrack_alias_priority_limits | Proves three §11.4.196 behaviours of multitrack_alias_orchestrator.sh at once: 1. native-first priority rank — a native alias outranks every provider; 2. per-alias reason-CLASS limit tracking — session, weekly and subscription limits carry materially different operational-again windows, and the class is recorded, never assumed; 3. auto-rebind on recovery — promote returns a track to a recovered higher-priority native. |
| test_multitrack_bootstrap | The RED/GREEN proof for the out-of-the-box bootstrap seam — multitrack_bootstrap.sh plus constitution/skills/multitrack/register.sh. It proves the mechanism is load-bearing rather than aspirational. |
| test_multitrack_conductor_autoarm | Hermetic test of multitrack_conductor_monitor_autoarm.sh: does the conductor-session helper resolve alias/track/transcript, arm exactly ONE monitor, stay idempotent, and degrade gracefully when there is no transcript yet?. |
| test_multitrack_cwd_hook_consumer_root | Pins the consumer-root resolution precedence for multitrack_cwd_hook.sh, the one engine entry point that runs from outside any consumer checkout. |
| test_multitrack_cwd_hook_owner_guard | Proves two things about the checkout-owner advisory check inside multitrack_cwd_hook.sh: - (A) it can never break a session. The toolkit invokes the hook as cd "$(hook <alias>)" 2>/dev/null |
| test_multitrack_excluded_aliases | Proves the machine-readable excluded_aliases: engine key. Before it existed, the engine read exactly one alias-policy scalar (conductor:); a consumer that wanted to exclude further aliases could say so only in prose comments, which the engine cannot read — so a documented-as-excluded alias was still positionally mapped onto a track. Policy must be READ, never inferred. |
| test_multitrack_host_budget_jvm_daemons | A permanent regression guard for the JVM-daemon tokens in multitrack_host_budget.sh's MT_HOST_BUDGET_BUILD_PGREP_PATTERN default. The four new tokens (gradle-launcher, ScalaCompileDaemon, GroovyCompileDaemon, kotlin-compiler-embeddable) were added, but the pre-existing test never exercised any of them — it only proved the six older tokens fired. A GREEN suite that never touches the new code is coverage theatre. |
| test_multitrack_host_budget_rb02_pgrep | Proves the two related fixes in multitrack_host_budget.sh's build detection: - pattern-CARRIER immunity — a process that merely mentions a build token (a claude worker whose prompt quotes the pgrep pattern, the multitrack engine itself, the guard's own process) must not count as a heavy build; - vanished-PID liveness — a matched PID that has already died (the pgrep -f → /proc read race) must not count either, while a LIVE process with an unreadable cmdline still conservatively REFUSES. |
| test_multitrack_monday_dryrun | The end-to-end chain proof for the whole ruler bridge. It chains spawn → fallback/reuse → ruler self-supervisor → bootstrap → auto-conductor into ONE scratch-environment run, so that "Monday activation" is a config flip (swap the mock claude for the real binary plus real tokens) rather than a first run. |
| test_multitrack_native_first_fallback | Proves that _next_available_alias in multitrack_alias_orchestrator.sh selects a native alias whenever ANY non-cooled native exists — regardless of roster file order — and drops to a provider only when every native is cooled or excluded. |
| test_multitrack_orchestrator_reconcile | Permanent regression guard for a gawk built-in name collision. The cmd_reconcile awk program used the scalar exp (built from the JSON key expires); exp is a gawk built-in function, and gawk 5.1.0 fatal-errors the moment a built-in name is assigned as a scalar. reconcile was therefore silently broken: the awk program never completed, the snapshot was never rebuilt, yet the command printed "reconcile: bindings snapshot rebuilt" and exited 0. |
| test_multitrack_orchestrator_reconcile_rc | The exit-status sibling of test_multitrack_orchestrator_reconcile.sh. That suite's own docstring honestly flags the second defect as out of its scope: cmd_reconcile ran awk '...' > tmp && mv -f tmp BIND and then an unconditional echo "reconcile: ..." as the subshell's last command. On a genuine awk failure the && correctly skipped the mv (no data loss) but the echo still ran, so cmd_reconcile always returned 0. |
| test_multitrack_owner_lock_probe_race | Guards the probe-vs-acquire race in multitrack_checkout_owner_lock.sh. check transiently acquires the exclusive flock for the fork+exec window of true. run used single-shot flock -n, so a would-be owner whose acquire landed inside a concurrent probe's held window was permanently refused — quoting the stale .holder metadata (a dead pid) as its "owner". Measured on the pre-fix tool: 2/30 stress iterations plus 1/3 full suite runs. The fix is flock -w 2. |
| test_multitrack_persistent_launch_survives_session_teardown | The RED/GREEN proof for multitrack_persistent_launch.sh: does a daemon launched by that helper actually survive the teardown of the session that launched it, where a plain nohup ... & disown does not?. |
| test_multitrack_redpin_mutations | The paired §1.1 mutations for the five multitrack regression guards whose RED artifact is PINNED to a pre-fix commit (the "redpin" class): - test_multitrack_orchestrator_reconcile.sh (awk exp → xp) - test_multitrack_orchestrator_reconcile_rc.sh (awk rc captured) - test_multitrack_sessions_argparse.sh (missing-value guard) - test_multitrack_sessions_pid_status.sh (no wrapper pid recorded) - test_multitrack_supervisor_wiring.sh (supervisor snapshot wired). |
| test_multitrack_ruler_suite | The test-suite aggregator for the ruler bridge. It auto-enumerates every test_multitrack_.sh under constitution/scripts/multitrack/ and under device/rockchip/rk3588/tests/, runs each at RED_MODE=0 (the GREEN-guard polarity), and emits a real-time append-only JSONL verdict stream — one line per test: name, verdict, evidence path, exit code — plus a plain-text summary. |
| test_multitrack_sessions_argparse | Permanent regression guard for a genuine unbounded busy-loop in multitrack_sessions.sh's cmd_spawn / cmd_resume argument loops. |
| test_multitrack_sessions_balance_autoselect | A wiring regression guard for multitrack_sessions.sh's opt-in balance integration. |
| test_multitrack_sessions_pid_status | Two permanent regression guards for multitrack_sessions.sh: - C2 — pid-reuse kill hazard. _spawn_pid=$$ recorded the wrapper's own pid (the synchronous -p worker had already exited by that line) as if it were a live, killable worker handle. A later cmd_stop kill "$_pid" could signal an arbitrary unrelated process once the kernel recycled that pid — a real §11.4.133 host-safety hazard. - C3 — dishonest terminal status. Spawn completion hardcoded status="running" regardless of outcome and never demoted it, so the live-count helper counted every already-finished spawn as permanently "live" — falsely refusing a re-spawn of the SAME track as "pool at cap" once all tracks had been spawned once (a self-inflicted permanent DoS on the spawn pool). |
| test_multitrack_supervisor | The RED/GREEN proof for multitrack_supervisor.sh — durable ruler state plus crash re-hydration. |
| test_multitrack_supervisor_wiring | Proves the supervisor is wired, not merely built. An independent review found multitrack_supervisor.sh's snapshot/watch reachable from nothing except its own test — no wrapper, orchestrator, bootstrap step or doc ever called them. In production nothing populated ruler_state.json and no watchdog ever ran, so the "crash-resilient ruler" claim was aspirational. |
| test_multitrack_work_binding_submodule_db | A permanent regression guard for multitrack_work_binding.sh's OWN superproject-walk registry discovery. |
| test_ruler_suite_discovery | The meta-test of the aggregator test_multitrack_ruler_suite.sh: which members it discovers, which repository root it picks, and its exit and SKIP-reason semantics. |
| @@SPLIT@@ |
| Guide | What it does |
|---|---|
| report_item | Turns a plain-language ISSUE / BUG / TASK report into a real, fully-populated, fully-synced workable item (§11.4.202). |
| schedule_feature_research | Turns a plain-language FEATURE description into a SCHEDULED — never synchronously executed — deep research and planning item (§11.4.213). |
| issue_sync | The entry point of the workable-items Issues mirror (§11.4.300): mirrors items from the project's SQLite database into the Issues of the declared tracker repositories, one issue per item. |
| issues_sync_pipeline | The facade of the bidirectional workable-items and Issues pipeline (§11.4.300), bound to the Docs Chain context issues-sync. |
| verify_issues_sync | The read-only verifier of the workable-items Issues mirror (§11.4.300(E)): whether the tracker mirror actually matches the database. |
| Guide | What it does |
|---|---|
| install_cli_agent_plugins | The one idempotent command that makes the constitution's CLI-agent action directives and Agent Skills load out of the box in a consuming project. |
| generate_agent_prefix_commands | Turns actions/registry.yaml — the single source of truth — into the LAYER-2 slash commands for every supported CLI agent. |
| action_prefix_lib | The shared library of the universal ACTION_NAME :: prompt-prefix system (§11.4.140): the pure, agent-agnostic engine three consumers reuse. |
| Guide | What it does |
|---|---|
| helix_code_home | Sourced library that resolves HELIX_CODE_HOME using the 3-case contract of docs/helix_code/INTEGRATION_PLAN.md §2.1. |
| helix_code_services | HelixCode service management wrappers: install, boot, stop, health-check and status for the HelixCode / HelixLLM / HelixAgent service fleet. |
| helix_work_dir | Resolves where agent scratch, transcripts, logs and temp dirs live, after the host root filesystem filled to 100% (§12.9). |
| Guide | What it does |
|---|---|
| storage_budget | Companion to §12's four independent host-exhaustion axes — the DISK budget implementation. |
| token_efficiency_lib | §11.4.141 M5+M6 implementation. |
| scoped_read | §11.4.141 M4 implementation. |
| context_compactor | §11.4.141 M7 implementation. |
| enable_prompt_caching_check | §11.4.141 Measure M1: confirms the governance-prefix prompt cache is warm, from cache_read_input_tokens on the governance-bearing turns. |
| filter_prompt_history | Searches every Claude Code prompt executed for the project and saves the matches, as full multi-line prompts, to a Markdown report. |
| subagent_tier | §11.4.141 Measure M2: reads actions/subagent_tiering.yaml, prints a task class's model tier, and enforces the bright line. |
| token_accounting | The §11.4.141 token-efficiency measurement harness: reads the authoritative Anthropic usage object rather than estimating. |
| Guide | What it does |
|---|---|
| install | A ~90-line forwarder, so the "pipe the download into bash" install convention keeps working; not an installer in its own right. |
| install_constitution | The full installer: adds or updates the Helix Constitution in a project as a git submodule at submodules/constitution. |
| install_action_prefix | Idempotent installer that wires the universal ACTION_NAME :: prompt-prefix system (§11.4.140) into a consuming project. |
| setup | Two programs in one file, chosen by where it runs: hook mode inside an installed constitution checkout, and the one-line project bootstrap. |
| portable_symlink_lib | Relocation-proof symlink creation: the stored target is relative to the link's own location, so a link committed on one machine keeps resolving on every other. |
| update | The rebase-based, recursive update of a constitution checkout and every submodule below it, at every depth. |
| update_constitution | The risk-free, fast-forward-only update of the constitution submodule inside a consuming project. |
| Guide | What it does |
|---|---|
| mechanical_tools | The task-oriented user guide: how to reach for the right tool, what a correct invocation looks like, and how to read what comes back. |
One task branch, one pull request per task id, an independent review, a merge that keeps every reviewed commit reachable, a read-back, then retirement. Start with the engine's own guide; the seven library guides below cover one sourced file each, and the manual carries the phase table, the exit codes, the closed reason inventory and the configuration reference.
| Guide | What it does |
|---|---|
| pr_deliver | Deliver one unit of work through a pull request and never leave one stuck: the CLI surface, the state machine, every exit code and the full refusal inventory. |
| steps | One closed state machine, S1–S12, in which every step is idempotent, resumable, and READS ITS EFFECT BACK from the provider or from git. |
| preflight | This is the check the operator's absolute constraint depends on: the flow may be used only if a pull request can genuinely be created, reviewed AND merged. |
| provider | Decide WHICH forge answers for the configured remote, WHICH credential may be used for it, and route every provider read and write to one adapter. |
| provider_github | Implement the provider-neutral verb surface of lib/provider.sh over the gh CLI. |
| provider_rest | Implement the provider-neutral verb surface over the GitLab and Gitea REST APIs, because the GitLab CLI is unusable on this host. |
| journal | Make an interrupted pull-request delivery RESUMABLE, and make "what did this run actually do" answerable without asking the provider. |
| lock | One exclusive lock per (repository slug, task id), taken BEFORE the engine mutates anything. |
| selftest | Runs every test suite of the pull-request delivery engine and prints one summary line per suite plus a total. |
| selftest_mutations | The paired mutation test (§1.1) of the delivery engine: every mutant must be killed, or the assertion it targets is decoration. |
The component's manual, task guide and FAQ sit beside these script guides: manual · task guide · FAQ · operator guide · policy steps.
A new scripts/** tool needs, in the SAME commit (§11.4.18): its in-source documentation block, its
guide here named for the script (<script-name>.md), and a row in this index. A guide that exists but
is not listed here is an orphan (§11.4.212) — this index is what makes it reachable.
- adapters/lib/adapter_lib.sh
- affected_set.py
- backstop.sh
- baseline_replay.sh
- bincache.sh
- cli.py
- cm_agent_type_label.sh
- cm_anchor_detects_tail_truncation.sh
- cm_anchor_record_complete.sh
- cm_badge_closed_color_vocabulary.sh
- cm_badge_machine_derived_source.sh
- cm_badge_self_validated.sh
- cm_bridge_layer_presence.sh
- cm_build_on_source_proven_not_test_side.sh
- cm_canonical_root_clarity.sh
- cm_chain_entry_union_rule.sh
- cm_chain_integrity_detects_alteration.sh
- cm_cli_agent_plugins_wired.sh
- cm_codegraph_mcp_health.sh
- cm_constitution_index_fresh.sh
- cm_continuum_resume_engine_present.sh
- cm_control_needle_required.sh
- cm_dangerous_combination_fail_closed.sh
- cm_decisions_override_valid.sh
- cm_decisions_wizard_safety.sh
- cm_dependency_adoption_admitted.sh
- cm_dependency_register_verdicts.sh
- cm_diagram_embedded_not_orphan.sh
- cm_escape_ratchet.sh
- cm_escape_ratchet_selftest.sh
- cm_every_finding_closed_or_tracked.sh
- cm_evidence_analyzer_self_validated.sh
- cm_faq_from_real_questions.sh
- cm_feature_directive.sh
- cm_first_refusal_observed.sh
- cm_full_suite_manifest_complete.sh
- cm_gate_env_reads_allowlisted.sh
- cm_gate_ledger_ratchet.sh
- cm_geo_substitute_anchor_wired.sh
- cm_git_hooks_installed.sh
- cm_github_issues_source_anchor_wired.sh
- cm_guard_class_p_not_overridable.sh
- cm_guide_per_user_workflow.sh
- cm_healthcheck_covers_served_ports.sh
- cm_helix_deps_manifest_present.sh
- cm_helix_deps_ref_matches_gitlink.sh
- cm_hub_engine_no_ownorg_nesting.sh
- cm_installer_no_push_no_force.sh
- cm_installer_script_modes.sh
- cm_installer_snippets_consistent.sh
- cm_installer_truncation_safe.sh
- cm_instrument_trap_scan.sh
- cm_issue_sync_template_default_off.sh
- cm_issue_sync_verifier_proof.sh
- cm_issues_sync_pipeline_proof.sh
- cm_jev_bootstrap_idempotent.sh
- cm_jev_detection.sh
- cm_jev_token_reduction.sh
- cm_jev_wiring.sh
- cm_killpg_pgid_guard.sh
- cm_killpg_pgid_guard_scope_selftest.sh
- cm_label_sync_adapters.sh
- cm_label_sync_core.sh
- cm_label_sync_hooks.sh
- cm_label_sync_mcp.sh
- cm_label_sync_render.sh
- cm_ledger_row_typed_from_closed_vocabulary.sh
- cm_llmctl_submodule_nonrecursive.sh
- cm_machine_evidence_at_every_gate.sh
- cm_mechanism_observed_refusing.sh
- cm_multitrack_engine_in_constitution.sh
- cm_mutation_score_on_diff.sh
- cm_no_narrative_only_pass.sh
- cm_no_nested_markdown_fence_leak.sh
- cm_opendesign_ui_system.sh
- cm_oracle_strategy_named_and_independent.sh
- cm_pr_delivery_account_name_free.sh
- cm_pr_delivery_anchor_wired.sh
- cm_provisional_done_anchor_wired.sh
- cm_readme_badge_row_at_top.sh
- cm_release_gate_anchor_wired.sh
- cm_release_tag_carry.sh
- cm_reporting_directives.sh
- cm_repro_first_anchor_wired.sh
- cm_rule_binds_to_seam.sh
- cm_scope_and_image_noworse_anchor_wired.sh
- cm_setup_prompt_latest_present.sh
- cm_state_fields_anchor_wired.sh
- cm_submodule_pin_not_downgraded.sh
- cm_submodule_pin_not_downgraded_confusables.tsv
- cm_submodule_pin_not_downgraded_inventory.tsv
- cm_submodule_pin_not_downgraded_members.py
- cm_submodule_pin_not_downgraded_sites.py
- cm_unreferenced_gate_bound_or_retired.sh
- cm_version_increment_on_deploy.sh
- cm_zero_findings_audit_sweep.sh
- cm_zero_findings_monotone_ratchet.sh
- collect_baseline.py
- common.sh (scripts/forge/lib)
- completion_probe.sh
- config.py
- constitution_layout.sh
- credentials.sh (scripts/forge/lib)
- cycle_report.py
- dec23_key_ref.py
- default_scan_root.sh
- dispatch_stamp.sh
- doc_class_set.sh
- engine.py
- enumerate.sh
- escape_unknown_html_tags.py
- fc_common.sh / fc_common.py
- fc_entry.py
- fc_timer.sh
- fixture_lib.sh
- forge.sh
- gate_determinism_sweep.py
- gate_env_override.sh
- gate_runner.sh
- gitea.md (scripts/forge/providers)
- gitflic.md (scripts/forge/providers)
- github.md (scripts/forge/providers)
- gitlab.md (scripts/forge/providers)
- gitverse.md (scripts/forge/providers)
- handoff.py
- heartbeat.sh
- hook_install.sh
- host_guard.sh
- host_report.py
- http.sh (scripts/forge/lib)
- inbound.py
- inproc_driver.py
- adapters/install_adapters.sh
- install_label_sync.sh
- io_trace.sh
- adapters/lib/label-adapter-event.sh
- mcp/label-mcp.sh
- hooks/label-sync-lib.sh
- hooks/label-sync-prompt.sh
- hooks/label-sync-session-start.sh
- hooks/label-sync-stop.sh
- labelctl.sh
- render/lib.sh
- live_probe.sh
- migrate.sh
- mode.py
- offline_status.py
- payload.py
- pipeline.py
- pr_deliver.sh
- pr_selftest.sh
- pr_selftest_mutations.sh
- precheck_pack.sh
- precheck_pack_build.sh
- pr_deliver.sh
- pr_selftest.sh
- pr_selftest_mutations.sh
- protected_paths.list
- prove_mutations.sh
- push_all_upstreams.sh
- race_git_shim.py
- redact.py
- registry.py
- repo_verify.py
- hooks/request_history_append.sh
- review_record.py
- robustness_checks.py
- safe_rm.sh
- select_sample.py
- setup_prompt_extract.sh
- render/statusline.sh
- store.py
- sync_all_upstreams.sh / sync_all_upstreams.py
- sync_step_lib.sh
- tce_normalize_ref.py
- test_doc_header_scaffold.sh
- test_generate_summaries.sh
- third_party_prune.sh
- render/title.sh
- tmp_run_dir.sh
- tower_detector.sh
- transcript_ingest.py
- update_readme_badges.sh
- user_bus_env.sh
- validate_export_html.py
- verdict_cache.py
- verify_constitution_latest.sh
- verify_upstream_parity.sh
- visibility.py