The critique against SPEC.md and the staged plan

A verdict for every module and command at the base commit (held complete by a
test), the ranked defects with evidence, what stays, and the plan in build
order with the owner's recorded statements and where each is answered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-23 10:54:59 -07:00
1 parent 9fcd617391
commit d357fe0004
4 files changed
+449

No files matched your search

+88
View File
@@ -0,0 +1,88 @@
# Plan: bringing sisi into conformance with SPEC.md
The work list for the reconciliation. `docs/reconciliation/critique.md` says what is wrong,
`docs/target.md` says what replaces it, `docs/spec/conformance.json` holds the status of every
numbered requirement, and this file says in what order it is built and what the owner has
asked for. Section numbers in brackets are sections of `SPEC.md`.
## What done means
Every requirement in `docs/spec/requirements.json` is either met by a named mechanism with a
test that cites its id, or it is on the exceptions list at the end of this file, in plain
words, with the reason and what it would take. A different model family from the one that
built it grades the table against the specification text. The measurements in
`tools/measure.py` are shown before and after.
## Stages
Stages are an order, not a ceiling. Each one lands on the `spec-reconciliation` branch only
with the whole test suite passing.
| # | Stage | Serves | What it delivers |
|---|---|---|---|
| 0 | Standard and baseline | [19] steps 1-4, 6 | The specification saved and protected; its requirements numbered with a completeness test; four audits; a measured baseline. |
| 1 | Cut and sort | [8.2, 12, 17] | Dead commands and developer mode removed; the product scanned by a test for owner-specific and perishable material; a shorter README; `tools/measure.py` and the "before" numbers. |
| 2 | Records | [5.4-5.6, 6.1, 6.4, 10, 13] | The durable work-unit record; the five verification statuses; selection by change and reuse; telemetry with honest classes; the scorecard; `sisi status`; scratch pruning. |
| 3 | Orchestration | [7] | One ledger, worker facts, `route`, the delegation contract, the strategy playbook; nothing in the product names a model. |
| 4 | Conformance table | [19] step 2, [20] | Status of every requirement before the rebuild, then kept current by every stage. |
| 5 | Proportional gate | [5.3, 9, 10.3, 17] | Risk profiles replace line counts; the gate enforces only what the profile requires; retro at close; `unit pause`; subagents pass; hooks add only what a session can act on; recipes found by structured tags. |
| 6 | Learning loop | [11, 12, 14.4, 16] | Learning records per [11.4]; a retro grounded in the unit record; scope earned by evidence; validation before promotion; promotion as a revertible commit; recurrence monitoring; protected rules and owner approval for consequential changes. |
| 7 | Rulebook and documents | [3, 4, 17] | `canon/core.md` rewritten as the operating policy; the documents rewritten around what now exists. |
| 8 | Evaluation harness | [11.5, 11.6, 13.3, 19 step 9, 20.3] | Benchmark cases from real work and from learnings; a replay runner; policy versions compared on historical, held-out and counterexample cases; an independent judge. |
| 9 | Grading | [13.3] | Conformance graded requirement by requirement by a different model family; the exceptions list. |
| 10 | Cutover | [14, 16] | The owner's installation switched, his data migrated, the old orchestrator removed. |
## Cutover checklist
The installed copy is not changed in the middle of a stage.
1. Archive, with a timestamp, the personal data folder, the scratch folder's ledgers, and the
owner's Claude instructions and settings.
2. Run the data migration on a copy of the real data and compare counts: lessons to
learnings, owner statements, delegation ledger rows (the old `orch.py` log merged in).
3. Prove `sisi rollback` in a sandbox: release, switch, roll back, compare byte for byte.
4. Check that the new hooks accept state written by sessions that are already running.
5. Release. Run `sisi doctor`. Run the measurements and print the before-and-after table.
6. Remove the hand-written orchestrator section from the owner's Claude instructions and
retire `orch.py`, in one edit with the backup from step 1. Running sessions get a
one-time notice through the prompt hook.
7. If anything in steps 5 or 6 fails: `sisi rollback`, restore the archive, stop and report.
## Spending
Builders are the non-Claude workers. Claude workers are used only for short reviews that must
block, at most ten in the whole job. If every non-Claude worker is unavailable, the work stops
at a stage boundary and says so.
## What the owner has said about sisi
These are requirements. Each is quoted as recorded and followed by where it is answered.
- "It is NOT about that one system. This is a CORE STRATEGIC LEVEL BEHAVIOR to be smarter about how you do things. I shouldn't need to specify these menial details. This is a sisi core problem."
Answer: the rulebook becomes strategic direction with mechanisms behind it (target 1, 10).
- "sisi should also optimize for minimize(time to delivery) for each task. Just about anything I ask it to do can take HOURS, and sometimes it can take DAYS. I don't want to give up the autonomy or completeness or correctness! But I want both. I want all that AND I want it delivered quickly. So this needs to be part of the sisi core objective optimization function."
Answer: time to first useful result and to validated completion are measured per unit and reported with their percentiles; selection and reuse of checks; pauses and waits measured (target 5, 6; stage 2).
- "The pushed README still says 'Version 0.1.0, an early release.' under Status. This is the problem with this kind of text, hardcoded to specific versions or numbers or whatever. Also I'm pretty sure the whole README could be reduced by 25-50%."
Answer: stage 1 rewrites the README without versions or counts, and a test scans the product for perishable material.
- "For price and benchmarking, I'm totally fine with sisi doing web research on that, and updating it every now and then. Generally sisi is built for SWE tasks, so those kinds of benchmarks are what's most useful, and if they do well there they probably do well in other places too, with a few exceptions like specialized software security models."
Answer: worker facts with source and date, researched by a cheap worker when stale (target 9; stage 3).
- "the brand and title is always **sisi** is still improving. Lowercase, and emph on sisi if it is available."
Answer: stage 1 and stage 7 documents.
- "Make sure they do a cleanup and backfill to get that garbage out of my global disk data. Stuff like the keymap for phrp belong in that project's work list and design documentation!!! (on project-specific items stored in sisi's global data; lessons must be universally applicable, project details allowed only as the historical example of where a lesson came from)"
Answer: scope is earned by evidence and a learning is in force only in its own project until then; the migration in stage 6 re-scopes the existing lessons and hands project items to their projects (target 8; cutover step 2).
- "As part of the orchestrator incorporation into sisi, make sure you delete the old version so my sessions aren't running two orchestrators. Also we will need to let current running sessions know about the changes or else I need to restart them."
Answer: cutover steps 4 and 6.
- "Subagent performance history goes in the user sisi store, not sisi core. And sisi needs to work in t3 or Claude or Hermes or anything else out there. It should always choose the native subagent delegation mechanism!!!!!"
Answer: the ledger and worker facts live in the user store; `sisi route` names the host's own mechanism first (target 2, 9).
- "I feel like I'm really still having to lead you around by the nose. With sisi I thought you were going to be getting smarter, seeing around corners, anticipating and building what I need before I realize it????"
Answer: the requirement model with implied, contextual, anticipated and experiential requirements, required where the risk warrants; requirement surprise measured per unit (target 3, 4, 6).
- "The question you have to ask is whether something applies to ALL projects where sisi may be in play AND if it would be universally useful to ALL USERS who install and use sisi. If so it goes in sisi core! If not it's either a user-preference or project-specific and it goes in my user sisi data store. Working on the sisi project itself is the exception -- we'll normally just have sisi as our shell while we work on a wide variety of different projects."
Answer: the four layers and the universality test (target 2; stage 1).
- "OBTW part of this is deprecating the whole standalone orch.py thing to make that a core part of sisi. But it should be GENERIC and STRATEGIC in direction, so the agent works out the tactics on the fly. IOW, it shouldn't explicitly say use THIS EXACT MODEL or whatever. It sets out OBJECTIVES about how to discover models, discover pricing, discover benchmarking, measure performance, and dispatch and orchestrate DYNAMICALLY and INTELLIGENTLY. And it can leverage subagents with specific orchestration tasks like assessing, routing decisions, whatever. That could be a Haiku/Ember level model sometimes too! This should play DIRECTLY into the main system's objective function, especially around wall time, cost, efficiency."
Answer: target 9; stage 3; delegation time, tokens and overlap feed the scorecard (target 6).
- "Ok get to work. Also note that I'm totally fine with GROSS change. Rearchitecting is okay. The ONLY thing that matters is that we implement the spec (plus orchestration layer) PERFECTLY."
Answer: backward compatibility with the old design is not a goal; what is replaced is deleted.
## Exceptions
Requirements that are not met when the work is reported, in plain words. Filled in at stage 9.
+221
View File
@@ -0,0 +1,221 @@
# Critique of sisi against SPEC.md
Assessed on 2026-11-23 at commit `ec91e52`, as the specification's reconciliation steps 1 to 4
require [19]: four read-only audits of the code (the learning engine; the path from request
to "done"; installation, wiring and orchestration; and a measured baseline from the owner's
live data), each checked against the others. Numbers in brackets are sections of `SPEC.md`.
This is a dated record. The living status of each requirement is `docs/spec/conformance.json`.
## Verdict
sisi at this commit is a system for circulating prose between agents, with one good gate
attached. It has about 18,000 lines of Python, 41 commands and 160 library files, and after
a day of heavy use it cannot say what any piece of work cost, whether the human accepted it,
or whether anything it learned made later work better. The specification's first milestone is
"observability and control, not sophistication" [19]. sisi built the sophistication first.
What it does well is real and is kept: installation that cannot damage a user's tools, hooks
that fail open, a gate that turns "done" from a claim into an executed check, and a clean
separation of product, personal data and scratch.
## The defects, most serious first
### Flat-out wrong
1. **Learning produces no mechanisms** [11.3, 18]. Of 42 lessons, none became an executable,
validated mechanism: no lesson has a check attached, none reached the top strength, and no
enforced-check file exists. All 23 "folded" changes are Markdown. Every path ends as text in
a later prompt, which the specification lists as a prohibited anti-pattern ("prompt-only
self-improvement").
2. **Nothing is validated, by stated policy** [11.5, 11.6]. `docs/learning.md` says "there is
deliberately no replay testing before a change ships". Applying a learning cycle checks
structure only. Monitoring is one flag comparing send-backs before and after, confounded by
everything else that changed. A set of 1,627 harvested tasks built for replay has no runner.
3. **It cannot show it is improving** [13, 20.3]. No store holds token counts, cost, human
attention, acceptance or escaped defects. `sisi improve` counts lessons, showings and
send-backs. By its own output every failure pattern's recurrence is "not falling". The
rulebook grew from 98 to 158 lines over five cycles; one cycle was reverted and one is
flagged worse. The specification says a system "MUST NOT claim to be improving solely
because it has accumulated more prompts, skills, agents, tools, or learning records".
4. **There is no work-unit record** [10.2]. One `.sisi/contract.json` per project is edited
by hand for each new task; the previous goal and checks are lost. Check results,
delivery timings and retros live in three stores that share no id. Of the fourteen items a
record must hold, the contract has four.
5. **Verification proves exit codes, not claims** [5.1, 5.6]. A check is a command and an
expected exit status. `{"cmd": "true", "rung": 1, "kind": "money"}` satisfies the floor for
money code, because the floor compares a self-declared integer. The project's own tests use
`true` as the model of a good check. Nothing ever requires a check to be seen failing.
6. **The verification record has the wrong vocabulary** [5.6]. Statuses are passed, failed,
timeout and awaiting-human. There is no skipped, not-applicable or not-run; running out of
budget is recorded as a timeout; and a check waiting for a human counts as success.
7. **Every gate can be escaped by the agent it gates** [3.2, 10.3]. `sisi contract waive
"<anything>"` needs no approval and resets the gate. After three send-backs the gate lets
the turn end.
8. **Ceremony follows the size of a diff, not its risk** [5.3, 9, Appendix A]. Forty changed
lines or three files demand a six-part design essay; a 39-line change to a money parser
demands nothing. There is no risk model, no change-impact analysis, no selection of checks
and no reuse of results [5.4, 6.4].
9. **A retro is demanded at every stop that edited anything** [9, 11.1]. That includes a pause
to wait for background work and a subagent's hand-back. In the session that produced this
critique the demand replaced a reviewer's ten-point report with a note about its retro, and
the report had to be requested again. The gate also sent sessions back 34 times in 87
deliveries, 9 of them in one session for another worker's edits.
10. **Two orchestrators, and the product's is fiction** [7]. `sisi delegate` has no native run
on record: its 936 ledger rows were imported once from the owner's hand-written `orch.py`,
which is what actually runs, loaded into every session from his private instructions.
sisi's router has no prices and no priors, so "cheapest" is arbitrary among flat-plan
models; 1,875 catalogue entries flood the candidates; there is no delegation contract [7.5],
no parallelism [7.4] and no cost capture [7.3]. A new user gets none of what produced the
owner's results.
11. **Self-modification is ungoverned** [11.7, 14.3, 14.4, 16]. A cycle written by any working
agent may disable or replace any rule, including the ones that require verification and
retros, and install command checks, with no human asked. The only guards are a size budget
and an undo.
12. **One incident becomes a universal rule** [11.6]. Scope is the recording agent's claim,
checked only for whether the text names the project. 30 of 42 lessons were declared
universal, almost all on one sighting, and are delivered in every project from that moment.
Promotion counts "showings" that sisi generates by printing the lesson.
13. **The owner's personal preferences drive a product-wide gate** [12]. The design section
requires one answer per standing principle, and on this machine those include a Claude
quota and OpenCode prices. Recording a new statement immediately made the contract invalid
until it was answered. Any user's installation would work the same way with their own.
14. **The learning store is an instruction channel anyone can write** [16]. Text from lessons is
injected into every later session in every tool. A delegated worker, or any process running
as the user, can write it. Contract trust gates commands; nothing gates instruction text.
### Missing
15. **No intent or requirement model** [4.1, 4.2]. Explicit, implied, contextual, anticipated
and experiential requirements collapse into a free-text list of assumptions. Requirement
surprise and rework cannot be measured.
16. **No time to first useful result, no stall detection, no budgets** [6.1, 6.3, 6.5]. Only
the time from request to an allowed stop is measured.
17. **No scorecard** [13.1, 13.4]. None of the eight dimensions is recorded per unit and
nothing is labelled measured, inferred or unavailable.
18. **No independent evaluation** [13.3]. Scores, scope and recurrence are all judged by the
agent that did the work.
19. **No confidence, contradiction or staleness handling for knowledge** [12]. Lessons never
expire; a wrong lesson that is rarely shown lives for ever.
### Overbuilt
20. **Forty-one commands, sixteen of which only manage sisi** [8.2, 17]. A retro alone has a
twelve-line synopsis of required flags. Four taxonomies sit on one lesson record (aim,
change kind, pattern, topic); four reporters overlap (`improve`, `status`, `time`,
`scoreboard`); three writers share one store (`overlay`, `cycle`, `promote`); `note` and
`propose` are self-declared leftovers.
21. **The prompt hook delivers the wrong thing** [7.6, 12]. For a typo fix, a diagnosis question
and a feature request it returned the same notice about unfiled handover items, and no
lesson or recipe. For both of the specification's own example requests it delivers
nothing. Its matcher is word overlap: "fix the race condition" ranks `security-fix` above
`concurrent-code`.
22. **The retro manufactures lessons** [11.1]. Because one is demanded every time, agents find
one every time: 42 lessons in one day, 67% of the evidence from sisi working on sisi, 40 of
42 seen once. Its duplicate check matched a lesson about subagent hand-backs to one about
check timeouts and refused to record it.
23. **Whole-document rewriting machinery** (861 lines) exists to keep prose tidy.
24. **Scratch state is unbounded**: 22,651 session files, 177 MB.
25. **Eighteen tool adapters, six of which can block a turn.** The documentation is honest
about this; the count is not a problem, the unverified ones are simply not evidence.
## What is good and stays
- Installation: everything checked before anything is touched, content-addressed backups,
edits that never re-serialise a user's configuration, byte-for-byte uninstall (verified in a
sandbox), and hooks that let the turn end on any sisi error.
- The executable contract and the blocking gate with bounded send-backs. It is the one place
where "done" is evidence and not a sentence.
- The check runner (process-group kill on timeout, parallel cap) and the deep tier
(fingerprint freshness, detached runs).
- The trust allowlist for running a project's commands.
- Delivery timing measured from the last message the human typed.
- The product, personal and scratch split; personal data as its own git repository; cycles
that revert exactly.
- Handover of project facts into the project's own documents.
- The transcript evidence layer (`harvest`, `groundtruth`).
- Honesty: `doctor` says "unknown", `sisi rule` says "not enforced", `improve` says "not
measured", library entries say "what a pass does not prove".
- The test suite: fast, green and sandboxed.
- Routing as pure arithmetic over a judged record, with the reviewer drawn from a different
maker than the author.
## Verdict for every module
| Module | Lines | Verdict | Why |
|---|---|---|---|
| `cycle.py` | 2052 | Replace the core | Keep exact revert, the base-version lock and enforced checks; add validation, governance and monitoring; remove showing-driven promotion. |
| `retro.py` | 1899 | Replace | Record per [11.4]; a retro grounded in the unit's record; no strength ladder, no lesson list, no mandatory taxonomies. |
| `adapters.py` | 1626 | Keep | Works and is tested; unverified tools are already labelled. |
| `workers.py` | 1053 | Replace the core | One ledger, worker facts, a delegation contract, candidate cap. Keep discovery and failure classification. |
| `gate.py` | 989 | Rebuild | Around risk profiles; retro only at close; pause; subagents pass. |
| `documents.py` | 861 | Simplify | Keep structure checks; drop the trace regime. |
| `wiring.py` | 757 | Keep | Safe install. |
| `overlay.py` | 729 | Keep | The real promotion mechanism; trim its public commands. |
| `release.py` | 665 | Simplify | Keep release, rollback and scrubbed promote; retire developer mode. |
| `verifiers.py` | 616 | Keep, replace the matcher | Match by the structured tags entries already carry. |
| `hookjson.py` | 551 | Keep | The cost of never rewriting a user's JSON. |
| `harvest.py` | 541 | Keep | Evidence source; add token usage. |
| `cli.py` | 532 | Simplify | Fewer commands. |
| `lifecycle.py` | 445 | Keep | Fold `migrate` into `update`. |
| `scope.py` | 273 | Replace the logic | Scope earned by evidence, not claimed. |
| `routing.py` | 261 | Keep the arithmetic | Feed it facts; remove the vendor table. |
| `design.py` | 257 | Retire | Replaced by a requirement model and a risk note where the risk warrants. |
| `taskset.py` | 255 | Keep for the evaluation harness | Built and never run; it is the source of benchmark cases. |
| `prompt.py` | 255 | Simplify | Relevance only. |
| `hookio.py` | 249 | Keep | |
| `groundtruth.py` | 242 | Keep | Validation by replay needs its commits. |
| `contract.py` | 238 | Extend | The work-unit schema. |
| `delivery.py` | 235 | Keep | Becomes unit telemetry. |
| `verify.py` | 230 | Keep, extend | Five statuses, selection, reuse. |
| `handover.py` | 222 | Keep | Remove the per-prompt notice. |
| `deep.py` | 216 | Keep | |
| `store.py` | 211 | Keep | Add pruning. |
| `rulecmd.py` | 210 | Keep | |
| `pdata.py` | 195 | Keep | |
| `watch.py` | 192 | Keep | |
| `tick.py` | 167 | Simplify | Only what the session can act on. |
| `learn_cli.py` | 162 | Merge | Into the one report. |
| `paths.py` | 143 | Keep | |
| `gitutil.py` | 123 | Keep | |
| `audit.py` | 119 | Retire | Counts lines, judges nothing. |
| `principles.py` | 113 | Merge | One path for owner statements. |
| `scoreboard.py` | 100 | Merge | Into the scorecard, labelled inferred. |
| `escapes.py` | 89 | Merge | Into the scorecard. |
| `trust.py` | 46 | Keep | |
| `__init__.py`, `__main__.py` | 5 | Keep | One source for the version. |
| `done/` (20 recipes) | 626 | Keep | Good checklists; fix how they are found. |
| `verifiers/` (140 entries) | 8596 | Keep | Rank entries that ran here above documentation-only ones. |
| `canon/core.md` | 154 | Rewrite | As the operating policy, in the order work happens. |
| `canon/floors.json` | 7 | Replace | Floors by risk profile and technique, not a self-declared number. |
## Verdict for every command
| Command | Verdict |
|---|---|
| `contract` (init, check, waive, trust, untrust) | Keep; `waive` records a deviation instead of passing |
| `verify` | Keep, extend |
| `gate`, `tick`, `prompt`, `watch` | Keep (hooks); rebuilt as above |
| `rule` | Keep |
| `install`, `uninstall`, `doctor` | Keep |
| `release`, `rollback` | Keep |
| `dev` | Retire |
| `promote` | Keep, simplify |
| `migrate` | Fold into `update` |
| `update`, `export`, `import` | Keep |
| `build-canon`, `canon cost` | Internal; size shown by `doctor` |
| `overlay` | Internal except `revert` |
| `audit` | Retire |
| `retro` | Replace |
| `lessons` | Keep, smaller |
| `backlog`, `improve`, `time`, `scoreboard`, `lessons digest` | Merge into `status` |
| `cycle` | Keep, rebuilt |
| `note`, `propose` | Retire |
| `learn`, `oracle` | Keep |
| `design` | Retire |
| `handover` | Keep |
| `status` | Replace with the one report |
| `verifiers`, `done` | Keep |
| `workers`, `route`, `delegate` | Replace the core |
| `harvest`, `tasks`, `escapes`, `checks` | Internal to the evaluation harness |
| `version`, `help` | Keep |
| New: `unit`, `risk`, `approve` | See `docs/target.md` |
+95
View File
@@ -0,0 +1,95 @@
{
"commit": "ec91e52",
"modules": [
"__init__.py",
"__main__.py",
"adapters.py",
"audit.py",
"cli.py",
"contract.py",
"cycle.py",
"deep.py",
"delivery.py",
"design.py",
"documents.py",
"escapes.py",
"gate.py",
"gitutil.py",
"groundtruth.py",
"handover.py",
"harvest.py",
"hookio.py",
"hookjson.py",
"learn_cli.py",
"lifecycle.py",
"overlay.py",
"paths.py",
"pdata.py",
"principles.py",
"prompt.py",
"release.py",
"retro.py",
"routing.py",
"rulecmd.py",
"scope.py",
"scoreboard.py",
"store.py",
"taskset.py",
"tick.py",
"trust.py",
"verifiers.py",
"verify.py",
"watch.py",
"wiring.py",
"workers.py"
],
"commands": [
"contract",
"verify",
"gate",
"tick",
"prompt",
"rule",
"watch",
"install",
"uninstall",
"doctor",
"release",
"rollback",
"dev",
"promote",
"migrate",
"update",
"export",
"import",
"build-canon",
"canon cost",
"overlay",
"audit",
"retro",
"lessons",
"backlog",
"cycle",
"improve",
"note",
"propose",
"learn",
"design",
"handover",
"oracle",
"status",
"time",
"verifiers",
"done",
"workers",
"route",
"delegate",
"version",
"help",
"harvest",
"tasks",
"escapes",
"checks",
"scoreboard"
]
}