artcarnage commited on
Commit
5c064cb
·
verified ·
1 Parent(s): d2c86ab

feat: distribute Methodical portable skill 0.11.0

Browse files

Portable instructional skill, installation guidance, scoped capabilities and limits, MIT licensing, release provenance and checksums.

Files changed (40) hide show
  1. LICENSE +21 -0
  2. LIMITS.md +30 -0
  3. README.md +56 -6
  4. RELEASE-NOTES.md +7 -0
  5. RELEASE-PROVENANCE.json +16 -0
  6. SHA256SUMS +1 -0
  7. docs/platform-support.md +59 -0
  8. index.html +10 -19
  9. methodical-portable-skill-0.11.0-publication.1.zip +3 -0
  10. methodical/LICENSE +21 -0
  11. methodical/SKILL.md +7 -0
  12. methodical/THIRD-PARTY-NOTICES.md +42 -0
  13. methodical/production-package.json +39 -0
  14. methodical/references/commands/rules.md +25 -0
  15. methodical/references/lenses/code-grounded.md +26 -0
  16. methodical/references/lenses/generic-correctness.md +29 -0
  17. methodical/references/lenses/north-star.md +27 -0
  18. methodical/references/lenses/python-correctness.md +47 -0
  19. methodical/references/lenses/rigor.md +32 -0
  20. methodical/references/lenses/simplicity.md +34 -0
  21. methodical/references/lenses/swift-correctness.md +58 -0
  22. methodical/references/lenses/typescript-correctness.md +44 -0
  23. methodical/references/reference/narrow-checks.md +40 -0
  24. methodical/references/reference/native-routing.md +88 -0
  25. methodical/references/reference/seat-selection.md +211 -0
  26. methodical/references/rules/rules.md +27 -0
  27. methodical/references/rules/user-words.md +10 -0
  28. methodical/references/skills/brainstorm/SKILL.md +39 -0
  29. methodical/references/skills/compact/SKILL.md +68 -0
  30. methodical/references/skills/compound/SKILL.md +131 -0
  31. methodical/references/skills/deepen/SKILL.md +41 -0
  32. methodical/references/skills/north-star/SKILL.md +43 -0
  33. methodical/references/skills/plan-review/SKILL.md +39 -0
  34. methodical/references/skills/plan/SKILL.md +56 -0
  35. methodical/references/skills/work-review/SKILL.md +42 -0
  36. methodical/references/skills/work/SKILL.md +83 -0
  37. methodical/references/templates/device-verification-queue.md +23 -0
  38. methodical/references/templates/north-star.md +29 -0
  39. methodical/references/templates/plan.md +56 -0
  40. methodical/references/templates/solution.md +41 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chris Myers / Big Lever Ventures
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
LIMITS.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Methodical 0.11.0: capabilities and limits
2
+
3
+ Disposition: GO-WITH-LIMITS. Qualification establishes the named workflow behavior on selected synthetic projects, rather than a general productivity advantage.
4
+
5
+ | Distribution | Strength | Supported scope / limit |
6
+ | --- | --- | --- |
7
+ | Claude Code | Most complete native integration: shared method, native Agent routing and checkpoint lifecycle | macOS, Claude Code 2.1.302; normal trust and permissions |
8
+ | Codex | Shared method and core-controlled, auditable managed CLI dispatch | macOS, CLI 0.163.0-alpha.10.2 under tested project isolation; desktop/native-child-hook dispatch is suspended and unsupported |
9
+ | Portable Agent Skill / Hugging Face | Common instructions and references in an Agent Skills layout | Instructional content only. No installed hooks, native dispatch, compaction runtime or hosted model service |
10
+
11
+ This ranking concerns integration completeness, not comparative model quality.
12
+
13
+ 1. Other client versions and native Linux execution remain unqualified. Linux has implementation/offline fixture coverage only. Browser/cloud clients and arbitrary installed-plugin combinations are not covered.
14
+ 2. Codex uses the packaged managed CLI command after approved intent preparation. Native child-message rewriting did not qualify. A legacy hook parsing failure remains recorded as an unknown consumed operation; successful runs used tested project isolation.
15
+ 3. Recovery preserves explicitly captured project records, not the full conversation. Four fresh same/cross-host destinations passed. Actual source automatic boundaries passed under process-local settings: Codex auto-compact limit 110000; Claude window 150000 and percentage override 60. These do not prove default thresholds. Claude's entire ignored directory and fixture journal were not independently checked; those claims are excluded. Codex's fixture snapshot and prior journal prefix were checked.
16
+ 4. Approval records and hooks are cooperative workflow controls. They are not authenticated approval, a security boundary, a protected billing boundary or an enforceable currency cap. Normal host trust and permissions remain necessary.
17
+ 5. Configured model/effort does not prove backend execution. Descendant tool unavailability, escaped-process containment and backend termination were not independently established. Unknown delivery and outstanding review debt remain unresolved.
18
+ 6. Fresh sessions are the activation check after changes. Hot reload is not guaranteed. Installers do not restart applications or close other work. Native packages require Node.js >=22.13 and existing native client access.
19
+ 7. No general speedup, cost saving, optimal-routing result, review-quality superiority, or superiority over Compound Engineering is established.
20
+ 8. Final inventories include documentation/reference changes after live qualification. Executable dependencies were compared unchanged and affected checks passed; the final whole-package bytes were not all live-tested again. The distribution preserves the qualified payload bytes; its documentation and provenance identify the publication snapshot.
21
+
22
+ ## Claude-only compatibility
23
+
24
+ No quality regression has been demonstrated in the exercised Claude paths. Existing native integration remains, and relevant qualification passed or was reused at its recorded dependency scope. This is not evidence of full parity with the prior Claude-only release. Shared policy and dated model/default changes can alter behavior; validation and evidence recording add work. No controlled old-versus-new accuracy, latency or ordinary-use cost comparison was performed. Large external evaluation/orchestration usage is not an estimate of normal plugin overhead.
25
+
26
+ ## What the tests support
27
+
28
+ The evidence covers shared gated work, bounded escalation following verified feedback, retained review debt, selected-record checkpoints and four recovery directions. Both native source finalizers and process-controlled automatic boundaries were observed. Denial and partial/unknown outcomes have deterministic coverage. Prior failed attempts remain evidence; a final pass does not erase them.
29
+
30
+ The bundled docs/platform-support.md is the detailed qualification authority. For a portable skill installation, retain this document in the distribution checkout; the installed skill itself remains instruction-only.
README.md CHANGED
@@ -1,10 +1,60 @@
1
  ---
2
- title: Methodical Publication
3
- emoji: 😻
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
- pinned: false
 
 
 
 
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Methodical Adaptive Gated Engineering
3
+ emoji: 🧭
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: static
7
+ app_file: index.html
8
+ short_description: Portable instructions for human-gated engineering
9
+ license: mit
10
+ tags:
11
+ - agent-skills
12
+ - developer-tools
13
+ - engineering-workflow
14
  ---
15
 
16
+ # Methodical Adaptive Gated Engineering
17
+
18
+ **An opinionated, human-gated engineering loop.** Portable Agent Skill · 0.11.0 · MIT.
19
+
20
+ Coding agents can move faster than the decisions around them. Methodical keeps a written North Star at the center of plans and reviews, matches model and effort allocation to the work, and helps you compound lessons before compacting and continuing throughout a workday.
21
+
22
+ This Space distributes the **portable instructional skill**. The `methodical/` folder contains the unchanged reviewed skill and its references. It does not install hooks, launch or route native workers, change model settings, or perform host compaction. The host agent reads and follows the instructions; native automation requires a qualified adapter.
23
+
24
+ ## Download and install
25
+
26
+ 1. Download [`methodical-portable-skill-0.11.0-publication.1.zip`](./methodical-portable-skill-0.11.0-publication.1.zip) and verify it against [`SHA256SUMS`](./SHA256SUMS).
27
+ 2. Extract the archive. Keep the `methodical/` folder and all its references together.
28
+ 3. Copy that folder into a supported skill location for your agent. Project examples:
29
+
30
+ | Host | Destination |
31
+ |---|---|
32
+ | Codex | `.agents/skills/methodical/` |
33
+ | Claude Code | `.claude/skills/methodical/` |
34
+ | Another Agent Skills-compatible reader | Its documented skill directory |
35
+
36
+ Do not overwrite an existing skill or combine this with a conflicting Methodical native installation without resolving the conflict. Installing instructions does not qualify a new host or give it native hooks.
37
+
38
+ Ask your agent: “Use Methodical for this bounded change. Start with the project's North Star and show me the plan before building.” Check that the skill is discovered through your host's normal mechanism.
39
+
40
+ ## The three practices
41
+
42
+ - **Gated engineering:** a written goal, explicit human decisions, assumption checks and separate reviews matched to the code. Material fixes receive relevant re-review under a bounded stop rule.
43
+ - **Adaptive allocation:** use published provider guidance and verified feedback to match tools, model capability and reasoning effort to the desired outcome and practical cost. This is a design goal, not a demonstrated economic optimum.
44
+ - **Compound → compact → continue:** save reusable lessons, current state, next actions, active rulings verbatim, open findings and owed checks, then continue from a focused context. The portable skill instructs this process; it does not automate a host's compaction controls.
45
+
46
+ ## Native adapters and evidence
47
+
48
+ For the more complete native integrations, use the [Claude Code or managed Codex CLI release downloads](https://github.com/BigLeverVentures/methodical-gated-engineering/releases/tag/v0.11.0). Their macOS qualifications are scoped to named client versions and configurations. Codex desktop/native-child-hook dispatch remains unsupported. Gemini is a possible future adapter, not a qualified implementation.
49
+
50
+ Read the current [platform support matrix](https://github.com/BigLeverVentures/methodical-gated-engineering/blob/main/docs/platform-support.md), [testing appendix](https://github.com/BigLeverVentures/methodical-gated-engineering/blob/main/docs/testing-0.11.0.md), and this archive's [limits](./LIMITS.md). No general cost savings, quality improvement, complete conversation preservation, security boundary or protected billing cap is established.
51
+
52
+ ## Provenance and contribution
53
+
54
+ Payload source: [GitHub release 0.11.0](https://github.com/BigLeverVentures/methodical-gated-engineering/tree/v0.11.0). The 31 canonical payload files in `methodical/` are unchanged from the qualified skill payload. The distribution page adds installation, download and provenance material; it does not fork the method. [`production-package.json`](./methodical/production-package.json) records the canonical payload inventory. [`RELEASE-PROVENANCE.json`](./RELEASE-PROVENANCE.json) records release provenance.
55
+
56
+ This is independent distribution, not admission to Hugging Face's curated skills catalogue. Hosting the skill supplies neither an agent runtime nor model compute.
57
+
58
+ Help establish and replicate benchmarks, report failures, contribute model and effort profiles, or build another adapter. [Source and contribution guidance](https://github.com/BigLeverVentures/methodical-gated-engineering#help-build-the-next-version).
59
+
60
+ [MIT license](./LICENSE) · [Third-party notices](./methodical/THIRD-PARTY-NOTICES.md). Methodical is independent and is not affiliated with Anthropic, OpenAI, Hugging Face or Every. Every's compound-engineering method is credited in the source and notices; its plugin is not required.
RELEASE-NOTES.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Methodical 0.11.0
2
+
3
+ An opinionated, human-gated engineering loop with a shared core for Claude Code, managed Codex CLI and a portable instructional skill.
4
+
5
+ Read LIMITS.md and docs/platform-support.md for the named tested macOS configurations, records-only recovery scope, unsupported Codex desktop child dispatch, and other exclusions. Gates are cooperative workflow controls, not security or billing boundaries. No general savings or model superiority is established.
6
+
7
+ Distribution revision publication.1 preserves all qualified skill/runtime payload bytes and executable modes. Source and wrapper documentation have their own recorded identity. Deterministic checks and payload comparisons support evidence reuse; no new native model evaluations are claimed.
RELEASE-PROVENANCE.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "0.11.0",
4
+ "distributionRevision": "publication.1",
5
+ "artifact": "portable-skill",
6
+ "sourceRepository": "https://github.com/BigLeverVentures/methodical-gated-engineering",
7
+ "sourceCommit": "d53df12fea48f8c251b86537d93bb8feadf98349",
8
+ "sourceTag": "v0.11.0",
9
+ "payloadPath": "methodical",
10
+ "packageInventorySha256": "68667495028c3566fa79b020db3d93f1d3184009368adc9daada5355887aa0fd",
11
+ "payloadFiles": 31,
12
+ "qualifiedPayloadBytesAndExecutableModesUnchanged": true,
13
+ "qualification": "Maintainer-reported scoped 0.11.0 native evidence reused for unchanged payloads; see platform support and testing appendix.",
14
+ "newNativeModelEvaluations": 0,
15
+ "disposition": "GO-WITH-LIMITS"
16
+ }
SHA256SUMS ADDED
@@ -0,0 +1 @@
 
 
1
+ a5d40a0df2e768332e86ccdb76cf331a273d3efba1ce5c6b0f686ecfc91fe60b methodical-portable-skill-0.11.0-publication.1.zip
docs/platform-support.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Platform support and release qualification
2
+
3
+ Release disposition: **GO-WITH-LIMITS** for the independently checked capabilities below. The supported scope is local macOS Claude Code and managed Codex CLI at the named versions below, with the observed routing and selected-record continuity described here. This is not a blanket certification of every adapter or client configuration. The two native artifacts are published in [release 0.11.0](https://github.com/BigLeverVentures/methodical-gated-engineering/releases/tag/v0.11.0); portable hosting remains separate. The [testing appendix](testing-0.11.0.md) records the qualification baseline and the limits of its evidence.
4
+
5
+ | Artifact | Installation surface | Capability | Qualification |
6
+ |---|---|---|---|
7
+ | Claude Code adapter | Local interactive Claude Code; normal plugin marketplace and trust | Shared method, native Agent routing, project checkpoints | Historical baseline, feedback and stale-denial passes; native source finalization and independently checked process-controlled automatic-boundary continuation passed |
8
+ | Codex managed CLI workers | Local macOS native CLI; packaged `dispatch-cli` after approved intent preparation | Shared allocation policy, exact sealed stdin, owned process and project evidence | Baseline and fresh feedback delivery, native source finalization and process-controlled automatic-boundary continuation observed on CLI 0.163.0-alpha.10.2 under tested controller configurations; denial controls have deterministic coverage |
9
+ | Codex native child-hook routing | Local desktop/native child tool with normal trust | Candidate integration | Suspended after failed native dispatch; not a supported routing path |
10
+ | Portable Agent Skill | An Agent Skills-compatible reader | Common workflow instructions and resources | Instructional package only; native controls require an adapter |
11
+
12
+ The completed fixture proof supplies historical evidence for the method, selected model availability, review/fix cycles and record recovery. It used synthetic projects and external evaluation orchestration. It does not establish general automatic allocation, production installation, causal savings or universal host compatibility.
13
+
14
+ ## Native evidence and scope
15
+
16
+ A production package must activate without a proof marker, deliver the intended common instructions, and uninstall without deleting project records or unrelated settings. One baseline and one freshly reproduced failure case per host must show the shared policy reaching the actual native child invocation. Runtime rewrite logs alone do not prove that consumption.
17
+
18
+ Four separate fresh native destination contexts passed records-only recovery: Claude→Claude, Claude→Codex, Codex→Claude and Codex→Codex. Each restored captured records and passed pre/post verification; Codex destinations used the managed CLI. These destination passes establish only their captured-record recovery scope.
19
+
20
+ Separate native source sessions ran the production `checkpoint-finalize` lifecycle and observed automatic context boundaries under these process-local controls:
21
+
22
+ | Native source | Configured model / effort | Process-local controls | Observed boundary |
23
+ |---|---|---|---|
24
+ | Codex CLI | `gpt-6-luna` / high | `model_auto_compact_token_limit=110000`; context-window override unset | Automatic boundary after nine admitted pressure reads; records-only continuation passed |
25
+ | Claude Code | Sonnet 5.5 / medium | `CLAUDE_CODE_AUTO_COMPACT_WINDOW=150000`; `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=60` | Automatic boundary after seven admitted pressure reads; independently checked records-only continuation passed |
26
+
27
+ The checks preserve checkpoint and routing bytes, newer rulings and dirty records, pending intents, findings and outstanding review debt. Claude additionally verified selected captures, ordinary tree bytes/index/modes and six captured dispatch-dependency modes; preservation of its entire ignored directory and fixture journal was not independently established and is excluded. Codex separately verified its full fixture snapshot and prior journal prefix. An older checkpoint is not made current by compaction or by a successful finalizer at an earlier read. These process-controlled checks do not establish default-window thresholds, complete conversation preservation or desktop child-hook dispatch. Changed executable finalization or recovery paths require affected qualification again. An interrupted checkpoint, missing evidence or unknown dispatch remains unresolved.
28
+
29
+ Some native tools can bypass general tool hooks; these hooks are cooperative workflow controls, not a security boundary. Record the installed commit and package inventory alongside client versions. Do not assume browser/cloud surfaces, a different client release, public directory admission, or Hugging Face hosting supplies the same execution controls.
30
+
31
+ ## Client and runtime versions
32
+
33
+ | Client/runtime | Recorded version | Evidence scope |
34
+ |---|---|---|
35
+ | Claude Code | 2.1.302 | Historical baseline, feedback and stale-denial checks; current source-finalization and process-controlled automatic-boundary evidence scoped above |
36
+ | Codex managed CLI | 0.163.0-alpha.10.2 | Observed macOS delivery, feedback, source finalization and process-controlled automatic boundary under tested project configurations; not desktop/native-child qualification |
37
+ | Other client versions | Unqualified | No compatibility claim follows from these checks |
38
+ | Node.js | >=22.13 | Required by the core package manifest for native packages |
39
+
40
+ ## Runtime and installation limits
41
+
42
+ Native packages include compiled JavaScript and require Node.js >=22.13, as stated in the core package manifest. Installation never downloads a compiler or model SDK. Development builds use pinned dependencies. Ordinary project trust, sandbox controls and child execution approval remain active.
43
+
44
+ Claude routing rewrites tool arguments without granting a permission decision. The suspended Codex native-child integration requires a narrowly scoped PreToolUse allow result to accept replacement Agent arguments; the adapter never grants PermissionRequest, shell, sandbox or child permissions. Managed CLI workers inherit native authentication, trust, sandbox and approval configuration.
45
+
46
+ A fresh session is the activation check after installation or update. Hot reload and application restart behavior are client-dependent; no installer restarts the app or closes other work.
47
+
48
+
49
+ The managed Codex CLI transport is implemented for macOS/Linux with an atomic core launch claim, fixed native model/effort/feature arguments and inherited sandbox configuration, strict bounded JSONL, owned process-group cleanup and private project evidence. Hermetic Node-process fixtures exercise this boundary. Managed delivery has been observed on macOS with the exact CLI version listed above, in a project configuration that disabled the installed legacy and proof plugins locally. A later feedback attempt failed at startup on inherited legacy hook parsing; that consumed operation remains unknown. The candidate is not qualified under arbitrary installed-plugin configurations.
50
+
51
+ Model and effort were configured through native CLI arguments; backend model and effort telemetry was unavailable. Both multi-agent feature overrides are set false, and no worker tool use was observed in the baseline delivery. Tool unavailability has not been independently established. Native authentication, trust, sandbox and approval configuration are inherited. These are cooperative workflow controls. Linux remains covered by implementation and offline fixtures only. A fresh feedback case subsequently passed on a trusted controller using the same CLI version, with configured `gpt-6.1-sol`/high, exact bound delivery and review debt preserved. Automatic-boundary evidence and the four destination recovery passes have only the process-controlled and records-only scopes stated above.
52
+
53
+ Owned process-group cleanup does not contain descendants that escape into another group. After the deadline and bounded TERM/KILL grace, held output pipes are forcibly closed and recorded incomplete; unconfirmed leader reaping remains explicit unknown debt. Clean completion requires genuine output EOF and confirmed zero leader exit. Escaped descendants and backend termination remain unobserved.
54
+
55
+ ## Artifact identity and release limits
56
+
57
+ The final documentation build regenerates package inventories and the shared method hash for the host-route reference clarification. Executable runtime, checkpoint/dispatch paths, hooks, profiles and allocation policy remain byte-for-byte unchanged from the tested runtime. Live evidence is reused through that dependency comparison; the newly generated whole packages were not themselves live-tested byte-for-byte. Frozen qualification packages and earlier failed or stopped results remain preserved. The Claude actor-local copy preserved all canonical payload files; additional client-generated type files do not imply a changed canonical package.
58
+
59
+ Other client versions, Linux native execution, default-window compaction thresholds and arbitrary installed-plugin configurations remain unqualified. Configured settings do not prove backend reasoning effort, descendant-tool unavailability, escaped-process containment or backend termination. The controls provide neither a protected billing boundary nor a currency cap, and no savings or review-quality improvement is established. Portable distribution, including Hugging Face hosting, supplies instructional content and no native execution capability.
index.html CHANGED
@@ -1,19 +1,10 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Methodical — portable Agent Skill</title><style>
2
+ :root{color-scheme:light dark;font:17px/1.65 system-ui,sans-serif;background:#101725;color:#e6edf7}body{max-width:960px;margin:0 auto;padding:48px 24px}a{color:#9fc6ff}h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.15;margin:.4em 0}h2{font-size:1.4rem}small,.muted{color:#b6c3d8}.tag{letter-spacing:.08em;text-transform:uppercase;font-size:.8rem}.lead{font-size:1.2rem;max-width:760px}.actions{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0}.button{border:1px solid #75aaff;border-radius:8px;padding:10px 18px;text-decoration:none}.primary{background:#a8c8ff;color:#10213b}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:32px 0}.card{background:#18243a;padding:18px;border-radius:10px}code{overflow-wrap:anywhere}table{border-collapse:collapse;width:100%}td,th{text-align:left;padding:10px;border-bottom:1px solid #34435b}.note{border-left:3px solid #92b9ff;padding:10px 18px;background:#18243a}footer{border-top:1px solid #34435b;margin-top:40px;padding-top:20px;font-size:.9rem}a:focus-visible{outline:3px solid #ffe08a;outline-offset:4px}</style></head><body>
3
+ <p class="tag">Portable Agent Skill · 0.11.0 · MIT</p><h1>Methodical Adaptive<br>Gated Engineering</h1><p class="lead">Keep human judgment in the loop as coding speeds up.</p><p>A written North Star anchors the work. Deliberate allocation matches the resources to the task. Compound, compact and continue keeps important decisions and learning available throughout a long workday.</p>
4
+ <p class="note"><strong>This download is instructional.</strong> It supplies the shared method and references. Native hooks, worker dispatch, model controls and compaction automation require a qualified host adapter.</p>
5
+ <div class="actions"><a class="button primary" href="./methodical-portable-skill-0.11.0-publication.1.zip" download>Download portable skill</a><a class="button" href="https://github.com/BigLeverVentures/methodical-gated-engineering">Source and full README</a><a class="button" href="./SHA256SUMS">Verify checksum</a></div>
6
+ <section class="cards" aria-label="Three connected practices"><div class="card"><h2>Keep the goal in view</h2><p>Plans and reviews return to the North Star. Humans decide the goal, plan and merge; model reviewers check the work, and material fixes receive re-review.</p></div><div class="card"><h2>Allocate deliberately</h2><p>Match tools, model capability and reasoning effort to the work. Published guidance sets the baseline; risk and verified feedback guide changes.</p></div><div class="card"><h2>Keep learning available</h2><p>Capture lessons, current state, active rulings, open findings and the next action in project files. Compact and continue with focused context, repeatedly during a workday.</p></div></section>
7
+ <h2>Install the skill folder</h2><ol><li>Download the ZIP and compare its SHA256 with the checksum file.</li><li>Extract it and keep the <code>methodical/</code> folder with all its references.</li><li>Copy that folder to your agent's supported skill directory.</li></ol><table><thead><tr><th>Host</th><th>Project destination</th></tr></thead><tbody><tr><td>Codex</td><td><code>.agents/skills/methodical/</code></td></tr><tr><td>Claude Code</td><td><code>.claude/skills/methodical/</code></td></tr><tr><td>Other skill readers</td><td>The host's documented location</td></tr></tbody></table>
8
+ <p>Resolve an existing Methodical installation before copying; do not overwrite a skill or combine conflicting native and portable instructions. Check discovery through the host's normal mechanism. Start with one bounded change and ask the agent to use Methodical.</p>
9
+ <h2>Need native automation?</h2><p>The <a href="https://github.com/BigLeverVentures/methodical-gated-engineering/releases/tag/v0.11.0">GitHub release</a> supplies Claude Code and managed Codex CLI packages with documented macOS qualifications. Desktop/native-child-hook Codex dispatch is unsupported. Other hosts, including Gemini, need their own adapter qualification.</p><p>Read the <a href="https://github.com/BigLeverVentures/methodical-gated-engineering/blob/main/docs/platform-support.md">platform limits</a> and <a href="https://github.com/BigLeverVentures/methodical-gated-engineering/blob/main/docs/testing-0.11.0.md">testing appendix</a>. No general savings, quality improvement, full conversation preservation or protected security/billing boundary is established.</p>
10
+ <h2>Help extend the framework</h2><p>Bring a bounded reproduction, a benchmark, a model profile or an adapter. We welcome failures as well as passes. <a href="https://github.com/BigLeverVentures/methodical-gated-engineering#help-build-the-next-version">Contribute on GitHub</a>.</p><footer><p><a href="./LICENSE">MIT license</a> · <a href="./methodical/THIRD-PARTY-NOTICES.md">Third-party notices</a> · <a href="./RELEASE-PROVENANCE.json">Release provenance</a></p><p>The 31 canonical skill payload files retain their qualified bytes and executable modes. The publication.1 ZIP has new distribution documentation, provenance and its own checksum. This is independent distribution, not Hugging Face curated-catalogue admission. Hosting this page runs no coding agent.</p></footer></body></html>
 
 
 
 
 
 
 
 
 
methodical-portable-skill-0.11.0-publication.1.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5d40a0df2e768332e86ccdb76cf331a273d3efba1ce5c6b0f686ecfc91fe60b
3
+ size 61724
methodical/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chris Myers / Big Lever Ventures
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
methodical/SKILL.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: methodical
3
+ description: Apply Methodical gated engineering, verified-feedback allocation and durable project records. Native automation requires a qualified host adapter.
4
+ license: MIT
5
+ ---
6
+
7
+ Read references/rules/rules.md and the appropriate references/skills/<step>/SKILL.md. Resolve METHODICAL_ROOT as the references directory. This is an instructional skill; it does not install hooks, route native agents or perform host compaction.
methodical/THIRD-PARTY-NOTICES.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ ## compound-engineering (Every)
4
+
5
+ Repository: https://github.com/EveryInc/compound-engineering-plugin
6
+ Version 2.28.0, commit 9f93f54b1f71a853464bc8cd626405ad86dc938d.
7
+
8
+ Three review lenses in `lenses/` are adapted from files at that commit:
9
+
10
+ - `lenses/python-correctness.md` from `plugins/compound-engineering/agents/review/kieran-python-reviewer.md`;
11
+ - `lenses/typescript-correctness.md` from `plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md`;
12
+ - `lenses/swift-correctness.md` by way of an unpublished Swift reviewer derived from
13
+ `plugins/compound-engineering/agents/review/kieran-python-reviewer.md` (that version shipped no Swift reviewer).
14
+
15
+ At that commit, `plugins/compound-engineering/LICENSE` (the folder the files were copied from) gives
16
+ `Copyright (c) 2025 Kieran Klaassen`, and the repository's `LICENSE` gives `Copyright (c) 2025 Every`; the two files
17
+ are otherwise identical. Both notices are kept. Below is the text both files share, with both copyright lines.
18
+
19
+ ```text
20
+ MIT License
21
+
22
+ Copyright (c) 2025 Kieran Klaassen
23
+ Copyright (c) 2025 Every
24
+
25
+ Permission is hereby granted, free of charge, to any person obtaining a copy
26
+ of this software and associated documentation files (the "Software"), to deal
27
+ in the Software without restriction, including without limitation the rights
28
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29
+ copies of the Software, and to permit persons to whom the Software is
30
+ furnished to do so, subject to the following conditions:
31
+
32
+ The above copyright notice and this permission notice shall be included in all
33
+ copies or substantial portions of the Software.
34
+
35
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
38
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
40
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
+ SOFTWARE.
42
+ ```
methodical/production-package.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schemaVersion": 1,
3
+ "artifact": "portable-agent-skill",
4
+ "version": "0.11.0",
5
+ "methodSourceHash": "1e0fa0d766eca161bc178f016b24a1b266e6b34b5178a7a0985d1b296af3911c",
6
+ "capabilities": "instruction-only",
7
+ "files": {
8
+ "LICENSE": "024a2677788f64f7c31a9e06d6642da233eff3453a920c6cb42272d91375c6e9",
9
+ "SKILL.md": "556a1faab12f4872e54ccb1961d447a84ba568365146b337791503ec424b719d",
10
+ "THIRD-PARTY-NOTICES.md": "6454ff9e0dc1001216cdade0ffef338cb699d2b4daec3c2bc47fdcdd1fea988c",
11
+ "references/commands/rules.md": "241e6f71c02bb6fa78ce4df6b4b684845b4afa8d7f0bc57af1e438e42aaefe83",
12
+ "references/lenses/code-grounded.md": "6e84f84fa734141656e9fc85b9016ad495585c0f5d415d300cdf1f8d85074d5c",
13
+ "references/lenses/generic-correctness.md": "e4e959871f3f8f019fa714f21704886c1a800dad7ef23fdd1711dce6dfa6a9ac",
14
+ "references/lenses/north-star.md": "fae677f5fdbe0845cdc3ee0d988769acb04ff3ea79ca58fae3b069cb2b802c3d",
15
+ "references/lenses/python-correctness.md": "31a94eb6f2784a3c51762f56a6c6c7df507979f10b1e37938254f8b40ef6b1c1",
16
+ "references/lenses/rigor.md": "023143846e64a87263ba02ca9cc0296f11df27102f1996768860ec9ab3a4f1fa",
17
+ "references/lenses/simplicity.md": "c165d8269f53006fc86a64b5010c41c7c0ed5a217bac1bb8508423bab5cea388",
18
+ "references/lenses/swift-correctness.md": "303264da790785ac51e2fd73cc2df34c43ab43c12b49048ba649e3c8f01f9bca",
19
+ "references/lenses/typescript-correctness.md": "9bb047f78be423748a44e9319db131110ff927777ac576638004ed8af5445a60",
20
+ "references/reference/narrow-checks.md": "c328e176094a15f1877926d3188a2112c9807f0b5b86bf33233f222d0d07c734",
21
+ "references/reference/native-routing.md": "1dd6b2a55aa5cc750d0912d851da4c36a95100272847e8a33501891fe3eac188",
22
+ "references/reference/seat-selection.md": "619817a12912faa2cd97820d35e05af7ceb80142620b3804a868aa257ae66600",
23
+ "references/rules/rules.md": "511421c69f15d1a3506a556474f6491e6a731bab2eaad97a95dcd880d9d65805",
24
+ "references/rules/user-words.md": "fb4a08d9e4c162777b6829bb146279b4afc30d067c4c67a9ed59e731200cc8db",
25
+ "references/skills/brainstorm/SKILL.md": "a0f97bbb8416f01ecf81d01408342d8d9118a1973088f8a6e0b49fbfdc5985fd",
26
+ "references/skills/compact/SKILL.md": "023b59b15401b126417e8b780b89b914152a7596409a35f7d6bc24ec4b8846db",
27
+ "references/skills/compound/SKILL.md": "aaf34cb6423b0122443e3f8bc36101f6eae9270ccf62b08d94708dda947d51fd",
28
+ "references/skills/deepen/SKILL.md": "50f77a9764171d874e6cccfff8b5bdf8cc8088ce20cc7507571dc9d61db3b2c9",
29
+ "references/skills/north-star/SKILL.md": "1871459d3c6a2037ba3b7ab8eb8b59b631ce0be48e07623befa8cae8f9144d48",
30
+ "references/skills/plan/SKILL.md": "b713fc02ab218378a7b4238ec71440a50f2107854cc7928c1fca914e55dd5ed7",
31
+ "references/skills/plan-review/SKILL.md": "67c8bd4ab7cebe7e5c16d8fe554691d7acdfaf6707b3eb5b7dc6350a712de2ba",
32
+ "references/skills/work/SKILL.md": "bae49dadd272da558cc4b3fecf19f0b9cc0f1909644cb6ab2b7bee11a035fc02",
33
+ "references/skills/work-review/SKILL.md": "757e6a2ac1a3934ece0e555913d208692568191708817adb361d8ecd5c96c04b",
34
+ "references/templates/device-verification-queue.md": "bcb913871ee35632735df6455c4aa831edfe40b60f98fea8d5f7128ba1708d59",
35
+ "references/templates/north-star.md": "f40cc350e2456267fb8753cdf4dc99e5b183d9e8b27655915fb95362d24fead1",
36
+ "references/templates/plan.md": "28c114a4ae2e6351eb444432ee27bb1f2a4d025918e5dd1e4cb17105c3041e13",
37
+ "references/templates/solution.md": "f9f1240bcf52095ea15f41de01618039e4e08edc69ac5cefe0a2736048c9dfb0"
38
+ }
39
+ }
methodical/references/commands/rules.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ description: Show the Methodical Adaptive Gated Engineering rules and the current model routing table.
3
+ disable-model-invocation: true
4
+ ---
5
+
6
+ Show the user the always-on rules of Methodical Adaptive Gated Engineering.
7
+
8
+ 1. Print the Methodical rules exactly as supplied to this session. If they are absent, read
9
+ `${METHODICAL_ROOT}/rules/rules.md` and print it verbatim, labeled "Installed rules; session
10
+ activation unknown." If that file is unavailable, report that the rules are unavailable.
11
+ 2. Print the "Routing" table exactly as the session-start rules supplied it. If it is absent,
12
+ explicitly say "Session routing and activation are unknown." Read
13
+ `${METHODICAL_ROOT}/production-package.json` and check its exact `host` field. Only when it is
14
+ `claude-code` or `codex` and the built CLI exists, run
15
+ `node "${METHODICAL_ROOT}/runtime/src/cli.js" routing-table <host>` with that exact host value.
16
+ Print its rows under `role | model | effort`, labeled "Configured defaults; hook activation
17
+ unverified." These rows describe resolved configuration, not observed native execution. If the
18
+ manifest, supported host, or CLI is unavailable, or the command fails, report configured routing
19
+ as unknown; do not invent a table or infer the host from model names.
20
+ 3. End with one line: this host's profile and `overlay.md` describe routing overrides; the parent
21
+ model and effort remain host-controlled, and a plan's `escalation:` sets its assurance level.
22
+
23
+ Print only the rules, routing information and that final line. Use read-only file and CLI actions;
24
+ do not change settings or invoke another model. Why: this command exists so the user can see what
25
+ Methodical supplied to the model and distinguish it from configured defaults.
methodical/references/lenses/code-grounded.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lens: code-grounded verification
2
+
3
+ **Remit.** Check every claim the artifact makes about code ("X is enforced by the schema", "the
4
+ loader already handles Y", "this test asserts Z", "nothing else calls this") against the code at
5
+ the base commit named in the brief.
6
+
7
+ **Why.** Plans and summaries bind to code that the author remembers rather than reads; a single
8
+ false claim about existing code can make a whole approach unworkable, and it is the finding other
9
+ seats most often miss because the prose reads plausibly.
10
+
11
+ ## How
12
+
13
+ 1. List every claim about existing code, tests, configuration or tool behaviour, with where the
14
+ artifact makes it.
15
+ 2. For each, find the code at the base commit (`git show <base>:<path>`, `git grep <term> <base>`)
16
+ and quote the lines that confirm or refute it. Read only what you need; open any file you need.
17
+ 3. A count, a location list or a "none found" is re-run, not trusted: give the command you ran and
18
+ its result.
19
+ 4. A claim about third-party behaviour that the repo cannot settle is marked `unverified`, with the
20
+ cheapest test that would settle it.
21
+
22
+ ## Report
23
+
24
+ One line per claim: `confirmed`, `refuted` or `unverified`, with the quoted evidence. A refuted
25
+ claim the approach depends on is `material: yes`. A refuted claim in a comment or aside is
26
+ `material: no` and becomes a one-line correction.
methodical/references/lenses/generic-correctness.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lens: correctness (any language)
2
+
3
+ **Remit.** Review the code under review for correctness in whatever language it is written, when
4
+ no stack-specific lens exists for it. The brief names the stack; apply that language's own
5
+ conventions and its standard library's documented behaviour.
6
+
7
+ **Why.** A stack with no dedicated lens still needs a correctness seat, and a generic one that
8
+ says so is better than a lens for the wrong language or no seat at all.
9
+
10
+ ## How
11
+
12
+ 1. **Regressions first.** For each deletion or changed behaviour: was it intended by the plan, what
13
+ still depends on it, and which tests would catch its loss?
14
+ 2. **Inputs and edges.** Empty, missing, duplicate, very large, malformed and concurrent inputs,
15
+ and a second run; what happens on each. This seat owns these cases and test coverage (step 5);
16
+ the rigor seat does not repeat them.
17
+ 3. **Errors.** Every error path is either handled or deliberately propagated; nothing is swallowed
18
+ where the caller needs to know.
19
+ 4. **Types and null.** Where the language allows a missing value, what happens when it is missing.
20
+ 5. **Tests.** Does each new behaviour have a test that fails without it? Is the code hard to test,
21
+ and what would extracting make it easy?
22
+ 6. **Names.** Can you tell what each new name does in five seconds?
23
+ 7. Be strict about changes to existing code, pragmatic about new isolated code.
24
+
25
+ ## Report
26
+
27
+ Most severe first, each with file, line, the failing case and a concrete fix. `material: yes` for
28
+ a defect that changes behaviour the user relies on, or a test that would pass with the defect
29
+ present; `material: no` for style and clarity.
methodical/references/lenses/north-star.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lens: North Star
2
+
3
+ **Remit.** Read the artifact under review (a plan, or the work's diff and what it produces) as the
4
+ person the project serves would receive it, and judge it against the project's written North Star,
5
+ not against the unit's own goal.
6
+
7
+ **Why.** A unit judged only by its own goal can pass every check while the project drifts; this
8
+ seat is the one place a review asks whether the work moves the user's result toward the goal.
9
+
10
+ ## How
11
+
12
+ 1. Read `docs/north-star.md` (or the path the brief gives). If there is none, report one finding,
13
+ material: "no written North Star; write it with the user before this unit is judged". Do not
14
+ invent one.
15
+ 2. Read the plan's North Star section and its "Left short, on purpose" list.
16
+ 3. For each acceptance test (a plan) or each user-visible result (the work), ask: would the person
17
+ served recognise this as progress toward the North Star's bar? Is anything left short that is
18
+ not named, or named but not small and deliberate?
19
+ 4. Check that acceptance tests are phrased as the user would judge the result, not as "the
20
+ machinery ran".
21
+
22
+ ## Report
23
+
24
+ Start with one verdict line: `on course` or `drifted at <section or line>, because <reason>`,
25
+ quoting the North Star line you measured against. Then each finding with its evidence (file and
26
+ line), labelled `material: yes` or `material: no`. Material here means the unit as written would
27
+ not move the user's result toward the North Star, or would claim it does when it does not.
methodical/references/lenses/python-correctness.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Adapted from compound-engineering 2.28.0 (commit 9f93f54),
3
+ plugins/compound-engineering/agents/review/kieran-python-reviewer.md.
4
+ Copyright (c) 2025 Kieran Klaassen; Copyright (c) 2025 Every. MIT License; see
5
+ THIRD-PARTY-NOTICES.md. Changes: persona removed, sections condensed, correctness and
6
+ determinism checks added, report format added.
7
+ -->
8
+
9
+ # Lens: Python correctness
10
+
11
+ **Remit.** Review Python changes for correctness first and taste second: regressions, error paths,
12
+ typing, determinism and testability, judged by modern Python's own conventions.
13
+
14
+ **Why.** Python fails late: a wrong type, a swallowed exception or an order-dependent result shows
15
+ up at run time, often far from the change that caused it, so the review is where it is cheapest to
16
+ catch.
17
+
18
+ ## How
19
+
20
+ 1. **Existing code: strict.** Added complexity in an existing module needs a reason; prefer a new
21
+ module over a more complicated old one. Ask whether the change makes the old code harder to read.
22
+ 2. **New code: pragmatic.** Isolated code that works is acceptable; flag improvements without
23
+ blocking.
24
+ 3. **Regressions and deletions.** For each removal: intended by the plan? What breaks, which tests
25
+ fail, and has the logic moved or gone?
26
+ 4. **Type hints** on every function's parameters and return, in current syntax (`list[str]`,
27
+ `str | None`). A missing hint on a public function is a finding.
28
+ 5. **Errors.** No bare `except:` or `except Exception: pass` where the caller needs to know; context
29
+ managers for every resource that must be closed.
30
+ 6. **Determinism.** Output that depends on dict or set order, the clock, randomness, or the
31
+ environment, where the caller expects it stable.
32
+ 7. **Testability.** For each complex function: how would you test it? Hard to test means the
33
+ structure needs extracting.
34
+ 8. **Names and idiom.** Five seconds to tell what a name does; f-strings, comprehensions where they
35
+ read better, `pathlib` over `os.path`, dataclasses or typed models for structured data,
36
+ properties rather than getters and setters; imports grouped stdlib, third-party, local, no
37
+ wildcards, no cycles.
38
+ 9. Duplication is better than the wrong abstraction; explicit is better than implicit.
39
+ 10. **Inputs, edges and tests.** Empty, missing, duplicate, very large, malformed and concurrent
40
+ inputs, and a second run: what happens on each? Each new behaviour has a test that fails
41
+ without it. This seat owns these cases; the rigor seat does not repeat them.
42
+
43
+ ## Report
44
+
45
+ Most critical first, each with file, line, why it misses the bar and a concrete fix. `material: yes`
46
+ for a regression, a wrong result, a swallowed error the caller needs, or nondeterminism where
47
+ stability is expected; `material: no` for idiom and style.
methodical/references/lenses/rigor.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lens: rigor
2
+
3
+ **Remit.** Find where the work breaks: acts that cannot work as written, rulings the user gave that
4
+ are not honored, results that would mislead (a test that passes vacuously, a claim the output does
5
+ not support, a failure that reports success), and what an adversary can recover from what it
6
+ publishes. Input edges and test coverage belong to the correctness seat.
7
+
8
+ **Why.** Authors read their own work as they meant it, not as it runs; this seat reads it as the
9
+ machine and the user will, and it is the seat that most often finds the defect that would otherwise
10
+ reach the user.
11
+
12
+ ## How
13
+
14
+ 1. Read the plan's Rulings section and check each ruling is honored in the artifact.
15
+ 2. For each step or change, ask whether it can work as written where it will run: a permission
16
+ prompt, a model or tool that is unavailable, an ordering it assumes. Name the case and what
17
+ happens.
18
+ 3. For each test or check: write the forgery that would pass it without the property being true.
19
+ If one exists, the check proves the code runs, not that it is right. A mutation that turns a
20
+ check red proves the check is live, not that it is sufficient.
21
+ 4. For any value that carries a claim to the user, prefer re-deriving it a second way and comparing
22
+ for equality over a pattern that polices its text; a guard of the same kind as one that already
23
+ failed is the wrong approach, not a missing case.
24
+ 5. If the work publishes or shares anything derived from data (a report, an export, an anonymised
25
+ set, a log that leaves the machine), ask what can be recovered from it with public knowledge:
26
+ order-preserving encodings, exact counts or dates, hashes of low-entropy values, and linkage
27
+ across records. A mapping can leak while every string it emits looks clean.
28
+
29
+ ## Report
30
+
31
+ Each finding with the case that triggers it and the evidence. `material: yes` for an act that
32
+ cannot work, a ruling not honored, or a misleading result; `material: no` otherwise.
methodical/references/lenses/simplicity.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lens: simplicity and taste
2
+
3
+ **Remit.** Find what is over-built, what can be cut, and the smallest version that still clears the
4
+ bar. Read names and user-facing wording as the user would read them, and judge what it is like to
5
+ use.
6
+
7
+ **Why.** Every extra move is something a later session has to understand, test and keep in step;
8
+ the cheapest code to maintain is the code that was never written. This seat proposes removals,
9
+ and one other kind of thing: a finding that a gate obstructs the user. So it cannot itself make
10
+ the work bigger.
11
+
12
+ ## How
13
+
14
+ 1. For each new abstraction, option, file or layer: does it have two real callers today? If not,
15
+ propose inlining or deleting it.
16
+ 2. For each step of the approach or each part of the diff: what happens if it is removed? If the
17
+ acceptance tests still pass and the North Star is still served, propose removing it.
18
+ 3. Read every name, message and line of user-facing text in five seconds: is it clear what it does
19
+ or says? Propose the plainer word.
20
+ 4. Duplication is cheaper than the wrong abstraction: do not propose merging code unless the merged
21
+ version is simpler to read.
22
+ 5. No numbers in prose (comments, docs, commit messages) unless a test asserts them; a count in
23
+ prose goes stale and costs a review to correct.
24
+ 6. Walk the user through it. For any rule, gate, prompt or message the user will meet, run the
25
+ smallest real request and the most common one through it, as the user would, and count the
26
+ exchanges it costs. If the ceremony outweighs the change, that is material, even when a ruling
27
+ wrote it: say so once and let the user rule again.
28
+
29
+ ## Report
30
+
31
+ Each proposal is a deletion or a replacement, never an addition, with what it saves; a finding
32
+ that a gate obstructs names the gate and the exchanges it costs. Label each `material: yes` only if
33
+ the extra complexity would mislead the user, make an acceptance test pass for the wrong reason, or
34
+ would get in the user's way in real use; everything else is `material: no`.
methodical/references/lenses/swift-correctness.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Adapted from an unpublished Swift reviewer this plugin's author derived from
3
+ compound-engineering 2.28.0 (commit 9f93f54),
4
+ plugins/compound-engineering/agents/review/kieran-python-reviewer.md; that version shipped
5
+ no Swift reviewer. Copyright (c) 2025 Kieran Klaassen; Copyright (c) 2025 Every. MIT License;
6
+ see THIRD-PARTY-NOTICES.md. Changes: persona removed; the review structure carried over to
7
+ Swift; Swift concurrency, SwiftUI, Apple platform and persistence checks added; report
8
+ format added.
9
+ -->
10
+
11
+ # Lens: Swift correctness
12
+
13
+ **Remit.** Review Swift and SwiftUI changes for type safety, structured concurrency, view identity,
14
+ Apple platform requirements and persistence safety.
15
+
16
+ **Why.** Swift's worst bugs are invisible in a diff that compiles: a race across an actor
17
+ boundary, state lost when a view's identity changes, an accessibility requirement missed until App
18
+ Review, a model change that breaks migration on users' devices. The review is where they are cheap.
19
+
20
+ ## How
21
+
22
+ 1. **Existing code: strict; new code: pragmatic.** Added complexity in an existing file needs a
23
+ reason; prefer a new view or type. Watch for stale state when refactoring `@State`,
24
+ `@Observable` or persisted models.
25
+ 2. **Regressions and deletions.** For each removal: intended? What breaks on each target (app,
26
+ extension, watch, tests)? A branch that looks like dead defensive code may guard a real input;
27
+ check the data before removing it.
28
+ 3. **Type safety.** No force-unwrap, `as!` or `Any` without a comment saying why; `guard let` over
29
+ nesting; `throws` or `Result` over optionals as error signals; `Sendable` on every type that
30
+ crosses an async boundary.
31
+ 4. **Concurrency.** `@MainActor` on UI-touching types, not on data-only ones; `Task.detached` is
32
+ almost always wrong; `defer` inside `.task` runs on cancellation too; `try?` before `await` is a
33
+ swallowed error where the path is not obvious.
34
+ 5. **SwiftUI.** Conditionally removing a view destroys its state; `@State`, `@Binding`,
35
+ `@Bindable` at the smallest scope; `.task(id:)` over `.onAppear` for idempotent setup;
36
+ value-driven `.animation(_:value:)`; global UIKit `appearance()` changes scoped and reset; native
37
+ SwiftUI APIs over representable wrappers where they exist.
38
+ 6. **Platform requirements.** Reduce Motion respected (and the reduced-luminance state on watchOS);
39
+ Dynamic Type for body text; light and dark variants for every colour; accessibility labels on
40
+ interactive elements.
41
+ 7. **Persistence.** Model changes are migration-safe; unbounded queries counted, not fetched;
42
+ Keychain survives app deletion, so sign-out clears it; key-value cloud storage is small and
43
+ last-writer-wins; name-string asset lookups fail silently, so assert them in debug builds.
44
+ 8. **Extensions and sync.** Widget extensions have a small memory ceiling and best-effort reloads;
45
+ state shared through app groups is reloaded after change; phone and watch sync sends a full
46
+ snapshot on activation.
47
+ 9. **Names.** Five seconds to tell what a name does; when a value's meaning widens, audit every
48
+ name that assumed the old meaning. Make impossible states impossible with enums; value types
49
+ first; duplication over the wrong abstraction.
50
+ 10. **Inputs, edges and tests.** Empty, missing, duplicate, very large, malformed and concurrent
51
+ inputs, and a second run: what happens on each? Each new behaviour has a test that fails
52
+ without it. This seat owns these cases; the rigor seat does not repeat them.
53
+
54
+ ## Report
55
+
56
+ Most critical first, each with file, line, why it misses the bar and a concrete fix. `material: yes`
57
+ for a regression, a race, lost state, a migration risk or a platform requirement that blocks
58
+ release; `material: no` for idiom and style.
methodical/references/lenses/typescript-correctness.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Adapted from compound-engineering 2.28.0 (commit 9f93f54),
3
+ plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md.
4
+ Copyright (c) 2025 Kieran Klaassen; Copyright (c) 2025 Every. MIT License; see
5
+ THIRD-PARTY-NOTICES.md. Changes: persona removed, sections condensed, async and
6
+ null-safety checks expanded, report format added.
7
+ -->
8
+
9
+ # Lens: TypeScript correctness
10
+
11
+ **Remit.** Review TypeScript changes for type safety, null-safety, async correctness and
12
+ maintainability, judged by modern TypeScript's own conventions.
13
+
14
+ **Why.** TypeScript's guarantees are only as strong as the escape hatches allow: one `any`, one
15
+ non-null assertion or one unawaited promise turns a compile-time error into a run-time one, and the
16
+ review is where those holes are visible.
17
+
18
+ ## How
19
+
20
+ 1. **Existing code: strict.** Added complexity in an existing module needs a reason; prefer a new
21
+ module or component over a more complicated old one.
22
+ 2. **New code: pragmatic.** Isolated code that works is acceptable; flag improvements without
23
+ blocking.
24
+ 3. **Regressions and deletions.** For each removal: intended by the plan? What breaks, which tests
25
+ fail, and has the logic moved or gone?
26
+ 4. **Type safety.** No `any` without a comment saying why; no `as` casts or `!` assertions that
27
+ paper over a real possibility of `undefined`. Prefer inference where it is correct, discriminated
28
+ unions and type guards for variants, `satisfies` to check without widening.
29
+ 5. **Async.** Every promise awaited, returned or deliberately handled; no unhandled rejections; no
30
+ race between a stale response and a newer one.
31
+ 6. **Testability.** For each complex function: how would you test it? Hard to test means the
32
+ structure needs extracting.
33
+ 7. **Names and modules.** Five seconds to tell what a name does; named exports over default
34
+ exports; imports grouped and explicit; immutable updates over mutation.
35
+ 8. Duplication is better than the wrong abstraction; do not optimise before it is measured.
36
+ 9. **Inputs, edges and tests.** Empty, missing, duplicate, very large, malformed and concurrent
37
+ inputs, and a second run: what happens on each? Each new behaviour has a test that fails
38
+ without it. This seat owns these cases; the rigor seat does not repeat them.
39
+
40
+ ## Report
41
+
42
+ Most critical first, each with file, line, why it misses the bar and a concrete fix. `material: yes`
43
+ for a regression, a type hole that can reach run time, or an unhandled async path; `material: no`
44
+ for idiom and style.
methodical/references/reference/narrow-checks.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Narrow checks
2
+
3
+ Read by `work` and by `compound` for its checkpoint commit, before a commit. The default is all of the
4
+ project's tests. A repository may narrow the run for one commit only as this file says; `work-review` never
5
+ reads it, and neither does a merge. Why: only the repository knows which tests read which
6
+ paths, and a narrower run Claude chose for itself is how a break reaches a commit unchecked.
7
+
8
+ A repository narrows a run with lines in its root `CLAUDE.md`, one per path family, in this form:
9
+
10
+ ```text
11
+ narrow-check: <path prefix> — <command>
12
+ ```
13
+
14
+ Follow these in order:
15
+
16
+ 1. **Stage first.** Stage the commit's files, then commit with a plain `git commit`: no `-a`, no pathspec, no
17
+ amend that brings in other changes. Why: the paths you test must be the paths that are committed.
18
+ 2. **List the paths** with `git diff --cached --raw --no-renames`. An empty list runs all of the project's
19
+ tests. A path with mode `160000` (a gitlink), on either side, counts as unmatched. Why: `--name-only`
20
+ lists only the new path of a move out of a listed folder and shows no mode; `--no-renames` lists both
21
+ sides.
22
+ 3. **Read the lines** from the root `CLAUDE.md` two ways, `git show HEAD:CLAUDE.md` and the working-tree file,
23
+ each filtered by `grep -E '^[[:space:]>*-]*(\*\*)?narrow-check: [^ ]+ — .+$'`. Read the lines they
24
+ print, not the exit status. A line counts only if both print it, with the same text (ignore a trailing
25
+ carriage return). A line that does not
26
+ match (a hyphen for the dash, no command) is prose, and so is a `narrow-check:` line in any other file (a
27
+ nested, local or global instructions file). A copy inside a code fence matches, so a repository never
28
+ leaves the example in one. No file at `HEAD` means no lines. Why: `HEAD` keeps out a line typed a moment
29
+ ago, and the working tree lets the user withdraw a line without committing.
30
+ 4. **Check each prefix.** A prefix must end in `/` (a directory) or equal a file path in the index exactly; a line
31
+ with any other prefix, or a prefix written in backticks, is prose. A path matches a prefix ending in `/` by
32
+ starting with it, and an exact-file prefix only by equality.
33
+ 5. **A commit that stages `CLAUDE.md` runs all of the project's tests.** Why: the commit could be adding the
34
+ line it would then use.
35
+ 6. **Match every path.** If every path matches some line's prefix, print each path beside the lines it
36
+ matched, then run the command of every line any path matched, from the repository root. Otherwise (one path unmatched, a commit that
37
+ mixes listed and unlisted paths, no line, any doubt) run all of the project's tests.
38
+ 7. **Only the user writes a `narrow-check:` line.** Never add, edit or infer one. A command that exits
39
+ non-zero is a red test: fix it, do not skip it. Why: a line Claude wrote would be Claude choosing the
40
+ narrower run.
methodical/references/reference/native-routing.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Native routing and durable work records
2
+
3
+ The adapter overlay supplies the runtime command and native argument names. Resolve its package root from this reference path. The parent session stays on the user's chosen model and effort.
4
+
5
+ Before storing work records, add `.methodical/` to the project's ignore rules as an explicit setup change; never stage or publish this metadata. Startup never edits those rules.
6
+
7
+ Before routed work, prepare an intent with the approved unit/plan reference, scope, role, risk, detected stack, exact candidate, profile, method/lenses and complete sealed brief. This is a cooperative record of an existing human ruling; it cannot create approval. Follow the qualified host overlay: Claude uses the returned marker with its native Agent tool, whose hook revalidates the candidate and reserves the intent before replacing supported arguments. Managed Codex CLI workers use the packaged `dispatch-cli ROOT INTENT-ID` command, whose core validates and reserves the bound intent before launching the CLI with selected settings and exact sealed stdin. Both routes use the shared decision under normal host trust and permissions. Codex native child-hook rewriting remains suspended. Unknown or reserved intents stop; never retry an uncertain dispatch by making another intent.
8
+
9
+ Run deterministic checks as tools. An adaptive adjustment needs a fresh reproduction bound to the current candidate and exact checker. Environment, delivery or format failures do not establish a model reasoning failure. Record accepted material review findings and keep required review debt until the exact candidate receives its required reviews. A completed child is not a review pass.
10
+
11
+ The runtime distinguishes requested, routed and observed settings. Missing native observations stay unknown. Callback correlation must bind the intent, host session, tool call and child. Parent statements and runtime rewrite logs alone do not establish native consumption. Normal host permissions and project trust remain active.
12
+
13
+ ## Checkpoint finalization
14
+
15
+ Compound checkpoint and compact use this same protocol. Finish indexed lessons, the resume point,
16
+ verbatim rulings, relevant-state records, tests and commits before publishing. Keep a private resume and
17
+ rulings in their chosen location; never force-add them. A direct decline of compounding proceeds to the
18
+ host's compact action immediately, without forcing this protocol or another user exchange.
19
+
20
+ The parent authors one bounded Work JSON file at `<git-root>/.methodical/evidence/checkpoint-work.json`.
21
+ Its fields describe the completed semantic work; runtime hooks cannot infer them from a transcript:
22
+
23
+ ```json
24
+ {
25
+ "planHash": "<active plan SHA-256>",
26
+ "step": "<current method step>",
27
+ "nextAction": "<exact first action on resuming>",
28
+ "rulings": "<chosen project-relative rulings file>",
29
+ "lessons": ["<indexed solution path, if any>"],
30
+ "findings": ["<open finding reference, if any>"],
31
+ "reviewDebt": ["<required review still outstanding, if any>"],
32
+ "evidence": ["<opaque evidence label, if any>"],
33
+ "binding": {
34
+ "schemaVersion": 1,
35
+ "identityAlgorithm": "git-root-lineage-sha256-v1",
36
+ "repositoryIdentity": "<validated repository lineage identity>",
37
+ "plan": {"path": "<approved active plan path>", "sha256": "<active plan SHA-256>"},
38
+ "scope": "<existing approved unit scope>",
39
+ "policyHash": "<approved policy SHA-256>",
40
+ "profileHash": "<approved profile SHA-256>",
41
+ "routing": {"path": ".methodical/routing-state.json", "sha256": "<current routing-state SHA-256>"}
42
+ },
43
+ "captures": [
44
+ {"kind": "local", "ref": "methodical:resume", "source": "docs/resume.md", "archive": "evidence/resume.md", "required": true}
45
+ ]
46
+ }
47
+ ```
48
+
49
+ Replace placeholders with current values and use empty arrays where there are no items. Set the resume
50
+ source to the actual chosen path, including `docs/private/resume.md` when applicable. Declare additional
51
+ required local support with distinct references and archive paths under `evidence/`; ignored support belongs
52
+ under `.methodical/evidence/`. The runtime captures the selected rulings, lessons, resume and active reference at their original paths
53
+ and modes, including ignored private locations; it never scans a private directory. Never capture
54
+ credentials or raw transcripts. Local captures are bounded and required;
55
+ external or unavailable records remain explicit limitations.
56
+
57
+ Derive the binding with the overlay's read-only `checkpoint-binding` helper. For a routed unit, use
58
+ `checkpoint-binding "<git-root>" "<intent-id>"`; it retains that unit's recorded profile and policy.
59
+ For ordinary work with no intent, use
60
+ `checkpoint-binding "<git-root>" <host> "<active-reference-relative-path>" "<existing-unit-scope>"`.
61
+ The active reference is the current approved plan, or the existing scoped work/waiver record when a plan
62
+ was explicitly waived. The wire field `plan.path` names this active reference; do not fabricate a plan,
63
+ change a waiver into approval or ask for another ruling. The helper hashes the current reference and
64
+ routing state and uses `routing: null` only when no state exists. Copy its result into Work.binding and
65
+ use its plan hash for Work.planHash; retain the current semantic step and unresolved debt in Work.
66
+ An unavailable or stale active reference leaves publication incomplete and is reported plainly.
67
+
68
+ The final tool invocation is exactly the overlay's Node helper, with absolute package, repository and Work
69
+ input paths, the host `claude-code` or `codex`, and no chained shell commands:
70
+
71
+ ```sh
72
+ node "<package-root>/runtime/src/cli.js" checkpoint-finalize "<git-root>" <host> "<git-root>/.methodical/evidence/checkpoint-work.json"
73
+ ```
74
+
75
+ This command publishes the selected records and current routing state, then runs read-only freshness
76
+ verification in the same process. Only a successful `methodical-checkpoint-finalized` receipt with
77
+ `current: true` completes finalization. It is current at that read; any later semantic write, commit,
78
+ ruling, routing transition or relevant event needs another publication. Make no later tool call before
79
+ handing control back for compact. Do not write a special resume marker afterward or treat chat text as
80
+ success. Claude's mod corroborates the successful native finalizer result against its on-disk generation,
81
+ checkpoint hash, active plan binding and captured resume; it preserves the existing offer and decline choices.
82
+ Codex relies on the same runtime result and its supported manual compact action.
83
+
84
+ ## Recovery
85
+
86
+ An interrupted or stale checkpoint is not current. Read the resume records, inspect the bundle and run read-only pre/post verification on a compatible destination. Restore the declared local captures to their original `source` paths and apply the exact modes in `evidence/dispatch-dependency-modes.json` after copying; this map covers selected work records and active routing dependencies. Verify semantics against current work before continuing. No checkpoint preserves the full conversation.
87
+
88
+ Why: preserving selected records keeps the next action, unresolved findings and resource decisions usable after a context boundary without requiring the original chat.
methodical/references/reference/seat-selection.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Seat selection
2
+
3
+ Read by plan-review and work-review before they launch anything: which seats sit, on which model,
4
+ with which brief, and how a round runs. The always-on rules define "material", the bounded round,
5
+ the re-review gate and the re-seat triggers; this file gives the re-seat order and says how a
6
+ review carries them out.
7
+
8
+ ## Roles and the routing table
9
+
10
+ Every seat has a role: **decider**, **worker**, **census** or **backstop**. Each role's model and
11
+ effort are in the routing table the session-start hook printed under "## Routing"; a role set in
12
+ `/config` (plugin methodical) changes the row's model, never its effort. The table is the one base;
13
+ escalation (below) moves seats between its rows and adds no second table. Read it from context at
14
+ launch, never from memory; if it is not in context, run `/methodical:rules`.
15
+ Why: one place to change reaches every seat; a model written into a skill would ignore it.
16
+
17
+ ## Every launch
18
+
19
+ Use the production runtime described in `reference/native-routing.md` to prepare a complete, bound dispatch intent, then invoke the host's native Agent tool with that intent marker. The native pre-tool hook calls the shared policy and supplies the chosen model, effort and exact brief. Never manually choose a stronger model to simulate automatic adaptation.
20
+
21
+ For hosts exposing `subagent_type: general-purpose`, use that generic native seat. Other hosts use the documented equivalent in their overlay.
22
+
23
+ Each seat receives a first line `Lens: ${METHODICAL_ROOT}/lenses/<lens>.md`, the full lens, then the brief. The host overlay names its native argument fields and supported controls. A missing hook or unsupported field is a capability limit, not an automatic routing pass. Unrelated native tools keep their normal behavior.
24
+
25
+ Why: one policy decision must reach the actual invocation; a printed table or parent-selected setting cannot prove that it did.
26
+
27
+ **The brief** names the base commit and diff range (`<base>..HEAD`), the artifact (the plan file,
28
+ or the diff), the plan's North Star statement, which files not to read whole (generated, vendored,
29
+ large) and the stop rule below; it never forbids a seat from opening a file it needs. Seats are
30
+ read-only. A seat never asks the user (AskUserQuestion is not available inside subagents); it returns its questions as text to the orchestrator. Why: a scoped brief spends judgment on the question; two seats editing one tree collide.
31
+
32
+ ## The universal seats — every review
33
+
34
+ | Seat | Lens | Role |
35
+ |---|---|---|
36
+ | North Star | `lenses/north-star.md` | census; decider when it rules on a claim the end user will read |
37
+ | Code-grounded | `lenses/code-grounded.md` | decider |
38
+ | Simplicity / taste | `lenses/simplicity.md` | worker |
39
+ | Rigor | `lenses/rigor.md` | decider |
40
+
41
+ Each lens file states its own remit and why it sits.
42
+
43
+ ## Stack-matched seats
44
+
45
+ Detect stacks from marker files at the repo root (and one directory down for monorepos). A row
46
+ matches when any alternative matches; `+` means both files are needed.
47
+
48
+ | Stack | Markers | Lens |
49
+ |---|---|---|
50
+ | swift | `Package.swift`, `*.xcodeproj`, `*.xcworkspace` | `lenses/swift-correctness.md` |
51
+ | python | `pyproject.toml`, `setup.py`, `requirements*.txt` | `lenses/python-correctness.md` |
52
+ | typescript | `package.json` + `tsconfig.json` | `lenses/typescript-correctness.md` |
53
+ | ruby | `Gemfile` | generic |
54
+ | dart | `pubspec.yaml` | generic |
55
+
56
+ Launch each detected stack's lens on the decider. A `generic` row gets
57
+ `lenses/generic-correctness.md` with the stack named in the brief and `lens: generic (no <stack>
58
+ lens)` in its seat line; a repo with no marker gets one generic seat. Never launch a lens for an
59
+ undetected stack; two detected stacks get both. Why: a wrong-language reviewer spends the round on
60
+ advice that does not apply, and a missing reviewer should be visible, not silent.
61
+
62
+ ## The extension point: `.claude/reviewer-roster.md`
63
+
64
+ A repo may add reviewers in `.claude/reviewer-roster.md`, one per line:
65
+
66
+ ```
67
+ <stack or "any"> <prompt file> [worker|census] [when: <condition>]
68
+ ```
69
+
70
+ e.g. `python docs/reviewers/data-contracts.md`, or `any docs/reviewers/determinism.md when: the plan
71
+ or diff adds a hashed output path`. Fields are separated by spaces; the third is a role only if it is
72
+ `worker` or `census` (otherwise the lens sits on the decider); everything after the token `when:` to
73
+ the end of the line is the condition, in the repo's own words, read against the artifact under
74
+ review (the plan in plan review, the diff in work review). Blank lines and lines starting `#` are
75
+ not entries. Launch each line whose stack was detected (or `any`) exactly like a lens; skip a line
76
+ whose file is missing and say so in its seat line. This is the only extension point. Why: users
77
+ wire in their own or another plugin's prompts without this plugin depending on their names.
78
+
79
+ **Deciding `when:`.** Before launching, the orchestrator decides each `when:` against the artifact
80
+ and prints the decision as the seat line: holds → launch and report as any seat; does not hold →
81
+ do not launch, and print `<reviewer> · skipped · when: <condition>`. A line with no `when:` always
82
+ launches. If the condition cannot be decided from the artifact, the lens SITS and its seat line ends
83
+ `· when: undecided`. The decision is the orchestrator's; never launch a lens to decide whether it
84
+ should sit. Why: a trigger lens launched every time spends the decider on a question that does not
85
+ apply, a missed review costs more than an extra seat, and a skip that is not printed is a seat that
86
+ silently vanished.
87
+
88
+ **A malformed line is skipped, with the reason**: `<line> · skipped · malformed: <reason>`. A line
89
+ is malformed when it has no prompt file, a third field that is neither `worker`, `census` nor
90
+ `when:`, more fields before `when:`, or an empty condition. Everything after `when:` is the
91
+ condition, so a role goes before it.
92
+
93
+ ## The seat line
94
+
95
+ After the round, print `<reviewer> · <role> · <model> <effort> · material yes/no` per seat, with
96
+ the model that was requested, `re-seated` after the effort when the ladder moved it and the generic
97
+ note where it applies. The backstop's line adds the candidate commit it saw, `@<short sha>`, before
98
+ the material flag, for example `rigor (backstop) · backstop · fable high · @1a2b3c4 · material no`. A roster line that
99
+ did not launch prints `<reviewer> · skipped · when: <condition>` (or `· skipped · malformed:
100
+ <reason>`), and one that sat on an undecided condition ends `· when: undecided`. Why: the user rules
101
+ on the round, and these lines show who sat, on what, and what needs fixing.
102
+
103
+ ## Escalation
104
+
105
+ The plan's front matter carries `escalation: none`, `lean` or `full`; the plan step computes it once
106
+ and review and work read it. An escalation is a remap of seats onto rows of the one routing table.
107
+ This section names rows, never models or efforts: a seat that moves takes the target row's model
108
+ and effort, so a role set in `/config` keeps working at every level. Read the level from the
109
+ approved plan; a missing line or an unknown value reads as `none`, and a waived plan has none.
110
+
111
+ | level | set when | seats that move |
112
+ |---|---|---|
113
+ | `none` | score 0 to 2 and no named trigger; plan waived; no line | nothing |
114
+ | `lean` | score 3, or a named trigger | the worker seats (deepen's research seats and compound's write-up) sit on the decider's row; work review adds the backstop review (below) on the backstop's row |
115
+ | `full` | score 4 or more | lean, and in plan review and work review the code-grounded seat, the rigor seat and every correctness seat sit on the backstop's row; the plan stays on the decider's row |
116
+
117
+ **The named triggers.** Any one sets `lean` at least:
118
+ - a core boundary: the unit changes an interface, format or contract that other code or users
119
+ depend on;
120
+ - a release: the unit is, or ships in, a published version;
121
+ - an escaped defect in the same area since the last unit: a defect found after a merge, in files or
122
+ modules this unit touches.
123
+
124
+ Why: a score counts what the plan already shows; each trigger is a risk the score can miss, and a
125
+ wrong call there costs most after the merge.
126
+
127
+ **What never moves.** The simplicity seat stays on the worker's row at every level, and so do roster
128
+ lenses (their line sets the role). The North Star seat keeps its own rule: census, and the decider
129
+ when it rules on a claim the end user will read. Escalation never adds a lens or drops a seat.
130
+ Why: the simplicity seat's job is taste, which stays on the worker's row; roster
131
+ lenses are the repo's own choice of reviewer; and a dropped seat would make a clean review look
132
+ complete when it is not.
133
+
134
+ **The backstop review, inside work review at `lean` or `full`.** It reviews the committed final
135
+ candidate, in this order:
136
+ 1. The round clears. Its fixes are committed and the tests are green.
137
+ 2. The backstop reviews `<plan base>..HEAD`: the rigor lens on the backstop's row. Its seat line
138
+ records the candidate commit it saw.
139
+ 3. A material backstop finding is fixed and committed. The lenses whose remit the fix touched
140
+ re-run and the backstop re-runs, each on the new candidate commit, under the round's stop rule,
141
+ until no material finding remains.
142
+ 4. The branch is pushed once for this review, after the last backstop pass.
143
+
144
+ Its brief gives the artifact (the diff), the plan's acceptance tests and its rulings first. The
145
+ round's seat lines and the known limits it recorded come after, so earlier verdicts do not anchor
146
+ it. A trivial diff (below) keeps its one seat on the decider's row and escalation adds nothing to
147
+ it. Why: a trivial diff leaves a second model nothing the rigor seat cannot see.
148
+
149
+ ## Trivial diffs
150
+
151
+ A diff is trivial when `git diff --numstat <base>..HEAD` lists only documentation files, by
152
+ extension (`*.md`, `*.txt`, `*.rst`) or by place (any path under `docs/`), and its insertions plus
153
+ deletions total 20 or fewer. A comment edit in a code file is not trivial. A trivial diff gets one
154
+ seat: the rigor lens on the decider, briefed with the user's request verbatim in place of acceptance
155
+ tests, and "plan waived" when it was. Anything else gets the normal round. Why: a two-line README
156
+ note needs a check, not a panel; and no line test tells a comment from code, so a wrong "trivial"
157
+ would drop seats on code.
158
+
159
+ ## The re-seat ladder
160
+
161
+ The always-on rules give the triggers; this is the order.
162
+
163
+ - **The backstop is low.** The backstop's seats move to the decider's row, and the unit is tagged
164
+ `needs-backstop-re-review`. If the decider's row is unavailable too, the rungs below follow.
165
+ - **The decider is low.** Move decider seats to the worker in this order: plan review, rigor seat,
166
+ plan, North Star seat. Give each moved seat the base commit and tag the unit
167
+ `needs-decider-re-review`. If the worker's model is rejected too, try census; if even census is
168
+ unavailable, the orchestrator sits the seat itself and says so.
169
+ - **A worker or census seat whose row is unavailable.** It moves to the other of the two rows if
170
+ that row's model is still available, and otherwise the orchestrator sits it and says so.
171
+ - **The lean gap.** At `lean` or `full`, when the decider is low, the worker seats that sat on the
172
+ decider's row return to the worker's row, with the same `needs-decider-re-review` tag.
173
+
174
+ A row's model is low or unavailable when the user says so ("the backstop is low" is the user's
175
+ word), or when a launch is rejected: an input validation error on `model` or `effort`, or `Agent
176
+ type not found`. A setting that silently swaps a model is not caught at launch; compare each
177
+ seat's requested and actual model afterward. Mark each moved seat `re-seated` and put the
178
+ re-review tag in the plan.
179
+
180
+ Rules that hold at every rung:
181
+ - The walk skips any row whose model is already rejected or declared unavailable. Rows can share
182
+ one model (the backstop and the decider both set to one model; the worker and census rows by
183
+ default), and a rejected model is never retried under another row's name.
184
+ - If every distinct alternative is exhausted, the orchestrator sits the seat and says so, naming
185
+ the model it sat on, even if the user declared that model unavailable.
186
+ - Every seat is kept and every re-review tag is kept.
187
+
188
+ Worked examples:
189
+ - The backstop and the decider are both set to `opus`, and the user says Opus is unavailable. The
190
+ backstop's seats skip the decider's row (the same model) and go to the worker's row (`sonnet`);
191
+ the unit is tagged `needs-backstop-re-review`.
192
+ - Opus and Sonnet are both unavailable, with the worker and census rows on `sonnet`. The
193
+ alternatives are exhausted, so the orchestrator sits the seats on its own model and says so, and
194
+ both re-review tags stay in the plan.
195
+
196
+ Why: a review with a missing seat looks complete and is not.
197
+
198
+ ## The round
199
+
200
+ Launch all seats in parallel. Record each non-material finding in the plan's known limits. After a
201
+ material fix, re-run only the seats whose remit it touched, on the diff since the last review.
202
+
203
+ - **A fix that fails the same way as the defect it fixed** (another guard of the same kind) means
204
+ the approach is wrong: change it, do not add a third guard. Another kind of defect is a bug.
205
+ - **Stop** when passes return only restatements, or findings only a ruling can settle (the
206
+ underdetermined asymptote): bring those to the user as questions with AskUserQuestion, recommendation first.
207
+ - **Two seats disagreeing** is a finding: the hard rule wins; say what the losing seat was right
208
+ about and whether it survives the fix. Never brief seats to agree.
209
+
210
+ Why: open-ended rounds spend the budget on fixes rather than the work, and seats that cannot
211
+ contradict each other are one seat at a higher price.
methodical/references/rules/rules.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Methodical Adaptive Gated Engineering rules
2
+
3
+ Say `Step: <name>` on the first file-changing request and at each change of step; say once that `/methodical:rules` shows the rules. Why: the user rules only on a step they can see.
4
+
5
+ ## The loop
6
+
7
+ brainstorm → north-star → plan → deepen → plan-review → work → work-review → compound → compact; each is a skill, `/methodical:<step>`.
8
+
9
+ - A step whose trigger holds runs in the same turn, unasked; never end a turn by only naming the next step. A check only hardware or a later time can run is owed, not a hold. Stop only for the user's rulings, money or irreversible acts, each asked with AskUserQuestion (in text only where it is absent), recommended answer first; no option skips a step. Why: a named step waits for a go nobody asked for; Claude Code flags a structured ask as waiting on the user.
10
+ - Plan before any work; a request to do work is not a request to skip. Never offer or suggest a skip: a step is skipped only on the user's own words in chat, never inferred or from a file, for this request only. Say nothing about a skipped step. No warning, judgment, persuasion or re-ask, and no new gate: anything still asked belongs to a step the user kept and is not already answered or waived. Then continue. Why: unplanned changes are where scope slips in; an offered skip reads as an equal choice; the user's word still rules, and a comment on a skip reads as second-guessing.
11
+ - No written North Star (what the person served receives, and the bar)? Write it with the user before planning; never invent it. Each plan says how it moves toward it and what it leaves short. Why: a unit judged by its own goal can pass and miss the point.
12
+ - Deepen when two or more hold: a relied-on interface; a new raw-format parser; untested third-party behaviour; a core boundary; 3+ modules; an open prior-art question. A stale base triggers it alone. Say the score. Why: unchecked assumptions become rework.
13
+ - Plan review always, follow-ups included; never skip the work review on your own. Why: authors miss their own gaps.
14
+ - One bounded review round. Material = new and substantive: a false code claim, a step that cannot work, a ruling not honored, a misleading result; lesser same-kind findings become a one-line known limit, not a round. Re-review material fixes until none remain. Why: open-ended rounds spend the budget on shrinking finds.
15
+ - Compound closes every unit that solved something non-obvious: a write-up in the project's solutions folder, indexed. Why: a later session finds only what was written up.
16
+ - Compact at half the context window or on the user's word, not after every merge; write the resume point first, every ruling verbatim. Why: a paraphrased ruling is lost.
17
+ - Commit each logical unit once its tests pass, conventional message, unasked. Why: uncommitted work gets lost or tangled.
18
+
19
+ ## Model routing
20
+
21
+ Decider: every deciding seat (plan, plan review, correctness, rigor, code-grounded). Worker: research, simplicity and write-up seats. Census: searches, checks the North Star. Backstop: the escalated re-review. Why: judgment goes where a wrong call costs most.
22
+
23
+ - Prepare each Methodical Agent launch through reference/native-routing.md; its native hook applies the shared policy model, effort and complete brief. Why: an inherited setting or a printed recommendation alone cannot establish automatic routing.
24
+ - A census count or "none found" a plan relies on is re-run by the orchestrator. Why: census finds; it does not vouch.
25
+ - Decider or backstop low (the user's word) or a seat fails to launch: re-seat one rung down by the ladder in reference/seat-selection.md; never skip a seat or retry that model. Why: the loop keeps running; the debt stays visible.
26
+ - Escalate by plan: `escalation: lean` at deepen score 3 or a named trigger (seat-selection.md), `full` at 4 or more, written in the plan's front matter. No plan, no escalation. Why: risk is known when the plan is written; a setting made once cannot follow it.
27
+ - Put the routing block's Offer line once in the first Step line. An escalated `Step: work` line instead recommends the session's model and effort, stated apart, the first time in a session only (work skill). Never repeat, block or force one. Why: the session's model and effort stay the user's.
methodical/references/rules/user-words.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Where the user's words go
2
+
3
+ Before any step first writes the user's own words (a ruling, a brainstorm's problem statement) into
4
+ a file, look for this ruling in `docs/rulings.md` or `docs/private/rulings.md`. If there is none,
5
+ say that such records would be committed and published with the next push, and ask once with AskUserQuestion: tracked in
6
+ `docs/`, or private in `docs/private/`? For private, add `docs/private/` to `.gitignore`. Record the
7
+ answer verbatim as a ruling in that place's `rulings.md`, and honor it from then on: with private,
8
+ `resume.md`, `brainstorms/` and every ruling live under `docs/private/`, and a plan's Rulings
9
+ section points there. Why: a shared repo publishes whatever is committed, and the user's words are
10
+ theirs to publish.
methodical/references/skills/brainstorm/SKILL.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: brainstorm
3
+ description: "Explore what to build and why, and record it in docs/brainstorms/, before any plan exists. Use when the user starts a new unit of work (a feature, a fix with unclear scope, a redesign) and docs/plans/ has no plan for it. First step of the methodical loop. Not for questions or reviews that change no files."
4
+ ---
5
+
6
+ # Brainstorm
7
+
8
+ Say `Step: brainstorm` before anything else.
9
+
10
+ ## What it produces
11
+
12
+ `docs/brainstorms/<YYYY-MM-DD>-<slug>.md`: the problem in the user's words, who it serves, two or
13
+ three approaches with their trade-offs, the one recommended and why, what is out of scope, and the
14
+ open questions. Commit it, after you read `${METHODICAL_ROOT}/rules/user-words.md` and follow it.
15
+
16
+ If the request is already specific (the what and the why are both clear), the brainstorm is a short
17
+ paragraph in that file, not a workshop. Why: the step exists to catch a wrong framing early, and a
18
+ clear request has less framing to get wrong.
19
+
20
+ ## How
21
+
22
+ 1. **Look for prior art first.** Search `docs/solutions/`, `docs/plans/` and `docs/brainstorms/`
23
+ for the same problem or its neighbours, and name what you found (or "none found", with the
24
+ search you ran). Why: re-solving a problem the project already solved is the most avoidable
25
+ waste there is.
26
+ 2. **Read `docs/north-star.md` if it exists**, and say in one line how this unit could move toward
27
+ it. Why: a brainstorm that ignores the project's goal produces options the user will reject.
28
+ 3. **Ask, don't assume.** Questions to the user are rulings: batch them into one AskUserQuestion call (at most 4 questions; if more, the 4 that
29
+ shape the approach first, the rest in a second call), put
30
+ the recommended option first with its reason, and keep working on whatever does not depend on
31
+ the answers. Why: one batched question costs the user one interruption; a drip of questions
32
+ costs many.
33
+ 4. Use research seats only when a question needs facts the repo does not hold (a library's
34
+ behaviour, how others solved it). Launch them on the worker model and say so.
35
+
36
+ ## When it hands on
37
+
38
+ When the user has ruled on the open questions that shape the approach, say `Step: north-star` and
39
+ continue with the north-star skill in the same turn.
methodical/references/skills/compact/SKILL.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: compact
3
+ description: "Write the resume point in docs/resume.md, every ruling verbatim, so the context can be compacted without losing anything. Use when the context window is half full or more, or when the user asks to compact or for a resume point; not after every merge. Last step of the methodical loop. Not for the compound write-up."
4
+ ---
5
+
6
+ # Compact
7
+
8
+ Say `Step: compact` before anything else.
9
+
10
+ ## First, the compound check
11
+
12
+ When the user asks to compact, check whether this stretch solved anything non-obvious that is not yet
13
+ written up. Say in one sentence what you will do, never ask, and do it: if something is outstanding,
14
+ run `/methodical:compound checkpoint` (it writes the write-ups, resume point and verified production
15
+ checkpoint); if nothing is, say so in one line and run it anyway, because it writes no write-up and still
16
+ finishes the handoff. Either way, checkpoint performs this skill's "How", so skip its duplicate writes.
17
+ "Just compact" or another direct decline skips compounding and proceeds to the host's compact action;
18
+ never force a replacement checkpoint, approval question or new user exchange after a decline.
19
+
20
+ On Claude Code, the adapter's mod offers one question at a typed `/compact` when the production handoff
21
+ is not current. It is not an offered skip: the user's own words or Esc compact as is, without another
22
+ question. The `offer` plugin option turns the question and offers off. Only a successful runtime finalizer
23
+ with matching on-disk records establishes currency; the host action does not publish semantic records.
24
+ Other hosts use their supported manual compact action as described in the overlay; no Claude-specific
25
+ question or chaining facility is assumed.
26
+
27
+ ## What it produces
28
+
29
+ `docs/resume.md` (or `docs/private/resume.md`; read `${METHODICAL_ROOT}/rules/user-words.md` and follow it), overwritten each
30
+ time with the current state:
31
+
32
+ - **Where things are**: the branch, the base commit, the last commit, what is merged.
33
+ - **Next action**: the step the loop is on and the first thing to do on resuming.
34
+ - **Rulings**: every ruling the user has given that is still in force, **verbatim**, with its date
35
+ and what it rules on. Why: the summary a compaction writes is a paraphrase.
36
+ - **Open findings and owed items**: review findings not yet fixed, open questions waiting on a
37
+ ruling, entries in `docs/device-verification-queue.md`.
38
+
39
+ Write rulings into the resume point the moment they are given, not only at this step. Why: a
40
+ compaction can happen before this step runs, and anything only in the chat is gone after it.
41
+
42
+ ## Where the user's words go
43
+
44
+ Read `${METHODICAL_ROOT}/rules/user-words.md` and follow it before writing the user's words to any file.
45
+
46
+
47
+ ## How
48
+
49
+ 1. If a unit is in flight (not yet merged), record its in-flight state and commit it on the
50
+ current branch.
51
+ 2. Write the resume point and commit its tracked files, honoring the private-location rule.
52
+ 3. Complete compound checkpoint's final publication using
53
+ `${METHODICAL_ROOT}/reference/native-routing.md`: prepare the explicit Work input and use the overlay's
54
+ `checkpoint-finalize` as the final tool call. Proceed only on its successful current receipt.
55
+ 4. Tell the user the resume point is written and that they can run the host's manual compact action now. Only an already-requested
56
+ Claude Code chain may run `/compact` for them. Why: compacting at half the window keeps headroom for the summary, and the
57
+ resume point means nothing depends on what the summary keeps.
58
+
59
+ On resuming in a new or compacted session, read `docs/resume.md` before anything else, then
60
+ announce the step it names.
61
+
62
+ ## When it hands on
63
+
64
+ Only the user runs `/compact` through the native composer where supported, after finalization.
65
+
66
+ The host owns the compact action. This step stops for the user to run it, except for an already-requested
67
+ Claude Code chain. The loop starts again at `Step: brainstorm` with the next unit, or at the step the resume point
68
+ names.
methodical/references/skills/compound/SKILL.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: compound
3
+ description: "Write up each non-obvious problem a unit solved in docs/solutions/, index it, and update the resume point. Use after every unit's work review clears (it writes up what was non-obvious, if anything, then asks before merging unless the repo records a standing merge grant), and always when the user says \"compound\". With the argument checkpoint it writes up what is outstanding and the handoff without merging, so a compaction loses nothing. Compound step of the methodical loop. Not the same as compacting the context."
4
+ ---
5
+
6
+ # Compound
7
+
8
+ Say `Step: compound` before anything else.
9
+
10
+ Compound means writing down what was learned so the next unit starts ahead; "compound and compact"
11
+ means do this step, merge it, then compact. Why: only a written-up solution is found by a later
12
+ session before it re-solves a familiar problem; a memory pointer alone is not the compound step.
13
+
14
+ ## Two modes
15
+
16
+ - **Closure** is the default, a bare `/methodical:compound`, and the step after work review clears:
17
+ everything under "What it produces" and "The merge ask", ending at the merge ask or a standing grant.
18
+ - **Checkpoint** is the argument `checkpoint`. It is run from the offers before a compaction,
19
+ from the question at a typed `/compact`, and by the compact skill. It writes up what is outstanding
20
+ and the handoff on the current branch and stops: it never merges, never asks about a merge, never
21
+ uses a standing grant and never closes the unit. Why: a compaction can come at any moment, and the
22
+ unit is not finished then.
23
+
24
+ ## Checkpoint
25
+
26
+ Do this instead of the rest of the skill when the argument is `checkpoint`. It is one turn: it says
27
+ what it did and never ends with a question.
28
+
29
+ 1. **The counterfactual.** Could a later engineer redo this stretch's work from the final code, tests
30
+ and docs alone? If so for all of it, write no solution file and say why in one line.
31
+ 2. **Otherwise one write-up for each outstanding non-obvious problem of the stretch**, made and indexed
32
+ as under "What it produces". Near the context limit write each concisely, and carry any lesson that
33
+ cannot be written in full in the handoff. A worker may write the solution files; this thread reads
34
+ their results and writes the handoff and the production checkpoint.
35
+ 3. **Run all of the project's tests** now, before the handoff, unless you have read
36
+ `${METHODICAL_ROOT}/reference/narrow-checks.md` and followed it for the checkpoint's files, printing each path beside the
37
+ `narrow-check:` line it matched; a run without that printout is a full run. Why: finish verification before publication so its results are in the handoff.
38
+ 4. **The handoff**: the compact skill's resume point (its shape, every ruling verbatim), in the place the
39
+ user chose (`docs/resume.md`, or `docs/private/resume.md`, which stays uncommitted and is never
40
+ force-added). Name that location in the handoff so recovery reads the right one. Commit the tracked
41
+ files (write-ups, index, resume point) on the current branch; no push, no merge.
42
+ 5. **Publish and verify, last.** Follow the finalization protocol and parent-authored Work template in
43
+ `${METHODICAL_ROOT}/reference/native-routing.md`. Finish the resume point, verbatim rulings, lesson index,
44
+ tests, commits and all relevant-state records first. Include the chosen resume file as the required
45
+ `methodical:resume` capture; include required support at its original path. Derive the binding from the
46
+ existing approved unit and current routing state. Write the Work input under `.methodical/evidence/`.
47
+ The final tool call is the overlay's `checkpoint-finalize` runtime command. It publishes the production
48
+ bundle and performs a read-only freshness check in that same invocation. Only its successful
49
+ `methodical-checkpoint-finalized` receipt with `current: true` completes the handoff. A missing binding,
50
+ unsupported runtime, failed command or stale result is an explicit unfinished checkpoint; never claim a pass.
51
+ Make no tool call of any kind after successful finalization, chapter and task tools included. Say in plain
52
+ text that the handoff is written and the user can run the host's manual compact action. On Claude Code,
53
+ an already-requested "then compact for me" chain may perform that action. Why: a later write, commit,
54
+ new ruling or routing transition makes the portable record stale; a resume marker cannot establish currency.
55
+
56
+ If a compaction lands during a checkpoint, re-read the resume point, note "resumed after a compaction
57
+ boundary" in the handoff, and finish. If the unit solved nothing non-obvious, the checkpoint is still the
58
+ handoff and a verified production checkpoint.
59
+
60
+ ## What it produces (closure)
61
+
62
+ 1. **One write-up per non-obvious problem solved**, made from
63
+ `${METHODICAL_ROOT}/templates/solution.md` into `docs/solutions/<category>/<slug>.md`. Reuse a
64
+ category folder that already exists before making a new one.
65
+ 2. **Its index line** in `docs/solutions/README.md`, as the template's last section gives it.
66
+ Create the README with a one-line header and `## Index` if it is missing. Why: an unindexed
67
+ write-up is not found.
68
+ 3. **The resume point updated**, with this unit's rulings and the state in flight (the compact
69
+ skill gives its shape). Before quoting the user, read
70
+ `${METHODICAL_ROOT}/rules/user-words.md` and follow it.
71
+
72
+ Commit these on the unit's branch, which work-review left unmerged (or a short docs branch if the
73
+ unit is already merged), and run the tests as step 3 says. If the unit solved nothing non-obvious, say so in one
74
+ line and only update the resume point. After a waived plan, compound runs as usual; one line
75
+ saying nothing non-obvious was solved is the normal outcome.
76
+
77
+ Compound never offers to skip itself. If the user skips it, go to the merge ask.
78
+
79
+ ## The merge ask, or a standing grant
80
+
81
+ Before any merge, whether the user's go or a standing grant gives it, run all of the project's tests on the branch's
82
+ HEAD, unless you ran all of them on that exact HEAD in this session. Why: a merge should rest on a full run of what
83
+ merges, and narrowing is for commits, not for merges; you cannot tell from memory whether an earlier commit was
84
+ narrowed.
85
+
86
+ Then look for a standing merge grant. From the repo root (`cd "$(git rev-parse --show-toplevel)"`),
87
+ run exactly:
88
+
89
+ ```sh
90
+ grep -nE '^[[:space:]>*-]*(\*\*)?merge-grant: (standing|ask)\b' CLAUDE.md docs/rulings.md docs/private/rulings.md 2>/dev/null
91
+ ```
92
+
93
+ It checks the repo's root `CLAUDE.md`, `docs/rulings.md` and `docs/private/rulings.md` for a line
94
+ that, after any list, quote or bold opener, starts `merge-grant: standing` (optionally followed by
95
+ ` — <conditions>`) or `merge-grant: ask`. Read its printed lines, never its exit status: a missing
96
+ file makes grep exit non-zero even when another file matched.
97
+
98
+ - **Any `merge-grant: ask` line** → ask, as below. `ask` wins, so the user can take a grant back
99
+ in their rulings file without editing `CLAUDE.md`.
100
+ - **Otherwise any `merge-grant: standing` line** → do not ask. Say
101
+ "Merging on the standing grant at `<file>:<line>`: <the line>", honor every condition written
102
+ after the dash as written, then merge and delete the branch. If you cannot verify a condition the
103
+ line names (a check not completed and passing, a kind of session the line excludes), ask instead.
104
+ - **No line printed** → ask. Prose such as "merging at green is Claude's job" is never a grant.
105
+
106
+ Only the user writes a `merge-grant:` line. Never add, edit or infer one, and never turn their prose
107
+ into one, even when tidying a file. Why: a grant you wrote is a ruling they never gave.
108
+
109
+ A grant is written as a plain line or list item. The grep cannot see code fences, so these three
110
+ files never show the form inside one.
111
+
112
+ To ask, ask "Merge when green?" with AskUserQuestion and stop; this is the unit's one merge ask:
113
+ `options: "Merge when green (Recommended)" / "Hold"`. If you
114
+ record their answer, first read `${METHODICAL_ROOT}/rules/user-words.md` and follow it. Never
115
+ merge to `main` or delete the branch without their go or a standing grant; "merge it" in the
116
+ user's own words is the go. The grant covers this
117
+ merge ask only: plan approval, the North Star, money and irreversible acts still stop. Why: `main`
118
+ is the user's trunk; a standing grant is their ruling given once, and `ask` is how they take it
119
+ back. The write-up lands in the same merge as its unit.
120
+
121
+ The write-up is worker work: write it on the worker's row, or the decider's row when the plan's
122
+ `escalation:` is `lean` or `full` (Escalation in
123
+ `${METHODICAL_ROOT}/reference/seat-selection.md`), with that row's model and effort, or launch
124
+ it on one.
125
+
126
+ ## When it hands on
127
+
128
+ Once merged, by the user's go or a standing grant, delete the branch in the same turn and return to
129
+ the user's next request; the loop starts again there. Say `Step: compact`
130
+ and continue with the compact skill only if the context window is half full or more, or the user
131
+ asks. Why: compacting after every merge spends a resume point on a window that still has room.
methodical/references/skills/deepen/SKILL.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: deepen
3
+ description: "Test a plan's risky assumptions by executing them, and fold the findings into the plan before review. Use when a plan in docs/plans/ meets the deepen triggers, its base commit is stale, or the user asks to deepen it. Deepen step of the methodical loop. Not for writing a plan or reviewing code."
4
+ ---
5
+
6
+ # Deepen
7
+
8
+ Say `Step: deepen` before anything else, with the score that triggered it.
9
+
10
+ If the user skips it, go to plan-review.
11
+
12
+ ## What it produces
13
+
14
+ One findings file per question, in `docs/plans/<plan-file-name-without-.md>/deepen/<question>.md`,
15
+ and a revised plan that folds them in. Each finding says whether it was **executed** (a command
16
+ was run, its output quoted) or only **read** (from docs or code). Why: a claim read from
17
+ documentation is a hypothesis; the point of deepening is to turn the ones the plan depends on into
18
+ facts.
19
+
20
+ ## How
21
+
22
+ 1. **List the questions.** Each trigger that scored becomes one or more questions the plan's
23
+ correctness depends on: "does the parser see X?", "does the library behave like Y when Z?",
24
+ "has this been solved in docs/solutions/?".
25
+ 2. **Seat them.** Research seats run on the worker's row, or on the decider's row when the plan's
26
+ `escalation:` is `lean` or `full` (Escalation in
27
+ `${METHODICAL_ROOT}/reference/seat-selection.md`); the code-grounded and rigor seats that
28
+ check the plan's claims against the code run on the decider's row. Each seat names its row's
29
+ model and effort. Give each seat the plan's
30
+ base commit, the sections it rules on, and what not to read whole; never forbid a seat from
31
+ opening a file it needs. Why: a scoped brief spends judgment on the question, not on rereading
32
+ the repo.
33
+ 3. **Execute where you can**, in a scratch directory, never against the user's real configuration
34
+ or data. If a check would cost money or cannot be undone, stop and ask with AskUserQuestion.
35
+ 4. **Fold the findings into the plan** as a new revision: update the inventory, approach and tests;
36
+ record what changed and why at the top. Update `base:` if the code moved; the plan stays
37
+ `state: draft`.
38
+
39
+ ## When it hands on
40
+
41
+ Say `Step: plan-review` and run `/methodical:plan-review` on the revised plan in the same turn.
methodical/references/skills/north-star/SKILL.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: north-star
3
+ description: "Make sure the project has a written goal in docs/north-star.md, then state how the current unit moves toward it. Use after a brainstorm and before a plan, or when substantial work is requested in a repo with no docs/north-star.md. North-star step of the methodical loop. Not to rewrite an existing one unasked."
4
+ ---
5
+
6
+ # North Star
7
+
8
+ Say `Step: north-star` before anything else.
9
+
10
+ Use the North Star at the start of every unit, not only at review. Why: units judged only against
11
+ their own goal can each pass while the project drifts; stating the goal up front steers each plan
12
+ before work is spent on it.
13
+
14
+ ## Mode 1 — the project has no `docs/north-star.md`
15
+
16
+ Write it **with the user**, before any plan.
17
+
18
+ 1. Start from `${METHODICAL_ROOT}/templates/north-star.md`.
19
+ 2. Draft only what the repo and the conversation already show, mark every guess as a guess, and ask
20
+ the user to rule on who it serves, what they receive and the bar. Batch the questions into one AskUserQuestion call (at most 4; the rest in a
21
+ second call), with a recommended answer first for each. Why: a goal the user did not choose will be overruled later,
22
+ after work has been built on it.
23
+ 3. Write `docs/north-star.md` once the user has ruled, link it from the repo's `CLAUDE.md` (create a
24
+ one-line one if there is none), and commit. Why: a North Star nobody's session can find does not
25
+ steer anything.
26
+
27
+ This is a stop for the user's ruling, by design. If they decline to write one now:
28
+ record that in the plan's "Left short, on
29
+ purpose" and continue.
30
+
31
+ ## Mode 2 — `docs/north-star.md` exists
32
+
33
+ Write the unit's statement in the shape of the plan template's North Star section. Do not interrupt: ask with AskUserQuestion only if the statement would change what the North Star means. Why: that is their goal to
34
+ change, not the unit's.
35
+
36
+ When a design choice comes up anywhere in the loop, prefer the option that moves toward the North
37
+ Star, and say so. A unit that meets its own goal but not the North Star is not done; say that
38
+ plainly rather than reporting success.
39
+
40
+ ## When it hands on
41
+
42
+ Say `Step: plan` and continue with the plan skill in the same turn, carrying the statement into
43
+ the plan.
methodical/references/skills/plan-review/SKILL.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: plan-review
3
+ description: "Review a plan in docs/plans/ with reviewer seats matched to the project's language, before the user approves it. Use when a plan has just been written or deepened, when a plan was revised after review, or when the user asks for a plan review. Plan-review step of the methodical loop. Not for reviewing built code."
4
+ ---
5
+
6
+ # Plan review
7
+
8
+ Say `Step: plan-review` before anything else, and name the plan file under review.
9
+
10
+ Plan review always runs, follow-ups and small plans included, unless the user waives it. Why: the author is the one reader
11
+ who cannot see the plan's gaps, and a gap found in a plan costs a sentence; found in code, a rework. A waived
12
+ plan waives its review too. If the user skips only the review,
13
+ then ask "Approve this plan?" with AskUserQuestion, after any open questions, as below, unless approval is no longer owed: if the same words said to build it, ask once, with AskUserQuestion, only the unanswered open questions that change what gets built, record the rest in the plan as "unanswered, left short", record those words verbatim as the approval, set `state: approved`, commit, and go to `Step: work`.
14
+
15
+ ## How
16
+
17
+ 1. **Read `${METHODICAL_ROOT}/reference/seat-selection.md`.** Why: it is not in context until
18
+ read, and the seats, models, brief and round rules all come from it.
19
+ 2. **Fix the base.** The base commit is the plan's `base:`. If `HEAD` has moved past it on files
20
+ the plan touches, say so: a stale base is a deepen trigger, so go back to `Step: deepen` first.
21
+ 3. **Run the round per seat-selection.md**, with the plan file as the artifact under review and the
22
+ plan's `escalation:` line selecting the seats (Escalation, in the same file), then print the seat
23
+ lines.
24
+
25
+ ## When it hands on
26
+
27
+ A material finding is fixed and re-reviewed in the same turn. When the round has cleared, set the plan's front matter to `state: reviewed` and commit it. Then
28
+ put the plan's open questions to the user with AskUserQuestion (at most 4 per call, highest impact
29
+ first, recommended answer first) and write every answer into the plan body, the non-recommended
30
+ ones included; if an answer changes the approach, revise and re-review first. Only then ask
31
+ "Approve this plan?" with AskUserQuestion, as its own final call, never in the same call as the open
32
+ questions:
33
+ `options: "Approve (Recommended)" / "Revise"`
34
+ and stop. Why: an approval clicked in the same call as the questions starts the build on
35
+ unresolved questions. Before writing their answer into the
36
+ plan's Rulings section, read `${METHODICAL_ROOT}/rules/user-words.md` and follow it. On their yes,
37
+ record it verbatim, set `state: approved`, commit, say `Step: work` and continue with the work
38
+ skill in the same turn. On anything else ("Revise" or typed text), record it verbatim and revise the plan. Why: a reviewer can say a plan is sound,
39
+ but only the user rules that it gets built; that stop is what makes the method gated.
methodical/references/skills/plan/SKILL.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: plan
3
+ description: "Write the plan file in docs/plans/ that code changes get before building, unless the user has said to build without one. Use when the user asks to build, fix, edit or change code and docs/plans/ has no approved plan for it, or when a plan must be revised after review. Plan step of the methodical loop. Not for questions or reading code, and not when the user has waived the plan for this change (go to work)."
4
+ ---
5
+
6
+ # Plan
7
+
8
+ Say `Step: plan` before anything else.
9
+
10
+ ## What it produces
11
+
12
+ `docs/plans/<YYYY-MM-DD>-<slug>.md`, made from `${METHODICAL_ROOT}/templates/plan.md`, with every
13
+ section filled or explicitly marked "none".
14
+
15
+ The plan's `base:` is the commit it was written against. Why: a reviewer can only check a plan
16
+ against the code it was written for, and a stale base is itself a reason to deepen.
17
+
18
+ The plan is a deciding seat, written on the decider's row, which stays the decider's row at every
19
+ escalation level. If this session runs on another model, launch a `general-purpose` Agent with the
20
+ decider's model and effort to draft it, and give that seat the base commit and the brainstorm. If that launch fails, follow the re-seat ladder in
21
+ `${METHODICAL_ROOT}/reference/seat-selection.md`.
22
+
23
+ ## How
24
+
25
+ 1. **Take the inventory from the code, not from memory.** Every file, module, interface and
26
+ document the unit touches, with what changes.
27
+ 2. **Look for prior art** in `docs/solutions/` and name what applies.
28
+ 3. **Score deepen against the always-on rules' triggers**, fill the Deepen score section, and say
29
+ the score aloud ("Deepen score: 3 of 6, deepening; escalation: lean"). Below 2, run it anyway
30
+ if it would help, and say why. Why: saying the score lets the user overrule it.
31
+
32
+ **Set the escalation level.** This step computes the line once and writes it as `escalation:` in
33
+ the front matter: `full` at a score of 4 or more, `lean` at 3 or at a named trigger
34
+ (Escalation in `${METHODICAL_ROOT}/reference/seat-selection.md`), otherwise `none`. The
35
+ Deepen score section records which trigger set the level, with its evidence. If the user edits
36
+ the line before approving, the user's edit stands and is recorded as a ruling; a deepen or
37
+ review revision recomputes only when no such edit is recorded. Work reads the approved plan's
38
+ line. Why: the level is decided where the risk is known, and the user's edit outranks the
39
+ computation.
40
+ 4. **Write acceptance tests the person served would recognise**, each with how it is run and what
41
+ counts as a pass.
42
+ 5. **Record rulings** in the Rulings section as they are given, after you read
43
+ `${METHODICAL_ROOT}/rules/user-words.md` and follow it.
44
+ 6. **Commit the plan.** If the repo is on `main`, first create the unit's branch (see the work
45
+ skill), so the plan and its work merge together.
46
+
47
+ ## When it hands on
48
+
49
+ - Score 2 or more, or a stale base: say `Step: deepen` and continue with the deepen skill in the same turn.
50
+ - Otherwise: say `Step: plan-review` and run `/methodical:plan-review` in the same turn.
51
+
52
+ Leave the plan at `state: draft`. Plan review sets `reviewed`. The question
53
+ "Approve this plan?" comes next: plan-review asks it with AskUserQuestion, as its own final call
54
+ after the open-question answers are in the plan; record their answer in Rulings, and set `state: approved` only on their yes. Why: the user,
55
+ not a reviewer, rules that a plan gets built; that stop is what makes the method gated. Open
56
+ questions wait for their ruling while everything that does not depend on them continues.
methodical/references/skills/work-review/SKILL.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: work-review
3
+ description: "Review a finished build on its branch against its plan, with reviewer seats matched to the code's language, before it merges. Use when the work step's tests pass and the plan's approach is done, or when the user asks for a review of a branch's changes. Work-review step of the methodical loop. Not for reviewing a plan."
4
+ ---
5
+
6
+ # Work review
7
+
8
+ Say `Step: work-review` before anything else, and name the plan and the branch under review.
9
+
10
+ Never skip it on your own. Why: the author is the one reader who cannot see their own gaps, however careful
11
+ the work, and this is the last look before the user's trunk. If the user skips it, commit and push the
12
+ branch, then go to compound.
13
+
14
+ ## How
15
+
16
+ 1. **Read `${METHODICAL_ROOT}/reference/seat-selection.md`.** Why: it is not in context until
17
+ read, and the seats, models, brief and round rules all come from it.
18
+ 2. **Fix the range.** The base is the plan's `base:` if it resolves to a commit, otherwise
19
+ `git merge-base main HEAD`. The diff range is `<base>..HEAD`. On a re-review, the base is the
20
+ commit the last review saw, so the seats read only what changed since.
21
+ 3. **Run all of the project's tests** first, whatever the repository's `narrow-check:` lines say. A red test is fixed
22
+ before any seat launches. Why: a seat's time is wasted on a build that does not pass, and a narrowed run is never
23
+ the one a review trusts.
24
+ 4. **Run the round per seat-selection.md**, with the diff as the artifact and, in the brief, the
25
+ plan's acceptance tests and rulings, or the user's request verbatim and "plan waived" when there
26
+ is no plan. A trivial diff (seat-selection.md, Trivial diffs) gets one seat; after each fix run all of the project's tests, then commit; a fix commit in the review never narrows. Then print the seat
27
+ lines. At `full`, the plan's `escalation:` line puts the code-grounded, rigor and correctness
28
+ seats on the backstop's row (Escalation, in the same file).
29
+ 5. **At `lean` or `full`, run the backstop review** once the round clears, its fixes are committed
30
+ and the tests are green: the rigor lens on the backstop's row over `<plan base>..HEAD`, its seat
31
+ line naming the candidate commit it saw. A material finding is fixed and committed, then the
32
+ touched lenses and the backstop re-run on the new candidate, until none remains. The one
33
+ push (below) follows the last pass. Why: the extra look is worth its price only on the commit that will merge.
34
+
35
+ ## When it hands on
36
+
37
+ When the round has cleared (at `lean` or `full`, after the backstop review in step 5) and every test passes, commit, then `git push -u origin <branch>`:
38
+ every unit, the branch only, never `main`. Why: a reviewed branch that lives on one machine is
39
+ lost with it, and the merge ask then names something the user can see. A material finding is fixed and re-reviewed in the same turn. Then say `Step: compound` and continue with the
40
+ compound skill on this branch in the same turn; do not merge yet. Never merge to `main` or delete the branch without
41
+ the user's go — compound asks for it, or a standing merge grant (compound skill) gives it. Why: the write-up then merges with the unit it describes,
42
+ and the user is asked once.
methodical/references/skills/work/SKILL.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: work
3
+ description: "Build an approved plan from docs/plans/ on its own short-lived branch, or a change the user said to make without a plan. Use when a plan reads state: approved and the user wants it built, when resuming such a build, or when the user has waived the plan for a named change. Work step of the methodical loop. Not when no approved plan exists and the user has not waived one (run the plan step), and not for reviewing finished work."
4
+ ---
5
+
6
+ # Work
7
+
8
+ Say `Step: work` before anything else, and name the plan file being built (or "plan waived").
9
+
10
+ Build from a plan in `docs/plans/` whose front matter reads `state: approved`, or from the user's
11
+ own words in chat to build this change without one. Otherwise do not build: no plan, run the plan
12
+ step in the same turn; not yet reviewed, deepen if its triggers hold, then run plan-review; awaiting approval, ask "Approve this plan?"
13
+ with AskUserQuestion, as its own final call after the open-question answers are written into the plan, and stop. None of these is offered as a choice. Why: approval is the user's ruling that this plan gets built, and a waiver is the same ruling
14
+ given without a plan; only the user gives either.
15
+
16
+ **Plan waived.** No plan file; go straight to work. Branch as usual (branch hygiene is not waived unless the user says
17
+ so); the user's request, verbatim, is the approach and the acceptance test.
18
+
19
+ ## The escalation line
20
+
21
+ The first `Step: work` of a unit says the level from the approved plan's `escalation:` line, with
22
+ the deepen score when the plan records it: `escalation: lean (deepen 3 of 6)`. It reads three cases
23
+ as `none`, each said as such: `escalation: none (plan waived)`, which gives no recommendation;
24
+ `escalation: none (no line)`, for a plan written before the line existed; and `escalation: none
25
+ (unknown value 'x')`.
26
+
27
+ At `lean` or `full` the same line gives one nonblocking recommendation, the first time in a session only:
28
+ "Session for this build: use the resolved host decider model and effort, if not already."
29
+ Read the actual values from the host profile; never copy a provider-specific alias into this common skill.
30
+ Model and effort are stated apart. The user's own settings win: never repeat it, block on it or force a change.
31
+ Keep it nonblocking; a later unit in the same session says nothing about it. It replaces the startup Offer in that line.
32
+ The build runs in the session, whatever it is; the worker row sets only the effort of worker seats.
33
+ Why: the session's model and effort stay the user's.
34
+
35
+ ## Branch hygiene
36
+
37
+ `main` is the single trunk. Each unit gets one short-lived branch off `main`, named for the actual
38
+ work (not an aspirational end-state), and merged back and deleted once its work review clears, its
39
+ tests are green and the user says go. Never commit to `main` directly while a branch for the same
40
+ work is open; do not base a branch on another unmerged branch, or keep a long-lived integration
41
+ branch. Why: a branch that outlives its unit drifts from `main`, and the merge then hides what
42
+ changed.
43
+
44
+ ## How
45
+
46
+ 1. **Follow the plan's approach in order.** If the plan turns out to be wrong, make the smallest
47
+ change faithful to its goal, record it as a deviation in the plan, and carry on; ask with AskUserQuestion only if the deviation
48
+ would change what the user ruled. Why: small deviations are normal; silent ones are
49
+ how a reviewed plan stops describing the code.
50
+ 2. **Check the North Star after each act that changes behaviour**: a census seat (the census row's
51
+ model and effort) compares the diff, the plan's rulings and its North Star statement, and answers "on course" or "drifted at <line>,
52
+ because ...", quoting the statement line it measured against. Docs-only fixes skip it. Why:
53
+ drift is cheap to correct one act in, and expensive after the review.
54
+ 3. **Test, then commit.** Before every commit run all of the project's tests, unless you have read
55
+ `${METHODICAL_ROOT}/reference/narrow-checks.md` and followed it for this commit, printing each path beside the
56
+ `narrow-check:` line it matched; a run without that printout is a full run. Then commit, then `git push -u origin <branch>`:
57
+ the unit's branch, never `main`. A red test is fixed, not skipped. Red CI after the push: read the log, decide flake or
58
+ real, fix, push again. Why: each
59
+ commit is a point a later session or reviewer trusts as working; a skipped red test hides a break
60
+ inside history that looks finished; a pushed branch survives the machine, so a unit whose review
61
+ the user skips is still pushed.
62
+
63
+ ## Owed verification
64
+
65
+ If an acceptance test needs real hardware, an environment this machine does not have (a phone, a
66
+ device, a cloud account), a live session or a time not yet come, do not leave a note in whatever file is open. Add an entry to the repo's
67
+ `docs/device-verification-queue.md`, creating it from
68
+ `${METHODICAL_ROOT}/templates/device-verification-queue.md` if it is missing: the exact protocol
69
+ in order, what a pass proves, what a fail proves, and the cost. The unit is then **done,
70
+ owed**: it ships, but it is not done until the entry clears. Drain the queue at the next
71
+ natural moment the hardware is to hand, and before any archive or store build; a fail turns the
72
+ entry into a todo. Why: a note in a random file is never found again, and a cheap exact protocol
73
+ is one that actually gets run.
74
+
75
+ ## When it hands on
76
+
77
+ When the plan's approach is done and the checks that ran pass, say `Step: work-review` and run
78
+ `/methodical:work-review` in the same turn. A test that can only run later (hardware, a live
79
+ session, a time not yet come) is recorded as owed (above) and does not hold the review. Never skip the work review on your own. Why: the author is the one person who cannot
80
+ see their own gaps, however careful the work. Never merge to `main` or delete a branch without the
81
+ user's go — compound asks for it once the write-up is on the branch, or a standing merge grant
82
+ (compound skill) gives it, and any merge first runs compound's full run of all of the project's tests. Why: `main` is the
83
+ user's trunk, and merging is their ruling point.
methodical/references/templates/device-verification-queue.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Device-verification queue
2
+
3
+ Work that is **done, owed** (see the work skill); each entry below fills the four fields.
4
+
5
+ ---
6
+
7
+ ## <unit> — <what needs proving>
8
+
9
+ **Opened** <YYYY-MM-DD>. **Merged** <commit or PR>. **Plan** <docs/plans/<file>.md>.
10
+
11
+ **Why it is owed.** <What the tests prove and what they cannot, because only the hardware can.>
12
+
13
+ **Hardware needed.** <The device or environment, and anything it must have set up.>
14
+
15
+ **Protocol, in order.**
16
+
17
+ 1. <step>
18
+
19
+ **A pass** <what is seen>, which proves <what>.
20
+
21
+ **A fail** <what is seen>, which means <what>, and this entry becomes a todo.
22
+
23
+ **Cost.** <Time, money, and anything else it consumes.>
methodical/references/templates/north-star.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # North Star — <project name>
2
+
3
+ Written <YYYY-MM-DD>, with <who ruled on it>.
4
+
5
+ <!-- Write this WITH the user. Every line below is theirs to rule on; never invent a project's goal. -->
6
+
7
+ ## Who it serves
8
+
9
+ <The person the project serves, in one or two sentences: who they are and what situation they are in.>
10
+
11
+ ## What they receive
12
+
13
+ <What that person actually gets when the project succeeds, stated as their experience, not as the
14
+ machinery that produces it.>
15
+
16
+ ## The bar
17
+
18
+ Each test is phrased as the person served would judge it.
19
+
20
+ 1. **<short name>.** <What they see or can do, and what counts as passing.>
21
+ 2. **<short name>.** <...>
22
+
23
+ ## Deliberately left out
24
+
25
+ - **<gap>.** <Why it is left out, and whether it is meant to come later.>
26
+
27
+ ## Decisions
28
+
29
+ - <Each ruling that shaped this statement, quoted or summarized with its date.>
methodical/references/templates/plan.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "<plan title>"
3
+ date: <YYYY-MM-DD>
4
+ state: draft # draft → reviewed (plan review) → approved (only the user's yes)
5
+ base: <commit the plan was written against>
6
+ escalation: <none, lean or full> # set once by the plan step from the deepen score and the named triggers
7
+ brainstorm: <path in docs/brainstorms/, or none>
8
+ ---
9
+
10
+ # Plan — <plan title>
11
+
12
+ ## North Star
13
+
14
+ <Quote the line of docs/north-star.md this unit serves. Then: how this unit moves toward it, in one
15
+ or two sentences.>
16
+
17
+ **Left short, on purpose:** <each gap this unit leaves, named, and why it is acceptable now.>
18
+
19
+ ## Goal
20
+
21
+ <What is true when this unit is done, from the user's side.>
22
+
23
+ ## Inventory
24
+
25
+ <Everything the unit touches or produces: each file, module, interface and document, with what
26
+ changes in it. A count or a "none found" that the plan relies on says how it was obtained.>
27
+
28
+ | Item | Change | Notes |
29
+ |---|---|---|
30
+ | <path or surface> | <new / changed / removed> | <why, risk> |
31
+
32
+ ## Deepen score
33
+
34
+ <One line per deepen trigger from the always-on rules that holds, then the total.>
35
+
36
+ **Score:** <n> of 6 → <deepen / no deepen> <, plus "stale base" if it applies>
37
+
38
+ ## Approach
39
+
40
+ <The steps of the work in order, each small enough to commit on its own once its checks pass.>
41
+
42
+ 1. <step>
43
+
44
+ ## Acceptance tests
45
+
46
+ Phrased as the person served would judge the result, not as "the machinery ran".
47
+
48
+ 1. <test> — <how it is run, and what counts as a pass>
49
+
50
+ ## Rulings
51
+
52
+ <Every ruling the user gives on this plan, verbatim, with its date.>
53
+
54
+ ## Open questions
55
+
56
+ <Questions waiting on a ruling. Work continues on everything that does not depend on them.>
methodical/references/templates/solution.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "<the lesson, stated as a claim>"
3
+ category: <folder under docs/solutions/, e.g. testing-patterns>
4
+ date: <YYYY-MM-DD>
5
+ symptoms:
6
+ - "<what was seen first, as it appeared: an error line, a wrong number, a behaviour>"
7
+ root_cause: "<one sentence: why it happened>"
8
+ tags: [<searchable words>]
9
+ ---
10
+
11
+ # <the lesson, stated as a claim>
12
+
13
+ ## Symptoms
14
+
15
+ <What was observed, before anything was understood. Write it as someone would search for it later:
16
+ the exact error text, the command, the wrong output.>
17
+
18
+ ## Root cause
19
+
20
+ <Why it happened. Name the mechanism, not just the line that changed.>
21
+
22
+ ## Fix and evidence
23
+
24
+ <What was changed, and the executed evidence that it works: the command run, its output, the test
25
+ that now passes or the check that would have caught it. A claim that was only read, not run, says
26
+ so.>
27
+
28
+ ## What did not work
29
+
30
+ <Approaches tried and dropped, each with the reason. Optional; skip it if nothing was tried.>
31
+
32
+ ## Reuse
33
+
34
+ <When this applies again: the signs that a new problem is the same kind, and the first thing to do
35
+ when they appear.>
36
+
37
+ ## Index line
38
+
39
+ Add this line under `## <category>/` in `docs/solutions/README.md`:
40
+
41
+ - [<slug>](<category>/<slug>.md) — <the lesson in one line, with the sign that it applies>