gate-checks
At a glance
- 1Read the gate
- 2Run the script's checks
- 3Judge the
judgeconditions - 4Close what can be closed
- 5Record through the script
The skill
Every lifecycle phase ends at a gate that checks artifact structure, evidence and decisions. Pass every required condition, advance. Fail one, stop and say which: a gate holds whatever the argument. This skill inspects an active lifecycle initiative; a standalone review returns findings and leaves lifecycle state as it is.
Read evidence-ledger when tag counting or source provenance needs clarifying, and pressure-testing for a material open branch that evidence and delegated judgment leave unsettled.
The Conditions
Read current_phase from state.json, then read only the conditions file for that gate: 0 Frame, 1 Discover, 2 Define, 3 Ideate, 4 Shape, 5 Build, 6 Ship, 7 Learn, C Coverage on the feature track, M Mandate on the change track, or N Need on the build track. Each holds the condition table (id, condition, check), which conditions the script decides, and the phase's recording flags. Read lite mode when state.json sets mode: "lite".
E.1 and E.2 run on every gate, including the coverage check (against PRODUCT.md and the request) and the mandate check, E.3 to E.5 on every initiative gate.
| # | Condition | Check |
|---|---|---|
| E.1 | Every source tag points at something | Each interview, doc and data tag in the artifact has its file in evidence/ per the schema, Evidence Files; each code tag names a file that exists |
| E.2 | No provisional work is left | No **Provisional:** marker outside code fences, in the artifact or (phase 4) SPEC.md → Design: drafted-ahead work is kept, marker removed, when the person's answer confirmed it, deleted otherwise (pressure-testing, Working Ahead) |
| E.3 | Each document stays readable | Each part the gate reads is within its word cap (schema, Documents) |
| E.4 | The thread is written | BRIEF.md or CHANGE.md opens with **Building:** and **Why:**; one file per phase warns |
| E.5 | The intent is written | Under the thread: **For:**, **Done when:**, **Not:** (pressure-testing, intent round); fails at an initiative's first gate, warns later |
Who Checks
A gate checked by the model that wrote the artifact is a gate checked on trust, so state.json records who decided each condition in gate.checked_by.
- Script-decided conditions are structure and arithmetic: a word list, a tag count, an enum, a date comparison, a table with no empty cell. Where commands run,
node scripts/bos.mjs gate {N}decides them and prints one line per condition. Relay that result as decided; the model judges thejudgelines alone. - Model-judged conditions need meaning: whether an assumption is falsifiable, whether two options are mechanically distinct. The script lists them as
judge, with whatever structural precheck it could run, and the model decides them.
Where commands cannot run, the model checks every condition and records all of them under model: same conditions, weaker provenance, and the record says so. E.1 and E.2 are script-decided; each conditions file states its own split, and the emitted checked_by split is authoritative.
- Attested conditions rest on a fact outside the repository: a session with a user, a payment, a person who tried the build. The script checks the citation and its file, never the event. Each conditions file lists them; say so when relaying them.
Recording the result. Where commands run, the result reaches state.json only through node scripts/bos.mjs record {N} --judged "{id}=pass|fail,...": the script re-runs its own conditions, takes the model's verdict on the judge ones, and writes the phase status, checked_at, checked_by, the failed conditions and the history event, then advances, closes or holds the phase and regenerates the roadmap. A gate result written into state.json by hand where the script can run is a claim, not a record, exactly like a completion marker. Phases 1, 6 and 7 take phase-specific flags (verdict, review date, re-entry), stated in their conditions files. The record also stores the script's version and the skipped conditions, so a later release can tell "not applicable then" from "not there yet". Verdict/enum contradictions cannot be overridden.
Debt After a Release
Each record carries the BuilderOS version that wrote it and the conditions it skipped. A release that adds conditions leaves earlier passed gates passed; the briefing and bos.mjs doctor list the conditions in force now that the record did not check and the artifact does not meet. That is debt: meet it when the work next touches that phase, or name it at phase 7. The phase stays passed.
Acceptance
A gate says an artifact is complete, not that a person has read it and agrees. BuilderOS records both, separately.
Phases 0, 4 and 6 each need a person's acceptance, and the build plan inside phase 5 needs its owner's **Accepted:** line before any code. Who accepts and where it is recorded is in that gate's conditions file.
Rules. Acceptance comes from the person's own words: ask, then record what they said, quoted. A standing instruction counts when it named the scope ("proceed through the build without stopping"), quoted with its date. The script refuses to pass phases 0, 4 and 6 without --accepted-by; a failed gate records no acceptance.
Decisions
The choices a phase turns on belong to a person, and each gate checks a **Chosen by:** naming the person who chose, from their answer: the assumption phase 1 tests (0.5), what a discovery verdict means for the work (1.6), the opportunity and its target (2.8), the bet (3.6), the look (4.9), the rollout (6.13), and keep, iterate or kill (7.7). The agent does the analysis and recommends in a pressure-testing round; "go with the recommendations" is a valid answer and is quoted as such. A standing instruction that named the scope counts, quoted with its date, exactly as for acceptance.
The person's words. Where the host runs the BuilderOS message hook, each message the person writes is appended to .builderos/person-log.jsonl, which only the hook writes. Every person field (Chosen by, Accepted, Tried by, Rules decided by, Authorized by, --accepted-by, a kill, jump or override reason) quotes their words in quotation marks; a quote they never wrote fails. Without the log the field passes, marked unverified.
Refusal Protocol
When a condition fails, the agent produces exactly this and holds the phase:
## GATE {N} FAILED
**Failed condition:** {the condition, verbatim}
**Found:** {what the artifact actually contains}
**Satisfied by:** {what would make it pass}
**Cheapest path:** {the least expensive way to get there, with a time estimate}
Remaining conditions: {passed}/{total}A phase advances on a pass or a logged override, nothing in between. When a test came back under its stop line, the honest outcome may be to stop: offer the kill next to the override.
Override and Kill
An override waives conditions by name, each with the person's reason: record {N} --judged ... --override "reason" waives a single failure; several need --waive 4.22,5.8, and conditions left unnamed still fail. The record keeps overridden, the reason, the failed and waived conditions; the briefing shows them until a later cycle meets them, and phase 7 reads them. The entry checks cannot be overridden.
record {N} --kill "reason" ends the initiative at phases 0 to 6, with the person's words; phase 7 kills through its verdict. Moves the process asks for have their commands: resume {slug}, reframe --reason (a new cycle from phase 0), jump {N} --reason (back reopens phases; forward records the jumped phases as overridden).
Entry Checks and Spike Stop
Each runs once, at initialization, on the request, in place of the early gates:
- Coverage (
feature), gates 0 and 1: coverage-check.md. A failure makes aproduct. - Mandate (
change), gates 0 to 3: mandate-check.md. A failure makes afeature. - Need (
build), gates 0 to 2: need-check.md. A failure makes aproduct.
A spike ends at gate 1, answered and closed: gate-1-discover.md, Spike Stop.
Watch for
| Do | Instead of |
|---|---|
| Check each condition against the text | Passing because the artifact "feels complete" |
Relay the script's verdict; judge only the judge lines | Re-judging what the script decided, the author grading its own work |
Write evidence/P3.md, or rewrite the claim as an assumption | [interview:P3] with nothing behind it |
| Ask, and record only what the person said | --accepted-by filled in because the gate passed |
Capability Requirements
| Capability | Use | Floor |
|---|---|---|
files.read | Inspect active state, artifacts and raw evidence | Ask for the missing artifact; no gate result without inspection |
files.write | Record authorized lifecycle state | Return the gate result and concrete persistence gap |
shell.exec | Run the bundled gate script and explicitly authorized checks | Model checks with all conditions marked model-judged; execution evidence remains unverified |
Procedure
- Read the gate. Resolve the active initiative and phase; read its artifact, its gate's conditions file and the raw evidence the conditions touch. For a standalone review, return findings and stop here. Done when you can list every condition of this gate.
- Run the script's checks where commands run (
node scripts/bos.mjs gate {N}). Gate inspection runs the gate's own checks; a project check runs only when the person authorized that command (capturing a run: gate 5), with failures and raw logs kept as they came. Done when every script-decided condition has its line. - Judge the
judgeconditions against the evidence, and surface unavailable evidence, failed runs and incomplete observation windows. Done when everyjudgeline has pass or fail with its reason. - Close what can be closed. Fix authorized local gaps and repeat the affected checks. A real failure gets the refusal protocol; an explicit override keeps the failed conditions and its reason. Done when every condition passes, or the refusal or override is written.
- Record through the script with consistent phase-specific verdicts and dates and, at phases 0, 4 and 6, the person who accepted. Done when
recordsucceeded andstate.jsonshows the result.
Output Contract
## GATE {N} PASSED only after recording succeeds; ## GATE {N} FAILED in the refusal format with the failed conditions; ## REVIEW DEFERRED for a deferred phase 7, which holds the phase.
References
Read only when a step needs them, so they cost no context until then.
Coverage Check (feature track)references/coverage-check.md
Read when initializing work classified as feature. E.1 and E.2 apply too, against PRODUCT.md and BRIEF.md → Request.
Runs once, at initialization, when the work is classified as feature. It stands in for gates 0 and 1 by reading PRODUCT.md instead of a phase artifact, plus the initiative's BRIEF.md → Request: the request verbatim, the sources behind it and who it concerns. The conditions are the load-bearing ones from those gates, applied to evidence that already exists. The product being evidenced does not make this request evidenced: C.5 asks for the request's own source.
BRIEF.md → Request in the initiative folder:
# Brief: {title}
**Building:** {one sentence: what this initiative builds, in the words of the person who asked}
**Why:** {one sentence: the problem it removes or the result it moves, with its tag}
**For:** {who uses it, in the person's words}
**Done when:** {what the person will see or be able to do when it is done}
**Not:** {what it must not do or become}
# Request: {title}
## Request
{the request, verbatim, with who made it}
**Evidence:** {tags of the tickets, data, interviews or messages behind it, each with its file in evidence/}
**Population:** {who asked or is affected: one account, a segment, everyone}| # | Condition | Check |
|---|---|---|
| C.1 | Problem stated without solution language | The same word list as 0.1, applied to PRODUCT.md → The Problem |
| C.2 | Exactly one primary ICP | PRODUCT.md → ICP names one primary segment, its size carrying a source tag |
| C.3 | The problem is evidenced, not assumed | The Problem, Who has it, and What that costs them each carry a data, interview or doc tag. [assumption:unvalidated] on any of the three fails. A code tag does not count: code shows that something exists, never that someone has the problem |
| C.4 | The change serves that ICP | The request names which part of the evidenced problem it addresses, and for how much of the ICP. A change aimed at a different segment is a new problem; a request from one large account is that account's problem until the segment shows it |
| C.5 | The request has its own source | BRIEF.md → Request → Request names its Evidence (a data, interview or doc tag) and its Population. Only the requester's own words (doc:user-*) is a warning: a ticket, a data point or a customer's words would carry it |
| C.6 | The evidence still describes the product | Warning when a source behind C.3 was captured more than a year ago: is it still true of the product as it is now? |
Script-decided: C.1, C.2, C.3, C.5, C.6 (C.6 and the C.5 requester-only case warn, never fail). Model-judged: C.4. The emitted checked_by split is authoritative.
The 0.1 word list is in gate 0.
Pass: phases 0 and 1 are written covered, one phase_covered event each with the tags that satisfied C.1 to C.3, and the pipeline starts at phase 2. For gate 2.1 on this track, PRODUCT.md tags, the tags in BRIEF.md → Request and any data, interview or doc tag whose file sits in the initiative's own evidence/ count as phase 1 evidence tags.
Harvest before judging, on a product that is already live. The first time BuilderOS meets a product with users, PRODUCT.md is drafted from the README and the code, so its problem fields start as assumptions and C.3 would fail on a product that has plenty of evidence, just not on file. Before cover, collect what the product already knows, using whatever resolved: support tickets and their tags (tickets.read), the analytics catalogue and a volume or funnel query on the area (analytics.query), sales or customer-call notes, reviews, churn reasons (docs.search), and the user's own account of who uses it and why. Save each as an evidence file and tag the PRODUCT.md fields it supports. With nothing connected, ask the user once for the three sources that would settle The Problem, Who has it and What that costs them. A field still unsupported after this stays an assumption, and C.3 fails honestly.
Check before recording. gate C only reads; run it on the PRODUCT.md just written, before cover records anything. A failure in how the file was written (a solution word in a sentence that has a Language term for it, a tag left off a sentence whose evidence file exists) is fixed in PRODUCT.md first. A failure because the evidence is not there is the answer: never add a tag to pass C.3 without the file behind it. The first failure cover records is final.
Fail: the work is a product. Use the refusal protocol with the failed C condition, then start at phase 0. Not a penalty: phase 0 and 1 are exactly what produces the evidence C.3 was looking for. The coverage check cannot be overridden, because an override would record phases as covered by evidence nobody has.
Gate 0: Framereferences/gate-0-frame.md
Read when running gate 0. E.1, E.2 and the procedure in SKILL.md apply too. Acceptance: whoever owns the problem, recorded with record 0 --accepted-by "who" (SKILL.md, Acceptance).
| # | Condition | Check |
|---|---|---|
| 0.1 | Problem statement contains no solution language | No occurrence of: build, add, create, app, platform, dashboard, tool, feature, integration, AI, automate, redesign, migrate, rewrite, in the problem sentence. A term defined in PRODUCT.md → Language is the product's own noun and is exempt ("AI answer engine" for a product that monitors them) |
| 0.2 | Exactly one primary ICP named | A single named segment with a size estimate carrying a source tag |
| 0.3 | Riskiest assumption is falsifiable | Stated as a sentence that could be shown false by an observation |
| 0.4 | "Why now" cites a change in the world | A dated external change, not a preference or an availability of technology in general |
| 0.5 | A person chose the assumption phase 1 tests | **Chosen by:** under ## Riskiest assumption names who picked it from the candidates, from their answer; never the agent |
Script-decided: 0.1, 0.2, 0.5. Model-judged: 0.3, 0.4. The emitted checked_by split is authoritative.
Gate 1: Discoverreferences/gate-1-discover.md
Read when running gate 1. E.1, E.2 and the procedure in SKILL.md apply too. On the spike track, also read Spike Stop below.
| # | Condition | Check |
|---|---|---|
| 1.1 | ≥5 evidence units from primary sources | evidence-ledger count of data + interview + code + primary doc units ≥ 5 |
| 1.2 | ≥5 distinct sources | Code citations normalize to the real file, ignoring lines and aliases; interview tags split per participant; data/doc files may declare Source identity to deduplicate the underlying source. Distinct files still require semantic independence review |
| 1.3 | Explicit verdict | One of VALIDATED / KILLED / RESHAPED, with reasoning that cites tags |
| 1.4 | JTBD statement present | Form: "When ___, I want to ___, so I can ___" |
| 1.5 | Disconfirming evidence sought | The artifact names what would have killed the problem and whether it was looked for |
| 1.6 | A person decided what the verdict means for the work | **Chosen by:** under ## Verdict names who chose to continue, stop or reshape, from their answer; the agent writes the verdict the evidence supports, the person decides what happens next |
Script-decided: 1.1, 1.2, 1.3, 1.4, 1.6. Model-judged: 1.5. The emitted checked_by split is authoritative.
KILLED is a successful gate pass. The pipeline stops and reports. Killing a problem in phase 1 is the cheapest outcome BuilderOS can produce.
Recording. Phase 1 records validated|killed|reshaped, matching the artifact; answered is a phase status derived from the spike track, never a verdict. A spike closes at phase 1 regardless of its verdict.
Spike Stop (spike track)
A spike ends at gate 1. Gate 1 runs unchanged; on pass, phase 1 is written answered instead of passed, current_phase does not advance and the initiative status becomes closed. The verdict (VALIDATED, KILLED or RESHAPED) is the answer, reported as a recommendation. Continuing means reclassifying to feature or product, stated to the user and logged as track_upgraded.
Gate 2: Definereferences/gate-2-define.md
Read when running gate 2. E.1, E.2 and the procedure in SKILL.md apply too. On the feature track, PRODUCT.md tags count as phase 1 evidence tags for 2.1.
| # | Condition | Check |
|---|---|---|
| 2.1 | ≥3 opportunities in the tree | Each traceable to a Phase 1 evidence tag |
| 2.2 | Exactly one selected | With a stated rejection reason for each of the others |
| 2.3 | Success metric named | With baseline and target, both source-tagged |
| 2.4 | Baseline is real | Baseline tag is data, code, or doc: not estimate or assumption. An unsourced zero requires product track plus Product exists: no, Zero rationale, and valid First measurement date under Success metric; then a model must judge applicability to this metric. Existing products require a real source even for zero; missing access stays unavailable |
| 2.5 | Coherent with the stage | The stage is PRODUCT.md → **Stage:**. Before PMF (idea, pre-PMF, or a signal score ≤4 per product-analysis (strategy)) scale-oriented opportunities are rejected: the work is learning whether there is a product |
| 2.6 | The metric measures an outcome | Shipping the change cannot by itself satisfy the target. A count of what the system does (alerts sent, emails delivered, a feature released) is output: it goes to the tracking plan or a guardrail, and the metric names what the user does or gets differently |
| 2.7 | The initiative moves a lever of the product | **Moves:** under Success metric names a lever (or its metric) of PRODUCT.md → ## Business → Metric tree. With no metric tree yet it is a warning that asks for a product review. Skipped on the change track |
| 2.8 | A person chose the opportunity and its target | **Chosen by:** under ## Selected names who chose, from their answer to the round that put the opportunities and the target to them; never the agent |
Script-decided: 2.1, 2.2, 2.3, 2.7, 2.8. 2.4 is script-decided for sourced baselines, model-judged for a structurally justified pre-product zero. Model-judged: 2.5, 2.6. The emitted checked_by split is authoritative.
Example: An existing feature's baseline 0, first measured 2026-09-20 fails 2.4 without a source. A nonexistent product's Baseline: 0, Product exists: no, Zero rationale: No users exist to complete this event, First measurement: 2026-10-01 reaches model judgment; the rationale must actually apply to the metric.
| Mistake | Why it fails | Correct |
|---|---|---|
| Accepting a success metric the build satisfies by existing | "Alerts sent within 24 hours" hits its target the day the code ships, so phase 7 measures nothing | Name what the user does differently: acts on the drop, recovers, stays |
Accepting an [estimate:*] baseline | Targets measured against estimates are unfalsifiable | Require a real baseline or an metric-specific, justified pre-product zero |
Gate 3: Ideatereferences/gate-3-ideate.md
Read when running gate 3. E.1, E.2 and the procedure in SKILL.md apply too.
| # | Condition | Check |
|---|---|---|
| 3.1 | ≥3 mechanically distinct options | Each has a different primary user action, stated explicitly. Same action with different UI is one option |
| 3.2 | Selected bet has kill criteria | A metric, a threshold, and a date. All three |
| 3.3 | Riskiest assumption has a designed test | With a cost estimate in days |
| 3.4 | The test runs when it can change the decision | **Order:** test first with **Changes the decision:** (which result would flip the bet), or build first with **Skip because:** naming cheap and reversible, the pessimistic case still proceeds, strong precedent or unreliable measure, or a logged override. Replaces the 20% cost rule of 3.0 |
| 3.5 | Diverged before converging | ## Divergence lists at least 8 raw ideas (lite: 5) before the options were formed. On the build track ## Feature map instead: one row per feature with a way to build it, at least two candidates to buy or integrate it, separated by ; (or none found, with what was searched), the choice (build, buy, integrate or skip) and a source tag |
| 3.6 | A person chose the bet | **Chosen by:** under Selected names the person and their answer, or a dated standing instruction; never the agent |
| 3.7 | The bet says how users arrive and who pays (product track) | ## Business case has **First 100 users:** (channel, message, who does the work) and **Cost per user:** (infrastructure plus model cost); for a product for sale also **Price:** and **Willingness to pay test:**. PRODUCT.md → ## Business must declare **Revenue model:**; "not for sale, {why}" drops the two money lines. Skipped on the other tracks |
| 3.8 | No scale work before PMF | Model-judged at idea and pre-PMF: the bet tests whether there is a product, rather than scaling, optimizing or hardening one nobody uses yet. Skipped after PMF |
| 3.9 | The bet has a value in money | ## Value: ### Quick estimates with a value for each option (up to four; lite two); ### Assumptions with at least three rows, each with its population, a kind (data, analogy, estimate, decision), a source (data and analogy cite a data, doc, code or interview tag) and P14, P50, P86; a percentage carries its population; **Two-year value:** with P14, P50 and P86 and no more than three significant digits; **Costs:**. A **Judgment:** of at least a sentence, for value that resists a number, makes 3.9 model-judged and skips 3.10 and 3.11 |
| 3.10 | The load-bearing assumption is found and aimed at | ### Sensitivity with at least two rows, the result at P14 and P86 for each; **Load-bearing:** names the row with the largest swing; when it is an estimate or analogy and the test runs, ## Cheapest test → **Assumption:** names it; when it is data, **What it counts:** says people or events, all users or a part |
| 3.11 | The five questions are answered | ### Five questions answers: where each number comes from, new or moved revenue, the denominator, five times smaller, what was killed and with which number |
| 3.12 | The experiment is a decision written before the data | When the test runs first: **Question:** as a number, **Event:**, **Stop below:**, **Build above:** (stop below the build line), **Second idea:** and **Sample:**. Skipped when the build goes first |
| 3.13 | Go-to-market before the build | ## Go-to-market: on the product track **Trigger:**, **Positioning:**, **Motion:**, **Channel:**, **Channel test:**; on the feature track **Audience:**, **Message:**, **Where:** |
| 3.14 | The stake is declared and the build fits it | ## Bet size: **Door:** one-way or two-way, **Confidence:** in percent, **Appetite:** in days, **If wrong:**. The build cost in ## Cheapest test is within the appetite; a one-way door cannot skip its test as cheap and reversible |
| 3.15 | The evidence matches the stake | Model-judged: the evidence behind the bet meets the bar for the stage and the door (business-case, The evidence bar), or the person made a judgment call knowingly, recorded with its reasoning and a revisit date |
| 3.16 | The person saw the bet as screens | ## First screen has **Link:** (the prototype file in backticks, present on disk, or a URL) and **Seen by:** naming a person, not the agent, with the date and their words in quotes; or **None:** with why the bet has nothing to look at. A warning in lite mode and on the build track |
Internal track. The value is time, not money: ## Value is a table (Option / Hours saved per week / Days to build / Source) with a row per option (lite two, full three), each with both numbers and a tag (an estimate counts), and **Not building:**, the best way of not building it (an existing tool, a script, a routine), what it costs and why it loses (business-case, Internal Tools). 3.7, 3.8, 3.10, 3.11 and 3.13 are skipped; 3.15 asks whether the appetite fits the hours saved and why not building lost.
Script-decided: 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.9 (model-judged when a judgment replaces the number), 3.10, 3.11, 3.12, 3.13, 3.14, 3.16. Model-judged: 3.1, 3.8, 3.15. The emitted checked_by split is authoritative.
Gate 4: Shapereferences/gate-4-shape.md
Read when running gate 4. E.1, E.2 and the procedure in SKILL.md apply too. Acceptance: whoever owns the product decision, with a technical reviewer for high-risk changes, recorded with record 4 --accepted-by "who" (SKILL.md, Acceptance).
| # | Condition | Check |
|---|---|---|
| 4.1 | Acceptance criteria are testable assertions | Each starts with a subject and a verifiable verb; no "should be intuitive" |
| 4.2 | Out-of-scope list is non-empty | An empty out-of-scope list means the scope was never bounded. On the change track SPEC.md also has **Touches:** (below) |
| 4.3 | Every flow has error and empty states | Per flow, both states enumerated |
| 4.4 | Tracking plan measures the Phase 2 metric | Named events map to the success metric. Skipped on the change track, which has no phase 2 metric |
| 4.5 | Accessibility floor stated | Keyboard path, contrast target, focus order |
| 4.6 | Model output has an eval dataset | Existing JSON/JSONL cases (id, input, expected, optional judge, boolean must_pass) or Markdown case table (# / Input / Expected / Judge / Must pass). Full ≥20, lite ≥10 valid unique cases, threshold 0–100, named judge, at least one must-pass case. Prose counts and unsupported formats fail |
| 4.7 | Constraint conflicts stated, each with who decides | A ## Conflicts section exists, stating either the conflicts between PRODUCT.md and TECH.md constraints or that none were found. Every conflict row names who decides |
| 4.8 | The stack was decided with a person | ## Stack lists every layer the work touches as inherited, decided or not needed; every decided row names who decided it; every linked ADR exists in decisions/; ## What we chose summarizes the choices for the person accepting |
| 4.9 | The look was chosen from rendered versions | SPEC.md → Design → ## Visual direction shows at least 3 versions on a new product in full mode, 2 on the feature track or in lite mode, each version file exists and holds a design (a real image, or HTML with visible content; a 0-byte file fails); **Chosen:**, **Chosen by:** (a person), **Design kit:** and the tokens are filled. Wherever two or more versions are needed, **References:** lists real screens studied before rendering (files that hold a screen, or doc tags): 3 on a new product in full mode, 2 otherwise; and the versions table has an Avoids column naming, per version, the generic default it steers away from. Or **Visual direction:** not applicable, {reason} when there is no interface. On the change track one version is enough, or **Visual direction:** inherited, {reason} when no screen changes its composition |
| 4.10 | The domain was modeled with a person | SPEC.md → Design → ## Domain model: an Entities table; a ### Transitions: {entity} table naming who for every entity with a lifecycle; ### Invariants; a ### Data table; **Rules decided by:** a person, quoting their words; a referenced prototype file holds visible content. Or **Domain model:** not applicable, {reason} when nothing changes state or shape |
| 4.11 | The impact on what exists is handled | SPEC.md → ## Impact on what exists has a row for existing data, contracts (APIs, webhooks, exports, integrations), tracking events, permissions and current users, each with its handling ("nothing to do" with the reason counts). On the change track only the areas it touches, and current users. Or **Impact on what exists:** not applicable, {reason} when nothing exists yet |
| 4.12 | What a machine cannot check is written down | SPEC.md → ## Quality bar table (Area / Criteria / Not applicable because) with a row for permissions, personal data and performance. Each row cites acceptance criteria that exist, or gives the reason it does not apply. Accessibility, end-to-end, dependencies and secrets are not here: they are automatic checks (5.10) |
| 4.13 | Someone from the ICP saw it before the build (product track) | SPEC.md → ## Real users cites at least one interview, doc or data tag: one session where a person from the ICP walked the problem, the concept or the clickable prototype. A plan to talk to users fails; the tag on a field line (Willingness to pay, Channel result) does not count as the session. Skipped on the spike, change and feature tracks |
| 4.14 | Money before the build (product track, for sale) | **Willingness to pay:** in the spec cites an interview, doc or data tag: what a person from the ICP did when shown the price (a pre-order, a letter of intent, a click on a price, a price accepted in the real-user session). An opinion about the price ("said they would pay") fails: the line names an act (pre-ordered, paid, signed, clicked, accepted). ## Stack has a payments row, inherited or decided: how the product takes money and who handles tax and invoices. Skipped when PRODUCT.md says not for sale and on the other tracks |
| 4.15 | No scale work before PMF | Model-judged at idea and pre-PMF: nothing in the spec is optimization, enterprise control or infrastructure for load nobody has. The six scale defaults of 4.18 are not scale work. Skipped after PMF |
| 4.16 | The agent's behavior is designed (model output) | SPEC.md → ## Agent behavior (agent-design): an autonomy table (Action / Autonomy / Why / Criterion) where every action is does, proposes, asks or never, and every asks row cites an acceptance criterion that exists; **Hand-off:**; **Degradation:**; **Latency budget:** with a number; ### Injection surfaces (Surface / What could arrive / Mitigation / Eval case), each row with a mitigation and an eval case that is must-pass in the 4.6 dataset. Skipped without model output |
| 4.17 | The first day is designed (product track) | SPEC.md → Design → ## Flows has ### First day, from the first visit to the first useful outcome; the spec's **Activation:** cites an acceptance criterion that exists and names an event from the tracking plan. Skipped on the other tracks |
| 4.18 | The system was designed before the code | SPEC.md → ## Architecture (system-design): ### Components (Component / Responsibility / Owns / Talks to), each with a responsibility and what it talks to; ### Contracts; ### External calls where every call has a timeout in seconds, a retry rule, its idempotency and what the user sees when it fails, or "none"; ### Scale defaults with a row each for owner key on every row, paginated lists, indexed queries, idempotent writes, slow work off the request and reversible migrations, each with how or why not; **Capacity:** with numbers. Or **Architecture:** not applicable, {reason} when there is no server, no stored data and no input from other people |
| 4.19 | Who could break it, and the test that shows they cannot | SPEC.md → ## Threat model: **Boundaries:** and a table (Boundary / Threat / Mitigation / Criterion) with a row for another user's or customer's data, untrusted input, abuse and secrets; every row has a mitigation and cites an acceptance criterion that exists, or "not applicable, {reason}". Or **Threat model:** not applicable, {reason} |
| 4.20 | Every flow is drawn, and every lifecycle | SPEC.md → Design → ## Flows: each ### {flow} has a fenced mermaid block that is a flowchart (or graph) with at least two arrows, and a decision node wherever its steps table lists branches. Each entity with a lifecycle in ## Domain model has a mermaid stateDiagram under its ### Transitions: {entity} table, holding every state the table names. The diagram and the table say the same thing; the table stays the record the build reads. In lite mode a warning |
| 4.21 | Every message the product sends is designed | SPEC.md → Design → ## Messages: a table (Message / Trigger / Recipient / Channel / Text / Opt-out / Preview) where every row has all seven, the text is real words rather than a placeholder, and every preview file named holds content. Or **Messages:** none, {reason} when the product sends nothing outside its screens |
| 4.22 | The tests chosen before the build were read against their lines | Product track: SPEC.md → **Channel result:** cites an interview, doc or data tag, and its number is not below the stop line of the phase 3 **Channel test:**. Any track whose bet chose test first: BRIEF.md → Bet → ## Cheapest test has **Result:** with a tag, not below **Stop below:**. Under the line the gate holds: kill (record 4 --kill), change the bet, or waive 4.22 with the person's reason. Skipped when no test came before the build |
| 4.23 | The code is designed to last | SPEC.md → ## Maintainability has Structure: (the modules this work adds or changes, with their paths in backticks, against TECH.md → Map, or not applicable with why), Simple to change: (what is likely to change and the one place it lives) and Dependencies: (each new library or service and why, or none new). Phase 5 reviews the diff against it (5.19) |
Attested (the script checks the citation and its file, not the event): 4.13, 4.14, 4.22.
Build track. 4.4 maps the tracking plan to BRIEF.md → Request → Done when: (a log line per run is a tracking plan). 4.9 needs one version (the prototype version picked at the solution stop counts), or the look inherited or not applicable with its reason for a tool with no screen. 4.20 passes or fails as in full mode: the flows and journeys are where build work is designed. The rules (4.10), the stack and the trade-offs are drafted on their recommendations and put to the person in the build stop, so one answer can be quoted in each. 4.13, 4.14 and 4.17 are skipped. The threat model holds: a tool often holds credentials and client data.
Change track. SPEC.md → **Touches:** lists what the change touches, comma-separated, each explained in parentheses: interface, copy, data, personal data, permissions, money, messages, contracts, stack, or none of these. The change always owes 4.1, 4.2 and 4.11; the rest applies by what it touches: interface 4.3, 4.5, 4.9, 4.20; data 4.10, 4.18; personal data or permissions 4.12, 4.19; money 4.7, 4.12, 4.19; messages 4.21; contracts 4.18; stack 4.8. Everything else is skipped and says why. Without **Touches:** every condition runs and 4.2 fails.
Script-decided: 4.2, 4.3, 4.5, 4.6, 4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13, 4.14, 4.16, 4.17, 4.18, 4.19, 4.20, 4.21, 4.22. Model-judged: 4.1, 4.4, 4.15. The emitted checked_by split is authoritative.
Gate 5: Buildreferences/gate-5-build.md
Read when running gate 5. E.1, E.2 and the procedure in SKILL.md apply too. Acceptance: whoever will own the change accepts the build plan, recorded as **Accepted:** {who} · {ISO timestamp} in PLAN.md, before any code (gate 5.6; SKILL.md, Acceptance).
| # | Condition | Check |
|---|---|---|
| 5.1 | Every acceptance criterion maps to ≥1 test, or was tried by hand with a capture | Explicit mapping table, with an existing regular test file under the project root for every criterion. Use a literal path or a backticked path alongside the test name, with optional :line or #fragment; preserve spaces and route punctuation. No language extension whitelist. A criterion a break would not damage may map to by hand: {capture} instead: a screenshot or video file that exists, or an https:// link to it (5.20 judges the choice) |
| 5.2 | Those tests pass | Test output names a valid Run JSON record with exit 0 and matching output digest, no known failed-runner summary; model verifies the command/output covers all mapped tests and current code. A suite that was already red: see Pre-existing failures below |
| 5.3 | Instrumentation verified firing | Each event seen arriving in a real environment: a data tag or a captured run. A code tag shows the call exists, not that it fired |
| 5.4 | No scope creep | Nothing from the Gate 4 out-of-scope list was built. On the change track, a slice whose files edit a screen (.tsx, .vue, .css, …) or a schema (migrations, .sql) that **Touches:** does not declare fails |
| 5.5 | The eval set passes | Eval results names Run and Results files. The captured run binds dataset/results digests, every case has one boolean result, computed pass rate reaches threshold, every must-pass passes; model verifies execution/rubric correspondence |
| 5.6 | The plan was accepted before the build, and could be understood | ## Plan has **In plain words:** and **Accepted:** with who (quoting their words where the person log exists) and an actual ISO timestamp; ## Seams has at least one row, each with its interface, where tests sit and a plain-words line; the Slices table has a Files column; ## Risks has at least one row |
| 5.7 | The build followed the plan | Model confirms acceptance preceded implementation, and the final diff matches the plan or the plan records each deviation with its reason |
| 5.8 | A guardrail runs Verify | TECH.md has **Guardrail:** naming the file of the CI job or pre-commit hook that runs Verify on every change, not "none"; the file exists and holds a Verify command. **Guardrail:** declined by {person} ({why}), {date} is a warning, not a pass: on a repository whose CI belongs to someone else, adding it is their decision |
| 5.9 | The built interface was looked at | PLAN.md → ## Interface review: **Widths:** naming two widths (the widest and the narrowest the ICP uses), and a table (State / Screenshot or route / Matches the chosen direction) with a row for each of the six states of the primary flow (empty, loading, partial, error, success, permission), each with screenshot files that hold a real image (one capture per state, at a width the review names) or routes, or not applicable, {reason} for a state the flow does not have, each answering yes (a deviation is fixed, or recorded in SPEC.md → Design and then yes); when SPEC.md → Design → Messages has rows, **Messages received:** says how each was received from the built product, with its capture. On the change track, empty and error at one width. Skipped when the visual direction is not applicable; **Interface review:** not applicable, {reason} passes |
| 5.10 | Quality a machine can check runs every time | TECH.md → **Quality checks:** names accessibility, end-to-end on the primary flow, dependency audit, secret scan and static analysis, and the guardrail file named in 5.8 runs each one (its tool or its name appears there); with an interface, a token check (raw colours and spacing outside the token file fail); once TECH.md → ## Design system has a kit, visual regression on the primary flow. declined by {person} ({why}) is a warning, as in 5.8 |
| 5.12 | Someone who did not build it reviewed the craft | ## Craft critique: **Run by:** (a separate agent given only SPEC.md → Design, the voice, the captures and the reference screens, or a person who did not build it) and a table (Aspect / Finding / What happened) with a row each for hierarchy, spacing rhythm, typography, copy against the voice, focus states, motion with reduced motion, interaction states, and next to the references; every row has a finding and what happened to it (fixed, or recorded in SPEC.md → Design); "none found" counts on a row, and a table where every row is a bare "none found" fails: say what was looked at. Skipped with 5.9 |
| 5.13 | Someone who did not write it reviewed the security | ## Security review: **Run by:** (a separate agent given the diff, the threat model and TECH.md, or a person who did not build it) and a table (Area / Finding / What happened) with a row each for access control, input handling, secrets and configuration, abuse limits and data exposure; every row has a finding and what happened to it; a table of bare "none found" fails, as in 5.12. Skipped when the threat model is not applicable |
| 5.14 | The performance budget was measured | ## Performance: a table (Measure / Budget / Measured / Within budget / Evidence), each row with numbers in budget and measured, "yes" within budget, and a captured run whose command measures something (not echo) and whose output holds the measured number, or a data tag; with an interface, a page-load row (largest contentful paint, interaction to next paint or layout shift). Skipped when the spec's quality bar says performance does not apply |
| 5.11 | The next session can find its way in the code | TECH.md has ## Map (where the entry points, modules, tests and generated files are, one row each) or "not applicable, {reason}", and every path named in the map, in AGENTS.md and in CLAUDE.md exists |
| 5.15 | The feature was seen working | PLAN.md → ## Demo (delivery-discipline (demo)): **Test:** names the end-to-end test that walks the flow, a file with content; **Run:** a captured passing run of that test (the command or its output names it) (or, on the floor, **Recorded by:** the person who recorded the screen); a table (Flow / Recording / Shows) with the primary flow, and First day on the product track, each recording an https:// link, a video file that exists, or at least two step screenshots that hold real images, each with what it shows; a recording git would commit fails, because media stays out of the codebase (.builderos/media/ is git-ignored). Skipped when the visual direction is not applicable, and on the change track when it is inherited; **Demo:** not applicable, {reason} passes |
| 5.16 | Production exists before the release | TECH.md → ## Environments has a production row with an https:// URL, how it deploys and who can see it, and **Production check:**: a passing run-check capture whose command calls the production host (a request, not echo), or the person's observation with a data or doc tag. On the product track also **Domain:**, **Secrets:**, **Email sender:**, **Live keys:** and **Legal pages:** (each may say not applicable with why). On the feature and change tracks a missing record is a warning (release-ops (production)) |
| 5.17 | A person tried what was built | TECH.md → Verify has a Run row; ## Tried has **Link:** (a preview URL or the Run command in backticks), **Tried by:** naming a person, not the agent, with the date and their words in quotes, and a table (What they tried / What they found / What happened) with at least one row, each with what they found and what happened to it. Skipped with 5.9 when there is no interface. A warning on the build track: the users try it at the release stop |
| 5.18 | Every finished slice was reported | LOG.md → ## Reports has one ### {slice} per slice marked done in PLAN.md → Slices, each with **Did:** in plain words, **Try:** naming something to open (a URL, a file, a command in backticks) and **Seen:**, a screenshot or short video of it working in the running app (a file that exists, or an https:// link such as the pull request carrying it) or nothing to see: {why}. A warning while no slice is marked done |
| 5.19 | The code stayed maintainable | Model-judged on the diff against SPEC.md → ## Maintainability: code where Structure: puts it, no dependency outside Dependencies:, what Simple to change: names still changes in one place, no dead code or copy-paste left behind |
| 5.20 | What was tried by hand had nothing to damage | Model-judged, only when 5.1 has by hand: rows: none of those criteria touches one customer's data reaching another, money, an action leaving the product or its approval, a migration, or outside text reaching a model. One that does needs a test |
Attested (the script checks the record, not the event): 5.16 with an observation, 5.17, 5.18.
A captured run whose command only prints or exits (echo, true, printf, cat, …) checks nothing and fails wherever a run is evidence.
Build track. The build runs the way a small team ships: each slice seen working (5.18 → Seen), tests where a break does damage (5.1, 5.20), the people try it at the release stop (5.17 warns). The machine checks stay (5.8, 5.10: they run in CI on every change, with an end-to-end test per primary flow, the net against regressions a screenshot cannot be), and 5.9 looks at empty and error at one width. 5.12, 5.14 and 5.15 are skipped, and 5.13 unless SPEC.md → **Touches:** names personal data, permissions or money (or says nothing). 5.6 asks for the person's go on the slices (**Accepted:**) and a Files column; seams, risks and the plain-words summary are written where they help.
Change track. The change always owes 5.1, 5.2, 5.4, 5.6, 5.7 and 5.18 (and 5.3 and 5.5 when its spec tracks events or has model output). From SPEC.md → **Touches:**: interface 5.9, 5.12, 5.15, 5.17; copy 5.17; personal data, permissions or money 5.13. 5.8, 5.10, 5.11, 5.14 and 5.16 are skipped: the product already runs, and its guardrail is the feature track's concern.
Script-decided: 5.1, 5.3, 5.4, 5.6, 5.8, 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15, 5.16, 5.17, 5.18. 5.2 and 5.5 fail deterministic prechecks when execution records/results are missing or failed, then become model-judged for coverage and provenance. Model-judged: 5.7, 5.19, 5.20. The emitted checked_by split is authoritative.
Pre-existing Failures
A product with history often has a suite that was red before this initiative touched it. Fixing those tests is scope creep (5.4); pretending they pass is fiction. Gate 5.2 then reads the final run against the baseline instead of demanding exit 0:
## Test baselinenames a captured**Run:**from before any change, and that run failed;## Pre-existing failureslists each failing test by the name the baseline log prints, one row each;- the final run fails no more often than the baseline, and every listed name was in the baseline log;
## Test outputadds**Mapped run:**, a captured run of the mapped tests alone, exiting 0.
Then 5.2 becomes a judgment: confirm no new failure hides among the old ones. A green baseline turns every failure into a new one. Repairing a pre-existing failure is its own change initiative, or a recorded deviation in the plan.
Execution Evidence
Run checks only when the user has authorized the underlying command; checking the gate never runs them.
node scripts/bos.mjs run-check --label unit-tests -- pnpm test
node scripts/bos.mjs run-check --label evals --dataset evals/cases.jsonl --results evals/results.json -- node evals/run.mjsThe script prints **Run:** .builderos/initiatives/{slug}/evidence/runs/{label}-{timestamp}.json. Put that line under ## Test output, or under ## Eval results with **Results:** evals/results.json. Result JSON is an array such as [{"id":"1","pass":true}], one result per dataset case. The check records argv, cwd, timestamps, exit code, log and digest; eval captures also record dataset and result digests. Any failed precheck blocks advancement without an explicit logged override. These editable local records detect drift, not adversarial fabrication; coverage and provenance remain model judgments. External runner evidence is unverified by this recorder: retain its raw source and explain the gap; never fabricate a bos-run-check record or rerun unauthorized work to close it.
Gate 6: Shipreferences/gate-6-ship.md
Read when running gate 6. E.1, E.2 and the procedure in SKILL.md apply too. Acceptance: whoever can authorize exposure, recorded as **Authorized by:** in Exposure verification (gate 6.8), and record 6 --accepted-by "who" (SKILL.md, Acceptance).
| # | Condition | Check |
|---|---|---|
| 6.1 | Rollback path documented | Named mechanism, named owner, tested once |
| 6.2 | Baseline captured before exposure | Capture timestamp precedes the actual Exposed at timestamp, never a planned rollout date |
| 6.3 | Measurement exists | Dashboard or saved query for the success metric |
| 6.4 | Release notes written for the audience | Addressed to users or buyers, not a commit list; **Help:** says where users find answers and what changed there |
| 6.5 | Outcome review scheduled | Owner and date; --review-due matches the artifact |
| 6.6 | Exposure observed | Exposure verification has Status: verified, non-future ISO Exposed at, Environment, Version, and an observed Verification result with resolving data/doc evidence |
| 6.7 | Exposure evidence proves availability | Model confirms intended behavior is available to users in the stated environment/version |
| 6.8 | Exposure was authorized by a person | Exposure verification names **Authorized by:** with who and how (the message, the ticket, the approval), quoting the person's words where the person log exists |
| 6.9 | What it settled outlives the folder | Every entity in SPEC.md → Design → Domain model → Entities appears in the project's DOMAIN.md; a visual direction chosen here (not inherited, not "not applicable") is in TECH.md → ## Design system with **Kit:** and **Tokens:** (where the tokens live in the code) |
| 6.10 | Production is ready for its first incident, and for its stage | ## Production readiness has **Errors seen by:** (how an error reaches the team before a user reports it) and **Backup restored:** (a restore tested once, with the date, or "not applicable" with why), and with model output **Agent traces:** (where every turn and tool call is kept, and who reads a sample how often). TECH.md → ## Operations has **Privacy:** always, **AI disclosure:** when the spec declares model output, and after PMF (emerging-PMF, scaling) **SLO:**, **Incident response:**, **Cost per active user:** and **Load tested:** (the date, the load at ten times the expected peak from the architecture's capacity, and the result), plus **Model degradation:** with model output (the must-pass cases run on sampled production turns, how often, and the threshold that alerts). These are product facts written once, not per release |
| 6.11 | Someone is using it (product track) | ## First real use cites a data or doc tag: a person outside the team did the primary action. Online is not in use. Skipped on the other tracks, where exposure reaches existing users |
| 6.12 | Someone paid (product track, for sale) | ## First payment cites a data or doc tag: a customer outside the team paid. Skipped when PRODUCT.md says not for sale and on the other tracks |
| 6.13 | A person chose the rollout | **Chosen by:** under ## Rollout names who chose the strategy from the decision card; never the agent |
| 6.14 | The launch is planned (feature and product tracks) | ## Launch (go-to-market) has **Who hears first:**, **Message:**, **Channels:**, **When:** and **Measured by:**, the event that tells arrivals from each channel apart. Skipped on the change track |
Attested (the script checks the citation and its file, not the event): 6.11, 6.12. Without a first payment, the honest outcomes are record 6 --kill, or an override that waives 6.12 alone (--waive 6.12) with the person's reason.
Script-decided: 6.2, 6.3, 6.5, 6.6, 6.8, 6.9, 6.10, 6.11, 6.12, 6.13, 6.14. Model-judged: 6.1, 6.4, 6.7.
Change track. A change whose RESULT.md → Release has no Baseline, Measurement or Outcome review section skips 6.2, 6.3 and 6.5, records without --review-due, and closes at phase 6. A change that sets an outcome review runs 6.2 to 6.5 and goes to phase 7. The emitted checked_by split is authoritative.
Internal track. 6.11, 6.12 and 6.14 are skipped: the users are the team, nobody pays, nothing is announced outside. 6.4 asks whether the people named under Users: know what changed and where to look when it breaks. As on the change track, a release with no Baseline, Measurement or Outcome review section skips 6.2, 6.3 and 6.5, records without --review-due and closes at phase 6; one that sets a review measures Today: again before exposure and goes to phase 7.
Recording. Phase 6 passes the artifact's outcome review date with --review-due.
A ready release stays at phase 6 and emits RELEASE READY. SHIPPED requires the exposure conditions.
Gate 7: Learnreferences/gate-7-learn.md
Read when running gate 7. E.1, E.2 and the procedure in SKILL.md apply too. Read the override log (SKILL.md, Override Protocol) when judging the outcome: a bet that failed after three overridden gates learned something different from one that failed clean.
| # | Condition | Check |
|---|---|---|
| 7.1 | Actual vs. target stated | Both source-tagged, compared explicitly |
| 7.2 | Kill criteria evaluated | The Phase 3 threshold checked against the actual, verdict stated |
| 7.3 | Decision recorded | KEEP / ITERATE / KILL; Re-enters at: phase 0-6 or none. ITERATE requires a phase, KILL requires none; CLI decision/re-entry must agree |
| 7.4 | Generalized learning | One sentence that outlives the feature, written into decisions/ |
| 7.6 | Cleanup is scheduled | **Cleanup:** under the decision: after KEEP, the flag and the old code path to remove; after KILL, the shipped code to remove (as a change initiative); with an owner and a date. none only with its reason |
| 7.5 | A closing KEEP sets a watch | When the decision is KEEP with Re-enters at: none, ## Watch names the metric, the bands, the owner and a valid recheck date. Skipped for ITERATE, KILL and a KEEP that re-enters |
| 7.7 | A person made the decision | **Chosen by:** under the decision names who chose keep, iterate or kill, from their answer; the agent compares and recommends |
| 7.8 | The go-to-market is read (feature and product tracks) | ## Go-to-market read (go-to-market): a row per channel with a tagged result, or "unavailable" with its question; on the product track **Stage:**, the PRODUCT.md stage with the Stage exit met or missed (Signal, Resonance and Orbit name the same stages). Skipped on the change track |
Build track. Phase 7 runs only when the release set an outcome review. The target is BRIEF.md → Request → Done when:; 7.8 is skipped. KILL is a real outcome: a tool nobody opens after two weeks goes, and the routine it replaced comes back.
Script-decided: 7.1, 7.2, 7.3, 7.5, 7.6, 7.7, 7.8. Model-judged: 7.4. The emitted checked_by split is authoritative.
Recording. Phase 7 passes keep|iterate|kill, matching its heading and Re-enters at field. iterate requires --reenter 0-6, kill prohibits it, and keep permits either an explicit re-entry or none.
Deferring. A review waiting for enough observations stays at phase 7 without a KEEP/ITERATE/KILL verdict:
node scripts/bos.mjs defer-review --review-due 2030-01-31 --reason "Need a complete observation window"Use the actual next review date and evidence gap, not the example date. A deferral records review_deferred, preserves phase 7, and keeps reminders tied to review_due.
Lite Modereferences/lite-mode.md
Read when state.json sets mode: "lite".
state.json may set mode: "lite" for small features. Lite mode keeps every hard condition (evidence thresholds, kill criteria, test mapping, rollback, baseline) and drops the elaboration conditions: 2.1 relaxes to ≥2 opportunities, 3.1 to ≥2 options, 3.5 to ≥5 raw ideas, 3.9 to two quick estimates, 4.9 to ≥2 design versions, 3.16, 4.5, 4.20 and 6.4 become warnings rather than failures.
Lite mode never relaxes: E.1 to E.5, 1.1, 1.3, 2.3, 2.4, 2.6, 3.2, 3.6, 4.7, 4.8, 4.10, 4.11, 4.12, 4.13, 4.16, 4.17, 4.18, 4.19, 4.21, 5.1, 5.2, 5.3, 5.5, 5.6, 5.8, 5.9, 5.10, 5.12, 5.13, 5.14, 5.15, 5.16, 5.17, 5.18, 6.1, 6.2, 6.8, 6.9, 6.10, 6.11, 7.3, 7.5, 7.6, nor the acceptance at phases 0, 4 and 6. It lowers the 4.6 case count, never the threshold. Those are the conditions that prevent building on fiction.
Mandate Check (change track)references/mandate-check.md
Read when initializing work classified as change. E.1 to E.4 apply too, against CHANGE.md → Request.
Runs once, at initialization, when the work is classified as change: a modification to a product that already exists whose reason and solution were decided before BuilderOS saw it. A bug with an obvious correct behavior, debt the team agreed to pay, a rule the product must now follow, a contract that promised a specific capability, a removal already decided. It stands in for gates 0 to 3: the mandate replaces the problem frame, the discovery, the outcome metric and the bet, because nobody has a choice to make there. It does not replace anything after: the spec, the build and the release run their gates in full.
CHANGE.md in the initiative folder: the one document of a change. The thread on top, then the Request part with the mandate; the spec, the plan and the release add their parts below it (# Design only when the interface changes).
# Change: {title}
**Building:** {one sentence: what this change does, in the words of the person who asked}
**Why:** {one sentence: the mandate in plain words, with its tag}
**For:** {who uses it, in the person's words}
**Done when:** {what the person will see or be able to do when it is done}
**Not:** {what it must not do or become}
# Request: {title}
## Request
{the request, verbatim, with who made it}
**Evidence:** {tags of the ticket, contract clause, regulation, error report or team decision, each with its file in evidence/}
**Population:** {who is affected: one account, a segment, everyone}
## Mandate
**Kind:** bug | debt | compliance | contract | request | removal
**Why no bet:** {what already fixed the solution, in one or two sentences}| # | Condition | Check |
|---|---|---|
| M.1 | The mandate has a source | Evidence has a data, interview or doc tag and Population is filled. Only the requester's own words is a warning |
| M.2 | The kind is named | Kind is one of bug, debt, compliance, contract, request, removal |
| M.3 | Why there is no bet | Why no bet says what already decided the solution |
| M.4 | Nothing is left to choose | The solution is fixed by the mandate: there are not two reasonable ways to solve it, and users will not meet it as a new behavior they would have to be won over to. A request passes only when the requester specified the exact behavior and nobody needs to decide whether it is worth building |
Script-decided: M.1, M.2, M.3. Model-judged: M.4. The emitted checked_by split is authoritative.
Where commands run: scripts/bos.mjs gate M first (it only reads), fix drafting errors, judge M.4, then scripts/bos.mjs cover --m4 "what fixes the solution". Pass: phases 0 to 3 are written covered, one phase_covered event each with the request's tags, and the pipeline starts at phase 4 in lite mode. If you judge M.4 a fail, do not call cover: run scripts/bos.mjs upgrade --to feature --reason "...".
Fail: the work is a feature, still at phase 0, and runs the feature coverage check next. Not a penalty: a change that needs a choice between solutions needs phase 2 and 3 to make it.
What a change still owes. Six things, whatever it touches: scope with **Touches:** (4.2), testable criteria (4.1), the impact on what it touches (4.11), the criteria mapped to tests (5.1) green against the baseline (5.2), the scope check (5.4), and a release with its rollback (6.1). The accepted plan (5.6, 5.7) holds as on every track. What it touches calls in the rest, listed in gate 4 and gate 5, Change track: a label rename owes one page per phase, a data migration owes the domain and the architecture. Phase 6 skips baseline, measurement and outcome review when the release declares none, and the initiative closes there; a change that sets an outcome review goes to phase 7 like any other.
| Mistake | Why it fails | Correct |
|---|---|---|
| "The CEO wants it" as the mandate for a new feature | The solution is not fixed, only the wish | A feature: phase 2 asks what it should move |
| A redesign filed as debt | Users meet it as new behavior | A feature with design versions |
| A bug fix with two plausible correct behaviors | Someone has to choose | Ask the round question in phase 4, or upgrade if the choice changes what the product is for |
Need Check (build track)references/need-check.md
Read when initializing work classified as build (named internal before 3.8.0). E.1 and E.2 apply too, against BRIEF.md → Request.
Runs once, at initialization, when the work is classified as build: the person knows what they want to build and for whom (themselves, their team, a client, the users they describe), and only how to build it is open. It stands in for gates 0 to 2: a pressure test on what to build and where to focus (N.7) and the person's account of the job replace the frame, the discovery and the outcome metric. Discovery runs only when the person asks for it, and then the work is a product. It does not replace anything after: phase 3 explores the solution feature by feature, and the spec, the build and the release run their gates. Phase 7 runs only when the release sets an outcome review, as on the change track.
BRIEF.md in the initiative folder, as on the feature track: the thread on top, then the Request part with the need:
# Brief: {title}
**Building:** {one sentence: what this initiative builds, in the words of the person who asked}
**Why:** {one sentence: the problem it removes or the result it moves, with its tag}
**For:** {who uses it, in the person's words}
**Done when:** {what the person will see or be able to do when it is done}
**Not:** {what it must not do or become}
# Request: {title}
## Request
{the need, verbatim, with who said it}
**Evidence:** {tags of the builder's own account, a timing log, the sheet or the script it replaces, each with its file in evidence/}
**Population:** {who uses it}
## Need
**Job:** {the job the tool does, in the words of the person who does it}
**Users:** {who will use it: you, your team, a client's people, or the users you are building it for}
**Today:** {how the job is done now: minutes or hours per run and how often, tagged; an estimate from what you were told is enough to start}
**Done when:** {the result the builder will see, with a number and a date: the job in 15 minutes instead of 90, by 2026-12-15}
### Steps today
1. {who does what, in the tool they use now}
2. {the next step, breaks: where the time goes, the errors, the waiting}
3. {…}| # | Condition | Check |
|---|---|---|
| N.1 | The need has a source | Evidence under Request has a data, interview or doc tag. The builder's own words, saved per evidence-ledger, are first-hand here: the requester is the user |
| N.2 | The users are named | Users names who will use it |
| N.3 | Today is counted | Today has a number (time per run, runs per week, errors per month) and a tag. Drafted by the agent from what it was told, never asked as a questionnaire: an estimate or assumption tag warns, to be measured before the release; a data, doc or interview tag passes. It is the baseline a release with an outcome review captures again |
| N.4 | Done is a result with a date | Done when has a number and a date. It is the success metric and the target for phase 4's tracking plan (4.4) and, when it runs, phase 7 (7.1) |
| N.5 | The idea is clear | The person knows what to build and for whom, only how to build it is open, and nobody asked to prove the problem first. A problem still unproven, a request for discovery, or no idea yet of what to build is a product |
| N.6 | The job is understood step by step | ### Steps today under the Need lists at least 3 numbered steps (who does what, in which tool) and at least one marked breaks: with where the time, the errors or the waiting are. It is the depth a discovery would give, from the people who do the job and their materials in one session; a real discovery runs only when the person asks for one |
| N.7 | Pressure-tested | grilling.md in the initiative folder ends with ## Context brief carrying Goal:, Decided:, Out of scope: and Next step:: the interview on what to build, for whom, what the first version does and leaves out, and what makes it the best, run until the frontier is empty (pressure-testing, Done) |
Script-decided: N.1 to N.4, N.6 and N.7. Model-judged: N.5. The emitted checked_by split is authoritative.
Where commands run: scripts/bos.mjs gate N first (it only reads), fix drafting errors, judge N.5, then scripts/bos.mjs cover --n5 "why the users are the team and only the how is open". Pass: phases 0 to 2 are written covered, one phase_covered event each with the tags of Request and Need, and the pipeline starts at phase 3 in lite mode. If you judge N.5 a fail, do not call cover: run scripts/bos.mjs upgrade --to product --reason "...".
Fail: the work is a product, in full mode, at phase 0. Fix a drafting error before cover (a missing number in Today you can ask for in one line); the first failure cover records is final.
What changes after the check. Gate 3 maps the features (3.5) and values each option in time instead of money (business-case, Internal Tools): hours saved a week against days to build, and Not building:, the best way of not building it and why it loses; 3.7, 3.8, 3.10 and 3.11 are skipped, and 3.13 too unless PRODUCT.md names a revenue model: a product for sale plans how buyers arrive. Gate 4 needs one visual version, or the look inherited or not applicable for a tool with no screen. Gate 6 skips the launch, first outside use and first payment, and its release note is for the people named in Users. A release with no Baseline, Measurement or Outcome review section skips 6.2, 6.3 and 6.5 and closes the initiative at phase 6; one that sets a review goes to phase 7, which compares against Done when and skips the go-to-market read. Everything else holds: kill criteria (checked at the review when there is one), the cheapest test when it can change the decision, the stake, the spec, the threat model (a tool often holds credentials and client data), the accepted plan, the tests, the rollback.
Ratchet. Build work moves only to product, when the person asks to prove the problem or the market first (upgrade --to product). On a project whose PRODUCT.md revenue model reads "not for sale, …", a change whose mandate check fails becomes build, not feature.
| Mistake | Why it fails | Correct |
|---|---|---|
| "I think people have this problem" filed as build | The problem itself is the open question | A product, or a spike to answer it |
| Today written as "slow" | Phase 7 has nothing to compare against | A number: "90 minutes, four times a week", timed once if unknown |
| Skipping phase 3 because the builder already pictures the solution | The picture is one option; the cheap one is often a script or an existing tool | Three options, one of them not building |
skills/gate-checks/SKILL.mdView on GitHub