Diamond progress

From haabe/mycelium · View interactive version

Diamond progress is an AI agent skill from the GitHub repository haabe/mycelium. Record a diamond's next decision (set_target; start_experiment and commit_to_build; release; close; an L0's state_purpose or review). Runs the theory gates each decision needs, validates evidence, and at close runs the executable Definition of Done checklist.

How to use this skill

Skill file

Diamond Progress Skill

Record a diamond's decisions, each through the theory gates it needs. Where a diamond is, is read from its decisions ("target set", "committed to build", "released", "closed"; discovery until commit_to_build, delivery after; DL-1368, DL-1372). At close, runs an executable checklist that GATES it.

Preflight: Read target canvas file(s) before any Write/Edit

Hard rule. Before issuing Write or Edit against any .claude/canvas/*.yml, use the Read tool on that file in this session. Claude Code's Read-before-Write check requires the Read tool specifically — cat/head/grep via Bash do NOT satisfy it.

Preflight: Read-before-Recommend (gate-narration discipline)

Hard rule (per the operating contract's Communication Rules, anti-pattern #7 graduation v0.39.16). Every gate-status narration, blocker statement, hold claim, theory-gate verdict, or transition-blocked finding this skill emits MUST cite the canvas file + field path of the source evidence. Adjacent-surface inference (different opportunity, different ht, different topic) MUST be tagged as inference, not asserted as gate state. Companion to the Read-before-Write rule above: that one protects what gets WRITTEN to canvas; this one protects what gets CLAIMED about canvas state in the skill's narration.

Edit vs Write — different cost profiles (verified 2026-05-14):

ID-bearing entries — scan the ID space before assigning (added 2026-05-15, v0.23.19): When adding a new component, opportunity, solution, or any other ID-bearing entry to a canvas file, run a Bash grep first to confirm the next ID in your prefix sequence is actually free:

grep -o "<prefix>-[0-9][0-9]*" .claude/canvas/<file>.yml | sort -u -t- -k2 -n | tail -3

Replace <prefix> with the canvas's ID prefix (comp for landscape, opp for opportunities, sol for solutions, ht for human-tasks, etc.). Then pick the next free integer, matching the zero-padding already used in that file. The sort is NUMERIC (-t- -k2 -n) rather than lexical, and that is not pedantry: a plain sort -u orders ht-1 after ht-080, so on a canvas with inconsistent padding it reports the wrong maximum and the next ID collides. Verified on the dogfood repo 2026-08-13, where lexical sort returned ht-1 as the highest human-task ID against an actual ht-080. grep -o is also deliberate: it matches IDs wherever they appear, including cross-references and prose, so an ID that was promised somewhere but not yet defined is not handed out twice. validate_canvas.py has a per-file duplicate-ID check (it reports duplicate id '<id>') that catches the failure on CI, but a duplicate can persist in the working tree for days if CI isn't run between edit and discovery; that happened on 2026-05-15, when a duplicate ID was created in landscape.yml.

Original failure mode: anti-pattern #7 instance #5, 2026-05-09 — agent conflated Bash head with the Read tool, lost ~14k tokens to a Write-fail → remedial-full-Read → re-Write loop. The limit:1 discipline (graduated 2026-05-14, v0.23.18) prevents the second-order cost where the agent correctly follows the rule but full-Reads every time. The ID-scan discipline (graduated 2026-05-15, v0.23.19) prevents the related class where the agent reads enough of the file to satisfy the Edit check but not enough to see existing ID assignments — kin to anti-pattern #8 (Stale State Read).

If this skill writes to multiple canvas files, register each one first (limit:1 for Edit-only paths; full Read for Write paths) AND ID-scan any prefix you intend to assign.

See ${CLAUDE_PLUGIN_ROOT}/engine/agent-operating-contract.md Canvas writes — Read before Write for the canonical rule.

Workflow

  1. Identify the decision: where the diamond is (scale_locks.position, e.g. "target set

(discovery)") and the decision to record next at [scale]: set_target; start_experiment and

commit_to_build, recorded together to commit to build; release; close. An L0 records

state_purpose, then review. To iterate, append (DL-1373, step 8).

1b. Cognitive Forcing (before gate evaluation):

Before running gates, ask the human for their unprimed judgment:

> "Before I check the gates — do you think we're ready to record [decision]? What's your gut say?"

Wait for the response. Record it. Then run the gates. After presenting results, compare:

> "You said [X]. The gates say [Y]. Where do we differ?"

The turn that asks this question ends with a Next: line, like every turn in which a skill ran (contract rule 12). The question is the next action: Next: say whether you think we're ready to record [decision] (per: diamond-progress step 1b). Without that line the Stop hook hooks/next-action-check.sh blocks the turn, and Claude Code shows the block to the person as "Stop hook error" under a question they have not answered yet. The same pause in diamond-assess step 0 caused 3 of that hook's first 5 blocks on the dogfood project.

The human's instinct often catches risks the gates miss. If the human says "not ready" but gates pass, investigate — the human may be sensing something the evidence hasn't captured yet.

Source: Buçinca, Malaya & Gajos (Cognitive Forcing Functions, Harvard CHI/CSCW 2021). Applied after Hoskins transcript analysis — Drew's product judgment consistently outperformed the agent's gate-based assessment.

Autonomous mode (per ${CLAUDE_PLUGIN_ROOT}/engine/autonomous-mode.md): rung (b) — record the declared persona's gut call BEFORE running gates, tag internal_simulated, ledger it. The compare-after step still runs.

1c. At an L1 or L2 set_target: the opposite question (a prompt, not a block):

When the decision is set_target on an L1 (the outcome it sets) or an L2 (the opportunity it targets), ask the same one-line question /mycelium:define-done step 1 asks of an outcome, about the target being set:

> "Write the opposite of this outcome. Would anyone choose it?"

Ask it in the same turn as step 1b's question, so the run pauses once. A target whose opposite is absurd on its face makes no choice: it rules out no work, and every later diamond can be argued to serve it. If the opposite is absurd, offer to narrow one part (who, what changes, how) until the opposite is something a reasonable builder might pick; what the person decides is written as any choice is (step 8, "A choice is written when it is made"), and the decision-log entry keeps both wordings, the first and the narrowed one. This is a prompt, never a block: the person judges whether the opposite is absurd, a target that already rules something out passes as written, and no gate reads the answer. The source is cited in /mycelium:define-done step 1.

  1. Run all required theory gates (per ${CLAUDE_PLUGIN_ROOT}/engine/theory-gates.md Decision Matrix, one column per decision; a move needs the gates of every decision it records):

a. State the gate name and source theory.

b. Surface the suggested skill: "Run /skill-name to satisfy this gate."

c. Evaluate pass criteria against available evidence.

d. Record Pass / Fail / Insufficient Evidence **in theory_gates_status on the diamond, on

every outcome, not only when it progresses** (pass, fail, or pending with what is

missing in progression_blockers). Added v0.278.0: E2E rung L4-define ran this skill on an

L4, ruled needs-evidence, and wrote no gate result, since the only instruction to record

gates sat under the phase move. The next session read "no gate results are recorded" as a

blocker, the closing path read the empty field as every gate passing, and the L4 sat in

discover. A gate evaluated and not written is a gate the next assessment re-derives from

nothing.

e. If Fail: document what is missing, recommend the skill to run, and do NOT proceed.

CRITICAL — Perspective conflict check (do this BEFORE evaluating any other gate):

Before checking any gate status, read .claude/canvas/opportunities.yml and inspect the Four Risks risk LEVELS for the active solution. Do NOT rely on theory_gates_status.four_risks in active.yml — that only records whether risks are documented, not whether they conflict. You must read the actual value.level, usability.level, feasibility.level, viability.level values.

If TWO OR MORE risk dimensions are rated HIGH, or if perspectives directly contradict each other (e.g., value says "build it" but usability/feasibility say "don't"), this is a perspective conflict — not a simple gate failure. STOP evaluating other gates and jump to step 2b immediately. This takes priority over all other gate checks.

2b. Resolve perspective conflict (if detected in step 2):

Do NOT continue to steps 3-6. A perspective conflict must be resolved before any other gate evaluation matters. Follow this procedure:

1. Name the conflict explicitly in the decision log: "Perspective conflict: [type]" — use the vocabulary from ${CLAUDE_PLUGIN_ROOT}/engine/perspective-resolution.md (value-vs-feasibility, usability-vs-feasibility, value-vs-viability, usability-vs-viability, three-way).

2. Classify the conflict type per the resolution framework.

3. State each perspective's position:

4. Apply the resolution methods in order of preference:

5. Log the resolution in .claude/harness/decision-log.md with: the conflict type, each perspective's position, the resolution method chosen, and why.

6. Block progression: Report "Progression blocked: perspective conflict ([type]). Recommended resolution: [method]."

7. Do NOT proceed to step 3 or beyond. The conflict must be resolved first.

The perspective resolution framework (${CLAUDE_PLUGIN_ROOT}/engine/perspective-resolution.md) is the authoritative reference. The anti-pattern to avoid is Perspective Suppression — resolving a conflict by ignoring one perspective.

2b-2. Four Risks: a blind pass runs before the gate is recorded as passed (2026-11-12; at commit_to_build and release, L1-L4, wherever this run is about to write four_risks as pass or pass-with-risk):

Before you write the pass, run /mycelium:devils-advocate Technique 7, the blind adversarial pass, on the Four Risks assessment, as that section describes: hand each reader the chosen solution's four_risks block from opportunities.yml (the four assessments and the evidence each cites) plus one line on how it was assessed, and nothing else; ask for the single most likely way it is wrong; permit "NO OBJECTION". It runs by default. The person can decline it; record the decline as below.

It can only raise concerns. It never passes anything. A "NO OBJECTION" is not evidence for the gate and is never cited as a reason the gate passed: the gate passes on its own pass criteria (${CLAUDE_PLUGIN_ROOT}/engine/theory-gates.md, Four Risks gate). Verify each concern against the canvas yourself. A concern that holds is a gate finding like any other: four_risks is fail or pending, and the concern goes in progression_blockers with gate: four_risks. A concern that does not hold is recorded with the reason it was ruled out.

Record the result on the gate. In the decision entry whose gates include four_risks (the commit_to_build or release entry in decisions), add one line to its note: blind pass on four_risks: <n> reader(s); <each concern and what was done with it>, or blind pass on four_risks: no objection, or blind pass on four_risks: not run: <why>. The decision-log entry carries the same line. When the ruling is not progressed and no decision entry is written, the line goes in the decision-log entry, and a concern that held is already in progression_blockers.

If no subagent can be spawned (Technique 7's prerequisite), say so, offer to run it if the person permits one subagent, and record not run: <why>. The pass not running does not fail the gate: a step that can only raise concerns cannot block by being absent. In autonomous mode, run it, and never record a decline on the person's behalf.

Why this is a default step: the Four Risks are otherwise assessed and judged by the agent that wrote them, and a solo builder has no second person to challenge them. A blind reader stands in for that person's judgement, never for their stake (devils-advocate, Technique 7, "What it stands in for").

2c. Build-to-learn awareness NUDGE (at commit_to_build only):

When the diamond commits to build, surface this prompt to the human:

> "Are you building to learn or building to earn right now? Discovery work (prototypes, spikes, experiments) can use lighter gates. Delivery work (shipping to users) must meet full DoD."

This is awareness only — it does not change gate requirements or routing. The human's answer is informational context, not a gate input.

Source: Cagan (SVPG), Patton (build to learn vs build to earn). Added as NUDGE per risk analysis — conceptual awareness, not process gate.

2c-2. An L4's commit_to_build says where the work may write (v0.324.0, enforced by

hooks/scope-gate.sh). In the same edit that records commit_to_build on a delivery cycle

(an L4), write in_scope_paths on that cycle: the folders, files or globs the work will

touch, project-relative.

```yaml

in_scope_paths: [app/billing/, tests/billing/**] # the agent is held to these

in_scope_paths: [] # no hold for this one, said on purpose

```

Propose the list from the plan; the person decides it. Say which folders you propose and

why, in one line, before the edit. The edit is put to the person by the gate (an ask), because

where the agent may write is theirs to say; where nobody can be asked it is refused, and the

person makes the change themselves. An empty list is a real answer ("no hold for this one")

and is asked about the same way. Do not write an empty list to get past the question: propose

the folders, and let the person say "no hold" if that is what they want.

A commitment to build with nothing said is refused. The gate reads the edit, and an L4

that would end up committed with no in_scope_paths at all does not land.

While the cycle is open the agent is held to the list. A write under .claude/ is never

held. A write outside the list is put to the person with the file named; a yes lets that one

write through. If the work turns out to need another folder, propose adding it to the list

(that edit is asked about too) instead of asking write by write. The hold ends when the

cycle's close is recorded: nothing has to be taken away.

What the hold cannot see: a command that writes files itself (a scaffolder, a clone). Say

so if you run one during delivery, and name what it wrote. A shell command that changes

in_scope_paths, or since 0.325.0 anything else in the diamonds file, is undone afterwards

(the whole file is put back) and the person is told: change it with Edit or Write, never

from the shell.

A cycle that committed before 0.324.0 carries no list and is not held; session start names

it. Offer the person the two choices above for it once, and do not add either unasked.

An old .claude/state/active-execution.json is no longer read. While it exists, product

writes are refused: tell the person to move its folders to the cycle as above and to delete the

file themselves (it is one of the files that are theirs to write).

Why this is a step here and not a file the agent is told to write: until 0.324.0 the folders

lived in that state file, no skill wrote it, and the hold was never on in a plugin install

(a blind reader of the installed plugin, dogfood 2026-10-11).

2d. L3 start_experiment: the lightest test is named first (v0.253.0, enforced by the

scale-lock gate). Before an L3 builds, run /mycelium:assumption-test on the riskiest assumption of the

solution it builds and record, on that solution in opportunities.yml,

riskiest_assumption: {statement, cheapest_test} (or test_design), a sentence, not a label.

Offer the light options first: concierge (a person does by hand what the product would do),

Wizard of Oz (a real-looking front, a person behind it), a few early adopters. They need no

production infrastructure and still give test-validated evidence. A real hosted pilot is allowed;

name it here as the test, so building infrastructure is a choice and not the default. E2E runs

19 to 23 each built a server, an SMS provider, a domain and a security review inside the L3, and

each stalled there.

A test that needs real use runs after the L3's own release (v0.257.0). Record on the L3 an

exposure record (exposures[]: audience, until, channel): a named, opted-in audience, an

end date, and the channel that fits the product type (web software: infrastructure as code for an environment that

can be torn down; courseware: a pilot cohort on an existing platform; service: by hand). Record

the L3's release through Security, Privacy and Service Quality, run the test, and record the

verdict on the riskiest assumption; that verdict is the medium-confidence evidence the L4 opens

on. The L4 then builds to earn, for everyone. Production for everyone is never an L3's.

The L3 builds only what its test needs to run (v0.273.0). Not a finished product: the

smallest thing that lets the named, opted-in audience take part and the test read out. A question

the build raises that the test does not need (a refund edge case, a full export pipeline, terms

for a stranger) is recorded, not answered now: as a next assumption on the solution

(assumptions: in opportunities.yml), to be tested in turn, or as L4 work. The test lands, and

its verdict may call for a new test; that is the opportunity solution tree working, not a gap in

this one. E2E service world run 3 grew 8,500 words of client documents for a two-month, hand-run

pilot with three existing clients, and the pilot never started.

The exposure record is the learning delivery (v0.294.0, v0.296.0; since v0.307.0 the only

record of it). An entry in the diamond's exposures: recorded_at, audience, channel (a

moderated session, a link, a device), data_class (none, synthetic, personal,

sensitive), until, consent (how consent was given) and the gates passed for this

exposure; started, changes and ended: {how, on, l4, note} go on it too. Recording it is

not the start; started is. Draft it; if the data is personal or sensitive the write asks the

person, who confirms it (founder ruling g). An exposure already live before this was recorded

gets reconstructed: true (ruling h). scale_locks.py --exposures reports what is missing, and

the release gate refuses a release no current exposure record covers.

A team-only exposure is its own trial (founder ruling 2026-11-12). An L3's Evidence gate at

release asks that what reaches people has had one trial outside the team first

(engine/theory-gates.md, gate 1). When the exposure's only audience is the builder or the

team, write its audience starting with the token team-only (`team-only: the builder, in

their own sessions): the release is then the trial, and record the Evidence gate at release`

as n/a with the reason "team-only exposure: the release is the trial". Do not use the token

for anyone outside the team, however close (a friend, a pilot client, one tester). Before the

work reaches anyone outside the team, the outside trial is still required: the release gate

reads the audience from each exposure record, and an L3's Evidence n/a does not count while

any of them names an audience outside the team. Widening a team-only exposure to outsiders is

a widened change, and it needs the Evidence gate passed by a trial outside the team.

A service check scoped to one exposure lands on the exposure (founder ruling 2026-11-12).

When /mycelium:service-check is run for one exposure, its 15 principles go in that

exposure's gates_basis.service_quality with a decision-log line, and services.yml stays the

product-wide record. The release gate reads the exposure's own record first.

Something already live with no record (v0.322.0). When the repository shows the project

deploys and no diamond carries an exposure record, the next item already-live asks the

person whether something from it is already in front of real people, and names this skill

for a yes. That run records no decision and needs no gate passed: write the exposure record

on the diamond that carries the live work, with reconstructed: true, data_class and

consent only as the person states them, and no gate marked passed. Then run Security and

Privacy for it; until they pass, --exposures lists it, which is the point of recording

it. If no open diamond carries that work, say so and do not put the record on a diamond it

does not belong to: it waits on one being opened, /mycelium:security-review and

/mycelium:privacy-check can look at what is live now, and their yes is kept meanwhile with

`advisory_ledger.py rule --id already-live --ruling snooze --until asked --note "yes: <who it

reaches>; record it when its diamond opens"`. A no is the person's answer, recorded with

--ruling drop. The question never blocks.

The harms check is a step here, and it never blocks (v0.321.0). When you draft or change

an exposure record, ask the two things no record carries: does this work have sign-up,

retention, cancellation, consent or pricing flows, and does it reach people who are vulnerable

(children, patients, people at financial or other risk)? If either is yes, run

/mycelium:harms-check before the release is recorded, while the design can still change, and

write its result on the exposure: harms_check: {on, verdict, note}, with verdict one of

net-positive, happier-negative, not-applicable. If both are no, write not-applicable

and the reason in note; do not write it without asking the two questions. It is not one of

the exposure's gates. A happier-negative verdict does not stop the release: tell the person

what was found and let them decide whether the work goes out as it is. Until a verdict is on

the record, scale_locks.py --exposure-state, --exposures and the release gate each say so

in one advisory line. Why this is a step and not a suggestion in a list: in 175 end-to-end runs

the harms check was mentioned in 1, against 33 for the privacy check, whose record the release

gate requires. A diamond that still

carries the old learning_delivery field is not read by any rule since v0.307.0: the next item

offers scripts/migrate_phase.py, which moves it into an exposure record. Do not write it.

The test starts, on the record (v0.274.0). Record exposures[].started with the day

the first person in the audience took part. An L3 that has released with no start date is offered the

start at every session; once that is overdue, stop extending the build, name only what blocks

the start, and send the rest to the tree or to L4. E2E service world run 4 grew its client pack

from 4,100 to 7,100 words in Deliver while nobody was served.

**Once the L3 has released, its audience changes on the record, and the delivery ends when the

L3 closes** (v0.267.0, v0.268.0). The audience is identifiable and opted in: a named list, a

cohort, a pre-release channel. Record each change in exposures[].changes as `{on,

audience_was, kind, why}: narrowed or reworded` (a learner left, a typo, a translation);

widened, a bigger test audience that is still identifiable and opted in (a second beta wave, a

larger cohort), with reassessed: [security, privacy, service_quality] re-run for it; or

everyone, a release to all, which is the L4's: open the L4 on this L3 first and deliver

through it. When the L3 records close, record exposures[].ended: {how, on, l4, note}: how

is withdrawn (taken down, devices collected back, the cohort or engagement over) or

handed_to_l4 with the L4's id in l4; note is free text in any language. E2E rung L4-open

made a web page public under its L3 on reviews scoped to five testers; the same rules hold a

course pilot, a concierge service, a hardware loan or a staged app beta.

  1. Judge confidence, then compare it to the effective threshold:

${CLAUDE_PLUGIN_ROOT}/engine/confidence-thresholds.yml (evidence 0.4, theory gates 0.3,

validation 0.2, peer review 0.1, and the six evidence_values) is guidance for that

judgement: evidence counts most, then the gates, then validation, then a second reader. No

code computes confidence from those weights and nothing checks a number against them, so do

not present the result as calculated. Two runs on the same record have scored the same

diamond 0.60 and 0.35 (dogfood, 2026-09-22). Write the number with the reasons that set it:

which evidence, which gates, and what would move it, so the next reader can disagree with

the judgement instead of re-deriving it. Founder ruling 2026-11-12.

"Before I rule: is this a solo hobby, a solo product, or a team product?"

Map and write the answer as the interview's scope step does (solo_hobby, solo_product,

team_startup, team_enterprise), then compute. Never apply the base threshold silently because

nobody asked. If the person declines, rule at the base and say in the ruling that the bar is unadapted because the scope is unknown. Until 0.328.0 an

L0 gate on a hobby project noted "project_type unset, so no adaptation" and held it to 0.9 instead

of 0.63, nine days after a brief that never asked.

applies**: if the scale lists threshold_applies_at (decision names since v0.308.1), only at

those. At the others, report the confidence, check the evidence each decision the move records

names in evidence_by_decision (keyed by product_type where the evidence differs, software

the fallback: v0.269.0), and do not

hold the move on the number (v0.259.0). The L3's threshold is its exit bar: an L3 sets its

target on a real problem, commits to build once its lightest test is named, and releases once

the prototype has met users. E2E runs 42-43 held an L3 in discover for three in-world months, 0.6 against 0.64,

asking for the evidence its own build and learning delivery exist to produce.

  1. Check human approval requirement:

> "Reply yes to advance, no to stay. Re-invoking /mycelium:diamond-progress is also treated as approval (shortcut). Type evaluate again to re-run gates from scratch."

  1. Run bias check: Execute bias-check for the current stage.
  1. Run corrections check: Review corrections.md for relevant entries.

6b. Check trio perspective coverage (Torres Product Trio):

  1. If the decision is close: RUN EXECUTABLE DoD CHECKLIST (see below)
  1. Decision:

Write the ruling to the diamond — MANDATORY, on ALL THREE outcomes, added v0.92.0.

Immediately after deciding, set these fields on the assessed diamond in

.claude/diamonds/active.yml:

```yaml

progression_ruling: progressed | blocked | needs-evidence # one of exactly these

progression_ruled_at: <YYYY-MM-DD>

last_progressed: <YYYY-MM-DD> # ONLY when ruling is progressed — see below

progression_blockers: # REQUIRED when ruling is blocked or needs-evidence;

reason: <why it did not clear, in your own words>

unblocked_by: <the skill or evidence that would clear it>

decisions: # APPEND the decisions, when progressed (v0.305.0)

'on': <YYYY-MM-DD> # quoted: a bare on is a YAML 1.1 boolean

gates: {evidence: pass, cynefin: pass, ...} # this decision's gates (scale_locks.DECISIONS)

ruling: progressed

note: <for a repeated start_experiment: the test and the result it expects (DL-1373)>

```

Name the decisions (v0.298.0). Each level runs a learning loop: set the target

(set_target); start an experiment and commit to build (start_experiment and

commit_to_build, recorded together); release (release); close (close). Each gate belongs to

the decision it guards, and a move needs the gates of every decision it records.

**The decisions are the record, and where a diamond is, is read from them (v0.305.0, v0.306.0;

DL-1368).** Append one decisions entry for each decision, with its gates and the date.

scale_locks.position reads them: "committed to build" needs both start_experiment and

commit_to_build. phase is not read, and may stay as a label for people reading the file.

An L0 does not move (DL-1368 S2): when its purpose has been revisited (a re-derived

purpose_properties, a changed why, the bar's own review date), record review with the L0

gates, and the ruling. A project whose diamonds still carry only a phase is offered

scripts/migrate_phase.py by the next item.

A choice is written when it is made; its decision when its gates pass (v0.313.0). Two

fields hold a choice that a decision later records, and the choice is written when the person

makes it, whatever this run rules: an L2's target ({opportunity, chosen_on, compared, why}),

whose decision is set_target, and an L3's front_runner, whose decision is commit_to_build.

On needs-evidence or blocked, write the choice and record no decision entry. The entry locks

read the choice and its evidence, never the parent's decisions (ENTRY and SPEED are separate

questions; engine/diamond-rules.md, Entry locks), so a withheld choice closes the door below

it and makes the next item ask for a choice already made. Found on the dogfood L2 2026-10-04:

the founder chose a target, set_target was ruled needs-evidence, target was withheld as if

it were the decision, and the next item asked for the comparison every session. Every scale's

object_ref, the outcome an L1 sets (desired_outcomes[].set_by) and an L0's purpose fields

are choices of the same kind, written when made; none of them waits on a decision.

A loop iterates by appending, never by editing (DL-1373). When a test reads inconclusive or

the front runner fails, append the decision the iteration makes: a new experiment is another

start_experiment, its note naming the test and the result it expects (and the test recorded

on the solution, as in step 2d); a re-chosen front runner is another commit_to_build, with

front_runner set to it. The

position stays where it is, and the earlier experiment and its verdict stay on the record. Never

remove or rewrite a recorded decision to move a diamond back: since v0.309.1 the scale-lock gate

refuses a write that removes a recorded decision or changes its name or date (DL-1374; a note,

the gates and the ruling stay editable). A repeated decision is not judged, so nothing checks

that the new experiment names its test: this step is that check.

Record the decisions and their gates IN THE SAME WRITE (v0.248.0). The scale-lock gate

refuses a write that records a decision unless its gates are passed in theory_gates_status

(Security and Privacy backed by a threat model and a privacy assessment on the canvas). E2E runs

12, 14 and 16 moved diamonds forward leaving no record of how; run 14 moved one to develop with

its evidence gate still pending. progression_history is not required since v0.307.8: the

decisions are the record of the move, and entries already there stay as history. Parking,

killing and archiving are not judged.

last_progressed HAS NO OTHER WRITER, AND A THEORY GATE READS IT (added 2026-09-20). Set it

whenever the ruling is progressed. Until now nothing in the plugin wrote this field — it

appeared only in the schema (not required), in diamond-render, and in engine/theory-gates.md,

where the competitive gate compares it against the landscape's newest entry. Measured in the

dogfood repo 2026-09-20: stale on four of five diamonds, by up to 3.5 months, while every one of

those diamonds was being actively edited.

Work the direction through, because it is the dangerous part. That gate FAILS when the

landscape entry predates last_progressed by more than the staleness window. As the field decays

backwards relative to real work, the threshold moves further into the past, the failure condition

gets harder to satisfy, and **the gate gets EASIER to pass the longer nobody maintains the

field** — a staleness check whose own staleness silently loosens it.

This is the third instance of one defect class in this file's own history: progression_ruling

was read by a consumer and written by no skill (fixed 2026-08-05), completed_diamonds is read by

check_scale_occupancy.py and written by nothing, and this. **A gate may not read a field that

nothing writes.**

Why this is mandatory rather than nice-to-have. The verdict was previously

narrated to the user and written as prose to the decision log, and nowhere else.

Nothing downstream could tell a refusal from a narration ABOUT refusal — the only

available check was grepping the log for words like "block", "gate" and

"insufficient", which any paragraph explaining the framework's philosophy satisfies

without a single gate having fired. Discovered 2026-08-05: progression_ruling was

read by a consumer and written by no skill, so the rigorous path was dead code and

every check silently fell through to the prose grep.

Write it on a PASS too. A field that only appears on failure cannot distinguish

"this diamond was assessed and cleared" from "this diamond was never assessed" —

which is the same absent-vs-negative confusion that made confidence required on

the diamond schema in this release. The ruling records that a judgement happened;

its value records which way it went.

  1. If progressing:

9b. Completing a diamond — the state that had a reader and no writer.

Move the diamond out of active_diamonds into completed_diamonds in

.claude/diamonds/active.yml, carrying its fields and adding:

```yaml

completed_at: <YYYY-MM-DD>

dod_verdict:

signal_observed: <what you actually SAW, in your own words>

verified_by: <metric snapshot | named person | test | link | self-assessed>

threshold_met: <the DoD threshold's real value, where it declared one> # optional

shortfall: <where the outcome fell short but you completed anyway> # optional

```

signal_observed may not restate the DoD's signal. If the only sentence you can write

is the target back again, you did not observe it — that is the DoD un-met, and this is a

blocked ruling, not a completion. The schema requires signal_observed and verified_by,

so an unevidenced completion is rejected by validate_canvas.py rather than accepted quietly.

shortfall exists so the bar does not have to be rounded up. Completing with a stated

shortfall is honest and permitted; completing by quietly reinterpreting the DoD is the failure

this field removes the incentive for.

WHY THIS IS A SEPARATE STATE FROM archived. engine/diamond-rules.md defined archived as

"Completed or deliberately paused" — one bucket for two opposite outcomes. With those merged,

no reader can distinguish work that MET its bar from work that merely STOPPED, so **compliance

with completion was unverifiable by construction**: the count of finished cycles and the count

of abandoned ones were the same number. Archived now means stopped-without-meeting-the-bar;

completed means the bar was met and here is the evidence. Killed is unchanged.

FOURTH INSTANCE OF THE READER-WITH-NO-WRITER CLASS, and the one that sat longest.

check_scale_occupancy.py has read completed_diamonds since it shipped — it is in that

script's key list, counting toward "ever opened" at each scale. **No schema defined the key and

no skill wrote it**, so every occupancy report counted zero completed cycles at every scale

regardless of how much work had finished, and its "intake and no outlet" finding could never be

retired by finishing anything. See progression_ruling (fixed 2026-08-05), last_progressed

(fixed 2026-09-20, above) and the competitive gate in docs/errata.md.

A gate may not read a field that nothing writes — and a state nothing can enter is not a state.

  1. If blocked or needs evidence:

Technical-discovery shape detection (sol-007a, v0.39.6): when Evidence/Bias/Feasibility gates are blocking AND the agent observes any of the following technical-shape signals in canvas state, name the dimension explicitly as "technical discovery" in the verdict and recommend /mycelium:assumption-test with read-docs / pull-real-payload framing — NOT /mycelium:user-interview (interviewing a domain user does not validate an unread API contract):

Verdict-line template when triggered: "Blocked — technical discovery incomplete. The [API contract / data model / architecture decision] for [name] is unverified. Feasibility evidence missing: [the specific assumption flagged]. Recommended next: /mycelium:assumption-test against the unread contract — read the current docs, pull a real payload, validate the assumption against observed data before building the dependent component."

Why this routing-branch (rationale captured 2026-06-03 — roadmap brownfield-iteration eval, sw-tech-discovery dogfood pass 6/7 with decision_log_contains failing): the framework's existing gates correctly BLOCK the bad-progression behavior (5+ of 7 measurable dimensions pass on the failing-first dogfood) — the structural gating is healthy. The gap was purely vocabulary + routing: the verdict didn't NAME the dimension as technical-discovery and recommended /user-interview where read-docs / pull-payload was the correct surface. Sol-007a closes both gaps without adding a new gate, scale, or skill. See opp-007 in mycelium-roadmap canvas.

  1. Always communicate in plain language:

Executable Definition of Done (at `close` ONLY)

When recording close, run this checklist. Items marked REVIEW block progression. Items marked PROMPTED are asked but don't block.

Two rules before any item (v0.210.0, dogfood l2-framework-reliability 2026-09-02, where both fired on one transition).

Auto-Checked (Machine Verifiable)

Check product_type from .claude/diamonds/active.yml to determine which auto-checks apply.

For software and ai_tool (code components):

Testing (G-V7 REVIEW):

Type Safety (REVIEW for typed languages):

Linting (REVIEW if linter detected):

For content products (content_course, content_publication, content_media):

Content Quality (REVIEW):

For ai_tool:

Eval & Safety (REVIEW):

For all product types:

Secrets (G-S1 BLOCK):

Delivery-Type Dependent (from ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml)

For user_facing work (G-V2, G-V8, G-V9 REVIEW):

For api_service or permission_requiring work (G-S2 REVIEW):

For data-handling work (G-S3 REVIEW):

Always Required (REVIEW)

Outcome Definition of Done met (REVIEW):

Success criteria declared (G-V11 REVIEW):

Decision log (G-P4):

BVSSH Quick-Check (Smart -- Fix 6):

Happier covers four stakeholders (Smart): customers, colleagues, citizens, and climate.

Software:

Content (course, publication, media):

AI tool:

Service offering:

Prompted (Not Blocking)

Delivery journal (PROMPTED):

Patterns (PROMPTED):

Retrospective (PROMPTED):


Non-Progression Paths: Pivot, Park, Kill

Not every diamond makes forward progress. Sometimes the right move is to reframe, pause, or abandon. /mycelium:diamond-progress handles these paths too, via subcommands:

All three are sanctioned exits from a stuck diamond. They are not failure modes — they are the system working correctly when evidence tells you the current direction is wrong.

Addresses dogfood report finding T5: "Stop-the-diamond pattern has no escape valve."

Pivot (reframe with new evidence)

Use when evidence invalidates the current framing but the underlying need is still valid. Example: macos-fileviewer pivoted from "replace QuickLook for all devs" to "serve terminal-resistant devs specifically" after mocked-persona findings.

Workflow:

  1. State the invalidating evidence (what did we learn that broke the old framing?)
  2. Propose the new framing (scope change, audience change, JTBD refinement)
  3. Log decision in .claude/harness/decision-log.md with:
  1. Update .claude/diamonds/active.yml:
  1. Update relevant canvas files (purpose.yml, jobs-to-be-done.yml, opportunities.yml)
  2. Do NOT archive the old framing — keep it as a pivot_history entry so future agents can see the learning

Park (inactive-pending-conditions)

Use when the diamond cannot progress right now but may be revisitable later. Example: "park until I have time to do real user interviews" or "park until upstream dependency X ships."

Workflow:

  1. State the blocking condition(s) — what would un-park this?
  2. Log decision in .claude/harness/decision-log.md with:
  1. Update .claude/diamonds/active.yml:
  1. Parked diamonds remain in .claude/diamonds/active.yml but do not count against WIP limits
  2. /mycelium:feedback-review and /mycelium:diamond-assess surface parked diamonds with their resume conditions at session start

Kill (abandon with documented reason)

Use when the diamond cannot be rescued via pivot or park. Example: the opportunity turned out to be imaginary (no real users, no demand), or the solution space has been exhausted, or the project direction has fundamentally changed.

Human-only, hard gate in autonomous mode (per ${CLAUDE_PLUGIN_ROOT}/engine/autonomous-mode.md human-only registry): an autonomous run never confirms a kill on the human's behalf — rung (c): ledger the kill recommendation with its evidence and leave the diamond in place. Park and pivot remain autonomously available (reversible; ledger + decision-log required).

Workflow:

  1. State the reason for killing — what evidence makes this diamond dead?
  2. Confirm with user (kill is destructive) — present the reason, ask for explicit confirmation
  3. Log decision in .claude/harness/decision-log.md with:
  1. Update .claude/diamonds/active.yml:
  1. Do NOT delete canvas artifacts associated with the killed diamond — they are learning for future work
  2. Capture the learning in .claude/memory/patterns.md and .claude/memory/corrections.md as appropriate
  3. Record cycle in .claude/canvas/cycle-history.yml: Killed diamonds are terminal states. Record predicted ICE/effort, actual outcome as "killed", reason, and phase at kill. This feeds adaptive thresholds and pattern detection.

Dogfood Mode Modifier (from ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml)

When the project has dogfood: true set, stop conditions become Mycelium learnings rather than project deaths. In dogfood mode, a killed diamond generates a dogfood report entry in .claude/evals/dogfood-reports/ instead of only being logged as a project kill. The framework gap caught is the real deliverable.


Purpose-stance gate (at `commit_to_build` and `release`)

Run before recording either:

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_purpose_stance.py" --strict --diamond-id <this-diamond-id>

Pass --diamond-id. Without it every diamond committed to build or released is blocking-eligible,

so this decision can fail on a DIFFERENT diamond's missing stance — a stop for a reason that has

nothing to do with the step just taken. With it, the block is scoped to the diamond being moved and

every other one still reports at the never-fail tier. The same scope applies to solutions: only the

solutions this diamond names block (its front_runner, or the solution its object_ref names; with

neither, the live solutions under the opportunity its object_ref names). Every other solution in the

tree reports as WARN and does not block this decision. Through 0.334.1 every solution in the tree blocked

whatever --diamond-id said, so one contradiction left on another opportunity's idea stopped every

diamond's commit_to_build and release.

Non-zero exit blocks the decision. It fires when a solution carries no stance against a binding

property, when a verdict has no note, when a declared contradiction has no human override, or when the

property list was derived from a superseded why/how/what.

AND NOW ON THE DIAMOND ITSELF, which is what this gate was always specified to do. A diamond

recording commit_to_build or release must carry its own purpose_stance, exactly as a solution does. Until

plugin 0.123.0 the script this gate calls read only opportunities.yml — so the gate ran, found the

solutions clean and returned green while never opening active.yml. It could not see the artifact

whose decision it was guarding. Diamonds elsewhere in their loop, and parked diamonds, report at the

never-fail tier and never block.

These two decisions and not the earlier ones, deliberately: they are where a thing becomes real.

Blocking at set_target or start_experiment turns exploration into paperwork, which is the friction this framework

is already criticised for.

Exit 0 with "OK (or not in use)" means the project never adopted purpose_properties. That is a

pass, not a gap — do not prompt for adoption from inside a decision.

Learning Capture (After Every Decision)

After EVERY recorded decision (not just close):

  1. Corrections: "Were any mistakes made since the last decision? I'll draft a corrections.md entry."
  2. Patterns: "Did anything work particularly well that's worth reusing?"
  3. Delivery journal (delivery mode): "What implementation decisions and learnings should be recorded?"
  4. Product journal (discovery mode): "What insights changed our understanding?"

Draft entries for the user. Present for confirmation before saving. This captures learning at the moment of discovery, not retrospectively.

Post-Build Next-Steps Nudge (at `release`, and after any build or POC produces working code)

After any decision that follows working code (release, or the moment the agent finishes a build or POC after commit_to_build), emit an explicit next-steps nudge. Closes the post-build silence friction surfaced by cohort-tester-2 (mycelium-roadmap decision-log 2026-05-26): framework completed POC and "just stopped and didn't prompt for more info or advise me what to do next."

Format:

Build complete. What's next?

1. /mycelium:security-review — OWASP-shaped review of the code just produced (recommended if any risk shape fired during /mycelium:delivery-bootstrap)

2. /mycelium:threat-model — STRIDE pass if the spec involves auth, data handling, file upload, or external boundaries

3. /mycelium:definition-of-done — checklist before declaring shippable

4. /mycelium:reflexion — if anything in the build felt unstable, run the self-critique loop

5. Refine the spec — was the original ask correct, or did the build reveal a gap?

6. Ship as-is — explicit decision to deploy without further review (record reason)

If unclear, my recommendation is: {pick based on risk shapes fired earlier, default /mycelium:security-review}.

Cite the risk shapes that fired during bootstrap (per the operating contract's attribution rule (Communication Rule 4)). Never auto-invoke; offer-menu only.


Theory Citations

Counter-Argument Check (Bias Mitigation)

Before recording a decision, draft a one-line counter-argument: "What's the strongest case AGAINST this decision — what gate is borderline, what evidence is weakest, what regression risk is being underweighted?" If you can't articulate one, run /mycelium:devils-advocate before proceeding.

This addresses the bias cluster documented in corrections.md (L5 sycophancy 2026-04-20, eval overfitting 2026-04-30, sharper-framing-isn't-righter 2026-05-03). Common shape: agent prefers what feels right over what evidence supports under competing pressure (be helpful vs. be honest, advance vs. regress). Decision reviews are the canonical context — the agent is incentivized to move forward and may underweight the case for staying where it is or running another experiment.

Especially important at an L4's close (DoD signoff) and an L5's release and close (where the L5-sycophancy correction explicitly named promotional-language drift).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.