[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DYA6Y4E7RG49CVFZ3K6X8D":3,"skill-same:01M6DYA6Y4E7RG49CVFZ3K6X8D":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DYA6Y4E7RG49CVFZ3K6X8D","forge",null,"Run Forge, which takes a story from approval to a merged pull request. Use when the human asks what to do next, wants to plan a story, start a task or fix, build, close, save a spec or decision, add to the roadmap, check the setup, or see the board.","knacklabs\u002Fsymphony-forge","knacklabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F304408816?v=4","01M6DY9T9G3AQ6DM846DVTBD2Y","KnackLabs","01M6DY9TDZY6RJMQD6ZM773ZD3",11,"MIT","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"pull","when","request","add","close","which","check","task","use","do","save","start","run","human","next","plan","roadmap","decision","fix","2026-11-10 10:12:30",false,"---\nname: forge\ndescription: Run Forge, which takes a story from approval to a merged pull request. Use when the human asks what to do next, wants to plan a story, start a task or fix, build, close, save a spec or decision, add to the roadmap, check the setup, or see the board.\n---\n\u003C!-- Generated by forge sync. -->\n\n# Forge\n\nClose refuses a removed check together with other changes. Land the removal in its\nown fix that changes only `checks`, `test_place` and the generated workflow from\n`forge sync`. The refusal names each removed check. Merge then waits for the checks\nthat the branch and default branch share. Added checks keep their usual checks.\n\nStart with `forge next`. It says where things stand and gives the exact next command.\n\n## Guide a person with little technical experience\n\nOnly when their words leave the work unclear, ask one short question about their work and part in it: are they showing a customer an idea, finding out what a customer needs, or building the real app? Ask about the work, not their job title. Take that path when they answer. Never wait for the answer: choose the likeliest path, say which you chose, and continue. Store nothing and add no setting.\n\nLead in plain words. Tell the person where they are, what you will do next, and what\nyou need from them. Use everyday words instead of Forge's terms or commands with\nthis person. Ask for their idea or client notes first, not the sign-off answers.\nAfter a break, read the saved notes and run `forge next`, then explain the current\nstep and continue from it. Do not ask the person to repeat answers you already have.\nShow the design on a screen share by default. Share a link only if the person chooses.\nWhen stuck, retry a safe step after you check what already happened. Never repeat\nan action that can lose data or create a second item. If you cannot recover, write\na plain message for the named developer: the goal, what stopped, what you tried,\nthe repo link, and what help you need. Let the person send it.\n\nFor a sales demo, save transcripts in `docs\u002Fcontext\u002F`. Mark each point from a transcript\nas \"Heard from the customer\" and name its transcript. Keep your guesses separate.\nFor a Sales person with a company's name and website, research the company and propose one prototype before the design (see Discovery).\nUse Claude for the design. Require impeccable and emil-design-eng from the first\ndesign onward, for both the Claude design artifact and the browser-only web app.\nThen build a browser-only web app with fake data, no server, no database, and no\nsign-in. Label extra features\n\"Demo only\". Put this line on the demo: \"This demo uses sample data. Its features are\nnot commitments.\" Never put real customer data in a demo, because anyone with its\nlink can open it. Deploy through Mainline from the GitHub repo only when the person\nasks. Follow the Mainline setup and deployment rules below.\n\nWhen the customer converts, write one handover page in the repo for the named FDE\n(the developer who will work with the customer). Include the customer, what they\nliked, what you showed, and what the FDE must confirm. Tell the person where the\npage is. The FDE decides for each feature to use it, change it, or build it from\nscratch. Anything that goes into real use gets the normal tests and review.\nConversion is not the client sign-off. The FDE continues discovery and gets that\nsign-off through the normal flow.\n\nMainline Deploy is available to install through the organization's plugin catalog. Do not assume\nthat the plugin and MCP are installed or that the user is signed in.\nUse Mainline Deploy only when the user explicitly requests deployment. First check whether it is\ninstalled in the current host. If it is missing, use the organization's plugin catalog and the\nhost's installation flow. Do not invent an installation command or marketplace address.\nThen follow the Mainline Deploy skill. Check OAuth sign-in and have the user complete it if needed.\nWait for successful authentication before deployment. Installation alone does not mean the user is signed in.\nDeploy only the requested app to the requested environment. A build, fix, merge, ship\u002Fland request,\nsuccessful test or review, demo preparation, or Forge next step does not by itself authorize deployment.\nDo not install Mainline or start OAuth sign-in for those requests. An explicit request such as\n\"deploy this to staging\" or \"publish this on Mainline\" needs no separate routine deployment approval.\n\nOur deploy platform reads `services.toml` at the repo root: one `[[service]]` per service,\nwith `name`, `dockerfile`, `port`, `health`, `expose` (`main`, `subdomain` or `internal`) and,\nwhen needed, `subdomain` and `command`, and `mcp` with the path of the service's MCP server;\ndeploy.md in Forge's conventions has the details.\nClose refuses a list that names a Dockerfile the branch does not have or does not have\nexactly one `main` service. When a client repo has a Dockerfile and no `services.toml`, write\nit before the first deployment the owner asks for: one service per Dockerfile the app runs,\nthe port from its `EXPOSE` line and the health path from the code. Show it to the owner and\nask with options: confirm it, or change a service's exposure. Then merge it in a fix. The\nowner picks the main subdomain on the platform, so the list does not hold it.\nIn a starter app, the API service has mcp = \"\u002Fmcp\".\n\nThe first deployment that the owner asks for in a client repo is its deploy setup, and that\nrequest is the explicit request above. Follow the installed Mainline Deploy skill in this\norder, and skip a step that is already done:\n\n1. Have the owner sign in in the browser with Google or GitHub, and wait until the sign-in\n   succeeds.\n2. Connect the client GitHub repository.\n3. Read `services.toml`. When the repo has none, write it as the paragraph above says and get\n   the owner's confirmation.\n4. Set the main subdomain that the owner picks.\n5. Set each variable that `.env.example` names, with the values the owner gives, except the\n   ones that the platform provides, such as `DATABASE_URL`.\n6. Deploy dev, and wait until dev reports healthy. Always deploy dev first.\n\nAfter the setup, do not deploy. Mainline deploys dev at each merge to the default branch and\na preview for each pull request. These deploys are Mainline's, not an agent's, and need no\nrequest. Production changes only when a person presses Promote in Mainline. Never deploy or\npromote production, also when the owner asks: tell them to press Promote in Mainline. When\nthe owner asks for another deployment after the setup, tell them that Mainline deploys dev at\nthe next merge.\n\n| The human says | Run |\n|---|---|\n| \"What now?\" | `forge next` |\n| \"Show me progress\" | `forge board` |\n| \"I have an idea\", \"Fix this\" or \"Plan this\" | `forge start \"\u003Ctheir words>\"` |\n| \"Read the plan cold\" | `forge read \u003CKEY>`, or `forge read \u003Cslug>` for a spec or decision |\n| \"I've amended it\" | `forge read \u003CKEY>` again, for the next round |\n| \"Start this task\" | `forge task start \u003CKEY>\u002F\u003CTASK>` |\n| \"Give this story or part to a developer\" | `forge assign \u003CKEY or KEY\u002FTASK> \u003Clogin>` |\n| \"Name this fix\" | `forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\" --slug \u003Cname>` |\n| \"Change this fix's Done-when\" | `forge fix amend \u003Cfix> --done \"\u003Cdone when>\" --because \"\u003Cwhy>\"` |\n| \"Add to this fix's Done-when\" | `forge fix amend \u003Cfix> --append \"\u003Ctext>\" --because \"\u003Cwhy>\"` |\n| \"This fix is too big\" | `forge story new \u003CKEY> --from-fix \u003Cfix>` |\n| \"Make it a story\" (a fix) | Add the key to the fix's roadmap and commit it, then `forge story new \u003CKEY> --from-fix \u003Cfix>` |\n| \"Make it a fix\" or \"Just fix it\" (a plan with no started part or part records, even if approved; merged parts count after branch cleanup) | `forge fix start \"\u003Cits Problem>\" --done \"\u003Cits first Done-when>\"`, then `forge story drop \u003CKEY> --because \"Moved to the fix \u003Cfix>\"` |\n| \"Do it later\" (a fix) | `forge fix drop \u003Cfix> --because \"The owner wants it later\"`, then `forge start \"Do this later: \u003Cits why> (kept on fix \u003Cfix>)\"`. `fix drop --undo` brings it back |\n| \"Do it now\" (an idea-list entry) | `forge start \"\u003Cthe owner's new words>: \u003Cthe entry's idea without its deferral words>\"`, for example `forge start \"Do it now: add dark mode\"`. Then remove the entry from the main checkout's file while it is waiting, or else in the new item's branch |\n| \"Remove this feature\" or \"We do not need X any more\" (in a client app) | `forge start \"Remove the \u003Cfeature> feature\"`; the removal is the part's work |\n| \"Let this fix go over the limit\" | `forge fix allow-large \"\u003Creason>\"` |\n| \"Build it\" | `forge work \u003Citem>` |\n| \"Tell the worker this round\" | `forge work \u003Citem> --note \"\u003Ctext>\"` |\n| \"Ask about this code\" | Hand the question to the session's `explorer` subagent role |\n| \"Close it\" or \"Is it ready?\" | `forge close \u003Citem>` |\n| \"A person asks to skip the model review\" | For a task or fix, run `forge close \u003Citem> --no-review --by \"\u003Cname>\" --reason \"\u003Cwhy>\"` only when a person asks |\n| \"Land it\" | `forge land \u003Citem>`, run in the background and watched like `forge work` |\n| \"Land everything that's ready\" | `forge land --all`, run in the background; never a hand-made merge lane |\n| \"Merge this ready item\" | `forge merge \u003Citem>` when the default branch allows agent merges |\n| \"Let the agent merge\" | The owner runs `forge merge enable` in a terminal outside Claude Code or Codex; never you |\n| \"What should we build?\" or \"Find the real problem\" | Discovery, below |\n| \"Is it worth building?\" | `forge spec payback --build-days \u003Cdays> --day-rate \u003Crate>` plus a value group |\n| \"Save this spec\" | `forge spec save \u003Cslug>` |\n| \"The spec is confirmed\" | `forge spec confirm \u003Cslug> --by \"\u003Cname>\"` |\n| \"Record the check-back result\" | In a fix: `forge spec measure \u003Cslug> --result \"\u003Cresult>\"` |\n| \"Record a decision\" | `forge decision new \u003Cslug>` |\n| \"The decision is accepted\" | `forge decision accept \u003Cslug> --by \"\u003Cname>\"` |\n| \"What does the client still need to decide?\" | `forge decision open` |\n| \"Record the client's answers\" | In a fix: `forge decision answer --from \u003Cfile> --by \"\u003Cname>\"` |\n| \"Add it to the roadmap\" | `forge roadmap add \u003Cspec>` |\n| \"The new spec replaces this roadmap item\" | In a fix: `forge roadmap retire \u003CKEY> --by \u003Cspec>` |\n| \"Change a finished story's outcome\" | On an existing work branch: `forge story done \u003CKEY> \"\u003Coutcome>\"` |\n| \"Is my setup healthy?\" or \"Fix my setup\" | `forge doctor`, then `forge doctor --fix` for what it can repair. On the default branch, repairs to Forge's files need a clean checkout at `origin\u002F\u003Cdefault>` and use a dated fix `forge-files-\u003CYYYYMMDD-HHMM>`: `forge close \u003Cname>`, then merge it like any other. An existing `fix\u002Fforge-files-*` branch with no merged or closed pull request blocks another repair, record or not; follow doctor's finish-or-remove step. Finished-work cleanup skips only the open doctor fix. If a repair already used this minute's name, run `forge doctor --fix` in the next minute. A file it holds back as changed by hand: move that change out of the file, then `forge doctor --fix` again. In AGENTS.md, only hand edits inside the `forge:begin` and `forge:end` lines hold the file; your rules outside them stay as written when doctor refreshes Forge's block |\n| \"Set up a new repo\" | Before `forge init`, answer \"Does this repo run GitHub Actions?\" from the repo's settings: `gh api repos\u002F{owner}\u002F{repo}\u002Factions\u002Fpermissions` gives `enabled`. Ask the human only if the settings do not answer it. Pass `--actions yes` or `--actions no`; yes uses CI checks, while no selects laptop tests with `checks = []`. Then use `forge init --starter` for a new React app, `forge init --starter python` for a new app whose owner asks for a Python backend, or `forge init` for another stack. Propose a `fast_test` as in step 9 of Adopt a live app, below |\n| \"Bring our live app into Forge\" | Adopt a live app, below |\n| \"Change the test command\" | Ask, then in a fix: edit `forge.toml` (never its `merge` setting), `forge close \u003Cfix>` |\n| \"Use fewer cold-read or task-review rounds\" | Ask the owner which limit to change; then in a fix set `cold_read_rounds` or `task_review_rounds` to `1` in `forge.toml`, then run `forge close \u003Cfix>` |\n| \"Run everything in Claude\" | Ask, then in a fix: set `tools = \"claude\"`, `workers = \"claude\"` in `forge.toml`, then `forge sync`, `forge close \u003Cfix>` |\n| \"Run everything in Codex\" | Ask, then in a fix: set `tools = \"codex\"`, `workers = \"codex\"` in `forge.toml`, then `forge sync`, `forge close \u003Cfix>` |\n| \"Use both\" | Ask, then in a fix: set `tools = \"both\"` in `forge.toml`, `forge close \u003Cfix>` |\n| \"Change who builds just for me\" | Edit `forge.local.toml` beside `forge.toml` in the main checkout (not a worktree): only `tools`, `workers` and `[models.\u003Ckind>]` tables. Git ignores it, so no fix; every worktree of that clone uses it. `forge next` and `forge doctor` name what it sets |\n| \"Close takes too long running every test\" | In a local-test repo, ask, then in a fix: set `fast_test` in `forge.toml`, a command close runs instead of `test`, with `{base}` replaced by the merge base with the default branch (for example `npx vitest run --changed {base}` plus lint). In a CI-test repo, its pull request check runs the tests that import the changed source files, not only the changed test files (see step 9 of 'Adopt a live app'); the nightly full run covers the rest. Then `forge close \u003Cfix>` |\n| \"Upgrade Forge\" | Ask which release, then `forge upgrade \u003Crelease>`; Upgrade Forge, below |\n\n`forge doctor` lists started fixes with no work commits after more than seven days.\nEach row gives `forge fix drop \u003Cfix> --because \"\u003Creason>\"`. Only drop a fix after\nthe owner agrees. `forge doctor --fix` does not drop these fixes. New and upgraded\nclient repos get this check from the installed Forge command.\n\nSend every new idea through `forge start \"\u003Ctheir words>\"`. Never ask the human whether it is a\nstory or a fix. When the answer is a fix, run its `forge land \u003Cfix>` in the background and watch it.\nFor an idea that extends an existing story, the explorer can return that story's key with\n`Lane: plan`. Handback reuses its branch and worktree and adds to its plan. Read the revised plan\nbefore approval.\n\nThe human approves stories and chooses between options. In a client repo before the default\nbranch has an accepted sign-off, the agent runs `forge merge \u003Citem>` once `forge close` says Ready.\nAfter sign-off, the default branch's `forge.toml` merge setting applies: the human merges by\ndefault (`merge = \"human\"`), or the agent runs `forge merge \u003Citem>` for `merge = \"agent\"`.\nForge's own repo follows its setting throughout. Never run `gh pr merge`; the agent merges only\nthrough `forge merge`. Ask one question at a time: a decision gets options with your recommendation\nfirst, a question of fact gets neutral choices.\n\n## The journey\n\nEvery client repo moves through seven steps. `forge next` names the current step in its first line.\n\n1. **Ideas and client notes.** The person gives you the client notes or an idea. Put each note in `docs\u002Fcontext\u002F` and read them all before you ask anything. You can say: \"Here are the client notes\" or \"I have an idea: \u003Cidea>\". A Sales person can give a company's name and website instead, with any notes: do the research in Discovery first.\n2. **Brief.** You write `docs\u002Fproduct\u002FBRIEF.md` from the notes, and ask only about a point that changes a screen, a field or a flow. You can say: \"The brief looks right\" or \"Change this in the brief: \u003Cchange>\".\n3. **Canvas design.** You make the screens on a design canvas, designed with the client's design system in Claude (see \"Canvas and app design\"), which the client can click through in Play mode, and the owner or FDE approves the canvas. You can say: \"Show me the screens\" or \"Change this screen: \u003Cchange>\".\n4. **Sign-off.** Run the sign-off checks, then ask the client's named person to approve the canvas and answers. Build now and Later are planned choices, not available commands. Ask the owner what work to start or defer. You can say: \"Record the client approval, then plan the first change\".\n5. **Build.** You plan stories and fixes, build each one with its tests and a review, and merge it. You can say: \"Build this next: \u003Cidea>\" or \"What is ready to merge?\".\n6. **Deploy on Mainline.** Confirm the client's host and complete production preparation below. When the person asks for Mainline deployment, set up Mainline and deploy dev. An authorized person presses Promote for production. A client host without Mainline uses its agreed release process. You can say: \"Deploy this on Mainline\" or \"Use the client's servers\".\n   When a release adds a migration file, Mainline takes a backup at Promote. Mainline runs one test restore before the first launch. Mainline checks the release for the added file itself and does both; the agent does neither and writes no mark. The migration rule belongs to FORGE-EXPAND-1.\n7. **Run and improve.** People use the app, and each new request or problem goes back to step 5. Follow [After a demo](#after-a-demo) for demo notes. You can say: \"Users asked for \u003Crequest>\" or \"This is broken: \u003Cproblem>\".\n\n**The cold read loop.** A reader who did not write the plan reads it cold and lists its gaps. You fix the plan, and the reader reads it again. At the round limit (the repo's setting, two by default), Forge stops and the owner chooses: accept, read again, or split. It exists because a gap found in the plan costs minutes, but the same gap found in the code costs a build round.\n\n**The build and review loop.** A worker builds the part and its tests, then a separate review checks the change. A serious problem goes back to the worker for another round. A task gets review rounds up to the repo's setting, two by default, and a fix gets one. At the round limit (the repo's setting, two by default), Forge stops and asks the owner, but a P0 problem keeps the loop going. It exists because a reviewer sees problems that the worker cannot see in its own work.\n\n**The CI checks.** GitHub runs the repo's checks on the pull request. Close and merge wait up to 90 minutes while a check is running, and a red check goes back to the worker. At a wait limit, the message names the limit and the checks still running. They exist because the checks run the tests on a clean machine, the same way for every change. If uv installation fails, the generated workflow retries it once before the job fails.\nOn GitHub Actions, `forge test` streams the test output into the job log.\n\n`forge next` adds one line under each running item that says what it waits on, why and for how long. Give that line to the person when they ask why something takes time.\n\nAfter `forge init` in a new repo, tell the person the seven steps in one line each, then ask for the first input: the client notes or the idea.\n\nWhen a person asks what they can do, or seems unsure, run `forge next`, name the current step from its first line, and show that step's \"You can say\" phrases. Name no commands.\n\nWhen a Forge command refuses, tell the person in plain words what Forge stopped, why, and the fix that it names. Then do the fix, or ask the choice. When the refusal looks like a Forge fault (a wrong or confusing message, a refusal of a correct step, a crash, or a success that did nothing), say so and offer to file a Forge bug as Reporting a Forge bug, below, says. File it when the person agrees.\n\nBuild now and Later at sign-off are planned, not available. Record \"build it later\" with\n`forge start \"Do this later: \u003Cthe first story's idea>\"`. For work the owner wants now, record\nclient sign-off first, then use the normal story flow.\n\n## Waiting records\n\nThe `notifications` module holds `Notification` in schema `notifications`, with\n`id`, `organisationId`, `recipientAccountId`, `subjectId`, `subjectName`, `message`,\n`createdAtUtc` and `resolvedAtUtc` (null while the record waits).\nTypeScript uses `NotificationsApi` in `libs\u002Fnotifications\u002Fcontracts\u002Fsrc\u002Fservice.ts`,\ntoken `NOTIFICATIONS_API`, and `NotificationsPrincipal = { id, organisationId }`.\nCall `notify(principal, recipientAccountId, subjectId, subjectName, message, tx?)` to add\nan open entry and `resolve(principal, subjectId, tx?)` to close all open entries for that\nrecord in the principal's organisation. Pass the feature's transaction as `tx`.\nPython uses `NotificationsService` in `app.notifications.service`:\n`notify(account, recipient_account_id, subject_id, subject_name, message)` and\n`resolve(account, subject_id)` use the caller's session and never commit.\n\nAdd `notify` in the same transaction as the change that makes a record wait;\nadd `resolve` in the transaction of the action.\nA reassignment is `resolve` then `notify` in one transaction.\n`GET \u002Fapi\u002Fv1\u002Fnotifications` gives the signed-in person's own entries in their organisation:\n`data: { count, items }`, with at most 100 open entries, newest first, and a count of all\ntheir open entries. Each item has `id`, `subjectId`, `subjectName`, `message` and `createdAtUtc`.\nBuild the list and the count in the client's design, as FORGE-NOSCREENS-1 requires.\nNo email until the SNS story.\nAn app without the `notifications` module gets it by hand, from these names, when a feature first needs it.\n`forge sync` delivers this guide and keeps the app's code and migrations unchanged.\n\n## After a demo\n\nSave the notes or transcript in `docs\u002Fcontext\u002F` and read them all.\nShow one list of changes, one line per change, in the client's words, with who asked and which screen or record it touches.\nTwo ideas in one sentence become two lines.\nPut questions the notes leave open below the list as \"Need an answer\".\nThe FDE answers once: OK, or edits.\nAfter the OK, run `forge start \"\u003Cchange>\"` for each line; Forge picks a fix or a story for each.\nNothing starts before the OK. The OK is the FDE's reply; Forge stores no record of it.\nA change the FDE says can wait goes to the later list with `forge start \"Do this later: \u003Cidea>\"`, after the OK.\n\n## Save decisions and ideas\n\nUnderstand each human decision, direction and idea. Save each in the same turn;\nnever leave it only in chat. Grill new directions one question at a time, with your\nrecommendation first. Save the answer before moving to the next question.\n\n- Put a choice about an item in its plan's Notes or the recorded choice:\n  `forge close \u003Citem> --resolve \u003Cmore|split|accept> --reason \"\u003Chuman's choice>\"`.\n- Save a standing rule or direction with `forge decision new \u003Cslug>`. Batch decision\n  docs into the next fix; do not open one pull request per decision.\n  For a large decision, run `forge read \u003Cdecision-slug>` before acceptance. Amend the decision\n  and answer findings between rounds, as for a spec. Notes stay beside the numbered decision\n  record. Specs take precedence when slugs match; use `forge read \u003CNNNN-slug>` to select the\n  decision, or when several decisions share a slug. A cold read does not accept the decision.\n- In `docs\u002Fspecs\u002F`, state each rule once, on an `R-\u003Cn>:` line under `## Behaviour`.\n  Validation (VAL), UAT and acceptance (AC) lines name the rule that they check by its ID, for\n  example `VAL-11 checks R-13`, and do not say the rule again. A decision that changes a rule\n  names its ID. `forge decision accept` then lists every spec line that names that ID: in the\n  same change, before close, update each line that no longer fits. On upgrade, the first\n  `forge sync` lists the old spec lines that seem to repeat a rule, with a fix to start. Show\n  the list to the owner and ask with options: rewrite those specs now in that fix, or later.\n- `forge start` keeps `plans\u002Fideas.md`, a short dated list, when the owner says later, and\n  carries waiting entries into the next fix or story. When you, a planner or a worker think of\n  something useful that nothing needs, add one line `- \u003CYYYY-MM-DD>: \u003Cthe idea>` to\n  `plans\u002Fideas.md` in the branch in hand and build nothing for it.\n  Remove an entry when the owner says to do it now, as the command table explains.\n\n## Merges and settings\n\nIf the default branch moved after close, `forge merge` compares its new changed files with the item's changed files.\nIt merges the default branch locally to check the combined change.\nFor repos with laptop tests, it runs `fast_test`, or `test` when none is set, in the one test lane with `{base}` as the\npull request's checked head. This selects tests for incoming default-branch changes instead of\nthe pull request's own files, on the combined code. It merges only after those tests pass. A failure names the failed tests\nand gives `forge work \u003Citem>` as the next step. With no\ndefault-branch move, merge runs no extra tests. New repos get this rule at init; existing repos\nget it on upgrade and sync.\nIf the file sets do not overlap, Forge restores the original head and merges without a push or another check wait.\nIf the file sets overlap, Forge keeps the local merge, reuses the existing review and commits its coverage of the combined change.\nIt pushes that commit, waits for its required checks, then merges.\nIn repos whose tests run in pull request CI, close already leaves the laptop tests to CI.\nWhen `test_place` is `ci` and a required check runs app tests, merge also leaves the tests to CI.\nIt publishes the combined change and waits for that commit's checks, even when the changed\nfiles do not overlap. This applies to every test runner and custom fast command.\nThe wait uses the combined branch's test setting and required check names.\nA retry waits for the same saved head's checks, with those same check names.\n`forge test --change` includes incoming changes from merges into the pull request,\nso CI also selects tests that the default branch added before the merge.\nRepos whose tests run only on the laptop keep their local runs. The `forge-pr-check`\ncheck reviews the change and runs no app tests, so that check alone does not replace the local retest.\nThe nightly full run on the default branch covers the rest. With no retest, the usual CI wait applies.\nBefore the retest, Forge refuses uncommitted changes and names their files. After tests and\nchecks, Forge fetches the default branch again. If it moved again, Forge checks the new\ncommits against the item's changed files. With no overlap, Forge merges at once. With an\noverlap, Forge repeats the combined tests and required checks. After five further moves,\nForge stops and gives `forge merge \u003Citem>` as the next step.\n\nForge leaves a pull request that changes its own merge setting to the repo owner. It compares\nthe item's merge base with its head, so an older branch can merge after the owner enables agent\nmerges. An already-merged pull request skips that check when tidying. Cleanup removes unchanged\ngenerated git hook shims and Husky's ignored rebuilt hooks; uncommitted work and later local\ncommits keep the worktree in place. When another program holds the worktree open, the merge still\nfinishes and keeps the local branch; close that program, then delete the folder the merge names.\n\nWhen `forge merge` merges a story's last task, the same squash merge records the story as done.\nGive `forge merge \u003CKEY>\u002F\u003CTASK> --outcome \"\u003Coutcome>\"` to name what it achieved; without it Forge\nuses the story's title. The board and `forge next` read that record from git, so no outcome fix,\nextra pull request, review or CI run is needed. Stories already marked done keep their outcome.\nUse `forge story done` only to correct an outcome later, on an existing work branch that carries\nthe correction through its own pull request; the command opens no branch or pull request.\nWhen next says a remotely merged story needs its outcome, fetch origin before recording it.\n\nGive each question one line of context and a header of 12 characters or less. Use 1-5 word options\nthat say what happens, with the recommended one first for decisions. Use no IDs, paths or slugs in\nquestions; write for the human's choice.\n\nWrite text that people read with the simplified-technical-english skill: a story's What changes\nfor you, Why and Done when, a fix's why and Done when, pull request summaries, questions to the\nhuman, and board and `forge next` lines. Briefs, guides and code stay as they are.\n\nThe human never edits `forge.toml`; you keep it. When a setting must change, ask first with\noptions, then make the change yourself in a fix: `forge fix start`, the edit, then `forge close`.\nClose refuses a settings change in `forge.toml` unless this item's Done-when names the file.\nIt leaves the settings and branch change intact, so `forge land` also stops before merging.\nFor a fix, run `forge fix amend \u003Citem> --done \"\u003Cdone when naming forge.toml>\" --because \"\u003Cwhy>\"`.\nFor a task part, name `forge.toml` in the plan's covered Done-when details in the task checkout\nand commit the plan there. These details do not change the approved numbered result.\nThen run `forge close \u003Citem>` again. A version-pin-only difference still passes.\nInitial migration and adoption keep their new settings until their first pull request merges.\nNew and earlier-adopted repos get this check on upgrade. Workers never edit settings.\nA developer's own `tools`, `workers` and `[models.\u003Ckind>]` choices go in the git-ignored\n`forge.local.toml` instead, which you edit directly when they ask; Forge refuses any other key there.\n`runner` selects the GitHub Actions runner label in the generated `forge.yml`;\nit defaults to `\"ubuntu-24.04\"` because the starters' Playwright 1.56 browser installer\ndoes not support Ubuntu 26.04. Sync preserves explicit runner settings.\nOptional `test_runner` selects a different label for pull-request test jobs only, with one\ngroup or several groups. All other jobs, including the nightly full test run, use `runner`.\nWithout `test_runner`, all jobs use `runner`. Set the label in `forge.toml`, then run `forge sync`.\nFor self-hosted Linux runners, initialise with\n`forge init --runner self-hosted`, or set `runner = \"self-hosted\"` (or a custom label) in an\nexisting repo's fix, then run `forge sync`. New repos get it at init; earlier adopted repos get\nit after upgrading Forge and syncing. The jobs set up uv and Python, and install\nNode for Node tests, respecting version files or engines with Node 22 as the fallback.\nClose and land keep waiting while checks are queued. The wait line shows minutes observed\nqueued during this wait: shared runners may be busy or no runner may match the runner setting.\nOnly `forge doctor` reports a likely missing runner, when a current check has been queued at\nleast five minutes and no matching job started in its sample of this repo's runs created in\nthe last seven days. It reads at most 100 newest runs, skips successful runs, and reads one\npage of latest jobs per remaining run, without earlier attempts or older runs. Make a\nmatching runner available or correct the setting; run `forge sync` only if you\nchange the runner setting. Keep the required checks enabled. New and upgraded repos get the\nsame waiting and doctor behaviour from the upgraded Forge commands.\nThe `merge` setting is the owner's, because it is a gate on your own work: never change it to\n`\"agent\"` or run `forge merge enable`, even when the owner asks, and never merge a change to it.\nWhen agent merges are off and the owner wants you to merge, tell them to run `forge merge enable`\nin a terminal outside Claude Code or Codex; it opens the change for them to merge. If an interrupted switch's fix\ncontains only that setting and the default branch has moved, it rebuilds the same fix on the\ncurrent default branch, preserving its other settings. It leaves remote work outside that fix\nalone and refuses to replace a remote branch that changes after its check. The owner still\nmerges the pull request. Close checks this generated fix mechanically instead of asking a model:\nonly `forge.toml`'s top-level `merge = \"agent\"` may change, with all other parsed settings equal\nto the fix's merge base. Extra changes are refused without review. Tests and CI still run;\nevery other item keeps its model review.\n\nGive status updates in one shape: `Ready to merge (n): ... · Needs you (n): ...`.\n\nWrite each reply, summary and question for the human in plain English that a non-native speaker\nunderstands on the first read, as AGENTS.md says: everyday words in place of agent slang, each\ntechnical term explained once, three plain lines on what changed, what failed and what comes\nnext, and status, numbers and uncertainty kept exact.\n\n## Tools\n\n**Who does what.** The coordinator is the app the developer opens: Claude Code or Codex.\n`tools` in `forge.toml` says which tools run Forge's work: `\"claude\"`, `\"codex\"`, or\n`\"both\"` (the default when absent). One tool puts every item on it, including design work\nwith its own design model; `workers` is ignored. With both, `workers` keeps its usual meaning.\nForge's planning, approval, build, review, CI and merge process stays the same.\nDoctor's SDK, project trust and UI skill checks follow the selected tool too.\n\nClaude workers use the Claude Agent SDK kit when installed; otherwise their coordinator uses a background subagent.\nCodex workers use the Codex app server when `codex_fast` is off or absent, or under the other tool; otherwise they stay native. Plan reads stay native on their coordinator.\nWithout a coordinating session, a one-tool repo waits for it.\nReviews run externally through Autoreview on the named tool; with both, Codex when installed,\notherwise Claude. Normal, light and sign-off reviews use `[models.review]` or its per-tool entries.\nUnset entries use Autoreview's default model and effort; unset effort uses its default effort.\n\n**Running a handed-out round.** When Forge prints a subagent instruction, run that instruction\nas a background subagent of the named role. Keep the item's chat while the session is open;\ncontinue the named subagent when told to, or start fresh with the whole brief in a new session.\nIf that chat is unreachable in the same session, start fresh with the whole brief too.\nRun `forge handback` with its last message and id and the printed `--round` when it finishes.\nSend the nudge when asked; never edit the brief. Only the coordinator hands back or starts a round.\n\n**Native plan reads.** With one tool, that tool reads every plan. With both, the first read\nchooses the other installed tool, and later rounds keep their reader while it is available.\nWhen that reader is your session's tool, `forge read \u003Ctarget>` prints a JSON instruction for\nthe `reader` role in the plan's checkout. Continue its named subagent with `prompt`, or start\none with `fresh_prompt` when no subagent is named. Run it in the background, read only, then\ngive its message and id to `forge handback \u003Ctarget> --round \u003Cround> --subagent \u003Cid> --text \"\u003Cmessage>\"`.\nThe session holds the item's lock and machine place until handback or the session ends.\n`forge stop` frees Forge's hold; stop the subagent in your session too. Stale rounds record nothing.\nForge checks for changed files, numbers and records findings. Init and upgrade deliver the reader role.\n\n**Native build rounds.** `forge work` and `forge land` print the role (`worker`, `fixer` for a fix,\n`frontend` for design work), the model (over the role's own), checkout and brief. Use `forge handback \u003Citem> --round \u003Cn> --subagent \u003Cid> --text \"\u003Cits last message>\"` or stdin.\nWith no message, repeat handback; the round stays open. Send any printed nudge, then hand back again.\nHand-back restores `forge.toml` and records a `Question:`. Then run `forge land` or `forge close`.\n\n**Upgrade first.** Older Forge refuses the `tools` key. Follow Upgrade Forge before adding it.\nNew repos get the setting's default at init; existing repos get this guide when the upgraded\nForge syncs, keeping their settings as written.\n\n## Reporting a Forge bug\n\nWhen Forge itself misbehaves (a wrong or confusing message, a refusal that shouldn't happen, a\ncrash, a command that reports success but did nothing, generated files that contradict each\nother), file a bug on Forge's GitHub. No client code, names, paths or secrets: describe what Forge did.\nRead the template text from GitHub and drop its front matter:\n\n```\ngh api repos\u002Fknacklabs\u002Fsymphony-forge\u002Fcontents\u002F.github\u002FISSUE_TEMPLATE\u002Fforge-bug.md -H \"Accept: application\u002Fvnd.github.raw\"\n```\n\nFill every section, then save the filled body with your own file-writing tool as UTF-8.\n\nThe template's sections, which the body file keeps exactly:\n\n- `## Forge version`: Output of `forge --version` and the pinned version in `forge.toml`.\n- `## Host and operating system`: The host (Claude Code or Codex) and the operating system.\n- `## Command and output`: The exact command and full output, with private names replaced.\n- `## Expected and actual`: Expected vs what happened.\n- `## Steps to reproduce`: Upgraded from which version, new or adopted repo, and the forge.toml settings without secrets.\n- `## forge next`: The `forge next` output at the time.\n- `## Tried and workaround`: What was tried, and any workaround.\n- `## How often`: How often: always, sometimes or once.\n\nFile it with no prompt:\n\n```\ngh issue create --repo knacklabs\u002Fsymphony-forge --title \"\u003Cshort plain title>\" --body-file \u003Cthat file>\n```\n\n## Laptop setup and after cloning\n\nBefore `forge init` writes any files in a new or existing repo, it checks Git's author identity. If Git refuses it, set `git config user.name \"Your Name\"` and `git config user.email \"you@example.com\"`, then run init again.\n\nWhen `forge init` writes settings, it checks `claude auth status` and `codex login status`.\nIf only Claude is signed in, it sets `tools = \"claude\"` and `workers = \"claude\"` and says so.\nOtherwise it keeps split workers. An unavailable check keeps that default unless the binary is missing.\nIf neither tool is signed in, it asks you to sign in. Existing repos keep their settings.\n`forge doctor` says when the repo needs Codex but Codex is not signed in, and gives `codex login`.\n\nIf you use Claude, open Claude Code in the repo once and accept the trust question before running headless Claude commands.\n\nThe repeatable laptop installers are published for\n[Mac](https:\u002F\u002Fraw.githubusercontent.com\u002Fknacklabs\u002Fsymphony-forge\u002Fmain\u002Fscripts\u002Finstall-mac.sh)\nand [Windows](https:\u002F\u002Fraw.githubusercontent.com\u002Fknacklabs\u002Fsymphony-forge\u002Fmain\u002Fscripts\u002Finstall-windows.ps1).\nThey install the tools Forge needs; follow their prompts to sign in to GitHub and your agent.\n\nAfter every clone, read the pinned `version` in `forge.toml` and install that release,\neven if the laptop installer installed a different one:\n`uv tool install git+https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge@\u003Crelease>`\n(replace `\u003Crelease>` with the pin, such as `v1.2.4`). Then run `forge sync` to install\nthe local git hooks and refresh the generated files, followed by `forge doctor --fix`.\nIn Husky repos, sync preserves the team's hooks and adds Forge's checks to the committed\n`.husky\u002Fpre-commit` and `.husky\u002Fpre-push`, through `.forge\u002Fhooks.sh`. Commit those additions;\n`npm install` can rebuild `.husky\u002F_` without removing Forge's checks.\nThe team's commands run first in a child shell; successful `exit` or `exec` cannot skip\nForge, both pre-push checks receive Git's input, and a team hook failure still blocks Git.\nResolve any remaining Doctor rows before starting work. An existing repo gets these\ninstructions and the updated CI workflow on its next `forge sync` after upgrading.\n\n## Migrate copied-in Forge\n\nRead the [migration playbook](migrate-skill.md) before running `forge migrate --dry-run`\nor `forge migrate`. It ships beside this skill and covers the human's agreement,\npreservation review, merge, cleanup and rollback. Follow it in order.\n\n## Waiting or stopped runs\n\nWhen a run is waiting or stopped, read the [run reference](run-reference.md) for\nmachine queues, board JSON fields and the Claude Code pane. Use `forge next` for\nthe current next step. Only a person can stop a run, after host confirmation;\nworkers never run `forge stop`.\n\nA builder lends its agent place while tests wait or run, then waits to reclaim it\nbefore returning. Returning builders and repair rounds go before new builds;\nnew builds pause above twice the test lane capacity and resume at capacity or below.\n\n`forge board` opens a live page on 127.0.0.1 with a per-run token and refreshes by itself;\nit stops after 30 minutes with no page open and does not fetch or rebuild while no page is open.\nThe page's events stream keeps it live. Ctrl-C stops it at once.\n`--out \u003Cpath>` writes JSON instead. The JSON view is `forge board --json`.\nIt adds `team` for the team's summary.\nThe run reference explains the board fields and page behaviour.\n\n## The Forge pane\n\n`\u002Fforge` opens a small live pane in Claude Code, in the terminal and in the desktop app. It shows\nthe builds, tests and reviews that run on this laptop, with the round and the time of each, and\none line at the top that says if anything needs the person. When the pane cannot show, `\u002Fforge`\nanswers with the same lines as text. The pane starts no agent turn and shows no next command: use\n`forge next` for the next step. It reads `forge lanes --json` every 3 seconds while it is open\nand nothing while it is closed. The person chooses when it opens in Claude Code's settings (`\u002Fconfig`,\n\"When the Forge pane opens\"): \"typed\" (the default) opens it when they type `\u002Fforge`; \"always\" also\nopens it when a session starts in a Forge repo, in a wide window. This guide stays a skill, and you\nstill load it yourself whenever you need it.\n\n## Handoff\n\n`.git\u002Fforge\u002Fhandoff.md` in the main checkout, shared by every worktree, carries your state across\na compaction. Before each compaction Forge rewrites its current-state part from `forge next` and\nkeeps everything under `## Decisions and lessons`. Add one line there at each milestone: a story\napproved, a task merged, a decision the owner made, a lesson learned or a mistake you won't\nrepeat. After a compaction or in a new session, read it first. The scratch file stays local and is\nnever committed. At hand over, copy its settled notes to `docs\u002Fhandover.md` through a fix.\n\n## Hand over\n\n1. **Push everything.** In each worktree, commit and push. Through an ordinary fix, copy\n   new decisions and lessons from `.git\u002Fforge\u002Fhandoff.md` into `docs\u002Fhandover.md`, and merge it.\n   Use `## Decisions and lessons`, with one line per decision or lesson. Keep the file under\n   about 30 lines and drop lines that are no longer true. Keep Current state uncommitted;\n   `forge next` gets it from git and GitHub.\n2. **Reassign.** Run `forge assign \u003CKEY or KEY\u002FTASK> \u003Clogin>` for each story and part.\n   Fixes cannot be reassigned; the new machine continues them without this step.\n3. **Continue.** On the new machine, run `forge next`, then `forge work`, `forge close` or\n   `forge merge` on each item. Forge makes the checkout from GitHub.\n\nA new clone shows the default branch's committed decisions and lessons at session start.\nNew repos get this guide at init; existing repos get it with `forge sync` and the behaviour\nwith the Forge release. Neither gets `docs\u002Fhandover.md` until its first hand over.\n\n## Security check\n\nSuggest the `security-audit` skill once at each of two moments: when a prototype is\nabout to stop using sample data and take real data, and at Deploy on Mainline.\nRun it when a person asks. You can say: \"Check the app's security\".\nAsk first, because it uses many model calls; say that the cost is not yet measured\non a client app. Use standard mode unless the person asks for a narrower check\nto spend less. The check never runs by itself, on each pull request or on a\nfake-data demo. It never blocks a pull request, a merge or a launch. Forge adds\nno check, command or record for it; a new session can suggest it again.\n\nTell the owner each confirmed finding in plain words; the owner decides what to\ndo. Write reports outside the repo, in the skill's default folder,\n`~\u002Fsecurity-audit-skill\u002F\u003Crepo>\u002Frun-\u003CN>`. Never paste a report's weakness details\ninto a pull request, an issue or a commit. A fix follows the normal Forge flow\nin plain words. Explain the limits: it reads code and runs the app only in a\nsafe sandbox, so it does not replace a penetration test. Name all parts not read.\n\n## Coaching\n\nThe first time each of these happens for a person, add one plain sentence saying what just\nhappened and what they can do next. Say it once, then never repeat it, and never name commands\nunless they ask. Note each one in the handoff so a new session doesn't repeat it.\n\n- A story plan shown for approval: \"This is the plan in short; you can approve it as it is or tell me what to change.\"\n- A cold read finding: \"A fresh reader found a gap in the plan, which I'm fixing; you can weigh in on the fix or wait for the next read.\"\n- A part starting: \"A worker is building this part on its own copy; you can keep planning meanwhile.\"\n- A pull request ready: \"This part passed its tests and review; you can look it over before it merges.\"\n- A merge: \"This part is now in the main code; you can try it there or pick what comes next.\"\n- A prototype demo: \"The customer has seen it working; you can tell me what they did and said to shape the next round.\"\n- Sign-off: \"The customer approved the prototype; you can now choose the first real story to plan.\"\n\n## New directions\n\nGrill any request with more than one reasonable reading or no stated done-when before starting a\nfix or story. Ask one question at a time with your recommendation and why; look up facts in the\nrepo instead of asking the human. A clear request with a stated done-when can go straight ahead.\n\nWhen the human states a new direction, principle or value, grill how it applies before changing\nanything. Ask one question at a time with your recommended answer and why; look up facts in the\nrepo instead of asking the human. Continue until the plan for applying it is agreed, then make\nthe changes.\n\n## Discovery\n\nEvery ask is a guess about a problem: find the problem before anything is planned. The worked\nexample, question bank, customer call script and outlines for the pre-meeting brief and recap are\nin [the reference page](fde.md).\n\n**By size.** On a fix or an everyday story, interview the engineer, and through them the\ncustomer: one question per turn, about something that already happened. Offer no solutions while\ndiscovering, and praise isn't evidence. A question of fact gets neutral choices; a decision gets\nyour recommendation first. Add a one-line `Why I ask:` to each question until the engineer says\nthey know why. Ask at most two questions for a fix and eight for a story, then write what is\nstill unanswered as `unknown`.\n\n**A new project.** On a new app, the FDE puts every client note in docs\u002Fcontext\u002F. Read all of them\nbefore you ask anything. Fill docs\u002Fproduct\u002FBRIEF.md and the problem cards in\ndocs\u002Fproduct\u002FDISCOVERY.md from the notes, and list each contradiction and gap for the FDE.\nAsk the FDE one question at a time, and only about a point that changes a screen, a field or a\nflow. A new app has no fixed number of questions. Give every other open point a default, mark it\n(assumed) where you write it, and list these assumptions in one message for the FDE to change.\nPut each question the FDE cannot answer on the recap's Still to find out list, and build the\nprototype without waiting for the answer.\n\nBefore the first meeting, draft a one-page pre-meeting brief in\n`docs\u002Fcontext\u002F` from the prospect's website: their likely jobs, two or three guessed problem cards\neach marked `(guess)`, their terms, and the first five questions to ask. During discovery, keep\nthe customer's own words in `## Words they use` in `docs\u002Fproduct\u002FDISCOVERY.md`, one\n`- \u003Ctheir word>: \u003Cwhat it means>` line each. Ask for the spreadsheet or form they use today and\nkeep only its column headers, never its rows. The same day, draft a recap in `docs\u002Fcontext\u002F` for\nthe customer to confirm: their problem in their words, the cost in their numbers, the one task\nthe demo will cover, who signs off, the open \"ask the client\" questions and the demo date. When\nthey reply, record the Demo workflow and Sign-off person answers from it with `client` as the\nsource, as `- Demo workflow: \u003Ctask> (client, \u003CYYYY-MM-DD>)` and `- Sign-off person: \u003Cname, role>\n(client, \u003CYYYY-MM-DD>)`. The salesperson sends the recap; Forge sends nothing.\n\n**Research the prospect.** A Sales person starts with the company's name and website, plus any\nnotes or call transcripts. They do not need to know what to build: you find out. Ask nothing\nbefore the pass. Save their notes in `docs\u002Fcontext\u002F`; when the session cannot read a recording,\nask for its transcript. Run the pass before the first meeting, or before the prototype plan when\nthey have already met the prospect. It is the pre-meeting brief, written as\n`docs\u002Fcontext\u002Fprospect-research.md` in the client repo, never in Forge's own files. Do one\npass on the public web, with this session's own web search, over this list in this order:\n\n1. what it sells and to whom, from its own site;\n2. how it works today: its service or ordering pages, case studies and the duties in its job posts;\n3. complaints from its customers and its staff, from public review pages and public employer\n   review pages that open without a sign-in;\n4. its tools, from job posts, its site and vendors' public case studies;\n5. its job posts, from its careers page and public job boards;\n6. two or three close competitors and what each offers, from their own sites.\n\nStop at 12 web searches and 20 page reads for the whole pass. Items 1 to 6 get at most 8\nsearches and 14 page reads. Keep the last 4 searches and 6 page reads for similar companies, and\nuse them only when the findings are thin. These numbers are an estimate, not a measurement; they\nchange after the first real runs. Use no paid data service. Only one agent runs the pass: this\nsession's agent, or one helper agent when the host has one (for example the `explorer` role),\nso the page reads stay out of the main chat. Never use more than one.\n\nRead public pages only, never a page behind a sign-in. Name a person only by role (\"the\noperations head\"), and summarise complaints with no reviewer names. Write short notes in your\nown words, each with a link; copy no text. Use neutral words, because the client may read this\nrepo one day. Every finding under What we found has its own link to the public page it comes\nfrom; a finding without a link is not written.\n\nThe page follows the outline in [the reference page](fde.md). It records the searches and page\nreads used, What we found, Not found, For the look and Questions for you. Under Not found, write\nwhat you could not find and what you tried; write \"not reached\" for an item the limit stopped.\nFor the look, give the five facts the design starts from: the industry, the users, the main job\nof the screens, brand words, and brand files as links to the company's logo or brand page (no\ndownload).\n\nFindings are thin when fewer than three of items 1 to 5 hold a finding about this company. Then\nsay what you could not find, ask the Sales person up to five questions about the company in one\nmessage, under Questions for you, and use the kept part of the limit to study two or three\ncompanies of the same kind and size. Mark every idea from them `from similar companies`. Do not\nwait for the answers: show the proposal now, and add the answers in a new dated part.\n\nWhen this session cannot search the web or read pages, say in one line: \"This session cannot\nsearch the web, so I could not research \u003Ccompany>.\" Then work from the notes and questions as\nyou do without this step.\n\n**Propose one prototype.** Under `## Proposed prototype, \u003CYYYY-MM-DD>`, write one proposed\nprototype: the one task the demo shows, start to finish, and up to five features around it, one\nline each. Each line has exactly one source mark, chosen by where the idea came from:\n\n- a link to a public page about this company;\n- `from similar companies: \u003Ccompany>` and a link to that company's page;\n- `heard from the customer: \u003Cnote file in docs\u002Fcontext\u002F>`;\n- `from the salesperson`, for a feature the Sales person added in their reply;\n- `not researched`, for an idea with no source.\n\nUse `not researched` only when the session cannot search the web or the pass did not reach the\nitem the idea depends on. An idea with no source in any other case does not appear. A point from\na transcript is `heard from the customer: \u003Cnote file in docs\u002Fcontext\u002F>` with or without web\nsearch. An idea that comes from the Sales person's own notes, not from a reply, is\n`from the salesperson: \u003Cnote file in docs\u002Fcontext\u002F>`. Nothing general appears as if it were about\nthis company. Before you show the proposal, check every line against this list, and fix or\nremove a line with no mark.\n\nUnder `## Other possible prototypes, \u003CYYYY-MM-DD>`, write two other possible prototypes, numbered:\neach a task and one or two lines with their marks. Show the same text in the chat in plain\nwords, with the links, so the Sales person sees every link. Never ask them to pick from a long\nlist of features. This proposal is not the Options step: Options below stay for a chosen\nproblem in a story.\n\nThe Sales person says yes, picks another, or says in plain words what to change. Build nothing\nbefore this choice. Then append `## Chosen prototype, \u003CYYYY-MM-DD>` to the page: the full\nchosen prototype with its marks, copied from the option they chose, with their changes applied\n(an added feature is `from the salesperson`). Its first line is\n`- Chosen by: salesperson: yes | option \u003Cn> | changed: \u003Ctheir words>`; this line is not a\nfeature and needs no mark. Leave the proposal and other-options parts as they were. Write\n`- Demo workflow: \u003Ctask> (salesperson, \u003CYYYY-MM-DD>)` in the brief's Answers; the client's reply\nto the recap replaces it with `(client, \u003CYYYY-MM-DD>)`. Save the page and that line as one fix,\nas discovery notes are saved.\n\nA later research pass or a later choice adds a new dated part to the research page; never\nremove or rewrite an earlier part.\nA second pass appends `## Research of \u003CYYYY-MM-DD>` with its own findings, counts, Not found and\nproposal. A second choice appends a new `## Chosen prototype, \u003CYYYY-MM-DD>`, and the newest one\nis the one in use. When the customer's reply to the recap corrects the demo task, add a new\ndated `Chosen prototype` part too, so the page and the brief agree.\n\n**The card.** Write each problem as a card under `## Problems` in `docs\u002Fproduct\u002FDISCOVERY.md`,\nadding the section to an older file on first use: `### \u003Cshort problem title>`, then Job,\nWorkaround, Cost, Who feels it, How often and Evidence. Write customer notes in `docs\u002Fcontext\u002F`\ninto cards and leave the notes where they are. Name the chosen card's heading in the brief's\nSummary and the story's Why (or the spec's Why when using a spec). Costs use rounded rates,\nnever real salaries.\n\n**Options.** For the chosen problem, offer two to four options, always with `Don't build` and\n`Smallest slice`, plus `Use what they have` (a setting, report or process change in tools they\nalready run) whenever one could do the job. Give each option that builds something its own\n`forge spec payback` line, and recommend the one with the fewest months among those answering\nbuild or smallest slice first; a tie goes to the smaller build. If none does, recommend don't\nbuild, or find out first when an option's value can't be estimated. The human chooses; write the\nchoice and one line of why into the story's Why, or the spec's Behaviour when using a spec.\n\n## Prototype\n\nNew clients get these steps at init; existing clients get the same guide after upgrade and sync.\n\nIn a new client repo, follow the FDE route: start with discovery of the customer's job,\nworkaround, cost, people, frequency and evidence. Then write the prototype plan: record types\nwith their fields in `docs\u002Fproduct\u002FBRIEF.md`, the Roles table and architecture choices in\n`docs\u002Fproduct\u002FCONSTITUTION.md`, one link to the design in the BRIEF, and the demo steps.\nThe design can be made through Forge or separately; the BRIEF holds one link to it.\nWhen the research page has a `Chosen prototype` part, the plan's demo steps come from the newest `Chosen prototype` part, the task first.\nEach demo step is one Done-when item in the plan, with the client's business task first and\nbasic screens (sign-in, members, settings) last. Create the plan record with\n`forge decision new prototype-plan`.\nRun `forge decision accept prototype-plan --by \"\u003Cname>\"` once, then build.\nThis replaces separate canvas, working-build, constitution and architecture-record approvals.\nThe approval before the prototype needs neither a saved design nor a personal-data answer.\nRight after approval, build every record type in the plan with `forge task feature`, with the Roles table and without more questions.\nFor each record type whose row differs from the command's default (member view, create), edit that feature's one `definePermissions` call.\nBuild the screens in the client's design, demo the prototype and obtain the customer's named sign-off;\nthen create stories. Use prototype fixes before sign-off. The\nsalesperson can be the FDE at first;\nthe developer takes over with `docs\u002Fproduct\u002FDISCOVERY.md`, `docs\u002Fproduct\u002FBRIEF.md` and the customer\ncall script. The design comes first. Use the app's existing design; if it has none, draft one on\na design canvas from the client's brand, or use a neutral design when there is no brand.\nEvery API a person uses gets its screen in the client's design, built by the agent with the API,\nwith no need to ask. Webhooks, endpoints only agents or systems call, and background jobs get none.\nBuild the prototype on the starter app. Build the basic screens first, in the client's design;\nthe starter has none, and has a `Project` API. Rename or remove the `Project` placeholder.\nThe app's approved sign-in answer, spec or decision decides which basic screens exist and what they hold; for another method, such as one-time codes or company sign-in, do not build the password screens.\nBuild the business screens next. The demo opens on the client's business task; show the basic\nscreens last.\nPush back when a requested feature does not serve the problem card: explain why and\noffer to note it for after sign-off. Keep the same app as it grows into production.\n\n### Removing a feature\n\nWhen a person asks to remove a feature, run `forge start \"Remove the \u003Cfeature> feature\"`; the\nremoval is the part's work. A plan that removes a feature names its plural and these steps, in\norder: confirm the record type with the person if the words are unclear; in a starter app, run\n`forge task feature-check \u003Cplural>` first, and if it names a feature that uses this one, stop,\ntell the person and ask which feature to change first; work through the fixed list for the\nstack; run the check until it prints that nothing points at the feature; update\n`docs\u002Fproduct\u002FBRIEF.md` (the record type), the Roles table row and any demo step that uses the\nfeature; run the app's own tests; commit as one change. In a sample-data prototype\n(`sample_data = true`), the proof is the app's build and the look check (walk each demo step in a\nbrowser), not automated tests.\n\nThe fixed list, TypeScript. Delete: `libs\u002F\u003Cplural>\u002F` and `apps\u002Fapi\u002Ftest\u002F\u003Cplural>.e2e-spec.ts`.\nEdit: the import and the entry in `apps\u002Fapi\u002Fsrc\u002Fapp.module.ts`; the dependency in\n`apps\u002Fapi\u002Fpackage.json`; the reference in `apps\u002Fapi\u002Ftsconfig.json`; the `scope:\u003Cplural>` line in\n`eslint.config.mjs`; the two `dist` names in `scripts\u002Ftest-build.mjs`; the feature's importer\nblocks and the app's dependency lines in `pnpm-lock.yaml`; the calls to the removed feature's API\nin `apps\u002Fapi\u002Ftest\u002Fdatabase.e2e-spec.ts` (the starter's `projects` calls `\u002Fapi\u002Fv1\u002Fprojects` there,\nand the check lists those calls). Keep: the Prisma schema file, the migration folder, the name in\n`base.prisma`, the relation lines in `Account` and `Organisation` and the catalog entry in\n`apps\u002Fapi\u002Ftest\u002Fdatabase.e2e-spec.ts`.\n\nThe fixed list, Python. Delete: `routes.py`, `service.py`, `tools.py` and `permissions.py` in\n`apps\u002Fapi\u002Fapp\u002F\u003Cmodule>\u002F`, `apps\u002Fapi\u002Ftests\u002Ftest_\u003Cmodule>.py` and `libs\u002F\u003Cplural>\u002F`. Edit: cut\n`apps\u002Fapi\u002Fapp\u002F\u003Cmodule>\u002F__init__.py` to one line that imports `models` (the starter's entry file\nimports `routes`, `service` and `tools`, and the check lists those imports until they are gone);\nremove the two lines in `apps\u002Fapi\u002Fapp\u002Fmain.py`; remove the path in the root `package.json`\n`typecheck`; remove the importer in `pnpm-lock.yaml`; change the calls to the removed feature's\nAPI in `apps\u002Fapi\u002Ftests\u002Ftest_module_schemas.py` (the starter's `projects` creates and reads a row\nthrough its API there, and the check lists those calls); then run `corepack pnpm run api-types`\nbefore the last check, because the shared API types still name the removed routes. Keep:\n`models.py` and every file in the module that `models.py` imports, the Alembic revision, `import\napp.\u003Cmodule>` in `migrations\u002Fenv.py`, the `\u003Cplural> internals` contract and the schema inventory\nlines in `apps\u002Fapi\u002Ftests\u002Ftest_module_schemas.py`.\n\nIn the client's own files, remove its screens, menu entries, routes, API calls and demo loader\nlines.\n\nOther cases: a database test that calls the removed feature's API is changed to create its row\nanother way; the starter's own `projects` feature has such calls. The starter's tests for agent\ntools and agent access name `projects_*` tools and `\u002Fapi\u002Fv1\u002Fagent-tools\u002Fprojects`; the check\nlists them. Examples in the starter's own text (the auth response example and the page path\nexample name `projects`) are listed as leftovers when `projects` is removed; change the word in\nthem. If the check says it could not find the data model, search for that model's calls by hand\nand tell the person. A feature not made by the build step: use the same list for what exists,\nthen the check. An app that is not a starter app: skip the check, search the code for the\nfeature's name and run the app's own build and tests.\n\nData rule: the table, every row in it and the feature's existing change history stay; write no\ndrop migration in this change; a later drop follows the database skill and the deploy guide as\nthey are.\n\nIf the prototype holds only made-up data and has no back end, ask the person, then have the\ncoordinator set `sample_data = true` in `forge.toml`. A sign-off record does not turn sample mode\non. Forge skips tests and CI while the setting is on; walk the demo steps in a browser.\nReal data or a back end keeps tests from day one.\nAfter sign-off, `forge next` shows setting up tests as the first step. In a coordinator-owned fix,\nset the test command and CI checks as needed, then turn off the setting. In the same fix, list the\nprototype's screens in the app's browser tests with `checkScreen` from `.forge\u002Fdesign\u002Frender-check.mjs`,\nso the rendered check starts with the first tests. Close blocks that fix until\nthe `Personal data` answer is settled.\n\nFor every prototype, build the demo-data loader in the first version, so the customer sees their own kind of\nwork instead of empty screens (see demo-data.md). Use the customer's words\nfrom `## Words they use` in `docs\u002Fproduct\u002FDISCOVERY.md` for screen labels. Tell the salesperson\nthey can point at the screen: click an element in the demo build, write what's wrong and paste the\noutput to the agent.\n\n**Open decisions.** Write each question only the client can answer in this form, in the decision\nrecord under `## To confirm`, the spec, or the plan's Notes where it belongs:\n\n```text\n- Open question: \u003Cquestion>\n  Touches: \u003Cscreen or rule>\n  Why we ask: \u003Cwhat the answer changes>\n  Default: \u003Cchoice>\n  Why this default: \u003Creason>\n  If the default stands: \u003Cwhat happens>\n  Due: \u003CYYYY-MM-DD>\n  Gain \u003C1-5>, Work \u003C1-5>, Harm \u003C1-5>\n```\n\nPick the default, due date and scores with the review bar before you ask. Copy a cold-read or\nreview note that needs the client into this form. `forge decision open` prints the ranked list;\ngo through the whole list with the client in one sitting, then record the answers with\n`forge decision answer`. When `forge next` says a due date passed, record the defaults with\n`forge decision answer --defaults` and tell the client each default and that a new decision can\nchange it. After an upgrade, rewrite each existing to-confirm list and open question in this form\nonce in a mechanical fix.\n\nFor each demo round, gather all requests from one conversation into one prototype fix. Build,\ntest, review and merge that round before starting another. Tell the salesperson what changed in\nthe demo: \"the next version is ready to demo\" or \"the reviewer found a missing error message\".\nSay a version is live only after the requested deployment is verified. Do not\nuse Forge's words (fix, worktree, branch, pull request) in progress updates to the salesperson.\nWhen `forge next` says to connect the repo to our deploy platform, explain what is needed;\nthat reminder does not authorize deployment. When the user explicitly requests deployment, use\nMainline Deploy as above. After the requested deployment is verified, record its address under\n`## Demo` in `docs\u002Fproduct\u002FBRIEF.md` as `- Address: \u003Curl>`. Copy that address into the sign-off\ndecision. A canvas-only prototype needs no demo address.\n\n**Production preparation.** Client sign-off approves the product direction, not production\nreadiness. The coordinator confirms the host, account owner, region, domain, budget and release\napprover with the client. Record these decisions without secrets. The platform administrator\nprovides access and environment setup. Name who owns support, alerts, backups and recovery.\nPlan remaining production work through stories and reviewed pull requests.\n\nBefore the first Promote, follow First production release in Forge's packaged how-to,\n`forge\u002Ftemplates\u002Fconventions\u002Fdeploy.md`.\nConfirm production access and secrets, HTTPS, DNS, database access, migrations and external\nservices. Check the release in a non-production environment with a green full test run,\nthe customer's main task and permissions for each role. Confirm a current backup and a\ndemonstrated restore, recovery steps and an app and database rollback plan. Agree the release\ntime and any data import or downtime. Only the authorized person presses Promote. Confirm the\nproduction address and main task after release. If a check fails, use the agreed rollback plan\nand notify the support contact. Workers never deploy.\n\n**Client cloud or servers.** Confirm this choice before deploy setup. Ask the platform\nadministrator whether Mainline supports the requested target. For a supported target, follow\nthe installed Mainline Deploy skill after an explicit deployment request. Otherwise, record\nthe host and constraints and plan the required deploy work as a story. Name who owns server\nand network access, secrets, certificates, the database, backups, alerts and release. Use the\nclient's approved release process and the same production checklist. A host without Mainline\nhas no Mainline Promote step. Do not invent install commands or change the client's host choice.\n\n**The demo.** Every demo follows five steps, in order:\n\n1. their workaround today;\n2. the same job in the app;\n3. the time or money it saves, in their numbers;\n4. they take the controls;\n5. ask \"what would stop you using this?\"\n\nSend the demo link only after the guided demo, never before it. With each new version, draft a\nthree-line \"what changed\" note for the salesperson to send: what they can do now, what changed\nsince their last look, and what to try first, all in their words.\n\nAfter each demo, ask the salesperson one question at a time: what the customer did themselves,\nwhat they said word for word, and what they asked for. Write the answers under\n`## Prototype notes` in `docs\u002Fproduct\u002FDISCOVERY.md` as one `### \u003CYYYY-MM-DD>` block with `- Did:`,\n`- Said: \"\u003Ctheir words>\"` and one `- Asked:` line per request, ending each request in\n`(serves the problem)` or `(after sign-off)`.\n\nAsk one topic at a time when it first changes what you are building. Skip a topic the repo already\nanswers. In the options column, our default is first where there is one; questions of fact have\nno default. Offer **Ask the client** on every question and add it to the customer call script in\n`docs\u002Fproduct\u002FDISCOVERY.md`. For a topic that may wait, also offer **Decide later**. Standards\nalready decide logging, security and error handling; take those defaults and include them in the\nread-back without asking again. Use the table to time the questions. Open answers do not block work\nor sign-off, and `not known yet` is an accepted answer.\n\n| Topic | Question | Options (default first) | Ask by |\n|---|---|---|---|\n| Sign-off person | Who at the customer approves the prototype? | name and role | before sign-off |\n| Demo workflow | Which one task should the demo let them do from start to finish? | from the problem card | before the demo |\n| Users and roles | Who uses it, and what can each kind of user do? | admin and staff; other | before sign-off |\n| Existing systems | Which systems must this work with? | none; CRM; accounting; email or SMS; payments; company sign-in | before sign-off |\n| Sign-in | How will people sign in? The client chooses the method. | email and password (default if the client gives no other answer); one-time codes; company sign-in (Google or Microsoft) | before sign-off |\n| Phone view | Which screen sizes must the app work on? | desktop only (default); desktop and phone | before the app's build starts |\n| Personal data | Will it hold personal, health or payment data, or data that must stay in one country? | none; personal only; regulated | before sign-off |\n| Production host | Where will the real app run? | our platform; the client's cloud; the client's servers | before sign-off |\n| Data import | Does data need to come in from today's tools? | no; a spreadsheet; another system | when a story needs it |\n| Email or SMS | Which provider sends messages? | none yet; the client's provider | when a story needs it |\n| Domain | Which web address? | our subdomain; the client's domain | when a story needs it |\n| Backups and uptime | How much downtime or data loss is acceptable? | the platform's daily backups; stricter | when a story needs it |\n| Log retention | How long must logs be kept? | the platform's default; longer | when a story needs it |\n\nRecord a yes to a phone view as `Phone view: desktop and phone`, and a no as `Phone view: desktop only`.\nA missing `Phone view` answer means desktop width only and refuses nothing. An existing app has no\nanswer yet; ask at the next change to one of its screens.\n\nAsk topics at the suggested time when possible. These are conversation prompts, not gates: a\nmissing answer or an open client question never blocks planning, review, ordinary close, merge or\nsign-off. A repo that never declared sample data keeps today's refusal for an open `Personal data`\nanswer when approving the app's rules page. A sample-data repo can approve its rules page and start\nstories with that answer open, but close waits for a settled answer on a fix that turns off sample\ndata.\nKeep one `## Answers` section in `docs\u002Fproduct\u002FBRIEF.md`, one running list written during the talks,\nwith one line per topic. Record an answer as `- \u003CTopic>: \u003Canswer> (\u003Csource>, \u003CYYYY-MM-DD>)`, with\nthe client, salesperson, developer, our default or agent as its source. Record an open request as\n`- \u003CTopic>: ask the client (\u003Cwho asked>, \u003Cdate>)`; replace it when the client replies. Record a\ncurrent unknown as `- \u003CTopic>: not known yet (\u003Csource>, \u003CYYYY-MM-DD>)`. If the person defers an\nanswer, record `- \u003CTopic>: later, when \u003Ctrigger>`. These answers are accepted; no answer needs to\nbe settled before work continues, except before closing a fix that turns off sample data.\n\nIn a prototype, `forge next` and the board show one sign-off status line. When nothing else is in\nprogress, they show open questions as a checklist, with the phrase that fixes each item. When the\nclient replies, update the matching line in the brief. A `not known yet` answer is accepted and is\nnot listed as open, except Personal data, which needs a settled answer before real data.\n\n**Canvas and app design.** Before the first canvas, write a short brief from the industry,\nwho uses the app and how often, the screen's job (work, read or persuade), two or three\nbrand words and existing brand files; map them to font pairing, one accent, radius,\ndensity and tone, put them in the client's design system (below), then record DESIGN.md through\nimpeccable's document step using the app-baseline list and fixed guard rules, and use impeccable's\nOperate mode for app screens and prototypes. `support.js` checks each canvas and renders it at 1440 and 375 pixels\nbefore it is shown; the plan's read refuses a failing design folder or one with no DESIGN.md.\n\n**The client's design system.** This step needs the app's shared parts in `libs\u002Fshared\u002Fui` and its\ntheme file. A repo made with plain `forge init`, or an app of its own, may have neither; then say so\nin one line. With no app at all, change no app file: record the look that the starting-theme step\nchooses in DESIGN.md only (impeccable's `document` step, and write `Claude design system: not made\nyet` in the brief's `## Design` section), and make the system when the app exists. With an app that\nhas its own theme file but not the starter's parts or names, keep the look in that file as today,\nwith no design system and no `docs\u002Fdesign\u002Ftokens.json` (so the check stays off), until the app has\nboth. Otherwise, for each client, make one design system in Claude (the Design System type) from the\napp's shared parts in `libs\u002Fshared\u002Fui` and from the theme names in the app's theme file. An earlier-adopted app may lack the added theme lines (heading font, text sizes,\nspacing, shadows) and the heading rule. Before you make the system, add them to its theme file with\nthe starter's values, copied from the Forge starter's theme file: `templates\u002Fstarter\u002Fapps\u002Fweb\u002Fsrc\u002Findex.css`\nin the installed Forge package, next to its `conventions\u002F` folder. Then the system has every name.\nStart its values from the app's own theme file: the stock values in a new app, the current theme in\nan existing one. For a new client, and for an existing app whose theme file still holds the\nstarter's stock values, decide better first values yourself from the five facts and write them into\nthe system: colours for light and dark, fonts, sizes, spacing, corner size and shadows. Take the five\nfacts from the client's notes. Ask the Sales person only for a missing fact, one question at a time.\nThen design the client's main screens with the system: up to three, and only screens the app needs\n(for example the main list, one record and one form; a one-screen app shows that one screen), in\nlight and dark. Show those whole screens to the Sales person, never single parts alone. The person\nsays yes, or says in plain words what to change, for example \"warmer\" or \"more serious\". Change the\ntheme in the system, redraw the same screens and show them again. The Sales person sets no value by\nhand.\n\nKeep the system editable on the page: it is not marked as synced from code. Its README says which\nrepo and which parts it came from. The README is the brand guide that every agent reads before it\ndesigns a screen, so it carries the look rules; without them the screens keep the stock look.\nWrite the brand guide from three existing sources, in the client's terms: the design rules in\n`conventions\u002Ffrontend.md`, the design rules in the `app-baseline` skill (one main action per screen,\nthe looks to avoid) and the five facts. Add no rule that these sources do not hold. It states which\ncolour token is for the page, the text, the one main action and each status, in light and dark;\nwhich font and size token is for headings, body text and table text; the corner size, when a border\nis used and when a shadow, and how dense tables and forms are; one main action per screen; and the\nlooks to avoid. Give every token a usage note that names where it is used. Before the system is\nshown to a person, check that text contrast is 4.5 to 1 on its ground in both themes. Keep a client\ncolour that fails and say so in its usage note. When the shared parts change later, revise the\nsystem's component files one at a time after reading the current files.\n\nKeep the link to the client's system once in `docs\u002Fdesign\u002Fdesign-system.md`, as one line\n`Design system: \u003Clink>`, in the same change that makes the system. Before you design, copy a theme or\nrevise the parts for a client, open that link and read the system's `README.md` and\n`project\u002Ftokens.json`. Never rely on which system the design tool treats as the default. Design the\nclient's screens with that system. If the design tool can build a canvas only from its default\nsystem, say so in one line and ask the person to make that system the default. When the system is\nmade, remove the `Claude design system: not made yet` line from the brief's `## Design` section if it\nis there, also when the tools were never missing.\n\nWhen the Sales person says yes to the screens (the design is approved), read the system's\n`project\u002Ftokens.json` and save it unchanged as\n`docs\u002Fdesign\u002Ftokens.json`. Write each value into the app's theme file by name, then run\nimpeccable's `document` step so DESIGN.md describes the same theme. Do this as the first change\nafter approval and before the first screen. After any later theme change in Claude, repeat it in\none change, but only after the person says yes to that change: a trial look that the person has not\naccepted is never copied into the app or into `docs\u002Fdesign\u002Ftokens.json`. In an existing app, add a missing theme line and the heading rule (`h1` to `h6` take\n`@apply font-heading`) to the theme file, with the value the system holds. `docs\u002Fdesign\u002Ftokens.json`, when it exists, is the approved theme. Close compares the app\nwith it and stops on a difference whenever a screen or the theme changes. A waiver is one comment\nin the theme file that names the token and the theme:\n`\u002F* forge-ui-ignore theme-drift --\u003Ctoken> (light|dark): \u003Creason> *\u002F`. The review reports a screen\nbuilt on the untouched starter theme when `docs\u002Fdesign\u002Ftokens.json` does not exist. A value with no light or dark form (corner size, spacing, shadow, font, text size) can be set aside with or without a theme name in the comment.\n\nMotion. Close refuses a changed UI file that animates all properties (`transition-all`, `transition: all` or `transition-property: all`), including a shadcn copy under `components\u002Fui\u002F`. It names `file:line motion-all`. List the properties instead, or set it aside with `forge-ui-ignore motion-all: \u003Creason>`. Review reports a button-like part with no pressed state (the `link` variant is exempt), a new animation that ignores reduced motion, a hand-built loading, empty or error block in an app that has the shared state parts, and motion that skips the shared curve and speeds. For an app made before this release, apply the \"In an app set up before this release\" part of the frontend convention when `motion-all` reports a problem or the person asks, in a normal change.\n\nFonts. The starter loads no font: a font name alone does not load, so a copied font name needs a\nsource. If the system holds the font as a file in its `fonts\u002F` folder, copy the file to\n`apps\u002Fweb\u002Fpublic\u002Ffonts\u002F` and add an `@font-face` rule with `font-display: swap` in the theme file;\nthe licence must allow it. If the font is a hosted family, add the host's stylesheet link to\n`apps\u002Fweb\u002Findex.html`. An existing app keeps its own web root (the folder with its `index.html`): use\nit in place of `apps\u002Fweb`. A generic family from the browser (`serif`, `sans-serif`, `system-ui`,\n`monospace`) needs no file or link and is copied as it is. If the app can load the font in neither\nway, do not copy the font name: keep the app's font, tell the person in one line which font did not\nload, and set the difference aside with a waiver. Keep the fallback fonts of the token's list in\nthe copy.\n\nWhen the session has no Claude design tools (you cannot list or publish artifacts), say so in one\nline and keep going on HTML artboards with `support.js`. Set the theme in the app's theme file from\nthe five facts, run impeccable's `document` step, and write `Claude design system: not made yet` in\nthe brief's `## Design` section. When the tools return, add the theme lines and the heading rule the app lacks,\ncopied from the starter as above, then make the system from the app's theme file as it stands; from\nthen on Claude is the source. In the same change, save the new system's `project\u002Ftokens.json`\nunchanged as `docs\u002Fdesign\u002Ftokens.json` and write its link into `docs\u002Fdesign\u002Fdesign-system.md`.\n\nMake each app's design from the whole `docs\u002Fproduct\u002FBRIEF.md`: its\npurpose, users, records, fields, choice-list options and key flows. Use impeccable and\nemil-design-eng when making it through Forge. Any way of making the design works, through Forge\nor separately. Keep one link to it in `## Design` in the brief; it need not be saved in the repo.\nWhen using Forge, run impeccable's init when PRODUCT.md is missing, and use a shadcn design\nsystem and named shadcn components. Keep the design available for the\ncustomer and the sign-off review. A UI fix needs no saved design images. New clients get this process at init; existing clients can use\ntheir current brief and design after upgrade and sync. Client sign-off does not require a root\nDESIGN.md, SCREENS.md or CHECKS.md, or a specific `Things it keeps track of` heading.\nWhen the canvas has a SCREENS.md screen list, add `Build: now` or `Build: later` to each screen.\nPut the whole product on the canvas, every screen, state and flow, later ones too, and mark\n`Build: now` only what the first stories build.\nBefore sign-off, use impeccable's critique and polish and the emil-design-eng checklist.\nThe one prototype plan approval covers the design.\n\nFor each story that adds a screen or changes a flow, use this design process before its cold read.\nSave the folder under `docs\u002Fdesign\u002F\u003CKEY>\u002F`. End `## What changes for you` with\n`Design: docs\u002Fdesign\u002F\u003CKEY>\u002F (\u003Ctree id>)`, using `git rev-parse HEAD:docs\u002Fdesign\u002F\u003CKEY>`.\nOne plan approval covers that exact folder. A changed folder needs a new tree id and approval.\nFor small changes to existing screens that add no screen and change no flow, use\n`Design: none (\u003Cwhy>)` instead. Backend-only stories need no canvas. Earlier approved stories keep working.\nThe build applies any existing app theme and follows the approved story design, including its\ncomponents and fields. Workers and reviewers receive that design context.\n\n**Sign-off.** Before the demo, read back the brief and open items with the customer. The suggested\ntimes in the topic table are prompts, not gates. No missing answer, open client question, or answer\nmarked `later` or `not known yet` blocks planning, review, close, merge or sign-off, except that a\nfix which turns off sample data waits for a settled `Personal data` answer. Write\n`forge decision new client-signoff` with the customer and the demo proof for a working build. Leave\n`approved_via` and `approved_on` empty. Forge writes the current `## Answers` section into the\nsign-off record. Do not copy it by hand. Put each demo step under `## Proof` for a working build.\nRun each demo step from the plan in a browser and write its Proof line unticked.\nWrite the tick only when the client says yes during the demo, with how and when the client replied.\nThe FDE records each tick as `- [x]`; Forge refuses sign-off while a step has no tick.\nYou may save `docs\u002Fproduct\u002Fdemo\u002F\u003Cn>.png` as evidence; no screenshot is required or checked.\nA screenshot-only change skips code review.\nFor a prototype without the sample-data mark, also name the passing test for each step. A marked\nsample-data prototype has no test requirement before sign-off. Put settled choices under\n`## Decisions`. Run `forge decision accept client-signoff --by \"\u003Cname>\"` before asking\nthe customer to sign off. After the check passes and the customer replies, set `approved_via` to the\nreply and, if known, `approved_on` to its date. Run\n`forge decision accept client-signoff --by \"\u003Cname>\"` to record the signer's name.\nBefore the demo, read the design from the brief's link when the host can and list its screens.\nCompare them with the app, then build what is missing or tell the person.\nIf the host cannot read the link, use the design pages saved in the repo, or ask the person\nfor the screen list when there are no saved pages. Say plainly that the design was not read.\nMissing access or saved pages never refuses the demo or sign-off.\nSign-off keeps the demo proof and the customer's record. A prototype marked `sample_data = true`\nin `forge.toml` gets one gap check before the demo, with no full test run or whole-source review.\nThe check reads the brief, answers, design and app routes. Findings below Gain 5 and Harm 4 go to\nKnown issues without a repair request. A P0, Gain 5 or Harm 4 or higher stops for the owner's\nchoice at once. The owner can accept a held finding with a reason or ask for a repair. A prototype\nwithout the setting keeps the current full-run and whole-source review rules, including an\nearlier-adopted repo whose sign-off record says `sample_data: true`.\n\nOnly the coordinator writes `sample_data = true` in `forge.toml`, after asking the person. A worker\ncannot change this setting. Existing clients get the new sign-off behaviour after the setting is\nwritten, and get the brief rules after upgrading and syncing. They do not need to add prototype\ndesign files for sign-off. A sample-data repo may approve its rules page and start stories with an\nopen `Personal data` answer. A repo that never declared sample data keeps today's refusal at rules\npage approval.\n\nAfter sign-off, read `Before production` in `forge next`. First check what is already in progress,\nso no line is started twice. Leave sample data by the existing step: settle the `Personal data`\nanswer, set the test command and checks, then the coordinator turns `sample_data` off. For the\nlight-review line and the \"Demo only\" line, start one normal change with\n`forge start \"\u003Cyour sentence>\"`. Take the work from the row's Say text, but write your own sentence.\nNever paste the Say text into a command, because a file name in it can hold shell characters. Use\nonly letters, digits, spaces and the signs `. , : _ - \u002F` in your sentence, so the double quotes are\nsafe in every shell. Name each part the line lists, so the line clears. Name a file only when its\nname uses just those signs. Describe any other file in words, such as the other files with the Demo\nonly label. A change that touches code has the full review, and its tests follow the repo's settings\nonce sample data is off. A fix that changes only documentation gets only the light check, even after\nsign-off, and the light-review line does not count it. If a part in that line changed only\ndocumentation, tell the owner: the owner accepts that line in chat, or the follow-up change includes\nthe code that the documentation describes. Do not press or ask for Promote while a line is open,\nunless the owner accepts the rest in chat. Tell the owner plainly that Forge cannot see the release\nor whether the app still shows made-up data, and that it refuses nothing.\n\nFor a prototype without the setting, fix held findings from one sign-off review in one fix. Run the\nprinted repair command from the sign-off checkout that the refusal names. The repair includes the\nsign-off record and publishes its earlier review commits, even when that checkout's first fix\nalready merged. After the repair merges, retry `forge decision accept client-signoff` from its\ncheckout. The record keeps earlier rounds and owner choices after a squash merge or a move to\nanother computer.\nJudge a prototype as a prototype. Production work, including deployment to the client's account,\nbelongs to build stories. A clearly labelled demo tool is not a P0 when the prototype holds\nonly sample data and has no back end, as its own files show.\nA security hole in a real API or sign-in, or any exposed real data, stays a P0.\nRisks that exist only in a real-data build the prototype is not, such as browser-held\ncodes or data in a prototype with no back end, belong to build stories and Known issues,\nnot P0 findings.\nOnly Harm 4 or higher, Gain 5, or a P0 holds the product review; every other finding goes straight\nto Known issues without a repair round or an owner question. For an unmarked prototype, a held\nfinding below P0 still needs the owner's choice at the review's round limit.\nIf the review engine fails, fix the engine problem and run the accept command again.\nA canvas-only sign-off needs no working build. An unmarked working prototype gets a full first\nproduct review. Each later attempt reviews only product files changed since the previous review and\nits open findings.\nIf product files changed after a saved stop, review them before asking the owner about remaining findings.\nWith no product change, repeat the saved question without another review.\nEvery reviewer gets earlier findings and answers. Settled findings stay settled. A sample-data\nprototype uses its one gap check and has no review rounds. If that check finds a P0, Gain 5 or Harm\n4 or higher, Forge asks the owner at once. The owner can run\n`forge decision accept client-signoff --by \"\u003Cname>\" --resolve accept --reason \"\u003Creason>\"` to keep\nthe finding in Known issues, or ask for a repair. Without the sample-data\nsetting, a P0 keeps the current hard block. Only `sample_data = true` in `forge.toml` turns sample\nmode on. New and earlier-adopted clients get the brief rules after upgrade\nand sync.\nForge reuses passed results while what they checked stays unchanged.\nWhen sign-off needs a full run, start it after the last product merge as described under\nClosing below; prepare the sign-off notes while that run is in progress.\nA version-only change to forge.toml keeps the last green full run. Any other settings change needs a new full run.\nFor an unmarked working prototype, the product review uses the green full run as test evidence. It\nneeds no separate `forge test` run.\nIf the product review cannot finish, the refusal names its saved raw report when one exists.\nThe sign-off review uses the repo's selected tool and `[models.review]` settings, with\nAutoreview's defaults for unset values. Once any required check passes, ask the customer's named\nperson for sign-off their own way. Forge sends nothing. When the customer replies, record the\nreply in the sign-off record and run `forge decision accept client-signoff --by \"\u003Cname>\"` to record\nthe signer.\n\nForge writes the current Answers section into the sign-off record, so the record always quotes the\nbrief used for sign-off.\n\nEvery normal, light and sign-off review runs through the external Autoreview program:\nClaude when `tools = \"claude\"`, Codex when `tools = \"codex\"`. With `tools = \"both\"`,\nit uses Codex when installed and Claude otherwise. Forge passes the selected tool's\n`[models.review]` model and optional effort to Autoreview; without an entry, it uses\nAutoreview's defaults. New and earlier-adopted repos get this behaviour on the current release.\nA requested working prototype proves the demo steps and its security and data boundaries.\nIts light review checks demo breakage, security and data loss, using `[models.light_review]`.\nA requested working prototype gets a light review that blocks only on P0 findings.\nA `Not done` against the item's own approved Done-when still blocks at any priority.\nSign-off needs proof of the prototype demo; production proof belongs to the build stories.\n\nAfter sign-off, every new story carries forward the available canvas, Proof and Decisions into\n`## Proven by the prototype`. Treat that evidence as settled. Plan and cold read only new work\nor production risks. Start from the prototype canvas or a newer design approved with the plan.\nPlan the first stories only from screens marked `Build: now`. A `Build: later` screen stays on\nthe signed canvas as the source for a later story.\n\nWhen a story needs an answer that is still open or marked `later`, ask the question then and update\nthe brief when the client replies. An open answer is context, not a blocker, in a cold read. Use a\nfake provider for an external service while its provider choice is open.\n\n## App constitution\n\nAsk for the app's currency at setup (default INR) and write its code to DEFAULT_CURRENCY in libs\u002Fshared\u002Futil\u002Fsrc\u002Fformat.ts and, in a Python app, apps\u002Fapi\u002Fapp\u002Fcore\u002Fconfig.py.\n\nDuring both halves of the interview, ask one question at a time in plain words for a person who\nmay not be technical.\n\nBefore the prototype, take the product answers from the client notes: what the app is for, who\nuses it, the records and fields it needs, the options of each choice list, and the key flows.\nWrite them in docs\u002Fproduct\u002FBRIEF.md. Record the options for each choice list with the thing it\nbelongs to. The prototype and sign-off review use the whole brief.\n\nAt the start, write docs\u002Fproduct\u002FCONSTITUTION.md with every default from Constitution defaults\nfilled in, and raise a default with the FDE only when the notes contradict it.\n\nOn a new app, check the client notes for five growth topics: the users and records in year\none and year three, heavy background work, other systems that call in or that the app calls,\nrules on where the data stays, and parts that can become their own product. Ask about a topic\nonly when the notes touch it and do not answer it, one question at a time. Write each answer\nunder ## Growth notes in the constitution. A later story reads these notes before it plans\nmodules, jobs or links.\n\nIn an app with libs\u002Fmcp or apps\u002Fapi\u002Fapp\u002Fmcp, check the client notes for tasks that people\nwill ask an agent to do again and again. When the notes describe such a task and do not list\nthem all, ask one question: \"Which tasks will people ask an agent to do again and again?\"\nWrite each task under `## Agent tasks` in the constitution as\n`- \u003Ctask>: \u003Cfeature>; inputs: \u003Cthe inputs it needs>`. With no task, write `- None`.\nAsk it again only when the person wants to change the list.\n\nIn an app whose tests run Nx's module-boundary lint, copy the fixed rules into the\nconstitution's ## Fixed rules section, and ask nothing about them.\nIn an app that has libs\u002Forganisations or apps\u002Fapi\u002Fapp\u002Forganisations, also copy the built-in lines into ## Fixed rules, and ask nothing about the defaults they answer.\n\nIn an app with libs\u002Fcore\u002Fserver\u002Fsrc\u002Fcommon\u002Frequest-log.middleware.ts or set_log_level in apps\u002Fapi\u002Fapp\u002Fcore\u002Flogging.py, also copy this line into ## Fixed rules: \"- Built in: each API request writes one log line with its method, route, status, time taken and request id, never the query string; LOG_LEVEL picks the lowest level written; password, token, secret, key and authorization values are removed from log details; Mainline sends error alerts from the error lines, so the app has no error-tracking service.\"\n\nIn an app whose .env.example has APP_COMPANIES, ask once: \"Is the app for one company, or for many customer companies?\" Write the answer under ## Defaults, set APP_COMPANIES to one or many in .env.example and in the host's settings, and ask it again only when the person wants to change it.\nWhen the answer is one company, also copy this line into ## Fixed rules: \"- Built in: APP_COMPANIES=one makes a one-company app: corepack pnpm run setup:company (uv run --no-sync python -m app.setup_company in the Python starter) makes the company and its first admin, and people join only from an admin's invite.\"\nIn an app made from the Python starter, whose tests run import-linter, copy these fixed rules into ## Fixed rules instead, and ask nothing about them:\n\n- One app split into modules: a FastAPI API on uv, with SQLAlchemy and Alembic on Postgres, and a React web app on pnpm.\n- Each module owns its tables, in its own models file.\n- Built in: each module keeps its tables in its own Postgres schema, with core tables in core; links between business modules store an indexed id without a foreign key, and links to core keep their foreign key.\n- A module uses another module only through its public service, never through its tables.\n- The tests run import-linter, so an import of another module's internal files fails them.\n- Built in: the API lists each person's waiting records with a count.\n- Built in: the API serves an MCP server at \u002Fmcp. An admin adds agent accounts with a role and a key that shows once through the Members API; the agent builds the Members screen in the client's design; agents use each feature's tools with that role's permissions, and delete and restore tools stay off until an admin turns them on for the feature.\n- Built in: each feature also offers its items, its field guide and its allowed values as MCP resources; agents get a prompt only for a task under `## Agent tasks`; the MCP server never uses elicitation or sampling.\n- Built in: every action goes through its feature's service and permission, from the screens, the API and agents; each feature's create takes a retry key; an agent that a person signs in acts as that person, and the change history records both; reports are named, typed reads in their feature's report service.\n\nIn any other app, record the\nstack, package manager and folder layout that the app already uses, and leave out ## Fixed rules.\n\nBefore the prototype plan approval, finish the app's constitution in\ndocs\u002Fproduct\u002FCONSTITUTION.md. Use the defaults in\n[Constitution defaults](fde.md#constitution-defaults), except where\n`## Answers` in the brief already gives a settled answer. Skip a defaulted question that `## Answers`\nalready answers. Ask for the `Personal data` answer at the plan approval after sign-off only\nwhen the app never declared made-up data only. Do not ask at the approval before the prototype,\nor at either approval for an app marked as made-up data only. Record the answer in `## Answers`.\n\nIf the answer is regulated, such as health or finance data, ask these questions before the first story.\nSkip a question only when the brief already has a settled answer:\n\n- In which country or region must the data stay, including backups and copies held by service providers?\n- How long must each kind of record stay, and when must the app permanently remove it?\n\nRecord the answers in the brief's `## Answers`. Add these three rules to the constitution,\nfor any stack, before the owner approves it:\n\n- Read history: record who read which record and when, through every path that reads regulated data.\n  Keep record identifiers in this history, not the record contents. Restrict access to the history.\n  Ordinary API request logs do not provide this history.\n- Data location: keep regulated data, backups and service-provider copies in the country or region from the brief.\n- Retention: apply the period from the brief to each kind of record and permanently remove old records when it ends.\n  Cover backups, copies and read history in the policy. Soft delete alone does not remove old records.\n\nThese are requirements for the app to build, not features already built into the starter.\nUse the client's answers, not a guessed country or period. Plan the work that these rules need in the first story that handles regulated data.\n\nUse this outline, and do not copy product facts from the brief into the constitution:\n\n```markdown\n# \u003CApp name> constitution\n\nThe product facts are in docs\u002Fproduct\u002FBRIEF.md.\n\n## Principles\n- Is it needed at all? Deleting beats fixing.\n- Add work only when F x H >= 2 x C. F, for the first 1,000 users: 1 rare, 2 weekly, 3 daily. H: 1 cosmetic or the person's own data, 2 wrong information or a broken step, 3 a P0. C: 1 for 20 lines or fewer with no model call or user step, 2 for up to about 150 lines or one model call or user step, 3 for more, or a new table, job, workflow or flag.\n- Choose the simplest option.\n- Rules are stated, not policed.\n\n## Defaults\n- \u003Cthe question in plain words>: \u003Cthe default or the person's answer>\n\n## Roles\n| Record type | Role | Actions |\n| --- | --- | --- |\n| \u003Ceach record type> | admin | view, create, edit, delete, restore |\n| \u003Ceach record type> | member | view, create |\n\n## Fixed rules\n- One app on pnpm and Prisma, split into modules.\n- Each module owns its tables, in its own schema file.\n- Built in: each module keeps its tables in its own Postgres schema, with core tables in core; links between business modules store an indexed id without a foreign key, and links to core keep their foreign key.\n- A module uses another module only through its public service, never through its tables.\n- The tests run Nx's module-boundary lint, so an import across modules fails them.\n- Built in: the API lists each person's waiting records with a count.\n- Built in: each account belongs to one organisation, as an admin or a member, and every query is scoped to that organisation.\n- Built in: admins invite people by email and remove members, which signs them out at once; members cannot invite, remove people or change roles.\n- Built in: dates and times are stored in UTC and shown in the person's time zone, and money is stored as an exact decimal with its currency code; the helpers in @app\u002Fshared-util format them.\n- Built in: each table has a CSV export, admin actions write change history, and records are soft deleted.\n- Built in: the API serves an MCP server at \u002Fmcp. An admin adds agent accounts with a role and a key that shows once through the Members API; the agent builds the Members screen in the client's design; agents use each feature's tools with that role's permissions, and delete and restore tools stay off until an admin turns them on for the feature.\n- Built in: each feature also offers its items, its field guide and its allowed values as MCP resources; agents get a prompt only for a task under `## Agent tasks`; the MCP server never uses elicitation or sampling.\n- Built in: every action goes through its feature's service and permission, from the screens, the API and agents; each feature's create takes a retry key; an agent that a person signs in acts as that person, and the change history records both; reports are named, typed reads in their feature's report service.\n- Built in: each UI or API crash writes one error report to the logs.\n\n## Growth notes\n- \u003Cthe growth topic>: \u003Cthe answer from the client notes or the person>\n\n## Agent tasks\n- \u003Cthe task>: \u003Cfeature>; inputs: \u003Cthe inputs it needs>, or None\n\n## Architecture choices\n- \u003Cthe choice>: \u003Cits reason, in one plain line>\n```\n\nCopy `## Principles` into every app's constitution word for word, and ask nothing about it. Do not\nadd it to an approved constitution: the principles reach that app through its briefs, cold reads\nand reviews.\n\nMake each architecture choice yourself, from the answers and the code, and write it as one plain\nline with its reason. Record the stack that the code already uses. For\nparts with no code, use the stack default: an Nx workspace with React (Vite and React Router),\nNestJS and Postgres. Use a FastAPI backend only when the person asks for it. A FastAPI backend starts from\nforge init --starter python.\nDraft the Roles table from the client notes. Where the notes say nothing, admins have all five\nactions and members view and create. Keep each feature's role mapping in one place.\n\nFollow the database skill (.codex\u002Fskills\u002Fdatabase\u002FSKILL.md) for new tables and extensions.\nFollow the agents skill (.codex\u002Fskills\u002Fagents\u002FSKILL.md) for any agent, chat, voice or in-app assistant work. When a part adds one, the plan names the skill's sections that apply and the model service it uses.\nAn extension outside its allowed list needs the owner's OK for this client. Ask the owner,\nthen write `- Postgres extension \u003Cname>: the owner allows it on \u003Cdate> (\u003Cwhy>)` under\nArchitecture choices in `docs\u002Fproduct\u002FCONSTITUTION.md`.\n\nA live app answers both halves at adoption: ask only what the code cannot answer. Record the stack\nthe code already uses.\n\nThe owner approves the roles, architecture choices and defaults together in the prototype plan,\nwith `forge decision accept prototype-plan --by \"\u003Cname>\"`. No separate constitution or\narchitecture decision approval is needed. Fill any missing plan details before running accept again.\nExisting accepted canvas, build and constitution approvals stay valid and are never asked again.\nAn existing app past sign-off without constitution approval gets the plan approval next, without\na canvas or demo steps, and with the personal-data question unless it declared made-up data only.\nNo new story starts until the owner approves the prototype plan. Existing stories, parts and fixes\ncontinue. When `forge next` has a worktree cleanup step, finish cleanup first, then follow its\nplan step. A review or cold read in an app with an\napproved constitution checks work against its text; a conflict is a P1 finding or note. A change\nto documents only keeps its light review, which holds only P0 findings.\nA full review after sign-off holds work that goes against the Roles table and architecture choices.\nThe light review of a prototype fix holds only serious problems (P0).\n\n## Adopt a live app\n\nAn app already in production joins Forge through one fix and one pull request the human merges.\nAdopting changes no app code.\n\nWhen initializing an existing repo, answer \"Does this repo run GitHub Actions?\" from the repo's\nsettings: `gh api repos\u002F{owner}\u002F{repo}\u002Factions\u002Fpermissions` gives `enabled`. Ask the human only\nif the settings do not answer it. Pass\n`--actions yes` or `--actions no`; omit `--checks` when the answer is no.\nWith Actions, adoption adds `tests` and `forge-pr-check` to the named checks.\nFor an earlier-adopted repo with only `forge-pr-check` and no explicit `test_place`,\ndoctor warns that close runs tests on this machine. Set `checks = [\"forge-pr-check\", \"tests\"]`\nin a fix whose Done-when names `forge.toml`, then run `forge sync`. Doctor and sync\nkeep existing settings until that fix changes them. An explicit `test_place` keeps its value.\n\n1. Follow [App constitution](#app-constitution) for both interview halves together. Ask only what\n   the code cannot answer, and record the stack the code already uses.\n2. Write the codebase report in `docs\u002Fcontext\u002Fcodebase.md`: the stack and how to run it; the tests\n   and the areas they don't cover; the CI workflows and the checks branch protection requires; what\n   a merge triggers; branch rules and reviewers; the hook tools already in use; secret files and\n   variables by name only, never their values; where personal data lives; the migration tool; and\n   the danger zones.\n3. Mark as danger zones the most-changed, most-reverted and most-hotfixed files in git history. A\n   story that touches one names it under Risks.\n4. List the open pull requests and branches in the report, so a story's plan avoids colliding with\n   a teammate's work.\n5. Link or import the repo's existing decision records and design docs as Forge decisions:\n   `forge decision new \u003Cslug>`, the original linked or copied unchanged under the line\n   `Imported from \u003Cpath>.` Don't rewrite them.\n6. Read the review comments of about the last 100 merged pull requests. Each rule reviewers enforce\n   repeatedly becomes a House rule citing the pull requests it came from.\n7. Ask the human three questions, one at a time, with options: who approves stories, who merges,\n   and what must never be touched.\n8. Write the answers and the reviewers' rules under `## House rules` in AGENTS.md, outside Forge's\n   block. The repo's own rules win where they differ from Forge's default-stack conventions.\n   A rule every review must follow, such as which tests a kind of change needs, goes under\n   `## Review rules` in AGENTS.md, outside Forge's block: every review reads that section from the\n   default branch and follows it.\n   A repo keeps its rules in AGENTS.md only: forge sync moves a CLAUDE.md's own lines into\n   AGENTS.md, outside Forge's block, and deletes CLAUDE.md, since Claude Code reads AGENTS.md itself.\n9. Propose a `fast_test` for the repo: its own test command, keeping its configuration and setup,\n   with the test tool's built-in changed-only option and `{base}` (for example\n   `vitest --changed {base}` or `jest --changedSince {base}`). Once the human agrees, set it in\n   `forge.toml` through a fix. For pytest repos, propose\n   `forge test --pytest {base}`: Forge runs this picker outside the project, keeping the repo's\n   full `test` command and narrows pytest to changed and module-related test files. Use the\n   repo's Python runner for `test`; keep Forge outside the project, and keep lint and other\n   checks in `test`.\n   During adoption review, name the repo's cheap whole-repo checks that read shared files without\n   imports, such as rule checks, file inventories and configuration checks: changed-only selection\n   can miss them. Include their pytest files or node IDs in Python `always_test`, or their commands\n   beside changed-test selection in TypeScript `fast_test`, through the normal settings fix after\n   the human agrees. Keep `test` as the full suite. New repos get this review at setup; existing\n   adopted repos get this guidance on upgrade and sync, with settings changed only through that fix.\n   If the app has Playwright browser tests, its close command (`fast_test`, else `test`) should run\n   them; if it does not, the rendered check runs only in the full test run. A worker who finds this\n   says so in its last message.\n   Forge writes no `fast_test` by itself.\n   Client CI caches npm downloads and the default pnpm stores by the root lockfile and enables\n   uv's package cache. It keeps the app's own pnpm setup and version.\n   New starter Dockerfiles collect all package manifests in a separate stage, then install from\n   those manifests and frozen lockfiles before the build stage copies source. The dependency\n   layer supports added or removed workspace packages and keeps `.npmrc` outside the image.\n   Sync updates existing repos' workflows, but\n   keeps app Dockerfiles unchanged. Update an existing app's Dockerfile through its own fix.\n   Cache packages and image layers only, never a test database. The generated workflow has\n   no image-build job; image-layer reuse needs the app's existing image builder and its cache.\n\n   New repos leave `fast_test` unset, except a new starter, whose init writes one for its own script\n   when it ships `scripts\u002Faffected.mjs`.\n   Its init keeps `test = \"node scripts\u002Ftest.mjs\"` for full runs and writes\n   `fast_test = \"node scripts\u002Ftest.mjs {base}\"`.\n   The Python starter accepts a base in `node scripts\u002Ftest.mjs \u003Cbase>`; `--list` prints commands\n   without running them. API changes select API types, ruff, mypy, import checks and all API\n   tests, since HTTP tests have no import graph. Web and library changes select ESLint, the\n   TypeScript build, changed Vitest tests and the browser suite. Shared configuration or no\n   base runs everything. Existing apps keep their scripts on upgrade and sync; ask before\n   adding this selection to them.\n   The TypeScript starter uses Nx to name affected\n   parts and run their lint, typecheck and tests; `--list \u003Cbase>` prints the commands.\n   New test files in an affected library also run when it has no Nx test target.\n   If close cannot read a check name from GitHub, it reports the missing name.\n   Retry `forge close \u003Citem>` after GitHub returns check data.\n   Existing apps keep their scripts and settings on upgrade and sync. Ask before adding these\n   targets and scripts to an existing app or changing its `forge.toml`.\n   When `fast_test` is missing, `forge doctor` and `forge upgrade` print one suggested\n   `fast_test` line: Python gets `forge test --pytest {base}`; vitest and jest keep the\n   repo's own install and runner, adding `--changed {base}` or `--changedSince {base}`\n   and `--passWithNoTests`. Mixed repos get one part per kind. The Python picker skips\n   the JavaScript test runners, checks and installation steps, including when shared Python\n   inputs require all Python tests; the suggested Node part installs first and runs its checks\n   once. Forge's generated optional-package wrapper is kept around the Node suggestion.\n   `npm exec` keeps its own options before `--` and its runner after it so npm forwards\n   the changed-file flags. Go, Rust, Java, .NET\n   and Ruby get no suggestion. Check the suggestion against the repo's setup before\n   agreeing to it; other shell flows need the agent to adapt the command.\n   For a combined script, `forge doctor`, `forge upgrade` and adoption print one line\n   that names the script and suggest no command; you write the command. Keep every step the\n   tests need, in the order the script runs them, including any step that runs after the\n   tests. Limit only the unit-test steps to the changed code with the runner's own option and\n   `{base}`, for example `vitest run --changed {base}` or `jest --changedSince {base}`; npm\n   passes `--` options only to the last command of a script. Keep the browser-test steps,\n   because the pull request check runs `fast_test` too. Keep the setup a script runs before or\n   after itself (`pre` and `post` scripts). Run the command once with `{base}` set to the\n   default branch. Tell the owner that changed-only selection follows imports, so API tests\n   that reach the code only through a URL run only in the full test run. Then ask the owner,\n   and set it in `forge.toml` through a fix. Forge never changes the setting itself.\n   A fast test that runs in pull request CI must include the tests that import the changed source\n   files, split across the test groups: for example `vitest related`, `vitest run --changed {base}`,\n   `jest --findRelatedTests` or `jest --changedSince {base}`, or the Python picker.\n   A script that runs only the changed test files must not be the pull request check: unchanged\n   tests that import a changed source file are skipped, fail on the main branch and block every\n   other close.\n   A local fast test may stay smaller, because a central file can select hundreds of tests.\n   A test that reaches the code over HTTP or by running a program is caught only by the full run,\n   which stays nightly.\n\n10. When the repo has a Dockerfile, write `services.toml` as the deploy paragraph at the top\n    of this guide says, get the human's confirmation, and add it to the adoption fix.\n\nOn a live app, every story and fix also follows these:\n\n- Before changing code no test covers, first add a test that pins today's behaviour.\n- Migrations work with the previous release still running: expand, then contract. Add a new table or column before code uses it. Keep the old table or column for two releases, and remove it only when no live release uses it.\n- Close checks only migrations added by the change, and skips the check in a prototype repo with no live release. A migration that drops or renames a table or column, or changes a column's type, needs a `-- Contract: ...` line in Prisma SQL or a `# Contract: ...` line in Alembic Python. The line explains why the live release no longer reads the table or column; close allows it when the line is present, and review reads the explanation.\n- A change users would notice ships behind the team's own feature flags.\n- No production credentials on this machine; never ask for them.\n\n## Upgrade Forge\n\nOn the default branch, `forge doctor --fix` commits its dated Forge-files fix with a proof list\nof its Done-when and the files refreshed by the pinned release's sync. Run `forge close \u003Cname>`\nas doctor suggests; close starts tests alongside the first review and reports both results. New repos get this\nat setup, and existing repos get it when they move to this release.\n\nWhen `forge next` says a newer Forge release is out, offer the upgrade to the owner.\nNever upgrade without the owner's agreement. The check runs at most once per UTC day,\nshares its cache across worktrees, and stays silent when GitHub cannot be reached.\n\nAn upgrade is one fix. Its pull request carries the new version and every file Forge keeps in the\nrepo, rewritten by that version. One command does all of it.\nClose checks the fix that `forge upgrade` made mechanically instead of asking a model when it changes only\nthe value of forge.toml's `version` line and files exactly as that version's sync writes them (content and\nmode). Any other change, or an earlier review of that fix that still blocks, gets the normal model review.\nUse `forge upgrade \u003Crelease>` directly, not `forge fix start`: upgrade creates its own fix.\n`forge next` gives `Next: forge upgrade \u003Crelease>` when its release check finds a newer release\nthan the repo pins. If upgrade refuses outside the default branch, move to the main checkout.\nDrop the current fix only if Forge started it and the owner agrees. Then switch to the default\nbranch and run `forge upgrade \u003Crelease>`. The refusal gives these steps in plain words.\nIf the upgrade's fix name belongs to a dropped or restored fix with no other work, upgrade\nrestores its folder or continues in it. If that fix has other work, the refusal names the\ncommand to restore or close it. For uncommitted work, it gives the stash command to save\nthose edits before the upgrade. It preserves active fixes that were never dropped and names\ntheir work command. Keep that work and complete the named step first.\n\nBefore starting another upgrade, it removes an earlier upgrade's leftover worktree and local\nbranch when its pull request has merged and the checkout has no unpushed or uncommitted work.\nAn open upgrade or local work still refuses and stays in place. Ignored configuration and data\nalso stay in place; only recognized cache directories may be discarded.\n\n1. Ask which release to move to, recommending the newest.\n2. If the target release differs from the release on PATH, wait until no Forge runs are in\n   progress anywhere on the machine. An install during a close can mix two releases.\n   `forge upgrade` names those runs and asks you to wait. If the target release is already on\n   PATH, upgrade skips the install and continues while other runs remain in progress.\n3. Run `forge upgrade \u003Crelease>` in the main checkout, on the default branch. It installs the\n   release, has that release refresh Forge's files in the fix, commits them and closes the fix.\n   Its commit includes the upgrade's proof list; close reports tests and review results together.\n   It changes only the version in `forge.toml`.\n4. When it refuses, follow its `Next:` line. Running it again picks up where it stopped.\n5. Close's last line says who merges: the human, or `forge merge \u003Cfix>` when the repo allows it.\n\nClose runs the time-story backfill as part of the upgrade, with nothing extra to type. It\nrebuilds open items and items merged in the last six weeks from git and GitHub, marks them\n\"rebuilt from history\", and leaves spans without evidence unknown. If GitHub cannot be reached,\nthe next close on this machine retries the backfill. The agent then opens the board and reports\nwhat is still missing.\n\nA repo pinned to a release without `forge upgrade` runs it once through uv:\n`uvx --from git+https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge@\u003Crelease> forge upgrade \u003Crelease>`.\nUntil the upgrade merges, the default branch keeps working with the new release installed.\nAfter it merges, older branches keep their pinned release and its rules. When Forge says the\ndefault branch already pins the installed release, merge `origin\u002F\u003Cdefault>` into your branch to\nuse that release and its rules.\nIf close stops because the branch pins an older release than the default branch, run\n`forge work \u003Citem>` to merge the default branch. Then run `forge close \u003Citem>` again.\n\n## Refresh dependencies\n\nNew starter apps use Playwright 1.64.0, which supports Ubuntu 24.04 and 26.04.\nExisting apps keep their own `package.json` and lockfile on upgrade and sync.\nWhen the owner asks for the same upgrade in a pnpm app, set `@playwright\u002Ftest` and\nany `pnpm.overrides.playwright-core` pin to `1.64.0`, then run\n`corepack pnpm install --lockfile-only` and `corepack pnpm install --frozen-lockfile`.\nKeep `@axe-core\u002Fplaywright` unless it needs an update for compatibility. Check any\nPlaywright Docker image tag matches the package version, then run the app's browser tests.\n\nNew Python starter apps keep the API contract file (`libs\u002Fshared\u002Fapi-types\u002Fopenapi.json`) and its types (`libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`) out of git. Existing apps keep theirs on upgrade and sync; until an app has moved over, a part that changes the API lists both files in its scope as today, so Forge still sees that those parts change the same files.\n\nWhen you write the next plan or fix for a Python app and `git ls-files` lists one or both of those paths, offer the owner the move-over fix in one line, before more API parts.\nOn a yes, run `forge start` in the main checkout, on the default branch, not in a story, part or fix checkout: a fix started in one of those stacks on that item and cannot merge before it.\nThe fix changes six files (`.gitignore`, `package.json`, `scripts\u002Ftest.mjs`, `scripts\u002Faffected.mjs` and the two removed generated files), one over the five-code-file limit of a fix, so before the worker starts, run `forge fix allow-large \"Move the API contract and its types out of git\"` in the new fix's folder, as for any fix that corrects one kind of problem in every place it appears. The steps:\n\n1. Run `git rm --cached --ignore-unmatch libs\u002Fshared\u002Fapi-types\u002Fopenapi.json libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`. This removes only these two files from git's index, whichever of them is still tracked, and keeps them on disk. It does not stop when one of them is already untracked. Do not clean the work tree and use no path pattern.\n2. Add both paths to `.gitignore`.\n3. Start the `typecheck` script in `package.json` with `corepack pnpm run api-types && `.\n4. If `scripts\u002Ftest.mjs` picks parts, run `api-types` before any `tsc` call, and let a change under `apps\u002Fapi\u002Fapp\u002F` select the web part too, as the new starter does.\n5. Remove the two paths from the scope of planned parts. Leave their `After` links as they are: parts that add a module still share other files, such as `apps\u002Fapi\u002Fapp\u002Fmain.py`.\n6. Delete these two files on disk, by their two full paths and nothing else (a file that is not there needs nothing). This is safe: `api-types` writes both files from the API code every time, and nothing else is in them. Then run the repo's test command. It must pass and must make both files again. Forge's local test runs in this checkout, so this step is what proves that a fresh copy works.\n\nA branch that changed one or both files gets a modify\u002Fdelete conflict when it merges the default branch. Run `git rm --cached --ignore-unmatch libs\u002Fshared\u002Fapi-types\u002Fopenapi.json libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`: it keeps the removal for whichever of the two paths is still in the index, and does not stop on a path that is already gone. Then run its tests.\n\nOnce in each new or existing repo, turn on GitHub's Dependabot security alerts with\n`gh api --method PUT repos\u002F{owner}\u002F{repo}\u002Fvulnerability-alerts`.\nDependabot security updates stay off: add no Dependabot update pull requests and no\n`.github\u002Fdependabot.yml`. This is a repository setting, not a generated file.\n\nWhen the default branch's lockfiles and Dockerfiles are over a week old by git log, `forge next`\nlists a refresh fix with its `forge fix start` command; start it like any ready item. In the\nfix's folder:\n\n1. Update dependencies within the ranges the manifests allow (`npm update`, `pnpm update`,\n   `yarn upgrade` (Yarn 1), `yarn up -R '*' '@*\u002F*'` (Yarn 3+), `bun update`, `uv lock --upgrade`, `poetry update`, `cargo update`,\n   `go get -u=patch .\u002F... && go mod tidy`); never raise a range.\n   For Yarn 2, remove only `yarn.lock`, then run `yarn install --no-immutable`;\n   keep every `package.json` unchanged. This re-resolves the whole dependency tree within its\n   declared ranges; recursive `yarn up -R` starts in Yarn 3.\n2. Pull each Dockerfile's base image at its current tag, or move it to the newest patch of the\n   same tag, and rebuild the image.\n3. Without an explicit `test_place`, use CI only if `checks` names a check other than\n   `forge-pr-check`, which runs no app tests. Otherwise close runs tests locally.\n   An explicit choice keeps its value. New and earlier-adopted repos get this default on upgrade.\n   Keep `test` as the full suite for the nightly run and change selection in `fast_test`.\n   Doctor warns about a `test` that looks like change selection, without failing the check.\n   Follow the repo's `test_place`: in local mode, run the related tests through\n   `forge test`; in CI mode, do not run them here. Commit, then `forge close \u003Cfix>`.\n\n## Planning a story\n\nFollow the agents skill (.codex\u002Fskills\u002Fagents\u002FSKILL.md) for any agent, chat, voice or in-app assistant work. When a part adds one, the plan names the skill's sections that apply and the model service it uses.\n\nA cold read passes when no note is at the bar (blocking): the plan is wrong, contradicts itself,\nor a builder could not act on it. Readers prefix numbered findings with `Blocking:` or\n`Advisory:`. Advisory and below-bar notes need no disposition from you or another round; unmarked\nfindings block in round one. A cold read stops at the round limit (the repo's setting, two by default) when notes below P0 are still\nopen, or when P0 notes are open in two rounds in a row.\nNew repos get this rule on init; existing repos get it on upgrade plus sync.\n\nStart with `forge start \"\u003Ctheir words>\"`. A spec is optional: when Forge chooses a plan, its branch adds\nits missing roadmap entry, so no separate roadmap fix, spec read or spec confirmation is needed.\nThe entry travels with its tasks to the default branch, including tasks waiting on another story.\nWrite the problem, today's workaround and its cost in the plan's Why; the title seeds that\nsection. Run the story's one cold-read loop, then get its one approval. A story already linked\nto a confirmed spec keeps that link and follows the same story read and approval as before.\nPromotion keeps the fix's existing roadmap entry: before using `--from-fix`, put that entry\non the fix's branch and commit it. Promotion adds no entry or separate roadmap copy.\nForge refuses promotion while the fix's roadmap has uncommitted changes.\nNew repos get this guide at init; existing repos get it after upgrading Forge and running sync.\n\nEnd each item of a plan's What changes for you with its source in plain words, such as\n`(Source: the client's note on late orders, 12 Oct)`, or with the sourced item that needs it,\nsuch as `(Needed by: the Customers screen)`. A source is a client note in\n`docs\u002Fproduct\u002FDISCOVERY.md`, an answer in `docs\u002Fproduct\u002FBRIEF.md`, a decision in\n`docs\u002Fdecisions\u002F`, a screen marked Build now at sign-off, a fixed rule in\n`docs\u002Fproduct\u002FCONSTITUTION.md`, or the human's own request with its date. An item that has a\nsource needs what it cannot work without: its validation, an error or empty state, an index for a\nfilter that a list shows, or accessibility basics. Name each screen, field, endpoint, tool and\nsetting that the plan adds in one of these items. Plan nothing that a source asks for but the\nwork does not need: Is it needed at all? Deleting beats fixing. The canvas can show\nlater screens; plan only the screens marked Build now. The starter's fixed rules are the base:\nplan nothing beyond them just in case.\n\nReaders should return plain `No findings.` alone when a read finds nothing. `forge read` also\naccepts replies with at least one no-findings line when every numbered or bulleted item says\nthere are no findings, ignoring other note lines. A numbered or bulleted blocking finding in round one still\nneeds a disposition and another round.\n\nHandle cold-read rounds yourself: amend the plan and write dispositions.\nOnce a read is clean, before Plan Mode approval, list the choices you made alone answering\nnotes in all rounds: each amendment that picked a behaviour, a limit, a refusal or a scope cut.\nGrill the human one question at a time, with your recommendation first.\nRecord each answer in the plan, then ask for approval. Plain factual corrections need no question.\n\nUse one framing line before showing a story in Plan Mode:\n`Approving: \u003Ctitle>, \u003Cn> parts, \u003Crisks>`.\n\nThe owner approves only the top of the story doc. Show it from its title down to\n`## For the builders`, unchanged, in Plan Mode and exit Plan Mode with that part as the plan; in\nCodex, show the same part, then ask the approval question `forge next` gives. A doc with no\n`## For the builders` heading is shown whole. The approval binds \"What changes for you\" and\n\"Done when\", so tightening anything below `## For the builders` needs no new approval, while\nchanging a result or \"What changes for you\" does. Once a round of cold read has passed, an edit only\nbelow `## For the builders` needs no new round either, and `forge read` refuses to run one; an\nedit above it does. From round two, for stories, specs and decisions alike, the reader checks\nwhether each earlier finding is closed and raises anything new only for a P0 that happens in\nnormal use. A round-one fix that breaks the main path counts as a P0.\nBlank question replies count as unanswered. The approval hook's pin notice appears only after\nrecording succeeds; if the repo pins a newer release, install that pinned release.\n\n- Done when: a few results the client or their user can observe, each answering the plan's Why\n  and, when linked to a spec, tracing to its behaviour or success measure.\n  Each item is one bold plain sentence and nothing more, with no code names, file paths or\n  test names. \"Code exists\" is not a result.\n- Keep new story plans to at most six Done when items. `forge read` refuses larger plans in one\n  line asking you to split them into smaller stories; already approved larger stories stay as they are.\n- Each item's evidence, edge cases and the test or check that proves it go under the same number in\n  `### Done-when details`, the first section under `## For the builders`. Workers and reviewers\n  get the entries of the items their task covers. An item with nothing to add has no entry.\n- Done-when or Notes names supported inputs and exclusions. A dismissal that narrows those\n  inputs needs an amendment to the story doc before the review can close.\n- Put Risks right after Done when, then the `## For the builders` heading, so the owner's\n  sections come first and everything for the agents sits below.\n- Tasks: before writing each task's Scope, search the code for the files it needs. The plan check\n  refuses two tasks whose Scope paths share a prefix up to the first wildcard, unless one waits\n  for the other through After, directly or through another task; the refusal names both tasks.\n  Paths with a segment named `tests`, `test`, `__tests__` or `spec` do not cause Scope overlaps.\n  Parts can share these test paths without an After link. Explicit After links still apply.\n  A refusal caused by a Scope overlap names the shared path, or the glob when its literal prefix is empty.\n  Put a shared production file with its names and stubs in the first task that needs it. Tasks that need it\n  wait for that task through After, then own only their files. Each row names the Done-when items\n  it Covers, its Scope (the paths it may change) and its Tests. A task that covers nothing is cut;\n  work wanted later goes to Notes, or the linked spec's Out of scope.\n  Keep a file that a script can make at build time (a generated API contract or the types made from\n  it) out of the repo and out of every Scope, when nobody needs it stored. When the repo keeps such a\n  file on purpose, give its change to one first part that the other parts wait for. Three or more\n  parts that list the same file make the plan read print a `Shared file:` note. The `Shared file:` note\n  is advice: it does not stop the read or the approval, and it looks only at the plan being read.\n- The Tests column names one end-to-end case per Done-when item that changes runtime behaviour,\n  and none for settings, docs, deletions or test-only items: the check the item names proves those.\n- Keep tasks small: at most three Done-when items and about 400 changed lines each, counting\n  additions and removals outside tests, Markdown files, docs\u002F, plans\u002F and .factory\u002F.\n  Forge prints the rule when a part starts and close warns when a part is larger; split large parts when you plan them.\n- Keep each part's builder notes to its goal, files and one test per rule.\n- When a plan adds a new feature to a TypeScript or Python starter app, name its plural,\n  singular and fields in the builder notes, and give the worker's first-step command:\n  `forge task feature \u003Cplural> --one \u003Csingular> --field '\u003Cfield>:\u003Ckind>'`.\n  Quote every `--field` value with single quotes, including simple fields. For example:\n\n```sh\nforge task feature clients --one client --field 'name:text'\nforge task feature jobs --one job --field 'name:text' --field 'description?:long-text' --field 'status:status(planned|active|done)' --field 'client?:link(clients)' --field 'hoursBudget?:number' --field 'budget?:money' --field 'dueDate?:date' --field 'contactEmail?:email' --field 'billable:yes-no'\n```\n\n  The command builds the feature's API, agent tools, change history and tests. It writes no pages;\n  the agent builds the screens for APIs that people use, in the client's design.\n  A feature needs a text field for its name. The nine kinds are text, long-text, number, money,\n  date, yes-no, email, status and link; `?` makes a field optional. Add other kinds by hand.\n  The worker runs the command; the human makes no technical choices and never types it.\n  Keep the generated organisation checks, change history and five permissions. If the plan\n  changes the role permissions, name that change for the worker to make in the feature's\n  permission mapping. A non-starter or older starter missing the required parts gets a refusal\n  naming what is missing; build that feature by hand in its existing layout.\n- A plan that removes a feature names its plural and follows \"Removing a feature\" in the Prototype\n  section: the check, the fixed list, then the check again and the app's tests.\n- In a starter app, each feature's agent tools are in its one tools file\n  (`libs\u002F\u003Cplural>\u002Fserver\u002Fsrc\u002F\u003Cplural>.tools.ts`, Python `apps\u002Fapi\u002Fapp\u002F\u003Cplural>\u002Ftools.py`),\n  and the feature command writes it. When a story adds a route that agents need, the part\n  names the hand-made tool, its name in the form `\u003Cfeature>_\u003Cverb>`, its permission and its\n  annotations. When the owner wants a default tool hidden, the part says so.\n  Every generated or hand-made tool follows these rules:\n  - Names start with the feature. A description says what the tool does, when to use it and\n    how it relates to the other tools, as for a new user.\n  - Arguments use snake-case names, with `\u003Csingular>_id` for an id. Strict input and output\n    schemas come from the feature's own schemas.\n  - Use a search tool, not a list tool: `query`, the feature's filters, `limit` (20 by default,\n    up to 100) and `cursor`. Return `next_cursor`, how many match in all (more than 10,000\n    when capped), and how to narrow the search.\n  - Return useful fields with names beside ids, `response_format` set to `concise` by default\n    and `detailed` on request, `structuredContent` with an `outputSchema`, and a short summary.\n  - Return failures as tool results with `isError`, a plain message with the fix and an example\n    where useful, `kind`, `retryable` and `retry_after_seconds`. Never return HTTP statuses or\n    traces for tool failures; protocol errors are only for an unknown tool or malformed request.\n    A missing or revoked agent key is an HTTP 401 before any tool call.\n  - A create accepts `idempotency_key`; update, delete and restore are safe to run again.\n  - Set all four annotations: `readOnlyHint`, `destructiveHint`, `idempotentHint` and\n    `openWorldHint`, to describe what the tool does.\n  - Limit each call to 10 seconds, then return a retryable `unavailable` error. Limit each key\n    to 120 calls a minute per running API copy. Both errors say how many seconds to wait.\n    Work can still finish after the time limit, so a create's retry uses the same key.\n  - Keep the contract case `every tool has a description, annotations, schemas and the error\n    shape` passing for every tool, including tools added by hand.\n  Only starter apps get the MCP server. Upgrade and sync deliver this guidance without app\n  files or a `services.toml` change. In an older starter without MCP support, the feature\n  command builds the feature without tools and says so.\n- When a part adds a create or a send, pay or notify action, it says that the action takes a\n  retry key. When it adds a report, it names the report, its result fields and their units.\n  When it lets a person sign an agent in, the agent acts as that person, and the part names\n  the agent's `viaAgent` text.\n- Each feature's resources come from its tools file's `defineFeatureTools` and need no code.\n  When a story builds or changes a feature that a task under `## Agent tasks` names, the part\n  names its prompt: the name in the form `\u003Cfeature>_\u003Cverb>`, its inputs and its permission.\n  Write no other prompt. Add no elicitation and never use sampling.\n- Shared seams first: when two tasks share a function, field, file format or command, the first\n  task pins it. It commits the shared names and stubs plus one test that crosses both sides, and\n  the tasks that use it list it under After.\n- Aim for parallel work: split tasks so each owns its files. A line several tasks would edit (a\n  command-table row, a guide list or a registry) goes to one task, or to a small last wiring\n  task. Use After only when a task needs another task's code.\n- After names this story's tasks by ID; name another story's task as KEY\u002FTASK (for example\n  TURN-1\u002FT4). `forge next` and `forge task start` hold the task until that task's pull request merges.\n- End the Tasks section with its one `New moving parts:` line (see Build simple).\n- Risks names every one-way step: deleting data, a destructive migration, a new vendor.\n- Use the stack already in the repo. Ask the human only when options differ in cost, lock-in or\n  reversibility. Replacing behaviour deletes the old path in the same story.\n\n**The roadmap.** Order stories by value, not by layer. The first story is the smallest slice, end\nto end and usable by the client; it brings only the setup, sign-in and data it needs. No\nsetup-only, platform or \"foundation\" stories. Cut a story that answers no problem in its Why;\nwhen linked to a spec, it must also serve that spec's behaviour.\n\n`forge next` shows this release's running builder rounds against this machine's builder places as `Builds running: N of M`.\nStart every task and fix `forge next` lists as ready at once, and close each as its worker\nfinishes. One machine runs work rounds on half its available cores (at least one place),\nacross all its repos; the rest wait in line. Reads and reviews take no agent place.\nOn GitHub Actions (`GITHUB_ACTIONS=true`), tests use all available runner cores,\nwithout reserving cores for agents or other runner jobs. Laptops keep their existing share.\nBuilders lend their places during test commands and wait for admission again before continuing.\nReturning builders and failed-test repairs go before new builds. New builds pause above twice\nthe test lane's place count of waiting test items and resume at that count or below.\nEvery run also waits while load per\ncore is 1.5 or more, including when external jobs cause the load, or free memory is below its floor.\nBusy local CI jobs reduce the available budget until they finish. Within the remaining work, items that other planned work waits on go\nfirst, first-come within each group; runs print their place and why when they start waiting and\neach time it changes. Running agents keep their places except during test commands.\nA run that dies frees its place once its agent ends. A waiting\nrun is working as meant: keep watching it. When a fix changed a story's plan on the default branch, `forge next` and `forge task start` say\nso with the command that merges it into the story branch; run it, then carry on. Forge compares\ncontent history, never commit dates: an older copy on the default branch does not block a start.\nWhen only the story doc differs, `forge task start` merges the default branch into the clean\nstory branch itself and says so; conflicting edits still need the printed merge command.\nWhen a story pins an older Forge release than the fetched default branch, `forge task start`\nfirst merges that default branch into the clean story branch so the task uses the upgraded\nrelease and rules. Resolve any merge conflicts in the named story folder, commit the merge,\nthen retry task start. Matching release pins need no upgrade merge.\nThis also works from an older story checkout or a stale default checkout: task start handles\nthe upgrade before Forge can forward the command to the checkout's older release.\n`forge next` names the unmerged item a part waits on for overlapping files, including another\nstory's work, using the same overlap rule as `forge task start`.\nFor open fixes and started parts, `forge next` also compares each branch's changed files\nwith its merge base on the default branch. It names each pair that shares files, lists up to\nthree shared files, and says \"merge one first\". It ignores `.factory\u002F`, `plans\u002F` and\n`.test_durations`. This advice does not block start, close or merge. New and upgraded repos\nget this advice on this release. `forge sync` updates the guide in existing repos.\nThe comparison includes the old and new paths of a renamed file. It skips branches that\nthe default branch contains, and fixes whose records are already on the default branch.\n`forge next` prints all overlap advice on separate lines after its next state. Its next command and step stay the same.\n`forge next` lists a part only when `forge task start` would accept it, and names the reason when it would not.\n\n## Cold read findings\n\n**Settled findings stay settled.** Readers and reviewers receive all earlier rounds' notes,\nanswers and fixed or dismissed findings, including the coordinator's recorded work notes.\nForge ignores repeats of disposed cold-read text or a fixed review title and file; they cannot\nblock or start another round. A dismissed finding stays dismissed while the line its `file:line`\ncites is unchanged, even when it moves; once that line changes, a repeat of it blocks again and\nneeds a fix or a new dismissal. A new defect needs distinct text and new evidence.\nHuman acceptance still expires when the accepted version changes. New repos get this on init;\nexisting repos, including earlier adopted ones, get it on upgrade and sync.\n\n- `Unproven: item \u003Cn>: \u003Ccase>` or `Trap: \u003Ctrap>: item \u003Cn>`: add the case to that Done-when item\n  and its test to the Tests cell of the task that owns it. Never resolve one only in Notes.\n- `Not needed: \u003Cwhat>` on a large addition: name the item's source or the sourced item that\n  needs it, or cut the addition and add one line for it to `plans\u002Fideas.md`. On a small addition it is advice: act on it only when\n  that is cheap.\n- A finding inside the cold read's \"What counts\" boundary is cut (fix the doc) or deferred, never\n  kept as unnecessary. `keep` only a finding outside the boundary or factually wrong, and give\n  the reason as the Leave out line it falls under, the Raise line it lacks, the cited fact that\n  disproves it, or the human's `Decided:` line.\n- `Disputed keep \u003Cn>: \u003Cwhy>`: the reader still disagrees with a finding you kept. Put it to the\n  human as one question with options, record the answer in the doc's Notes as\n  `Decided: \u003Cfinding>: \u003Canswer> (owner, \u003Cdate>)`, and give both the kept finding and the disputed\n  one the disposition `keep` citing that line.\n\n**Learn the traps.** Before closing the story's last task, look back at the story's\nreview rounds. For each kind of finding the plan missed that cost two or more fix rounds or hit\ntwo or more tasks, add one trap line to the `## Known traps` section of the repo's AGENTS.md,\noutside Forge's block, in the last task's worktree; create the section when it is missing.\nCommit it before closing the task. Every cold read checks plans against that section.\nCount the story's items' entries per file in the spotted records on the default branch, open or\ndone; each file with three or more, or one a task was stopped on (its state's `stop`), gets one\ntrap line naming the file and the kind of problem that kept coming back.\n\n## Steering a Codex worker\n\nBefore `forge work` can start a worker, resolve any unfinished merge in the item's checkout\nand commit the merge, then rerun `forge work \u003Citem>`. Work refuses before changing its start\nrecord or the index, so both conflicted and resolved but uncommitted merges stay intact.\nNew repos get this guidance at init; existing repos get it after upgrading and running sync.\n\nWhen `forge work` says Claude ended without running a turn, no worker ran: Claude is often\nwaiting on a prompt, such as a review of changed hooks. Run `forge doctor --fix` in the item's\ncheckout. Then run `forge work \u003Citem>` again. If no turn runs, inspect the saved log.\n\nEvery Codex worker, plan reader and review runs with low model verbosity, no reasoning\nsummaries, and a developer instruction to write no progress commentary, only the final handoff\nand any question. Forge sets these for each thread, including resumed threads; neither\n`forge.toml` nor user or project Codex settings can turn them up. New and upgraded repos get\nthis automatically, with no setting to change.\n\nWhen one sentence would help a worker finish its next round, give it with\n`forge work \u003Citem> --note \"\u003Ctext>\"`. The note appears under \"From the coordinator\" in that\nround's brief and is recorded with the turn. Give it again if a later round needs it; a note\ndoes not change the item's Scope. Read a close finding and the code it cites before deciding\nwhether the worker needs a note or the finding should be dismissed with evidence.\n\nIf a worker ends with a `Question:` paragraph, answer with\n`forge work \u003Citem> --note \"\u003Canswer>\"`. The worker waits for that answer: another work round\nwithout a note and `forge close \u003Citem>` both refuse until the answering round completes, and\n`forge next` shows the question with that answer step. The\nanswer returns to the same conversation when it can resume; a fresh brief carries both the\nquestion and answer. Workers change files outside Scope that the change needs and name them in\nthe handoff, so answer a Scope question only when the change isn't needed. If the answer needs a\nchoice the item does not settle, get that choice made before sending the note.\n\nWhen a round ends with changes left uncommitted, `forge work` continues the same conversation\nonce, repeating its test instructions and asking it to commit. In a local-test repo, the worker\nruns related tests through `forge test` once at the end of the turn, reruns only failures and commits any fixes. In a\nCI-test repo, wider related tests, lint and type checks stay in pull request CI. Only\nif changes are still uncommitted after that does it warn, naming them: `forge close` reviews only\nwhat is committed, so look at them before closing.\n\nContinued worker rounds repeat the selected test-place instruction and its commit order,\nreplacing any earlier full-suite instruction. Follow the repo's `test_place` choice when applying\nthe test-audit skill. The nightly full run covers the rest.\n\nForge trusts its own Codex hooks for each turn it starts, so the guard runs even after a hook\nchanges. Codex runs no project hook in a project it doesn't trust, so Codex workers and readers\nall refuse there until the human trusts it. Forge needs an exact trusted `[projects]` entry in\nCodex's config for the project folder or its main checkout; a parent folder's entry does not\ncount, and the refusal and `forge doctor` name the entry to set. A project hook that isn't Forge's and that Codex doesn't trust stops every Codex turn;\nask the human to review it in Codex's \u002Fhooks, then run the command again.\n\nFor a quick read-only question about this checkout, hand it to the session's `explorer`\nsubagent role. It uses the explore entry in `forge.toml`; no separate Forge command is needed.\n\nEach kind in `forge.toml`'s `[models]` table may have a codex and a claude entry, such as\n`[models.build.codex]` and `[models.build.claude]`; a single entry counts only for its own model's\ntool (a gpt model is Codex's, any other Claude's). Workers use their selected tool's entry,\nand explorers use their host's entry. Workers and Claude plan readers with no entry use Forge's defaults.\nCodex build, fix and lite default to `gpt-6.1-sol` at low effort; design uses its design default.\nNew repos pin Codex reviews, including working-prototype reviews, and cold reads to\n`gpt-6.1-terra` at max effort. Upgrade and sync keep existing model settings unchanged.\nClaude build, fix and lite accept a `subagents` and `subagent_effort` pair, or use\n`claude-haiku-5-5` at high when neither is set. The SDK's `general-purpose` helper\ngets the same pair. These options affect only the Claude builder's turn, not other\nClaude sessions or settings. Codex helpers keep their configured pair, defaulting\nto `gpt-6-luna` at max. Neither tool's helpers change effort after a failure.\n\nAfter `forge sync`, Codex sessions opened in the repo can use every shipped role, including\n`fixer`. Sync keeps the team's other registered roles. The default subagent model and effort\ncome from build's Codex `subagents` and `subagent_effort`, falling back to lite's pair when\nbuild has none. With neither pair, sync leaves the defaults unset. Hands-on Codex roles use\nthat same pair when set, so their worker model does not override the subagent budget.\n\nClaude build, fix and lite default to `claude-sonnet-5-5` at `low` effort.\nClaude design, including frontend, keeps `xhigh` effort. Claude plan reads with no entry use\n`claude-opus-5-5` at `high` effort, including when Claude is the only installed tool.\n`forge init` writes Sonnet at high for Claude plan reads and reviews.\nExisting model and effort entries stay unchanged after upgrade and sync.\nAfter a red close test, a blocking review finding or a failed required check named\nin `checks`, the next build, fix or lite round uses at least high on Codex and\nxhigh on Claude, keeping a higher configured effort. Optional failed checks and\nowner notes do not raise it. The same worker thread continues with the same model;\nonly that turn's effort changes. Design, cold reads, reviews and sign-off keep\ntheir fixed effort. Forge's defaults and ladder never choose none.\nClaude rounds use the Agent SDK when installed. Native rounds request effort in\ntheir instructions, and their records and round lines label it requested because\nForge cannot check that the host applied it. A continued native Codex helper can\nretain its first effort. Each run records its round number and effort. The board\nand story history show `built at \u003Ceffort>` in the round line, and omit it for old\nrecords without effort.\nClaude planner and architect roles use the plan-read entry; debugger, security\nand performance roles use Opus 5.5 at high effort. Reviews, including prototype sign-off,\nuse the selected tool's `models.review` entry, or Autoreview's defaults when unset.\n\nExisting model entries stay unchanged on upgrade. To opt in, set each of\n`[models.build.claude]`, `[models.fix.claude]`, `[models.lite.claude]` to Sonnet at low.\nKeep `[models.design.claude]` at Sonnet xhigh. Set `[models.grill.claude]` and\n`[models.review.claude]` to Sonnet at high.\nFor a missing implementation entry,\nadd a top-level line before the first table, replacing `build` with each kind:\n`models.build.claude = { model = \"claude-sonnet-5-5\", effort = \"low\" }`.\nFor plan reads, use this line:\n`models.grill.claude = { model = \"claude-sonnet-5-5\", effort = \"high\" }`.\nIf build, fix or lite has a single entry, move it to its family's table before adding the\nClaude entry. Then run `forge sync` to refresh subagent roles. Existing review entries stay\nunchanged and still set the review model and effort.\n\nWith `tools = \"both\"`, `forge.toml`'s `workers` says who builds each task and fix.\n`forge work` prints the worker,\nmodel and effort it starts with, and why; `forge next` names the worker beside each ready task:\n\n- `codex`: everything on Codex; user-facing work uses `[models.design.codex]`.\n- `claude`: everything on Claude; user-facing work uses `[models.design.claude]`.\n- `split` (what `forge init` writes): user-facing story tasks on Claude, everything else on Codex.\n\nSplit routing also applies in Forge's source repo: a task row's `User-facing: yes` selects\nClaude and its design entry. New repos get this at init; existing repos get it on upgrade.\n\nWhen the worker changes between rounds of one item, the next `forge work` starts a fresh session\non the new worker with the whole brief and the latest review findings.\n\nEach task and fix keeps the same worker chat for each tool until merge. Later rounds resume it\nafter model or effort changes, restarts, missing local records or a fresh worktree. Plan reads\nkeep their reader chat across rounds too. Forge starts a new chat only when the tool reports\nthe old chat gone or archived, another program keeps it held after one retry, or the item changes\ntools, and says why in one line. A work round starts the new chat with the whole brief, as a cold\nread does. Other resume errors stop the round and keep its chat.\nUpgrade's sync commits earlier-release chat bindings in their owning work branches, without\naccepting reader findings. It also recovers turn logs when local JSON is missing, moved spec\nworktrees and workers on `forge\u002F` branches. A landed spec's binding travels in the upgrade fix's existing notes.\nSync never waits for other items' runs: it leaves the chat of an item whose `forge work` or\n`forge read` is running to that run, says so in one line, and refreshes everything else.\nSync writes every generated file first, then keeps chats. When it can't keep one (a run on an\nearlier release holds it, its record has uncommitted edits, several worktrees hold a moved spec,\nor Codex has no starting commit for a log-only spec read), it prints a warning that names the item,\nthe reason and the next step. It leaves that chat on this machine only, so run `forge read \u003Cslug>`\nor `forge work \u003Citem>` on its own branch before you remove `.git\u002Fforge`.\nKeep `.git\u002Fforge` until the upgrade finishes.\n\nCodex app-server turns run at normal speed by default. Set `codex_fast = \"needed\"` in\n`forge.toml` to use the selected model's Fast tier for every fix, from the second worker\nround onward, or when other planned work waits on the item (the board's `waits_for` dependencies).\nOther turns run at normal speed; models without Fast also run normally. Fast uses more of your Codex allowance.\nThe optional `codex_fast` setting in `forge.toml` defaults to `\"off\"`; choose `\"needed\"` to enable\nFast or `\"always\"` to request it on every Codex turn. `forge doctor` shows the policy and whether the last Codex turn ran\nwith Fast. When Fast is wanted but the model does not offer it, the run's first line says so.\nEvery turn, including capacity retries, records the\nrequested tier and the tier Codex reports; an unreported tier stays unknown. New repos\nget the default at init; existing repos get it on upgrade without adding a setting, and sync\nrefreshes both host guides.\nThe app-server route needs the Codex SDK. `forge doctor --fix` installs it in Codex-only repos without Claude.\n\nFor a side job inside your own session, hand it to one of Forge's subagent roles, which\n`forge sync` writes for both hosts from `forge.toml`'s models: `explorer` to read and trace code;\n`planner` and `architect` for planning and design choices; `debugger`, `security` and\n`performance` to diagnose; `worker`, `coder`, `frontend`, `tester` and `refactorer` to build.\nThe diagnosing and planning roles change no files. Building an item still goes through\n`forge work`. To change a building or planning role's model or effort, change `forge.toml`\nand run `forge sync`; Claude diagnostic roles keep Opus at high effort.\nCodex roles use their host's entry when the kind has per-tool entries. With a single entry, a model\nfrom the other tool is omitted so the Codex role uses the session's model. Claude building\nroles use their implementation entry or Sonnet low; Claude planning uses grill or Opus high,\nand Claude diagnosing always uses Opus high.\n\nThe explorer role uses the read-only `explore` kind; `lite` keeps a fix's first\nbuild round. New repos get `[models.explore.claude]` with `claude-haiku-5-5` at high effort and\n`[models.explore.codex]` with `gpt-6.1-sol` at medium effort. Existing repos\nwithout explore keep using lite for read-only work after upgrading and syncing. To choose\nseparate read-only settings there, add the explore entries in a fix and run `forge sync`.\n\n## Build simple\n\nGit merges the roadmap and spotted list with `forge hook merge-roadmap` from PATH.\nEdits to different fields of an item merge; competing edits to the same field need a manual resolution.\nNew repos get this rule at init; existing repos get it with `forge sync` or\n`forge doctor --fix`. The shared rule keeps working after a worktree is removed.\nDoctor repairs both paths in Git's shared local attributes, including when an older\nrepo's tracked attributes only name the roadmap, without enabling excluded git hooks.\n\nRead [standards.md](standards.md) beside this skill for Forge's principles, the client's app\nrules and the build-simple ladder. Apply its rules in every phase.\n\n**Finding forms.** `Simpler: \u003Ccut> → \u003Creplacement>` is P2, or P1 when a new moving part isn't\nnamed in the story. Untraced work: `Cut or defer: \u003Citem>`. An unmet Done-when item:\n`Not done: \u003Citem>` (P1). A missing rule-11 basic is its own P1, never `Simpler:`.\nEvery `Not done:` finding blocks a fix, including one about builder details.\nFor a story task, a `Not done` finding blocks only when it names a covered Done-when item\nthe change misses as written. A case the Done-when does not name, such as another language, platform, shell,\ntool or folder layout, is a P2 `Follow-up: \u003Cthe case>` finding that Forge records and the merge\ndoesn't wait for, even when the case is realistic; a functional, security or data-loss defect\non the changed code still blocks under its own Raise line.\n\n## Dropping a fix\n\nOnly the human decides to drop a fix. Ask first and run `forge fix drop \u003Cfix> --because\n\"\u003Creason>\"` only on a clear yes. Forge pushes the fix branch, records the reason, who and when\non that branch, and closes its pull request with the reason. The fix leaves the board,\n`forge next` and the merge queue. Its name stays reserved and its remote branch keeps the work.\n\nForge removes the clean worktree and local branch unless ignored files outside rebuildable\nfolders keep it. It lists those paths and keeps their data. Commit uncommitted changes first;\nwait for local Forge runs to finish and drop or finish any open fixes stacked on this fix.\nA merged fix cannot be dropped.\n\nRun `forge fix drop \u003Cfix> --undo` to bring it back. Forge restores the worktree or reuses the\nkept one after a fast-forward, records the restore and reopens a pull request the drop closed.\nA fix that was ready needs `forge close` again for its new commit. Teammates see a drop or\nrestore after they fetch.\n\n## Closing\n\nIn `forge.toml`, `cold_read_rounds` sets the cold-read limit and `task_review_rounds` sets the task-review limit. Each accepts 1 or 2 and defaults to 2. Fixes keep one review round.\n\nA person can ask you to skip the model review for a task or fix. Run `forge close \u003Citem> --no-review --by \"\u003Cname>\" --reason \"\u003Cwhy>\"` only when a person asks. Close adds the name and reason to the pull request. Close refuses if an earlier review blocked the item. Tests, CI, design checks and merge still run.\n\nAt the round limit (the repo's setting, two by default), open findings below P0\nstop the item and ask the owner: one more round, split or accept.\nAccept makes the open findings follow-ups in Known issues with the owner's reason.\nAn open P0 never stops for the owner; the worker keeps fixing it. When the same P0 stays open\ntwo worker rounds in a row, Forge stops with the stuck question.\n\nFrom the second review round, close checks the previous round's findings and new P0s that\nhappen in normal use. The reviewer says fixed or not fixed for each previous finding.\nA round-one fix that breaks the main path counts as a P0 (Harm 4 or more). Open findings below\nP0 need the owner's choice at the limit, whether their lines changed or not.\nA `Case: rare` finding does not block unless it names a kind the owner requires.\nA security hole or data loss that any user can reach is normal use. Reviewers and readers do not\nraise questions that Review rules or recorded owner\ndecisions (`docs\u002Fdecisions\u002F`, `Decided:` or `Ruling:`) already settle.\nA worker can decline a finding in a commit body with\n`Declined: \u003Ctitle> (\u003Cfile>): not worth the code - \u003Creason>`, using its exact title and file.\nAn empty commit is fine. Close applies it even to a reused review and keeps it as a follow-up.\nA P0 stays open. Later rounds receive the decline as settled. Only the human dismisses findings.\nEvery `Not done:` finding blocks a fix, including one about builder details.\nFor a story task, `Not done` blocks only against a covered numbered owner-approved Done-when\nitem. Builder details, Notes and implementation guidance never block a story task as `Not done`.\nNew repos get this guide on init; existing repos, including earlier adopted repos, get it on\nupgrade and sync. Close applies the same boundary in every repo.\n\nThe owner can set added_work_min_gain to 3, 4 or 5 and always_block to a list of kinds in\nforge.toml. Record the owner's settings in a fix. They apply after it merges, from the default\nbranch. `Adds work: \u003Cwhat>` marks a finding that asks for another check, retry, guard or flag.\nAn unfloored fix-now finding below the minimum becomes a Known issue with its scores and reason.\nHarm 4 or more, Gain 5 and every score floor still block. `Must: \u003Ckind>: \u003Cgap>` holds a listed\nkind at any score, even for a rare case or in a light review. The worker cannot decline it.\nOnly the owner can accept it. Without these settings, new and existing repos keep today's bar.\nAn upgrade adds no setting. Plan reads and prototype sign-off keep today's bar.\n\nBefore building a fix, check its brief for the five-code-file limit, interface globs and any\nrecorded allowance; test files and files whose content is exactly what `forge sync` writes don't\ncount, so an upgrade fix needs no allowance. You may run `forge fix allow-large \"\u003Creason>\"`\nyourself, without asking the human, when the fix corrects one kind of problem in every place it\nappears and changes no interface. Name that problem in the reason and record the allowance\nbefore editing beyond the limit. Anything else needs the human's allowance or a story.\nRun it when no round of that fix is running: Forge refuses it inside a worker's round, and a\nworker that meets the five-file refusal stops and reports it to you.\n\nFor a follow-up to an unmerged item's findings, run `forge fix start` in that item's checkout.\nThe fix starts there, and its size and interface checks count only its own changes, including\nafter the underlying item lands. Close first tries a plain merge of the current default branch\nwithout changing the checkout. If it is clean, close keeps the branch's commits and merges when\nthe pull request needs it. A clean merge needs no force-push. If the merge conflicts after the\nunderlying item lands, close replays only the follow-up's own commits from its recorded start\nonto the current default branch and publishes with a lease. It preserves earlier merge edits,\nleaves unknown remote commits alone, and stops if the fix's own changes conflict. Close names\n`forge work \u003Citem>` to merge the default branch, then `forge close \u003Citem>`.\nOtherwise it starts from the default branch and close keeps merging default updates.\nFollow-up replay and merging default-branch updates before the underlying item lands need Git\n2.38 or newer.\n\nMark generated files such as migration snapshots `linguist-generated` in `.gitattributes`, so\nreviews show them only as counts of changed lines.\nThey count towards neither a part's size warning nor a fix's code-file limit.\n\nRead the worker's final handoff and resolve its stated blockers before `forge close`.\nBefore close, the worker puts a `Proof list:` paragraph in its last commit message: each Done-when\nitem you cover and every detail next to the test or check that proves it, or marked `missing`.\nName each test by its pytest node ID or file and write no test results: close checks each named\ntest against its own run and writes the list with only the tests it ran and their results, and marks every line it cannot match to its run's per-test results `not checked`. Name any other\ncheck with its result. Forge copies the list into the pull request and the review prompt. The first review checks the whole list, not a sample: Check every\nentry against the code and its named proof, including every Done-when detail. Compare it with the\ncovered items so omitted entries cannot hide gaps; report every missing case in that one round,\neven when a finding already blocks. Keep the whole list current; later reviews check repairs and\nnewly changed lines under the boundary above.\nWhen a Done-when item's named proof is a pull request check that has not finished yet, do not\nreport it as `Not done` if the check is configured to run on the pull request. Close's checks\ngate holds the merge until that check passes. A failed check or a proof with no check behind\nit is still P1 `Not done`. New repos get these instructions at init; existing repos get them\nafter upgrading Forge and running sync.\nTest fixtures are plain text files, never archives or other binary files. Build an old repo for\nan upgrade test in the test from a text fixture folder. Close refuses added binary files under\n`tests\u002F` before the review, naming the file to replace.\nWhen every file a change touches is forge.toml, under `docs\u002F` or `plans\u002F`, a Markdown file or under\n`.factory\u002F`, close skips forge.toml's test command and says so; the review and every named check\nstill run.\nWhen a worker round or close's merge changes the item's Forge pin, land and close say so in one\nline and continue through uv under that release before reading its new settings.\nGenerated-conflict sync and the merge commit check use the new pin too, so the merge finishes\nbefore the original land or close command continues.\nThe board and next use failed pull request checks only when they belong to that pull request's\ncurrent head, including branches that exist only on the remote or are ahead of the local branch.\nClose and `forge next` warn when this item and another open branch add the same migration\nnumber under a `migrations` folder. The warning names both items and the number. It does not\nstop work or need a setting. Forge refreshes origin once and reads its branch snapshot without\na checkout. Completed items do not cause warnings, even when their branches remain on origin.\nClose checks the tracked guide copies before review or CI waits when this branch changes\nguides or their templates. If they differ from sync's output, run `forge sync` in the folder\nclose names, then commit the generated guides and run close again. New and\nearlier-adopted repos get this check after upgrading Forge; other generated files stay as they are.\nClose brings in the current default branch before it tests or reviews. If only files `forge sync` writes\nconflict, close takes the default branch's copies, runs sync and commits the merge. A conflict in\nany other file stops close for the worker to resolve. While waiting for checks, close stops at once\nif GitHub reports a conflicting pull request: GitHub runs no checks on it. Rerun close to bring\nin the default branch. Land retries close once itself, including a conflict during its merge check\nwait; if the merge needs a person, it stops with close's existing conflict next step.\nIf GitHub refuses a pull request body update, close stops after one attempt, including during a\nhistory retry. Wait for a rate limit to reset, or fix the reported problem, then retry the command.\nClose reruns failed pytest files once after a local test failure. If they pass, close names\nthem as flaky and continues. A second failure still stops close. A failure without named\ntest files still stops close.\n\nIn local mode, close's tests and review run at the same time. In CI mode, close runs its review\nfirst, saves it, and pushes once. It then waits for the pull request checks. A red test or a P0\u002FP1 finding still\nstops the round. When the\nlocal test command fails, its test report ends with all failed pytest files and test names,\nincluding setup, teardown and collection errors, and the full test log path.\nClose keeps the output for the worker: run\n`forge work \u003Citem>`, whose brief carries it; `forge land` runs that fix round itself.\nIn CI mode, close leaves test execution to the pull request's `tests` check. In local mode, close\nruns `fast_test` when set. Otherwise it uses the shipped pytest picker for changed tests\nand tests importing changed Python modules, Vitest's `--changed \u003Cbase>`, or Jest's\n`--changedSince \u003Cbase>` (including `__tests__` files). The pull request's CI runs the related\ntests; the nightly full run covers the rest.\nDocs and brand-asset changes get the light review, which blocks only on P0 findings.\nClose and the generated `forge.yml` skip the test command when every changed path is Markdown\n(case-insensitive), or under `docs\u002F`, `plans\u002F`, `.factory\u002F` or `.forge\u002F`. They compare against the\nbase with the same rule as the part-size check. No setting is needed. The required `tests` check\npasses and says `docs only: tests skipped`. Images and fonts also count as assets, wherever they\nlive. Files marked `linguist-generated` and docs or assets referenced by tests keep the full\nreview and tests. Forge resolves literal paths from the repository or test file's folder on\nboth sides of the change, including literal path joins, `__tests__\u002F` files and shared\n`conftest.py` fixtures.\nCI checks this once before the tests job and skips that job for a docs-only change.\nOne code file runs tests as usual. New repos get\nthis rule at init, and existing repos get it after upgrade and sync. Bare `forge test` still runs.\nFor other changes, the generated `forge.yml` runs one `tests` job with `forge test --change`.\nSet `groups = 4` in `forge.toml` to run four parallel jobs with any test runner. Each job runs the\ntests related to the pull request. Put `{group}` and `{groups}` in the `test` or `fast_test`\ncommand where the runner expects its shard number and total, for example\n`vitest run --shard={group}\u002F{groups}`. Forge fills these values for each job and uses `1` for both\noutside CI. For a direct pytest command with pytest-split, Forge adds the split options automatically.\nThe PR job uses `fast_test` when set, or `test` otherwise. The nightly job uses `test`.\nForge chooses each job's groups from its own command. The `forge test --pytest` picker\nsplits the underlying `test` command.\nWhen `groups` exceeds 1 and that command has no `{group}` placeholder or automatic pytest split,\nForge uses one group. `forge doctor` and the generated workflow each show one warning.\nAdd the runner's shard options to that command to use more groups.\nWith one group, the required `tests` job also checks for docs-only changes, without extra gate jobs.\nInit writes `groups = 1` for new and adopted repos. An upgrade adds no `groups` setting, so an\nexisting repo with a direct pytest command and pytest-split keeps its six groups. Each group then\nruns its share of the related tests through `forge test --change`. The required `tests` check passes\nonly when every job passes; branch protection keeps the same `tests` check.\nA full run covers only `forge.toml`'s `test` command; if the repo's whole suite runs elsewhere, point that setting at it.\nSet `full_suite_workflow = \"nightly.yml\"` in `forge.toml`, then run `forge sync` and commit the generated workflow to omit Forge's full-suite jobs.\nThe repo's workflow must support `workflow_dispatch`. Start its full run with `gh workflow run nightly.yml --ref \u003Cdefault>`.\nThat workflow must post `forge-full-suite` on the default branch commit after its run, with `state` set to `success` or `failure`:\n`gh api --method POST \"repos\u002F$GITHUB_REPOSITORY\u002Fstatuses\u002F$GITHUB_SHA\" -f context=forge-full-suite -f \"state=$state\"`.\nGive the status job `permissions: {statuses: write}` and set `GH_TOKEN: ${{ github.token }}` in the posting step's `env`.\nIn CI mode without this setting, `forge.yml` also runs `forge test --full` once a day on the default branch and supports\n`workflow_dispatch`. After the last product merge for a release or sign-off, start the full run\nat once with `gh workflow run forge.yml --ref \u003Cdefault>` when full-run proof is required.\nPrepare the release or sign-off notes while it runs, then follow that same run with\n`gh run watch \u003Crun-id> --exit-status`; do not wait for the nightly run or the tag push.\nLocal mode has no scheduled job; after the last product merge for a release or sign-off,\nstart `forge test --full` at once in the main checkout when full-run proof is required.\nPrepare notes while it runs and wait for that same command to finish. For the daily run outside\na release or sign-off, run it when `forge next` says it is due and the machine is quiet.\nA green full run on the latest default-branch\ncommit is required before pushing a release tag. Client sign-off can reuse a green full run\nwithin the latest ten default-branch commits when only exact `forge sync` output or records\nunder `.factory\u002F`, `plans\u002F` or `docs\u002Fdecisions\u002F` changed on the default branch.\nApp, test or lock-file changes on the default branch need a fresh full run.\nAn app repair on the sign-off branch can use the default branch's green run.\nA failed latest full run still blocks.\nEarlier clients need no migration, and accepted sign-off records stay valid. Everyday merges do\nnot wait for a full run.\nA failed scheduled or manual full run appears in `forge next` with its failed test names.\nThe required `forge-pr-check` fails a pull request from a branch Forge did not start.\nBefore the first committed review, this check stays pending. A stale or blocked review still\nfails. New repos get this rule at init. Existing repos get it after upgrade and sync.\nRedo the change with `forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\"` and copy the commits there.\nForge's generated `forge\u002F*` branches and doctor's dated `fix\u002Fforge-files-*` branches still use\nthe normal check for a Forge record and a current review. New repos get this check at init;\nexisting repos get it after upgrading Forge. Sync refreshes these instructions for both.\nEach change runs its related tests, lint and type checks once. Close runs the full related-test\nselection, even when it covers more than a third of the Python test files. Shared test inputs\nselect every test.\nBare `forge test` keeps worker runs bounded: when the pytest selection would cover more than\na third of the Python test files, it runs only the part's Tests column or the fix's touched test\nfiles, plus `always_test`, and says \"The nightly full run covers the rest.\" With no named tests\nit runs only `always_test`. An explicit `forge test --pytest \u003Cbase>` keeps the full selection.\nNew repos get this bound at init; existing repos get it after upgrade and sync.\nSetup steps such as `uv sync` and `npm ci` keep their arguments; no filenames are appended.\nForge's initial optional-package Node command uses the same selection once an app adds\n`package.json`; with no package it still runs nothing.\nGo and other runners run the full test command. Compound npm scripts also keep their full\ncommand because arguments cannot select each runner inside them; `forge doctor`, `forge upgrade`\nand adoption name such a script, and step 9 of Adopt a live app says how to write the command.\nSet `fast_test` for a different selection. Supported runners with no related tests run none locally. A red CI still sends\nthe item back to the worker.\nTo include fast checks or a wider selection, set `fast_test` in `forge.toml` (in a fix), with\n`{base}` standing for the merge base with the default branch.\nTests that check the whole repo, such as rules over every test file, name no changed file, so\nthe pytest picker never picks them by default. List them in `always_test` in\n`forge.toml` (in a fix), as test files or pytest node IDs such as\n`tests\u002Ftest_rules.py::test_1_rules`; it is empty by default. With the pytest picker, close runs\nthem on every change that includes code or settings, beside the tests it picks. Docs-only changes\nskip these tests too.\nForge passes each entry to pytest, so it runs even outside the paths `test` names. In a grouped\nrun, pytest-split assigns each entry to one group; the other groups do not fail because they did\nnot run it. A missing file or node still fails. In a grouped run, a mark or `-k` filter that\nremoves an entry is not reported as missing. In a one-group run, an entry that runs no test, for\nexample because `-k` deselects it, still fails the run.\nFor pytest repos, set `fast_test` to `forge test --pytest {base}`. Forge's own repo uses this\nshipped picker too. It selects only changed test files and tests importing or naming a changed\nPython module by its dotted name or file path, such as `shop.prices` or `src\u002Fshop\u002Fprices.py`,\nincluding package-relative imports. Filenames and references to changed non-Python inputs\ndo not select tests. After the run it names each changed Python file that no test names. Tests\nthat run the program from outside miss it locally; the nightly full run covers it. It supports\nroot packages and the `src\u002F` layout, and pytest's\n`test_*.py` and `*_test.py` filenames. It excludes unrelated tests even when the full command names them explicitly. It keeps\nthe full `test` command's setup and options, caps pytest-xdist at the machine's test budget even\nwhen pytest configuration supplies the worker count, and runs the\nfull command when `conftest.py`, requirements or lock files change, except for bare `forge test`'s\nworker bound above.\nFor `pyproject.toml`, every change triggers the full command unless all changed lines are\nknown-harmless: `project.version` and `project.description`, or Hatch's packaged-file\n`include`, `exclude` and `force-include` settings under `tool.hatch.build` and its `wheel`\nor `sdist` targets. Multiline values are supported. Unknown sections, unsupported layouts,\ncomments outside safe values and mixed safe\u002Funsafe edits run the full command.\nForge's commands and generated tests job set `UV_FROZEN=1`, so uv consumes the recorded\nlockfile without rewriting it, including in older worktrees. If you wrap a Forge command in\n`uv run`, use `uv run --frozen`: the outer uv starts before Forge can set its environment.\nUpdate dependency locks deliberately before testing changed dependencies.\nFor `uv.lock`, `poetry.lock`, `Pipfile.lock` and `package-lock.json`, a change only to\nthe repo's own package version selects related tests instead. Forge identifies the\nroot package from the adjacent manifest and its local source; dependency versions,\nhashes and other lock data still trigger the full run. Missing or unrecognized lock\ndata also triggers the full run.\nNew pytest repos get this proposal at setup; existing repos get the picker and guidance after\nupgrade. Upgrade never rewrites their `test` or `fast_test` settings. Doctor reports an old\n`python -m forge.fasttest` setting with its one-line replacement. Forge needs no installation\nin the project: it loads a temporary pytest hook to exclude unrelated files, including on pytest\nbefore 8.2. Test launchers must preserve `PYTHONPATH`, forward pytest arguments and expose xdist\noptions in the command or pytest configuration.\nOn Windows, a builder's own bare `forge test` run skips each separate Playwright or Cypress step (directly or through one script of the repo) and prints one line that says so. A step that reaches Playwright through another file still runs. A test setting that is one combined script, or a script with a pre or post script, runs whole. `forge test --change`, close, the pull request check and the full run still run browser steps; Mac and Linux do not change.\nWorkers run tests only through bare `forge test`. It runs `fast_test`, or `test` when none is\nset (using pytest selection when supported), with `{base}` as the merge base with\n`origin\u002F\u003Cdefault branch>`, in the same fair machine-wide test lane as close.\nIt prints the report close keeps and always runs, including docs-only and\nuncommitted changes. If the remote default branch is missing it says to fetch it; if forge.toml\nnames no test command it says so and exits successfully. In a sample-data prototype, it says\ntests are off until client sign-off. After sign-off, ask the coordinator to set\n`sample_data = false` in `forge.toml` to turn tests on. A missing setting also leaves tests on,\nregardless of an earlier sign-off's `sample_data: true`. Forge sets `PYTEST_XDIST_AUTO_NUM_WORKERS`\nand `FORGE_TEST_CPUS` to the run's allocation from the shared process budget. On laptops, a worker's session\nrequests at most two processes, so its own `pytest -n auto` also stays at two. GitHub Actions workers use\nall available runner cores. A fixed `-n` in\nits test command is capped with `--maxprocesses`, also outside a worker session.\nThe Test selection line shows pytest's actual worker count, including serial commands and lower\nconfigured counts. Linux GitHub Actions logs also show `nproc`. GitHub Actions uses all available cores;\nlaptops keep the agent share and the reserve for local runner jobs.\nDirect Vitest and Jest commands use the same budget through `--maxWorkers`.\nThis includes `npx` (with optional `--no-install`) and `npm exec`, `pnpm exec` or `yarn exec`.\nForge caps explicit `--maxWorkers` values to the run's allocation, including percentage values.\nLower caps and Jest's serial options `--runInBand` and `-i` stay as written.\nForge does not change npm, pnpm or yarn scripts to set their worker budget.\nIt keeps existing `NODE_OPTIONS` and adds a Node preload that caps the actual runner's arguments,\nso package scripts keep their lifecycle hooks and share the same process budget.\nEach run copies the installed preload helper to its own temporary folder, so replacement\nworkers can still load it if an upgrade removes the installation during the run.\nThose scripts can read `FORGE_TEST_CPUS`. If the test command runs Vitest through a script\nwith Vitest projects, pass `--maxWorkers=${FORGE_TEST_CPUS:-2}` on the command line,\nfor example `npm test -- --maxWorkers=${FORGE_TEST_CPUS:-2}`, instead of setting the cap\nin the Vitest config. A config cap can leave projects with different `maxWorkers` but the\nsame `sequence.groupOrder`, which Vitest refuses. Other runners stay as written.\nDirect `forge test --pytest \u003Cbase>` runs join the test lane and obey its memory floor and budget.\nA picker inside close or bare `forge test` shares that run's single lane entry.\n`pytest -n auto` honours\nthe first; other runners may read the second. The lane stays taken until the test command ends,\neven if Forge is killed. `forge stop \u003Citem>` ends a running test or removes a waiting one.\nWhen `forge close` stops on a finding, open the line it cites, and the code that line calls,\nbefore anything else. The review's \"What counts\" list is the boundary, and the bar decides\ninside it: every finding at the bar (Proposed \"fix now\" or \"fix this round\") gets a fix round with\n`forge work \u003Citem>`, whatever its priority, unless close waits for the owner's choice or a decline\nmakes it a follow-up. A finding below the bar holds only when it names a required `Must:` kind\nor this item's own Done-when. Close lists other findings in the pull request as follow-ups or\nlived with. Harm 4 or 5, or Gain 5 stops the work.\nOtherwise, Gain 4, or Gain 3 with Harm 3, holds the work only with Work 1 or 2. Every other\nGain 3 or 4 finding becomes a follow-up fix, even at Work 1 or 2 when Gain is 3 and Harm is 1 or 2.\nGain 1 or 2 is lived with. Never re-score a finding to change its\noutcome. Dismiss only a finding outside the boundary or factually wrong, with\n`forge close \u003Citem> --dismiss \u003Cn> --because \"\u003Cfile:line> \u003Cwhy>\"`, where the why names the Leave\nout line it falls under or the Raise line it lacks, or the file:line is the code that disproves it.\nUse the number of an open finding in the item's saved review. Close checks the number and\nevidence before tests or review. A repair review can omit an earlier finding without refusing the request.\nClose fetches the default branch but merges it in only for a trial-merge clash, or when GitHub\nreports the pull request conflicting or behind under its up-to-date rule. Unrelated main changes\nadd no merge. Close checks GitHub's clash state at every look, even with green checks; a clash\nstops a hand-run close and says to run close again. An UNKNOWN answer keeps it waiting.\nWhen close merges the latest default branch, an earlier clean review covers a clean merge;\nonly conflict repairs and later worker edits need review. The usual tests run on the merged code.\nAn unchanged branch diff keeps the last review and its dismissals, including `--dismiss` given in that close command.\nBefore reusing serious findings, close also checks the reviewed files and contract against the\ncurrent head. A repair brought in from the default branch needs a new review, even if the branch\ndiff stayed the same. Land uses the same check through close.\nClose reconciles remote branch work before a new review. It saves the review, pushes once,\nand opens or updates the pull request with the final review block. Ready still needs a clean\nreview and green checks on the final pushed head. After `forge fix amend`, close also updates\nthe pull request's Done when line. Use `--append \"\u003Ctext>\"` to add text with a space between\nthe old and new text. `--done \"\u003Cdone when>\"` replaces the whole Done-when. Both options show\nthe old and new text before writing, and need `--because \"\u003Cwhy>\"`.\nIf another machine moves the remote branch during review, close stops before publication.\nRun close again to reconcile that work, review and test it before Ready.\nA follow-up replay also waits until the saved review for its one leased push. An interrupted\nreview keeps the replay locally for the next close; a refused lease restores the original commits.\nLand runs work first for a fix with only its start and state records, including after amend.\nA fix that changes only `.factory\u002F` and spotted records against the default branch cannot merge.\nClose and land say the build round did not finish and give `forge work \u003Cfix>` as the next step.\nThe refusal lists untracked files in the worktree. Code and documentation fixes can still merge.\nUpgrade close leaves the repo's local git hooks alone,\nincluding when it regenerates conflicted Forge files with the newly pinned release.\nIf conflicted-merge handling fails, close aborts the merge and reports the error before retrying.\nAfter upgrading, run `forge sync` to receive\nthe tests workflow's quick pass: it reuses a successful parent tests workflow only when the\ncommit changes Forge's review or test-state record and its accompanying state under `.factory\u002F`. Any other\nchange or missing passing parent result runs the suite on the pull request merged into its\ncurrent base. Reuse also requires the parent to include that base; a parent pull request run\nmust have tested that same base. A changed base or missing proof runs the suite again.\nOther workflows can use the same rule. Init and `forge sync` ship `.forge\u002Frecords-only`.\nAfter checkout, add this one step: `- {id: forge-records, uses: .\u002F.forge\u002Frecords-only}`.\nGive the job `contents: read` and `actions: read` permissions, and fetch the full history.\nThe runner needs Python, Bash and the GitHub CLI, as GitHub-hosted runners provide.\nAdd the condition below to each later step that can skip the records commit:\n\n```yaml\npermissions:\n  contents: read\n  actions: read\nsteps:\n  - uses: actions\u002Fcheckout@v7\n    with:\n      fetch-depth: 0\n  - {id: forge-records, uses: .\u002F.forge\u002Frecords-only}\n  - if: steps.forge-records.outputs.records_only != 'true'\n    run: your-build-command\n```\n\nThe output is `records_only=true` only for a push or pull request whose parent passed this\nsame workflow. The step uses Forge's existing close-record rule. Code changes, documentation\nchanges, a failed parent run or missing proof produce `false`, so the workflow runs normally.\nFor pull requests, the parent must also include the current base and its run must cover that base.\nEach job that uses the step skips only its guarded steps.\n\nWhen `forge land` stops after its one fix round or on a check it cannot fix, judge\nthem the same way: dismiss with evidence, or `forge work \u003Citem>`, then `forge land \u003Citem>` again.\nA failed CI job whose log names none of the change's files is re-run once per pushed head\ninstead of costing a fix round. Forge's review check follows review recovery, never this retry.\nWhen GitHub has not started that\nre-run in time, land stops; run `forge land \u003Citem>` again, which closes again and runs a fix\nround if the check is still red.\n\n## Keeping work moving\n\nUse `forge land \u003Citem>` for build, close, fix rounds and merge where agent merges are allowed;\notherwise it hands the ready pull request to the human. It replaces private landing and CI-wait\nloops, with bounded check waiting and fix rounds. Land waits for the pushed head's checks while\nGitHub shows progress or a check is in progress, retrying unreadable or failed answers. It stops\nwaiting on green or failed checks, or after 30 minutes without a check starting, finishing or\nbeing replaced while none are in progress. Each wait ends at 90 minutes,\neven if checks remain in progress. At either wait limit, no decision is needed.\nRun `forge land \u003Citem>` again to resume without restarting checks.\n`FORGE_CHECKS_WAIT` keeps its explicit no-progress wait instead of the longer running-check wait.\nLand says which checks are still running, missing, or\nunreadable. Close and merge also wait up to 90 minutes while a check is running.\nWith no running or queued checks, they wait at most ten minutes. When close\nstops, follow its refusal and the\nClosing section above, then run it again. Run it in the background and keep watching it.\nNever wrap `forge work` or `forge land` in a shell timeout. A forced kill cannot report an unfinished round or clean up its lock.\nGitHub reads also retry unreadable answers and server errors three times, pausing for one,\ntwo and four seconds. If GitHub still does not answer, rerun the command. Not-found and\npermission refusals stop immediately; writes are never replayed by these read retries.\nIf the branch already has commits after the item's start, land goes straight to close unless\nyou give `--note \"\u003Ctext>\"` to start a worker round with that guidance. The note applies only to\nthe first round this run starts, not later fix rounds. Close\nstill stops for a pending question and gives open findings or failing tests a worker fix round.\n\nUse `forge land --all` in place of a hand-made merge lane. It takes every task and fix whose\nstatus is reviewing, fixing, waiting for checks or ready, and leaves out, by name, one still with\nits builder, one already merged and one another command works on. It starts them oldest first,\nseveral at a time up to this machine's agent places, and merges each one when it passes.\nA child that waits only for GitHub checks releases its place so another close can start.\nIt takes a place again before it continues. Queued checks keep their place to limit new CI work.\nA stacked\nfix follows its base even when its start date is earlier. Where Forge merges, it waits for its\nbase to merge, including a base whose builder or another command still works on it. If the base\nstops, the stacked fix stops with it. A base outside the run must merge before the stacked fix\ncan enter close. Among changes whose bases are ready, the oldest starts first. A change\nnot yet ready that changes a file an older change in the run also changes waits until that one\nmerges or stops; Forge's own `plans\u002Fspotted.json` and `.factory\u002F` files never count. Where the agent\nmerges and CI runs the tests (read from the newest default branch, with `tests` as a required check),\ntwo to five ready changes form a merge train: Forge tests them together once on a temporary draft\npull request, then merges each in order with no new run of its own. Each change still needs its\nexisting checks green. A change that clashes with the default branch or with a change in the train,\nbuilds on a change that has not merged, changes `forge.toml`, was ready before the default branch\nchanged `forge.toml`, or has no ready record from its own close stays out, and Forge names it and\nwhy. Two changes that edit a file Forge merges with its own rule, such as the roadmap, count as a\nclash. Other changes in the run close at the same time but merge after the train ends. Forge\ncloses the draft pull request and deletes its branch (`forge-merge-train\u002F\u003Ccode>`) when the train\nends, but only a branch it made in this run: if that name already exists, even at the same commit,\nForge runs no train and leaves the branch and its pull request alone. If the run itself stops,\nclose that pull request by hand; it never merges. A moved default branch, a changed\npull request or GitHub's rule that each pull request must be up to date sends the changes back to\none at a time, as before, with a `Train:` line that says why. Forge checks this again at each\nmerge: the default branch must hold what the train tested so far, and the pull request the tested\ncommit. When the combined check is red, Forge waits until every job has finished. If the failed\nlogs name the files of exactly one change, that change leaves and merges last, one at a time, with\nits own check, and the rest run once more as a new train when two or more remain. If the check of\nthe change that left fails, it stops under Needs you with the failure and gets no fix round. If the\nlogs name no change, Forge runs the failed jobs again once (a job that ran out of time counts as\nfailed), and waits for every job of that run too; if they stay red, or the logs name several\nchanges, each change goes one at a time. New repos get this at init; existing repos get the train\non upgrade, with no workflow change, and this guide on sync. Only one run\nworks in a repo at a time. When two closes in the run collide on git's ref lock while fetching,\nthe run starts that change again once and says so. A failed CI check gets one fix round on\nthat change's builder thread, then close runs again. Other worker or owner stops affect only\nthat change, and the others go on. The run ends with `Merged (n): ... · Ready to merge (n): ... · Needs\nyou (n): ...`, then each stopped change with its reason and next step: `forge land \u003Citem>` for\nits next run, or, for a stopped change, close's own question and next step, which only the owner\nanswers. Close waits for the owner's recorded choice. A failed\nCI job whose log names none of the change's files runs again once before the fix round.\nIf CI still fails after the fix round, the change stops with its reason.\nForge's review check follows review recovery instead. Where a human merges, the run closes\nevery change, holds none and merges none, and lists the ready ones oldest first, with stacked fixes after their bases,\nwith their pull request links: merge them\nin that order.\n\nStart a part with `forge task start \u003CKEY>\u002F\u003CTASK>`, or a named fix with\n`forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\" --slug \u003Cname>`, then `forge land \u003Citem>`.\nTo guide a round and continue through close and merge, use `forge land \u003Citem> --note \"\u003Ctext>\"`.\nTo queue several items, run `forge land \u003Citem>` for each in the background, with `--note` when\nneeded. Forge admits each worker round by machine capacity. Do not write shell queues or private\nslot loops. `--note` takes one item and cannot be used with `--all`.\n`forge work` queues work rounds across the machine, while reads and close reviews skip\nthat line. All runs wait for high load to fall and memory to recover. Busy local CI jobs reserve\ncores from the budget until they finish. Close and worker tests share the separate test lane, except picker runs of five or fewer\ntest files, with one place per four available cores\n(at least one), so no private slot loop is needed.\n\nIf close refuses a conflicted merge, it has aborted the merge. In the item's worktree:\n\n1. Rerun the merge command close printed. Resolve team-owned content and `forge.toml` first.\n   Keep the team's notes outside Forge's blocks in shared files such as `AGENTS.md`; never take\n   one side of a whole shared file blindly. Resolve the structure of shared Markdown, JSON and\n   TOML files so sync can read them.\n2. With the pinned Forge installed, run `forge sync` to regenerate Forge's own files and blocks.\n   For merge-driver setup or drift, use `forge sync` or `forge doctor --fix`.\n3. Reconcile story docs with their current approval and cold-read evidence, preserving the\n   approved user-facing contract and both parts' builder changes. If that contract must change,\n   use the story amendment and approval flow; do not invent or overwrite approval evidence.\n4. Check the diff and remaining conflicts, stage only resolved paths with `git add \u003Cpaths>`,\n   and commit once every conflict is resolved. Then rerun `forge close \u003Citem>` or\n   `forge land \u003Citem>`.\n\nStarting is the claim: `forge story new`, `forge task start` and `forge fix start` push the\nnew branch to GitHub after committing its start. The author of that start commit is the person\nwho started the work; the board page and `forge board --json` show them next to the plan's\napprover, refreshing GitHub's branches so existing checkouts see new claims. Git is the one\nrecord. Git keeps a start tag pointing at the original commit, so its author survives squash\nmerges and work-branch cleanup. A retained fix start tag reserves its name even after its\nbranch is abandoned; another start says the name is taken and uses the next numbered name.\nClose also publishes retained start commits when an earlier\nstart push failed. A second checkout's\ntask start names the person who already started that part on GitHub. A failed push says so\nand leaves the work local: teammates cannot see that claim until its branch is pushed.\nNew repos get this at init; existing repos get it when upgraded and synced, including repos\nadopted on an earlier release.\n\nUse `forge assign \u003CKEY> \u003Clogin>` to give a story to a developer by GitHub username.\nUse `forge assign \u003CKEY\u002FTASK> \u003Clogin>` to give one part to a developer.\nThe command writes the story's `Owner:` line or the part's Developer cell.\nIt commits the plan on the story branch and pushes that branch.\nIf the story has no plan, the command refuses and says to plan it first.\n\nAfter `git fetch origin`, `forge next` reads assignments from the remote story branch.\nFor that developer, it offers assigned ready parts first, then unassigned parts.\nA part's Developer cell overrides the story's Owner.\nSomeone else can start an assigned part. Task start names its assigned developer in a warning.\nThe board JSON carries `owner` for each story and part, including parts not started yet.\nThe lead can change assignments below For the builders without another approval.\nAfter fetching, teammates can discover the published story before its first part merges.\nIf publishing its approval failed, the approved plan on the default branch after its first\npart merges takes precedence over the story's initial published draft.\nNext, start and both boards reconcile published assignments with local builder edits;\na locally changed assignment takes precedence, and conflicting other edits need reconciliation.\nThe plan's Owner line and Developer cells are the assignment records. There is no separate roster.\n\nSerialize start commands. When task start refuses for overlapping work or an unmet dependency,\nkeep other ready work moving while that work finishes. Run `forge next` after each merge to\nstart what was unblocked. Retry a start only after its dependency or overlap clears; follow\nother refusals' next actions instead of repeatedly retrying them.\n\n## Hotspots\n\nA worker or review notes problems outside its change as spotted items, which Forge keeps in\nspotted records and nobody edits by hand. A spotted item never widens the change in hand,\nexcept a bug that blocks it. Follow the first step from `forge next` before other ready fixes.\nWhen it names a file that keeps breaking, start its fix command without asking the owner.\nProblems noted before accepted client sign-off no longer count towards these lines.\nWhen `forge next` says the latest scheduled run of the default branch failed, it names the\nfailed jobs and tests; start its fix command the same way, or follow the step it gives for the\nfix already started.\nFor the full test run Forge knows (`full_suite_workflow`, or `forge.yml` in a CI-test repo), that first\nline starts with `Needs you:`, and the board lists the run under Needs you until a later scheduled or\nmanual full run passes. The mark is for the owner; still start the fix without asking.\n\nClose stops at the round limit (the repo's setting, two by default) for a story part or after one round for a fix when findings below P0\nremain open. It asks the owner: \"One more round, split or accept?\" Close, land and work show\nthe same question until the owner records a choice. An open P0 returns to the worker.\nAn older release's unanswered stop also waits for the owner.\nLand prints the owner's question, open findings and failing checks, then exits with status 3\n(needs a choice). It does not wait or send the worker back while the stop is unanswered.\nRecord the choice with\n`forge close \u003Citem> --resolve \u003Cmore|split|accept> --reason \"\u003Chuman's choice>\"`.\nThen run `forge land \u003Citem>` again. Land also prints open findings and failing checks when it\nstops for another reason or hands a round to a session subagent.\nMore gives the worker one more round. After that review, close asks again if findings below P0\nremain open and no P0 is open.\nSplit creates one follow-up fix with\nevery open finding's title and file:line in its why and Done-when. Close records the fix on the\nitem, prints its name, and lets this item continue without those findings.\nAccept puts every remaining finding of the latest review in Known issues as a follow-up with\nthe owner's reason. Close carries on without checking whether code or the default branch changed\nsince that review. Close still requires green checks; later work needs another review.\nA stop that asks the owner needs a recorded choice with `forge close --resolve`.\nA merge of the default branch or a clean review does not clear it. Close repeats the question.\nLand runs at most one fix round, including across session handbacks. If findings, tests or checks\nstill need a worker, land stops.\n\nFor a user-facing change, before review round two, run the real flow once, without tests or stubs.\nAdd `Live run: \u003Cwhat you ran> - \u003Cwhat you saw>` to the commit's `Functional check:` paragraph.\nClose copies that paragraph into the pull request and review. This request adds no check or refusal.\n\nThe stop rule: the coordinator lists each round's findings and asks the owner, whatever the scores.\nThe coordinator asks. The owner decides. The coordinator records the choice.\nWhen a cold read or review loop stops and you must ask, ask the human the question it printed, in\nits words, one item per question. It names the item and what it delivers, shows the open notes as one table ranked\nby score (number, the problem and who it hits, Gain, Work, Harm, and what is proposed), and says\nwhat each choice does; `forge next` prints it again for a stopped item. When a note\nhas no scores, as one saved before scores, the question lists the notes as plain lines instead.\n\nEvery update to the owner that lists notes or findings uses the same table, in the same order.\nThe coordinator follows the bar's outcome and never re-scores a note: a fix round for a note at the\nbar, a disposition with the scores in its reason for one below it, and the stop rule above at a\nstop. Approval and merge steps stay the owner's.\n\nWhen two rounds in a row leave close's tests failing or the same P0 open, `forge work`\nstops the item. It prints a\nready-to-ask question: what the item delivers, what is stuck, what the worker tried, and the\nchoices. Ask the owner exactly that question. Record the choice with\n`forge close \u003Citem> --resolve \u003Cswitch|same|narrow|split> --reason \"\u003Chuman's choice>\"`, then\n`forge work \u003Citem>`. Switch runs this item's next rounds on the other tool, as `forge next` shows;\nevery choice buys one more round before Forge asks again.\n\nA cold read stops at the round limit (the repo's setting, two by default) when notes below P0 are still open, or when P0 notes are open\nin two rounds in a row. This applies to stories, specs and decisions alike.\nAsk the owner: \"One more round, split or accept?\" Do not read again\nuntil the choice is recorded with\n`forge read \u003CKEY or spec or decision> --resolve \u003Caccept|more|split> --reason \"\u003Chuman's choice>\"`.\nMore permits one more read round. The same stop rule applies to that round.\nAccept keeps the notes with the owner's reason and permits approval or confirmation. Split\nthe plan as agreed before reading again. Forge never starts a third round by itself.\nFor a review loop stopped by `forge land`, record the choice with the same `forge close --resolve`\ncommand as a close stop.\n\nWhen GitHub reports a clash during the check wait or refuses a merge because the branch is\nbehind or conflicting, `forge merge` retries close and merge once. A mergeable pull request\nkeeps its current head when the default branch has not moved. When GitHub refuses a branch\nthat fell behind during the merge, `forge merge` and `forge land` say so in one line,\nrun close again to merge the default branch and run the tests,\nreview and checks as close decides, then retry the merge. If that merge selects a different\nForge release, close finishes under that release before the original command continues.\nA real conflict stops with close's existing resolution steps. Other GitHub refusals keep their\nnext action.\n\n## Check-back\n\nOnce every story from a spec is done and its check date has passed, `forge next` lists the check.\nMeasure it, record it in a fix with `forge spec measure \u003Cslug> --result \"\u003Cresult>\"`, then ask the\nhuman one question. Target met: \"Stop here\" (recommended) or \"Next problem card\". Target\nmissed: \"Change the slice\", \"Remove it\" or \"Find out why\". Adding features is never the default.\nAsk which parts the client doesn't use; each becomes a removal story on the roadmap.\n","\u003C!-- Generated by forge sync. -->\n\n# Forge\n\nClose refuses a removed check together with other changes. Land the removal in its\nown fix that changes only `checks`, `test_place` and the generated workflow from\n`forge sync`. The refusal names each removed check. Merge then waits for the checks\nthat the branch and default branch share. Added checks keep their usual checks.\n\nStart with `forge next`. It says where things stand and gives the exact next command.\n\n## Guide a person with little technical experience\n\nOnly when their words leave the work unclear, ask one short question about their work and part in it: are they showing a customer an idea, finding out what a customer needs, or building the real app? Ask about the work, not their job title. Take that path when they answer. Never wait for the answer: choose the likeliest path, say which you chose, and continue. Store nothing and add no setting.\n\nLead in plain words. Tell the person where they are, what you will do next, and what\nyou need from them. Use everyday words instead of Forge's terms or commands with\nthis person. Ask for their idea or client notes first, not the sign-off answers.\nAfter a break, read the saved notes and run `forge next`, then explain the current\nstep and continue from it. Do not ask the person to repeat answers you already have.\nShow the design on a screen share by default. Share a link only if the person chooses.\nWhen stuck, retry a safe step after you check what already happened. Never repeat\nan action that can lose data or create a second item. If you cannot recover, write\na plain message for the named developer: the goal, what stopped, what you tried,\nthe repo link, and what help you need. Let the person send it.\n\nFor a sales demo, save transcripts in `docs\u002Fcontext\u002F`. Mark each point from a transcript\nas \"Heard from the customer\" and name its transcript. Keep your guesses separate.\nFor a Sales person with a company's name and website, research the company and propose one prototype before the design (see Discovery).\nUse Claude for the design. Require impeccable and emil-design-eng from the first\ndesign onward, for both the Claude design artifact and the browser-only web app.\nThen build a browser-only web app with fake data, no server, no database, and no\nsign-in. Label extra features\n\"Demo only\". Put this line on the demo: \"This demo uses sample data. Its features are\nnot commitments.\" Never put real customer data in a demo, because anyone with its\nlink can open it. Deploy through Mainline from the GitHub repo only when the person\nasks. Follow the Mainline setup and deployment rules below.\n\nWhen the customer converts, write one handover page in the repo for the named FDE\n(the developer who will work with the customer). Include the customer, what they\nliked, what you showed, and what the FDE must confirm. Tell the person where the\npage is. The FDE decides for each feature to use it, change it, or build it from\nscratch. Anything that goes into real use gets the normal tests and review.\nConversion is not the client sign-off. The FDE continues discovery and gets that\nsign-off through the normal flow.\n\nMainline Deploy is available to install through the organization's plugin catalog. Do not assume\nthat the plugin and MCP are installed or that the user is signed in.\nUse Mainline Deploy only when the user explicitly requests deployment. First check whether it is\ninstalled in the current host. If it is missing, use the organization's plugin catalog and the\nhost's installation flow. Do not invent an installation command or marketplace address.\nThen follow the Mainline Deploy skill. Check OAuth sign-in and have the user complete it if needed.\nWait for successful authentication before deployment. Installation alone does not mean the user is signed in.\nDeploy only the requested app to the requested environment. A build, fix, merge, ship\u002Fland request,\nsuccessful test or review, demo preparation, or Forge next step does not by itself authorize deployment.\nDo not install Mainline or start OAuth sign-in for those requests. An explicit request such as\n\"deploy this to staging\" or \"publish this on Mainline\" needs no separate routine deployment approval.\n\nOur deploy platform reads `services.toml` at the repo root: one `[[service]]` per service,\nwith `name`, `dockerfile`, `port`, `health`, `expose` (`main`, `subdomain` or `internal`) and,\nwhen needed, `subdomain` and `command`, and `mcp` with the path of the service's MCP server;\ndeploy.md in Forge's conventions has the details.\nClose refuses a list that names a Dockerfile the branch does not have or does not have\nexactly one `main` service. When a client repo has a Dockerfile and no `services.toml`, write\nit before the first deployment the owner asks for: one service per Dockerfile the app runs,\nthe port from its `EXPOSE` line and the health path from the code. Show it to the owner and\nask with options: confirm it, or change a service's exposure. Then merge it in a fix. The\nowner picks the main subdomain on the platform, so the list does not hold it.\nIn a starter app, the API service has mcp = \"\u002Fmcp\".\n\nThe first deployment that the owner asks for in a client repo is its deploy setup, and that\nrequest is the explicit request above. Follow the installed Mainline Deploy skill in this\norder, and skip a step that is already done:\n\n1. Have the owner sign in in the browser with Google or GitHub, and wait until the sign-in\n   succeeds.\n2. Connect the client GitHub repository.\n3. Read `services.toml`. When the repo has none, write it as the paragraph above says and get\n   the owner's confirmation.\n4. Set the main subdomain that the owner picks.\n5. Set each variable that `.env.example` names, with the values the owner gives, except the\n   ones that the platform provides, such as `DATABASE_URL`.\n6. Deploy dev, and wait until dev reports healthy. Always deploy dev first.\n\nAfter the setup, do not deploy. Mainline deploys dev at each merge to the default branch and\na preview for each pull request. These deploys are Mainline's, not an agent's, and need no\nrequest. Production changes only when a person presses Promote in Mainline. Never deploy or\npromote production, also when the owner asks: tell them to press Promote in Mainline. When\nthe owner asks for another deployment after the setup, tell them that Mainline deploys dev at\nthe next merge.\n\n| The human says | Run |\n|---|---|\n| \"What now?\" | `forge next` |\n| \"Show me progress\" | `forge board` |\n| \"I have an idea\", \"Fix this\" or \"Plan this\" | `forge start \"\u003Ctheir words>\"` |\n| \"Read the plan cold\" | `forge read \u003CKEY>`, or `forge read \u003Cslug>` for a spec or decision |\n| \"I've amended it\" | `forge read \u003CKEY>` again, for the next round |\n| \"Start this task\" | `forge task start \u003CKEY>\u002F\u003CTASK>` |\n| \"Give this story or part to a developer\" | `forge assign \u003CKEY or KEY\u002FTASK> \u003Clogin>` |\n| \"Name this fix\" | `forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\" --slug \u003Cname>` |\n| \"Change this fix's Done-when\" | `forge fix amend \u003Cfix> --done \"\u003Cdone when>\" --because \"\u003Cwhy>\"` |\n| \"Add to this fix's Done-when\" | `forge fix amend \u003Cfix> --append \"\u003Ctext>\" --because \"\u003Cwhy>\"` |\n| \"This fix is too big\" | `forge story new \u003CKEY> --from-fix \u003Cfix>` |\n| \"Make it a story\" (a fix) | Add the key to the fix's roadmap and commit it, then `forge story new \u003CKEY> --from-fix \u003Cfix>` |\n| \"Make it a fix\" or \"Just fix it\" (a plan with no started part or part records, even if approved; merged parts count after branch cleanup) | `forge fix start \"\u003Cits Problem>\" --done \"\u003Cits first Done-when>\"`, then `forge story drop \u003CKEY> --because \"Moved to the fix \u003Cfix>\"` |\n| \"Do it later\" (a fix) | `forge fix drop \u003Cfix> --because \"The owner wants it later\"`, then `forge start \"Do this later: \u003Cits why> (kept on fix \u003Cfix>)\"`. `fix drop --undo` brings it back |\n| \"Do it now\" (an idea-list entry) | `forge start \"\u003Cthe owner's new words>: \u003Cthe entry's idea without its deferral words>\"`, for example `forge start \"Do it now: add dark mode\"`. Then remove the entry from the main checkout's file while it is waiting, or else in the new item's branch |\n| \"Remove this feature\" or \"We do not need X any more\" (in a client app) | `forge start \"Remove the \u003Cfeature> feature\"`; the removal is the part's work |\n| \"Let this fix go over the limit\" | `forge fix allow-large \"\u003Creason>\"` |\n| \"Build it\" | `forge work \u003Citem>` |\n| \"Tell the worker this round\" | `forge work \u003Citem> --note \"\u003Ctext>\"` |\n| \"Ask about this code\" | Hand the question to the session's `explorer` subagent role |\n| \"Close it\" or \"Is it ready?\" | `forge close \u003Citem>` |\n| \"A person asks to skip the model review\" | For a task or fix, run `forge close \u003Citem> --no-review --by \"\u003Cname>\" --reason \"\u003Cwhy>\"` only when a person asks |\n| \"Land it\" | `forge land \u003Citem>`, run in the background and watched like `forge work` |\n| \"Land everything that's ready\" | `forge land --all`, run in the background; never a hand-made merge lane |\n| \"Merge this ready item\" | `forge merge \u003Citem>` when the default branch allows agent merges |\n| \"Let the agent merge\" | The owner runs `forge merge enable` in a terminal outside Claude Code or Codex; never you |\n| \"What should we build?\" or \"Find the real problem\" | Discovery, below |\n| \"Is it worth building?\" | `forge spec payback --build-days \u003Cdays> --day-rate \u003Crate>` plus a value group |\n| \"Save this spec\" | `forge spec save \u003Cslug>` |\n| \"The spec is confirmed\" | `forge spec confirm \u003Cslug> --by \"\u003Cname>\"` |\n| \"Record the check-back result\" | In a fix: `forge spec measure \u003Cslug> --result \"\u003Cresult>\"` |\n| \"Record a decision\" | `forge decision new \u003Cslug>` |\n| \"The decision is accepted\" | `forge decision accept \u003Cslug> --by \"\u003Cname>\"` |\n| \"What does the client still need to decide?\" | `forge decision open` |\n| \"Record the client's answers\" | In a fix: `forge decision answer --from \u003Cfile> --by \"\u003Cname>\"` |\n| \"Add it to the roadmap\" | `forge roadmap add \u003Cspec>` |\n| \"The new spec replaces this roadmap item\" | In a fix: `forge roadmap retire \u003CKEY> --by \u003Cspec>` |\n| \"Change a finished story's outcome\" | On an existing work branch: `forge story done \u003CKEY> \"\u003Coutcome>\"` |\n| \"Is my setup healthy?\" or \"Fix my setup\" | `forge doctor`, then `forge doctor --fix` for what it can repair. On the default branch, repairs to Forge's files need a clean checkout at `origin\u002F\u003Cdefault>` and use a dated fix `forge-files-\u003CYYYYMMDD-HHMM>`: `forge close \u003Cname>`, then merge it like any other. An existing `fix\u002Fforge-files-*` branch with no merged or closed pull request blocks another repair, record or not; follow doctor's finish-or-remove step. Finished-work cleanup skips only the open doctor fix. If a repair already used this minute's name, run `forge doctor --fix` in the next minute. A file it holds back as changed by hand: move that change out of the file, then `forge doctor --fix` again. In AGENTS.md, only hand edits inside the `forge:begin` and `forge:end` lines hold the file; your rules outside them stay as written when doctor refreshes Forge's block |\n| \"Set up a new repo\" | Before `forge init`, answer \"Does this repo run GitHub Actions?\" from the repo's settings: `gh api repos\u002F{owner}\u002F{repo}\u002Factions\u002Fpermissions` gives `enabled`. Ask the human only if the settings do not answer it. Pass `--actions yes` or `--actions no`; yes uses CI checks, while no selects laptop tests with `checks = []`. Then use `forge init --starter` for a new React app, `forge init --starter python` for a new app whose owner asks for a Python backend, or `forge init` for another stack. Propose a `fast_test` as in step 9 of Adopt a live app, below |\n| \"Bring our live app into Forge\" | Adopt a live app, below |\n| \"Change the test command\" | Ask, then in a fix: edit `forge.toml` (never its `merge` setting), `forge close \u003Cfix>` |\n| \"Use fewer cold-read or task-review rounds\" | Ask the owner which limit to change; then in a fix set `cold_read_rounds` or `task_review_rounds` to `1` in `forge.toml`, then run `forge close \u003Cfix>` |\n| \"Run everything in Claude\" | Ask, then in a fix: set `tools = \"claude\"`, `workers = \"claude\"` in `forge.toml`, then `forge sync`, `forge close \u003Cfix>` |\n| \"Run everything in Codex\" | Ask, then in a fix: set `tools = \"codex\"`, `workers = \"codex\"` in `forge.toml`, then `forge sync`, `forge close \u003Cfix>` |\n| \"Use both\" | Ask, then in a fix: set `tools = \"both\"` in `forge.toml`, `forge close \u003Cfix>` |\n| \"Change who builds just for me\" | Edit `forge.local.toml` beside `forge.toml` in the main checkout (not a worktree): only `tools`, `workers` and `[models.\u003Ckind>]` tables. Git ignores it, so no fix; every worktree of that clone uses it. `forge next` and `forge doctor` name what it sets |\n| \"Close takes too long running every test\" | In a local-test repo, ask, then in a fix: set `fast_test` in `forge.toml`, a command close runs instead of `test`, with `{base}` replaced by the merge base with the default branch (for example `npx vitest run --changed {base}` plus lint). In a CI-test repo, its pull request check runs the tests that import the changed source files, not only the changed test files (see step 9 of 'Adopt a live app'); the nightly full run covers the rest. Then `forge close \u003Cfix>` |\n| \"Upgrade Forge\" | Ask which release, then `forge upgrade \u003Crelease>`; Upgrade Forge, below |\n\n`forge doctor` lists started fixes with no work commits after more than seven days.\nEach row gives `forge fix drop \u003Cfix> --because \"\u003Creason>\"`. Only drop a fix after\nthe owner agrees. `forge doctor --fix` does not drop these fixes. New and upgraded\nclient repos get this check from the installed Forge command.\n\nSend every new idea through `forge start \"\u003Ctheir words>\"`. Never ask the human whether it is a\nstory or a fix. When the answer is a fix, run its `forge land \u003Cfix>` in the background and watch it.\nFor an idea that extends an existing story, the explorer can return that story's key with\n`Lane: plan`. Handback reuses its branch and worktree and adds to its plan. Read the revised plan\nbefore approval.\n\nThe human approves stories and chooses between options. In a client repo before the default\nbranch has an accepted sign-off, the agent runs `forge merge \u003Citem>` once `forge close` says Ready.\nAfter sign-off, the default branch's `forge.toml` merge setting applies: the human merges by\ndefault (`merge = \"human\"`), or the agent runs `forge merge \u003Citem>` for `merge = \"agent\"`.\nForge's own repo follows its setting throughout. Never run `gh pr merge`; the agent merges only\nthrough `forge merge`. Ask one question at a time: a decision gets options with your recommendation\nfirst, a question of fact gets neutral choices.\n\n## The journey\n\nEvery client repo moves through seven steps. `forge next` names the current step in its first line.\n\n1. **Ideas and client notes.** The person gives you the client notes or an idea. Put each note in `docs\u002Fcontext\u002F` and read them all before you ask anything. You can say: \"Here are the client notes\" or \"I have an idea: \u003Cidea>\". A Sales person can give a company's name and website instead, with any notes: do the research in Discovery first.\n2. **Brief.** You write `docs\u002Fproduct\u002FBRIEF.md` from the notes, and ask only about a point that changes a screen, a field or a flow. You can say: \"The brief looks right\" or \"Change this in the brief: \u003Cchange>\".\n3. **Canvas design.** You make the screens on a design canvas, designed with the client's design system in Claude (see \"Canvas and app design\"), which the client can click through in Play mode, and the owner or FDE approves the canvas. You can say: \"Show me the screens\" or \"Change this screen: \u003Cchange>\".\n4. **Sign-off.** Run the sign-off checks, then ask the client's named person to approve the canvas and answers. Build now and Later are planned choices, not available commands. Ask the owner what work to start or defer. You can say: \"Record the client approval, then plan the first change\".\n5. **Build.** You plan stories and fixes, build each one with its tests and a review, and merge it. You can say: \"Build this next: \u003Cidea>\" or \"What is ready to merge?\".\n6. **Deploy on Mainline.** Confirm the client's host and complete production preparation below. When the person asks for Mainline deployment, set up Mainline and deploy dev. An authorized person presses Promote for production. A client host without Mainline uses its agreed release process. You can say: \"Deploy this on Mainline\" or \"Use the client's servers\".\n   When a release adds a migration file, Mainline takes a backup at Promote. Mainline runs one test restore before the first launch. Mainline checks the release for the added file itself and does both; the agent does neither and writes no mark. The migration rule belongs to FORGE-EXPAND-1.\n7. **Run and improve.** People use the app, and each new request or problem goes back to step 5. Follow [After a demo](#after-a-demo) for demo notes. You can say: \"Users asked for \u003Crequest>\" or \"This is broken: \u003Cproblem>\".\n\n**The cold read loop.** A reader who did not write the plan reads it cold and lists its gaps. You fix the plan, and the reader reads it again. At the round limit (the repo's setting, two by default), Forge stops and the owner chooses: accept, read again, or split. It exists because a gap found in the plan costs minutes, but the same gap found in the code costs a build round.\n\n**The build and review loop.** A worker builds the part and its tests, then a separate review checks the change. A serious problem goes back to the worker for another round. A task gets review rounds up to the repo's setting, two by default, and a fix gets one. At the round limit (the repo's setting, two by default), Forge stops and asks the owner, but a P0 problem keeps the loop going. It exists because a reviewer sees problems that the worker cannot see in its own work.\n\n**The CI checks.** GitHub runs the repo's checks on the pull request. Close and merge wait up to 90 minutes while a check is running, and a red check goes back to the worker. At a wait limit, the message names the limit and the checks still running. They exist because the checks run the tests on a clean machine, the same way for every change. If uv installation fails, the generated workflow retries it once before the job fails.\nOn GitHub Actions, `forge test` streams the test output into the job log.\n\n`forge next` adds one line under each running item that says what it waits on, why and for how long. Give that line to the person when they ask why something takes time.\n\nAfter `forge init` in a new repo, tell the person the seven steps in one line each, then ask for the first input: the client notes or the idea.\n\nWhen a person asks what they can do, or seems unsure, run `forge next`, name the current step from its first line, and show that step's \"You can say\" phrases. Name no commands.\n\nWhen a Forge command refuses, tell the person in plain words what Forge stopped, why, and the fix that it names. Then do the fix, or ask the choice. When the refusal looks like a Forge fault (a wrong or confusing message, a refusal of a correct step, a crash, or a success that did nothing), say so and offer to file a Forge bug as Reporting a Forge bug, below, says. File it when the person agrees.\n\nBuild now and Later at sign-off are planned, not available. Record \"build it later\" with\n`forge start \"Do this later: \u003Cthe first story's idea>\"`. For work the owner wants now, record\nclient sign-off first, then use the normal story flow.\n\n## Waiting records\n\nThe `notifications` module holds `Notification` in schema `notifications`, with\n`id`, `organisationId`, `recipientAccountId`, `subjectId`, `subjectName`, `message`,\n`createdAtUtc` and `resolvedAtUtc` (null while the record waits).\nTypeScript uses `NotificationsApi` in `libs\u002Fnotifications\u002Fcontracts\u002Fsrc\u002Fservice.ts`,\ntoken `NOTIFICATIONS_API`, and `NotificationsPrincipal = { id, organisationId }`.\nCall `notify(principal, recipientAccountId, subjectId, subjectName, message, tx?)` to add\nan open entry and `resolve(principal, subjectId, tx?)` to close all open entries for that\nrecord in the principal's organisation. Pass the feature's transaction as `tx`.\nPython uses `NotificationsService` in `app.notifications.service`:\n`notify(account, recipient_account_id, subject_id, subject_name, message)` and\n`resolve(account, subject_id)` use the caller's session and never commit.\n\nAdd `notify` in the same transaction as the change that makes a record wait;\nadd `resolve` in the transaction of the action.\nA reassignment is `resolve` then `notify` in one transaction.\n`GET \u002Fapi\u002Fv1\u002Fnotifications` gives the signed-in person's own entries in their organisation:\n`data: { count, items }`, with at most 100 open entries, newest first, and a count of all\ntheir open entries. Each item has `id`, `subjectId`, `subjectName`, `message` and `createdAtUtc`.\nBuild the list and the count in the client's design, as FORGE-NOSCREENS-1 requires.\nNo email until the SNS story.\nAn app without the `notifications` module gets it by hand, from these names, when a feature first needs it.\n`forge sync` delivers this guide and keeps the app's code and migrations unchanged.\n\n## After a demo\n\nSave the notes or transcript in `docs\u002Fcontext\u002F` and read them all.\nShow one list of changes, one line per change, in the client's words, with who asked and which screen or record it touches.\nTwo ideas in one sentence become two lines.\nPut questions the notes leave open below the list as \"Need an answer\".\nThe FDE answers once: OK, or edits.\nAfter the OK, run `forge start \"\u003Cchange>\"` for each line; Forge picks a fix or a story for each.\nNothing starts before the OK. The OK is the FDE's reply; Forge stores no record of it.\nA change the FDE says can wait goes to the later list with `forge start \"Do this later: \u003Cidea>\"`, after the OK.\n\n## Save decisions and ideas\n\nUnderstand each human decision, direction and idea. Save each in the same turn;\nnever leave it only in chat. Grill new directions one question at a time, with your\nrecommendation first. Save the answer before moving to the next question.\n\n- Put a choice about an item in its plan's Notes or the recorded choice:\n  `forge close \u003Citem> --resolve \u003Cmore|split|accept> --reason \"\u003Chuman's choice>\"`.\n- Save a standing rule or direction with `forge decision new \u003Cslug>`. Batch decision\n  docs into the next fix; do not open one pull request per decision.\n  For a large decision, run `forge read \u003Cdecision-slug>` before acceptance. Amend the decision\n  and answer findings between rounds, as for a spec. Notes stay beside the numbered decision\n  record. Specs take precedence when slugs match; use `forge read \u003CNNNN-slug>` to select the\n  decision, or when several decisions share a slug. A cold read does not accept the decision.\n- In `docs\u002Fspecs\u002F`, state each rule once, on an `R-\u003Cn>:` line under `## Behaviour`.\n  Validation (VAL), UAT and acceptance (AC) lines name the rule that they check by its ID, for\n  example `VAL-11 checks R-13`, and do not say the rule again. A decision that changes a rule\n  names its ID. `forge decision accept` then lists every spec line that names that ID: in the\n  same change, before close, update each line that no longer fits. On upgrade, the first\n  `forge sync` lists the old spec lines that seem to repeat a rule, with a fix to start. Show\n  the list to the owner and ask with options: rewrite those specs now in that fix, or later.\n- `forge start` keeps `plans\u002Fideas.md`, a short dated list, when the owner says later, and\n  carries waiting entries into the next fix or story. When you, a planner or a worker think of\n  something useful that nothing needs, add one line `- \u003CYYYY-MM-DD>: \u003Cthe idea>` to\n  `plans\u002Fideas.md` in the branch in hand and build nothing for it.\n  Remove an entry when the owner says to do it now, as the command table explains.\n\n## Merges and settings\n\nIf the default branch moved after close, `forge merge` compares its new changed files with the item's changed files.\nIt merges the default branch locally to check the combined change.\nFor repos with laptop tests, it runs `fast_test`, or `test` when none is set, in the one test lane with `{base}` as the\npull request's checked head. This selects tests for incoming default-branch changes instead of\nthe pull request's own files, on the combined code. It merges only after those tests pass. A failure names the failed tests\nand gives `forge work \u003Citem>` as the next step. With no\ndefault-branch move, merge runs no extra tests. New repos get this rule at init; existing repos\nget it on upgrade and sync.\nIf the file sets do not overlap, Forge restores the original head and merges without a push or another check wait.\nIf the file sets overlap, Forge keeps the local merge, reuses the existing review and commits its coverage of the combined change.\nIt pushes that commit, waits for its required checks, then merges.\nIn repos whose tests run in pull request CI, close already leaves the laptop tests to CI.\nWhen `test_place` is `ci` and a required check runs app tests, merge also leaves the tests to CI.\nIt publishes the combined change and waits for that commit's checks, even when the changed\nfiles do not overlap. This applies to every test runner and custom fast command.\nThe wait uses the combined branch's test setting and required check names.\nA retry waits for the same saved head's checks, with those same check names.\n`forge test --change` includes incoming changes from merges into the pull request,\nso CI also selects tests that the default branch added before the merge.\nRepos whose tests run only on the laptop keep their local runs. The `forge-pr-check`\ncheck reviews the change and runs no app tests, so that check alone does not replace the local retest.\nThe nightly full run on the default branch covers the rest. With no retest, the usual CI wait applies.\nBefore the retest, Forge refuses uncommitted changes and names their files. After tests and\nchecks, Forge fetches the default branch again. If it moved again, Forge checks the new\ncommits against the item's changed files. With no overlap, Forge merges at once. With an\noverlap, Forge repeats the combined tests and required checks. After five further moves,\nForge stops and gives `forge merge \u003Citem>` as the next step.\n\nForge leaves a pull request that changes its own merge setting to the repo owner. It compares\nthe item's merge base with its head, so an older branch can merge after the owner enables agent\nmerges. An already-merged pull request skips that check when tidying. Cleanup removes unchanged\ngenerated git hook shims and Husky's ignored rebuilt hooks; uncommitted work and later local\ncommits keep the worktree in place. When another program holds the worktree open, the merge still\nfinishes and keeps the local branch; close that program, then delete the folder the merge names.\n\nWhen `forge merge` merges a story's last task, the same squash merge records the story as done.\nGive `forge merge \u003CKEY>\u002F\u003CTASK> --outcome \"\u003Coutcome>\"` to name what it achieved; without it Forge\nuses the story's title. The board and `forge next` read that record from git, so no outcome fix,\nextra pull request, review or CI run is needed. Stories already marked done keep their outcome.\nUse `forge story done` only to correct an outcome later, on an existing work branch that carries\nthe correction through its own pull request; the command opens no branch or pull request.\nWhen next says a remotely merged story needs its outcome, fetch origin before recording it.\n\nGive each question one line of context and a header of 12 characters or less. Use 1-5 word options\nthat say what happens, with the recommended one first for decisions. Use no IDs, paths or slugs in\nquestions; write for the human's choice.\n\nWrite text that people read with the simplified-technical-english skill: a story's What changes\nfor you, Why and Done when, a fix's why and Done when, pull request summaries, questions to the\nhuman, and board and `forge next` lines. Briefs, guides and code stay as they are.\n\nThe human never edits `forge.toml`; you keep it. When a setting must change, ask first with\noptions, then make the change yourself in a fix: `forge fix start`, the edit, then `forge close`.\nClose refuses a settings change in `forge.toml` unless this item's Done-when names the file.\nIt leaves the settings and branch change intact, so `forge land` also stops before merging.\nFor a fix, run `forge fix amend \u003Citem> --done \"\u003Cdone when naming forge.toml>\" --because \"\u003Cwhy>\"`.\nFor a task part, name `forge.toml` in the plan's covered Done-when details in the task checkout\nand commit the plan there. These details do not change the approved numbered result.\nThen run `forge close \u003Citem>` again. A version-pin-only difference still passes.\nInitial migration and adoption keep their new settings until their first pull request merges.\nNew and earlier-adopted repos get this check on upgrade. Workers never edit settings.\nA developer's own `tools`, `workers` and `[models.\u003Ckind>]` choices go in the git-ignored\n`forge.local.toml` instead, which you edit directly when they ask; Forge refuses any other key there.\n`runner` selects the GitHub Actions runner label in the generated `forge.yml`;\nit defaults to `\"ubuntu-24.04\"` because the starters' Playwright 1.56 browser installer\ndoes not support Ubuntu 26.04. Sync preserves explicit runner settings.\nOptional `test_runner` selects a different label for pull-request test jobs only, with one\ngroup or several groups. All other jobs, including the nightly full test run, use `runner`.\nWithout `test_runner`, all jobs use `runner`. Set the label in `forge.toml`, then run `forge sync`.\nFor self-hosted Linux runners, initialise with\n`forge init --runner self-hosted`, or set `runner = \"self-hosted\"` (or a custom label) in an\nexisting repo's fix, then run `forge sync`. New repos get it at init; earlier adopted repos get\nit after upgrading Forge and syncing. The jobs set up uv and Python, and install\nNode for Node tests, respecting version files or engines with Node 22 as the fallback.\nClose and land keep waiting while checks are queued. The wait line shows minutes observed\nqueued during this wait: shared runners may be busy or no runner may match the runner setting.\nOnly `forge doctor` reports a likely missing runner, when a current check has been queued at\nleast five minutes and no matching job started in its sample of this repo's runs created in\nthe last seven days. It reads at most 100 newest runs, skips successful runs, and reads one\npage of latest jobs per remaining run, without earlier attempts or older runs. Make a\nmatching runner available or correct the setting; run `forge sync` only if you\nchange the runner setting. Keep the required checks enabled. New and upgraded repos get the\nsame waiting and doctor behaviour from the upgraded Forge commands.\nThe `merge` setting is the owner's, because it is a gate on your own work: never change it to\n`\"agent\"` or run `forge merge enable`, even when the owner asks, and never merge a change to it.\nWhen agent merges are off and the owner wants you to merge, tell them to run `forge merge enable`\nin a terminal outside Claude Code or Codex; it opens the change for them to merge. If an interrupted switch's fix\ncontains only that setting and the default branch has moved, it rebuilds the same fix on the\ncurrent default branch, preserving its other settings. It leaves remote work outside that fix\nalone and refuses to replace a remote branch that changes after its check. The owner still\nmerges the pull request. Close checks this generated fix mechanically instead of asking a model:\nonly `forge.toml`'s top-level `merge = \"agent\"` may change, with all other parsed settings equal\nto the fix's merge base. Extra changes are refused without review. Tests and CI still run;\nevery other item keeps its model review.\n\nGive status updates in one shape: `Ready to merge (n): ... · Needs you (n): ...`.\n\nWrite each reply, summary and question for the human in plain English that a non-native speaker\nunderstands on the first read, as AGENTS.md says: everyday words in place of agent slang, each\ntechnical term explained once, three plain lines on what changed, what failed and what comes\nnext, and status, numbers and uncertainty kept exact.\n\n## Tools\n\n**Who does what.** The coordinator is the app the developer opens: Claude Code or Codex.\n`tools` in `forge.toml` says which tools run Forge's work: `\"claude\"`, `\"codex\"`, or\n`\"both\"` (the default when absent). One tool puts every item on it, including design work\nwith its own design model; `workers` is ignored. With both, `workers` keeps its usual meaning.\nForge's planning, approval, build, review, CI and merge process stays the same.\nDoctor's SDK, project trust and UI skill checks follow the selected tool too.\n\nClaude workers use the Claude Agent SDK kit when installed; otherwise their coordinator uses a background subagent.\nCodex workers use the Codex app server when `codex_fast` is off or absent, or under the other tool; otherwise they stay native. Plan reads stay native on their coordinator.\nWithout a coordinating session, a one-tool repo waits for it.\nReviews run externally through Autoreview on the named tool; with both, Codex when installed,\notherwise Claude. Normal, light and sign-off reviews use `[models.review]` or its per-tool entries.\nUnset entries use Autoreview's default model and effort; unset effort uses its default effort.\n\n**Running a handed-out round.** When Forge prints a subagent instruction, run that instruction\nas a background subagent of the named role. Keep the item's chat while the session is open;\ncontinue the named subagent when told to, or start fresh with the whole brief in a new session.\nIf that chat is unreachable in the same session, start fresh with the whole brief too.\nRun `forge handback` with its last message and id and the printed `--round` when it finishes.\nSend the nudge when asked; never edit the brief. Only the coordinator hands back or starts a round.\n\n**Native plan reads.** With one tool, that tool reads every plan. With both, the first read\nchooses the other installed tool, and later rounds keep their reader while it is available.\nWhen that reader is your session's tool, `forge read \u003Ctarget>` prints a JSON instruction for\nthe `reader` role in the plan's checkout. Continue its named subagent with `prompt`, or start\none with `fresh_prompt` when no subagent is named. Run it in the background, read only, then\ngive its message and id to `forge handback \u003Ctarget> --round \u003Cround> --subagent \u003Cid> --text \"\u003Cmessage>\"`.\nThe session holds the item's lock and machine place until handback or the session ends.\n`forge stop` frees Forge's hold; stop the subagent in your session too. Stale rounds record nothing.\nForge checks for changed files, numbers and records findings. Init and upgrade deliver the reader role.\n\n**Native build rounds.** `forge work` and `forge land` print the role (`worker`, `fixer` for a fix,\n`frontend` for design work), the model (over the role's own), checkout and brief. Use `forge handback \u003Citem> --round \u003Cn> --subagent \u003Cid> --text \"\u003Cits last message>\"` or stdin.\nWith no message, repeat handback; the round stays open. Send any printed nudge, then hand back again.\nHand-back restores `forge.toml` and records a `Question:`. Then run `forge land` or `forge close`.\n\n**Upgrade first.** Older Forge refuses the `tools` key. Follow Upgrade Forge before adding it.\nNew repos get the setting's default at init; existing repos get this guide when the upgraded\nForge syncs, keeping their settings as written.\n\n## Reporting a Forge bug\n\nWhen Forge itself misbehaves (a wrong or confusing message, a refusal that shouldn't happen, a\ncrash, a command that reports success but did nothing, generated files that contradict each\nother), file a bug on Forge's GitHub. No client code, names, paths or secrets: describe what Forge did.\nRead the template text from GitHub and drop its front matter:\n\n```\ngh api repos\u002Fknacklabs\u002Fsymphony-forge\u002Fcontents\u002F.github\u002FISSUE_TEMPLATE\u002Fforge-bug.md -H \"Accept: application\u002Fvnd.github.raw\"\n```\n\nFill every section, then save the filled body with your own file-writing tool as UTF-8.\n\nThe template's sections, which the body file keeps exactly:\n\n- `## Forge version`: Output of `forge --version` and the pinned version in `forge.toml`.\n- `## Host and operating system`: The host (Claude Code or Codex) and the operating system.\n- `## Command and output`: The exact command and full output, with private names replaced.\n- `## Expected and actual`: Expected vs what happened.\n- `## Steps to reproduce`: Upgraded from which version, new or adopted repo, and the forge.toml settings without secrets.\n- `## forge next`: The `forge next` output at the time.\n- `## Tried and workaround`: What was tried, and any workaround.\n- `## How often`: How often: always, sometimes or once.\n\nFile it with no prompt:\n\n```\ngh issue create --repo knacklabs\u002Fsymphony-forge --title \"\u003Cshort plain title>\" --body-file \u003Cthat file>\n```\n\n## Laptop setup and after cloning\n\nBefore `forge init` writes any files in a new or existing repo, it checks Git's author identity. If Git refuses it, set `git config user.name \"Your Name\"` and `git config user.email \"you@example.com\"`, then run init again.\n\nWhen `forge init` writes settings, it checks `claude auth status` and `codex login status`.\nIf only Claude is signed in, it sets `tools = \"claude\"` and `workers = \"claude\"` and says so.\nOtherwise it keeps split workers. An unavailable check keeps that default unless the binary is missing.\nIf neither tool is signed in, it asks you to sign in. Existing repos keep their settings.\n`forge doctor` says when the repo needs Codex but Codex is not signed in, and gives `codex login`.\n\nIf you use Claude, open Claude Code in the repo once and accept the trust question before running headless Claude commands.\n\nThe repeatable laptop installers are published for\n[Mac](https:\u002F\u002Fraw.githubusercontent.com\u002Fknacklabs\u002Fsymphony-forge\u002Fmain\u002Fscripts\u002Finstall-mac.sh)\nand [Windows](https:\u002F\u002Fraw.githubusercontent.com\u002Fknacklabs\u002Fsymphony-forge\u002Fmain\u002Fscripts\u002Finstall-windows.ps1).\nThey install the tools Forge needs; follow their prompts to sign in to GitHub and your agent.\n\nAfter every clone, read the pinned `version` in `forge.toml` and install that release,\neven if the laptop installer installed a different one:\n`uv tool install git+https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge@\u003Crelease>`\n(replace `\u003Crelease>` with the pin, such as `v1.2.4`). Then run `forge sync` to install\nthe local git hooks and refresh the generated files, followed by `forge doctor --fix`.\nIn Husky repos, sync preserves the team's hooks and adds Forge's checks to the committed\n`.husky\u002Fpre-commit` and `.husky\u002Fpre-push`, through `.forge\u002Fhooks.sh`. Commit those additions;\n`npm install` can rebuild `.husky\u002F_` without removing Forge's checks.\nThe team's commands run first in a child shell; successful `exit` or `exec` cannot skip\nForge, both pre-push checks receive Git's input, and a team hook failure still blocks Git.\nResolve any remaining Doctor rows before starting work. An existing repo gets these\ninstructions and the updated CI workflow on its next `forge sync` after upgrading.\n\n## Migrate copied-in Forge\n\nRead the [migration playbook](migrate-skill.md) before running `forge migrate --dry-run`\nor `forge migrate`. It ships beside this skill and covers the human's agreement,\npreservation review, merge, cleanup and rollback. Follow it in order.\n\n## Waiting or stopped runs\n\nWhen a run is waiting or stopped, read the [run reference](run-reference.md) for\nmachine queues, board JSON fields and the Claude Code pane. Use `forge next` for\nthe current next step. Only a person can stop a run, after host confirmation;\nworkers never run `forge stop`.\n\nA builder lends its agent place while tests wait or run, then waits to reclaim it\nbefore returning. Returning builders and repair rounds go before new builds;\nnew builds pause above twice the test lane capacity and resume at capacity or below.\n\n`forge board` opens a live page on 127.0.0.1 with a per-run token and refreshes by itself;\nit stops after 30 minutes with no page open and does not fetch or rebuild while no page is open.\nThe page's events stream keeps it live. Ctrl-C stops it at once.\n`--out \u003Cpath>` writes JSON instead. The JSON view is `forge board --json`.\nIt adds `team` for the team's summary.\nThe run reference explains the board fields and page behaviour.\n\n## The Forge pane\n\n`\u002Fforge` opens a small live pane in Claude Code, in the terminal and in the desktop app. It shows\nthe builds, tests and reviews that run on this laptop, with the round and the time of each, and\none line at the top that says if anything needs the person. When the pane cannot show, `\u002Fforge`\nanswers with the same lines as text. The pane starts no agent turn and shows no next command: use\n`forge next` for the next step. It reads `forge lanes --json` every 3 seconds while it is open\nand nothing while it is closed. The person chooses when it opens in Claude Code's settings (`\u002Fconfig`,\n\"When the Forge pane opens\"): \"typed\" (the default) opens it when they type `\u002Fforge`; \"always\" also\nopens it when a session starts in a Forge repo, in a wide window. This guide stays a skill, and you\nstill load it yourself whenever you need it.\n\n## Handoff\n\n`.git\u002Fforge\u002Fhandoff.md` in the main checkout, shared by every worktree, carries your state across\na compaction. Before each compaction Forge rewrites its current-state part from `forge next` and\nkeeps everything under `## Decisions and lessons`. Add one line there at each milestone: a story\napproved, a task merged, a decision the owner made, a lesson learned or a mistake you won't\nrepeat. After a compaction or in a new session, read it first. The scratch file stays local and is\nnever committed. At hand over, copy its settled notes to `docs\u002Fhandover.md` through a fix.\n\n## Hand over\n\n1. **Push everything.** In each worktree, commit and push. Through an ordinary fix, copy\n   new decisions and lessons from `.git\u002Fforge\u002Fhandoff.md` into `docs\u002Fhandover.md`, and merge it.\n   Use `## Decisions and lessons`, with one line per decision or lesson. Keep the file under\n   about 30 lines and drop lines that are no longer true. Keep Current state uncommitted;\n   `forge next` gets it from git and GitHub.\n2. **Reassign.** Run `forge assign \u003CKEY or KEY\u002FTASK> \u003Clogin>` for each story and part.\n   Fixes cannot be reassigned; the new machine continues them without this step.\n3. **Continue.** On the new machine, run `forge next`, then `forge work`, `forge close` or\n   `forge merge` on each item. Forge makes the checkout from GitHub.\n\nA new clone shows the default branch's committed decisions and lessons at session start.\nNew repos get this guide at init; existing repos get it with `forge sync` and the behaviour\nwith the Forge release. Neither gets `docs\u002Fhandover.md` until its first hand over.\n\n## Security check\n\nSuggest the `security-audit` skill once at each of two moments: when a prototype is\nabout to stop using sample data and take real data, and at Deploy on Mainline.\nRun it when a person asks. You can say: \"Check the app's security\".\nAsk first, because it uses many model calls; say that the cost is not yet measured\non a client app. Use standard mode unless the person asks for a narrower check\nto spend less. The check never runs by itself, on each pull request or on a\nfake-data demo. It never blocks a pull request, a merge or a launch. Forge adds\nno check, command or record for it; a new session can suggest it again.\n\nTell the owner each confirmed finding in plain words; the owner decides what to\ndo. Write reports outside the repo, in the skill's default folder,\n`~\u002Fsecurity-audit-skill\u002F\u003Crepo>\u002Frun-\u003CN>`. Never paste a report's weakness details\ninto a pull request, an issue or a commit. A fix follows the normal Forge flow\nin plain words. Explain the limits: it reads code and runs the app only in a\nsafe sandbox, so it does not replace a penetration test. Name all parts not read.\n\n## Coaching\n\nThe first time each of these happens for a person, add one plain sentence saying what just\nhappened and what they can do next. Say it once, then never repeat it, and never name commands\nunless they ask. Note each one in the handoff so a new session doesn't repeat it.\n\n- A story plan shown for approval: \"This is the plan in short; you can approve it as it is or tell me what to change.\"\n- A cold read finding: \"A fresh reader found a gap in the plan, which I'm fixing; you can weigh in on the fix or wait for the next read.\"\n- A part starting: \"A worker is building this part on its own copy; you can keep planning meanwhile.\"\n- A pull request ready: \"This part passed its tests and review; you can look it over before it merges.\"\n- A merge: \"This part is now in the main code; you can try it there or pick what comes next.\"\n- A prototype demo: \"The customer has seen it working; you can tell me what they did and said to shape the next round.\"\n- Sign-off: \"The customer approved the prototype; you can now choose the first real story to plan.\"\n\n## New directions\n\nGrill any request with more than one reasonable reading or no stated done-when before starting a\nfix or story. Ask one question at a time with your recommendation and why; look up facts in the\nrepo instead of asking the human. A clear request with a stated done-when can go straight ahead.\n\nWhen the human states a new direction, principle or value, grill how it applies before changing\nanything. Ask one question at a time with your recommended answer and why; look up facts in the\nrepo instead of asking the human. Continue until the plan for applying it is agreed, then make\nthe changes.\n\n## Discovery\n\nEvery ask is a guess about a problem: find the problem before anything is planned. The worked\nexample, question bank, customer call script and outlines for the pre-meeting brief and recap are\nin [the reference page](fde.md).\n\n**By size.** On a fix or an everyday story, interview the engineer, and through them the\ncustomer: one question per turn, about something that already happened. Offer no solutions while\ndiscovering, and praise isn't evidence. A question of fact gets neutral choices; a decision gets\nyour recommendation first. Add a one-line `Why I ask:` to each question until the engineer says\nthey know why. Ask at most two questions for a fix and eight for a story, then write what is\nstill unanswered as `unknown`.\n\n**A new project.** On a new app, the FDE puts every client note in docs\u002Fcontext\u002F. Read all of them\nbefore you ask anything. Fill docs\u002Fproduct\u002FBRIEF.md and the problem cards in\ndocs\u002Fproduct\u002FDISCOVERY.md from the notes, and list each contradiction and gap for the FDE.\nAsk the FDE one question at a time, and only about a point that changes a screen, a field or a\nflow. A new app has no fixed number of questions. Give every other open point a default, mark it\n(assumed) where you write it, and list these assumptions in one message for the FDE to change.\nPut each question the FDE cannot answer on the recap's Still to find out list, and build the\nprototype without waiting for the answer.\n\nBefore the first meeting, draft a one-page pre-meeting brief in\n`docs\u002Fcontext\u002F` from the prospect's website: their likely jobs, two or three guessed problem cards\neach marked `(guess)`, their terms, and the first five questions to ask. During discovery, keep\nthe customer's own words in `## Words they use` in `docs\u002Fproduct\u002FDISCOVERY.md`, one\n`- \u003Ctheir word>: \u003Cwhat it means>` line each. Ask for the spreadsheet or form they use today and\nkeep only its column headers, never its rows. The same day, draft a recap in `docs\u002Fcontext\u002F` for\nthe customer to confirm: their problem in their words, the cost in their numbers, the one task\nthe demo will cover, who signs off, the open \"ask the client\" questions and the demo date. When\nthey reply, record the Demo workflow and Sign-off person answers from it with `client` as the\nsource, as `- Demo workflow: \u003Ctask> (client, \u003CYYYY-MM-DD>)` and `- Sign-off person: \u003Cname, role>\n(client, \u003CYYYY-MM-DD>)`. The salesperson sends the recap; Forge sends nothing.\n\n**Research the prospect.** A Sales person starts with the company's name and website, plus any\nnotes or call transcripts. They do not need to know what to build: you find out. Ask nothing\nbefore the pass. Save their notes in `docs\u002Fcontext\u002F`; when the session cannot read a recording,\nask for its transcript. Run the pass before the first meeting, or before the prototype plan when\nthey have already met the prospect. It is the pre-meeting brief, written as\n`docs\u002Fcontext\u002Fprospect-research.md` in the client repo, never in Forge's own files. Do one\npass on the public web, with this session's own web search, over this list in this order:\n\n1. what it sells and to whom, from its own site;\n2. how it works today: its service or ordering pages, case studies and the duties in its job posts;\n3. complaints from its customers and its staff, from public review pages and public employer\n   review pages that open without a sign-in;\n4. its tools, from job posts, its site and vendors' public case studies;\n5. its job posts, from its careers page and public job boards;\n6. two or three close competitors and what each offers, from their own sites.\n\nStop at 12 web searches and 20 page reads for the whole pass. Items 1 to 6 get at most 8\nsearches and 14 page reads. Keep the last 4 searches and 6 page reads for similar companies, and\nuse them only when the findings are thin. These numbers are an estimate, not a measurement; they\nchange after the first real runs. Use no paid data service. Only one agent runs the pass: this\nsession's agent, or one helper agent when the host has one (for example the `explorer` role),\nso the page reads stay out of the main chat. Never use more than one.\n\nRead public pages only, never a page behind a sign-in. Name a person only by role (\"the\noperations head\"), and summarise complaints with no reviewer names. Write short notes in your\nown words, each with a link; copy no text. Use neutral words, because the client may read this\nrepo one day. Every finding under What we found has its own link to the public page it comes\nfrom; a finding without a link is not written.\n\nThe page follows the outline in [the reference page](fde.md). It records the searches and page\nreads used, What we found, Not found, For the look and Questions for you. Under Not found, write\nwhat you could not find and what you tried; write \"not reached\" for an item the limit stopped.\nFor the look, give the five facts the design starts from: the industry, the users, the main job\nof the screens, brand words, and brand files as links to the company's logo or brand page (no\ndownload).\n\nFindings are thin when fewer than three of items 1 to 5 hold a finding about this company. Then\nsay what you could not find, ask the Sales person up to five questions about the company in one\nmessage, under Questions for you, and use the kept part of the limit to study two or three\ncompanies of the same kind and size. Mark every idea from them `from similar companies`. Do not\nwait for the answers: show the proposal now, and add the answers in a new dated part.\n\nWhen this session cannot search the web or read pages, say in one line: \"This session cannot\nsearch the web, so I could not research \u003Ccompany>.\" Then work from the notes and questions as\nyou do without this step.\n\n**Propose one prototype.** Under `## Proposed prototype, \u003CYYYY-MM-DD>`, write one proposed\nprototype: the one task the demo shows, start to finish, and up to five features around it, one\nline each. Each line has exactly one source mark, chosen by where the idea came from:\n\n- a link to a public page about this company;\n- `from similar companies: \u003Ccompany>` and a link to that company's page;\n- `heard from the customer: \u003Cnote file in docs\u002Fcontext\u002F>`;\n- `from the salesperson`, for a feature the Sales person added in their reply;\n- `not researched`, for an idea with no source.\n\nUse `not researched` only when the session cannot search the web or the pass did not reach the\nitem the idea depends on. An idea with no source in any other case does not appear. A point from\na transcript is `heard from the customer: \u003Cnote file in docs\u002Fcontext\u002F>` with or without web\nsearch. An idea that comes from the Sales person's own notes, not from a reply, is\n`from the salesperson: \u003Cnote file in docs\u002Fcontext\u002F>`. Nothing general appears as if it were about\nthis company. Before you show the proposal, check every line against this list, and fix or\nremove a line with no mark.\n\nUnder `## Other possible prototypes, \u003CYYYY-MM-DD>`, write two other possible prototypes, numbered:\neach a task and one or two lines with their marks. Show the same text in the chat in plain\nwords, with the links, so the Sales person sees every link. Never ask them to pick from a long\nlist of features. This proposal is not the Options step: Options below stay for a chosen\nproblem in a story.\n\nThe Sales person says yes, picks another, or says in plain words what to change. Build nothing\nbefore this choice. Then append `## Chosen prototype, \u003CYYYY-MM-DD>` to the page: the full\nchosen prototype with its marks, copied from the option they chose, with their changes applied\n(an added feature is `from the salesperson`). Its first line is\n`- Chosen by: salesperson: yes | option \u003Cn> | changed: \u003Ctheir words>`; this line is not a\nfeature and needs no mark. Leave the proposal and other-options parts as they were. Write\n`- Demo workflow: \u003Ctask> (salesperson, \u003CYYYY-MM-DD>)` in the brief's Answers; the client's reply\nto the recap replaces it with `(client, \u003CYYYY-MM-DD>)`. Save the page and that line as one fix,\nas discovery notes are saved.\n\nA later research pass or a later choice adds a new dated part to the research page; never\nremove or rewrite an earlier part.\nA second pass appends `## Research of \u003CYYYY-MM-DD>` with its own findings, counts, Not found and\nproposal. A second choice appends a new `## Chosen prototype, \u003CYYYY-MM-DD>`, and the newest one\nis the one in use. When the customer's reply to the recap corrects the demo task, add a new\ndated `Chosen prototype` part too, so the page and the brief agree.\n\n**The card.** Write each problem as a card under `## Problems` in `docs\u002Fproduct\u002FDISCOVERY.md`,\nadding the section to an older file on first use: `### \u003Cshort problem title>`, then Job,\nWorkaround, Cost, Who feels it, How often and Evidence. Write customer notes in `docs\u002Fcontext\u002F`\ninto cards and leave the notes where they are. Name the chosen card's heading in the brief's\nSummary and the story's Why (or the spec's Why when using a spec). Costs use rounded rates,\nnever real salaries.\n\n**Options.** For the chosen problem, offer two to four options, always with `Don't build` and\n`Smallest slice`, plus `Use what they have` (a setting, report or process change in tools they\nalready run) whenever one could do the job. Give each option that builds something its own\n`forge spec payback` line, and recommend the one with the fewest months among those answering\nbuild or smallest slice first; a tie goes to the smaller build. If none does, recommend don't\nbuild, or find out first when an option's value can't be estimated. The human chooses; write the\nchoice and one line of why into the story's Why, or the spec's Behaviour when using a spec.\n\n## Prototype\n\nNew clients get these steps at init; existing clients get the same guide after upgrade and sync.\n\nIn a new client repo, follow the FDE route: start with discovery of the customer's job,\nworkaround, cost, people, frequency and evidence. Then write the prototype plan: record types\nwith their fields in `docs\u002Fproduct\u002FBRIEF.md`, the Roles table and architecture choices in\n`docs\u002Fproduct\u002FCONSTITUTION.md`, one link to the design in the BRIEF, and the demo steps.\nThe design can be made through Forge or separately; the BRIEF holds one link to it.\nWhen the research page has a `Chosen prototype` part, the plan's demo steps come from the newest `Chosen prototype` part, the task first.\nEach demo step is one Done-when item in the plan, with the client's business task first and\nbasic screens (sign-in, members, settings) last. Create the plan record with\n`forge decision new prototype-plan`.\nRun `forge decision accept prototype-plan --by \"\u003Cname>\"` once, then build.\nThis replaces separate canvas, working-build, constitution and architecture-record approvals.\nThe approval before the prototype needs neither a saved design nor a personal-data answer.\nRight after approval, build every record type in the plan with `forge task feature`, with the Roles table and without more questions.\nFor each record type whose row differs from the command's default (member view, create), edit that feature's one `definePermissions` call.\nBuild the screens in the client's design, demo the prototype and obtain the customer's named sign-off;\nthen create stories. Use prototype fixes before sign-off. The\nsalesperson can be the FDE at first;\nthe developer takes over with `docs\u002Fproduct\u002FDISCOVERY.md`, `docs\u002Fproduct\u002FBRIEF.md` and the customer\ncall script. The design comes first. Use the app's existing design; if it has none, draft one on\na design canvas from the client's brand, or use a neutral design when there is no brand.\nEvery API a person uses gets its screen in the client's design, built by the agent with the API,\nwith no need to ask. Webhooks, endpoints only agents or systems call, and background jobs get none.\nBuild the prototype on the starter app. Build the basic screens first, in the client's design;\nthe starter has none, and has a `Project` API. Rename or remove the `Project` placeholder.\nThe app's approved sign-in answer, spec or decision decides which basic screens exist and what they hold; for another method, such as one-time codes or company sign-in, do not build the password screens.\nBuild the business screens next. The demo opens on the client's business task; show the basic\nscreens last.\nPush back when a requested feature does not serve the problem card: explain why and\noffer to note it for after sign-off. Keep the same app as it grows into production.\n\n### Removing a feature\n\nWhen a person asks to remove a feature, run `forge start \"Remove the \u003Cfeature> feature\"`; the\nremoval is the part's work. A plan that removes a feature names its plural and these steps, in\norder: confirm the record type with the person if the words are unclear; in a starter app, run\n`forge task feature-check \u003Cplural>` first, and if it names a feature that uses this one, stop,\ntell the person and ask which feature to change first; work through the fixed list for the\nstack; run the check until it prints that nothing points at the feature; update\n`docs\u002Fproduct\u002FBRIEF.md` (the record type), the Roles table row and any demo step that uses the\nfeature; run the app's own tests; commit as one change. In a sample-data prototype\n(`sample_data = true`), the proof is the app's build and the look check (walk each demo step in a\nbrowser), not automated tests.\n\nThe fixed list, TypeScript. Delete: `libs\u002F\u003Cplural>\u002F` and `apps\u002Fapi\u002Ftest\u002F\u003Cplural>.e2e-spec.ts`.\nEdit: the import and the entry in `apps\u002Fapi\u002Fsrc\u002Fapp.module.ts`; the dependency in\n`apps\u002Fapi\u002Fpackage.json`; the reference in `apps\u002Fapi\u002Ftsconfig.json`; the `scope:\u003Cplural>` line in\n`eslint.config.mjs`; the two `dist` names in `scripts\u002Ftest-build.mjs`; the feature's importer\nblocks and the app's dependency lines in `pnpm-lock.yaml`; the calls to the removed feature's API\nin `apps\u002Fapi\u002Ftest\u002Fdatabase.e2e-spec.ts` (the starter's `projects` calls `\u002Fapi\u002Fv1\u002Fprojects` there,\nand the check lists those calls). Keep: the Prisma schema file, the migration folder, the name in\n`base.prisma`, the relation lines in `Account` and `Organisation` and the catalog entry in\n`apps\u002Fapi\u002Ftest\u002Fdatabase.e2e-spec.ts`.\n\nThe fixed list, Python. Delete: `routes.py`, `service.py`, `tools.py` and `permissions.py` in\n`apps\u002Fapi\u002Fapp\u002F\u003Cmodule>\u002F`, `apps\u002Fapi\u002Ftests\u002Ftest_\u003Cmodule>.py` and `libs\u002F\u003Cplural>\u002F`. Edit: cut\n`apps\u002Fapi\u002Fapp\u002F\u003Cmodule>\u002F__init__.py` to one line that imports `models` (the starter's entry file\nimports `routes`, `service` and `tools`, and the check lists those imports until they are gone);\nremove the two lines in `apps\u002Fapi\u002Fapp\u002Fmain.py`; remove the path in the root `package.json`\n`typecheck`; remove the importer in `pnpm-lock.yaml`; change the calls to the removed feature's\nAPI in `apps\u002Fapi\u002Ftests\u002Ftest_module_schemas.py` (the starter's `projects` creates and reads a row\nthrough its API there, and the check lists those calls); then run `corepack pnpm run api-types`\nbefore the last check, because the shared API types still name the removed routes. Keep:\n`models.py` and every file in the module that `models.py` imports, the Alembic revision, `import\napp.\u003Cmodule>` in `migrations\u002Fenv.py`, the `\u003Cplural> internals` contract and the schema inventory\nlines in `apps\u002Fapi\u002Ftests\u002Ftest_module_schemas.py`.\n\nIn the client's own files, remove its screens, menu entries, routes, API calls and demo loader\nlines.\n\nOther cases: a database test that calls the removed feature's API is changed to create its row\nanother way; the starter's own `projects` feature has such calls. The starter's tests for agent\ntools and agent access name `projects_*` tools and `\u002Fapi\u002Fv1\u002Fagent-tools\u002Fprojects`; the check\nlists them. Examples in the starter's own text (the auth response example and the page path\nexample name `projects`) are listed as leftovers when `projects` is removed; change the word in\nthem. If the check says it could not find the data model, search for that model's calls by hand\nand tell the person. A feature not made by the build step: use the same list for what exists,\nthen the check. An app that is not a starter app: skip the check, search the code for the\nfeature's name and run the app's own build and tests.\n\nData rule: the table, every row in it and the feature's existing change history stay; write no\ndrop migration in this change; a later drop follows the database skill and the deploy guide as\nthey are.\n\nIf the prototype holds only made-up data and has no back end, ask the person, then have the\ncoordinator set `sample_data = true` in `forge.toml`. A sign-off record does not turn sample mode\non. Forge skips tests and CI while the setting is on; walk the demo steps in a browser.\nReal data or a back end keeps tests from day one.\nAfter sign-off, `forge next` shows setting up tests as the first step. In a coordinator-owned fix,\nset the test command and CI checks as needed, then turn off the setting. In the same fix, list the\nprototype's screens in the app's browser tests with `checkScreen` from `.forge\u002Fdesign\u002Frender-check.mjs`,\nso the rendered check starts with the first tests. Close blocks that fix until\nthe `Personal data` answer is settled.\n\nFor every prototype, build the demo-data loader in the first version, so the customer sees their own kind of\nwork instead of empty screens (see demo-data.md). Use the customer's words\nfrom `## Words they use` in `docs\u002Fproduct\u002FDISCOVERY.md` for screen labels. Tell the salesperson\nthey can point at the screen: click an element in the demo build, write what's wrong and paste the\noutput to the agent.\n\n**Open decisions.** Write each question only the client can answer in this form, in the decision\nrecord under `## To confirm`, the spec, or the plan's Notes where it belongs:\n\n```text\n- Open question: \u003Cquestion>\n  Touches: \u003Cscreen or rule>\n  Why we ask: \u003Cwhat the answer changes>\n  Default: \u003Cchoice>\n  Why this default: \u003Creason>\n  If the default stands: \u003Cwhat happens>\n  Due: \u003CYYYY-MM-DD>\n  Gain \u003C1-5>, Work \u003C1-5>, Harm \u003C1-5>\n```\n\nPick the default, due date and scores with the review bar before you ask. Copy a cold-read or\nreview note that needs the client into this form. `forge decision open` prints the ranked list;\ngo through the whole list with the client in one sitting, then record the answers with\n`forge decision answer`. When `forge next` says a due date passed, record the defaults with\n`forge decision answer --defaults` and tell the client each default and that a new decision can\nchange it. After an upgrade, rewrite each existing to-confirm list and open question in this form\nonce in a mechanical fix.\n\nFor each demo round, gather all requests from one conversation into one prototype fix. Build,\ntest, review and merge that round before starting another. Tell the salesperson what changed in\nthe demo: \"the next version is ready to demo\" or \"the reviewer found a missing error message\".\nSay a version is live only after the requested deployment is verified. Do not\nuse Forge's words (fix, worktree, branch, pull request) in progress updates to the salesperson.\nWhen `forge next` says to connect the repo to our deploy platform, explain what is needed;\nthat reminder does not authorize deployment. When the user explicitly requests deployment, use\nMainline Deploy as above. After the requested deployment is verified, record its address under\n`## Demo` in `docs\u002Fproduct\u002FBRIEF.md` as `- Address: \u003Curl>`. Copy that address into the sign-off\ndecision. A canvas-only prototype needs no demo address.\n\n**Production preparation.** Client sign-off approves the product direction, not production\nreadiness. The coordinator confirms the host, account owner, region, domain, budget and release\napprover with the client. Record these decisions without secrets. The platform administrator\nprovides access and environment setup. Name who owns support, alerts, backups and recovery.\nPlan remaining production work through stories and reviewed pull requests.\n\nBefore the first Promote, follow First production release in Forge's packaged how-to,\n`forge\u002Ftemplates\u002Fconventions\u002Fdeploy.md`.\nConfirm production access and secrets, HTTPS, DNS, database access, migrations and external\nservices. Check the release in a non-production environment with a green full test run,\nthe customer's main task and permissions for each role. Confirm a current backup and a\ndemonstrated restore, recovery steps and an app and database rollback plan. Agree the release\ntime and any data import or downtime. Only the authorized person presses Promote. Confirm the\nproduction address and main task after release. If a check fails, use the agreed rollback plan\nand notify the support contact. Workers never deploy.\n\n**Client cloud or servers.** Confirm this choice before deploy setup. Ask the platform\nadministrator whether Mainline supports the requested target. For a supported target, follow\nthe installed Mainline Deploy skill after an explicit deployment request. Otherwise, record\nthe host and constraints and plan the required deploy work as a story. Name who owns server\nand network access, secrets, certificates, the database, backups, alerts and release. Use the\nclient's approved release process and the same production checklist. A host without Mainline\nhas no Mainline Promote step. Do not invent install commands or change the client's host choice.\n\n**The demo.** Every demo follows five steps, in order:\n\n1. their workaround today;\n2. the same job in the app;\n3. the time or money it saves, in their numbers;\n4. they take the controls;\n5. ask \"what would stop you using this?\"\n\nSend the demo link only after the guided demo, never before it. With each new version, draft a\nthree-line \"what changed\" note for the salesperson to send: what they can do now, what changed\nsince their last look, and what to try first, all in their words.\n\nAfter each demo, ask the salesperson one question at a time: what the customer did themselves,\nwhat they said word for word, and what they asked for. Write the answers under\n`## Prototype notes` in `docs\u002Fproduct\u002FDISCOVERY.md` as one `### \u003CYYYY-MM-DD>` block with `- Did:`,\n`- Said: \"\u003Ctheir words>\"` and one `- Asked:` line per request, ending each request in\n`(serves the problem)` or `(after sign-off)`.\n\nAsk one topic at a time when it first changes what you are building. Skip a topic the repo already\nanswers. In the options column, our default is first where there is one; questions of fact have\nno default. Offer **Ask the client** on every question and add it to the customer call script in\n`docs\u002Fproduct\u002FDISCOVERY.md`. For a topic that may wait, also offer **Decide later**. Standards\nalready decide logging, security and error handling; take those defaults and include them in the\nread-back without asking again. Use the table to time the questions. Open answers do not block work\nor sign-off, and `not known yet` is an accepted answer.\n\n| Topic | Question | Options (default first) | Ask by |\n|---|---|---|---|\n| Sign-off person | Who at the customer approves the prototype? | name and role | before sign-off |\n| Demo workflow | Which one task should the demo let them do from start to finish? | from the problem card | before the demo |\n| Users and roles | Who uses it, and what can each kind of user do? | admin and staff; other | before sign-off |\n| Existing systems | Which systems must this work with? | none; CRM; accounting; email or SMS; payments; company sign-in | before sign-off |\n| Sign-in | How will people sign in? The client chooses the method. | email and password (default if the client gives no other answer); one-time codes; company sign-in (Google or Microsoft) | before sign-off |\n| Phone view | Which screen sizes must the app work on? | desktop only (default); desktop and phone | before the app's build starts |\n| Personal data | Will it hold personal, health or payment data, or data that must stay in one country? | none; personal only; regulated | before sign-off |\n| Production host | Where will the real app run? | our platform; the client's cloud; the client's servers | before sign-off |\n| Data import | Does data need to come in from today's tools? | no; a spreadsheet; another system | when a story needs it |\n| Email or SMS | Which provider sends messages? | none yet; the client's provider | when a story needs it |\n| Domain | Which web address? | our subdomain; the client's domain | when a story needs it |\n| Backups and uptime | How much downtime or data loss is acceptable? | the platform's daily backups; stricter | when a story needs it |\n| Log retention | How long must logs be kept? | the platform's default; longer | when a story needs it |\n\nRecord a yes to a phone view as `Phone view: desktop and phone`, and a no as `Phone view: desktop only`.\nA missing `Phone view` answer means desktop width only and refuses nothing. An existing app has no\nanswer yet; ask at the next change to one of its screens.\n\nAsk topics at the suggested time when possible. These are conversation prompts, not gates: a\nmissing answer or an open client question never blocks planning, review, ordinary close, merge or\nsign-off. A repo that never declared sample data keeps today's refusal for an open `Personal data`\nanswer when approving the app's rules page. A sample-data repo can approve its rules page and start\nstories with that answer open, but close waits for a settled answer on a fix that turns off sample\ndata.\nKeep one `## Answers` section in `docs\u002Fproduct\u002FBRIEF.md`, one running list written during the talks,\nwith one line per topic. Record an answer as `- \u003CTopic>: \u003Canswer> (\u003Csource>, \u003CYYYY-MM-DD>)`, with\nthe client, salesperson, developer, our default or agent as its source. Record an open request as\n`- \u003CTopic>: ask the client (\u003Cwho asked>, \u003Cdate>)`; replace it when the client replies. Record a\ncurrent unknown as `- \u003CTopic>: not known yet (\u003Csource>, \u003CYYYY-MM-DD>)`. If the person defers an\nanswer, record `- \u003CTopic>: later, when \u003Ctrigger>`. These answers are accepted; no answer needs to\nbe settled before work continues, except before closing a fix that turns off sample data.\n\nIn a prototype, `forge next` and the board show one sign-off status line. When nothing else is in\nprogress, they show open questions as a checklist, with the phrase that fixes each item. When the\nclient replies, update the matching line in the brief. A `not known yet` answer is accepted and is\nnot listed as open, except Personal data, which needs a settled answer before real data.\n\n**Canvas and app design.** Before the first canvas, write a short brief from the industry,\nwho uses the app and how often, the screen's job (work, read or persuade), two or three\nbrand words and existing brand files; map them to font pairing, one accent, radius,\ndensity and tone, put them in the client's design system (below), then record DESIGN.md through\nimpeccable's document step using the app-baseline list and fixed guard rules, and use impeccable's\nOperate mode for app screens and prototypes. `support.js` checks each canvas and renders it at 1440 and 375 pixels\nbefore it is shown; the plan's read refuses a failing design folder or one with no DESIGN.md.\n\n**The client's design system.** This step needs the app's shared parts in `libs\u002Fshared\u002Fui` and its\ntheme file. A repo made with plain `forge init`, or an app of its own, may have neither; then say so\nin one line. With no app at all, change no app file: record the look that the starting-theme step\nchooses in DESIGN.md only (impeccable's `document` step, and write `Claude design system: not made\nyet` in the brief's `## Design` section), and make the system when the app exists. With an app that\nhas its own theme file but not the starter's parts or names, keep the look in that file as today,\nwith no design system and no `docs\u002Fdesign\u002Ftokens.json` (so the check stays off), until the app has\nboth. Otherwise, for each client, make one design system in Claude (the Design System type) from the\napp's shared parts in `libs\u002Fshared\u002Fui` and from the theme names in the app's theme file. An earlier-adopted app may lack the added theme lines (heading font, text sizes,\nspacing, shadows) and the heading rule. Before you make the system, add them to its theme file with\nthe starter's values, copied from the Forge starter's theme file: `templates\u002Fstarter\u002Fapps\u002Fweb\u002Fsrc\u002Findex.css`\nin the installed Forge package, next to its `conventions\u002F` folder. Then the system has every name.\nStart its values from the app's own theme file: the stock values in a new app, the current theme in\nan existing one. For a new client, and for an existing app whose theme file still holds the\nstarter's stock values, decide better first values yourself from the five facts and write them into\nthe system: colours for light and dark, fonts, sizes, spacing, corner size and shadows. Take the five\nfacts from the client's notes. Ask the Sales person only for a missing fact, one question at a time.\nThen design the client's main screens with the system: up to three, and only screens the app needs\n(for example the main list, one record and one form; a one-screen app shows that one screen), in\nlight and dark. Show those whole screens to the Sales person, never single parts alone. The person\nsays yes, or says in plain words what to change, for example \"warmer\" or \"more serious\". Change the\ntheme in the system, redraw the same screens and show them again. The Sales person sets no value by\nhand.\n\nKeep the system editable on the page: it is not marked as synced from code. Its README says which\nrepo and which parts it came from. The README is the brand guide that every agent reads before it\ndesigns a screen, so it carries the look rules; without them the screens keep the stock look.\nWrite the brand guide from three existing sources, in the client's terms: the design rules in\n`conventions\u002Ffrontend.md`, the design rules in the `app-baseline` skill (one main action per screen,\nthe looks to avoid) and the five facts. Add no rule that these sources do not hold. It states which\ncolour token is for the page, the text, the one main action and each status, in light and dark;\nwhich font and size token is for headings, body text and table text; the corner size, when a border\nis used and when a shadow, and how dense tables and forms are; one main action per screen; and the\nlooks to avoid. Give every token a usage note that names where it is used. Before the system is\nshown to a person, check that text contrast is 4.5 to 1 on its ground in both themes. Keep a client\ncolour that fails and say so in its usage note. When the shared parts change later, revise the\nsystem's component files one at a time after reading the current files.\n\nKeep the link to the client's system once in `docs\u002Fdesign\u002Fdesign-system.md`, as one line\n`Design system: \u003Clink>`, in the same change that makes the system. Before you design, copy a theme or\nrevise the parts for a client, open that link and read the system's `README.md` and\n`project\u002Ftokens.json`. Never rely on which system the design tool treats as the default. Design the\nclient's screens with that system. If the design tool can build a canvas only from its default\nsystem, say so in one line and ask the person to make that system the default. When the system is\nmade, remove the `Claude design system: not made yet` line from the brief's `## Design` section if it\nis there, also when the tools were never missing.\n\nWhen the Sales person says yes to the screens (the design is approved), read the system's\n`project\u002Ftokens.json` and save it unchanged as\n`docs\u002Fdesign\u002Ftokens.json`. Write each value into the app's theme file by name, then run\nimpeccable's `document` step so DESIGN.md describes the same theme. Do this as the first change\nafter approval and before the first screen. After any later theme change in Claude, repeat it in\none change, but only after the person says yes to that change: a trial look that the person has not\naccepted is never copied into the app or into `docs\u002Fdesign\u002Ftokens.json`. In an existing app, add a missing theme line and the heading rule (`h1` to `h6` take\n`@apply font-heading`) to the theme file, with the value the system holds. `docs\u002Fdesign\u002Ftokens.json`, when it exists, is the approved theme. Close compares the app\nwith it and stops on a difference whenever a screen or the theme changes. A waiver is one comment\nin the theme file that names the token and the theme:\n`\u002F* forge-ui-ignore theme-drift --\u003Ctoken> (light|dark): \u003Creason> *\u002F`. The review reports a screen\nbuilt on the untouched starter theme when `docs\u002Fdesign\u002Ftokens.json` does not exist. A value with no light or dark form (corner size, spacing, shadow, font, text size) can be set aside with or without a theme name in the comment.\n\nMotion. Close refuses a changed UI file that animates all properties (`transition-all`, `transition: all` or `transition-property: all`), including a shadcn copy under `components\u002Fui\u002F`. It names `file:line motion-all`. List the properties instead, or set it aside with `forge-ui-ignore motion-all: \u003Creason>`. Review reports a button-like part with no pressed state (the `link` variant is exempt), a new animation that ignores reduced motion, a hand-built loading, empty or error block in an app that has the shared state parts, and motion that skips the shared curve and speeds. For an app made before this release, apply the \"In an app set up before this release\" part of the frontend convention when `motion-all` reports a problem or the person asks, in a normal change.\n\nFonts. The starter loads no font: a font name alone does not load, so a copied font name needs a\nsource. If the system holds the font as a file in its `fonts\u002F` folder, copy the file to\n`apps\u002Fweb\u002Fpublic\u002Ffonts\u002F` and add an `@font-face` rule with `font-display: swap` in the theme file;\nthe licence must allow it. If the font is a hosted family, add the host's stylesheet link to\n`apps\u002Fweb\u002Findex.html`. An existing app keeps its own web root (the folder with its `index.html`): use\nit in place of `apps\u002Fweb`. A generic family from the browser (`serif`, `sans-serif`, `system-ui`,\n`monospace`) needs no file or link and is copied as it is. If the app can load the font in neither\nway, do not copy the font name: keep the app's font, tell the person in one line which font did not\nload, and set the difference aside with a waiver. Keep the fallback fonts of the token's list in\nthe copy.\n\nWhen the session has no Claude design tools (you cannot list or publish artifacts), say so in one\nline and keep going on HTML artboards with `support.js`. Set the theme in the app's theme file from\nthe five facts, run impeccable's `document` step, and write `Claude design system: not made yet` in\nthe brief's `## Design` section. When the tools return, add the theme lines and the heading rule the app lacks,\ncopied from the starter as above, then make the system from the app's theme file as it stands; from\nthen on Claude is the source. In the same change, save the new system's `project\u002Ftokens.json`\nunchanged as `docs\u002Fdesign\u002Ftokens.json` and write its link into `docs\u002Fdesign\u002Fdesign-system.md`.\n\nMake each app's design from the whole `docs\u002Fproduct\u002FBRIEF.md`: its\npurpose, users, records, fields, choice-list options and key flows. Use impeccable and\nemil-design-eng when making it through Forge. Any way of making the design works, through Forge\nor separately. Keep one link to it in `## Design` in the brief; it need not be saved in the repo.\nWhen using Forge, run impeccable's init when PRODUCT.md is missing, and use a shadcn design\nsystem and named shadcn components. Keep the design available for the\ncustomer and the sign-off review. A UI fix needs no saved design images. New clients get this process at init; existing clients can use\ntheir current brief and design after upgrade and sync. Client sign-off does not require a root\nDESIGN.md, SCREENS.md or CHECKS.md, or a specific `Things it keeps track of` heading.\nWhen the canvas has a SCREENS.md screen list, add `Build: now` or `Build: later` to each screen.\nPut the whole product on the canvas, every screen, state and flow, later ones too, and mark\n`Build: now` only what the first stories build.\nBefore sign-off, use impeccable's critique and polish and the emil-design-eng checklist.\nThe one prototype plan approval covers the design.\n\nFor each story that adds a screen or changes a flow, use this design process before its cold read.\nSave the folder under `docs\u002Fdesign\u002F\u003CKEY>\u002F`. End `## What changes for you` with\n`Design: docs\u002Fdesign\u002F\u003CKEY>\u002F (\u003Ctree id>)`, using `git rev-parse HEAD:docs\u002Fdesign\u002F\u003CKEY>`.\nOne plan approval covers that exact folder. A changed folder needs a new tree id and approval.\nFor small changes to existing screens that add no screen and change no flow, use\n`Design: none (\u003Cwhy>)` instead. Backend-only stories need no canvas. Earlier approved stories keep working.\nThe build applies any existing app theme and follows the approved story design, including its\ncomponents and fields. Workers and reviewers receive that design context.\n\n**Sign-off.** Before the demo, read back the brief and open items with the customer. The suggested\ntimes in the topic table are prompts, not gates. No missing answer, open client question, or answer\nmarked `later` or `not known yet` blocks planning, review, close, merge or sign-off, except that a\nfix which turns off sample data waits for a settled `Personal data` answer. Write\n`forge decision new client-signoff` with the customer and the demo proof for a working build. Leave\n`approved_via` and `approved_on` empty. Forge writes the current `## Answers` section into the\nsign-off record. Do not copy it by hand. Put each demo step under `## Proof` for a working build.\nRun each demo step from the plan in a browser and write its Proof line unticked.\nWrite the tick only when the client says yes during the demo, with how and when the client replied.\nThe FDE records each tick as `- [x]`; Forge refuses sign-off while a step has no tick.\nYou may save `docs\u002Fproduct\u002Fdemo\u002F\u003Cn>.png` as evidence; no screenshot is required or checked.\nA screenshot-only change skips code review.\nFor a prototype without the sample-data mark, also name the passing test for each step. A marked\nsample-data prototype has no test requirement before sign-off. Put settled choices under\n`## Decisions`. Run `forge decision accept client-signoff --by \"\u003Cname>\"` before asking\nthe customer to sign off. After the check passes and the customer replies, set `approved_via` to the\nreply and, if known, `approved_on` to its date. Run\n`forge decision accept client-signoff --by \"\u003Cname>\"` to record the signer's name.\nBefore the demo, read the design from the brief's link when the host can and list its screens.\nCompare them with the app, then build what is missing or tell the person.\nIf the host cannot read the link, use the design pages saved in the repo, or ask the person\nfor the screen list when there are no saved pages. Say plainly that the design was not read.\nMissing access or saved pages never refuses the demo or sign-off.\nSign-off keeps the demo proof and the customer's record. A prototype marked `sample_data = true`\nin `forge.toml` gets one gap check before the demo, with no full test run or whole-source review.\nThe check reads the brief, answers, design and app routes. Findings below Gain 5 and Harm 4 go to\nKnown issues without a repair request. A P0, Gain 5 or Harm 4 or higher stops for the owner's\nchoice at once. The owner can accept a held finding with a reason or ask for a repair. A prototype\nwithout the setting keeps the current full-run and whole-source review rules, including an\nearlier-adopted repo whose sign-off record says `sample_data: true`.\n\nOnly the coordinator writes `sample_data = true` in `forge.toml`, after asking the person. A worker\ncannot change this setting. Existing clients get the new sign-off behaviour after the setting is\nwritten, and get the brief rules after upgrading and syncing. They do not need to add prototype\ndesign files for sign-off. A sample-data repo may approve its rules page and start stories with an\nopen `Personal data` answer. A repo that never declared sample data keeps today's refusal at rules\npage approval.\n\nAfter sign-off, read `Before production` in `forge next`. First check what is already in progress,\nso no line is started twice. Leave sample data by the existing step: settle the `Personal data`\nanswer, set the test command and checks, then the coordinator turns `sample_data` off. For the\nlight-review line and the \"Demo only\" line, start one normal change with\n`forge start \"\u003Cyour sentence>\"`. Take the work from the row's Say text, but write your own sentence.\nNever paste the Say text into a command, because a file name in it can hold shell characters. Use\nonly letters, digits, spaces and the signs `. , : _ - \u002F` in your sentence, so the double quotes are\nsafe in every shell. Name each part the line lists, so the line clears. Name a file only when its\nname uses just those signs. Describe any other file in words, such as the other files with the Demo\nonly label. A change that touches code has the full review, and its tests follow the repo's settings\nonce sample data is off. A fix that changes only documentation gets only the light check, even after\nsign-off, and the light-review line does not count it. If a part in that line changed only\ndocumentation, tell the owner: the owner accepts that line in chat, or the follow-up change includes\nthe code that the documentation describes. Do not press or ask for Promote while a line is open,\nunless the owner accepts the rest in chat. Tell the owner plainly that Forge cannot see the release\nor whether the app still shows made-up data, and that it refuses nothing.\n\nFor a prototype without the setting, fix held findings from one sign-off review in one fix. Run the\nprinted repair command from the sign-off checkout that the refusal names. The repair includes the\nsign-off record and publishes its earlier review commits, even when that checkout's first fix\nalready merged. After the repair merges, retry `forge decision accept client-signoff` from its\ncheckout. The record keeps earlier rounds and owner choices after a squash merge or a move to\nanother computer.\nJudge a prototype as a prototype. Production work, including deployment to the client's account,\nbelongs to build stories. A clearly labelled demo tool is not a P0 when the prototype holds\nonly sample data and has no back end, as its own files show.\nA security hole in a real API or sign-in, or any exposed real data, stays a P0.\nRisks that exist only in a real-data build the prototype is not, such as browser-held\ncodes or data in a prototype with no back end, belong to build stories and Known issues,\nnot P0 findings.\nOnly Harm 4 or higher, Gain 5, or a P0 holds the product review; every other finding goes straight\nto Known issues without a repair round or an owner question. For an unmarked prototype, a held\nfinding below P0 still needs the owner's choice at the review's round limit.\nIf the review engine fails, fix the engine problem and run the accept command again.\nA canvas-only sign-off needs no working build. An unmarked working prototype gets a full first\nproduct review. Each later attempt reviews only product files changed since the previous review and\nits open findings.\nIf product files changed after a saved stop, review them before asking the owner about remaining findings.\nWith no product change, repeat the saved question without another review.\nEvery reviewer gets earlier findings and answers. Settled findings stay settled. A sample-data\nprototype uses its one gap check and has no review rounds. If that check finds a P0, Gain 5 or Harm\n4 or higher, Forge asks the owner at once. The owner can run\n`forge decision accept client-signoff --by \"\u003Cname>\" --resolve accept --reason \"\u003Creason>\"` to keep\nthe finding in Known issues, or ask for a repair. Without the sample-data\nsetting, a P0 keeps the current hard block. Only `sample_data = true` in `forge.toml` turns sample\nmode on. New and earlier-adopted clients get the brief rules after upgrade\nand sync.\nForge reuses passed results while what they checked stays unchanged.\nWhen sign-off needs a full run, start it after the last product merge as described under\nClosing below; prepare the sign-off notes while that run is in progress.\nA version-only change to forge.toml keeps the last green full run. Any other settings change needs a new full run.\nFor an unmarked working prototype, the product review uses the green full run as test evidence. It\nneeds no separate `forge test` run.\nIf the product review cannot finish, the refusal names its saved raw report when one exists.\nThe sign-off review uses the repo's selected tool and `[models.review]` settings, with\nAutoreview's defaults for unset values. Once any required check passes, ask the customer's named\nperson for sign-off their own way. Forge sends nothing. When the customer replies, record the\nreply in the sign-off record and run `forge decision accept client-signoff --by \"\u003Cname>\"` to record\nthe signer.\n\nForge writes the current Answers section into the sign-off record, so the record always quotes the\nbrief used for sign-off.\n\nEvery normal, light and sign-off review runs through the external Autoreview program:\nClaude when `tools = \"claude\"`, Codex when `tools = \"codex\"`. With `tools = \"both\"`,\nit uses Codex when installed and Claude otherwise. Forge passes the selected tool's\n`[models.review]` model and optional effort to Autoreview; without an entry, it uses\nAutoreview's defaults. New and earlier-adopted repos get this behaviour on the current release.\nA requested working prototype proves the demo steps and its security and data boundaries.\nIts light review checks demo breakage, security and data loss, using `[models.light_review]`.\nA requested working prototype gets a light review that blocks only on P0 findings.\nA `Not done` against the item's own approved Done-when still blocks at any priority.\nSign-off needs proof of the prototype demo; production proof belongs to the build stories.\n\nAfter sign-off, every new story carries forward the available canvas, Proof and Decisions into\n`## Proven by the prototype`. Treat that evidence as settled. Plan and cold read only new work\nor production risks. Start from the prototype canvas or a newer design approved with the plan.\nPlan the first stories only from screens marked `Build: now`. A `Build: later` screen stays on\nthe signed canvas as the source for a later story.\n\nWhen a story needs an answer that is still open or marked `later`, ask the question then and update\nthe brief when the client replies. An open answer is context, not a blocker, in a cold read. Use a\nfake provider for an external service while its provider choice is open.\n\n## App constitution\n\nAsk for the app's currency at setup (default INR) and write its code to DEFAULT_CURRENCY in libs\u002Fshared\u002Futil\u002Fsrc\u002Fformat.ts and, in a Python app, apps\u002Fapi\u002Fapp\u002Fcore\u002Fconfig.py.\n\nDuring both halves of the interview, ask one question at a time in plain words for a person who\nmay not be technical.\n\nBefore the prototype, take the product answers from the client notes: what the app is for, who\nuses it, the records and fields it needs, the options of each choice list, and the key flows.\nWrite them in docs\u002Fproduct\u002FBRIEF.md. Record the options for each choice list with the thing it\nbelongs to. The prototype and sign-off review use the whole brief.\n\nAt the start, write docs\u002Fproduct\u002FCONSTITUTION.md with every default from Constitution defaults\nfilled in, and raise a default with the FDE only when the notes contradict it.\n\nOn a new app, check the client notes for five growth topics: the users and records in year\none and year three, heavy background work, other systems that call in or that the app calls,\nrules on where the data stays, and parts that can become their own product. Ask about a topic\nonly when the notes touch it and do not answer it, one question at a time. Write each answer\nunder ## Growth notes in the constitution. A later story reads these notes before it plans\nmodules, jobs or links.\n\nIn an app with libs\u002Fmcp or apps\u002Fapi\u002Fapp\u002Fmcp, check the client notes for tasks that people\nwill ask an agent to do again and again. When the notes describe such a task and do not list\nthem all, ask one question: \"Which tasks will people ask an agent to do again and again?\"\nWrite each task under `## Agent tasks` in the constitution as\n`- \u003Ctask>: \u003Cfeature>; inputs: \u003Cthe inputs it needs>`. With no task, write `- None`.\nAsk it again only when the person wants to change the list.\n\nIn an app whose tests run Nx's module-boundary lint, copy the fixed rules into the\nconstitution's ## Fixed rules section, and ask nothing about them.\nIn an app that has libs\u002Forganisations or apps\u002Fapi\u002Fapp\u002Forganisations, also copy the built-in lines into ## Fixed rules, and ask nothing about the defaults they answer.\n\nIn an app with libs\u002Fcore\u002Fserver\u002Fsrc\u002Fcommon\u002Frequest-log.middleware.ts or set_log_level in apps\u002Fapi\u002Fapp\u002Fcore\u002Flogging.py, also copy this line into ## Fixed rules: \"- Built in: each API request writes one log line with its method, route, status, time taken and request id, never the query string; LOG_LEVEL picks the lowest level written; password, token, secret, key and authorization values are removed from log details; Mainline sends error alerts from the error lines, so the app has no error-tracking service.\"\n\nIn an app whose .env.example has APP_COMPANIES, ask once: \"Is the app for one company, or for many customer companies?\" Write the answer under ## Defaults, set APP_COMPANIES to one or many in .env.example and in the host's settings, and ask it again only when the person wants to change it.\nWhen the answer is one company, also copy this line into ## Fixed rules: \"- Built in: APP_COMPANIES=one makes a one-company app: corepack pnpm run setup:company (uv run --no-sync python -m app.setup_company in the Python starter) makes the company and its first admin, and people join only from an admin's invite.\"\nIn an app made from the Python starter, whose tests run import-linter, copy these fixed rules into ## Fixed rules instead, and ask nothing about them:\n\n- One app split into modules: a FastAPI API on uv, with SQLAlchemy and Alembic on Postgres, and a React web app on pnpm.\n- Each module owns its tables, in its own models file.\n- Built in: each module keeps its tables in its own Postgres schema, with core tables in core; links between business modules store an indexed id without a foreign key, and links to core keep their foreign key.\n- A module uses another module only through its public service, never through its tables.\n- The tests run import-linter, so an import of another module's internal files fails them.\n- Built in: the API lists each person's waiting records with a count.\n- Built in: the API serves an MCP server at \u002Fmcp. An admin adds agent accounts with a role and a key that shows once through the Members API; the agent builds the Members screen in the client's design; agents use each feature's tools with that role's permissions, and delete and restore tools stay off until an admin turns them on for the feature.\n- Built in: each feature also offers its items, its field guide and its allowed values as MCP resources; agents get a prompt only for a task under `## Agent tasks`; the MCP server never uses elicitation or sampling.\n- Built in: every action goes through its feature's service and permission, from the screens, the API and agents; each feature's create takes a retry key; an agent that a person signs in acts as that person, and the change history records both; reports are named, typed reads in their feature's report service.\n\nIn any other app, record the\nstack, package manager and folder layout that the app already uses, and leave out ## Fixed rules.\n\nBefore the prototype plan approval, finish the app's constitution in\ndocs\u002Fproduct\u002FCONSTITUTION.md. Use the defaults in\n[Constitution defaults](fde.md#constitution-defaults), except where\n`## Answers` in the brief already gives a settled answer. Skip a defaulted question that `## Answers`\nalready answers. Ask for the `Personal data` answer at the plan approval after sign-off only\nwhen the app never declared made-up data only. Do not ask at the approval before the prototype,\nor at either approval for an app marked as made-up data only. Record the answer in `## Answers`.\n\nIf the answer is regulated, such as health or finance data, ask these questions before the first story.\nSkip a question only when the brief already has a settled answer:\n\n- In which country or region must the data stay, including backups and copies held by service providers?\n- How long must each kind of record stay, and when must the app permanently remove it?\n\nRecord the answers in the brief's `## Answers`. Add these three rules to the constitution,\nfor any stack, before the owner approves it:\n\n- Read history: record who read which record and when, through every path that reads regulated data.\n  Keep record identifiers in this history, not the record contents. Restrict access to the history.\n  Ordinary API request logs do not provide this history.\n- Data location: keep regulated data, backups and service-provider copies in the country or region from the brief.\n- Retention: apply the period from the brief to each kind of record and permanently remove old records when it ends.\n  Cover backups, copies and read history in the policy. Soft delete alone does not remove old records.\n\nThese are requirements for the app to build, not features already built into the starter.\nUse the client's answers, not a guessed country or period. Plan the work that these rules need in the first story that handles regulated data.\n\nUse this outline, and do not copy product facts from the brief into the constitution:\n\n```markdown\n# \u003CApp name> constitution\n\nThe product facts are in docs\u002Fproduct\u002FBRIEF.md.\n\n## Principles\n- Is it needed at all? Deleting beats fixing.\n- Add work only when F x H >= 2 x C. F, for the first 1,000 users: 1 rare, 2 weekly, 3 daily. H: 1 cosmetic or the person's own data, 2 wrong information or a broken step, 3 a P0. C: 1 for 20 lines or fewer with no model call or user step, 2 for up to about 150 lines or one model call or user step, 3 for more, or a new table, job, workflow or flag.\n- Choose the simplest option.\n- Rules are stated, not policed.\n\n## Defaults\n- \u003Cthe question in plain words>: \u003Cthe default or the person's answer>\n\n## Roles\n| Record type | Role | Actions |\n| --- | --- | --- |\n| \u003Ceach record type> | admin | view, create, edit, delete, restore |\n| \u003Ceach record type> | member | view, create |\n\n## Fixed rules\n- One app on pnpm and Prisma, split into modules.\n- Each module owns its tables, in its own schema file.\n- Built in: each module keeps its tables in its own Postgres schema, with core tables in core; links between business modules store an indexed id without a foreign key, and links to core keep their foreign key.\n- A module uses another module only through its public service, never through its tables.\n- The tests run Nx's module-boundary lint, so an import across modules fails them.\n- Built in: the API lists each person's waiting records with a count.\n- Built in: each account belongs to one organisation, as an admin or a member, and every query is scoped to that organisation.\n- Built in: admins invite people by email and remove members, which signs them out at once; members cannot invite, remove people or change roles.\n- Built in: dates and times are stored in UTC and shown in the person's time zone, and money is stored as an exact decimal with its currency code; the helpers in @app\u002Fshared-util format them.\n- Built in: each table has a CSV export, admin actions write change history, and records are soft deleted.\n- Built in: the API serves an MCP server at \u002Fmcp. An admin adds agent accounts with a role and a key that shows once through the Members API; the agent builds the Members screen in the client's design; agents use each feature's tools with that role's permissions, and delete and restore tools stay off until an admin turns them on for the feature.\n- Built in: each feature also offers its items, its field guide and its allowed values as MCP resources; agents get a prompt only for a task under `## Agent tasks`; the MCP server never uses elicitation or sampling.\n- Built in: every action goes through its feature's service and permission, from the screens, the API and agents; each feature's create takes a retry key; an agent that a person signs in acts as that person, and the change history records both; reports are named, typed reads in their feature's report service.\n- Built in: each UI or API crash writes one error report to the logs.\n\n## Growth notes\n- \u003Cthe growth topic>: \u003Cthe answer from the client notes or the person>\n\n## Agent tasks\n- \u003Cthe task>: \u003Cfeature>; inputs: \u003Cthe inputs it needs>, or None\n\n## Architecture choices\n- \u003Cthe choice>: \u003Cits reason, in one plain line>\n```\n\nCopy `## Principles` into every app's constitution word for word, and ask nothing about it. Do not\nadd it to an approved constitution: the principles reach that app through its briefs, cold reads\nand reviews.\n\nMake each architecture choice yourself, from the answers and the code, and write it as one plain\nline with its reason. Record the stack that the code already uses. For\nparts with no code, use the stack default: an Nx workspace with React (Vite and React Router),\nNestJS and Postgres. Use a FastAPI backend only when the person asks for it. A FastAPI backend starts from\nforge init --starter python.\nDraft the Roles table from the client notes. Where the notes say nothing, admins have all five\nactions and members view and create. Keep each feature's role mapping in one place.\n\nFollow the database skill (.codex\u002Fskills\u002Fdatabase\u002FSKILL.md) for new tables and extensions.\nFollow the agents skill (.codex\u002Fskills\u002Fagents\u002FSKILL.md) for any agent, chat, voice or in-app assistant work. When a part adds one, the plan names the skill's sections that apply and the model service it uses.\nAn extension outside its allowed list needs the owner's OK for this client. Ask the owner,\nthen write `- Postgres extension \u003Cname>: the owner allows it on \u003Cdate> (\u003Cwhy>)` under\nArchitecture choices in `docs\u002Fproduct\u002FCONSTITUTION.md`.\n\nA live app answers both halves at adoption: ask only what the code cannot answer. Record the stack\nthe code already uses.\n\nThe owner approves the roles, architecture choices and defaults together in the prototype plan,\nwith `forge decision accept prototype-plan --by \"\u003Cname>\"`. No separate constitution or\narchitecture decision approval is needed. Fill any missing plan details before running accept again.\nExisting accepted canvas, build and constitution approvals stay valid and are never asked again.\nAn existing app past sign-off without constitution approval gets the plan approval next, without\na canvas or demo steps, and with the personal-data question unless it declared made-up data only.\nNo new story starts until the owner approves the prototype plan. Existing stories, parts and fixes\ncontinue. When `forge next` has a worktree cleanup step, finish cleanup first, then follow its\nplan step. A review or cold read in an app with an\napproved constitution checks work against its text; a conflict is a P1 finding or note. A change\nto documents only keeps its light review, which holds only P0 findings.\nA full review after sign-off holds work that goes against the Roles table and architecture choices.\nThe light review of a prototype fix holds only serious problems (P0).\n\n## Adopt a live app\n\nAn app already in production joins Forge through one fix and one pull request the human merges.\nAdopting changes no app code.\n\nWhen initializing an existing repo, answer \"Does this repo run GitHub Actions?\" from the repo's\nsettings: `gh api repos\u002F{owner}\u002F{repo}\u002Factions\u002Fpermissions` gives `enabled`. Ask the human only\nif the settings do not answer it. Pass\n`--actions yes` or `--actions no`; omit `--checks` when the answer is no.\nWith Actions, adoption adds `tests` and `forge-pr-check` to the named checks.\nFor an earlier-adopted repo with only `forge-pr-check` and no explicit `test_place`,\ndoctor warns that close runs tests on this machine. Set `checks = [\"forge-pr-check\", \"tests\"]`\nin a fix whose Done-when names `forge.toml`, then run `forge sync`. Doctor and sync\nkeep existing settings until that fix changes them. An explicit `test_place` keeps its value.\n\n1. Follow [App constitution](#app-constitution) for both interview halves together. Ask only what\n   the code cannot answer, and record the stack the code already uses.\n2. Write the codebase report in `docs\u002Fcontext\u002Fcodebase.md`: the stack and how to run it; the tests\n   and the areas they don't cover; the CI workflows and the checks branch protection requires; what\n   a merge triggers; branch rules and reviewers; the hook tools already in use; secret files and\n   variables by name only, never their values; where personal data lives; the migration tool; and\n   the danger zones.\n3. Mark as danger zones the most-changed, most-reverted and most-hotfixed files in git history. A\n   story that touches one names it under Risks.\n4. List the open pull requests and branches in the report, so a story's plan avoids colliding with\n   a teammate's work.\n5. Link or import the repo's existing decision records and design docs as Forge decisions:\n   `forge decision new \u003Cslug>`, the original linked or copied unchanged under the line\n   `Imported from \u003Cpath>.` Don't rewrite them.\n6. Read the review comments of about the last 100 merged pull requests. Each rule reviewers enforce\n   repeatedly becomes a House rule citing the pull requests it came from.\n7. Ask the human three questions, one at a time, with options: who approves stories, who merges,\n   and what must never be touched.\n8. Write the answers and the reviewers' rules under `## House rules` in AGENTS.md, outside Forge's\n   block. The repo's own rules win where they differ from Forge's default-stack conventions.\n   A rule every review must follow, such as which tests a kind of change needs, goes under\n   `## Review rules` in AGENTS.md, outside Forge's block: every review reads that section from the\n   default branch and follows it.\n   A repo keeps its rules in AGENTS.md only: forge sync moves a CLAUDE.md's own lines into\n   AGENTS.md, outside Forge's block, and deletes CLAUDE.md, since Claude Code reads AGENTS.md itself.\n9. Propose a `fast_test` for the repo: its own test command, keeping its configuration and setup,\n   with the test tool's built-in changed-only option and `{base}` (for example\n   `vitest --changed {base}` or `jest --changedSince {base}`). Once the human agrees, set it in\n   `forge.toml` through a fix. For pytest repos, propose\n   `forge test --pytest {base}`: Forge runs this picker outside the project, keeping the repo's\n   full `test` command and narrows pytest to changed and module-related test files. Use the\n   repo's Python runner for `test`; keep Forge outside the project, and keep lint and other\n   checks in `test`.\n   During adoption review, name the repo's cheap whole-repo checks that read shared files without\n   imports, such as rule checks, file inventories and configuration checks: changed-only selection\n   can miss them. Include their pytest files or node IDs in Python `always_test`, or their commands\n   beside changed-test selection in TypeScript `fast_test`, through the normal settings fix after\n   the human agrees. Keep `test` as the full suite. New repos get this review at setup; existing\n   adopted repos get this guidance on upgrade and sync, with settings changed only through that fix.\n   If the app has Playwright browser tests, its close command (`fast_test`, else `test`) should run\n   them; if it does not, the rendered check runs only in the full test run. A worker who finds this\n   says so in its last message.\n   Forge writes no `fast_test` by itself.\n   Client CI caches npm downloads and the default pnpm stores by the root lockfile and enables\n   uv's package cache. It keeps the app's own pnpm setup and version.\n   New starter Dockerfiles collect all package manifests in a separate stage, then install from\n   those manifests and frozen lockfiles before the build stage copies source. The dependency\n   layer supports added or removed workspace packages and keeps `.npmrc` outside the image.\n   Sync updates existing repos' workflows, but\n   keeps app Dockerfiles unchanged. Update an existing app's Dockerfile through its own fix.\n   Cache packages and image layers only, never a test database. The generated workflow has\n   no image-build job; image-layer reuse needs the app's existing image builder and its cache.\n\n   New repos leave `fast_test` unset, except a new starter, whose init writes one for its own script\n   when it ships `scripts\u002Faffected.mjs`.\n   Its init keeps `test = \"node scripts\u002Ftest.mjs\"` for full runs and writes\n   `fast_test = \"node scripts\u002Ftest.mjs {base}\"`.\n   The Python starter accepts a base in `node scripts\u002Ftest.mjs \u003Cbase>`; `--list` prints commands\n   without running them. API changes select API types, ruff, mypy, import checks and all API\n   tests, since HTTP tests have no import graph. Web and library changes select ESLint, the\n   TypeScript build, changed Vitest tests and the browser suite. Shared configuration or no\n   base runs everything. Existing apps keep their scripts on upgrade and sync; ask before\n   adding this selection to them.\n   The TypeScript starter uses Nx to name affected\n   parts and run their lint, typecheck and tests; `--list \u003Cbase>` prints the commands.\n   New test files in an affected library also run when it has no Nx test target.\n   If close cannot read a check name from GitHub, it reports the missing name.\n   Retry `forge close \u003Citem>` after GitHub returns check data.\n   Existing apps keep their scripts and settings on upgrade and sync. Ask before adding these\n   targets and scripts to an existing app or changing its `forge.toml`.\n   When `fast_test` is missing, `forge doctor` and `forge upgrade` print one suggested\n   `fast_test` line: Python gets `forge test --pytest {base}`; vitest and jest keep the\n   repo's own install and runner, adding `--changed {base}` or `--changedSince {base}`\n   and `--passWithNoTests`. Mixed repos get one part per kind. The Python picker skips\n   the JavaScript test runners, checks and installation steps, including when shared Python\n   inputs require all Python tests; the suggested Node part installs first and runs its checks\n   once. Forge's generated optional-package wrapper is kept around the Node suggestion.\n   `npm exec` keeps its own options before `--` and its runner after it so npm forwards\n   the changed-file flags. Go, Rust, Java, .NET\n   and Ruby get no suggestion. Check the suggestion against the repo's setup before\n   agreeing to it; other shell flows need the agent to adapt the command.\n   For a combined script, `forge doctor`, `forge upgrade` and adoption print one line\n   that names the script and suggest no command; you write the command. Keep every step the\n   tests need, in the order the script runs them, including any step that runs after the\n   tests. Limit only the unit-test steps to the changed code with the runner's own option and\n   `{base}`, for example `vitest run --changed {base}` or `jest --changedSince {base}`; npm\n   passes `--` options only to the last command of a script. Keep the browser-test steps,\n   because the pull request check runs `fast_test` too. Keep the setup a script runs before or\n   after itself (`pre` and `post` scripts). Run the command once with `{base}` set to the\n   default branch. Tell the owner that changed-only selection follows imports, so API tests\n   that reach the code only through a URL run only in the full test run. Then ask the owner,\n   and set it in `forge.toml` through a fix. Forge never changes the setting itself.\n   A fast test that runs in pull request CI must include the tests that import the changed source\n   files, split across the test groups: for example `vitest related`, `vitest run --changed {base}`,\n   `jest --findRelatedTests` or `jest --changedSince {base}`, or the Python picker.\n   A script that runs only the changed test files must not be the pull request check: unchanged\n   tests that import a changed source file are skipped, fail on the main branch and block every\n   other close.\n   A local fast test may stay smaller, because a central file can select hundreds of tests.\n   A test that reaches the code over HTTP or by running a program is caught only by the full run,\n   which stays nightly.\n\n10. When the repo has a Dockerfile, write `services.toml` as the deploy paragraph at the top\n    of this guide says, get the human's confirmation, and add it to the adoption fix.\n\nOn a live app, every story and fix also follows these:\n\n- Before changing code no test covers, first add a test that pins today's behaviour.\n- Migrations work with the previous release still running: expand, then contract. Add a new table or column before code uses it. Keep the old table or column for two releases, and remove it only when no live release uses it.\n- Close checks only migrations added by the change, and skips the check in a prototype repo with no live release. A migration that drops or renames a table or column, or changes a column's type, needs a `-- Contract: ...` line in Prisma SQL or a `# Contract: ...` line in Alembic Python. The line explains why the live release no longer reads the table or column; close allows it when the line is present, and review reads the explanation.\n- A change users would notice ships behind the team's own feature flags.\n- No production credentials on this machine; never ask for them.\n\n## Upgrade Forge\n\nOn the default branch, `forge doctor --fix` commits its dated Forge-files fix with a proof list\nof its Done-when and the files refreshed by the pinned release's sync. Run `forge close \u003Cname>`\nas doctor suggests; close starts tests alongside the first review and reports both results. New repos get this\nat setup, and existing repos get it when they move to this release.\n\nWhen `forge next` says a newer Forge release is out, offer the upgrade to the owner.\nNever upgrade without the owner's agreement. The check runs at most once per UTC day,\nshares its cache across worktrees, and stays silent when GitHub cannot be reached.\n\nAn upgrade is one fix. Its pull request carries the new version and every file Forge keeps in the\nrepo, rewritten by that version. One command does all of it.\nClose checks the fix that `forge upgrade` made mechanically instead of asking a model when it changes only\nthe value of forge.toml's `version` line and files exactly as that version's sync writes them (content and\nmode). Any other change, or an earlier review of that fix that still blocks, gets the normal model review.\nUse `forge upgrade \u003Crelease>` directly, not `forge fix start`: upgrade creates its own fix.\n`forge next` gives `Next: forge upgrade \u003Crelease>` when its release check finds a newer release\nthan the repo pins. If upgrade refuses outside the default branch, move to the main checkout.\nDrop the current fix only if Forge started it and the owner agrees. Then switch to the default\nbranch and run `forge upgrade \u003Crelease>`. The refusal gives these steps in plain words.\nIf the upgrade's fix name belongs to a dropped or restored fix with no other work, upgrade\nrestores its folder or continues in it. If that fix has other work, the refusal names the\ncommand to restore or close it. For uncommitted work, it gives the stash command to save\nthose edits before the upgrade. It preserves active fixes that were never dropped and names\ntheir work command. Keep that work and complete the named step first.\n\nBefore starting another upgrade, it removes an earlier upgrade's leftover worktree and local\nbranch when its pull request has merged and the checkout has no unpushed or uncommitted work.\nAn open upgrade or local work still refuses and stays in place. Ignored configuration and data\nalso stay in place; only recognized cache directories may be discarded.\n\n1. Ask which release to move to, recommending the newest.\n2. If the target release differs from the release on PATH, wait until no Forge runs are in\n   progress anywhere on the machine. An install during a close can mix two releases.\n   `forge upgrade` names those runs and asks you to wait. If the target release is already on\n   PATH, upgrade skips the install and continues while other runs remain in progress.\n3. Run `forge upgrade \u003Crelease>` in the main checkout, on the default branch. It installs the\n   release, has that release refresh Forge's files in the fix, commits them and closes the fix.\n   Its commit includes the upgrade's proof list; close reports tests and review results together.\n   It changes only the version in `forge.toml`.\n4. When it refuses, follow its `Next:` line. Running it again picks up where it stopped.\n5. Close's last line says who merges: the human, or `forge merge \u003Cfix>` when the repo allows it.\n\nClose runs the time-story backfill as part of the upgrade, with nothing extra to type. It\nrebuilds open items and items merged in the last six weeks from git and GitHub, marks them\n\"rebuilt from history\", and leaves spans without evidence unknown. If GitHub cannot be reached,\nthe next close on this machine retries the backfill. The agent then opens the board and reports\nwhat is still missing.\n\nA repo pinned to a release without `forge upgrade` runs it once through uv:\n`uvx --from git+https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge@\u003Crelease> forge upgrade \u003Crelease>`.\nUntil the upgrade merges, the default branch keeps working with the new release installed.\nAfter it merges, older branches keep their pinned release and its rules. When Forge says the\ndefault branch already pins the installed release, merge `origin\u002F\u003Cdefault>` into your branch to\nuse that release and its rules.\nIf close stops because the branch pins an older release than the default branch, run\n`forge work \u003Citem>` to merge the default branch. Then run `forge close \u003Citem>` again.\n\n## Refresh dependencies\n\nNew starter apps use Playwright 1.64.0, which supports Ubuntu 24.04 and 26.04.\nExisting apps keep their own `package.json` and lockfile on upgrade and sync.\nWhen the owner asks for the same upgrade in a pnpm app, set `@playwright\u002Ftest` and\nany `pnpm.overrides.playwright-core` pin to `1.64.0`, then run\n`corepack pnpm install --lockfile-only` and `corepack pnpm install --frozen-lockfile`.\nKeep `@axe-core\u002Fplaywright` unless it needs an update for compatibility. Check any\nPlaywright Docker image tag matches the package version, then run the app's browser tests.\n\nNew Python starter apps keep the API contract file (`libs\u002Fshared\u002Fapi-types\u002Fopenapi.json`) and its types (`libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`) out of git. Existing apps keep theirs on upgrade and sync; until an app has moved over, a part that changes the API lists both files in its scope as today, so Forge still sees that those parts change the same files.\n\nWhen you write the next plan or fix for a Python app and `git ls-files` lists one or both of those paths, offer the owner the move-over fix in one line, before more API parts.\nOn a yes, run `forge start` in the main checkout, on the default branch, not in a story, part or fix checkout: a fix started in one of those stacks on that item and cannot merge before it.\nThe fix changes six files (`.gitignore`, `package.json`, `scripts\u002Ftest.mjs`, `scripts\u002Faffected.mjs` and the two removed generated files), one over the five-code-file limit of a fix, so before the worker starts, run `forge fix allow-large \"Move the API contract and its types out of git\"` in the new fix's folder, as for any fix that corrects one kind of problem in every place it appears. The steps:\n\n1. Run `git rm --cached --ignore-unmatch libs\u002Fshared\u002Fapi-types\u002Fopenapi.json libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`. This removes only these two files from git's index, whichever of them is still tracked, and keeps them on disk. It does not stop when one of them is already untracked. Do not clean the work tree and use no path pattern.\n2. Add both paths to `.gitignore`.\n3. Start the `typecheck` script in `package.json` with `corepack pnpm run api-types && `.\n4. If `scripts\u002Ftest.mjs` picks parts, run `api-types` before any `tsc` call, and let a change under `apps\u002Fapi\u002Fapp\u002F` select the web part too, as the new starter does.\n5. Remove the two paths from the scope of planned parts. Leave their `After` links as they are: parts that add a module still share other files, such as `apps\u002Fapi\u002Fapp\u002Fmain.py`.\n6. Delete these two files on disk, by their two full paths and nothing else (a file that is not there needs nothing). This is safe: `api-types` writes both files from the API code every time, and nothing else is in them. Then run the repo's test command. It must pass and must make both files again. Forge's local test runs in this checkout, so this step is what proves that a fresh copy works.\n\nA branch that changed one or both files gets a modify\u002Fdelete conflict when it merges the default branch. Run `git rm --cached --ignore-unmatch libs\u002Fshared\u002Fapi-types\u002Fopenapi.json libs\u002Fshared\u002Fapi-types\u002Fsrc\u002Fapi-types.ts`: it keeps the removal for whichever of the two paths is still in the index, and does not stop on a path that is already gone. Then run its tests.\n\nOnce in each new or existing repo, turn on GitHub's Dependabot security alerts with\n`gh api --method PUT repos\u002F{owner}\u002F{repo}\u002Fvulnerability-alerts`.\nDependabot security updates stay off: add no Dependabot update pull requests and no\n`.github\u002Fdependabot.yml`. This is a repository setting, not a generated file.\n\nWhen the default branch's lockfiles and Dockerfiles are over a week old by git log, `forge next`\nlists a refresh fix with its `forge fix start` command; start it like any ready item. In the\nfix's folder:\n\n1. Update dependencies within the ranges the manifests allow (`npm update`, `pnpm update`,\n   `yarn upgrade` (Yarn 1), `yarn up -R '*' '@*\u002F*'` (Yarn 3+), `bun update`, `uv lock --upgrade`, `poetry update`, `cargo update`,\n   `go get -u=patch .\u002F... && go mod tidy`); never raise a range.\n   For Yarn 2, remove only `yarn.lock`, then run `yarn install --no-immutable`;\n   keep every `package.json` unchanged. This re-resolves the whole dependency tree within its\n   declared ranges; recursive `yarn up -R` starts in Yarn 3.\n2. Pull each Dockerfile's base image at its current tag, or move it to the newest patch of the\n   same tag, and rebuild the image.\n3. Without an explicit `test_place`, use CI only if `checks` names a check other than\n   `forge-pr-check`, which runs no app tests. Otherwise close runs tests locally.\n   An explicit choice keeps its value. New and earlier-adopted repos get this default on upgrade.\n   Keep `test` as the full suite for the nightly run and change selection in `fast_test`.\n   Doctor warns about a `test` that looks like change selection, without failing the check.\n   Follow the repo's `test_place`: in local mode, run the related tests through\n   `forge test`; in CI mode, do not run them here. Commit, then `forge close \u003Cfix>`.\n\n## Planning a story\n\nFollow the agents skill (.codex\u002Fskills\u002Fagents\u002FSKILL.md) for any agent, chat, voice or in-app assistant work. When a part adds one, the plan names the skill's sections that apply and the model service it uses.\n\nA cold read passes when no note is at the bar (blocking): the plan is wrong, contradicts itself,\nor a builder could not act on it. Readers prefix numbered findings with `Blocking:` or\n`Advisory:`. Advisory and below-bar notes need no disposition from you or another round; unmarked\nfindings block in round one. A cold read stops at the round limit (the repo's setting, two by default) when notes below P0 are still\nopen, or when P0 notes are open in two rounds in a row.\nNew repos get this rule on init; existing repos get it on upgrade plus sync.\n\nStart with `forge start \"\u003Ctheir words>\"`. A spec is optional: when Forge chooses a plan, its branch adds\nits missing roadmap entry, so no separate roadmap fix, spec read or spec confirmation is needed.\nThe entry travels with its tasks to the default branch, including tasks waiting on another story.\nWrite the problem, today's workaround and its cost in the plan's Why; the title seeds that\nsection. Run the story's one cold-read loop, then get its one approval. A story already linked\nto a confirmed spec keeps that link and follows the same story read and approval as before.\nPromotion keeps the fix's existing roadmap entry: before using `--from-fix`, put that entry\non the fix's branch and commit it. Promotion adds no entry or separate roadmap copy.\nForge refuses promotion while the fix's roadmap has uncommitted changes.\nNew repos get this guide at init; existing repos get it after upgrading Forge and running sync.\n\nEnd each item of a plan's What changes for you with its source in plain words, such as\n`(Source: the client's note on late orders, 12 Oct)`, or with the sourced item that needs it,\nsuch as `(Needed by: the Customers screen)`. A source is a client note in\n`docs\u002Fproduct\u002FDISCOVERY.md`, an answer in `docs\u002Fproduct\u002FBRIEF.md`, a decision in\n`docs\u002Fdecisions\u002F`, a screen marked Build now at sign-off, a fixed rule in\n`docs\u002Fproduct\u002FCONSTITUTION.md`, or the human's own request with its date. An item that has a\nsource needs what it cannot work without: its validation, an error or empty state, an index for a\nfilter that a list shows, or accessibility basics. Name each screen, field, endpoint, tool and\nsetting that the plan adds in one of these items. Plan nothing that a source asks for but the\nwork does not need: Is it needed at all? Deleting beats fixing. The canvas can show\nlater screens; plan only the screens marked Build now. The starter's fixed rules are the base:\nplan nothing beyond them just in case.\n\nReaders should return plain `No findings.` alone when a read finds nothing. `forge read` also\naccepts replies with at least one no-findings line when every numbered or bulleted item says\nthere are no findings, ignoring other note lines. A numbered or bulleted blocking finding in round one still\nneeds a disposition and another round.\n\nHandle cold-read rounds yourself: amend the plan and write dispositions.\nOnce a read is clean, before Plan Mode approval, list the choices you made alone answering\nnotes in all rounds: each amendment that picked a behaviour, a limit, a refusal or a scope cut.\nGrill the human one question at a time, with your recommendation first.\nRecord each answer in the plan, then ask for approval. Plain factual corrections need no question.\n\nUse one framing line before showing a story in Plan Mode:\n`Approving: \u003Ctitle>, \u003Cn> parts, \u003Crisks>`.\n\nThe owner approves only the top of the story doc. Show it from its title down to\n`## For the builders`, unchanged, in Plan Mode and exit Plan Mode with that part as the plan; in\nCodex, show the same part, then ask the approval question `forge next` gives. A doc with no\n`## For the builders` heading is shown whole. The approval binds \"What changes for you\" and\n\"Done when\", so tightening anything below `## For the builders` needs no new approval, while\nchanging a result or \"What changes for you\" does. Once a round of cold read has passed, an edit only\nbelow `## For the builders` needs no new round either, and `forge read` refuses to run one; an\nedit above it does. From round two, for stories, specs and decisions alike, the reader checks\nwhether each earlier finding is closed and raises anything new only for a P0 that happens in\nnormal use. A round-one fix that breaks the main path counts as a P0.\nBlank question replies count as unanswered. The approval hook's pin notice appears only after\nrecording succeeds; if the repo pins a newer release, install that pinned release.\n\n- Done when: a few results the client or their user can observe, each answering the plan's Why\n  and, when linked to a spec, tracing to its behaviour or success measure.\n  Each item is one bold plain sentence and nothing more, with no code names, file paths or\n  test names. \"Code exists\" is not a result.\n- Keep new story plans to at most six Done when items. `forge read` refuses larger plans in one\n  line asking you to split them into smaller stories; already approved larger stories stay as they are.\n- Each item's evidence, edge cases and the test or check that proves it go under the same number in\n  `### Done-when details`, the first section under `## For the builders`. Workers and reviewers\n  get the entries of the items their task covers. An item with nothing to add has no entry.\n- Done-when or Notes names supported inputs and exclusions. A dismissal that narrows those\n  inputs needs an amendment to the story doc before the review can close.\n- Put Risks right after Done when, then the `## For the builders` heading, so the owner's\n  sections come first and everything for the agents sits below.\n- Tasks: before writing each task's Scope, search the code for the files it needs. The plan check\n  refuses two tasks whose Scope paths share a prefix up to the first wildcard, unless one waits\n  for the other through After, directly or through another task; the refusal names both tasks.\n  Paths with a segment named `tests`, `test`, `__tests__` or `spec` do not cause Scope overlaps.\n  Parts can share these test paths without an After link. Explicit After links still apply.\n  A refusal caused by a Scope overlap names the shared path, or the glob when its literal prefix is empty.\n  Put a shared production file with its names and stubs in the first task that needs it. Tasks that need it\n  wait for that task through After, then own only their files. Each row names the Done-when items\n  it Covers, its Scope (the paths it may change) and its Tests. A task that covers nothing is cut;\n  work wanted later goes to Notes, or the linked spec's Out of scope.\n  Keep a file that a script can make at build time (a generated API contract or the types made from\n  it) out of the repo and out of every Scope, when nobody needs it stored. When the repo keeps such a\n  file on purpose, give its change to one first part that the other parts wait for. Three or more\n  parts that list the same file make the plan read print a `Shared file:` note. The `Shared file:` note\n  is advice: it does not stop the read or the approval, and it looks only at the plan being read.\n- The Tests column names one end-to-end case per Done-when item that changes runtime behaviour,\n  and none for settings, docs, deletions or test-only items: the check the item names proves those.\n- Keep tasks small: at most three Done-when items and about 400 changed lines each, counting\n  additions and removals outside tests, Markdown files, docs\u002F, plans\u002F and .factory\u002F.\n  Forge prints the rule when a part starts and close warns when a part is larger; split large parts when you plan them.\n- Keep each part's builder notes to its goal, files and one test per rule.\n- When a plan adds a new feature to a TypeScript or Python starter app, name its plural,\n  singular and fields in the builder notes, and give the worker's first-step command:\n  `forge task feature \u003Cplural> --one \u003Csingular> --field '\u003Cfield>:\u003Ckind>'`.\n  Quote every `--field` value with single quotes, including simple fields. For example:\n\n```sh\nforge task feature clients --one client --field 'name:text'\nforge task feature jobs --one job --field 'name:text' --field 'description?:long-text' --field 'status:status(planned|active|done)' --field 'client?:link(clients)' --field 'hoursBudget?:number' --field 'budget?:money' --field 'dueDate?:date' --field 'contactEmail?:email' --field 'billable:yes-no'\n```\n\n  The command builds the feature's API, agent tools, change history and tests. It writes no pages;\n  the agent builds the screens for APIs that people use, in the client's design.\n  A feature needs a text field for its name. The nine kinds are text, long-text, number, money,\n  date, yes-no, email, status and link; `?` makes a field optional. Add other kinds by hand.\n  The worker runs the command; the human makes no technical choices and never types it.\n  Keep the generated organisation checks, change history and five permissions. If the plan\n  changes the role permissions, name that change for the worker to make in the feature's\n  permission mapping. A non-starter or older starter missing the required parts gets a refusal\n  naming what is missing; build that feature by hand in its existing layout.\n- A plan that removes a feature names its plural and follows \"Removing a feature\" in the Prototype\n  section: the check, the fixed list, then the check again and the app's tests.\n- In a starter app, each feature's agent tools are in its one tools file\n  (`libs\u002F\u003Cplural>\u002Fserver\u002Fsrc\u002F\u003Cplural>.tools.ts`, Python `apps\u002Fapi\u002Fapp\u002F\u003Cplural>\u002Ftools.py`),\n  and the feature command writes it. When a story adds a route that agents need, the part\n  names the hand-made tool, its name in the form `\u003Cfeature>_\u003Cverb>`, its permission and its\n  annotations. When the owner wants a default tool hidden, the part says so.\n  Every generated or hand-made tool follows these rules:\n  - Names start with the feature. A description says what the tool does, when to use it and\n    how it relates to the other tools, as for a new user.\n  - Arguments use snake-case names, with `\u003Csingular>_id` for an id. Strict input and output\n    schemas come from the feature's own schemas.\n  - Use a search tool, not a list tool: `query`, the feature's filters, `limit` (20 by default,\n    up to 100) and `cursor`. Return `next_cursor`, how many match in all (more than 10,000\n    when capped), and how to narrow the search.\n  - Return useful fields with names beside ids, `response_format` set to `concise` by default\n    and `detailed` on request, `structuredContent` with an `outputSchema`, and a short summary.\n  - Return failures as tool results with `isError`, a plain message with the fix and an example\n    where useful, `kind`, `retryable` and `retry_after_seconds`. Never return HTTP statuses or\n    traces for tool failures; protocol errors are only for an unknown tool or malformed request.\n    A missing or revoked agent key is an HTTP 401 before any tool call.\n  - A create accepts `idempotency_key`; update, delete and restore are safe to run again.\n  - Set all four annotations: `readOnlyHint`, `destructiveHint`, `idempotentHint` and\n    `openWorldHint`, to describe what the tool does.\n  - Limit each call to 10 seconds, then return a retryable `unavailable` error. Limit each key\n    to 120 calls a minute per running API copy. Both errors say how many seconds to wait.\n    Work can still finish after the time limit, so a create's retry uses the same key.\n  - Keep the contract case `every tool has a description, annotations, schemas and the error\n    shape` passing for every tool, including tools added by hand.\n  Only starter apps get the MCP server. Upgrade and sync deliver this guidance without app\n  files or a `services.toml` change. In an older starter without MCP support, the feature\n  command builds the feature without tools and says so.\n- When a part adds a create or a send, pay or notify action, it says that the action takes a\n  retry key. When it adds a report, it names the report, its result fields and their units.\n  When it lets a person sign an agent in, the agent acts as that person, and the part names\n  the agent's `viaAgent` text.\n- Each feature's resources come from its tools file's `defineFeatureTools` and need no code.\n  When a story builds or changes a feature that a task under `## Agent tasks` names, the part\n  names its prompt: the name in the form `\u003Cfeature>_\u003Cverb>`, its inputs and its permission.\n  Write no other prompt. Add no elicitation and never use sampling.\n- Shared seams first: when two tasks share a function, field, file format or command, the first\n  task pins it. It commits the shared names and stubs plus one test that crosses both sides, and\n  the tasks that use it list it under After.\n- Aim for parallel work: split tasks so each owns its files. A line several tasks would edit (a\n  command-table row, a guide list or a registry) goes to one task, or to a small last wiring\n  task. Use After only when a task needs another task's code.\n- After names this story's tasks by ID; name another story's task as KEY\u002FTASK (for example\n  TURN-1\u002FT4). `forge next` and `forge task start` hold the task until that task's pull request merges.\n- End the Tasks section with its one `New moving parts:` line (see Build simple).\n- Risks names every one-way step: deleting data, a destructive migration, a new vendor.\n- Use the stack already in the repo. Ask the human only when options differ in cost, lock-in or\n  reversibility. Replacing behaviour deletes the old path in the same story.\n\n**The roadmap.** Order stories by value, not by layer. The first story is the smallest slice, end\nto end and usable by the client; it brings only the setup, sign-in and data it needs. No\nsetup-only, platform or \"foundation\" stories. Cut a story that answers no problem in its Why;\nwhen linked to a spec, it must also serve that spec's behaviour.\n\n`forge next` shows this release's running builder rounds against this machine's builder places as `Builds running: N of M`.\nStart every task and fix `forge next` lists as ready at once, and close each as its worker\nfinishes. One machine runs work rounds on half its available cores (at least one place),\nacross all its repos; the rest wait in line. Reads and reviews take no agent place.\nOn GitHub Actions (`GITHUB_ACTIONS=true`), tests use all available runner cores,\nwithout reserving cores for agents or other runner jobs. Laptops keep their existing share.\nBuilders lend their places during test commands and wait for admission again before continuing.\nReturning builders and failed-test repairs go before new builds. New builds pause above twice\nthe test lane's place count of waiting test items and resume at that count or below.\nEvery run also waits while load per\ncore is 1.5 or more, including when external jobs cause the load, or free memory is below its floor.\nBusy local CI jobs reduce the available budget until they finish. Within the remaining work, items that other planned work waits on go\nfirst, first-come within each group; runs print their place and why when they start waiting and\neach time it changes. Running agents keep their places except during test commands.\nA run that dies frees its place once its agent ends. A waiting\nrun is working as meant: keep watching it. When a fix changed a story's plan on the default branch, `forge next` and `forge task start` say\nso with the command that merges it into the story branch; run it, then carry on. Forge compares\ncontent history, never commit dates: an older copy on the default branch does not block a start.\nWhen only the story doc differs, `forge task start` merges the default branch into the clean\nstory branch itself and says so; conflicting edits still need the printed merge command.\nWhen a story pins an older Forge release than the fetched default branch, `forge task start`\nfirst merges that default branch into the clean story branch so the task uses the upgraded\nrelease and rules. Resolve any merge conflicts in the named story folder, commit the merge,\nthen retry task start. Matching release pins need no upgrade merge.\nThis also works from an older story checkout or a stale default checkout: task start handles\nthe upgrade before Forge can forward the command to the checkout's older release.\n`forge next` names the unmerged item a part waits on for overlapping files, including another\nstory's work, using the same overlap rule as `forge task start`.\nFor open fixes and started parts, `forge next` also compares each branch's changed files\nwith its merge base on the default branch. It names each pair that shares files, lists up to\nthree shared files, and says \"merge one first\". It ignores `.factory\u002F`, `plans\u002F` and\n`.test_durations`. This advice does not block start, close or merge. New and upgraded repos\nget this advice on this release. `forge sync` updates the guide in existing repos.\nThe comparison includes the old and new paths of a renamed file. It skips branches that\nthe default branch contains, and fixes whose records are already on the default branch.\n`forge next` prints all overlap advice on separate lines after its next state. Its next command and step stay the same.\n`forge next` lists a part only when `forge task start` would accept it, and names the reason when it would not.\n\n## Cold read findings\n\n**Settled findings stay settled.** Readers and reviewers receive all earlier rounds' notes,\nanswers and fixed or dismissed findings, including the coordinator's recorded work notes.\nForge ignores repeats of disposed cold-read text or a fixed review title and file; they cannot\nblock or start another round. A dismissed finding stays dismissed while the line its `file:line`\ncites is unchanged, even when it moves; once that line changes, a repeat of it blocks again and\nneeds a fix or a new dismissal. A new defect needs distinct text and new evidence.\nHuman acceptance still expires when the accepted version changes. New repos get this on init;\nexisting repos, including earlier adopted ones, get it on upgrade and sync.\n\n- `Unproven: item \u003Cn>: \u003Ccase>` or `Trap: \u003Ctrap>: item \u003Cn>`: add the case to that Done-when item\n  and its test to the Tests cell of the task that owns it. Never resolve one only in Notes.\n- `Not needed: \u003Cwhat>` on a large addition: name the item's source or the sourced item that\n  needs it, or cut the addition and add one line for it to `plans\u002Fideas.md`. On a small addition it is advice: act on it only when\n  that is cheap.\n- A finding inside the cold read's \"What counts\" boundary is cut (fix the doc) or deferred, never\n  kept as unnecessary. `keep` only a finding outside the boundary or factually wrong, and give\n  the reason as the Leave out line it falls under, the Raise line it lacks, the cited fact that\n  disproves it, or the human's `Decided:` line.\n- `Disputed keep \u003Cn>: \u003Cwhy>`: the reader still disagrees with a finding you kept. Put it to the\n  human as one question with options, record the answer in the doc's Notes as\n  `Decided: \u003Cfinding>: \u003Canswer> (owner, \u003Cdate>)`, and give both the kept finding and the disputed\n  one the disposition `keep` citing that line.\n\n**Learn the traps.** Before closing the story's last task, look back at the story's\nreview rounds. For each kind of finding the plan missed that cost two or more fix rounds or hit\ntwo or more tasks, add one trap line to the `## Known traps` section of the repo's AGENTS.md,\noutside Forge's block, in the last task's worktree; create the section when it is missing.\nCommit it before closing the task. Every cold read checks plans against that section.\nCount the story's items' entries per file in the spotted records on the default branch, open or\ndone; each file with three or more, or one a task was stopped on (its state's `stop`), gets one\ntrap line naming the file and the kind of problem that kept coming back.\n\n## Steering a Codex worker\n\nBefore `forge work` can start a worker, resolve any unfinished merge in the item's checkout\nand commit the merge, then rerun `forge work \u003Citem>`. Work refuses before changing its start\nrecord or the index, so both conflicted and resolved but uncommitted merges stay intact.\nNew repos get this guidance at init; existing repos get it after upgrading and running sync.\n\nWhen `forge work` says Claude ended without running a turn, no worker ran: Claude is often\nwaiting on a prompt, such as a review of changed hooks. Run `forge doctor --fix` in the item's\ncheckout. Then run `forge work \u003Citem>` again. If no turn runs, inspect the saved log.\n\nEvery Codex worker, plan reader and review runs with low model verbosity, no reasoning\nsummaries, and a developer instruction to write no progress commentary, only the final handoff\nand any question. Forge sets these for each thread, including resumed threads; neither\n`forge.toml` nor user or project Codex settings can turn them up. New and upgraded repos get\nthis automatically, with no setting to change.\n\nWhen one sentence would help a worker finish its next round, give it with\n`forge work \u003Citem> --note \"\u003Ctext>\"`. The note appears under \"From the coordinator\" in that\nround's brief and is recorded with the turn. Give it again if a later round needs it; a note\ndoes not change the item's Scope. Read a close finding and the code it cites before deciding\nwhether the worker needs a note or the finding should be dismissed with evidence.\n\nIf a worker ends with a `Question:` paragraph, answer with\n`forge work \u003Citem> --note \"\u003Canswer>\"`. The worker waits for that answer: another work round\nwithout a note and `forge close \u003Citem>` both refuse until the answering round completes, and\n`forge next` shows the question with that answer step. The\nanswer returns to the same conversation when it can resume; a fresh brief carries both the\nquestion and answer. Workers change files outside Scope that the change needs and name them in\nthe handoff, so answer a Scope question only when the change isn't needed. If the answer needs a\nchoice the item does not settle, get that choice made before sending the note.\n\nWhen a round ends with changes left uncommitted, `forge work` continues the same conversation\nonce, repeating its test instructions and asking it to commit. In a local-test repo, the worker\nruns related tests through `forge test` once at the end of the turn, reruns only failures and commits any fixes. In a\nCI-test repo, wider related tests, lint and type checks stay in pull request CI. Only\nif changes are still uncommitted after that does it warn, naming them: `forge close` reviews only\nwhat is committed, so look at them before closing.\n\nContinued worker rounds repeat the selected test-place instruction and its commit order,\nreplacing any earlier full-suite instruction. Follow the repo's `test_place` choice when applying\nthe test-audit skill. The nightly full run covers the rest.\n\nForge trusts its own Codex hooks for each turn it starts, so the guard runs even after a hook\nchanges. Codex runs no project hook in a project it doesn't trust, so Codex workers and readers\nall refuse there until the human trusts it. Forge needs an exact trusted `[projects]` entry in\nCodex's config for the project folder or its main checkout; a parent folder's entry does not\ncount, and the refusal and `forge doctor` name the entry to set. A project hook that isn't Forge's and that Codex doesn't trust stops every Codex turn;\nask the human to review it in Codex's \u002Fhooks, then run the command again.\n\nFor a quick read-only question about this checkout, hand it to the session's `explorer`\nsubagent role. It uses the explore entry in `forge.toml`; no separate Forge command is needed.\n\nEach kind in `forge.toml`'s `[models]` table may have a codex and a claude entry, such as\n`[models.build.codex]` and `[models.build.claude]`; a single entry counts only for its own model's\ntool (a gpt model is Codex's, any other Claude's). Workers use their selected tool's entry,\nand explorers use their host's entry. Workers and Claude plan readers with no entry use Forge's defaults.\nCodex build, fix and lite default to `gpt-6.1-sol` at low effort; design uses its design default.\nNew repos pin Codex reviews, including working-prototype reviews, and cold reads to\n`gpt-6.1-terra` at max effort. Upgrade and sync keep existing model settings unchanged.\nClaude build, fix and lite accept a `subagents` and `subagent_effort` pair, or use\n`claude-haiku-5-5` at high when neither is set. The SDK's `general-purpose` helper\ngets the same pair. These options affect only the Claude builder's turn, not other\nClaude sessions or settings. Codex helpers keep their configured pair, defaulting\nto `gpt-6-luna` at max. Neither tool's helpers change effort after a failure.\n\nAfter `forge sync`, Codex sessions opened in the repo can use every shipped role, including\n`fixer`. Sync keeps the team's other registered roles. The default subagent model and effort\ncome from build's Codex `subagents` and `subagent_effort`, falling back to lite's pair when\nbuild has none. With neither pair, sync leaves the defaults unset. Hands-on Codex roles use\nthat same pair when set, so their worker model does not override the subagent budget.\n\nClaude build, fix and lite default to `claude-sonnet-5-5` at `low` effort.\nClaude design, including frontend, keeps `xhigh` effort. Claude plan reads with no entry use\n`claude-opus-5-5` at `high` effort, including when Claude is the only installed tool.\n`forge init` writes Sonnet at high for Claude plan reads and reviews.\nExisting model and effort entries stay unchanged after upgrade and sync.\nAfter a red close test, a blocking review finding or a failed required check named\nin `checks`, the next build, fix or lite round uses at least high on Codex and\nxhigh on Claude, keeping a higher configured effort. Optional failed checks and\nowner notes do not raise it. The same worker thread continues with the same model;\nonly that turn's effort changes. Design, cold reads, reviews and sign-off keep\ntheir fixed effort. Forge's defaults and ladder never choose none.\nClaude rounds use the Agent SDK when installed. Native rounds request effort in\ntheir instructions, and their records and round lines label it requested because\nForge cannot check that the host applied it. A continued native Codex helper can\nretain its first effort. Each run records its round number and effort. The board\nand story history show `built at \u003Ceffort>` in the round line, and omit it for old\nrecords without effort.\nClaude planner and architect roles use the plan-read entry; debugger, security\nand performance roles use Opus 5.5 at high effort. Reviews, including prototype sign-off,\nuse the selected tool's `models.review` entry, or Autoreview's defaults when unset.\n\nExisting model entries stay unchanged on upgrade. To opt in, set each of\n`[models.build.claude]`, `[models.fix.claude]`, `[models.lite.claude]` to Sonnet at low.\nKeep `[models.design.claude]` at Sonnet xhigh. Set `[models.grill.claude]` and\n`[models.review.claude]` to Sonnet at high.\nFor a missing implementation entry,\nadd a top-level line before the first table, replacing `build` with each kind:\n`models.build.claude = { model = \"claude-sonnet-5-5\", effort = \"low\" }`.\nFor plan reads, use this line:\n`models.grill.claude = { model = \"claude-sonnet-5-5\", effort = \"high\" }`.\nIf build, fix or lite has a single entry, move it to its family's table before adding the\nClaude entry. Then run `forge sync` to refresh subagent roles. Existing review entries stay\nunchanged and still set the review model and effort.\n\nWith `tools = \"both\"`, `forge.toml`'s `workers` says who builds each task and fix.\n`forge work` prints the worker,\nmodel and effort it starts with, and why; `forge next` names the worker beside each ready task:\n\n- `codex`: everything on Codex; user-facing work uses `[models.design.codex]`.\n- `claude`: everything on Claude; user-facing work uses `[models.design.claude]`.\n- `split` (what `forge init` writes): user-facing story tasks on Claude, everything else on Codex.\n\nSplit routing also applies in Forge's source repo: a task row's `User-facing: yes` selects\nClaude and its design entry. New repos get this at init; existing repos get it on upgrade.\n\nWhen the worker changes between rounds of one item, the next `forge work` starts a fresh session\non the new worker with the whole brief and the latest review findings.\n\nEach task and fix keeps the same worker chat for each tool until merge. Later rounds resume it\nafter model or effort changes, restarts, missing local records or a fresh worktree. Plan reads\nkeep their reader chat across rounds too. Forge starts a new chat only when the tool reports\nthe old chat gone or archived, another program keeps it held after one retry, or the item changes\ntools, and says why in one line. A work round starts the new chat with the whole brief, as a cold\nread does. Other resume errors stop the round and keep its chat.\nUpgrade's sync commits earlier-release chat bindings in their owning work branches, without\naccepting reader findings. It also recovers turn logs when local JSON is missing, moved spec\nworktrees and workers on `forge\u002F` branches. A landed spec's binding travels in the upgrade fix's existing notes.\nSync never waits for other items' runs: it leaves the chat of an item whose `forge work` or\n`forge read` is running to that run, says so in one line, and refreshes everything else.\nSync writes every generated file first, then keeps chats. When it can't keep one (a run on an\nearlier release holds it, its record has uncommitted edits, several worktrees hold a moved spec,\nor Codex has no starting commit for a log-only spec read), it prints a warning that names the item,\nthe reason and the next step. It leaves that chat on this machine only, so run `forge read \u003Cslug>`\nor `forge work \u003Citem>` on its own branch before you remove `.git\u002Fforge`.\nKeep `.git\u002Fforge` until the upgrade finishes.\n\nCodex app-server turns run at normal speed by default. Set `codex_fast = \"needed\"` in\n`forge.toml` to use the selected model's Fast tier for every fix, from the second worker\nround onward, or when other planned work waits on the item (the board's `waits_for` dependencies).\nOther turns run at normal speed; models without Fast also run normally. Fast uses more of your Codex allowance.\nThe optional `codex_fast` setting in `forge.toml` defaults to `\"off\"`; choose `\"needed\"` to enable\nFast or `\"always\"` to request it on every Codex turn. `forge doctor` shows the policy and whether the last Codex turn ran\nwith Fast. When Fast is wanted but the model does not offer it, the run's first line says so.\nEvery turn, including capacity retries, records the\nrequested tier and the tier Codex reports; an unreported tier stays unknown. New repos\nget the default at init; existing repos get it on upgrade without adding a setting, and sync\nrefreshes both host guides.\nThe app-server route needs the Codex SDK. `forge doctor --fix` installs it in Codex-only repos without Claude.\n\nFor a side job inside your own session, hand it to one of Forge's subagent roles, which\n`forge sync` writes for both hosts from `forge.toml`'s models: `explorer` to read and trace code;\n`planner` and `architect` for planning and design choices; `debugger`, `security` and\n`performance` to diagnose; `worker`, `coder`, `frontend`, `tester` and `refactorer` to build.\nThe diagnosing and planning roles change no files. Building an item still goes through\n`forge work`. To change a building or planning role's model or effort, change `forge.toml`\nand run `forge sync`; Claude diagnostic roles keep Opus at high effort.\nCodex roles use their host's entry when the kind has per-tool entries. With a single entry, a model\nfrom the other tool is omitted so the Codex role uses the session's model. Claude building\nroles use their implementation entry or Sonnet low; Claude planning uses grill or Opus high,\nand Claude diagnosing always uses Opus high.\n\nThe explorer role uses the read-only `explore` kind; `lite` keeps a fix's first\nbuild round. New repos get `[models.explore.claude]` with `claude-haiku-5-5` at high effort and\n`[models.explore.codex]` with `gpt-6.1-sol` at medium effort. Existing repos\nwithout explore keep using lite for read-only work after upgrading and syncing. To choose\nseparate read-only settings there, add the explore entries in a fix and run `forge sync`.\n\n## Build simple\n\nGit merges the roadmap and spotted list with `forge hook merge-roadmap` from PATH.\nEdits to different fields of an item merge; competing edits to the same field need a manual resolution.\nNew repos get this rule at init; existing repos get it with `forge sync` or\n`forge doctor --fix`. The shared rule keeps working after a worktree is removed.\nDoctor repairs both paths in Git's shared local attributes, including when an older\nrepo's tracked attributes only name the roadmap, without enabling excluded git hooks.\n\nRead [standards.md](standards.md) beside this skill for Forge's principles, the client's app\nrules and the build-simple ladder. Apply its rules in every phase.\n\n**Finding forms.** `Simpler: \u003Ccut> → \u003Creplacement>` is P2, or P1 when a new moving part isn't\nnamed in the story. Untraced work: `Cut or defer: \u003Citem>`. An unmet Done-when item:\n`Not done: \u003Citem>` (P1). A missing rule-11 basic is its own P1, never `Simpler:`.\nEvery `Not done:` finding blocks a fix, including one about builder details.\nFor a story task, a `Not done` finding blocks only when it names a covered Done-when item\nthe change misses as written. A case the Done-when does not name, such as another language, platform, shell,\ntool or folder layout, is a P2 `Follow-up: \u003Cthe case>` finding that Forge records and the merge\ndoesn't wait for, even when the case is realistic; a functional, security or data-loss defect\non the changed code still blocks under its own Raise line.\n\n## Dropping a fix\n\nOnly the human decides to drop a fix. Ask first and run `forge fix drop \u003Cfix> --because\n\"\u003Creason>\"` only on a clear yes. Forge pushes the fix branch, records the reason, who and when\non that branch, and closes its pull request with the reason. The fix leaves the board,\n`forge next` and the merge queue. Its name stays reserved and its remote branch keeps the work.\n\nForge removes the clean worktree and local branch unless ignored files outside rebuildable\nfolders keep it. It lists those paths and keeps their data. Commit uncommitted changes first;\nwait for local Forge runs to finish and drop or finish any open fixes stacked on this fix.\nA merged fix cannot be dropped.\n\nRun `forge fix drop \u003Cfix> --undo` to bring it back. Forge restores the worktree or reuses the\nkept one after a fast-forward, records the restore and reopens a pull request the drop closed.\nA fix that was ready needs `forge close` again for its new commit. Teammates see a drop or\nrestore after they fetch.\n\n## Closing\n\nIn `forge.toml`, `cold_read_rounds` sets the cold-read limit and `task_review_rounds` sets the task-review limit. Each accepts 1 or 2 and defaults to 2. Fixes keep one review round.\n\nA person can ask you to skip the model review for a task or fix. Run `forge close \u003Citem> --no-review --by \"\u003Cname>\" --reason \"\u003Cwhy>\"` only when a person asks. Close adds the name and reason to the pull request. Close refuses if an earlier review blocked the item. Tests, CI, design checks and merge still run.\n\nAt the round limit (the repo's setting, two by default), open findings below P0\nstop the item and ask the owner: one more round, split or accept.\nAccept makes the open findings follow-ups in Known issues with the owner's reason.\nAn open P0 never stops for the owner; the worker keeps fixing it. When the same P0 stays open\ntwo worker rounds in a row, Forge stops with the stuck question.\n\nFrom the second review round, close checks the previous round's findings and new P0s that\nhappen in normal use. The reviewer says fixed or not fixed for each previous finding.\nA round-one fix that breaks the main path counts as a P0 (Harm 4 or more). Open findings below\nP0 need the owner's choice at the limit, whether their lines changed or not.\nA `Case: rare` finding does not block unless it names a kind the owner requires.\nA security hole or data loss that any user can reach is normal use. Reviewers and readers do not\nraise questions that Review rules or recorded owner\ndecisions (`docs\u002Fdecisions\u002F`, `Decided:` or `Ruling:`) already settle.\nA worker can decline a finding in a commit body with\n`Declined: \u003Ctitle> (\u003Cfile>): not worth the code - \u003Creason>`, using its exact title and file.\nAn empty commit is fine. Close applies it even to a reused review and keeps it as a follow-up.\nA P0 stays open. Later rounds receive the decline as settled. Only the human dismisses findings.\nEvery `Not done:` finding blocks a fix, including one about builder details.\nFor a story task, `Not done` blocks only against a covered numbered owner-approved Done-when\nitem. Builder details, Notes and implementation guidance never block a story task as `Not done`.\nNew repos get this guide on init; existing repos, including earlier adopted repos, get it on\nupgrade and sync. Close applies the same boundary in every repo.\n\nThe owner can set added_work_min_gain to 3, 4 or 5 and always_block to a list of kinds in\nforge.toml. Record the owner's settings in a fix. They apply after it merges, from the default\nbranch. `Adds work: \u003Cwhat>` marks a finding that asks for another check, retry, guard or flag.\nAn unfloored fix-now finding below the minimum becomes a Known issue with its scores and reason.\nHarm 4 or more, Gain 5 and every score floor still block. `Must: \u003Ckind>: \u003Cgap>` holds a listed\nkind at any score, even for a rare case or in a light review. The worker cannot decline it.\nOnly the owner can accept it. Without these settings, new and existing repos keep today's bar.\nAn upgrade adds no setting. Plan reads and prototype sign-off keep today's bar.\n\nBefore building a fix, check its brief for the five-code-file limit, interface globs and any\nrecorded allowance; test files and files whose content is exactly what `forge sync` writes don't\ncount, so an upgrade fix needs no allowance. You may run `forge fix allow-large \"\u003Creason>\"`\nyourself, without asking the human, when the fix corrects one kind of problem in every place it\nappears and changes no interface. Name that problem in the reason and record the allowance\nbefore editing beyond the limit. Anything else needs the human's allowance or a story.\nRun it when no round of that fix is running: Forge refuses it inside a worker's round, and a\nworker that meets the five-file refusal stops and reports it to you.\n\nFor a follow-up to an unmerged item's findings, run `forge fix start` in that item's checkout.\nThe fix starts there, and its size and interface checks count only its own changes, including\nafter the underlying item lands. Close first tries a plain merge of the current default branch\nwithout changing the checkout. If it is clean, close keeps the branch's commits and merges when\nthe pull request needs it. A clean merge needs no force-push. If the merge conflicts after the\nunderlying item lands, close replays only the follow-up's own commits from its recorded start\nonto the current default branch and publishes with a lease. It preserves earlier merge edits,\nleaves unknown remote commits alone, and stops if the fix's own changes conflict. Close names\n`forge work \u003Citem>` to merge the default branch, then `forge close \u003Citem>`.\nOtherwise it starts from the default branch and close keeps merging default updates.\nFollow-up replay and merging default-branch updates before the underlying item lands need Git\n2.38 or newer.\n\nMark generated files such as migration snapshots `linguist-generated` in `.gitattributes`, so\nreviews show them only as counts of changed lines.\nThey count towards neither a part's size warning nor a fix's code-file limit.\n\nRead the worker's final handoff and resolve its stated blockers before `forge close`.\nBefore close, the worker puts a `Proof list:` paragraph in its last commit message: each Done-when\nitem you cover and every detail next to the test or check that proves it, or marked `missing`.\nName each test by its pytest node ID or file and write no test results: close checks each named\ntest against its own run and writes the list with only the tests it ran and their results, and marks every line it cannot match to its run's per-test results `not checked`. Name any other\ncheck with its result. Forge copies the list into the pull request and the review prompt. The first review checks the whole list, not a sample: Check every\nentry against the code and its named proof, including every Done-when detail. Compare it with the\ncovered items so omitted entries cannot hide gaps; report every missing case in that one round,\neven when a finding already blocks. Keep the whole list current; later reviews check repairs and\nnewly changed lines under the boundary above.\nWhen a Done-when item's named proof is a pull request check that has not finished yet, do not\nreport it as `Not done` if the check is configured to run on the pull request. Close's checks\ngate holds the merge until that check passes. A failed check or a proof with no check behind\nit is still P1 `Not done`. New repos get these instructions at init; existing repos get them\nafter upgrading Forge and running sync.\nTest fixtures are plain text files, never archives or other binary files. Build an old repo for\nan upgrade test in the test from a text fixture folder. Close refuses added binary files under\n`tests\u002F` before the review, naming the file to replace.\nWhen every file a change touches is forge.toml, under `docs\u002F` or `plans\u002F`, a Markdown file or under\n`.factory\u002F`, close skips forge.toml's test command and says so; the review and every named check\nstill run.\nWhen a worker round or close's merge changes the item's Forge pin, land and close say so in one\nline and continue through uv under that release before reading its new settings.\nGenerated-conflict sync and the merge commit check use the new pin too, so the merge finishes\nbefore the original land or close command continues.\nThe board and next use failed pull request checks only when they belong to that pull request's\ncurrent head, including branches that exist only on the remote or are ahead of the local branch.\nClose and `forge next` warn when this item and another open branch add the same migration\nnumber under a `migrations` folder. The warning names both items and the number. It does not\nstop work or need a setting. Forge refreshes origin once and reads its branch snapshot without\na checkout. Completed items do not cause warnings, even when their branches remain on origin.\nClose checks the tracked guide copies before review or CI waits when this branch changes\nguides or their templates. If they differ from sync's output, run `forge sync` in the folder\nclose names, then commit the generated guides and run close again. New and\nearlier-adopted repos get this check after upgrading Forge; other generated files stay as they are.\nClose brings in the current default branch before it tests or reviews. If only files `forge sync` writes\nconflict, close takes the default branch's copies, runs sync and commits the merge. A conflict in\nany other file stops close for the worker to resolve. While waiting for checks, close stops at once\nif GitHub reports a conflicting pull request: GitHub runs no checks on it. Rerun close to bring\nin the default branch. Land retries close once itself, including a conflict during its merge check\nwait; if the merge needs a person, it stops with close's existing conflict next step.\nIf GitHub refuses a pull request body update, close stops after one attempt, including during a\nhistory retry. Wait for a rate limit to reset, or fix the reported problem, then retry the command.\nClose reruns failed pytest files once after a local test failure. If they pass, close names\nthem as flaky and continues. A second failure still stops close. A failure without named\ntest files still stops close.\n\nIn local mode, close's tests and review run at the same time. In CI mode, close runs its review\nfirst, saves it, and pushes once. It then waits for the pull request checks. A red test or a P0\u002FP1 finding still\nstops the round. When the\nlocal test command fails, its test report ends with all failed pytest files and test names,\nincluding setup, teardown and collection errors, and the full test log path.\nClose keeps the output for the worker: run\n`forge work \u003Citem>`, whose brief carries it; `forge land` runs that fix round itself.\nIn CI mode, close leaves test execution to the pull request's `tests` check. In local mode, close\nruns `fast_test` when set. Otherwise it uses the shipped pytest picker for changed tests\nand tests importing changed Python modules, Vitest's `--changed \u003Cbase>`, or Jest's\n`--changedSince \u003Cbase>` (including `__tests__` files). The pull request's CI runs the related\ntests; the nightly full run covers the rest.\nDocs and brand-asset changes get the light review, which blocks only on P0 findings.\nClose and the generated `forge.yml` skip the test command when every changed path is Markdown\n(case-insensitive), or under `docs\u002F`, `plans\u002F`, `.factory\u002F` or `.forge\u002F`. They compare against the\nbase with the same rule as the part-size check. No setting is needed. The required `tests` check\npasses and says `docs only: tests skipped`. Images and fonts also count as assets, wherever they\nlive. Files marked `linguist-generated` and docs or assets referenced by tests keep the full\nreview and tests. Forge resolves literal paths from the repository or test file's folder on\nboth sides of the change, including literal path joins, `__tests__\u002F` files and shared\n`conftest.py` fixtures.\nCI checks this once before the tests job and skips that job for a docs-only change.\nOne code file runs tests as usual. New repos get\nthis rule at init, and existing repos get it after upgrade and sync. Bare `forge test` still runs.\nFor other changes, the generated `forge.yml` runs one `tests` job with `forge test --change`.\nSet `groups = 4` in `forge.toml` to run four parallel jobs with any test runner. Each job runs the\ntests related to the pull request. Put `{group}` and `{groups}` in the `test` or `fast_test`\ncommand where the runner expects its shard number and total, for example\n`vitest run --shard={group}\u002F{groups}`. Forge fills these values for each job and uses `1` for both\noutside CI. For a direct pytest command with pytest-split, Forge adds the split options automatically.\nThe PR job uses `fast_test` when set, or `test` otherwise. The nightly job uses `test`.\nForge chooses each job's groups from its own command. The `forge test --pytest` picker\nsplits the underlying `test` command.\nWhen `groups` exceeds 1 and that command has no `{group}` placeholder or automatic pytest split,\nForge uses one group. `forge doctor` and the generated workflow each show one warning.\nAdd the runner's shard options to that command to use more groups.\nWith one group, the required `tests` job also checks for docs-only changes, without extra gate jobs.\nInit writes `groups = 1` for new and adopted repos. An upgrade adds no `groups` setting, so an\nexisting repo with a direct pytest command and pytest-split keeps its six groups. Each group then\nruns its share of the related tests through `forge test --change`. The required `tests` check passes\nonly when every job passes; branch protection keeps the same `tests` check.\nA full run covers only `forge.toml`'s `test` command; if the repo's whole suite runs elsewhere, point that setting at it.\nSet `full_suite_workflow = \"nightly.yml\"` in `forge.toml`, then run `forge sync` and commit the generated workflow to omit Forge's full-suite jobs.\nThe repo's workflow must support `workflow_dispatch`. Start its full run with `gh workflow run nightly.yml --ref \u003Cdefault>`.\nThat workflow must post `forge-full-suite` on the default branch commit after its run, with `state` set to `success` or `failure`:\n`gh api --method POST \"repos\u002F$GITHUB_REPOSITORY\u002Fstatuses\u002F$GITHUB_SHA\" -f context=forge-full-suite -f \"state=$state\"`.\nGive the status job `permissions: {statuses: write}` and set `GH_TOKEN: ${{ github.token }}` in the posting step's `env`.\nIn CI mode without this setting, `forge.yml` also runs `forge test --full` once a day on the default branch and supports\n`workflow_dispatch`. After the last product merge for a release or sign-off, start the full run\nat once with `gh workflow run forge.yml --ref \u003Cdefault>` when full-run proof is required.\nPrepare the release or sign-off notes while it runs, then follow that same run with\n`gh run watch \u003Crun-id> --exit-status`; do not wait for the nightly run or the tag push.\nLocal mode has no scheduled job; after the last product merge for a release or sign-off,\nstart `forge test --full` at once in the main checkout when full-run proof is required.\nPrepare notes while it runs and wait for that same command to finish. For the daily run outside\na release or sign-off, run it when `forge next` says it is due and the machine is quiet.\nA green full run on the latest default-branch\ncommit is required before pushing a release tag. Client sign-off can reuse a green full run\nwithin the latest ten default-branch commits when only exact `forge sync` output or records\nunder `.factory\u002F`, `plans\u002F` or `docs\u002Fdecisions\u002F` changed on the default branch.\nApp, test or lock-file changes on the default branch need a fresh full run.\nAn app repair on the sign-off branch can use the default branch's green run.\nA failed latest full run still blocks.\nEarlier clients need no migration, and accepted sign-off records stay valid. Everyday merges do\nnot wait for a full run.\nA failed scheduled or manual full run appears in `forge next` with its failed test names.\nThe required `forge-pr-check` fails a pull request from a branch Forge did not start.\nBefore the first committed review, this check stays pending. A stale or blocked review still\nfails. New repos get this rule at init. Existing repos get it after upgrade and sync.\nRedo the change with `forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\"` and copy the commits there.\nForge's generated `forge\u002F*` branches and doctor's dated `fix\u002Fforge-files-*` branches still use\nthe normal check for a Forge record and a current review. New repos get this check at init;\nexisting repos get it after upgrading Forge. Sync refreshes these instructions for both.\nEach change runs its related tests, lint and type checks once. Close runs the full related-test\nselection, even when it covers more than a third of the Python test files. Shared test inputs\nselect every test.\nBare `forge test` keeps worker runs bounded: when the pytest selection would cover more than\na third of the Python test files, it runs only the part's Tests column or the fix's touched test\nfiles, plus `always_test`, and says \"The nightly full run covers the rest.\" With no named tests\nit runs only `always_test`. An explicit `forge test --pytest \u003Cbase>` keeps the full selection.\nNew repos get this bound at init; existing repos get it after upgrade and sync.\nSetup steps such as `uv sync` and `npm ci` keep their arguments; no filenames are appended.\nForge's initial optional-package Node command uses the same selection once an app adds\n`package.json`; with no package it still runs nothing.\nGo and other runners run the full test command. Compound npm scripts also keep their full\ncommand because arguments cannot select each runner inside them; `forge doctor`, `forge upgrade`\nand adoption name such a script, and step 9 of Adopt a live app says how to write the command.\nSet `fast_test` for a different selection. Supported runners with no related tests run none locally. A red CI still sends\nthe item back to the worker.\nTo include fast checks or a wider selection, set `fast_test` in `forge.toml` (in a fix), with\n`{base}` standing for the merge base with the default branch.\nTests that check the whole repo, such as rules over every test file, name no changed file, so\nthe pytest picker never picks them by default. List them in `always_test` in\n`forge.toml` (in a fix), as test files or pytest node IDs such as\n`tests\u002Ftest_rules.py::test_1_rules`; it is empty by default. With the pytest picker, close runs\nthem on every change that includes code or settings, beside the tests it picks. Docs-only changes\nskip these tests too.\nForge passes each entry to pytest, so it runs even outside the paths `test` names. In a grouped\nrun, pytest-split assigns each entry to one group; the other groups do not fail because they did\nnot run it. A missing file or node still fails. In a grouped run, a mark or `-k` filter that\nremoves an entry is not reported as missing. In a one-group run, an entry that runs no test, for\nexample because `-k` deselects it, still fails the run.\nFor pytest repos, set `fast_test` to `forge test --pytest {base}`. Forge's own repo uses this\nshipped picker too. It selects only changed test files and tests importing or naming a changed\nPython module by its dotted name or file path, such as `shop.prices` or `src\u002Fshop\u002Fprices.py`,\nincluding package-relative imports. Filenames and references to changed non-Python inputs\ndo not select tests. After the run it names each changed Python file that no test names. Tests\nthat run the program from outside miss it locally; the nightly full run covers it. It supports\nroot packages and the `src\u002F` layout, and pytest's\n`test_*.py` and `*_test.py` filenames. It excludes unrelated tests even when the full command names them explicitly. It keeps\nthe full `test` command's setup and options, caps pytest-xdist at the machine's test budget even\nwhen pytest configuration supplies the worker count, and runs the\nfull command when `conftest.py`, requirements or lock files change, except for bare `forge test`'s\nworker bound above.\nFor `pyproject.toml`, every change triggers the full command unless all changed lines are\nknown-harmless: `project.version` and `project.description`, or Hatch's packaged-file\n`include`, `exclude` and `force-include` settings under `tool.hatch.build` and its `wheel`\nor `sdist` targets. Multiline values are supported. Unknown sections, unsupported layouts,\ncomments outside safe values and mixed safe\u002Funsafe edits run the full command.\nForge's commands and generated tests job set `UV_FROZEN=1`, so uv consumes the recorded\nlockfile without rewriting it, including in older worktrees. If you wrap a Forge command in\n`uv run`, use `uv run --frozen`: the outer uv starts before Forge can set its environment.\nUpdate dependency locks deliberately before testing changed dependencies.\nFor `uv.lock`, `poetry.lock`, `Pipfile.lock` and `package-lock.json`, a change only to\nthe repo's own package version selects related tests instead. Forge identifies the\nroot package from the adjacent manifest and its local source; dependency versions,\nhashes and other lock data still trigger the full run. Missing or unrecognized lock\ndata also triggers the full run.\nNew pytest repos get this proposal at setup; existing repos get the picker and guidance after\nupgrade. Upgrade never rewrites their `test` or `fast_test` settings. Doctor reports an old\n`python -m forge.fasttest` setting with its one-line replacement. Forge needs no installation\nin the project: it loads a temporary pytest hook to exclude unrelated files, including on pytest\nbefore 8.2. Test launchers must preserve `PYTHONPATH`, forward pytest arguments and expose xdist\noptions in the command or pytest configuration.\nOn Windows, a builder's own bare `forge test` run skips each separate Playwright or Cypress step (directly or through one script of the repo) and prints one line that says so. A step that reaches Playwright through another file still runs. A test setting that is one combined script, or a script with a pre or post script, runs whole. `forge test --change`, close, the pull request check and the full run still run browser steps; Mac and Linux do not change.\nWorkers run tests only through bare `forge test`. It runs `fast_test`, or `test` when none is\nset (using pytest selection when supported), with `{base}` as the merge base with\n`origin\u002F\u003Cdefault branch>`, in the same fair machine-wide test lane as close.\nIt prints the report close keeps and always runs, including docs-only and\nuncommitted changes. If the remote default branch is missing it says to fetch it; if forge.toml\nnames no test command it says so and exits successfully. In a sample-data prototype, it says\ntests are off until client sign-off. After sign-off, ask the coordinator to set\n`sample_data = false` in `forge.toml` to turn tests on. A missing setting also leaves tests on,\nregardless of an earlier sign-off's `sample_data: true`. Forge sets `PYTEST_XDIST_AUTO_NUM_WORKERS`\nand `FORGE_TEST_CPUS` to the run's allocation from the shared process budget. On laptops, a worker's session\nrequests at most two processes, so its own `pytest -n auto` also stays at two. GitHub Actions workers use\nall available runner cores. A fixed `-n` in\nits test command is capped with `--maxprocesses`, also outside a worker session.\nThe Test selection line shows pytest's actual worker count, including serial commands and lower\nconfigured counts. Linux GitHub Actions logs also show `nproc`. GitHub Actions uses all available cores;\nlaptops keep the agent share and the reserve for local runner jobs.\nDirect Vitest and Jest commands use the same budget through `--maxWorkers`.\nThis includes `npx` (with optional `--no-install`) and `npm exec`, `pnpm exec` or `yarn exec`.\nForge caps explicit `--maxWorkers` values to the run's allocation, including percentage values.\nLower caps and Jest's serial options `--runInBand` and `-i` stay as written.\nForge does not change npm, pnpm or yarn scripts to set their worker budget.\nIt keeps existing `NODE_OPTIONS` and adds a Node preload that caps the actual runner's arguments,\nso package scripts keep their lifecycle hooks and share the same process budget.\nEach run copies the installed preload helper to its own temporary folder, so replacement\nworkers can still load it if an upgrade removes the installation during the run.\nThose scripts can read `FORGE_TEST_CPUS`. If the test command runs Vitest through a script\nwith Vitest projects, pass `--maxWorkers=${FORGE_TEST_CPUS:-2}` on the command line,\nfor example `npm test -- --maxWorkers=${FORGE_TEST_CPUS:-2}`, instead of setting the cap\nin the Vitest config. A config cap can leave projects with different `maxWorkers` but the\nsame `sequence.groupOrder`, which Vitest refuses. Other runners stay as written.\nDirect `forge test --pytest \u003Cbase>` runs join the test lane and obey its memory floor and budget.\nA picker inside close or bare `forge test` shares that run's single lane entry.\n`pytest -n auto` honours\nthe first; other runners may read the second. The lane stays taken until the test command ends,\neven if Forge is killed. `forge stop \u003Citem>` ends a running test or removes a waiting one.\nWhen `forge close` stops on a finding, open the line it cites, and the code that line calls,\nbefore anything else. The review's \"What counts\" list is the boundary, and the bar decides\ninside it: every finding at the bar (Proposed \"fix now\" or \"fix this round\") gets a fix round with\n`forge work \u003Citem>`, whatever its priority, unless close waits for the owner's choice or a decline\nmakes it a follow-up. A finding below the bar holds only when it names a required `Must:` kind\nor this item's own Done-when. Close lists other findings in the pull request as follow-ups or\nlived with. Harm 4 or 5, or Gain 5 stops the work.\nOtherwise, Gain 4, or Gain 3 with Harm 3, holds the work only with Work 1 or 2. Every other\nGain 3 or 4 finding becomes a follow-up fix, even at Work 1 or 2 when Gain is 3 and Harm is 1 or 2.\nGain 1 or 2 is lived with. Never re-score a finding to change its\noutcome. Dismiss only a finding outside the boundary or factually wrong, with\n`forge close \u003Citem> --dismiss \u003Cn> --because \"\u003Cfile:line> \u003Cwhy>\"`, where the why names the Leave\nout line it falls under or the Raise line it lacks, or the file:line is the code that disproves it.\nUse the number of an open finding in the item's saved review. Close checks the number and\nevidence before tests or review. A repair review can omit an earlier finding without refusing the request.\nClose fetches the default branch but merges it in only for a trial-merge clash, or when GitHub\nreports the pull request conflicting or behind under its up-to-date rule. Unrelated main changes\nadd no merge. Close checks GitHub's clash state at every look, even with green checks; a clash\nstops a hand-run close and says to run close again. An UNKNOWN answer keeps it waiting.\nWhen close merges the latest default branch, an earlier clean review covers a clean merge;\nonly conflict repairs and later worker edits need review. The usual tests run on the merged code.\nAn unchanged branch diff keeps the last review and its dismissals, including `--dismiss` given in that close command.\nBefore reusing serious findings, close also checks the reviewed files and contract against the\ncurrent head. A repair brought in from the default branch needs a new review, even if the branch\ndiff stayed the same. Land uses the same check through close.\nClose reconciles remote branch work before a new review. It saves the review, pushes once,\nand opens or updates the pull request with the final review block. Ready still needs a clean\nreview and green checks on the final pushed head. After `forge fix amend`, close also updates\nthe pull request's Done when line. Use `--append \"\u003Ctext>\"` to add text with a space between\nthe old and new text. `--done \"\u003Cdone when>\"` replaces the whole Done-when. Both options show\nthe old and new text before writing, and need `--because \"\u003Cwhy>\"`.\nIf another machine moves the remote branch during review, close stops before publication.\nRun close again to reconcile that work, review and test it before Ready.\nA follow-up replay also waits until the saved review for its one leased push. An interrupted\nreview keeps the replay locally for the next close; a refused lease restores the original commits.\nLand runs work first for a fix with only its start and state records, including after amend.\nA fix that changes only `.factory\u002F` and spotted records against the default branch cannot merge.\nClose and land say the build round did not finish and give `forge work \u003Cfix>` as the next step.\nThe refusal lists untracked files in the worktree. Code and documentation fixes can still merge.\nUpgrade close leaves the repo's local git hooks alone,\nincluding when it regenerates conflicted Forge files with the newly pinned release.\nIf conflicted-merge handling fails, close aborts the merge and reports the error before retrying.\nAfter upgrading, run `forge sync` to receive\nthe tests workflow's quick pass: it reuses a successful parent tests workflow only when the\ncommit changes Forge's review or test-state record and its accompanying state under `.factory\u002F`. Any other\nchange or missing passing parent result runs the suite on the pull request merged into its\ncurrent base. Reuse also requires the parent to include that base; a parent pull request run\nmust have tested that same base. A changed base or missing proof runs the suite again.\nOther workflows can use the same rule. Init and `forge sync` ship `.forge\u002Frecords-only`.\nAfter checkout, add this one step: `- {id: forge-records, uses: .\u002F.forge\u002Frecords-only}`.\nGive the job `contents: read` and `actions: read` permissions, and fetch the full history.\nThe runner needs Python, Bash and the GitHub CLI, as GitHub-hosted runners provide.\nAdd the condition below to each later step that can skip the records commit:\n\n```yaml\npermissions:\n  contents: read\n  actions: read\nsteps:\n  - uses: actions\u002Fcheckout@v7\n    with:\n      fetch-depth: 0\n  - {id: forge-records, uses: .\u002F.forge\u002Frecords-only}\n  - if: steps.forge-records.outputs.records_only != 'true'\n    run: your-build-command\n```\n\nThe output is `records_only=true` only for a push or pull request whose parent passed this\nsame workflow. The step uses Forge's existing close-record rule. Code changes, documentation\nchanges, a failed parent run or missing proof produce `false`, so the workflow runs normally.\nFor pull requests, the parent must also include the current base and its run must cover that base.\nEach job that uses the step skips only its guarded steps.\n\nWhen `forge land` stops after its one fix round or on a check it cannot fix, judge\nthem the same way: dismiss with evidence, or `forge work \u003Citem>`, then `forge land \u003Citem>` again.\nA failed CI job whose log names none of the change's files is re-run once per pushed head\ninstead of costing a fix round. Forge's review check follows review recovery, never this retry.\nWhen GitHub has not started that\nre-run in time, land stops; run `forge land \u003Citem>` again, which closes again and runs a fix\nround if the check is still red.\n\n## Keeping work moving\n\nUse `forge land \u003Citem>` for build, close, fix rounds and merge where agent merges are allowed;\notherwise it hands the ready pull request to the human. It replaces private landing and CI-wait\nloops, with bounded check waiting and fix rounds. Land waits for the pushed head's checks while\nGitHub shows progress or a check is in progress, retrying unreadable or failed answers. It stops\nwaiting on green or failed checks, or after 30 minutes without a check starting, finishing or\nbeing replaced while none are in progress. Each wait ends at 90 minutes,\neven if checks remain in progress. At either wait limit, no decision is needed.\nRun `forge land \u003Citem>` again to resume without restarting checks.\n`FORGE_CHECKS_WAIT` keeps its explicit no-progress wait instead of the longer running-check wait.\nLand says which checks are still running, missing, or\nunreadable. Close and merge also wait up to 90 minutes while a check is running.\nWith no running or queued checks, they wait at most ten minutes. When close\nstops, follow its refusal and the\nClosing section above, then run it again. Run it in the background and keep watching it.\nNever wrap `forge work` or `forge land` in a shell timeout. A forced kill cannot report an unfinished round or clean up its lock.\nGitHub reads also retry unreadable answers and server errors three times, pausing for one,\ntwo and four seconds. If GitHub still does not answer, rerun the command. Not-found and\npermission refusals stop immediately; writes are never replayed by these read retries.\nIf the branch already has commits after the item's start, land goes straight to close unless\nyou give `--note \"\u003Ctext>\"` to start a worker round with that guidance. The note applies only to\nthe first round this run starts, not later fix rounds. Close\nstill stops for a pending question and gives open findings or failing tests a worker fix round.\n\nUse `forge land --all` in place of a hand-made merge lane. It takes every task and fix whose\nstatus is reviewing, fixing, waiting for checks or ready, and leaves out, by name, one still with\nits builder, one already merged and one another command works on. It starts them oldest first,\nseveral at a time up to this machine's agent places, and merges each one when it passes.\nA child that waits only for GitHub checks releases its place so another close can start.\nIt takes a place again before it continues. Queued checks keep their place to limit new CI work.\nA stacked\nfix follows its base even when its start date is earlier. Where Forge merges, it waits for its\nbase to merge, including a base whose builder or another command still works on it. If the base\nstops, the stacked fix stops with it. A base outside the run must merge before the stacked fix\ncan enter close. Among changes whose bases are ready, the oldest starts first. A change\nnot yet ready that changes a file an older change in the run also changes waits until that one\nmerges or stops; Forge's own `plans\u002Fspotted.json` and `.factory\u002F` files never count. Where the agent\nmerges and CI runs the tests (read from the newest default branch, with `tests` as a required check),\ntwo to five ready changes form a merge train: Forge tests them together once on a temporary draft\npull request, then merges each in order with no new run of its own. Each change still needs its\nexisting checks green. A change that clashes with the default branch or with a change in the train,\nbuilds on a change that has not merged, changes `forge.toml`, was ready before the default branch\nchanged `forge.toml`, or has no ready record from its own close stays out, and Forge names it and\nwhy. Two changes that edit a file Forge merges with its own rule, such as the roadmap, count as a\nclash. Other changes in the run close at the same time but merge after the train ends. Forge\ncloses the draft pull request and deletes its branch (`forge-merge-train\u002F\u003Ccode>`) when the train\nends, but only a branch it made in this run: if that name already exists, even at the same commit,\nForge runs no train and leaves the branch and its pull request alone. If the run itself stops,\nclose that pull request by hand; it never merges. A moved default branch, a changed\npull request or GitHub's rule that each pull request must be up to date sends the changes back to\none at a time, as before, with a `Train:` line that says why. Forge checks this again at each\nmerge: the default branch must hold what the train tested so far, and the pull request the tested\ncommit. When the combined check is red, Forge waits until every job has finished. If the failed\nlogs name the files of exactly one change, that change leaves and merges last, one at a time, with\nits own check, and the rest run once more as a new train when two or more remain. If the check of\nthe change that left fails, it stops under Needs you with the failure and gets no fix round. If the\nlogs name no change, Forge runs the failed jobs again once (a job that ran out of time counts as\nfailed), and waits for every job of that run too; if they stay red, or the logs name several\nchanges, each change goes one at a time. New repos get this at init; existing repos get the train\non upgrade, with no workflow change, and this guide on sync. Only one run\nworks in a repo at a time. When two closes in the run collide on git's ref lock while fetching,\nthe run starts that change again once and says so. A failed CI check gets one fix round on\nthat change's builder thread, then close runs again. Other worker or owner stops affect only\nthat change, and the others go on. The run ends with `Merged (n): ... · Ready to merge (n): ... · Needs\nyou (n): ...`, then each stopped change with its reason and next step: `forge land \u003Citem>` for\nits next run, or, for a stopped change, close's own question and next step, which only the owner\nanswers. Close waits for the owner's recorded choice. A failed\nCI job whose log names none of the change's files runs again once before the fix round.\nIf CI still fails after the fix round, the change stops with its reason.\nForge's review check follows review recovery instead. Where a human merges, the run closes\nevery change, holds none and merges none, and lists the ready ones oldest first, with stacked fixes after their bases,\nwith their pull request links: merge them\nin that order.\n\nStart a part with `forge task start \u003CKEY>\u002F\u003CTASK>`, or a named fix with\n`forge fix start \"\u003Cwhy>\" --done \"\u003Cdone when>\" --slug \u003Cname>`, then `forge land \u003Citem>`.\nTo guide a round and continue through close and merge, use `forge land \u003Citem> --note \"\u003Ctext>\"`.\nTo queue several items, run `forge land \u003Citem>` for each in the background, with `--note` when\nneeded. Forge admits each worker round by machine capacity. Do not write shell queues or private\nslot loops. `--note` takes one item and cannot be used with `--all`.\n`forge work` queues work rounds across the machine, while reads and close reviews skip\nthat line. All runs wait for high load to fall and memory to recover. Busy local CI jobs reserve\ncores from the budget until they finish. Close and worker tests share the separate test lane, except picker runs of five or fewer\ntest files, with one place per four available cores\n(at least one), so no private slot loop is needed.\n\nIf close refuses a conflicted merge, it has aborted the merge. In the item's worktree:\n\n1. Rerun the merge command close printed. Resolve team-owned content and `forge.toml` first.\n   Keep the team's notes outside Forge's blocks in shared files such as `AGENTS.md`; never take\n   one side of a whole shared file blindly. Resolve the structure of shared Markdown, JSON and\n   TOML files so sync can read them.\n2. With the pinned Forge installed, run `forge sync` to regenerate Forge's own files and blocks.\n   For merge-driver setup or drift, use `forge sync` or `forge doctor --fix`.\n3. Reconcile story docs with their current approval and cold-read evidence, preserving the\n   approved user-facing contract and both parts' builder changes. If that contract must change,\n   use the story amendment and approval flow; do not invent or overwrite approval evidence.\n4. Check the diff and remaining conflicts, stage only resolved paths with `git add \u003Cpaths>`,\n   and commit once every conflict is resolved. Then rerun `forge close \u003Citem>` or\n   `forge land \u003Citem>`.\n\nStarting is the claim: `forge story new`, `forge task start` and `forge fix start` push the\nnew branch to GitHub after committing its start. The author of that start commit is the person\nwho started the work; the board page and `forge board --json` show them next to the plan's\napprover, refreshing GitHub's branches so existing checkouts see new claims. Git is the one\nrecord. Git keeps a start tag pointing at the original commit, so its author survives squash\nmerges and work-branch cleanup. A retained fix start tag reserves its name even after its\nbranch is abandoned; another start says the name is taken and uses the next numbered name.\nClose also publishes retained start commits when an earlier\nstart push failed. A second checkout's\ntask start names the person who already started that part on GitHub. A failed push says so\nand leaves the work local: teammates cannot see that claim until its branch is pushed.\nNew repos get this at init; existing repos get it when upgraded and synced, including repos\nadopted on an earlier release.\n\nUse `forge assign \u003CKEY> \u003Clogin>` to give a story to a developer by GitHub username.\nUse `forge assign \u003CKEY\u002FTASK> \u003Clogin>` to give one part to a developer.\nThe command writes the story's `Owner:` line or the part's Developer cell.\nIt commits the plan on the story branch and pushes that branch.\nIf the story has no plan, the command refuses and says to plan it first.\n\nAfter `git fetch origin`, `forge next` reads assignments from the remote story branch.\nFor that developer, it offers assigned ready parts first, then unassigned parts.\nA part's Developer cell overrides the story's Owner.\nSomeone else can start an assigned part. Task start names its assigned developer in a warning.\nThe board JSON carries `owner` for each story and part, including parts not started yet.\nThe lead can change assignments below For the builders without another approval.\nAfter fetching, teammates can discover the published story before its first part merges.\nIf publishing its approval failed, the approved plan on the default branch after its first\npart merges takes precedence over the story's initial published draft.\nNext, start and both boards reconcile published assignments with local builder edits;\na locally changed assignment takes precedence, and conflicting other edits need reconciliation.\nThe plan's Owner line and Developer cells are the assignment records. There is no separate roster.\n\nSerialize start commands. When task start refuses for overlapping work or an unmet dependency,\nkeep other ready work moving while that work finishes. Run `forge next` after each merge to\nstart what was unblocked. Retry a start only after its dependency or overlap clears; follow\nother refusals' next actions instead of repeatedly retrying them.\n\n## Hotspots\n\nA worker or review notes problems outside its change as spotted items, which Forge keeps in\nspotted records and nobody edits by hand. A spotted item never widens the change in hand,\nexcept a bug that blocks it. Follow the first step from `forge next` before other ready fixes.\nWhen it names a file that keeps breaking, start its fix command without asking the owner.\nProblems noted before accepted client sign-off no longer count towards these lines.\nWhen `forge next` says the latest scheduled run of the default branch failed, it names the\nfailed jobs and tests; start its fix command the same way, or follow the step it gives for the\nfix already started.\nFor the full test run Forge knows (`full_suite_workflow`, or `forge.yml` in a CI-test repo), that first\nline starts with `Needs you:`, and the board lists the run under Needs you until a later scheduled or\nmanual full run passes. The mark is for the owner; still start the fix without asking.\n\nClose stops at the round limit (the repo's setting, two by default) for a story part or after one round for a fix when findings below P0\nremain open. It asks the owner: \"One more round, split or accept?\" Close, land and work show\nthe same question until the owner records a choice. An open P0 returns to the worker.\nAn older release's unanswered stop also waits for the owner.\nLand prints the owner's question, open findings and failing checks, then exits with status 3\n(needs a choice). It does not wait or send the worker back while the stop is unanswered.\nRecord the choice with\n`forge close \u003Citem> --resolve \u003Cmore|split|accept> --reason \"\u003Chuman's choice>\"`.\nThen run `forge land \u003Citem>` again. Land also prints open findings and failing checks when it\nstops for another reason or hands a round to a session subagent.\nMore gives the worker one more round. After that review, close asks again if findings below P0\nremain open and no P0 is open.\nSplit creates one follow-up fix with\nevery open finding's title and file:line in its why and Done-when. Close records the fix on the\nitem, prints its name, and lets this item continue without those findings.\nAccept puts every remaining finding of the latest review in Known issues as a follow-up with\nthe owner's reason. Close carries on without checking whether code or the default branch changed\nsince that review. Close still requires green checks; later work needs another review.\nA stop that asks the owner needs a recorded choice with `forge close --resolve`.\nA merge of the default branch or a clean review does not clear it. Close repeats the question.\nLand runs at most one fix round, including across session handbacks. If findings, tests or checks\nstill need a worker, land stops.\n\nFor a user-facing change, before review round two, run the real flow once, without tests or stubs.\nAdd `Live run: \u003Cwhat you ran> - \u003Cwhat you saw>` to the commit's `Functional check:` paragraph.\nClose copies that paragraph into the pull request and review. This request adds no check or refusal.\n\nThe stop rule: the coordinator lists each round's findings and asks the owner, whatever the scores.\nThe coordinator asks. The owner decides. The coordinator records the choice.\nWhen a cold read or review loop stops and you must ask, ask the human the question it printed, in\nits words, one item per question. It names the item and what it delivers, shows the open notes as one table ranked\nby score (number, the problem and who it hits, Gain, Work, Harm, and what is proposed), and says\nwhat each choice does; `forge next` prints it again for a stopped item. When a note\nhas no scores, as one saved before scores, the question lists the notes as plain lines instead.\n\nEvery update to the owner that lists notes or findings uses the same table, in the same order.\nThe coordinator follows the bar's outcome and never re-scores a note: a fix round for a note at the\nbar, a disposition with the scores in its reason for one below it, and the stop rule above at a\nstop. Approval and merge steps stay the owner's.\n\nWhen two rounds in a row leave close's tests failing or the same P0 open, `forge work`\nstops the item. It prints a\nready-to-ask question: what the item delivers, what is stuck, what the worker tried, and the\nchoices. Ask the owner exactly that question. Record the choice with\n`forge close \u003Citem> --resolve \u003Cswitch|same|narrow|split> --reason \"\u003Chuman's choice>\"`, then\n`forge work \u003Citem>`. Switch runs this item's next rounds on the other tool, as `forge next` shows;\nevery choice buys one more round before Forge asks again.\n\nA cold read stops at the round limit (the repo's setting, two by default) when notes below P0 are still open, or when P0 notes are open\nin two rounds in a row. This applies to stories, specs and decisions alike.\nAsk the owner: \"One more round, split or accept?\" Do not read again\nuntil the choice is recorded with\n`forge read \u003CKEY or spec or decision> --resolve \u003Caccept|more|split> --reason \"\u003Chuman's choice>\"`.\nMore permits one more read round. The same stop rule applies to that round.\nAccept keeps the notes with the owner's reason and permits approval or confirmation. Split\nthe plan as agreed before reading again. Forge never starts a third round by itself.\nFor a review loop stopped by `forge land`, record the choice with the same `forge close --resolve`\ncommand as a close stop.\n\nWhen GitHub reports a clash during the check wait or refuses a merge because the branch is\nbehind or conflicting, `forge merge` retries close and merge once. A mergeable pull request\nkeeps its current head when the default branch has not moved. When GitHub refuses a branch\nthat fell behind during the merge, `forge merge` and `forge land` say so in one line,\nrun close again to merge the default branch and run the tests,\nreview and checks as close decides, then retry the merge. If that merge selects a different\nForge release, close finishes under that release before the original command continues.\nA real conflict stops with close's existing resolution steps. Other GitHub refusals keep their\nnext action.\n\n## Check-back\n\nOnce every story from a spec is done and its check date has passed, `forge next` lists the check.\nMeasure it, record it in a fix with `forge spec measure \u003Cslug> --result \"\u003Cresult>\"`, then ask the\nhuman one question. Target met: \"Stop here\" (recommended) or \"Next problem card\". Target\nmissed: \"Change the slice\", \"Remove it\" or \"Find out why\". Adding features is never the default.\nAsk which parts the client doesn't use; each becomes a removal story on the roadmap.\n",{"name":5,"description":7},"main","12460a98eedd86a05e3243158245dfd8b6ee623f",".claude\u002Fskills\u002Fforge",9,"https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge","https:\u002F\u002Fgithub.com\u002Fknacklabs","https:\u002F\u002Fknacklabs.ai","2026-11-15 02:34:18",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add knacklabs\u002Fsymphony-forge --skill forge",{"tool":57,"command":58},"bunx","bunx skills add knacklabs\u002Fsymphony-forge --skill forge",{"tool":60,"command":61},"pnpm","pnpm dlx skills add knacklabs\u002Fsymphony-forge --skill forge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002FSKILL.md",true,[65,71,75,79],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"fde.md","REFERENCE","参考文档",10885,"https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002Ffde.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"migrate-skill.md",4741,"https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002Fmigrate-skill.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"run-reference.md",25237,"https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002Frun-reference.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"standards.md",25342,"https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fforge\u002Fstandards.md",[84,117,124,131,142,165],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":96,"publishedAt":38},"01M6DYCB6Y89E5K32Y68B69PYS","simplified-technical-english","Writes and rewrites text in Simplified Technical English (ASD-STE100), a controlled language for clear technical documentation. Use when the user asks for STE, Simplified Technical English, controlled language, or plain technical writing, and when the user asks to write, rewrite, review, or check technical documentation, procedures, manuals, instructions, warnings, or reports.","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002Fsrc\u002Fforge\u002Ftemplates\u002Fskills\u002Fsimplified-technical-english\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002Fsrc\u002Fforge\u002Ftemplates\u002Fskills\u002Fsimplified-technical-english\u002FSKILL.md",[91],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000018","写作与文案","SCENARIO","使用场景",[97,98,99,100,101,102,103,104,105,106,25,107,108,109,27,110,111,112,113,114,115,116,20],"technical","english","simplified technical english","writing","technical documentation","review","technical writing","documentation","ste","text","write","instructions","user","reports","issue","language","clear","rewrite","manuals","for",{"skillNo":118,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":123,"publishedAt":38},"01M6DYB15X4C4A4025B0ZVCP6Q","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fsimplified-technical-english\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fsimplified-technical-english\u002FSKILL.md",[122],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},[97,98,99,100,101,102,103,104,105,106,25,107,108,109,27,110,111,112,113,114,115,116,20],{"skillNo":125,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":130,"publishedAt":38},"01M6DYACDT517J69KRMM97BRG7","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsimplified-technical-english\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsimplified-technical-english\u002FSKILL.md",[129],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},[97,98,99,100,101,102,103,104,105,106,25,107,108,109,27,110,111,112,113,114,115,116,20],{"skillNo":132,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":38},"01M6DYDAWZVG23SR4B8ETHDQAF","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fforge-v1.2.2\u002Fsrc\u002Fforge\u002Ftemplates\u002Fskill.md",[],[5,136,137,138,31,19,30,29,34,36,25,139,37,27,35,140,141,28,26,33,32,22,23,24,21,20],"spec","setup","pull request","board","Story","build",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":151,"publishedAt":38},"01M6DYD7G88G0Q478GTNAY7Y46","test-audit","Use whenever writing, changing, reviewing, or auditing tests. Gates new and changed tests and guides focused audits of low-value, implementation-coupled, or duplicative coverage and the test-only production seams it demands.","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fforge-v1.2.2\u002F.codex\u002Fskills\u002Ftest-audit\u002FSKILL.md",[148],{"categoryNo":149,"categoryName":150,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000008","测试与质量",[152,153,154,100,155,156,27,157,158,159,160,161,162,163,164],"test audit","test","audit","Production","coverage","only","implementation","gates","tests","guides","it","value","new",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":174,"publishedAt":38},"01M6DYD45AQMFJJ7C57078QY6K","app-baseline","The baseline every Forge client app gets without anyone asking. Use for any frontend or UI work in a Forge client repo, including screens, layout, navigation, forms, tables and prototype demos, before building or changing it.","https:\u002F\u002Fgithub.com\u002Fknacklabs\u002Fsymphony-forge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fforge-v1.2.2\u002F.codex\u002Fskills\u002Fapp-baseline\u002FSKILL.md",[171],{"categoryNo":172,"categoryName":173,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000009","前端开发",[175,176,177,178,179,180,5,181,182,183,27,184,185,186,187,188,162,189,116],"baseline","app","app baseline","frontend","prototype","ui","work","repo","before building","navigation","forms","layout","client","demos","tables"]