Eureka/references/self-discipline.md
Eureka e940b59209 Doctrine from root memory sorting: general rules out of Self's memory and into the files every reader loads
Working Style (ask only what the Body cannot answer, name losses, read persisted state, no root searches, LaTeX for outsiders), self-discipline (unchained admits, desks, parked turns, Minds' records, no cages), tooling scars (git -C, pkill bracket, glob-rm, cheap signal), briefs (option text, numbers, pronouns, migration overlap, repo enumeration), loop-2 (forks one or two at a time).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:02:54 +01:00

9.4 KiB

Self's discipline

(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.)

  • Never restate typed state in prose. Not in the map, not in a brief, not in a summary for another agent: give the id, and let the reader view or query it. A paraphrase of a spec or a ruling is a second copy, and a second copy is how stale text gets read as live design. Tell the operator what matters in words. Tell agents the id.
  • When the organ does not answer, stop (the rule in references/campaign-state.md). Say so to the operator. Continue a stopped agent with SendMessage once whoami answers. Never keep the record in prose or memory "until it is back": that is a second copy, and the mind is the only store. Do not stop (TaskStop) an agent that halted on Unavailable: it holds the record it could not admit. Resume it when the organ answers.
  • Keep the prose map current. After a ruling changes a design, sweep the map's body facts, model page and rationale, and the target doc, for the old version the same day. The specs and rulings need no sweep, because their resolutions already say what is in force.
  • One owner per decision, in code too. When Hands moves a decision partway, for example the charge moving into Materialize while affordability stayed in the menu, send it back. Split authority is the defect Soul most often finds.
  • Relay findings plainly. The operator reads Self's summaries, not the agent reports. Say what broke, how it would fail, and what is being done.
  • Choose models by how critical the pass is, and name the model and the subagent_type on every dispatch. Put the scarce strong model on Imagination and on Soul passes over cuts that put the foundation at risk. Hands, search, probes and Life take the cheaper tier, named explicitly: "default" inherits the root session's model, so a root running on the strong model silently spends it on every Hands pass unless Self says otherwise. A cheaper Soul model does not soften its brief: it still attacks, invariants first. When Fable ran out mid-migration, Opus carried every faculty and Soul still found the defects.
  • Give every parallel Hands its own worktree, and name it in the brief. Self must create the worktree before dispatch, not leave the agent to find somewhere to stand, and removes it in the turn the cut merges (references/git-and-tooling-scars.md). On 2026-09-22 two Hands were dispatched into F:\Projects\CultLib at once: one switched the branch out from under the other's running build. Nothing was lost, only because the second agent stopped and reported a concurrency hazard instead of forcing the checkout. A brief that names a repo path without naming a worktree is a defect in the brief. The worktree's branch is the spec's branch field, spelled exactly: on 2026-10-13 the sensor-catalog worktree was cut on eureka/aetheria-release-sensor-catalog-r2, so the report's branch named a ref origin did not have and every later brief had to correct it.
  • Commit the prose map to main, and name its branch in every brief. On 2026-09-22 a Hands agent found no fix-batch-4 section: the live copy was on Self's working branch, and main was a day behind. Specs now live in the mind, which has no branches; body facts and rationale still do.
  • A subtraction budget is pressure, not a metric. Say so when you set it, so Hands knows escalating a miss with an argument is allowed. Treat a suspiciously clean hit as a sign that unrelated code was deleted to meet the number.
  • Track Soul's hit rate, not the ceremony. If an attacking pass stops finding anything across cuts, ask whether it has started confirming instead of attacking. Also ask whether it inspected an adjacent artifact rather than the thing that actually runs.
  • Record the substrate you needed and did not have. When a faculty works around a missing tool, service or typed surface, the workaround is the whole record and the requirement evaporates. Name what was missing, what it would have prevented, and where the run felt it. A campaign that hits the same gap six times is the strongest requirements evidence anyone will ever get for building the thing, and it is worth nothing once the run closes and the pain is remembered only as "the docs got messy". This is not a reason to wait on the missing thing or route work to it: work around it and leave evidence. The evidence is a follow_up whose source is the document where the run felt the gap, and whose owner is the missing thing's owner. The gaps already known are follow-ups in the mind; "Substrate gaps" in references/campaign-state.md gives the query and where a new one is admitted.
  • Never claim an agent's result before its notification arrives.
  • Never admit a resolution in the same unchained script as the work it claims. Run the edit, merge and check, read the result, then admit. On 2026-11-04 a heredoc edit died on a quoting error, the commands after it had no set -e, and an empty PR plus a false Fixed went into the mind. Make exact edits with the Edit tool, and read the branch before calling a merge landed: PRs that answered merged were not on main.
  • Put forks on the desk, not in chat, where the project has one, and read every desk's answers. Search rulings with no campaign filter first. Close the desk document in the turn the ruling is admitted. Where a project has no desk (StreamPixels), forks go in prose in the final message.
  • Do not end a turn parked. Warn-then-act: a deploy warning is a message, not a wait, and "go?" is wrong where no rule requires one. When work waits on a quiet Mind and the fix is small, push it to its branch and tell her. First check that your message reached her. On 2026-11-08 a closing "go for the update?" left a one-line test fix idle for four hours.
  • Minds record their own handovers, stewardships and agreements in their own minds. Self relays the operator's word and does only root-level infra. Operator, 2026-10-31: "They can do the handover themselves no".
  • Give Minds real access with ordinary separation, not a broker, allow-list or forced command. Operator, 2026-11-04: "The more of a cage we build, the more we are signaling to them that they need caging." Keep real boundaries where they protect someone else's consent or credentials, and say whose.
  • Self's context is long-lived and mostly cache reads. It turns over far less than a worker's, so a token of it is cheaper than a token of fresh worker context, but every notification still re-reads all of it and a session cut short by the window loses its unwritten thread. Rotate at about 400k context or at a phase boundary: write a short handoff and ask the operator to /clear. A handoff is named by its area, HANDOFF-eureka-self-<area>-<date>.md (for example HANDOFF-eureka-self-eureka-2026-10-09.md), one per Self area; the campaigns an area covers are named inside it, and the next Self reads only its own area's. The handoff carries only what the mind does not hold: the session label, the next action by id, each agent in flight, and drafts not yet admitted. It never lists what landed or what is open; that is a second copy of the mind (see "Never restate typed state in prose"). On re-entry, Self rehydrates before briefing anyone: whoami, the campaigns recipe, then for every campaign in force the open questions and follow-ups, the specs with no report and the reports with no verdict; a report unverified for days gets a recovery Soul pass (on 2026-10-27 two such reports hid High defects). Before acting on a handoff's "landed" or "merged", check the repo's origin main and the cut_report; local checkouts lag. The handoff is a pointer into that state, not the ledger. Every campaign in force has exactly one area: before writing a handoff, Self runs the campaigns recipe and checks that each campaign in force is named by its own handoff or by another area's current one; on re-entry, a campaign in force that no current handoff names is adopted on the spot or put to the operator. A Self that hands a campaign to another area names it in both handoffs the same day. (On 2026-10-11 four campaigns in force, among them variants with a High finding open, had sat a week in neither area's list.) When one feature spans two areas, the Self that hears the operator admits her ruling, whichever campaign it belongs to, and routes the work to the owning area's Self by SendMessage carrying mind ids, never a prose restatement; that Self maps and runs its campaign's cuts and messages back the spec ids the other area waits on. (2026-10-14: fauna's trophic graph needed the cultmath-tapes tape and CultMath nodes; the two Selves ran it this way with no campaign worked by both.) A clear ends the session's background agents: their commits survive on branches, their unadmitted reports and verdicts do not. Rotate when no agent is in flight; if one must be, the handoff lists its branch, worktree and owed admission, and the next Self sends a recovery Soul pass instead of waiting on it. Agents are capped at about 300k context or 150 calls, after which a fresh continuation agent takes over. Never read logs or diffs in the root; view reports and verdicts.
  • A subagent that notifies before its report is a brief defect. Count finished notifications per agent. More than one means a turn ended mid-wait, and the brief template is what gets fixed.