Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mr-eval
command
Command mr-eval evaluates skill retrievers against a labeled gold-set.
|
Command mr-eval evaluates skill retrievers against a labeled gold-set. |
|
mr-goldreplay
command
Command mr-goldreplay builds the V2 all-lanes oracle replay table: every gold task × every requested lane × N trials, each dispatch routed through mr-orchestrate run (so the quota ledger meters it and a receipt lands) and each output judged by the task's verifier — the pure engine in-process, or mr-goldverify for execution tasks.
|
Command mr-goldreplay builds the V2 all-lanes oracle replay table: every gold task × every requested lane × N trials, each dispatch routed through mr-orchestrate run (so the quota ledger meters it and a receipt lands) and each output judged by the task's verifier — the pure engine in-process, or mr-goldverify for execution tasks. |
|
mr-goldverify
command
Command mr-goldverify runs a gold task's EXECUTION verifier (V-GO / V-PY / V-PESTER): git worktree at the task's parent commit → apply the candidate's unified diff (rejecting any hunk that touches a held-out test file — the oracle-leakage guard) → copy the held-out test files from the resolving commit → run the tests → verdict.
|
Command mr-goldverify runs a gold task's EXECUTION verifier (V-GO / V-PY / V-PESTER): git worktree at the task's parent commit → apply the candidate's unified diff (rejecting any hunk that touches a held-out test file — the oracle-leakage guard) → copy the held-out test files from the resolving commit → run the tests → verdict. |
|
mr-hook
command
Command mr-hook is the UserPromptSubmit hook: it loads the skill index, surfaces the few most relevant installed skills for the prompt, and injects them as additionalContext.
|
Command mr-hook is the UserPromptSubmit hook: it loads the skill index, surfaces the few most relevant installed skills for the prompt, and injects them as additionalContext. |
|
mr-index
command
Command mr-index builds and refreshes the on-disk skill index that mr-hook loads.
|
Command mr-index builds and refreshes the on-disk skill index that mr-hook loads. |
|
mr-orchestrate
command
mr-orchestrate — meta-router v3: quota-aware orchestrator over the official headless binaries.
|
mr-orchestrate — meta-router v3: quota-aware orchestrator over the official headless binaries. |
|
mr-outcomes
command
Command mr-outcomes joins mr-hook surfacings (usage.jsonl) with Skill-tool invocations (outcomes.jsonl, written by a PostToolUse hook) and reports the surfaced→invoked hit-rate — the outcome side of the MR-12 telemetry loop.
|
Command mr-outcomes joins mr-hook surfacings (usage.jsonl) with Skill-tool invocations (outcomes.jsonl, written by a PostToolUse hook) and reports the surfaced→invoked hit-rate — the outcome side of the MR-12 telemetry loop. |
|
mr-promote
command
Command mr-promote is the V7 promotion-gate CLI: it reads paired template-vs-solo run records (JSONL of promotion.PairedRun) and prints a verdict per template under the Q5 conjunctive rule.
|
Command mr-promote is the V7 promotion-gate CLI: it reads paired template-vs-solo run records (JSONL of promotion.PairedRun) and prints a verdict per template under the Q5 conjunctive rule. |
|
mr-scorecard
command
Command mr-scorecard is V5 of the slice-4 eval stack: the WF@Q scorecard over the V2 oracle table (decision record Q1/Q6/Q7).
|
Command mr-scorecard is V5 of the slice-4 eval stack: the WF@Q scorecard over the V2 oracle table (decision record Q1/Q6/Q7). |
|
mr-verifier
command
Command mr-verifier measures the LOCAL verifier's ceiling (CC1): it runs a labeled good/bad snippet corpus through the offload cascade (triage door), reads the free logprob decision margin as graded confidence, and reports decisive accuracy, coverage, the defer-discounted effective ceiling, and the selective-risk curves AURC + AUGRC (decision record §Q9).
|
Command mr-verifier measures the LOCAL verifier's ceiling (CC1): it runs a labeled good/bad snippet corpus through the offload cascade (triage door), reads the free logprob decision margin as graded confidence, and reports decisive accuracy, coverage, the defer-discounted effective ceiling, and the selective-risk curves AURC + AUGRC (decision record §Q9). |
|
internal
|
|
|
canary
Package canary enforces ROUTER_BIBLE.md invariants as tests over the actual source tree.
|
Package canary enforces ROUTER_BIBLE.md invariants as tests over the actual source tree. |
|
catalog
Package catalog enumerates installed Claude Code skills into a normalized form.
|
Package catalog enumerates installed Claude Code skills into a normalized form. |
|
embedtpl
Package embedtpl is the per-model embedding template registry (W9-P item 1).
|
Package embedtpl is the per-model embedding template registry (W9-P item 1). |
|
eval
Package eval scores a Retriever against a labeled gold-set.
|
Package eval scores a Retriever against a labeled gold-set. |
|
goldset
Package goldset loads labeled (prompt -> expected skill ids) cases.
|
Package goldset loads labeled (prompt -> expected skill ids) cases. |
|
goldtask
Package goldtask is the V1 routing gold set: the 56 locked tasks (docs/superpowers/plans/2026-07-15-v1-goldset-selection.md) as a machine-readable JSONL, with the schema, loader, and structural validation.
|
Package goldtask is the V1 routing gold set: the 56 locked tasks (docs/superpowers/plans/2026-07-15-v1-goldset-selection.md) as a machine-readable JSONL, with the schema, loader, and structural validation. |
|
index
Package index builds and persists the skill catalog + embedding vectors that the per-prompt hook loads.
|
Package index builds and persists the skill catalog + embedding vectors that the per-prompt hook loads. |
|
oracle
Package oracle is the slice-4 eval substrate: the task/lane oracle's verifier registry and the V0 null/trivial-agent audit gate (master brief slice-0, the fake-green killer).
|
Package oracle is the slice-4 eval substrate: the task/lane oracle's verifier registry and the V0 null/trivial-agent audit gate (master brief slice-0, the fake-green killer). |
|
orch/admission
Package admission gates dispatch on ledger state.
|
Package admission gates dispatch on ledger state. |
|
orch/burnrate
Package burnrate is the slice-4 E1 burn-rate downshift assessor — the struck slice-1 gate leg landing where the master brief put it (scheduler work).
|
Package burnrate is the slice-4 E1 burn-rate downshift assessor — the struck slice-1 gate leg landing where the master brief put it (scheduler work). |
|
orch/calib
Package calib fits window capacities from quota-trace calibration samples — fact-refresh gap #1 closed: SetCapacity finally gets its production caller (cmd/mr-orchestrate status → maybeFit).
|
Package calib fits window capacities from quota-trace calibration samples — fact-refresh gap #1 closed: SetCapacity finally gets its production caller (cmd/mr-orchestrate status → maybeFit). |
|
orch/childenv
Package childenv scrubs the environment handed to spawned lane binaries.
|
Package childenv scrubs the environment handed to spawned lane binaries. |
|
orch/codexlane
Package codexlane drives the official codex CLI, process-per-turn (`codex exec --json`), per R12 starting from the AMS run-codex-audit.ps1 invocation shape (--skip-git-repo-check, --sandbox workspace-write, -c model_reasoning_effort).
|
Package codexlane drives the official codex CLI, process-per-turn (`codex exec --json`), per R12 starting from the AMS run-codex-audit.ps1 invocation shape (--skip-git-repo-check, --sandbox workspace-write, -c model_reasoning_effort). |
|
orch/compact
Package compact is W5's LOSSLESS JSON compaction (DG-3, operator-approved: "quality is the lever and the priority here.
|
Package compact is W5's LOSSLESS JSON compaction (DG-3, operator-approved: "quality is the lever and the priority here. |
|
orch/dispatch
Package dispatch is the append-only JSONL dispatch log.
|
Package dispatch is the append-only JSONL dispatch log. |
|
orch/egress
Package egress is the data-boundary gate: it decides whether a dispatch may send this operator's prompts and repository context to a THIRD-PARTY lane — one whose provider is neither Anthropic nor OpenAI and whose data handling is outside the subscription relationships the rest of the system assumes.
|
Package egress is the data-boundary gate: it decides whether a dispatch may send this operator's prompts and repository context to a THIRD-PARTY lane — one whose provider is neither Anthropic nor OpenAI and whose data handling is outside the subscription relationships the rest of the system assumes. |
|
orch/exclusion
Package exclusion is the W6 self-healing lane breaker: a lane whose ADAPTER keeps failing (spawn_error — the binary/infra is broken on OUR side; parse_error — its output contract broke; for the local lane also api_error — a harness tier fault) is excluded from routing for a backoff that doubles on each further failure and clears on the first success.
|
Package exclusion is the W6 self-healing lane breaker: a lane whose ADAPTER keeps failing (spawn_error — the binary/infra is broken on OUR side; parse_error — its output contract broke; for the local lane also api_error — a harness tier fault) is excluded from routing for a backoff that doubles on each further failure and clears on the first success. |
|
orch/fuses
Package fuses holds DATED capacity/pricing modifiers.
|
Package fuses holds DATED capacity/pricing modifiers. |
|
orch/glmlane
Package glmlane drives the GLM coding plan through the OFFICIAL claude binary pointed at api.z.ai — the proven smoke shape (2ca0b5e/d5bbbcb).
|
Package glmlane drives the GLM coding plan through the OFFICIAL claude binary pointed at api.z.ai — the proven smoke shape (2ca0b5e/d5bbbcb). |
|
orch/hostcfg
Package hostcfg edits a HOST application's config file the way an installer must: it preserves every byte it does not own, it records what it wrote so it can prove ownership later, and it never removes anything it cannot prove it wrote.
|
Package hostcfg edits a HOST application's config file the way an installer must: it preserves every byte it does not own, it records what it wrote so it can prove ownership later, and it never removes anything it cannot prove it wrote. |
|
orch/jitter
Package jitter is the slice-4 E4 reset-boundary smoother.
|
Package jitter is the slice-4 E4 reset-boundary smoother. |
|
orch/ledger
Package ledger is the quota substrate: generic per-(lane,window) buckets fed by shadow accounting (always on, the floor) and any provider-reported percentages (authoritative — cross-device drift means local counts lie).
|
Package ledger is the quota substrate: generic per-(lane,window) buckets fed by shadow accounting (always on, the floor) and any provider-reported percentages (authoritative — cross-device drift means local counts lie). |
|
orch/locallane
Package locallane is the BLACK-BOX adapter to the local-offload binaries.
|
Package locallane is the BLACK-BOX adapter to the local-offload binaries. |
|
orch/lockfile
Package lockfile is the cross-process mutex for small state files that see concurrent read-modify-write from parallel dispatches (W6: exclusions.json, local-limiter.json).
|
Package lockfile is the cross-process mutex for small state files that see concurrent read-modify-write from parallel dispatches (W6: exclusions.json, local-limiter.json). |
|
orch/orchcfg
Package orchcfg holds the orchestrator's operator config.
|
Package orchcfg holds the orchestrator's operator config. |
|
orch/pace
Package pace owns window-fraction math and the bindingPaceSlack scalar (claudexor budget-ledger lineage, reconciliation W1): per window, slack = elapsedFraction − usedRatio; a lane's BINDING slack is the minimum across its known windows.
|
Package pace owns window-fraction math and the bindingPaceSlack scalar (claudexor budget-ledger lineage, reconciliation W1): per window, slack = elapsedFraction − usedRatio; a lane's BINDING slack is the minimum across its known windows. |
|
orch/profiles
Package profiles is W2's credential-profile registry: each lane maps to an ORDERED list of subjects, each with an isolated auth home the operator provisioned by logging in once (CLAUDE_CONFIG_DIR=<home> claude /login, CODEX_HOME=<home> codex login — probe-verified 2026-07-23 that CLAUDE_CONFIG_DIR fully relocates the credential read on Windows).
|
Package profiles is W2's credential-profile registry: each lane maps to an ORDERED list of subjects, each with an isolated auth home the operator provisioned by logging in once (CLAUDE_CONFIG_DIR=<home> claude /login, CODEX_HOME=<home> codex login — probe-verified 2026-07-23 that CLAUDE_CONFIG_DIR fully relocates the credential read on Windows). |
|
orch/quotapoll
Package quotapoll polls vendor usage endpoints for MEASURED window facts (reconciliation W1 / frontier Tier-A #1-2).
|
Package quotapoll polls vendor usage endpoints for MEASURED window facts (reconciliation W1 / frontier Tier-A #1-2). |
|
orch/quotasig
Package quotasig ingests the sanctioned quota signals into the ledger: the statusline drop file (rate_limits teed by the operator's statusline command, RS1) and — since W1 (Daniel-approved 2026-07-23, superseding the old D3 off-gate) — vendor-polled snapshots from quotapoll via ApplySnapshots.
|
Package quotasig ingests the sanctioned quota signals into the ledger: the statusline drop file (rate_limits teed by the operator's statusline command, RS1) and — since W1 (Daniel-approved 2026-07-23, superseding the old D3 off-gate) — vendor-polled snapshots from quotapoll via ApplySnapshots. |
|
orch/router
Package router is the deterministic rank-table router v0 (design brief §1): rank-based (NOT scalar-score — the routing-collapse lesson), quota mask applied BEFORE selection, Pareto-pruned alternatives, a v0 shadow price that demotes the throttled lane by exactly one rank.
|
Package router is the deterministic rank-table router v0 (design brief §1): rank-based (NOT scalar-score — the routing-collapse lesson), quota mask applied BEFORE selection, Pareto-pruned alternatives, a v0 shadow price that demotes the throttled lane by exactly one rank. |
|
orch/slidewin
Package slidewin is the W6 sliding-window dispatch limiter for the LOCAL lane.
|
Package slidewin is the W6 sliding-window dispatch limiter for the LOCAL lane. |
|
orch/spenddown
Package spenddown is the slice-4 E2 spend-down assessor — the mirror image of burnrate (E1).
|
Package spenddown is the slice-4 E2 spend-down assessor — the mirror image of burnrate (E1). |
|
orch/statepaths
Package statepaths is the single home for the orchestrator's state-file layout, shared by cmd/mr-orchestrate and cmd/mr-hook (the hook reads the ledger for the quota hint and must resolve the SAME paths).
|
Package statepaths is the single home for the orchestrator's state-file layout, shared by cmd/mr-orchestrate and cmd/mr-hook (the hook reads the ledger for the quota hint and must resolve the SAME paths). |
|
orch/strategy
Package strategy is the slice-3 orchestration layer: a 3-list DAG IR (Step/IR), its validator, and the per-dispatch durable state store.
|
Package strategy is the slice-3 orchestration layer: a 3-list DAG IR (Step/IR), its validator, and the per-dispatch durable state store. |
|
orch/strategy/verifierpilot
Package verifierpilot is the S3R-10c seed-dataset shape for the verifier-ceiling pilot: raw per-snippet agree/disagree records that slice-4's gold-set verifier harness can consume directly (a seed dataset, not a throwaway number).
|
Package verifierpilot is the S3R-10c seed-dataset shape for the verifier-ceiling pilot: raw per-snippet agree/disagree records that slice-4's gold-set verifier harness can consume directly (a seed dataset, not a throwaway number). |
|
policyeval
Package policyeval is V3 of the slice-4 eval stack: the counterfactual policy evaluator over the V2 oracle replay table.
|
Package policyeval is V3 of the slice-4 eval stack: the counterfactual policy evaluator over the V2 oracle replay table. |
|
policyzoo
Package policyzoo holds W3's candidate routing policies: deployable-shaped functions from OBSERVABLE task features (prompt text + the shipped router's neutral-state pick) to a lane.
|
Package policyzoo holds W3's candidate routing policies: deployable-shaped functions from OBSERVABLE task features (prompt text + the shipped router's neutral-state pick) to a lane. |
|
promotion
Package promotion is V7 of the slice-4 eval stack: the equal-budget strategy-template promotion gate (decision record Q5).
|
Package promotion is V7 of the slice-4 eval stack: the equal-budget strategy-template promotion gate (decision record Q5). |
|
retrievers
Package retrievers holds eval.Retriever implementations (baselines + adapters).
|
Package retrievers holds eval.Retriever implementations (baselines + adapters). |
|
roots
Package roots discovers and persists the harvest root set: the user's ~/.claude/skills dir plus every installed plugin's skills dir.
|
Package roots discovers and persists the harvest root set: the user's ~/.claude/skills dir plus every installed plugin's skills dir. |
|
usagelog
Package usagelog appends one JSON record per surfacing event.
|
Package usagelog appends one JSON record per surfacing event. |
|
verifierceiling
Package verifierceiling turns labeled verifier records (verdict + graded confidence) into the load-bearing "verifier ceiling" metrics for the slice-4 eval stack (CC1, decision record §Q9): decisive accuracy, coverage, the defer-discounted effective ceiling, and the selective-risk curves AURC and AUGRC.
|
Package verifierceiling turns labeled verifier records (verdict + graded confidence) into the load-bearing "verifier ceiling" metrics for the slice-4 eval stack (CC1, decision record §Q9): decisive accuracy, coverage, the defer-discounted effective ceiling, and the selective-risk curves AURC and AUGRC. |
Click to show internal directories.
Click to hide internal directories.