BuilderOS

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.

  1. Check for existing state. If .builderos/ exists, the project is initialized: go to step 6. If a schema: 1 file sits at .builderos/state.json, migrate it first per the schema's Rules and say what moved.
  2. Migrate, do not re-ask. If PM-CONTEXT.md exists, pre-fill every field it covers and ask only for what is missing.
  3. 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's PRODUCT.md is 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; ## Business with 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.
  4. Defaults, announced, not asked. Mode: lite on feature, change and build, full on product and spike (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.
  5. Scaffold (first run only). Where commands run, scripts/bos.mjs init creates the .builderos/ folders, an empty WORK.md and the .gitignore lines; the files below stay yours to write. PRODUCT.md; DOMAIN.md from the repository when it holds entities (schemas, migrations, status enums), otherwise the heading only; TECH.md from the repository when readable, otherwise from the user ("no code yet" is a valid answer; its Stack layers stay open, decided with the user in phase 4 by system-design (stack), never filled with a guess), including its Verify commands: one each for build, test and lint, plus Run (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 in PRODUCT.md and TECH.md (an answer from the user is tagged [doc:user-{date}-{topic}] and saved as evidence/user-{date}-{topic}.md, the tag id without its class, with the user's words copied in). On a product that already runs, write TECH.md → ## Environments from 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). Write TECH.md → Map from the repository (entry points, the modules, where tests live, generated files; "not applicable, no code yet" for a new product), then run agents-md to add the BuilderOS block from the schema's Session Start section to the project's AGENTS.md and CLAUDE.md (create either if absent) and prune what is already there, and copy the script into the project with scripts/bos.mjs vendor where commands run, so sessions without the plugin still brief and gate; show the user the block. Add .builderos/local.json and .builderos/media/ (recordings, kept out of the codebase) to .gitignore. Where commands run, scripts/bos.mjs page writes .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.
  6. 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}/ with evidence/ and a schema-conformant state.json, pauses the previously active initiative, writes local.json and 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.
  7. Classify the track per Tracks below and say it out loud with the reason before anything else runs. On feature and change, write the request in the initiative folder first, yourself and without asking (CHANGE.md on a change, BRIEF.md otherwise, 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 on change the 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. On feature, run the coverage check in gate-checks against PRODUCT.md and the request: where commands run, scripts/bos.mjs gate C first (it only reads), fix what is a drafting error per gate-checks, judge C.4 yourself, then scripts/bos.mjs cover --c4 "how the request serves the evidenced problem" decides the rest and writes the result either way. Pass: phases 0 and 1 covered, start at phase 2. Fail: name the condition, the track becomes product, start at phase 0. On change, run the mandate check the same way (gate M, judge M.4, cover --m4 "what fixes the solution"). Pass: phases 0 to 3 covered, start at phase 4. Fail: the track becomes feature and the coverage check runs next. On build, pressure-test what to build and where to focus first (pressure-testing, until the frontier is empty, the context brief in grilling.md, gate N.7), then write the Need in BRIEF.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 2 covered, start at phase 3. Fail: the track becomes product. spike and product start at phase 0.
  8. Update the roadmap. The initiative sits under Now with its track, starting phase, one-line bet and folder (the script's roadmap regenerates the table).
  9. 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".

TrackThe requestRunsEnds
spike"Is X worth doing?", "does anyone actually have this problem?" The output is an answer, not a productPhases 0 and 1The phase 1 verdict is the answer. Status answered, pipeline stops
changeA 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 requestMandate check, then phases 4 to 6; phase 7 only if the release sets an outcome reviewPhase 6, or phase 7 when it measures something
buildThe 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 itPressure test and need check, then phases 3 to 6; phase 7 only if the release sets an outcome reviewPhase 6, or phase 7 when it measures whether it worked
featureA 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 itCoverage check, then phases 2 to 7Phase 7, like any pipeline
productThe 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 runPhases 0 to 7Phase 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 spike stops with status answered. Building requires the user to authorize a subsequent feature/product initiative; reuse the evidence while preserving the answered spike history.
  • A change upgrades to feature when 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 "...".
  • build work upgrades only to product, when the person asks to prove the problem or the market first. Selling it does not by itself: the go-to-market runs inside build once PRODUCT.md names a revenue model. A change on a product not for sale (PRODUCT.md revenue model "not for sale, …") whose mandate check fails becomes build, not feature.
  • A feature upgrades to product when 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, log track_upgraded with 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.

Generated from references/lifecycle-setup.mdView on GitHub