Skip to content

Lean agent-facing text: sminos, devcloud, to-human, the board and execution skills - #645

Merged
SSFSKIM merged 31 commits into
mainfrom
lean-integration
Nov 28, 2026
Merged

SSFSKIM merged 31 commits into
mainfrom
lean-integration

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Five reviewed rewrites of agent-facing text, from the owner's audit of 2026-11-27 ("describe what a tool does; prescribe no process"), merged as one change so each plugin is bumped once. Each branch was reviewed on its own and its findings fixed before this merge.

Branch What it changes Review
lean-sminos-claudemd sminos's four CLAUDE.md files: 55,505 → 3,662 words. The scripts file (44,454 → 1,158) names each trap and points at the docstring or test that states it; six docstrings took a condition the file alone held. two reviews and a reread; 38 misstated invariants fixed by moving to pointers
lean-sminos the sminos skill's description and wording; sminos.py's seat preamble is byte-identical to main's medium
lean-devcloud-tohuman devcloud, to-human and web CLAUDE.md files (to-human 4,380 → 996), the two devcloud skills' descriptions, the message tool's and secrets guard's injected text, output-styles/to-human.md medium; nine dropped conditions restored
lean-board-utility issue-tracker 4,699 → 2,864 words (interim: the ticket board's task CLI replaces it), writing-skills restated around testing by stakes, anthropic-best-practices.md (5,803 words) deleted high; nine findings fixed
lean-execution-review review-code, subagent-driven-execution, test-driven-development and the three executor/reviewer agents medium

Also here: the ALLOWANCE entries of the four files now under the 1,500-word budget are removed (task/CLAUDE.md's stays, its owner's to remove), and the root convention on CLAUDE.md files gains the pointer form for intricate invariants.

Versions: to-human 0.10.0, sminos 1.61.0, devcloud 0.20.0, doperpowers 7.227.0.

Skill descriptions changed here were compared against main's in a control-versus-variant trigger run (Fable and Opus, 5 runs each per prompt); the merge waits for its report.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)

The worker templates were left dense on 2026-07-31 (f9e162f) because
their readers were mid-tier models; the executor has run on opus since
7bb1ae9. What goes has no eval behind it (2a6a40f, daa3fb2): the
executor's numbered job steps, Code Organization, the self-review
checklist, the "always OK to stop" reassurance and the pre-empted
rationalization; the reviewer's upstream quality checklist, the praise
line and the Strengths section (the controller, not the executor, reads
the review). What stays is the contract and the validated rules: spec
code blocks are decisions, gaps are resolved and reported, focused tests
then one full run, pristine output (62b1682), no reviewer dispatch with
its reason (ebc6ffc), covering tests re-run after a fix, the RED/GREEN
evidence the reviewer reads, the report file and return shape.

"ask now" becomes "return NEEDS_CONTEXT now": the executor is detached
and asks only through its return. A spec-mandated defect is adjudicated
by the controller against the spec's intent, as SDE has it, not by the
human. The Codex port of task-reviewer moves with its source.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…7 words)

The file restated the modules' docblocks clause for clause (message.tsx,
reminder.tsx, the view's whole behavior as one 1,648-word paragraph). It
now holds what a session cannot get from the code: where the plugin sits
and why, one line per module, the contracts other programs read
(MAWS_NATIVE_TO_HUMAN by four modules, maws-surface.json, client anchors,
$.state and the folds file, fold-label-cases.json's pin), the engine
traps, and the tests.

Facts whose only copy was here moved to the docblock that owns them:
the headless stdout shape of the made-up response (FINAL_ANSWER), the
haiku empty-response nudge and the steer still waking the session
(registerMessage), installations before 0.9.0 stepping aside for any
value (MAWS_DRAWS_FROM), and a client's thought rows as working record
(the AssistantMessage handler). The audit numbers behind REMINDER are in
5edc563's body; the 0.7.4 id history is in git.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…er pins once

plan-executor: the "a review loop owns them" Finishing branch, the
ticket-body cases, the board-service Closes caveat and the board-write
ban served only the dormant board dispatch (architect-worker-protocol.md
is the one brief that carried them); execspec's attended dispatch passes
spec, branch and report file. The Unresolved Review Findings section
stays, now for findings the executor recorded rather than fixed, the one
durable home of the gitignored ledger's recorded findings. Repo facts is
kept, shortened. Its Mode points at SDE's Model selection for the
workers' pins instead of restating them.

SDE: Model selection is the one home in this area of the workers' pins,
with the owner's reason (frontier work is the design and the spec) and
the sonnet override; the restated final-review paragraph and BLOCKED
ladder go to their own sections. The executor's return shape is stated
only in its definition; SDE points there (the two had drifted: SDE
omitted the report path and the 15-line cap). Steps 5 and 6 are tightened
with every clause kept; the triage wording validated in bc8df4e is
unchanged. The todo bookkeeping goes, and incidents named in the text
(ci-kit #217, the 42k-char dispatch) are kept as reasons only.

Test pins move with the text; pins that held only the removed board
wording are dropped.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ting-good-tests sheds its restatements

TDD stays a soft gate: red-first was measured at sonnet 0/5 without the
skill and 5/5 with (85cc386); the description now says what the skill
holds and keeps its situation. "Set it aside" was a mandated redo the
micro-eval never measured; it is restated as the reason (tests fitted to
existing code never show they can fail) with the two ways to meet it.

writing-good-tests.md: the Quick reference table and Warning signs
restated the rules above them; the three items they alone carried
(expected values by hand, mock below the method, the mutation check)
stay as a short list. The 27c01dd micro-eval found the control already
at zero failures on the mock rules, so nothing validated is lost.

isolated-workspace.md: the inherited "ask before creating one" consent
step could not fire for a detached executor; it becomes the fact that
the human partner's instructions may say where checkouts go.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ine has one home

"Models and efforts are pinned per level; you never choose them" sat
beside panel.md's and the workflow's per-lane overrides (43df9f3; the
benchmark passes them, and the README tells a gateway-less install to
use them). Both now say one thing: each level pins its benchmarked
models, and a pin changes on the human's instruction through those
overrides. The workflow's ladder comment says the same.

panel.md's "Working with findings" restated the four-way triage stated
in subagent-driven-execution's step 6 (the copy validated in bc8df4e)
and in the owner's global instructions; it keeps the one reason that
belongs to review in general (a reviewer finds something on every pass,
so its verdict is not the stop) and points at step 6.

The deriver, verifier and repair prompts lose their capitals; the
verifier's one-verdict-per-candidate rule is already checked in code with
a repair round. The description is reframed as what the skill holds.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…the session

The live body was half dispatch-era process pressing on attended sessions:
a MUST gate pasted into consumer CLAUDE.md files, a registration ritual, a
time-gated deferral mandate, a writer table that reserved technical edits
for the human, a workflow route for every ticket. It now states what the
board is, where it lives, its states and what each edge requires, the
commands, what may surprise a session, and four conventions with their
reasons (4,699 words to 2,550).

- The Board Write Hard Gate block is gone, and the skill no longer asks
  repositories to paste it: one paragraph says what the scripts keep and
  what a raw `gh issue edit` bypasses (lint reports it, a transition
  repairs it). Introduced in 8c9f9f6 with no incident behind it.
- The scripts are unchanged (their lane-era refusals are ticket #638):
  the build-edge pin, the skeleton refusal and demotion, the escalation
  count and the surface refusal are each stated as a fact about the
  command.
- Deferral names both homes, told apart by the residue: later work goes
  on the board with its lineage, an accepted flaw to the tech-debt
  tracker, for the one reason that a decision held only in a conversation
  is lost. The "THE MOMENT" time gate (27f74e4, an attended session on
  the July model; d79c861 for workers) is restated as that reason.
- Seam search and the register-time body (8467bbd: seven tickets on one
  SQL function reverting each other, registered by unattended workers)
  keep their reasons and lose the triage procedure and the third-ticket
  threshold.
- The route through brainstorming, execspec, plan-executor and review-code
  is cut; "runs the work as it would without a ticket" carries the
  dormancy ruling's meaning.
- The hosted-board setup lives in the two templates' headers; the v6 to v7
  migration row is dropped (no v6 board remains).
- Dormant machinery is one pointer: everything under references/ but the
  two hosted templates, listed by the ruling's spec. The content test's
  pins on the dormant file list become a check that SKILL.md names no
  dormant reference file; pins on capitals and headings move to the
  facts' new wording.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
… CLAUDE.md files to contracts and traps

vm/SKILL.md "Its end" (580 -> 348 words): ownership, what a kept and a
leased VM cost and when it goes, the notices a thread gets and where
copies land, lease/down/ls. The delivery chain's fallbacks and the
"from a VM made from now on" caveats are cut; the chain stays in
devcloud/CLAUDE.md and notices.py. The when-to-use paragraph becomes
the facts behind it (boot time, hourly price, no GUI, no browser, no
unpushed files).

devenv/SKILL.md: "prove it against a fresh clone" carries its reason
in place of the ban; the derivable closing lines go.

Descriptions reframed as what the skill holds, for the situations they
already named.

devcloud/CLAUDE.md (1,087 -> 542) and web/CLAUDE.md (1,113 -> 755):
mechanism that the driver's, the mod's and notices.py's docstrings
already hold is cut; each reader-pinned contract and trap stays with
its reason.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…s dispatch carries it

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ooks like a handle

A Bash heredoc quoting the guard's own handle examples drew the note,
whose reasons (superseded, removed, another session's) fit none of them.
The note now says what holds in every case: nothing this session holds
stands for the text, and names the look-alike case beside the others.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
- Spawn preamble: a seat on an enrolled machine already reads say's tags
  and its stdin form in the session-start guide, so that part of the
  preamble is rendered only where no guide runs (render_preamble's
  `guided`, enrollment() as the guide's own gate). Rendered: 514 words
  unenrolled, 320 enrolled. The @ALL line, frame provenance, the
  machine's notice and the channel reply lines stay for every seat.
  "Read the project chat first" stays, now with its reason (untagged
  news wakes no one; the project-log design relies on a new seat
  reading it). The status line is described, no longer a duty (no eval
  behind "keep current"); final: true, the to-human tool's own
  contract, goes.
- SKILL.md: the description reframed as an offer, its situations kept;
  "Never drop a frame for its id" cut (cae1277 removed the teaching
  it negated; the fact before it carries the reason); the human
  paragraph states what sminos records, naming both message tools;
  the board pointer restated so it holds without doperpowers; the
  skip-permissions rule kept with its reason (RED/GREEN evidence of
  2026-07, not re-run), the settle verbs set out before it; resume's
  advice stated as its fact.
- setup.md: the CLI is on PATH through bin/ (since d18b350), not the
  scripts path "not on PATH"; the manager skill names it so too.
- Tests: the preamble pins move with the text; the merge-base
  comparisons fill this tree's template (they compare the filling);
  a check that the guided form drops only the guide's lines.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…xplanatory style

"Be clear and educational … you may exceed typical length constraints"
arrived verbatim with the Insights block (3ec1365), no eval or ruling of
the owner's touched it, and it pulls against the style's own reporting
threshold. The block's own taste (codebase-specific, in the conversation,
riding a due message) stays.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…udit learned

The doctrine's validated core is untouched: the opening section, the form
table with its two rules, and Last resort. Two teachings change by the
owner's rulings of 2026-11-28, and five principles are added.

- Descriptions: a description says what the skill holds and the
  situations it serves, as an offer. "Describe ONLY when to use it" rested
  on one observation (2a19be0, upstream, 2025-12): a description that
  summarized a procedure was followed in place of the body. That narrow
  rule stays with its reason (steps stay out); the wider "say when, never
  what" had nothing behind it and made a trigger read as a command.
- Testing: by stakes. A cut of duplicate, derivable, dead or wrong text
  ships on review; new guidance answers an observed or structural
  failure, shown by a control run; removing or weakening a rule with an
  incident or an eval behind it takes a control-versus-variant run first,
  or the rule stays with its reason; a rule against the reader's
  immediate goal gets a pressure run. This replaces "Baseline first,
  always", the TDD framing and "test each skill before starting the
  next". The control-run method (cbc8273) is kept as the technique.
- Scope: a one-off brief for a subagent is covered by the opening section
  alone; testing applies to text that persists.
- Added, as principles: the line is what the reader can derive against
  what it cannot; where a text loads decides its cost; text that should
  not bind is removed or moved behind an on-demand read, since softening
  it does not stop it steering; a kept rule carries its reason so it can
  be retired, the incident going to the commit and the spec; one home per
  rule.
- Common mistakes (a repeat of three earlier passages), the skill-type
  taxonomy and the section-arc advice are cut.

Supporting files:
- anthropic-best-practices.md (5,803 words, vendored 2025-10-17) is
  replaced by a link to the live page and one sentence on where this
  skill departs from it. The copy went stale silently, and SKILL.md
  "governed" over a guide that was closer to the stance on descriptions
  than it was.
- testing-skills-with-subagents.md (890 to 629 words): the overview that
  repeated SKILL.md is gone; the scenario half is one example on a
  structural rule (an irreversible migration) in place of the TDD
  delete-your-code quiz, with the pressure table; asking your human
  partner is no longer scored as a failure (a scenario that tests the
  choice makes them unreachable in its setup). The Refine section is kept
  whole.
- graphviz-conventions.dot loses the red STOP/NEVER octagon as a standard
  node type.

docs/whats-inside.md follows the description.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ndings

Both were judged lean. query-transcript's description is reframed as an
offer (what the command does, then the questions it serves), and "say so
when you relay it" goes: the sentence before it already says what the
answer is. transcribing-meeting-recordings loses the two copies of a note
about the harness blocking `sleep`, which a session knows of its own
harness, and its hand-off sentence no longer names a "worker" that
organizing-sprints does not have.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
The five CLAUDE.md files of the sminos plugin went from 54,216 words to
4,388: skills/sminos/scripts 43,396 -> 1,500, hooks/mods 6,045 -> 1,363,
skills/manager/scripts 3,176 -> 662, hooks 822 -> 409, the plugin root
777 -> 454. Each now holds what the directory is, a module map, the
invariants that span modules (each with its reason) and the commands a
session cannot discover.

Every passage cut was checked against the module docstrings, the code,
the tests and the cited specs and plans. Facts whose only copy was the
CLAUDE.md moved into the docstring or comment that owns them in this
commit (about 30, across sminos.py, sminos_audience, _channels, _daemon,
_on, _profile, _threads, _uplink, _wake, the manager modules, the mods'
ask/bridge/bridge-place headers and tests/mods/bridge-seat-kit.ts).
Three stale docstrings were corrected to the code (sminos_wake's pointer
to the wake, sminos_on's flag forms, _HELD_PASSES's channel key), and
the mods README's pointers into the old scripts file now name
sminos_sheet.py. Milestone narrative and measurements went nowhere new:
the plans, specs, TECH-DEBT.md and git hold them.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…n both bindings

The description opens with what the skill holds (the board, its states,
commands, refusals and conventions) and keeps the situations it named. The
register row says what holds on both bindings: without --body-file there
is no statement of work (gh seeds a skeleton, the board service stores
none), an explicit backlog state is refused and the default birth becomes
needs-info.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ird open ticket on one body)

The tripwire came from an observed board (8467bbd); the rewrite keeps the
rule and its number and drops only the triage procedure around it.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…w, kept-code RED

From a medium review of the branch: the executor returns BLOCKED, not
NEEDS_CONTEXT, for a prerequisite that is not information, and may still
return on an investigation that has stalled; its RED slot covers the
kept-code path TDD now allows; plan-executor reads and applies repo facts
before building, and closes only the issue the work resolves; review-code
names the direct dispatch's model override beside the workflow's, and
panel.md keeps the re-review after a substantial fix wave. SDE's and TDD's
descriptions stop summarizing their steps (writing-skills: a summary in
the description is followed in place of the body). The new test pins are
single-line, since grep -F reads a newline as alternatives.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…xt had dropped

The vm skill's notices say which VMs send them (sminos installed and cut
over), that a held thread is not woken, that a channel copy prompts no
one and follows the host's own view of the pools, that channel show is
what this Mac found at list price, that lease end starts the departure,
and that only a kept/leased change makes lease wait. to-human/CLAUDE.md
keeps endsOnFinal's condition, scopes rowKey to kept-row matching, and
names the reload check's no-model exception; web/CLAUDE.md keeps search
as a per-task opt-in.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
The design-chain rewrite retired brainstorming's gate as a name and
execspec's numbered steps; SDE's five uses of the gate now spell out a
product, taste, or substantive design decision the spec does not cover
(living-spec.md's wording), and its Integration line points at
execspec's Executing section.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
A high-rung review found places where the rewrite lost a condition the
scripts enforce, or stated a cost model too broadly. Each is restored as a
fact in a clause, checked against scripts/.

issue-tracker SKILL.md:
- board-show.sh prints the statement of work and the timeline on the api
  binding only; the gh arm prints the node JSON without body or comments.
- The re-pin (in-review to in-review with a note and a real pin) and the
  rebuild are back, with the two moves that reuse the recorded PR.
- The build edge needs --branch unless one is recorded; the design claim
  records none, so the pinned handoff to ready-for-implementer fails
  without it on either binding.
- --all-repos is api only (exit 2 on gh).
- The consolidation threshold counts parked tickets and excludes deferred
  and closed ones.
- surfaces.md is read from the remote default branch.
- A bodyless env-issue keeps its needs-human default; the needs-info
  demotion is an ordinary ticket's.
From the reread of Commands and States against the scripts: board-list's
tags are gh only; board-lint on api checks only local bindings; a leaf has
no edge from in-design to in-review or done, and an epic's are refused
while a child is open; deferred has no edge to an in-flight state; an
epic's return resets the escalation count (the text said "ignores"; the
pin moves); --repair-path is the api binding's; board-surface --add takes
only a declared name; board-edge runs the epic bookkeeping; board-map
--serve opens a browser.

writing-skills:
- The cost model distinguishes what is always in context (a skill's
  description, a loaded tool's description, a root CLAUDE.md) from what is
  scoped (a nested CLAUDE.md, an output style, a deferred tool's schema).
- The pressure scenario runs against a disposable fixture or a recording
  stand-in, since a control run with real access would perform the step.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
Review found invariants that, squeezed into a clause, misstated the code:
- words: an own-operator receipt qualifies an event for the endpoint's
  ask; it does not make it the human's words (words_route).
- reach: deliver_reach grants the permit; a channel's verdict is kept for
  the daemon's channel_pass, a project's carried out in Link.on_reach.
  An unknown audience leaves a delivery owed and fails an append, in a
  hub project only; the no-ask case is named.
- migrate skips main's lock-free early dispatches (also in its docstring).
- mods: the poster rule covers the stream's posts; waitAtFence's /holder
  calls stay in the turn.step dispatch on purpose. bridge.tsx's module
  list is now in real dependency order, checked against the imports.
- manager: CI's SMINOS_PART=suites-a form; owner provenance points at
  OwnerWords.corroborates instead of paraphrasing it.
The reread also corrected: the protected-folder rule (reads only from
within the same folder), the policy writer (set_policy; add_owner adds
owners), the thread lock order (claim_holds, then claims_held), the
host-form say exit-2 contract, and the test runner's parts.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
Two reviews found 38 restated invariants that were false or missing a
condition: this code's rules are too conditional to hold in a clause.
The five files now name the area that bites, say why to stop, and point
at the function, docstring or test that states the rule; maps and
commands stay, checked literally (the RL10 replay as run-sminos-tests.sh
invokes it, which was run; SMINOS_PART forms from ci-kit.yml; the setup
guide's full path). No quantifier claim about behavior remains.

Docstrings that took the missing condition: record_files (*.reply.json),
migrate (record's bounded migration and the dispatches that skip it),
bridge.tsx's module list (bridge-receipts reads the session id),
bridge-reads.tsx (which fields are left out; the rest passes uninspected),
manager_ledger.apply (what a refusal names and leaves unchanged), and
manager.py's module docstring (reconciliation writes, local sessions).

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
main added the Task Board's paragraphs to three sminos CLAUDE.md files. Their
facts are stated in sminos_tasks.py's module docstring and smns-tasks.sh's
header, so each file takes one pointer entry in the form the rest now has.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
The enrolled-only form assumed a seat on an enrolled machine reads the
session-start guide. It may not: the hook prints nothing when neither the
seat nor its engine record shows within its startup wait, and a devcloud
VM's profile can disable the plugin while its CLI still runs, so such a
seat would get neither copy of say's addressing and stdin lines. About
190 words once per seat is not worth a seat that cannot address anyone.

render_preamble loses `guided` and is the merge base's again; the
template loses its marked-off block, the @ALL line rejoins the tags
paragraph, and the leading-tag rule stays stated there. The wording
changes stand (the chat read first with its reason, the status line
described, final: true gone). The merge-base comparisons still fill
this tree's template, since its words moved.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…m rule, four plugins bumped

Three sminos CLAUDE.md files and to-human's are under the 1,500-word budget,
so their ALLOWANCE entries go (task/CLAUDE.md's stays, its owner's to remove).
The root convention on CLAUDE.md files gains the pointer form for intricate
invariants. to-human 0.10.0, sminos 1.61.0, devcloud 0.20.0, doperpowers 7.227.0.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T03:57:04.725884Z f274132 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 224ec44 into main Nov 28, 2026
27 checks passed
@SSFSKIM
SSFSKIM deleted the lean-integration branch November 28, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant