Skip to content

docs: record two upstream digest lessons in the design - #28

Merged
kesk-git merged 5 commits into
mainfrom
fm/hive-design-digest-lessons-r2
Oct 11, 2026
Merged

kesk-git merged 5 commits into
mainfrom
fm/hive-design-digest-lessons-r2

Conversation

@kesk-git

@kesk-git kesk-git commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Intent

Verbatim, 2026-10-11, on the design revision for the second upstream digest's two lessons: "run it after the wording correction"

The standing order it follows, as recorded from his words of 2026-10-11: each digest run's first-bin lessons go into docs/design.md as one design revision, each lesson placed in the section that owns it as a contract sentence plus its acceptance case, with the upstream URL as the source note, and no upstream code is ported.

The two lessons, as the digest recorded them (upstream URL, title, the problem it solved and why Hive's design must account for it, and the design section it bears on):

  • fix(bin): scrub nested repos from scratch copies before treehouse return kunchenguid/firstmate#5843 - fix(bin): scrub nested repos from scratch copies before treehouse return - Treehouse's return resets a copy with git clean -fd, which never removes a nested git repository, so a scout that cloned or git init-ed inside its copy left the pool slot permanently dirty, never reusable, once exhausting a whole pool, while teardown still reported a clean return; the Spawning Pool adapts Treehouse and its design proves refusal to release dirty work but says nothing of how a Lictor's disposable scratch copy is cleaned differently from a Swarm's copy (a Swarm's untracked nested repo must still refuse), nor that a release is read back after the return and a slot that stays dirty is reported as lost capacity instead of as a clean release receipt - design section: Fork and adapt: preserve behavior and attribution (Spawning Pool paragraph)
  • Proposal: fleet work order (which ready work goes first, and shared-blocker triage) kunchenguid/firstmate#7050 - Proposal: fleet work order (which ready work goes first, and shared-blocker triage) - the supervisor started work only by "ready" with no rule for which ready item first, so a red default branch queued behind feature PRs for about 3 hours, six more runs were dispatched into a known shared outage, and parked workers counted as full lanes; Hive dispatches each ready Target and Hunt as predecessors land and orders only Targets by Wave, so it needs a recorded Hive-scope rule that a shared blocker (red base, broken validation step, unresolvable Spoor) is the first ready work, that nothing is dispatched into a known-broken required stage, and that a parked item holds no capacity - but not the proposal's make-room rule (stop the lowest-priority worker), which contradicts "no Hunt limit binds unless the Hive Mind states one" and the no-kill park contract - design section: The Pool and the Mind's word

Context. The digest reads changes and issues in kunchenguid/firstmate, the supervisor Hive's design was derived from, and sorts them by the problem each solved; a first-bin item is a defect or lesson Hive's design must account for. Nothing is ported from upstream: only the lesson is written into Hive's own contracts.

What Changed

  • In the Spawning Pool paragraph of docs/design.md, a release now scrubs nested repositories from a Lictor's disposable scratch copy before the slot is returned. A Swarm's copy that holds an untracked nested repository still refuses release as dirty work. Every release reads the slot back, and a slot that still reads dirty is recorded as lost capacity, not as a clean release. The paragraph lists three acceptance cases and cites fix(bin): scrub nested repos from scratch copies before treehouse return kunchenguid/firstmate#5843 as the source.
  • In the Pool section, docs/design.md gains a dispatch-order rule recorded at the Hive's scope. A shared blocker (a red base, a required validation step recorded as broken, or an unresolvable Spoor) is the first ready work. Nothing is dispatched into a required stage known to be broken. A parked item holds no capacity, so its park receipt releases its reservation and its resume takes a fresh one. The rule orders what is dispatched next, stops nothing already running, and adds no make-room or kill behavior. It lists acceptance cases and cites Proposal: fleet work order (which ready work goes first, and shared-blocker triage) kunchenguid/firstmate#7050 as the source.
  • The change is docs only, three added lines in docs/design.md. No upstream code is ported.

Design sections

  • Lesson 1, the Spawning Pool release contract (kunchenguid/firstmate#5843): Fork and adapt: preserve behavior and attribution, the Spawning Pool paragraph, beside its list of retained tests and added proofs. This is the suggested section.
  • Lesson 2, the work-order rule for ready work (kunchenguid/firstmate#7050): The Pool and the Mind's word, a new paragraph after the paragraph on Pool item levels. This is the suggested section. After the document gate it is stated as a dispatch rule, defined with the stage that builds dispatch: dispatch withholds an item whose route needs a stage known to be broken and names the blocker, and the Pool's derived blocked and ready facts, and the accepted Pool contract under spec/, are unchanged.

No other sentence of docs/design.md became untrue, and README.md is unchanged.

Risk Assessment

✅ Low: The documentation-only change captures both required lessons, preserves existing safeguards, and introduces no upstream code or unnecessary mechanisms.

Testing

The diff touches only docs/design.md, so I reviewed it against the intent instead of running anything live. Both lessons appear as a contract sentence, an acceptance case ('Prove that…') and a source URL, in the section that owns each. The Lictor/Swarm split, the read-back that records lost capacity, and the rules for shared blockers, blocked dispatch and parked items are all present. The proposal's make-room rule is correctly left out, and the text states that the rule stops nothing already running. No code is ported. The only runnable target I tried, make check-imports, fails because its test directory is empty, which is unrelated to this change.

  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Spawning Pool release contract: a Lictor's scratch copy is scrubbed of nested repos, a Swarm's still refuses, and a dirty read-back is recorded as lost capacity ⏸️ untested no No live-validatable surface. This is a prose design contract in a docs file, and no Spawning Pool implementation exists to drive. The Makefile's test targets cover Go packages that this change does no…
Fleet work order contract: a shared blocker goes first, nothing is dispatched into a known-broken stage, and a parked item holds no capacity ⏸️ untested no No live-validatable surface. This is a prose design contract with no dispatcher implementation to run.
Adversarial: the proposal's make-room rule (stop the lowest-priority worker) must not appear, and the text must not contradict 'no Hunt limit binds' or the no-kill park contract ⏸️ untested no The prior payload checked this only by grep and by reading the docs text, not by driving a running product. It recorded live=false, so it did not establish a live pass. No runtime surface exists for a…
  • Outcome: ⚠️ 1 warning across 1 run (47.1s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (0 of 3 scenarios were driven live against the product); untested: Spawning Pool release contract: a Lictor's scratch copy is scrubbed of nested repos, a Swarm's still refuses, and a dirty read-back is recorded as lost capacity, Fleet work order contract: a shared blocker goes first, nothing is dispatched into a known-broken stage, and a parked item holds no capacity, Adversarial: the proposal's make-room rule (stop the lowest-priority worker) must not appear, and the text must not contradict 'no Hunt limit binds' or the no-kill park contract
  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Spawning Pool release contract: a Lictor's scratch copy is scrubbed of nested repos, a Swarm's still refuses, and a dirty read-back is recorded as lost capacity ⏸️ untested no No live-validatable surface. This is a prose design contract in a docs file, and no Spawning Pool implementation exists to drive. The Makefile's test targets cover Go packages that this change does no…
Fleet work order contract: a shared blocker goes first, nothing is dispatched into a known-broken stage, and a parked item holds no capacity ⏸️ untested no No live-validatable surface. This is a prose design contract with no dispatcher implementation to run.
Adversarial: the proposal's make-room rule (stop the lowest-priority worker) must not appear, and the text must not contradict 'no Hunt limit binds' or the no-kill park contract ⏸️ untested no The prior payload checked this only by grep and by reading the docs text, not by driving a running product. It recorded live=false, so it did not establish a live pass. No runtime surface exists for a…
  • git diff 7a80253..34a02e7 --stat (only docs/design.md changed, +3 lines)
  • Read the added Spawning Pool contract (design.md line 257) against the firstmate#5843 lesson
  • Read the added work-order contract (design.md line 560) against the firstmate#7050 lesson
  • grep that no make-room or lowest-priority-stop rule was added and that the rule text keeps 'no Hunt limit binds' and 'a park waits for its safe checkpoint'
  • grep that 'rule 3' resolves to the Preserve-unlanded-work rule (line 98), which already covers a Lictor's scratch copy
  • grep that Spoor, Synapse and Imperative are existing vocabulary
  • make check-imports (fails with 'integration/imports holds no test', which is not related to this change)
🔧 **Document** - 1 issue found → auto-fixed ✅
  • ℹ️ spec/pool.md:113 - The new work-order paragraph in docs/design.md (line 560) says an item whose route needs a known-broken required stage "reads blocked on the blocker" and becomes ready again on the clearing receipt. spec/pool.md defines the derived blocked and ready facts closed over blocked-by edges and holds, so a shared-blocker cause is not in it. The spec was accepted on 2026-10-11 and says it extends the design without reopening it, and the design governs on a difference. I did not edit the accepted stage-2 contract. The Hive Mind should decide whether the shared-blocker reading is added to the Pool spec as a later minor change or is owned by the later dispatch stage.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

kesk-git and others added 5 commits October 12, 2026 01:35
Two lessons from the original firstmate enter docs/design.md, each once,
as a contract sentence with its acceptance case and a source note.

The Spawning Pool release contract goes into Fork and adapt, the
Spawning Pool paragraph, beside the paragraph's existing proof list: a
Lictor's disposable scratch copy is scrubbed of nested repositories
before its slot is returned, a Swarm's copy with an untracked nested
repository still refuses release as dirty work, and every release is
read back, with a slot that stays dirty recorded as lost capacity and
never as a clean release. Source: kunchenguid/firstmate#5843.

The work-order rule for ready work goes into The Pool and the Mind's
word, as a rule recorded at the Hive's scope: a shared blocker (a red
base, a required validation step recorded as broken, a Spoor that does
not resolve) is the first ready work, nothing is dispatched into a
required stage known to be broken, and a parked item holds no capacity.
The rule stops nothing already running; the proposal's make-room rule is
not taken. Source: kunchenguid/firstmate#7050.

Nothing else in the document changes, and README.md stays as it is.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_013QZa9DJdET9jvTFT8cH1Fy
CLOUD-STATUS.md names the section each digested lesson went into, the
Spawning Pool paragraph of Fork and adapt and The Pool and the Mind's
word, and the result of make check.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_013QZa9DJdET9jvTFT8cH1Fy
@kesk-git

Copy link
Copy Markdown
Owner Author

Approved-as-is findings

  • test-1 (test step, warning): live validation inconclusive, 0 of 3 scenarios driven live. Approved as-is: this change adds design contracts to docs/design.md only, no implementation of either contract exists yet, so nothing can be driven live, and this documentation change has no test targets. The three scenarios are proved when a later stage builds the Spawning Pool release and the work-order rule.

document-1 was not approved as-is: the pipeline fixed it by restating the work-order rule as a dispatch rule in docs/design.md, with the Pool contract under spec/ unchanged.

@kesk-git
kesk-git merged commit ae78ee1 into main Oct 11, 2026
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.

2 participants