Lifecycle Setup
Read when initializing an authorized initiative, switching initiatives, or changing a track. Resource paths resolve from the installation root per operating modes. A standalone document or analysis uses supplied inputs without initialization.
Initialization
Runs when .builderos/ does not exist yet, and again for every new initiative after the first. The first run creates the project memory: product truth, technical context, the roadmap, and the pointer that makes every future session read them. Later runs add an initiative. Template at PRODUCT.md template, schema at state schema, the WORK.md, TECH.md and DOMAIN.md formats in memory templates, tagging per evidence-ledger.
- Check for existing state. If
.builderos/exists, the project is initialized: go to step 6. If aschema: 1file sits at.builderos/state.json, migrate it first per the schema's Rules and say what moved. - Migrate, do not re-ask. If
PM-CONTEXT.mdexists, pre-fill every field it covers and ask only for what is missing. - Draft
PRODUCT.md, do not interview for it. Fill every field from the user's sentence,PM-CONTEXT.md, the README, docs and the repository, each with its tag. A field nothing answers is written[assumption:unvalidated]with what would settle it; a new product'sPRODUCT.mdis mostly that, which is the correct starting state. A product that already has users is different: its evidence exists, just not on file. Before writing those fields as assumptions, harvest it per the coverage check (tickets, analytics, call notes, reviews, the user's account), saving each source as an evidence file. Fields: name and one-sentence purpose; the problem without solution language; primary ICP and how they solve it today; at least three non-goals; constraints (technical, regulatory, resource, distribution); voice, two or three adjectives each with a counter-example; existing data sources;## Businesswith the stage, the revenue model (or not for sale), the growth engine and the Stage exit, each tagged or written as an assumption, so phase 3 prices and channels the same product instead of inventing them. The open fields become questions only when the starting phase needs them, inside that phase's first round. - Defaults, announced, not asked. Mode:
liteonfeature,changeandbuild,fullonproductandspike(lite relaxes elaboration conditions on gates 2, 3, 4 and 6, never evidence, kill criteria, test mapping, rollback or baseline)..builderos/is committed. State both in the report with how to change them in one word; ask only when the user's words already contradict a default. - Scaffold (first run only). Where commands run,
scripts/bos.mjs initcreates the.builderos/folders, an emptyWORK.mdand the.gitignorelines; the files below stay yours to write.PRODUCT.md;DOMAIN.mdfrom the repository when it holds entities (schemas, migrations, status enums), otherwise the heading only;TECH.mdfrom the repository when readable, otherwise from the user ("no code yet" is a valid answer; its Stack layers stayopen, decided with the user in phase 4 bysystem-design(stack), never filled with a guess), including its Verify commands: one each for build, test and lint, plusRun(the command that starts the product locally), found in the manifests and CI configuration, with their healthy output recorded when running them is authorized;.builderos/decisions/;.builderos/evidence/with one file per source behind every tag inPRODUCT.mdandTECH.md(an answer from the user is tagged[doc:user-{date}-{topic}]and saved asevidence/user-{date}-{topic}.md, the tag id without its class, with the user's words copied in). On a product that already runs, writeTECH.md→## Environmentsfrom the deploy configuration and the host (production and preview URLs, how each deploys, who can see it; gate 5.16 warns until it is there). WriteTECH.md→ Map from the repository (entry points, the modules, where tests live, generated files; "not applicable, no code yet" for a new product), then runagents-mdto add the BuilderOS block from the schema's Session Start section to the project'sAGENTS.mdandCLAUDE.md(create either if absent) and prune what is already there, and copy the script into the project withscripts/bos.mjs vendorwhere commands run, so sessions without the plugin still brief and gate; show the user the block. Add.builderos/local.jsonand.builderos/media/(recordings, kept out of the codebase) to.gitignore. Where commands run,scripts/bos.mjs pagewrites.builderos/index.html, the page the person opens or sends to see the project: a timeline, then open decisions and what they block, in progress, next, done. Every state change and every session briefing regenerates it; nobody edits it. - Name the initiative from the user's sentence: a short title and its slug, announced and renamable. Where commands run,
scripts/bos.mjs new {slug} --title "..." --track {track} --reason "..."creates.builderos/initiatives/{slug}/withevidence/and a schema-conformantstate.json, pauses the previously active initiative, writeslocal.jsonand regenerates the roadmap. Elsewhere, write the same by hand, copying the schema's example field for field. A paused initiative is paused, not closed: say so. - Classify the track per Tracks below and say it out loud with the reason before anything else runs. On
featureandchange, write the request in the initiative folder first, yourself and without asking (CHANGE.mdon a change,BRIEF.mdotherwise, the Building: and Why: lines on top, then# Request): the request verbatim, the Evidence behind it saved as files (the ticket, the data, the customer's words, the contract clause), the Population it concerns, and onchangethe Mandate. When the user's sentence is the only source, save it as[doc:user-{date}-{topic}]and go on: C.5 warns, it does not block, and the report says which source would make it stronger. Onfeature, run the coverage check ingate-checksagainstPRODUCT.mdand the request: where commands run,scripts/bos.mjs gate Cfirst (it only reads), fix what is a drafting error pergate-checks, judge C.4 yourself, thenscripts/bos.mjs cover --c4 "how the request serves the evidenced problem"decides the rest and writes the result either way. Pass: phases 0 and 1covered, start at phase 2. Fail: name the condition, the track becomesproduct, start at phase 0. Onchange, run the mandate check the same way (gate M, judge M.4,cover --m4 "what fixes the solution"). Pass: phases 0 to 3covered, start at phase 4. Fail: the track becomesfeatureand the coverage check runs next. Onbuild, pressure-test what to build and where to focus first (pressure-testing, until the frontier is empty, the context brief ingrilling.md, gate N.7), then write the Need inBRIEF.md→ Request yourself from the person's words and the interview (the job, the users by name, how long it takes Today, an estimate when nobody timed it, Done when), never as a separate questionnaire, and run the need check the same way (gate N, judge N.5,cover --n5 "why the idea is clear and only the how is open"). Pass: phases 0 to 2covered, start at phase 3. Fail: the track becomesproduct.spikeandproductstart at phase 0. - Update the roadmap. The initiative sits under Now with its track, starting phase, one-line bet and folder (the script's
roadmapregenerates the table). - Report and start. On one screen: what was created, the initiative, the track and why, the mode, the starting phase. Then, in the same turn, run the starting phase's first round per
pressure-testing(Rounds): the user's first questions are about the problem, never about setup.
One sentence is enough to start. "I want to build X", "users drop at Y", an idea pasted with no context: when lifecycle work was requested, steps 1 to 9 run with no setup question. Every choice made for the user (name, track, mode, drafted PRODUCT.md fields) is visible in the report and correctable in one word, and nothing written is irreversible.
Starting with no evidence. A clear idea with nothing behind it is the normal start of the build track: the person's words and the pressure test are its evidence, and the depth goes to the design. When the person asks to prove the problem first, or does not know yet what to build, it is the product track, and nothing behind it is not a failure there either. PRODUCT.md is drafted with its open fields as [assumption:unvalidated], phase 0 passes without data (an unquantified cost is a legitimate assumption), and phase 1 begins with a research plan: who to talk to, the async questionnaire when nobody is reachable on a call, and the disconfirming test. Three exits stay visible, never silent: spike when the user only wants to know whether the problem is real; a recorded override of gate 1 with its reason when the user decides to build on the assumption (the briefing carries it, and phase 7 reads it against the outcome); or the evidence they already hold outside the session, imported per evidence-ledger (Evidence From Outside the Session), which is often enough to pass gate 1 the same day. On the product track the real-user session before the build (gate 4.13) still applies; one 30-minute session with the prototype counts there and as phase 1 evidence.
Initiatives
A project runs several pieces of work over its life, sometimes at once: a new onboarding in discovery while an export feature ships. Each is an initiative with its own folder, its own track, its own phase and gates. PRODUCT.md, TECH.md, WORK.md and decisions/ are shared across all of them.
One initiative is active at a time; every command acts on it. Starting a new one (initialization run again on an initialized project) pauses the current one, never closes it. Switching is explicit and named to the user: scripts/bos.mjs resume {slug}. An initiative closes at phase 7, at a kill in any phase (record N --kill with the person's reason), or at a spike's answer, and moves to Done and dropped in the roadmap with its learning.
Two initiatives touching the same part of the product is a signal, not an error: say so when the second one reaches phase 4, because their specs will collide. Two initiatives that name the same success metric is a measurement problem: say so at the second one's gate 2, because phase 7 will not be able to tell which one moved it; stagger their exposure or pick a metric each can own.
Where the code lives in git, an initiative's folder lives where its code does: Where the work lives.
Tracks
Writing the state. Where commands can run, a new initiative is created with scripts/bos.mjs new {slug} --title "..." --track {track} --reason "...", and the feature track's coverage check is recorded with scripts/bos.mjs cover --c4 "..." after you judge C.4. The script writes the state file, its history events and the roadmap exactly as the schema defines them. Write state.json by hand only where commands cannot run, and then copy the schema's example field for field.
Not every request needs all eight phases. Before the first phase runs, classify the work into a track and say the classification out loud, with its reason, so the user can correct it: "this is a change to a product that already has evidence behind it, so I'm treating it as a feature and starting at phase 2".
| Track | The request | Runs | Ends |
|---|---|---|---|
spike | "Is X worth doing?", "does anyone actually have this problem?" The output is an answer, not a product | Phases 0 and 1 | The phase 1 verdict is the answer. Status answered, pipeline stops |
change | A modification to a product that exists whose solution is already decided: a bug with an obvious correct behavior, agreed debt, a compliance rule, a contractual capability, a decided removal, an exactly specified small request | Mandate check, then phases 4 to 6; phase 7 only if the release sets an outcome review | Phase 6, or phase 7 when it measures something |
build | The default for an idea. The person knows what they want to build and for whom (themselves, their team, a client, the users they describe); how to build it is open. A pressure test on what to build and where to focus replaces the frame, the discovery and the definition; the money and the market enter only when they say they will sell it | Pressure test and need check, then phases 3 to 6; phase 7 only if the release sets an outcome review | Phase 6, or phase 7 when it measures whether it worked |
feature | A change to a product that exists, whose PRODUCT.md already carries evidence for the problem and the ICP, and where something is still to be chosen: whether it is worth it, which way to solve it | Coverage check, then phases 2 to 7 | Phase 7, like any pipeline |
product | The startup path (--track startup works too). The person starts from zero to found a company, asks to prove the problem first, does not know yet what to build, or bets money on a market nobody has evidenced: discovery and the market phases run | Phases 0 to 7 | Phase 7 |
Choose the smallest track that answers the authorized request and satisfies its evidence contract. A new idea the person can describe is build; ask nothing about tracks, say it, and switch to product in one word if they want discovery. If the distinction changes the scope materially, clarify that choice; do not expand a standalone question into a product lifecycle.
The change track exists so that small work stays inside. On a live product most requests are small: a filter, a fix, a column, a renamed setting. When the only path is a full feature pipeline, the work goes around BuilderOS instead, and the decisions it should have checked are never checked. Classify a small request with a fixed solution as change rather than asking the user to accept a pipeline they will skip. New scope that arrives in the middle of a running initiative is usually a change of its own, not an amendment to the running spec.
The coverage check stands in for phases 0 and 1 on the feature track, the mandate check for phases 0 to 3 on the change track, and the pressure test and the need check for phases 0 to 2 on the build track. gate-checks holds their conditions. Pass, and the phases are recorded covered, each with the tags that covered it. Fail, and the work moves one track up (a failed coverage or need check makes a product starting at phase 0, a failed mandate check a feature running the coverage check): say which condition failed and what it means.
The ratchet goes one way. A track upgrades when the work reveals it was heavier than classified, and never downgrades:
- A completed
spikestops with statusanswered. Building requires the user to authorize a subsequent feature/product initiative; reuse the evidence while preserving the answered spike history. - A
changeupgrades tofeaturewhen the mandate check fails, or when phase 4 finds a real choice between solutions, or a behavior users would meet as new:scripts/bos.mjs upgrade --to feature --reason "...". buildwork upgrades only toproduct, when the person asks to prove the problem or the market first. Selling it does not by itself: the go-to-market runs insidebuildoncePRODUCT.mdnames a revenue model. Achangeon a product not for sale (PRODUCT.mdrevenue model "not for sale, …") whose mandate check fails becomesbuild, notfeature.- A
featureupgrades toproductwhen a phase 2 or later gate fails because the evidence the covered phases should have supplied is missing: an opportunity that traces to nothing, an ICP that the change does not serve, a problem the phase 2 work contradicts. Re-enter phase 0, keep every artifact written so far, logtrack_upgradedwith the observation that forced it:scripts/bos.mjs upgrade --to product --reason "..."where commands run.
Stop and say so the moment an upgrade is due. Finishing the current phase on a track already known to be wrong produces an artifact built on the wrong foundation.
references/lifecycle-setup.mdView on GitHub