Releases
Every released version, generated from CHANGELOG.md. Edit the changesets, then run pnpm release-notes:render; the test suite fails when this page and the changelog drift apart. A release with a hand-written note links to it rather than repeating it here.
0.47.1
Patch Changes
#1842
d2b9c07Thanks @E1i! - An amend of a card that already ended — closed or dropped — changes its record and no longer puts it back in the launch queue: the launch node keeps the card ended until a fresh admission restarts it. An amend of a live card that has not started still queues it as before.#1849
5efecbdThanks @E1i! - A card that stopped before its pull request and is answered with a new commit is now published: the answer node runs tree-pr for it, links the pull request it opens and the card goes to review. Before, only an answer that left no new head was published, and a card answered with a new commit stood with its branch pushed, no pull request and no task.#1860
acf8425Thanks @E1i! - A card already answered with a pushed head and no pull request is now published by the bus: the answer node finds it, runs tree-pr for it once, links the pull request it opens and the card goes to review. Before, such a card stood with no route and the window opened its pull request by hand. A card with a pull request, a dirty tree, a live task or an open owner wait is left as it is; a publish that opens no pull request stops the card for the owner instead of trying again.#1839
b44871fThanks @E1i! - A card session can be granted extra Bash rules, outbound hosts and writes under the home directory by an owner decision, through one grants table inscripts/ports/card-grants.ts. The session settings add exactly the row of their own card and nothing to any other card. The one row is card #2156 by D-705:codex,git initandmkdirunder$TMPDIR, the hosts of the Codex API and of its ChatGPT sign-in, and a write to Codex's home directory.#1869
0b971a3Thanks @E1i! - In a consumer repository the merge node no longer runs git inside the installed package to rebuild the check catalog, which failed there withcatalog_rebuild_failed(«not a git repository»). It now rebuilds in the checkout of the repository it merges for, and when that directory is not a git checkout, or the repository carries no catalog script, it skips the rebuild and logs the reason instead of failing.#1850
e5e962bThanks @E1i! - The card grammar owns its SQL function:registerCardFunctions(db, name)insrc/card/grammar.tsregisterscard_blockson a database the bus opened, and the bus no longer imports the card grammar. The composition root registers it (composeBus,openComposedBus) for every process root that reaches the owner inbox, andpnpm bus:inboxnow runs fromscripts/owner/inbox.ts, which opens the bus through the composition.#1830
450e18dThanks @E1i! - Replacing a witness the bus recorded dead is an amendment, not a downgrade for the owner. A witness is dead when the witness node recorded it unfit on the base, or recorded it contradicting its declared base (green on a base it declared red, red on a base it declared green).intake --admit,intake --amendandbus:request amendnow admit such a replacement without opening awitness.downgradewait; weakening a live witness still waits for the owner. A later green record makes the witness live again.#1823
65b387dThanks @E1i! - The factory starts only through Miko.miko startrunsconstruct-factory --miko, which writesfactory.startedin the bus directory and then starts the bus. Runningconstruct-factorywith no arguments no longer starts anything. Neither launchd agent the factory renders (dev.mikoshi.busanddev.mikoshi.factory.<clone>) hasRunAtLoadnow. Both keep the starter alive only while that mark exists (KeepAlive→PathState), so an agent restarts a factory that Miko started and never starts one on its own. The keep-alive starter (--hold) does nothing until Miko has written the mark.#1864
afe5185Thanks @E1i! - The installed package now carries every runtime file and worker it opens —contract/factory.jsonand the review-planner worker among them — so review and card repair run in a consumer repository instead of stopping onENOENT dist/contract/factory.json.#1851
4b838bbThanks @E1i! -construct intaketakes an optional per-card draft fieldimports, a list of{ "from", "to" }repository paths: the imports the card's placement requires. Intake maps each to its boundary row with the module ownership the ratchet's boundary report uses and markstouchesunclear for every row whose count would exceed its count incontract/ratchet.json, naming the row, its count now and after, and both files, so the card stayswho: windowuntil a person re-places it. The field is not written into the parking card.#1821
6a5f2b2Thanks @E1i! - Intake takes a probe card's report under~/.construct/probes/**as a declared artifact outside the repository: the card parks with no unclear field and goes to whoever the draft names, instead of being held for the window. Any other path under the home directory, and any home path on a card that is not a probe, stays unclear and holds the card for the window.#1835
5654898Thanks @E1i! - The GitHub release of a version is created from a summary within a fixed budget, not from the whole CHANGELOG section. The release workflow stops changesets/action from creating the release and creates it after the publish fromscripts/release-notes/release-body.ts: the first sentence of every changeset with its pull request, under 100000 characters, linking the full CHANGELOG entry at the tag. The version pull request renders the same body in CI and is red when it is over the budget, before the merge publishes anything.
0.47.0
Minor Changes
#1506
7dc9bd7Thanks @E1i! - The witness node now records a witness that cannot fail on the base asunfit, not green: a witness whose run on the base finds no test, or that names a file absent on the base and outside the card's touches, creates and diff. The card stops with a proposed replacement — the test files from the card's diff, red on main.construct intaketakes replacing an unfit witness with a red-on-main one as a refinement, not a downgrade, and reads the owner's standing general decisions in force: under one that says a witness checking paths the card itself creates is a witness of the change, such a witness is replaced without an owner wait.#1526
e404d78Thanks @E1i! -construct run-recordrecords one/implementladder run: where no bus is wired for the directory it appends one line to.construct/runs.jsonl; where one is, the published CLI writes nothing to the bus and refuses, andconstruct-intake run-recordappends one ladder-run event, deduplicated by the record. A record that does not parse or names a field the ledger does not declare is refused with exit2and nothing is written. The ladder's supervisor, watch and handoff read the run from the same source, so no reader stays on a file nobody writes.#1622
490ab35Thanks @E1i! - cli: the board tells a slice apart from a whole card. When intake cuts a card into slices, each slice'scard.admittedcarriesparent(the parent's number and its share, k of n), and the board marks every slice◧ k/n · из #Nin text,--json(parent,mark) and on the page, while a whole card carries no mark. The flow, the page header and--json(tally) count live cards apart from tasks,14 карт = 6 задач, where a task is a parent with all its slices or a whole card.#1612
068a4ecThanks @E1i! - A projectconstruct initgenerates with the node-backend or monorepo preset installs again. Since 2026-11-12,pnpm installin such a project refusedencodeurl@2.0.2, which express pulls in, as a high-risk trust downgrade under the template'strustPolicy: no-downgrade. The generatedpnpm-workspace.yamlnow pinsencodeurlto 2.0.0, the last release before that downgrade, and keepsno-downgradefor it rather than excluding the package from the trust policy. A project generated earlier that hits the refusal can addencodeurl: 2.0.0underoverridesin its ownpnpm-workspace.yaml.
Patch Changes
#1402
6d9ce3dThanks @E1i! - A card that touchessrc/orscripts/now runstests/contract/accepted.test.ts, the test that no module writescontract/accepted.json, among its covering tests.#1595
1eac77dThanks @E1i! - cli: an answer on a card that an amend re-admitted while its pull request is still open is no longer rejected: the card goes back to review, so the review reads the head the answer pushed instead of the bus starting another answer round on the old head. A queued card with no open pull request still rejects an answer.#1489
01b0006Thanks @E1i! - The answer node keeps each of its duties in its own file underscripts/nodes/answer/duties/: choosing the source (source.ts), publishing a tree with no pull request and the empty or dirty round (publishing.ts), the owner's or the stale question and the window's shard decision (stale-question.ts), the outcomes it records (outcomes.ts), the prompt with its CI log (prompt.ts), reading the card tree (tree.ts) and running the client (client.ts).answer-executor.tsnow composes those four executor duties and runs the round;answerer.tsruns the session and owns the window gate rule it hands to the prompt. Behaviour, events and prompts are unchanged. Theanswer-dutiesconcept's owner exists now: a folder owner is read at itsindex.ts, and the factory'sanswer-dutiesoverlaps fall from 42 to 1 —liveSessionInstays inanswerer.ts, whereliveness-sites.known.jsonrecords it for thelive-sessionconcept.#1672
04ebea2Thanks @E1i! - An answer round no longer resumes a card session that has reached the spend warn of its Eddies limit: beside the per-size context line, the answerer reads the session's spend through the same gauges the session's own Eddies warn uses, and at or past the warn the round starts a fresh session. A round that starts fresh at either warn keeps.construct/answer-handoff.mdand puts it into its prompt, as the in-task restart does; a resumed round still removes it.#1750
7888b97Thanks @E1i! - The answer node now recognises a gate command inside any shell line, not only in its declared form. A line that starts withcd <path>;,cd <path> &&orset -o pipefail;, that spells the gate withpnpm --dir <tree>orrun, or that merges stderr and pipes intotailis a gate run, and the round reaches a gate decision instead ofanswer_failed. A pipe's exit is not the gate's exit, so a piped gate run is recorded as red when its output shows the gate failing (ELIFECYCLE,ERR_PNPM_,Command failed with exit code N), and otherwise as a gate that could not run. The exception is a line that setspipefail, which carries the gate's own exit. A gate chained to another command (pnpm typecheck && pnpm lint) is still a gate run, as before. A gate run in the background and a line that only mentions the gate are still not recorded as gate runs.#1448
6a7f79aThanks @E1i! - The answer round of the pre-push gate (scripts/ci/prepush.ts --round <head>) no longer runs the full suite under the shared quality lock when its change would select one: it runs only the tests of the layers the change reaches, none when the change belongs to no layer, and its green line says the full suite is CI's. A card session's pre-push run without--roundis unchanged.#1679
2025e72Thanks @E1i! - An answer session is told to run each gate command exactly as declared, from the tree as cwd, with no cd prefix, no pipe and no background run, because the bus records a gate command only by its declared form. A gate command started in the background records no outcome from its start line, so it is never taken as green. When a round ends with no gate decision, theanswer_faileddenial names every command the session ran that contains a declared gate command but not in its declared form, so the cause reads from the answer log without the transcript.#1555
e1e536fThanks @E1i! - An answer round no longer repeats on a card whose open question already had an empty round. Once a round on aquestion.agentorquestion.ownerstop leaves nothing, the next answer lease is refused before any session and spends no review round, until the owner records a decision on the card, closes its wait, amends the card, or a new commit lands on its head; then the round starts on its own (law Z8). A card held this way opens one owner wait for a decision, so it shows in the inbox, and a decision on the card closes it.#1454
193a898Thanks @E1i! - Under an active window shard, the answer node no longer stops an answer whose changes outside the card's touches all stay within the card's concept: a direct importer of a touched or created file, a file under a test root, or a test-keyed record such asscripts/ci/sandbox-failing.jsonl. The bus commits and pushes the answer and recordsscope.widenedwith those paths in the same transaction ascard.answered. A path under.claude/, an owner path, an R1 path, or any other file still stops the answer as before, and without a window shard nothing changes.#1453
d2a5e22Thanks @E1i! - The answer node no longer dies withEBADFwhen a client run is aborted while the client is still writing. It closed its log files on the abort, and the next output the client sent was written to a closed descriptor. Output that arrives after the abort is now dropped, and the worker keeps running.#1537
5295338Thanks @E1i! - The window can now write a round-limit decision "at head" and leave the sha to the bus. When a decision such ascontinue-fixes PR #N at headcomes in, the bus replacesheadwith the PR's observed head sha.allow-merge --head headworks the same way. If the bus has not observed a head for the PR, the decision is refused and the owner's word stays unused. An answer to a review's findings that reports a proof for each finding is now checked against the findings it was given. If any of them is left unproved, the answer is refused and goes again.#1588
6a1f06cThanks @E1i! - Who decides a stop under a window shard now comes from one table,STOP_KINDSinscripts/policy/shards.ts: each stop kind carries a risk level, and only an R1 kind (the version pull request, the npm stage, security-invariants,.claude/config, owner-merges, workflows, a dropped witness) waits for the owner; every other kind, among them an outside-touches stop and a plain agent question, is the window's to close. A witness moved to another card or into the node-contract-suite is no longer read as a dropped witness, so the window closes that stop under a shard instead of refusing it as the owner's.#1716
5a4f144Thanks @E1i! - The board's bus panel moves. EVENT FLOW is a strip that slides left by the minutes passed since the last refresh, with the newest bar entering highlighted on the right, and fills its cell's height. TOP EVENTS rows carry a share bar, sit at their rank and slide to a new one; a share that rose flashes green, and a family entering or leaving the top four fades. The five bus cells share one height, with TOP EVENTS and RECENT ACTIVITY centred. Every live status dot (bus pulse, node health, session state, crawler state) pulses; red and down states hold still, and all motion stops underprefers-reduced-motion. The workers row reads BUS WORKERS and names the workers whose heartbeat went silent, and the runner terminal uses a thin scrollbar.#1704
385ab2eThanks @E1i! - Board bus panel: the bus moves out of the Miko panel into its own full-width panel under it. The header shows the bus version the database carries (BUS LIVE V<n>), the age of the lastnetwatch.tickpulse, the last event id and the age of the last published board snapshot. EVENT FLOW shows events per minute now and 30 one-minute bars. TOP EVENTS · 30 MIN shows the share of the four busiest event-type families. NODE HEALTH has one green, yellow or red row each for REDUCER (lag in events behind the in-order watermark), SNAPSHOT (red past two publish intervals), NETWATCH (GitHubrate_remaining), WORKERS (alive out of the processes that heartbeat), WAITS (open owner waits) and ALARMS (the newest unclearedboard.alarmand its card). SLOTS has one segmented bar per queue, yellow when the queue is full. On refresh the page compares the old and new slot readings: a newly taken segment fades in with a slow flicker, and a freed one blinks a few times before it goes dark. RECENT ACTIVITY lists the last four events that are not heartbeats or ticks. If no pulse arrives within two pulse intervals, the panel turns red, readsBUS DOWN, and replaces its body with a FLATLINED stamp, the last event and the command that starts the bus. Every figure comes from the bus database.#1723
6efc0e9Thanks @E1i! - The board's bus panel title readsBUS LIVE V<n>(orBUS DOWN V<n>) from the bus version the factory build declares, not from the version stamp of the bus database, which an older bus left at 2 while the build is at 5.#1817
397acdeThanks @E1i! - Board Miko block: the columns now read Miko, CRAWLERS, DAEMONS. DAEMONS is its own bevelled cell, with the DAEMONS label on the left of its header and anINSTALLED · Nchip on the right. A sleeping SD card now fills its slot, rides 20 px out of it and is dimmed, and only a LOADED card sits fully in. The card name is sized so the longest installed name fits inside the card, soBROWSER_LABis no longer clipped. The hex-iris sketch now draws the angular eye outline and the four corner scan brackets. The status line shows the repository path with~for the home directory.#1444
ea53498Thanks @E1i! -pnpm boardwith no flag prints a short text reading of the bus — the release progress, the owner's waits, the cards by stage, the live backlog by lane and the services — instead of the HTML page, which on the stored bus was 8.7 MB against 8 KB for the text; a stopped bus prints its stop line, the snapshot age and the waits as text. The page now prints only under--html;--jsonand--planprint what they did.#1673
172b108Thanks @E1i! - cli: the board groups the slices of one task under a single task line,task #N · slices merged m of n, inconstruct boardand on the page. It gathers slices from different lanes. On the page each task is a group that starts collapsed and remembers whether it is open across reloads. An owner wait on the task or on any of its slices appears on the task line, so collapsing the group never hides it. The board's own text is all English and counts read1 card/N cardsand1 task/N tasks; the slice mark reads◧ k/n · of #N. On the page the refresh shows a countdown that survives a reload, the load figure counts up, the lag item in "waits for you" is a button that re-reads the board at once, and the header shows the interface version, the package version plus the short build sha stamped at build time.#1713
a85875dThanks @E1i! - The board no longer drops a card session from SERVICES while it runs a long command. A session that started and has not ended stays on the board whatever the age of its last heartbeat; when nothing has beaten for ten minutes its line readsWAITING · NO PULSE <n> mininstead of disappearing. The launch node'scard.pulse, written every five minutes while the session's process is alive, now counts as that session's beat, so a session inside a 29-minute test run reads live.#1774
b2afbc8Thanks @E1i! - cli: the board's LIVE filter now holds after a reload. The page sets the filter named by the anchor (#show-live) or the last stored view before its first render, so the highlighted tab and the list always agree. LIVE shows only running work and cards of the open release, so a backlog card held by an owner decision is left out of it. Every card that is not running shows its release and its blocker or hold reason in the HTML and text boards. The Miko panel shows its mode: HIJACK has a red chip and readsbreached <path>, an own repository readsown repo <path>. It also has a DAEMONS cell that reads the daemons from thedaemon:frontmatter of the skill manifests: one SD card per installed daemon, LOADED or asleep as observed in the window heartbeat's skills, and a status pane that follows the hovered card.#1707
750a276Thanks @E1i! - The bus's HTML board carries only live cards and the cards merged in the last 24 hours:board-data.jsdrops from about 13.5 MB to about 13 KB.board.htmlis a data-free shell written only when its template changes, andboard-data.jsis rewritten every 10 seconds by a board timer that runs outside the bus tick on a read-only connection, so the board neither waits for a slow tick nor slows it. History leaves the page:pnpm board --allwritesboard-history.htmlbesidebus.dbon demand.#1481
73693e3Thanks @E1i! - The board page reads its style and its script from static files beside it,scripts/cli/board-page/style.cssandscripts/cli/board-page/script.js, which ship with the factory build; the script gets the page's names as data when the page renders, andboard-page.tsdrops from 1940 lines to 1280.#1697
5a90367Thanks @E1i! - Board session cards: the grid's minimum column width is now 20rem, and no card overflows its column. The terminal block is six lines tall and scrolls inside itself. The header slot counter counts live sessions, so three live launch runners readlaunch 3/3. A runner card shows its model, e.g.(SONNET 5.5), taken from the session heartbeat. The Miko panel shows the window model, the window-core version the loop loaded, the handoff STATUS and size, and the skills the window session loaded. Its crawlers cell reads the window's live background subagents.miko:watchnow writes them intowindow.heartbeatascrawlers(id, kind, description, started_at, state, ctx, spent), next toskillsandcore. The cell showsLIVE · N, one row per crawler marked CRAWLING or IDLE with its CTX and SPENT, and a FLATLINED stamp when none is live.#1670
dd0d831Thanks @E1i! - cli: the board's session cards show a round countdown coloured by the share of the expected round spent (OVER TIME past it), the current command in full in a terminal block, and the round's steps; Miko, her crawlers and the bus pulse and slots now share one full-width strip in place of the separate BUS card.#1726
b90f7d9Thanks @E1i! - The board names what holds the head of each lane, from thelane.heldevent the launch node records.#1619
3277d7bThanks @E1i! - When the owner-waits or cards projection is behind its events, the board no longer hides the section. In text,--jsonand the page it shows the last reduced waits and cards, with a mark saying how many events and seconds the list is behind. A current reading shows no mark.#1547
1623d8fThanks @E1i! -construct intake --amend,--exportand the launch node take a card's body from its latestcard.admitted, not from thecard_bodiesfold, which can lag behind it. An amend made right after an admit builds on the admitted text instead of reverting it,--exportshows an admission minutes old, and a session continued after an amend starts its handoff from the amended body. A fresh launch waits for the fold of the latest admission that carries a body, so a later admission without a text no longer hides an unfolded amend.#1475
1e919feThanks @E1i! - Bus event payloads are declared in one catalogue,EVENT_PAYLOADSinscripts/core/events.ts;contract/factory.jsonmeasures its writers against it and reads all 112 event types complete,card.admittedwith the keysappendCardEventadds. A lifted launch stop re-admits the card from its last admission, keeping only the keys the catalogue declares, so an admission written before the catalogue (withtextVerifiedorbodyMatchesAdmission) is read instead of throwing.#1543
fc39d4cThanks @E1i! - The bus is read through one port,scripts/ports/bus-read.ts. A reader asks it for a slice of one event type with the payload fields it needs, and a field the event's contract does not declare is refused. A projection that is behind its events reads stale, through the watermark inscripts/core/bus-readings.ts, instead of answering with old rows. The port writes nothing. The board page's gauges and shard decisions, and the window's equivalence ticks, now read through it. A new concept,bus-read, counts every other SQL read of a bus table, and the ratchet only lets that count fall. Each moved reader returns what it returned before: the shard decisions are the newest twenty with a stop, the newest first; a card whose newest heartbeat is not JSON is left off the gauges; legacy equivalence ticks still count. Two readers the card named are not moved yet.src/commands/board/bus.tsmay import onlyscripts/core/bus-readings.ts, and core may not re-export a port.src/commands/doctor/factory.tsruns no SQL of its own: it reaches the bus throughfactoryLiveness, which stays outside the port (§10a), and through the decisions file. Where the port should live so thatsrc/can read through it is a question for the owner.#1701
935b45fThanks @E1i! - Every bus tick now writes one line with the duration of each of its steps: NetWatch.poll, intake, reduce, WindowRequests, second reduce, deriveQueues, setStepStatuses, StalledSessions and board. The bus database gains an index on events by pull request and head, so the merge and update candidates and the last status set on a head no longer walk every event of their type; on a copy of the bus snapshot, deriveQueues drops from about a minute to about a second and derives the same queues. The decisions in force are read once per queue derivation instead of once per lookup.#1513
f46732dThanks @E1i! -construct intake --admitno longer reads a card whose header changed —who:,priority:,release:or any other header line beyond the card line andtouches:— as already admitted: the change is recorded as an amend.construct intake --moverecords incard.movedthe body sha of the latestcard.admittedin the bus, not of the parking file, so a move right after an amend carries the amended body.#1572
3f34abdThanks @E1i! - An amend that widens the touches over the paths the answer node refused now lifts that stop without the owner: the next answer closes the owner wait the stop opened, so the merge node no longer parks the pull request on it. A card session that exits at the context line or a boundary while its card is held now records acard.waitingwith reasonheldinstead of standing silent. The merge node refuses a head that changes files outside the card's touches and creates (tests, generated twins and the card's changeset follow them, as at intake), waits on it and merges once an amend covers them; the Z3 × merge cell ofscripts/nodes/laws.tsis witnessed and its gap leavescontract/ratchet.json.#1517
4525792Thanks @E1i! -task:startreads a card's body from the latestcard.admittedin the bus that carries it, not from thecard_bodiesprojection, so a card amended moments before its start is no longer refused as edited past intake while the reducer has not folded the amend yet. A parking file that differs from the admitted body is not read.#1561
6ea4c7dThanks @E1i! - One owner word on a card is now one act. A decision recorded with--card #Nqueues an answer task for card N after aquestion.agentstop on its pull request, as it already did after aquestion.ownerstop. Before, an answer task that the stop had already spent kept the decision's continuation from being queued. Closing a card's wait with the owner's channel wordQ<N>: …records that word as a decision bound to the card, so the same answer task is queued. A laterdecisions:add --card #Nwith the same words writes no second decision and queues no second task. When a card stopped on paths outside its touches gets a decision bound to it, or its wait is closed with the owner's word that no widening is needed, the launch hold is lifted and the next launch cuts the card's tree from main.#1474
a3f893eThanks @E1i! - A card session now stops at the line of its card's size:cardContextLineBySizein.claude/eddies.jsongives XS, S and M 150k and L 500k, andcardContextLinestays as the line of a session whose size is unknown. The session carries the size inCONSTRUCT_CARD_SIZE, an L session compacts above its line, and the board reads each card under its own line.#1431
9e3aaadThanks @E1i! -pnpm card:measure --before <ts> --after <ts>reads the bus and prints, per merged card and by size, the sessions and tokens, the verdict reasons by category, the tokens by role and the mechanism noise among the changes rounds; it writes nothing.--list <category>prints the texts of one category.#1651
69975bbThanks @E1i! - The card path reason pattern now lives with the card model, so the card contract no longer reaches into the launch node.#1584
340a454Thanks @E1i! - Every card that stands in the queue now carries a wait record built from the card section ofcontract/factory.json. The section's newwaitstable gives each kind of wait (launch,depends,lane,stopped,owner) the one who lifts it (bus, window or owner) and a deadline in minutes. Each record also names the event that opened the wait. A card behind another card's open pull request in its lane gets alanewait. The board's ready, waiting and blocked columns and the handoff'sblocked:line print only that record. A projection reading that is not stale names the event it was read at. The board's waits and the handoff'sblocked:line name the event their copy was read at, or, when it is stale, the event it was reduced through.#1790
3b2e5f3Thanks @E1i! - Thecardstable of the bus now has one writer module: linking a card to its pull request is card's own operation inscripts/core/card-automaton.ts, taken by the link-observed and pr-opened transitions, and the pr folds only compute the refusal and hand it over as a value. Theone-writer-per-tablecontract test now holdscardsto that one writer.#1432
95ca74bThanks @E1i! - CI on a commit or a pull request is read through one pure module,src/commands/ci/state.ts, with noghimport and no spawn. The board and the portscripts/ports/ci-reading.ts, which holds a GitHub and an in-memory adapter, both import it, and a test fails on a read outside it. A long failed-job log now keeps its later failure block when earlier error lines would have filled the prompt, and aghoutput over a mebibyte reads whole instead of failing.#1657
9c54a53Thanks @E1i! - A vitest shard weight is now a test file's whole wall time in its shard: environment, prepare, setup, import and collect, and its tests. Before, it was the JSON report's test span, which leaves out everything before the first test, so files heavy in imports or setup were underweighted and piled into one shard. CI's report-merge step runsscripts/ci/file-weights-reporter.ts, which writesfile-weights.jsonbesidevitest.jsonin thevitest-reportartifact.pnpm test:weights --from mainand--checkread only that file. They skip a main run whose artifact predates it, and when no run carries it they leave the table as it is and print a line saying so.#1462
4256160Thanks @E1i! -construct.jsongains an optionalclientbranch besidesync:{ id, model, roles: { launch, answer, review, window } }, every key optional, each role naming a client id. With no branch nothing changes: the default client andauto, andmanifestVersionstays 6.syncnever writes the branch and keeps it as it read it, and a repeatedinitkeeps it from the previous record. The client port looks an adapter up by id (clientAdapterById) and by role (clientForRole); an id with no adapter is a refusal that names the id and the known ones, andclientAdapter()with no argument still returns the default adapter for every present caller. No caller selects a client from the record yet. A branch with no usable key reads as no branch.doctornames, inunknownClientsand in one line, each id the branch names that no adapter carries, beside the known ones; it does not moveok. An older build that reads a record with the branch reads it: run againstmain'ssrc/manifest.ts,readManifestreturned the record atmanifestVersion6 withclientcarried through unchanged, becauseupgradeManifestspreads the raw record; that build'ssynckeeps the branch, and only its repeatedinitdrops it.#1567
4564296Thanks @E1i! - The module boundary check now reads the status of each side of an edge. An undecided module may import the contract of a decided module it names inmay_use; without that entry, into an undecided module, or from a decided module into an undecided one, the edge stays a violation, andmay_usenever makes an import into another module's internals lawful. The modules that show the owner's commands —atlas,board,project,intakeandui— namecommand-registryinmay_useand stay undecided. Two ledger rows,boundary:board->command-registryandboundary:project->command-registry, vanish and leavecontract/ratchet.json; no row is added.#1654
499ab82Thanks @E1i! - Registration happens only inscripts/supervisor/composition.ts, and lint holds it.eslint.config.mjsadds two rules.composition/registers-only-in-compositionrefuses, underscripts/outside the tests, any registration list the composition holds (today the projection listsfoldsandincremental), and everywhere refuses a registration at import time: such a list outside a function, aregister*call, or apush,unshift,splice,setoraddon a binding that is imported or exported. A script filling its own collection is not a registration.composition/no-side-effects-on-importkeepscomposition.tsto imports, types, functions and constant values. On current main neither rule reports anything, so no registration moves.#1471
a843506Thanks @E1i! - Each concept incontract/factory.jsonnow names its owner's export in anownerExportcolumn, besideowner. Generation fails when a concept markedownerExistshas an owner file that does not export that name, so renaming the owning function no longer goes unnoticed. A concept whose owner is not built yet keepsownerExists: falseandownerExport: null. The check stops at the export: it does not check that anything uses that export. It reads only the owner file's own statements, so a name the owner exposes only throughexport * fromis not seen and reads as a mismatch.#1470
b4bfb0aThanks @E1i! - Each concept incontract/factory.jsonnow carries alorecolumn, the in-universe name it holds, ornull. Generation fails when two concepts hold the same lore name, so one lore name can no longer cover two different things.#1640
5e841a6Thanks @E1i! - cli:construct-answer <Q|#card> "words"is a bin of its own:pnpm owner:answerfrom the installed package, asconstruct-intakeis toconstruct intake. It finds the bus of the repository it runs in and its owner channel, says the word and writes oneowner.answerrequest. The publishedconstructstays without an answer command and writes nothing into a bus.#1482
cd2e935Thanks @E1i! -pnpm decisions:addrefuses anallow-mergeorcontinue-fixesrecord whose sha is not a full observed head of its pull request and names the full head, andpnpm handoff:writeacceptsSTATUS: OWNER — boundary: round-limitunder a decisions shard.#1591
dc6c248Thanks @E1i! - The event catalogue, its read and write helpers, and the card waits inscripts/core/events.tsare now the text the recorded factory contract generates, and a test proves every versioned contract section carries a version that the compatibility gate holds.#1480
89e98daThanks @E1i! - After the sixsrc/program.tscommands the contract-surface change covered, the scripts section ofcontract/surface.jsonnow covers the 39package.jsonscripts that take flags, and every other script in the registry.scripts/contract/surface.tswrites it from a static reading of each script's entry: its flags (parseArgsoptions and--flagliterals), whether it prints a--jsonform, the exit codes it sets, and whether a strictparseArgsrefuses an unknown flag.tests/contract/surface-scripts.test.tsfails on a flag, a json form, an exit code or a refusal that a script reads as and the section does not declare.#1477
7caa1bbThanks @E1i! -contract/surface.jsondeclares every command's--jsonforms, exit codes (nowatlasandsaytoo) and unknown-flag refusal, andtests/contract/contract-surface.test.tsfails on one it does not declare.contract:bumpdiffs the two new sections, andcost --expect --jsonnow carries a top-levelschemaVersionlike every other contracted--jsonoutput.#1637
c839088Thanks @E1i! - Adds the overlap model and thepr_orderorder of pull requests, and runs it in the bus.scripts/core/order/overlap.tsdecides when two path sets overlap: they share a path once derived registries are removed, or they meet the same declared contention area.group.tsturns that into groups of open pull requests.turn.tsfolds the newpr.orderedevent into thepr_orderprojection, derivesturnOffor a group, and countsneedsUpdateandneedsVerificationin shadow. The turn skips a member parked on achangesverdict, red CI, a queued or leased answer, a card hold or an open owner question, and goes to a member holding a leased update or merge; a pull request not observed yet is grouped by its card's declared touches.needsUpdateholds on GitHubdirty, on a path overlap with what main changed since the head, on a truncated main, and on CI red on the pull request while green on main; the bus records no CI of main yet, so that last condition counts nothing in the running bus until O3 (#1916), the slice that first acts onneedsUpdate, records it. The supervisor runs this fold on every tick: it writespr.orderedonce per life of a pull request, when it first reaches pass + green, prints the shadow counts, which nothing acts on yet, and records each change of the groups, their turns and the shadow counts as apr.groupsevent. The board's services screen reads the latestpr.groupsand shows each group with its modules and its turn, and the shadow counts, so the product build carries no bus code. The window requestorder.move --pr <N> [--before <N>]writespr.ordered {before, by: window}, which moves the pull request ahead of the one it names, or to the tail.importClosuremoved from the supervisor toscripts/core/import-closure.ts.scripts/core/order/is the new moduleorder,import-closure.tsbelongs tosession, and session and window may useorder.#1699
5fe6187Thanks @E1i! - The bus event catalog and the event lists of the bus readings come from declarations:declarations/events/(one file per event type, with itsconstantand itspayloadkeys, ornullfor a name with no catalogued payload) anddeclarations/readings/(one file per projection, with the event types it reads, whether it is reduced in order, and the types folded on append).pnpm declarations:updatevalidates them and assembles, sorted by file name,scripts/core/events.ts(the constants andEVENT_PAYLOADS) andscripts/core/projection-types.ts(PROJECTION_TYPES,REDUCED_IN_ORDERand the types folded on append, whichscripts/core/bus-readings.tsreads); both are generated rows rebuilt on update, so two cards that each add an event file no longer overlap on the catalog. A new event is one new file.#1635
883a663Thanks @E1i! - The edge lists of thesrc/dependency policy come fromdeclarations/may-use/, one file per module ofinternal-modules.json, listingmay_use(the modules it may import),may_use_factory(the files underscripts/it may import) andmay_use_factory_within(more of them for a sub-folder).pnpm declarations:updatevalidates the entries and assembles them, sorted by file name, intocontract/eslint-edges.json.eslint.config.mjsreadsALLOWED_INTERNAL_IMPORTS,CORE_FILES_SRC_MAY_IMPORTandALLOWED_FACTORY_IMPORTSfrom that file and keeps all of its own rules. To add an edge, add or edit a declaration;eslint.config.mjsstays as it is.#1653
8089850Thanks @E1i! - The factory path registry and the layer map come from declarations:declarations/workers/(one file per worker and its entry file) anddeclarations/entries/(one file per named path, with itsgroup, thelayerthat places it and thelistsit belongs to).pnpm declarations:updatevalidates them and assembles, sorted by file name,scripts/core/factory-paths.ts(FACTORY_RUNTIME,FACTORY_WORKERS,FACTORY_NAMED, the folder lists andFACTORY_LISTS) andscripts/core/layer-map.json(bus:<node>rows from the worker files, the rest from the entries); both are generated rows rebuilt on update. The shared bus code is one list now: the selector'sBUS_SHAREDand the supervisor'sSHARED_BUS_CODEare bothFACTORY_LISTS.busShared, and the law nodes and the composition's worker entries readFACTORY_WORKERS.#1633
5adb15dThanks @E1i! - Modules declare what they own indeclarations/, one JSON file per entry grouped by kind:modules(layer,paths,exclude,shared),contention(thebus-restartarea until P-restart) andgenerated, which now holds the generated-file rows thatscripts/core/generated-files.tsused to list. The package shipsdeclarations/generated.pnpm declarations:updatechecks that every tracked file has exactly one owner and rebuildscontract/module-files.json.#1527
44f23c8Thanks @E1i! -scripts/coreruns no git and imports nochild_process: each node's composition reads the code sha throughscripts/ports/git.tsand hands it torunNode, and the callers of the push policy handpushPolicyOfthe port's reader.#1773
802bbc3Thanks @E1i! - Finding the tests that cover a card's touches reads each file at most once:TestCoveragekeeps every text it has read, and a test is read once and checked against every touched name. On a large pull request the review plan step no longer spends minutes re-reading the same tests. The covering tests found are unchanged.#1787
5fdf421Thanks @E1i! - templates: the browser-lab skill now declaresdaemon: BROWSER_LABanddaemon-sketch: hex-irisin its frontmatter, so the board's DAEMONS cell lists it as installed. The daemon's mutations come from the adapters that are actually present: each.construct/daemon/<name>/directory holding anadapter.jsonis mutationver_<name>of BROWSER_LAB. Thedaemon-mutationsfrontmatter field is no longer read.#1413
218d695Thanks @E1i! - The history of owner decisions readsdecision.recordedevents, so every recorded decision keeps its own event and date whatever thedecisionstable holds, and a decision number stays given after its row has left the table.#1501
a9741f9Thanks @E1i! - A decision imported fromowner-decisions.mdwhose words end it «до YYYY-MM-DDTHH:MMZ» now expires at that term. Before, the import read a term only from an· untiltail, so it left the bus'suntilcolumn empty and the decision stayed in force after its date. The import now takes a single calendar term after «до» as the decision's term: it writes· until <term>into the bound text, which fills the column, it leaves out a decision whose term has passed, andpnpm decisionsno longer prints such a decision to a session. A bare date or two different terms in one decision are left as they were.#1497
aa81c7bThanks @E1i! -decisions:addno longer gives one number to two decisions or leaves the decisions files in a state that blocks every later decision. It holds an exclusive lock file,owner-decisions.md.lock, while it reads both files, picks the next number, writes, and records the decision in the bus. A seconddecisions:addwaits up to five seconds for that lock, then stops and writes nothing. The refusal names the process holding the lock and says to remove the lock file if nodecisions:addis running. A failed add restores only a file that still holds what it wrote, so it never erases what another writer put there. When older decisions move to the archive, every record of a number moves together, or none of them do, so one number never ends up in both the working file and the archive.--supersedes D-Nnow retires every record of D-N. A number that appears twice is refused with the command that resolves it:pnpm decisions:add --supersedes D-N "[owner] …". Rebuilding the decisions file from the bus keeps both files unchanged if the rebuilt files would fail the check.#1717
f8103ddThanks @E1i! - A derived contract file a card changes outside its touches now follows only when its registered generator or measure, rerun on the card's tree, reproduces it exactly. A hand edit the rerun does not reproduce is refused, and growth of a measured file (a new known violation, a ratchet row that grows) waits for the owner under a numbered wait. Launch, answer and update share the one check.#1574
5fb714bThanks @E1i! - The owner wait a card opens after an empty answer round now closes when one of the exits its own text names has happened: a new head on the card's pull request, an amend of the card, or a decision bound to it. Before, a new head only let the next answer round start and left the wait open, so the merge of that head was deniedowner_question_openon a question its own text called lifted. A decision wait of the card opened by any other path is left open.#1487
5412b36Thanks @E1i! - One supervision for card and answer sessions. A window start ends with its window session, so a later takeover is no longer refused by a start that never ends.bus:runsweeps the leased launch and answer tasks: a session with no push and no context change past 30 minutes is closed and queued again when its process is gone, and raises onesession.stalledevent with its reason while it lives. The pid check of a recorded worker moved fromreview-bg.tstorecorded-worker.ts, and the launch node reads a card session whose recorded pid is gone as ended. An answer round merges main into the card tree before its session through the update node's merge, and a conflicting merge leaves the tree as it was and goes the update node's conflict path. A pull request the update node brought up to date with main is queued for merge without a window step.#1472
b4dd424Thanks @E1i! -pnpm decisions:add --card #N --creates <path>adds a file the owner's decision requires to the card's touches before the decision is requested, so the card does not stop on a touch outside its declaration. A refused witness downgrade at intake prints the readypnpm decisions:addcommand with the exact phrase intake accepts, and intake now accepts a card-bound decision that names the card, the witness ids and the word «понижение» in any order.scripts/ci/sandbox-failing.jsonlis a shared append file, so cards that append to it no longer wait for each other.#1533
8d205ddThanks @E1i! - Intake no longer admitscontract/factory.jsonin a card's touches: it removes the entry and prints a correction,touches — contract/factory.json → (removed) — …, namingscripts/contract/factory/*.tsas the contract's source and the bus as the file's writer. After a card session ends, the shift runspnpm contract:updatein the card tree, when the tree carriescontract/factory.json, and commits the rebuilt contract in the same commit as the sources that changed it, before the pull request opens. A session's own edit of the file is overwritten by that rebuild. When the bus merges a freshorigin/main, a conflict on the rebuilt files takes main's side and the contract is rebuilt again. A rebuild that fails opens no pull request and returns the card to its session once, withtwin-unbuilt, to fix the sources.#1445
1c02d8aThanks @E1i! - Every port incontract/factory.jsonnow records which language it speaks:factorywhen its exported surface names only the factory's own words,technologywhen it names a technology such asgit,gh,lsoforstdout, with those words listed intechnologyWordsso a reader can check the mark. The generator keeps no list of technology words: each technology port declares its own in an exportedTECHNOLOGY_WORDS, the client adapter contributes its id, and the generator only collects them, so a new word is added in its adapter alone.#1439
fd3c263Thanks @E1i! -contract/factory.jsonversions its bus, card, ports and nodes sections, andpnpm contract:bumpis red when a section changes without its version growing.#1426
8998460Thanks @E1i! - The generated files are listed once, inscripts/core/generated-files.ts: two cards sharing only such a file no longer overlap, an update rebuilds them after a merge of main, and the contract records get a layer of their own.#1648
97d7defThanks @E1i! - A generated file that the update rebuilds no longer counts as an overlap, and a generated file it does not rebuild still does. The rowsmoduleFiles(contract/module-files.json),eslint-edges(contract/eslint-edges.json) andmodel(architecture/model.md) indeclarations/generated/are nowrebuiltOnUpdate: true, so the update rebuilds them after a merge of main. Before, a conflict on one of them stopped the card.scripts/core/order/overlap.tsnow treats as derived only the generated rows withrebuiltOnUpdate: true, soknownViolations,compositionand the rows with no rebuild overlap again. When the launch lays out lanes,scripts/nodes/launch/lane-assign.tsremoves derived paths from a card's touches with the sameeffectivePathsfunction before it compares two cards, and keeps no exception list of its own.node-launchmay now useorder.#1463
1c34dbeThanks @E1i! - The ladder (scripts/ladder/) runs git only through the portscripts/ports/git.ts, which now holds a process adapter and an in-memory one, and a test fails on a git call in the ladder outside it. The git overlaps the factory counts drop from 72 to 53. A git error inside the ladder supervisor now carries git's stderr in its message instead of printing it to the supervisor log.#1505
f8b1bb4Thanks @E1i! - The answer, close, launch and review nodes now run git only throughscripts/ports/git.ts:answerer.ts,answer/duties/tree.ts,close-executor.ts,ended-card-trees.ts,lane-assign.ts,launch-root.ts,launch-starter.ts,tree-pr-cli.ts,depth-sources.tsandreviewer.tscallprocessGitinstead of spawning git themselves. Each call keeps its arguments and its error. A seal test,scripts/tests/ports/git-seal-nodes.test.ts, fails when a node calls git outside the port. The ratchet'soverlaps:gitgoes down from 53 to 38.#1507
e88391aThanks @E1i! - The release and contract scripts now run git only throughscripts/ports/git.ts:contract/bump.ts,contract/declared.ts,contract/json-samples.ts,contract/surface.ts,release/changesets.ts,release/evidence.tsandrelease/security-diff.tscallprocessGitinstead of spawning git themselves. Each call keeps its arguments and its outcome. A seal test,scripts/tests/ports/git-seal-release-contract.test.ts, fails when a release or contract script calls git outside the port. The ratchet'soverlaps:gitgoes down from 38 to 27.#1512
93b1e6eThanks @E1i! - The window, ci, supervisor, tree and remaining scripts run git only throughscripts/ports/git.ts, with a seal test andoverlaps:gitdown to 0.#1459
485904cThanks @E1i! - The STATUS line of a handoff is now read in one place,scripts/core/handoff-status.ts, and the last STATUS line is the status everywhere. The board used to show the first STATUS line while the loop, the tab window andmiko exitacted on the last, so a handoff that moved from OWNER to CONTINUE could still show as waiting for the owner. A test fails when a STATUS parse appears outside that module.handoff:writeunder a decisions shard now acceptsSTATUS: OWNERwhen the handoff'sowner waitsnames an open question, since the window cannot decide an item the owner already holds.#1789
aaa84dcThanks @E1i! - Theheartbeatstable of the bus now has one writer module: retiring the heartbeat rows of a previous generation is a bus operation inscripts/core/db.ts, beside the beat it records, and the supervisor only judges which processes are gone. Theone-writer-per-tablecontract test now holdsheartbeatsto that one writer.#1718
80a5a26Thanks @E1i! - A session stop that namescontract/factory.jsonoutside a card's touches no longer holds the card's launch. That file is a generated twin, which intake already removes from touches, so it now counts as covered. Before, launch kept releasing the card until the owner closed the wait by hand.#1420
cb22004Thanks @E1i! - A ready card with no live depends no longer waits behind a long chain when every lane is occupied: lane layout moves it to the least loaded lane it has no touches overlap with, when that lane holds fewer waiting cards than its own by more than the size of the moving part. A card with real depends, a card the owner moved, a parent with a dependant in its lane and a card overlapping a started card stay where they are.#1589
8c45420Thanks @E1i! -intake --admitand--amendnow read the owner's standing decision that moving a witness to another card is not a downgrade. They read it through the decisions port. A removed witness no longer opens an owner wait when another admitted card that has not ended holds the samerunandtest. A witness that no card holds still waits for the owner. Every wait intake leaves now writes acard.waitingwith a wait record. The record uses the kinds and terms of the card section'swaitstable: what the card waits for, who lifts the wait and the deadline. Intake leaves four such waits: unmerged depends (the bus lifts it), a witness downgrade (the owner), a card held until its corrections are confirmed (the owner, or the window under a shard) and a card given to the window (the window). The law registry now has witnesses for Z3 × intake and Z4 × intake in place of their gap rows, andcontract/ratchet.jsondrops both rows.#1784
68c4d47Thanks @E1i! -construct intake --draftadmits a draft into the bus all or nothing: everycard.admittedand window wait of the draft is written in one transaction, after the creates-owner check has passed for every card of it. A refusal that ends "Nothing was admitted." — a later card creating a file its touches do not reach the owner of, or naming a release the bus has not opened — now leaves no card of that draft admitted, where before the cards ahead of it stayed in the bus.#1492
7e95095Thanks @E1i! - Intake no longer proposes slices for a card whose draft stateswhole:: the complexity, volume and risk seams write noslice:lines for it, and its risk seam alone no longer holds it for confirmation. When other cards of the run wait for confirmation, a whole card is not listed under Held: it prints one line,Whole: <card> (whole: <reason>), with noseam:,slice:orrisk:lines under it. A lock file (pnpm-lock.yaml,package-lock.json,yarn.lockand the like) is grouped with thepackage.jsonorpnpm-workspace.yamlin its directory or below it, and a lock file with no manifest among the touches rides with another touch, so no slice is ever just the lock file.#1478
aa3a637Thanks @E1i! -construct boardandconstruct costread ladder runs from the bus (ladder-run events, bus version 3), falling back to.construct/runs.jsonlonly while the bus holds none;pnpm bus:importmoves the frozen file in once and is the only writer, since nothing appends ladder-run events going forward.#1491
90eb6c0Thanks @E1i! - The factory keep-alive no longer restartsconstruct-factoryevery 20 seconds while the factory is running. The launchd agent ran the starter, the starter found the bus processes running, left them alone and exited 0, and launchd started it again: thousands of launches a day, enough to raise the machine's load. The agent now runsconstruct-factory --hold, which starts what is missing and then stays up while the supervisor of its bus runs, checking every 20 seconds; once the supervisor is gone it exits non-zero and launchd starts the factory again. Run by hand,construct-factorystill starts the factory and returns. An agent installed by an older version is rewritten the next timeconstruct-factoryruns in its repository.#1684
8971d55Thanks @E1i! - The bus no longer kills a live session for being silent or over time. A launch session with no heartbeat for 20 minutes, or one running past its time limit, now getsboard.alarmandsession.stalledonce per stall and keeps running. The same applies to a review session that stalls once or twice on a head, and to one that reaches its 20-minute ceiling. The review client is no longer spawned with a SIGKILL timeout, and a review session that has written its verdict is no longer SIGKILLed: the worker waits for it to end on its own. The owner's stop (pnpm bus:request owner.stop --card <N>) still ends a launch session. A review session that stalls twice keeps its task, which is no longer withdrawn under it. Card sessions start withCLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1, so a command that hits its Bash timeout is stopped instead of moving to the background and holding the run open.#1587
7a73d23Thanks @E1i! - A card that drops an import may now delete the entry of.dependency-cruiser-known-violations.jsonthat the import made stale, without that file in its touches (D-514). The answer round, the review and the merge let the file follow the touches only when the change removes entries and adds or alters none; the merge reads that from the pull request's patch and the file at its head. A grown or altered list stays outside the touches: the answer node still drops it and sends the answer back, and the merge still refuses it.#1676
2f58803Thanks @E1i! - A lane chain orders a card only after cards that can still launch: a dropped card, and a card whose depends reach a dropped card through any chain of depends, leave every chain, and a queued card already chained behind one of them is laid out again on the next lane layout. A queued card whose depends name a dropped card opens one owner wait (need: decision) naming both cards, once per card and dependency; the card itself is neither dropped nor amended.#1683
03221e3Thanks @E1i! - Lane order on a shared file follows release priority, never admission time. A card is never chained behind a card that depends on it, directly or through its depends, and a card of better priority (its own, or the best of the cards it blocks) is never chained behind a waiting card of worse priority; a readmitted card takes its place in that order. A queued card already in the lane is chained again behind a card that now comes before it. A started card keeps its place, and cards of one priority keep the chain they were given.#1769
631cda0Thanks @E1i! -construct boardno longer prints lanes: the Backlog lists whole cards by their stage, then in the order the bus hands them, with no lane heading, and the Flow tab has no lane head line. The empty-flow hint admits a card aspnpm intake --admit <parking>/<N>.md.#1770
fdbe05dThanks @E1i! - Intake takes and writes no lane. An admission, an amendment and a move record no lane in their events, intake lays nolane.assignedand no lane directory in the parking, and an admitted card body carries no lane; the launch node lays lanes on its own pass, as before.#1768
0e821f9Thanks @E1i! - Launch no longer needs a lane. An admitted card with no lane is launchable: the launch node selects it by its start order and its depends, holds it only on a touches overlap, an unmerged dependency or a full machine, and starts it. A card that still carries a lane launches as before.#1485
1ce99deThanks @E1i! - The launch worker is now split into its composition root and its node.scripts/nodes/launch/launch-root.tsis the entrybus:launchstarts: it wires the starter ports, the ladder steps and the report readers.scripts/nodes/launch/launch-worker.tskeeps only the launch node. Behaviour does not change. The file no longer goes over the line threshold, so its entry leavescontract/ratchet.json.#1552
5b5c3efThanks @E1i! - The law registry no longer has a cell that names a merged card. Six cells now have a witness that calls the code of its own node, measured by V8 coverage: Z2 × answer, Z2 × launch, Z2 × update, Z3 × answer, Z4 × answer and Z5 × launch. The answer witnesses run throughAnswerNodeand the update witness throughUpdateNode, not their executors. The launch witnesses read the handoff and the report throughlaunch-root.ts. Their gap rows leavecontract/ratchet.json. No merged card's witness (#1672, #1754, #1764, #1767, #1789) calls its node, so each cell that named one of those cards, and each cell still waiting for a witness, now names the open card #1823, law-cells-40-witnesses. The Z4 cells keep #1740 beside it, and Z3 × merge names #1784. The frozen list of 31 cells that were allowed to name a merged card is gone. A single list of the closed cards judged today, this card included, now decides whether a gap is legal, and the law-sites suite checks that no cell names a card on it. The laws section of the factory contract moves to version 3.#1452
4b1a420Thanks @E1i! - Which layer a file belongs to has one answer,scripts/core/layer-map.ts, and the CI selector, a card's runs and the check catalog read it from there. Architecture and docs pages, skills, commands andREADME.mdget adocslayer whose tests are the ones that read them, a new test file not yet in the graph runs itself, and a code file in no layer still runs the full suite.#1499
f03561eThanks @E1i! - The board page no longer readsbus offlinewhile the launch node is running cards. The header used to look only at the window heartbeat. Now a card session that has beaten within the last few minutes also counts as live, so a stale supervise or window signal next to running card sessions no longer reads as a dead factory.#1423
81b890dThanks @E1i! - The machine's session limit now has a default: with no validlimit.json, a machine runs a quarter of its cores in sessions, at least one, instead of running without a limit. A session's vitest workers are at most cores divided by that limit, so a lone session on 16 cores with limit 4 gets 4 workers, not 15.#1496
ff3223fThanks @E1i! - The merge node no longer faults a card that its answer is fixing. Before, a merge task stayed queued after the review verdict on its head turned to changes. Each retry counted as a failure, and the third one stopped the card as a fault while the answer session was still fixing it. Now the merge task is withdrawn without a failure and waits for the new head the answer brings. A head with no verdict yet is still retried as before.#1570
ca5624bThanks @E1i! -node --import tsx scripts/contract/module-graph/report.tsprints one machine report of the module graph: the report version and asha256version of the spec, the files and their holder, the modules, the file imports and the module edges, the violations with their reasons, the cycle components with an example chain each, and themay_usecycles. Two runs on one commit print the same bytes: every list is in an explicit sorted order, and the report holds no timestamp, absolute path or random id. Its statistics count an import once; the reasons sit in a table of their own, marked that one import may carry several, so their counts do not add up to the violating imports. The spec andcontract/ratchet.jsondo not change.#1564
0ea73d6Thanks @E1i! - The factory's module graph now has a boundary check.scripts/contract/module-graph/imports.tsbuilds the import graph ofsrc/andscripts/, counting type-only imports, re-exports, dynamicimport()and path aliases;boundary.tsholds each edge between two modules against themodulessection: an import is lawful only when its target is in the target module's contract and that module is in the importer'smay_use, and an undecided module legalises no edge into or out of it. The report — graph, violations and the strongly connected modules — is byte-identical across runs on one commit. The violations that exist today are recorded incontract/ratchet.jsonasboundary:<from>-><to>rows: a new row or a higher count is red, and a row that drops must be lowered in the same pull request. No violation is fixed and no file moves.#1565
b5c3a40Thanks @E1i! - The factory's module graph now checks its cycles.scripts/contract/module-graph/cycles.tsholds themay_usegraph of themodulessection to be a DAG — a cycle in it, a module naming itself included, is red — and reports the cycles that exist in the source apart from it: each strongly connected set of modules with one example chain, every step of which names the import that carries it. The two graphs are never mixed: a source cycle does not makemay_usered, and amay_usecycle is not a source SCC. Run directly, the script prints the number of modules, the boundary violations by kind, themay_usecycles and the source SCCs with their chains. No cycle is fixed and no file moves.#1562
b6d65f3Thanks @E1i! -contract/factory.jsongains amodulessection: the factory's target modules, each with the files it owns, the subset that is its public contract, the modules it may use and whether its border is decided, plus the composition roots and an explicit list of what stays out of the graph (tests, templates, tooling). The section is built fromscripts/contract/factory/modules.tsbeside the concepts registry and names under each module the concepts whose owner lies in it. A test now fails when a file undersrc/orscripts/belongs to no module and no exclusion, or to more than one. No file moves and no import changes.#1568
42d50d1Thanks @E1i! - The module graph knows a third status,tool. A tool sees every module and is not part of the architecture graph: its own imports are never a violation, it is in no cycle component and nomay_usemay name it, and an import into it is a violation with the reasoninto-tool. The contract generator underscripts/contract/becomes the toolcontract-generator;scripts/contract/contours.ts, the one filescripts/ladder/handoff.tsandscripts/ladder/verdict.tsimport at runtime, stays in the undecidedfactory-contract. Twenty-twoboundary:factory-contract->*rows vanish fromcontract/ratchet.json, 56 violating imports in all; no row is added.#1652
9fd88faThanks @E1i! - Which files and paths each module owns in the module graph is no longer written by hand.pnpm declarations:updatenow also writesscripts/contract/factory/module-owns.tsfromdeclarations/modules/*.json: each module'spathsandsharedentries undersrc/orscripts/, a folder as its path with a trailing**, leaving out the composition roots and what the graph's exclusions hold. Contract,may_use, status, composition roots and exclusions stay hand-drawn inscripts/contract/factory/modules.ts, and the generator never rewrites them. A generated part that no longer matches the declarations, and a module present in only one of the declarations and the drawn graph, fail the check. The ownership the graph reports is unchanged.#1486
3a5ab1fThanks @E1i! - No silent waits in window requests, the owner channel and the merge policy.owner.wait.close --id Q<N> --from owner-channelcloses a wait on the owner's channel word that starts with the question id (pnpm owner:say "Q<N>: <answer>"), so the window no longer needs the verbatim line; a refusal names the word it waits for and how the owner gives it. A card held for the owner can be taken over by the window: the hold and the takeover are two layers, a release lifts the latest one, and a release that leaves the owner's hold standing queues no answer and says who still holds the card. An amend whose touches cover the paths an owner stop asked for queues the stopped answer again, and an amend that does not settle the stop names what the card still waits for. Theunsandboxed_commandrule compares the sets of symbols imported fromchild_processinstead of the import lines, so a reordered, reformatted or type-only import stays auto and a newly imported symbol is named.#1429
8622342Thanks @E1i! - cli:miko:watchno longer raises a stall for a held card whose pull request was closed; a held card with an open pull request and a card with no hold still raise one.#1548
0a610f1Thanks @E1i! - A session that stops on paths outside its card's touches, or on an open question, no longer spends a continuation. The card stops with the reason recorded in the bus, and it is not launched again until intake widens the touches or the question closes (law Z8).#1694
76d85d2Thanks @E1i! - When the supervisor stops an answer or launch session at its Eddies spend limit, it first saves the session's tree: it commits the uncommitted change on the card's branch (a tree that is mid-merge is left as it is, and so are the gitignored report and answer handoff). The stop is still a stop. The next answer round of that card reads the spend stop from the Eddies journal of the tree and starts a fresh session with the answer handoff and the diff in its prompt; it never resumes the overspent session. A launch session that ended on the spend stop continues in a fresh session from the saved tree with its handoff, built by the bus if the session left none. It is not stopped, and nothing is pushed from it. A question in its report still goes to the owner.#1663
b6e8d65Thanks @E1i! -owner:answer #N "words"now always binds the owner's words to card N as a decision, whatever state the card is in: a leased task, a stop, an open wait or none, or a hold. The bus no longer refuses an answer addressed by card number because the card has no open wait. If the card has an open wait, the same answer closes it and is bound as the decision, whatever the wait needs. A live round sees the decision on its next turn; otherwise the next round takes it. The answer does not release a hold. Answers addressed byQ<N>and answers past the round limit behave as before.#1668
796001cThanks @E1i! -owner:answer <Q<N>|#N> word word ...no longer needs quotes: every argument after the target is joined into one text with single spaces, and typographic quotes (« » “ ” ‘ ’) at the two ends of that text are stripped, so a phone's smart quotes give the same word as plain or no quotes. The command prints its usage and exits 2 only when the target is missing or is notQ<N>or#N, or when no word remains.#1627
96e3488Thanks @E1i! - cli:pnpm owner:answer <Q|#card> "words"answers one open owner wait in one step. It chooses the request from the kind of the wait and the round count of the pull request, writes continue-fixes for the current head past the round limit, and when nothing closes it says why.#1575
de72c36Thanks @E1i! - cli: the atlas page namesconstruct atlasthrough the one owner-commands source, so its hint follows the command if it is renamed.#1466
f5a7d8dThanks @E1i! - The factory contract'sowner-commandscount no longer counts a command the code runs itself. A pnpm or construct command line is left out when it is an argument of a call that runs a command (a function namedexec…,spawn…,run…orshell…, or a method namedexec…,spawn…orshell…), when a generator yields it to its runner, or when it is a constant the file passes to one of those. A command shown to the owner in a message, a usage line or a bound statement parameter is still counted.overlaps:owner-commandsgoes from 179 to 174: the twopnpm install --frozen-lockfilethe witness runners run, the eslint commandscripts/ports/witnesses.tsyields, and thepnpm run qualityharness argument the surface and JSON-sample scripts pass to the CLI.#1571
5e85b80Thanks @E1i! - The lore and plain lines insrc/ui/lore.tstake theconstructandpnpmcommand lines they name fromscripts/core/owner-commands.ts; the row ofsrc/ui/lore.tsleaves the pending table, and the ratchet'soverlaps:owner-commandsfalls to its new minimum. The text of every line is unchanged.#1535
5a08c9cThanks @E1i! - The command lines the owner is told to run have one owner,scripts/core/owner-commands.ts, which builds apnpmorconstructline from its parts;src/may import it. A seal test holds every file that still writes such a line itself to the countscripts/tests/core/owner-commands-pending.jsonrecords, so a new literal outside the owner fails the suite, and the next slices move their layer's lines into the owner and drop their rows.#1569
f85a0adThanks @E1i! -src/program.tsreads thepnpm mutate judgecommand in themutate judge --cardhelp text from its owner,scripts/core/owner-commands.ts, instead of spelling it out. The help text is unchanged.src/program.tsleaves the owner-commands pending list, and theowner-commandsoverlaps fall from 116 to 115.#1557
d845af0Thanks @E1i! -initandattachtake the command lines they print fromscripts/core/owner-commands.ts: the default harness command and thenpx mikoshi-construct attachrerun line come from the owner, and their rows leave the pending table. The text either writes is unchanged.#1600
4472ae0Thanks @E1i! -board,doctorandintaketake the command lines they print fromscripts/core/owner-commands.ts: the board's decision, plan and admit hints, the doctor'sconstruct sync --apply, ghost-protocol and handoff lines, itsconstruct inithint, and the intake numbering reason come from the owner, and their rows leave the pending table. The text each prints is unchanged.#1556
ec6bd15Thanks @E1i! - The owner decisions modules live in one folder,scripts/policy/decisions/: the bus table and its folds inindex.ts, the import of the decisions file inimport.ts, anddecisionsFileOf, whichdoctorandintakeuse to find a bus's decisions file, beside the parser indecisions.ts. No behaviour changes.#1560
aa17ae9Thanks @E1i! - Every reader of the owner decisions goes throughscripts/policy/decisions/.intakereads the right to lower a witness from the decisions in force in the bus, through a decisions port (BusDecisions, withInMemoryDecisionsfor tests), and only from a decision the owner recorded withdecisions:add; a line added toowner-decisions.mdby hand no longer grants it, because that file is only a projection for people to read. A rebuild of the projection no longer leaves a decision both inowner-decisions.mdand in its archive. A test now fails when code outside the folder reads the decisions.#1720
456c3b0Thanks @E1i! - cli: closing a merge wait on the owner's word while its PR is still open is now a refusal of the merge: the answer is bound to the card as a decision and one answer round is queued on the PR head carrying it, so the card no longer sits with no route.#1566
c960702Thanks @E1i! - The owner's word now moves any card past the bus's timers and automatic conditions. Four owner commands, built inscripts/core/owner-commands.ts, are window requests:owner.stop --card Nends the card's live session,owner.launch --card Nstarts a standing card on the launch node's next lease even if it is held, stopped on a question, past a usage limit, waiting for its lane or blocked by the machine limit,owner.takeover --card Ngives the card to the window at once without the 30 minutes, andowner.requeue --task <key>queues a task again with noboard.alarmand no round or requeue limit. Each move runs only after the owner says the exact command line into the owner channel. It is recorded as onecommand.executedevent with the owner as actor. It is refused only when it cannot physically happen (no live session, no admitted body, no card, no task, or no open pull request), and the refusal names the cause. The law is registered as Z10 in the laws registry, and the laws version is now 5.#1597
086a1d3Thanks @E1i! - A card question asking acontract/ratchet.jsonrow to grow now stops for the owner the first time it is asked (card.stoppedquestion.ownerwith an open owner wait), not as an agent question the answer node keeps re-running. A reworded ask for the same row reuses the open wait and starts no answer session.#1416
f6daf27Thanks @E1i! - cli:owner.wait.closewithout--from answeris now refused unless it records a decision under a live decisions shard, so a window can no longer close an owner wait without the owner's word.#1650
e0d1951Thanks @E1i! - board: every open owner wait — a decision, a merge, a command, the round limit — hints one command,pnpm owner:answer Q<N> "…"(#<card>for a witness downgrade), neverdecisions:add,gh pr mergeor a sha.intake --admitnames the same command for a witness downgrade, and a recorded decision no longer closes a wait by matching its text against adecisions:addline.#1803
5e62c5dThanks @E1i! - Theowner_waitstable of the bus now has one writer module: the folds that open and close an owner wait, the witness-downgrade wait and the waits a decision answers move fromscripts/core/reducer.tsintoscripts/supervisor/card-waits.ts, beside the folds that close the waits of an ended card, and the composition root takesownerWaitFoldsfrom there. Theone-writer-per-tablecontract test now holdsowner_waitsto that one writer.#1516
b0815d2Thanks @E1i! - The gh, worktree, session and snapshot ports each carry an in-memory adapter —InMemoryGh,InMemoryTreeswithInMemoryShell,InMemorySessionsandInMemoryPulls— that answers from a script and records its calls, so a test of a node behind those ports runs without spawning git, ps, gh or a client session.#1524
9310169Thanks @E1i! -construct intake --admitand--amendkeep the owner's order: a readmission of an admitted card whose text carries nopriority:line keeps the priority of the card's latest admission, so the launch node no longer reads it as none.construct intake --amendandpnpm bus:request amendtake--priority p0|p1|p2|none;noneis the only way to clear it. A JSON intake draft takespriorityand writes it into the parked card. A priority-only amend is not a new card body: the launch node does not restart a live session on it, and answer and merge tasks keyed on the body stay.#1451
78ec33dThanks @E1i! - The factory reads the OS process table through one port,scripts/ports/process-table.ts: a snapshot of rows (pid, parent, group, start, command), the working directories of our client and a CPU sample, with a live adapter overps,lsofandtopand an in-memory one for tests. The port answers facts only and has no notion of a pid being alive; the nine places that ranpsorlsofthemselves now ask it. The three holders that serve a bus stop probing pids:bus:review:bgreads thebus:reviewheartbeat, the bus heal stops a recorded node only when the supervisor's snapshot still shows it serving this bus, and a secondbus:runfacing an unreadable process table exits and starts nothing: with a recentbus:runheartbeat on that bus it just exits, and without one it also opens an owner wait naming the pid and the lock, and takes no lock, since nothing proves the holder gone.liveness-sitesgains the kindsimported-judge, so a file that importsaliveorisAliveis recorded by name, andlive-session, so each place that declares whether a client session is alive (liveSessionIn,liveSessionHolds,isSessionAlive,sessionLiveness) is recorded by name too; the factory's live-session count reads four such places. A seal test turns red on aps,lsofor kill zero outside the port, and on a caller that judges liveness beside it unlessliveness-sites.known.jsonrecords that file for that kind of judgement.#1483
e582f5cThanks @E1i! - The owner inbox, the board's waits, cards and decisions, and the turn watch say a projection is stale instead of answering from rows behind their events, and the stall alarm reads only a merge denial of the PR's current head.#1494
178121aThanks @E1i! - The answer node no longer loops on one question. Before, an answer session could repeat, word for word, the question that stopped the card. Each time the card stopped again for the agent and went back to the answer queue. Now the card stops for the owner with one decision wait. A decision bound to the card after the stop still lets the answer run again with that decision in its prompt.#1428
35d9f11Thanks @E1i! - A merge or witness task left on a pull request the owner merged no longer stays queued for good: the bus withdraws it unless a live lease is finishing the merge. A close task stays while its card is open, and so does a witness task on the base the card's close was denied on; both are withdrawn once the card is closed.#1592
67021c0Thanks @E1i! - The boundary ratchet now finds the base of a pull request in CI. The vitest job checks out at depth 2, and on a pull request or merge-queue run whose HEAD is a merge commit the ratchet reads that commit's first parent as the commit the branch left from; outside CI it keeps the merge-base withorigin/mainormain. When neither is reachable and a boundary row grew, the check fails and names why, instead of reading no ownership move at all.#1419
49d5c78Thanks @E1i! - The ratchet incontract/ratchet.jsonnow counts each concept as one number, the sum of its sites over all files, so moving a site from one file to another without raising the sum is no longer growth.#1585
a30a08dThanks @E1i! - The boundary ratchet now reads an ownership move the way D-510 states it. A grownboundary:<from>-><to>row passes without the owner when the card changes file ownership in the module spec, the total of violating imports does not grow, and every violating import in the row existed on the commit the card branched from — whether or not it was a violation there. Until now only imports that were already violations on that commit were held, so an import inside one module that a move turned into a cross-module one, asports→ports-adapterson the head of PR #1578, read as new. An import is still identified by its source file and what it imports; a new or swapped import stays the owner's decision.#1624
2af9519Thanks @E1i! - The boundary ratchet reads the module spec of the commit a card branched from out of that commit'scontract/factory.json, instead of evaluating itsmodules.tsin a separate node process.contract/factory.jsonnow publishescomposition_importsin itsmodulessection, and.dependency-cruiser.mjstakes the composition module and its listed importers from there, so loading the config spawns no process. A test now holds the rule that an import naming no symbols — default, namespace or side-effect — never counts as carrying moved symbols.#1691
6cbd908Thanks @E1i! - A pull request whose CI is red on its own head now gets an answer round even while a card it depends on is still unmerged. Before, the dependency hold filtered the red-CI answer out too, so such a pull request waited for nobody: review waits for green CI, and no answer was queued. The unmerged dependency still holds the merge and the update, and the answer round never merges the dependency in.#1754
8bd20f8Thanks @E1i! -bus:runno longer runs the reducer inside its slow tick. The reducer runs in its own worker thread on its own bus connection every 2 s. Each pass applies only the events past its watermark, answers pending window requests withwindow.request.doneorwindow.request.refused, then reduces again, so an owner word or a window request lands within seconds instead of waiting up to a whole tick. Owner-wait closes that depend on the reduced state move with it. The tick keeps its own cadence for NetWatch, deriveQueues, the step statuses, stalled sessions and the gate-run spool, and its step-timing line no longer listsreduce,WindowRequestsandsecond reduce. A locked database in the reducer thread is retried on its next period. Any other error in that thread endsbus:runon its next tick, the same as a failed reduce did before.reducer.reducedkeeps its shape (through_event_id,applied,rejected). It is written after any pass that applied or rejected an event, and otherwise at least once a minute, so the workers that wake on it are not woken every 2 s.#1580
d043772Thanks @E1i! - Acard.startedthat the reducer rejected no longer counts as a live session. Before this,owner.launchon such a card was refused because the card supposedly "runs the session started at event N", even though no process ran on its tree. Anowner.stopof a session whose process is gone now has the launch node recordcard.session.ended, so the card can be launched again instead of waiting for a stop that never comes. This also holds when the card has already left the running state. Window-started sessions, which carry no process id, are not affected.#1502
b4aa27aThanks @E1i! - cli: a release that lands after the answer node read the hold and before it withdrew the answer task no longer strands that task: the answer node queues it again once it finds the hold closed, as the release itself does for a task withdrawn before it.#1433
123f510Thanks @E1i! - A late review round whose findings all repeat an earlier round on another head no longer queues another answer and stops by the route of the round limit, a note is dropped from a round before the test and a round with one new finding or only notes answers as before; measured read-only on the stored bus, reviews up to 2026-11-06, the rule stops 20 of 219 late changes rounds, on 19 pull requests (30 repeat in full, 10 of them follow an owner amend).#1762
973f6c8Thanks @E1i! - The launch scheduler holds a card only on the files it touches (an open pull request on its recorded diff), names every holder of an unstarted card on the board, and sizes the intake reading budget from the card's context line.#1443
4cc306dThanks @E1i! - The review bar lowers to defects: a test or a generated file outside the touches follows them and is a note to the reviewer, while any other file there, or one on a guarded path, stays a finding; and on a card of risk R3 or R4 a verdict whose findings are all surviving mutations with no behaviour defect is recorded as pass with those findings kept, while R1, R2 and a card whose risk cannot be read keep changes. The review role line states the same bar.#1473
0e1bf78Thanks @E1i! - Only a defect of code, tests or the contract makes a review verdict changes: a finding only on the description of the pull request, the changeset or the prose of the card is advice the reviewer repeats inadvice, and a verdict whose findings are all advice is recorded as pass with them kept. Every review round, the re-review included, diffs the head from the merge-base of main, so a file the head brought in by merging main is no longer read as the card's change.#1596
6a18860Thanks @E1i! - A review session no longer runs out its 20-minute ceiling after it has already decided. The review node reads the verdict file while the session runs, and the moment a valid verdict is written it records it and ends the session and every process under it, background shells included. A session ended at the ceiling with a valid verdict already on disk has that verdict recorded, with no second run. A session ended at the ceiling with no verdict is not leased again on the same key: the task is withdrawn with the reasonreview_ceiling, and oneboard.alarmnames the card, the pull request, the head and the window's route (pnpm bus:review --dry-run <pr>, thenpnpm bus:request allow-mergewhen that run is clean). Any otherreview_failedis still requeued. The review prompt now has the session run the card's witnesses and mutations by the commands the card names, never vitest over a whole test directory, never a run moved to the background, and never a polling loop waiting on one.#1721
a932563Thanks @E1i! - The pre-push gate now runs the mutations the check catalog predicts the card's witnesses kill, on the files the change touches only, after the tests are green. A surviving mutation turns the gate red and prints one line per survivor (survived: <file>:<line> <mutation>), with no logs; when the mutations do not fit under 120 s, or the catalog cannot be read, the gate printsmutations unchecked: <reason>and the push goes ahead, leaving them to review. The review prompt now carries the owner's decisions in force bound to the card, and tells the reviewer that a "the card promises X" finding is not given when such a decision allows otherwise.#1544
228e860Thanks @E1i! - A review session no longer leaves a process writing into its review tree after the review. While the session runs, the reviewer samples the process table for the session and every process descending from it. When the session ends, the reviewer waits for those processes to exit before it hands the tree back for removal, and a process still alive after the wait gets SIGTERM, then SIGKILL. This closes thetree_leftcase where pnpm wrotepnpm-lock.yamlinto a review tree a minute after the tree was removed. The Z1 × review cell of the law registry is now a witness, not a gap. Its witness proves both halves of Z1 on the review node: a restart does not signal a live review session, and no descendant of a finished review session is alive when its tree is removed.contract/factory.jsonrecords the cell andcontract/ratchet.jsondrops theZ1:reviewgap row.#1643
dbfeeeaThanks @E1i! - A later changes round on a pull request no longer counts a new finding on code the answer did not touch. When a finding is new (it repeats no earlier round), names repository files, and none of them changed since the previous changes round's head, the review marks it as drip: it stays in the recorded review underdrip, it does not count toward the changes verdict, and a round left with only such findings records pass. A finding that names a changed file, names no file, or is about a changed pull request description counts as before. Each marked finding is also written to the bus as its ownreview.dripevent with the card, pull request, head and text, and the board shows those findings as the card's tail, from which the window can file a continuation card.#1656
e8fb9f7Thanks @E1i! - The review no longer returns changes because its sandbox cannot read the process table. A card witness whose test name declares[needs ps](read bydeclaredCapabilitiesinscripts/ci/sandbox-failing.ts) is proven by the witness node and CI, outside review. When the bus holds a greenwitness.recordedfor the card on the head under review, the review prompt names each such witness. The reviewer does not run it or its mutations and records it as an isolation gap proven by the witness node, as advice that is no reason for changes on its own. Every other witness runs as before. A[needs ps]witness with no green record on that head also runs as before, and a sandbox refusal there stays a finding. The review sandbox itself is unchanged.boundary:node-review->qualityincontract/ratchet.jsongoes from 4 to 5 for the one import of that parser, inscripts/nodes/review/depth-sources.ts, by the owner's decision D-591 (Q399), which grants that growth to this card only and addscontract/ratchet.jsonto its touches.#1531
448e53bThanks @E1i! - The supervisor no longer ends a live review session because only its context reading stood still. It now reads three signals: context growth, transcript growth (the spend and subagent readings the heartbeat takes from the transcript), and the session's process pulse. A review is stopped only when two or more of them have stood still past the no-progress line. With a single stale signal the supervisor raisessession.stalledwith the reason and stops nothing. A review the stall line has already ended once on a head is not queued again the same way: the second time, its task is withdrawn asreview_stalled_twice, and the window gets the reason with the other way to take, a review by slices of the diff.#1422
bf8ca64Thanks @E1i! -package.jsonis now the one registry of this repository's scripts:pnpm contract:updatederives theCONTRIBUTING.mdtable's rows and thescriptssection ofcontract/surface.jsonfrom it, and the published manifest gains thescriptsOutsideTheHarnessfield.#1662
6905dadThanks @E1i! - A session's pre-push gate (scripts/ci/prepush.ts, with or without--round) never runs the full suite: a change with a layer runs that layer's tests, and a path with no layer runs the tests that cover it and the tests of its generator. The full run is CI's. Each gate run and each pre-push run writes one gate-run event to the bus (source, layered or full, reason, seconds, round, card, whether the card touchescontract/module-files.json, test count). The bus version goes from 3 to 4 because the event catalogue grew.construct boardshows the last 24 hours of these runs: how many there were, the share of full runs, the median time per source, and the check time per round.#1688
f3a2366Thanks @E1i! - The launch and answer prompts now tell a card session to give a heavy gate step a Bash timeout of 1800000 ms, the 30-minute cap the session is spawned with, instead of 600000. Before, the explicit 10-minute timeout overrode the cap, so a long pre-push run was cut at 10 minutes and the round hung open after its last turn.#1741
545c310Thanks @E1i! - Card sessions no longer hand-run whole test directories. The launch header and the answer prompt both state the rule: run by hand only the witness tests and the tests of the touched files, prepush and CI run the rest, never pass whole test directories to vitest. The settings every card session is spawned with install a PreToolUse guard on Bash (scripts/ports/wide-vitest-guard.ts) that refuses a vitest command naming no test file or more than 3 test directories, and names the rule in its refusal; a vitest command over test files runs as before.#1658
5746746Thanks @E1i! - The board now shows how long each live launch, answer and review session has run and what it is doing: the current tool or command and how long it has run. With no reliable source for a wait, the row says the wait has an unknown reason and gives its duration. A queued task shows which cards it stands behind and how long it has waited. The supervisor computes an expected round time from the bus measurements, by size and contour. With too few samples it says not enough data and raises nothing; past the expected time it raisesboard.alarmwith reasonover_timeand the current action, and the session runs on.pnpm owner:answer #N "stop: <reason>"stops the card's live session throughowner.stopand records the stop with the reason; the tree is kept.pnpm owner:session #Nprints what a card's session is doing now, its last actions with their times and its long gaps.#1500
95f3e3fThanks @E1i! - The answer node no longer drops an answer silently. Before, an answer that found a live session in the card tree was withdrawn as held for the owner, and nothing queued it again when that session ended. Now it waits and is checked again every five minutes, with no failure counted, and it runs once the session is gone. An answer leased for a review head that the pull request has since moved past is now superseded before any session runs. It writes no answer and spends no review round.#1490
eb587cbThanks @E1i! - The supervision of silent sessions now covers spend and review. A card or answer session whose Eddies journal records a session-spend stop is stopped bybus:run, with asession.stalledevent whose reason names the spend and the limit. A review session that records no new step and no context growth for 8 minutes is ended at that point, not at its 20-minute ceiling; a live heartbeat alone does not count as progress. On a code restart a review worker that holds a lease finishes its rounds and exits, while the new worker takes the queued reviews in the free review slots. A test now drives a bus tick built bycomposeBusTickthrough the silent-session check. A card stopped by fault whose tree holds uncommitted changes now has a way back:pnpm bus:request requeue --task <task_key> --keep-treequeues its launch again and the session starts on that tree as it stands; without--keep-treethe refusal names this option.#1747
70a5ce6Thanks @E1i! - cli: a slice card gets itsparenton every admission, not only when intake cuts it. A card named<base>-slice-<k>, admitted with--admit, amended or moved, carriesparent(card,part,of) on itscard.admitted, derived from the card lines the bus holds: a stub card named<base>, else the lowest sibling number. A slice name and part that two cards carry gets no parent, and intake says so. The bus runs the slice-parent backfill itself, once: while it holds noslice.parents.backfilledevent and a slice card without a parent, the tick records that event, and never again after.#1538
3393ca6Thanks @E1i! -intake --moveof a sliced stub now re-points the cards that wait on the dropped card: every open admitted card whose depends name it gets acard.admittedwith sourceamendthat depends on the slices naming it in their blocks instead. A dependent that no slice names makes the drop refused, naming each such card, and--dry-runprints the re-pointings it would record.#1606
284760cThanks @E1i! -intake --admitand--amendno longer accept an equivalent witness replacement under an owner decision bound to another card. A standing replacement decision now counts only when it is bound to no card or to the card being admitted, as the standing rules for a witness transfer and for created paths already did. Before this, an allowance given for one card let every card replace its witnesses without the owner.#1727
316b93fThanks @E1i! - On start, the supervisor retires the heartbeat rows of its previous generation whose processes are gone: a row that last beat before this supervisor started and whose name carries a pid that no longer lives (such asmiko:<pid>of an earlier window) is markedretired, never deleted. The board's BUS WORKERS no longer counts a retired row, and a fresh beat under the same name counts again.#1434
3f08a25Thanks @E1i! -construct sync --applyandconstruct attach --upgradenow write the installed browser lab exclusion into.claude/settings.local.json, asinitdoes, even when they have nothing else to write. A tracked or unreadable file is left alone and the command says so, an entry already held is not added twice, and every other byte of the file stays.attach --upgraderecords what it added, soconstruct detachremoves it. A card session in a linked worktree now also takes that one entry from the main checkout's.claude/settings.local.json, when the installed script exists.#1435
7256dc3Thanks @E1i! -task:startin a window now refuses before it touches git and namespnpm bus:request tree.cut --card <N>, the one way a window gets a tree; the bus's own cuts keep working, even from a bus a window raised. Agit worktree addthat fails removes the branch it created, so a refusal that says nothing was written holds.#1530
5c78cd2Thanks @E1i! - Intake and the witness node now read the paths of a witness command in one place,src/commands/test-runner.ts, so they no longer judge the same witness differently. Before, intake read the name after-tas a path, so a red-on-main replacement with a slash in its test name went to an owner wait. It also ignored the path in--dir=foo/bar. Both now read a-tname as no path and a--flag=pathvalue as the path it holds, the way the witness node already did.#1665
9e7eadfThanks @E1i! - After a merge the bus measures the latest green main run's whole-file test weights againstscripts/ci/test-weights.json. When the drift passes 30% of the longest shard, it computes the new table itself and admits one S recompute card. The launch writes that table into the card's tree before the session starts, so the card session only commits it and needs no network.#1551
98471a7Thanks @E1i! - The rule that decides which paths a card may change now lives in one factory module that imports nothing from the CLI: which paths a text names, which fall outside the touches, which tests the runs cover, and which files follow the touches. The intake check, the card readers and the bus nodes all read it from there, and the factory manifest list moves with it, so the following table no longer names a manifest file of its own. The card version rises from 1 to 2: every new admission carriescardVersion2, and a node of this build reads a card admitted at version 1 without a new admission.#1540
d6760a4Thanks @E1i! - A witness that greps a file no longer reads its pattern as a path. Before,grep -qE '"scripts/(core|intake)/' filenamedscripts/(core|intake)and a-e "\"scripts/core/"pattern named\"scripts/core, so intake judged the witness unfit when that "path" was absent and outside the card. A token holding a regex metacharacter, the token after a grep's-e,-Eor-F(atest -eoperand is still a path), and a token that opens with a quote inside a quote are now no path; the file the command reads is still one.#1457
7a57380Thanks @E1i! -review.recordedcarriesrules_version, the version of the review rules a verdict was given under. The version isREVIEW_RULES_VERSIONinscripts/nodes/review/review-executor.ts, pinned to the rules byREVIEW_RULES_SHA, the sha-256 of.claude/agents/review.mdand the review bar line of the reviewer prompt: a change to either is red until the version is raised and the sha re-recorded. It is notprompt_sha, which moves with every card body. A pass carried by a clean update keeps the version of the verdict it carries, and the board shows a counter of open pass verdicts under older rules, a record with no version counting as older. Nothing is withdrawn and no stored event is rewritten.#1812
bc9d1ddThanks @E1i! -intake --admitand--amend, from the CLI and from the window's amend request, now refuse a depends that would close a wait cycle. Before binding card A to wait on card B, intake walks what B waits on right now: B's unmerged depends and the card that holds B's launch (an open pull request or a session on an overlapping path, or the head of its lane). If the walk leads back to A, the admission is refused, and the refusal names both cards and the chain, for example[#2047](https://github.com/E1i/mikoshi-construct/issues/2047) depends on [#2065](https://github.com/E1i/mikoshi-construct/issues/2065), and [#2065](https://github.com/E1i/mikoshi-construct/issues/2065) waits on [#2047](https://github.com/E1i/mikoshi-construct/issues/2047) (overlap with open PR [#1770](https://github.com/E1i/mikoshi-construct/issues/1770) on <path>), so neither ever moves. A depends whose target waits on nothing that leads back is admitted as before, and launch starts the same cards as before. Theopen-prlaunch hold now also carries the card of the open pull request. Its reason text is unchanged.#1675
de3e7eaThanks @E1i! - cli:miko:watchwakes the window on a stalled session and on a release loop:session.stallednow returnsmiko:watch --oncewith its line, asboard.alarmalready does; and a task released three times in a row with the same reason wakes the watch once with one line naming the card, the queue, the reason, the count and the first release time. Two releases do not wake, a different reason or a completed lease resets the count, and later releases of the same run stay silent.#1599
90757edThanks @E1i! - cli: an answer stop on paths outside a card's touches now asks to widen only to files the card's tree actually changed. A word in the session's question that looks like a path, such as an event name, or a file the card never changed no longer opens a widening wait. That wait used to stop the next answer round before any session ran.#1476
5cb85a7Thanks @E1i! - The pre-push gate (scripts/ci/prepush.ts) and the window gate (scripts/ci/select.ts --window) now diff from the last main commit with green CI in the branch's history, read through the CI port. When that cannot be read, they diff from the merge-base withorigin/mainand say why. The pre-push gate no longer runs the full suite locally: a change that would select the full suite runs only the tests each changed path reaches, and the green line says the full run belongs to CI. A failed test whose name declares a capability ([needs net-listen],[needs ps],[needs miko-session]) that the sandbox lacks is reported as sandbox norm, separately from real failures. A pre-push run whose only failures are sandbox norm is green and does not ask for another run.#1418
b560a83Thanks @E1i! - A window is now only a sessionmikostarted:mikofor the loop, or the newmiko --tabfor a tab window. A bareclaudeor an IDE tab is no window: it writes no window heartbeat, andhandoff:writeandmiko:watchrefuse it and say how to start one. A prompt whose first line names the handoff of another repository is refused, naming the window it belongs to.#1601
d9857faThanks @E1i! - Each kind of window request now runs from its own file underscripts/window/requests/, one file for eachREQUEST_KINDSmember (tree-cut.ts,amend.ts,owner-wait-close.ts,decisions-add.ts,owner-stop.ts, …).index.tsholds the dispatcher,REQUEST_EXECUTORSkeyed by kind, anddispatchRequest.context.tsholds what several kinds read: an observed pull request, a card's route, its latest turn, writing a decision.reach.tsis the only file in the folder that imports from outside the window, so splitting the file adds no boundary import.window-requests.tskeeps the public surface: parsing the command line, writing a request, andWindowRequests, which answers pending requests through the dispatcher. Behaviour, events and refusal texts are unchanged. Thewindow-requestsconcept's owner exists now (dispatchRequest). Its overlaps fall from 18 to 0, andwindow-requests.tsfalls from 1013 lines to under the 800-line threshold.contract/surface.jsonno longer listssettledamong thebus:requestflags: that was the flag the bus passes todecisions:add, andbus:requestnever accepted it.#1449
3e38f87Thanks @E1i! -pnpm mikostarts the window on a diet:--setting-sources project,local,--strict-mcp-configwith an empty MCP config of its own and--disallowedToolsfor the five schemas the window never calls (Artifact, Workflow, AskUserQuestion, ScheduleWakeup, ReportFindings); card sessions launch as before.pnpm board --json --liveprints only the live cards, and is the window's start reading of the board.window-corepoints at the section ofwindow.mdwith its line range.#1590
b82075cThanks @E1i! - The window's subagents now reach the board. Each supervisor tick reads.construct/window-agents.jsonland publishes every start and stop as awindow.subagentevent. The event carries the window session and the agent id and is keyedwindow.subagent:<session>:<agent id>:<phase>, so rereading the file or restarting the supervisor writes no duplicate and loses no line. The board removes an agent by its id when that agent stops, and it shows the agent even when the window sends no heartbeat. The subagents line now readsCRAWLERS <n> · top spend <largest> / <limit> capand each pulse readspulse <n> min ago, the same in the lore and plain text. Its arrow comes from the button'saria-expandedand rotates when the button toggles, without the rotation animation underprefers-reduced-motion. A subagent row turns yellow when its context or spend reaches the warn ratio and red at the limit, using the thresholds and colours of the tile's CTX and SPENT bars. The collapsed line takes the colour of the heaviest subagent.#1667
7a4a7d6Thanks @E1i! - cli:miko:watchwakes the window when the owner answers a wait it handed over:owner.wait.closedanddecision.recordedon a card with an open owner wait or incard.waitingnow returnmiko:watch --oncewith that event, named by the card; the same events on a card with no open wait stay silent.#1441
50d9796Thanks @E1i! - The witness tells "could not check" from "failed": a browser witness whose declared server never answered now records the verdictuncheckedinstead of red. It queues no answer round, it does not let the pull request merge (the witness denial names it as could not check, not red), the board showscould not checkapart from red, and the pull request status readswitness could not checkas pending, notwitness red, and the window wakes on it as it does on red, and on a green after it; a witness that ran and failed stays red, and events already stored keep their verdict.#1698
4680840Thanks @E1i! - A witness'stesttitle now reachesvitest -tas a literal match: every regex metacharacter in it is escaped, and a single quote in it stays safely quoted. Before, a title such as[needs ps]was read as a character class, selected no test, and the witness could never pass. Intake also accepts a witness move now: an amend that removes one witness id and adds another goes through with no downgrade wait when an owner decision for that card names the move (W2 → W3,W2 -> W3,move W2 to W3). Without such a decision, removing an invariant witness still waits for the owner, as before.#1783
e2997b9Thanks @E1i! - Reading a card's witnesses now lives with the card.witnessesOfandjudgedFieldWitnessesOfmove from the intake admit command intosrc/card/witness-fields.ts, so the bus policy no longer imports the admit command to read a card's witnesses. Behaviour is unchanged.#1528
e81ea25Thanks @E1i! - The law registry names the hole where a dropped card that was sliced leaves its dependents waiting: the Z4 × intake cell ofscripts/nodes/laws.tsis now a gap closed by #1740, #1754 and #1789, the card that re-points those dependents onto the slices.contract/factory.jsonrecords the new card; the gap count incontract/ratchet.jsonis unchanged, since the cell was already a gap.#1534
61d011eThanks @E1i! - The law registry stops counting a review session as witnessed alive when no witness runs the review node. The registry gains thesupervisorsite,scripts/supervisor/stalled-sessions.ts, with a cell for every law; its Z7 cell is witnessed by the case #1792 settled: a live review session whose only stale signal is the context reading is not sent SIGTERM. A law cell is now green only when its witness calls a function of the site's own module, measured by V8 coverage during the run. Every cell whose witness never called its site, Z7 × review among them, is a gap of #1814, law-registry-tells-the-truth, as are the cells that named the merged #1777.contract/factory.jsonrecords the new site and cells, andcontract/ratchet.jsonthe new gap rows. A gap now holds only while the card it names is open: the law-sites suite rejects a cell whose gap names a merged or closed card, so no cell names #1777 or #1792. The 32 Z3–Z6 cells that already named merged cards on main (#1672, #1754, #1764, #1767) stay pinned in a list that can only shrink, until a card that the window opens re-points them.
0.46.0
Minor Changes
- #1400
4ed296aThanks @E1i! - The factory and the window now reach the agent client through a Client Adapter, whose contract is in decision record 0060: spawning a session, its process, its identity and the readings of its stream and transcript go through the adapter, andconstruct costreads session records through one registry of cost sources. Claude Code is the one adapter there is. What each session runs does not change, except what this release's other entries say.
Patch Changes
#1386
6c22f29Thanks @E1i! - An answer session on a red CI now gets the FAIL and Error blocks and the tail of the failed-job log, without ANSI codes, passing test lines or runner setup, under a ceiling of 20000 characters, with a line naming how many characters were cut and the link of the job, instead of the first 100000 characters of the log.#1396
36b823bThanks @E1i! - The window's tile and the handoff dialog read FIXER MIKO, with window · Miko as their tooltip. The board's blocks share one cut form whose frame line runs along the diagonal; the header, the warnings strip, the waits strip and the opening dialog sweep their frame, and reduced motion stops it.#1398
3caea7dThanks @E1i! - A card's runs in the board's dialog read as lanes: a mask heads a lane with the explicit files it covers inside, a file no mask covers sits in a lane headed by its folder, a lane prints file names alone, and a mask with no explicit file is one line reading вся папка. A layer heads its lanes, and the reason of a full run stays above them.#1391
a81a90dThanks @E1i! - The board draws one tile per session: a session that replaced another of the same card and role draws no second tile, each tile reads the gauges of its own session id, and agents at work counts sessions. The card dialog scrolls one area under a fixed head.#1395
af8dbf5Thanks @E1i! - A session with subagents gets a line under its tile, with the count and the largest spend againstagentSpend, which opens a list in place without opening the card, stays open across a refresh and turns red atwarnRatio×agentSpend.#1355
42a0135Thanks @E1i! - A card session of the bus now runs the browser lab outside the sandbox only asnode <home>/.construct/browser-lab/bin/browser-lab.mjs, an absolute path outside the tree that the bus installs from the factory, and only when the repository excludes that command; a copy of the script in the tree stays in the sandbox.construct initwrites the entry into.claude/settings.local.jsonon the machine instead of the committed settings,construct attachwrites the same absolute entry, and the lab takes its tools only from~/.construct/browser-lab/npm-cache, ending as unobserved when a pinned tool is missing there. A repository attached earlier needsconstruct detachandconstruct attachto replace its recorded relative entry.#1381
f1ba51aThanks @E1i! - A card is amended with no file:pnpm bus:request amend --card <N>adds and removes witnesses and touches, appends the owner's words verbatim and changes depends, the bus edits the body, recomputes its risk and runs, runs the lane check and keeps the card in its lane.construct-intake --amendrecomputes the risk and runs the same way, and--touchesand--createstake+a,+b,+a +band the repeated flag alike, so no form drops a path.#1364
2c9c7e3Thanks @E1i! -intake --move <#N> --to laternow writescard.deferredinstead ofcard.dropped: the card keeps its number and depends, takes no lane position and does not start, a card that depends on it keeps waiting, and a move to a launch lane returns it to the queue with no new intake. The board's warning about a planned, startable card and a new line in the launch node's log state the same reason: the card at the head of the lane,overlap with open PR #N on <path>, or occupied slots.#1357
32fb5c9Thanks @E1i! -construct costreads session records through one registry of cost sources insrc/commands/cost/source.ts; its output does not change.#1389
5c8a378Thanks @E1i! - The bus now reads a session's stream and transcript through one reading in the client adapter; its events, usage, cost, turns, model, denials and session identity keep their values, and what the client does not report reads null. One thing a user can see: the answer node now looks for a session's transcript underCLAUDE_CONFIG_DIRwhen it is set, as the launch node already did, where it looked only in the home directory, so an answer session resumes there instead of starting fresh.#1358
ee02246Thanks @E1i! - The factory's launch, answer, review, ladder and resume sessions now take their command, arguments and client environment from the client adapter instead of naming the client binary themselves. What each session runs does not change.#1367
b690918Thanks @E1i! - The window's command, including$MIKO_CLAUDEanddontAsk, its transcript readings and the sandbox directory of the quality lock now come from the client adapter instead of being named in the window's own files. What the window runs and reads does not change.#1369
6123e49Thanks @E1i! - The bus continues a card in its held tree when the changed paths came from the session's own commands (lint:fix, a copied template, a generator), not only from its Write and Edit calls; a change made after the session ended or outside every command it ran is still refused.#1373
1665469Thanks @E1i! - A card's second continuation is no longer refused over paths an earlier continued session wrote: the ownership check now counts every session that held the tree.#1388
789af0eThanks @E1i! - Owner decisions now live in the bus: thedecisionstable holds each decision's card, term, what it supersedes and its state, in force or archived, andowner-decisions.mdwith its archive is a projection the bus rebuilds. A decision leaves force with no manual step when its card merges or closes and when its term ends, in any factory, with no D-54 in the journal.pnpm decisions:addalways queues a bus request, a card session sees only its own decisions and the general ones, and no decision is refused for its size any more.#1375
9ee9ccfThanks @E1i! - The Bash guards refuse a command that prints the whole environment: bareenv,printenv,set,export,export -p, and any word naming/proc/<anything>/environ. Check a variable withtest -n "$VAR". An init repository gets the refusal throughscripts/construct/eddies.mjs, an attached repository through.construct/commit-guard.mjs; an older install has it afterconstruct sync.#1370
43e3b1cThanks @E1i! -pnpm miko:exittakes the context line this session crossed, by the hook'sbudget-warnrecord, as the context stop even after compaction shrank the context, and its refusal prints the context, the line and the source of each.#1372
3d1bc87Thanks @E1i! - A factory's next card number follows its own row.pnpm bus:request numbers.foreign --ids <list>records card ids that came from another factory's row, and intake and the round-limit recut then number after the highest id not so recorded and the factory's pull requests and issues. A number never lands on a card the bus already holds, and the recorded cards stay as they are. A bus with no such record numbers as it did before.#1399
0b75e3eThanks @E1i! -contract/factory.jsonnow records the factory's own interface, generated from its code bypnpm contract:update: the signatures of every port, the bus events, payload keys, tables andBUS_VERSION, the concept-to-owner table, and per concept the files that implement it outside its owner with a count.pnpm contract:overlapsprints each of those sites asfile:line, and a test fails when the recorded file differs from the generated one. Intake and the preflight treat the file as generated, as they treatcontract/surface.json.#1384
bc42b88Thanks @E1i! - A card undercard.held, a takeover included, now stays out of the launch candidates, its pull request is denied by the merge node as held, naming the hold's reason, and a session of it that exits at a boundary is neither continued nor restarted, untilcard.released; all of them go on after it with no new request. A continuation now waits while an admission of the card has not folded, and then runs on the new body.#1385
fc7b07bThanks @E1i! - The intake skill namesconstruct-intake --amendandpnpm bus:request amendas the way to edit an admitted card and points at their twodocs/cli.mdsections; export, draft and admit stay for an edit those two do not cover.#1359
e76cff2Thanks @E1i! - A not-startedwho: windowcard no longer chains or binds another card into its lane and does not count as occupying one, and the board warns about a planned, startable card that has not started for 15 minutes, naming the card that holds it.#1397
80228c2Thanks @E1i! - A machine-wide limit on live launch, answer and review sessions is read before any session of any bus starts, with no limit while no value is set; a card moved into a lane numbered abovelaneswaits instead of starting; and the worker budget counts the runs of every queue directory on the machine, review sessions included.#1365
702a3afThanks @E1i! -construct costcounts a card with a pull request from its merge, so merged cards no longer drop out of its figures when nocard.closedwas written.#1374
c4421f9Thanks @E1i! - The factory board no longer shows a merged card as in work or blocked after a latecard.stopped, andconstruct cost, the card chain andrelease:evidencefind a merge whosepr.closedevent names no card through its pull request.#1383
fcde60fThanks @E1i! - The bus now merges a freshorigin/maininto a card branch itself and takes every owner path main changed from main byte for byte, so a card session is only ever handed a merge already in progress with conflicts in its own files, and never has to write an owner path.#1392
3d3fe0fThanks @E1i! -task:closenow closes an implement card with no pull request in the bus by--report, as done with the report path, the way a probe closes, so a card whose order ended in a report no longer has to be moved to dropped. An implement card with a pull request still closes with--pronly, and--prand--reporttogether stay refused.#1366
04d3deeThanks @E1i! - A card'srunsfield now also takeslayer:<id>, a layer ofscripts/core/layer-map.jsonthat stands for the tests of that layer: an id the map does not hold is refused, and a card with nolayer:entry parses as before.#1382
bdf156dThanks @E1i! - The pre-push selection and the by-layers merge policy now read a card's runs from the same source as the session: a masked layer only adds to what the changed paths select, a new file resolves through the layer map by folder and one in an unknown folder is a full run that names it, a file in two layers takes both, and a touch no explicit run covers adds its layers.#1376
033024eThanks @E1i! - The shift gate and the review now read a card's runs from the check catalog: a test of a layer the card masks, or of a layer its touches reach when it names no runs, counts as a run of the card. When the catalog cannot answer, only the paths the card names count, and a refusal or a review finding says why.#1380
6489156Thanks @E1i! - A session the bus starts takes a named list of environment variables instead of the bus's whole environment:PATH,HOME,TMPDIR,LANG,PNPM_HOME,XDG_CACHE_HOME,XDG_DATA_HOME, the proxy variables,USER,LOGNAME,SHELL,TERM,GH_TOKEN,NODE_EXTRA_CA_CERTS, and anything starting withCONSTRUCT_,CLAUDE_,ANTHROPIC_orLC_. Anything else set in the bus's environment no longer reaches a card, answer, review or ladder session; a repository whose gate or hooks read such a variable sees it unset there.#1379
fa9a23cThanks @E1i! - The live-session guard now sees a client that runs under its version as its process name, such as2.1.318, as well as one namedclaude. A card tree with such a session in it is no longer parked or removed, the answer node holds a card whose tree has one, and the session load reading counts those sessions and says so inproducedBy. The answer node's own copy of the lookup is gone, so the two readers use one function.#1368
ecc9c57Thanks @E1i! - Ashard.decidedfrom the answer node now carries the decision text, and the session receives that text; a question with no decision text is refused and held for the window instead of coming back to the session unchanged.#1394
2ddb1fdThanks @E1i! - The factory's launch, answer and review sessions now start with only the file and shell tools, without the owner's user instructions and auto memory, so a card starts on less context; a card that needs more names it in atools:header line. The launch header sends the session to the card's touches, andsession.heartbeatreportsstart_contextandread_before_edit.#1393
35bc5c5Thanks @E1i! -card.startedandreview.recordednow carrytree_origin,reusedorcut.#1377
843598dThanks @E1i! - Card and review worktrees are now reused: a closed card's clean tree parks in a small pool beside the card trees and the next card takes it, reset to its base with nothing of the card before it, instead of removing one tree and creating another. A stopped card's tree, a tree with a live session and a dirty tree never enter the pool. Installs hardlink from the shared pnpm store, the card tree home carries a Spotlight marker, andscripts/window/session-load.tsprints sys CPU, syspolicyd and fseventsd percent, and node per session as one reading.
0.45.4
Patch Changes
- #1351
0c3f1a5Thanks @E1i! - A launch session that reaches its context line with no valid handoff no longer stops the card. The bus builds a minimal handoff from the tree diff, the card body and the session's last steps, and continues in a fresh session with no push. The restart limit still bounds it, aquestion:in the report still goes to the owner, and a session that also hit its spend stop still stops. The shift header now states the exact handoff form the bus reads.
0.45.3
Patch Changes
#1307
a8e290eThanks @E1i! - On GitHub Actionspnpm testandpnpm run qualitynow name vitest'sdefaultandgithub-actionsreporters explicitly, unless the command names a reporter of its own. Vitest 5.0.0 already defaults togithub-actionsthere (node_modules/vitest/dist/chunks/defaults.D2ip7f-X.js:67), so annotations do not change today and this does not explain any run that lacked them; the flags keep them if that default changes.#1287
d559466Thanks @E1i! -construct-intake --admitand--amendreport ok only once they have read the card'scard.admittedback from the bus journal, and name its event id on the line after the ok. When the journal holds no event with that card and text, the command refuses with a non-zero exit instead of printing ok.#1313
85c8b0cThanks @E1i! - A repository that already has.claude/settings.jsonnow gets the scan allowlist:initandsync --applyaddWebFetch,WebSearchandmcp__context7topermissions.allowbeside the repository's own entries, and a second run changes nothing.Edit(/**)andWrite(/**)are not merged, so write permission in an existing repository stays as it was. A repository without these rules now reads asupdateinsync, and apermissionsorpermissions.allowof the wrong shape reads asconflictand is left byte for byte.#1341
effba13Thanks @E1i! - An amend of a card now also supersedes the answer task leased on the old card body, whose session the bus stops at its next beat, and a lease taken on the old body runs no session. An answer session whose question comes from an old body, or names an owner wait already closed, writes no owner question: the answer goes again, on the new body or with the closed waits of the card in its prompt. The task on the new body waits out the superseded session instead of reading it as a session the owner holds.#1344
14fc084Thanks @E1i! - Every step of an answer round now writes ananswer.stepbus event with its seconds, so a round that stops or is denied keeps its timings instead of losing them with thecard.answeredit never wrote. A step the round never reached carries null seconds. The gate step now also counts a gate command writtenpnpm --dir <tree> …, the form sessions run, which it used to record as no gate at all.#1336
66d42dcThanks @E1i! - cli:construct attachtakes--serve "<command>"and--serve-url <url>and records them asservein.construct/attach.json, with the defaultreadyTimeoutMsof 30000; it still writes noconstruct.json, and one flag without the other fails before anything is written. The bus's witness node readsservefromconstruct.jsonat the head or from the attach record through one reader, so a browser witness runs in an attached repository too; a repository with neither is still refused.#1294
d3378afThanks @E1i! -construct attach --upgraderewrites only the attach carriers of an attached repository to the installed version and keeps its.constructdata, the handoff, the bus and.claude/settings.local.json. The attach record now carriesattachedVersion, anddoctoron an attached repository prints the attached version and the installed one and says when the carriers are stale; a record from before this field reads as unknown.#1330
28e8c4eThanks @E1i! - The bus board shows a warnings strip above SERVICES: a live session or window with its context past the Eddies line (red above the limit), open pull requests over the limit the launch gate reads, open owner waits, a card with no movement past the stall threshold, andBUS_RERUN=by-layerswhile main still requires an up-to-date branch through its protection or a ruleset. With nothing to warn about the strip renders nothing. A board older than twice its refresh marks itself STALE instead of bus live.#1298
ca000e7Thanks @E1i! - An env change of the bus agent now reaches the running nodes without a manualpkill: every detached bus process carriesBUS_RERUNandCONSTRUCT_REVIEW_MODELon its command line as--agent-envstamps, andbus:bgstops and restarts, supervisor first, each process stamped otherwise than the values it is handed. A start handed neither variable restarts nothing; setBUS_RERUN=as-nowto go back. The merge and update nodes each log their rerun mode when they start.#1283
56107c6Thanks @E1i! - The browser lab names the sandbox when Chromium cannot start inside it, with the bare-command rule, instead of a ProcessSingleton line that reads as a profile fault. The browser-lab skill tells the agent to run the bare command from the repository root, with nocd,envprefix or&&.#1328
3979ba6Thanks @E1i! - The browser lab'spagetakes--viewport <w[xh]>,--color-scheme light|darkand--press <keys>, andhandsruns on a plain site with no--extension.#1316
e0a6c91Thanks @E1i! - The bus installs the browser lab's playwright-core and Chromium before a session starts, so a session never needs the registry, and the witness node starts the server a browser witness needs from the serve field of construct.json, waits for its url, runs the witness and stops it; a browser witness on a local URL in a repository with no serve refuses instead of falling.#1278
4401809Thanks @E1i! -construct-intake --amend <#N>edits an admitted card straight in the bus:--touchesand--createstake+<path>or-<path>,--noteappends a line,--witness <old>=<new>replaces a witness,--whosetsshiftorwindow. The body comes from the bus, the result passes the same checks as--admit— a weaker witness still waits for the owner — and is recorded as a newcard.admittedwith sourceamend;--dry-runwrites nothing. No file is written and no card number is read from a file name.#1304
99e28ccThanks @E1i! - A card can carry its witnesses and runs as fields:witnesses: [{"id":"W1","run":"…","test":null,"head":"pass","base":"fail","proves":"…"}]andruns: […].construct intakerefuses a field witness with no run, readshead: exit:Nas that exit, admits a narrowed, moved or negated field witness with no owner decision, and asks for a downgrade by card and id (#N W1) instead of the witness text. Cards with prose witnesses work as before.#1295
3aafd05Thanks @E1i! - A card's own changeset no longer counts as a change of every layer, so withBUS_RERUN=by-layersa merge updates only the open pull requests its other files reach.#1322
bc92ce2Thanks @E1i! - The merge node now rebuilds the check catalog itself from the tree of main after a merge that changes a test or the layer map, and when the catalog is empty; a failed rebuild leaves the catalog as it was and raises a board alarm. A 405 on a merge now keeps GitHub's response text, a head that is not up to date goes to update rather than counting as a fault, and any other 405 still stops the card, now with the text.#1337
d1864d3Thanks @E1i! - A composition record and the document itsdocfield names now follow a card whose touches reach a path one of that model's nodes names, so a card changing that code no longer stops on an owner question to widen its touches. The fence reads the models as they stand at the base, and every other guarded path still refuses to follow. A pull request carrying a composition record stays R1 for merge policy and review.yamlmoves from a development dependency to a runtime dependency of the published package, because the factory now reads the composition models.#1311
0e89e00Thanks @E1i! - An intake correction confirmed withCONSTRUCT_WINDOW_SHARDset now recordswindow under shard <id>incard.admittedand prints the same label, instead of saying a person confirmed it. The--confirmtoken gate is unchanged, and the variable is not set for you: a run without it still records a person.#1286
17a5bfcThanks @E1i! -miko:exitnow accepts a window-core version change as a stop condition: when a session thepnpm mikoloop started loaded an older version thanarchitecture/window-core.mdnow carries, it ends with reasoncoregiven a fresh handoff, and the loop starts the next session on the new core, so the owner no longer has to type/exit. A session outside the loop is not stopped by it.#1301
45316f5Thanks @E1i! - Parallel card sessions now share a CPU budget. Vitest takes its worker limit from the number of live test pools, with a floor of one worker. The pre-push full suite andpnpm linttake turns withpnpm run qualityin one queue, a session with a clean tree and no unpushed commit runs no pre-push check, and the board shows the machine load.#1306
c85e2d9Thanks @E1i! -construct intakenow reads acreatesentry ending in/**as covering every path under it, so a card that creates a new package no longer files its own witness as unclear or a touch under that package as missing.#1312
2e3741bThanks @E1i! - An owner decision bound to a card now reaches its answer session: the decisions in force that name the card go into the answer source and into the prompt as a block, and a session that stops on the same question after such a decision is denied as a repeat, with no new owner wait and no new stop, and the answer goes again.#1274
9aaacf2Thanks @E1i! - The review node keeps its depth plan when a concurrent fetch of the shared clone movesorigin/mainunder it: a fetch that fails withcannot lock refis retried once before the depth is planned, and any other fetch failure still fails as before.#1346
b9e5eb5Thanks @E1i! -construct intake --admitaddresses a prose witness by its position, as it does a field witness: the wait for a witness downgrade printsразрешить понижение свидетеля #N W2instead of the witness sentence. One decision may name several witnesses:разрешить понижение свидетелей #N W1 W2allows those it names and leaves the card refused for the rest. A decision naming a prose witness by its text still lifts its wait.#1347
d987d32Thanks @E1i! - A card with an open witness downgrade wait gets no answer round until the wait closes, and a question asked under that wait stops the card for the owner.#1340
a10d0ceThanks @E1i! - A restart of the bus onto new code no longer ends the card and answer rounds in flight. A worker holding such a lease finishes its round on the code it started with and exits, while a new worker on the new code takes new leases at once within the same slots.#1338
3b7009fThanks @E1i! -pnpm bus:request drop --card <N> --reason <text>drops a card the bus knows that has no admitted body and has not ended, so such a card no longer sits in review for ever raising a stall warning; a card with a body keeps thepnpm intake --moveroute.#1348
832ad1aThanks @E1i! - A launch or answer session that reaches the context warn now writes a handoff and stops, and the bus continues the card in a fresh session from that handoff, whatever itscontinuefield says, instead of pushing the unfinished work. PastMAX_RESTARTSthe card stops with no push and says so; a launch report without a valid handoff stops the card the same way. The spend warn keeps its behaviour.#1349
0e8b0adThanks @E1i! - A launch or answer session now reaches its context line at 150k, set bycardContextLinein.claude/eddies.jsonas an absolute valuewarnRatiodoes not apply to; with the key absent the line stayscontextLimit×warnRatio. The coordinating window keeps its own line. The board's context reading divides by the real window of the session's model, frommodelWindowsin the same file, and shows no denominator for a model that file does not name.#1329
4de6098Thanks @E1i! - A user factory followsgh auth switchless.construct-factoryrecords the GitHub account of the repository in the keep-alive asCONSTRUCT_GH_ACCOUNT: the gh account that started it, or the owner of theoriginremote when that account cannot push there. Every gh call of a node and every card session the launch node starts runs withGH_TOKENfromgh auth token --user <that account>, anddoctor --factorywarns undergh-accountwhen the active gh account is another one, without stopping the factory. A token gh cannot give for the recorded account fails the call and refuses the card, naming the account, rather than running as the active one. Ladder and answer sessions and the git pushes of the nodes still follow the active account.construct-factorynow spawnsgh, only asapi userandapi repos/<slug>, both read only.#1327
ede5415Thanks @E1i! - cli: A card number now comes from the bus of the factory it is admitted into, forconstruct intakeand for the bus's re-cut at the review round limit alike. A factory no longer receives numbers from the shared~/.construct/parking, so a second factory's next card follows its own highest number. Cards already numbered are not renumbered.#1324
de15568Thanks @E1i! - Intake's companion files and the touches fence's following files are now one table, andsrc/materialize/factory-manifest.tsfollows a card whose touches reach a path the factory manifest lists. The first bus review no longer reports a file that follows the touches as outside them, so a card's own changeset or generated twin stops costing a review finding.#1305
4ab2977Thanks @E1i! - Under a decisions shardhandoff:writenow acceptsSTATUS: OWNERat every boundary the bus keeps from the window's close of a stop:version-pr,npm-stage,security-invariants,claude-config,owner-merges,workflowsanddropped-witness. A window can hand such a wait to the owner instead of staying onCONTINUE.owner-merged-kind,missing-rightandowner-questionare still refused under the shard.#1281
3fb3eb0Thanks @E1i! - Process heartbeats now keep only their latest value per process in aheartbeatstable of the bus instead of appending aprocess.heartbeatevent on every tick, so an idle bus no longer grows its event journal with them and the nodes' scans over events no longer read them. The supervisor's liveness reading, the loop's live-window check and the board's per-queue slot totals (src/commands/board/bus.ts, a reader outside the card's touches, widened here) read the table.scripts/core/events.ts,scripts/core/node.tsandscripts/supervisor/liveness-sites.tsneeded no edit: the first keepsprocess.heartbeatas the row type, the second beats throughrecordProcessHeartbeat, the third reads no heartbeat.node.equivalencestays an event in the journal, a deliberate scope cut: the shadow window counts its ticks and one-sided keys from events, so its rows still grow the journal.#1296
d8d3132Thanks @E1i! -construct-intake --moveinto a launch lane refuses while the bus projection holds an older card body than the latestcard.admitted, instead of re-admitting that older body and silently reverting an amend. Run it again once the reducer has folded the admission.--move --dry-runprints the move and writes nothing: no event in the bus and no file moved.#1277
d983e75Thanks @E1i! - The browser lab takes--proxy <url>, orCONSTRUCT_LAB_PROXYfrom the environment when no flag is given, and sends its own browser through that proxy at every launch,handsincluded, so a site that blocks by IP can be reached through an exit elsewhere.#1317
de564ffThanks @E1i! - The browser lab'spagetakes--for <ms>: it stays on the page that long after load and only then reads the title, the text and the screenshot, and every line ofconsolecarries its time inat, with the window inlistenedMs. With--routethe window defaults to 15 seconds, so a check a page repeats after load is reported beside the first one instead of the first one standing as the verdict; apagewith no--routestill reads at load. Apage --routerun now takes 15 seconds longer unless--forsays otherwise.#1321
3910035Thanks @E1i! - A ready card no longer waits behind a not-ready card of its lane when another lane is empty. When a chain of not-started cards holds a card that cannot start, the ready cards that no such card precedes and that overlap no running card or open pull request move to the empty lane as a chain of their own, and the not-ready cards stay; launch's overlap check holds the later card back while the one that moved runs. A not-ready card keeps its parent in the lane, a ready card whose touches overlap a ready card stays with it, and a lane the owner set with a move is not reflowed.#1280
b61f937Thanks @E1i! - A merge task on a pull request that cannot merge now parks instead of spinning through lease →policy.denied→ release every few seconds: on a dirty pull request it is denied once and waits for a new head, and under an open owner question it is denied once and is requeued when the question closes. The bus'smikoshistatus check is written only when the step or state on a head changes, so a repeated lease no longer posts the same status again.#1333
7d642abThanks @E1i! - The merge queue updates one green pull request at a time: a pull request the bus just updated keeps the turn until it merges, turns red, is parked or 30 minutes pass, and a pull request of documents no test reads merges without an update.#1290
977dbc5Thanks @E1i! - An update task answerednot_behindnow ends as completed instead of failed: it no longer counts toward the failures that stop a card, writes nocard.stopped, and the update node does not ask GitHub again for the same head. Thepolicy.deniedthat records the answer stays.#1335
0789eeaThanks @E1i! -pnpm bus:request plan --op addon a release that does not exist or is closed is refused withrelease <id> is not openand writes nocard.planned. Before, it answered done and the reducer then dropped the event, so the card stayed in no release.#1285
d729d17Thanks @E1i! - The bus agent has one source:pnpm bus:agentrendersdev.mikoshi.bus.plistfrom its template with the factory directory and the command that prints the GitHub token, taken from--factory-dirand--token-sourceor fromCONSTRUCT_FACTORY_DIRandCONSTRUCT_BUS_TOKEN_SOURCE, and prints a diff against the installed file. Nothing is written without--apply, which replaces the file and reloads the agent; a missing value refuses. The agent no longer readsCONSTRUCT_FACTORY_DIRfromlaunchctl setenv, and it does not start when the token source fails or prints nothing.#1303
a4a992aThanks @E1i! -pnpm bus:request pr.body --pr <N>appends the code matrix count line from the card's shift report to the pull request description, so a merge denied for the missing line is queued again under the new description. It is refused with the reason named when the report is absent or holds no count line, or when the description already holds one.#1279
cea2ed0Thanks @E1i! - A pull request opened without a card line in its description is no longer cut off from its card. The bus now records each pull request's head branch inpr.observedandpr.closed, and when a newly observed pull request names no card, it links it to the one card whose body declares that branch, so review, answer, CI and merge reach the card. A branch that matches no card, or the branches of two cards, leaves the pull request unlinked rather than guessed, and a card line in the description always wins over the branch.#1332
726960cThanks @E1i! - A parked card'sprioritynow takesp1andp2as well asp0, and the shift takes cards in the order p0, p1, p2, then cards with no priority.#1309
25385d4Thanks @E1i! - A card whose session ends with no pull request and a plain question is no longer stopped as a fault. It waits on the question, and it starts again once the owner closes every question it asked. A session that ends with no pull request and no question is still a fault.#1315
9f35cf8Thanks @E1i! - A window's question becomes an owner wait by itself:pnpm handoff:writewithSTATUS: OWNERopens one from eachquestion:line of the draft unless one with that text is open, andowner.wait --need mergeis refused for a pull request the merge policy under the live shard leaves to the bus.#1284
26c734dThanks @E1i! - A test underapps/<name>/testsorpackages/<name>/teststhat imports a touched file now counts as covering it, so intake puts it in the card's runs and a card that changes it opens its pull request instead of stopping outside its touches.#1343
c15d14aThanks @E1i! - A card header can name its release with a linerelease: <id>besidewhoandpriority: a bus-wired--admitor--amendputs the card in that release with no--releaseflag and no plan request. An id that names no open release, or a--releaseflag that names another one, is refused and nothing is admitted.#1331
b594c38Thanks @E1i! -pnpm bus:requestwith--helpor-hanywhere in its arguments prints the usage, exits 0 and leaves the bus untouched. Before, a--helpafter a kind wrote a real request, which the bus then answered.#1302
438c399Thanks @E1i! - At the review round limit under an active decisions shard, the bus grants one extra round when the findings keep changing, and allows the merge when every open finding is a surviving mutation, parking those mutations as witnesses in a continuation card.#1345
d0db13cThanks @E1i! - intake:construct intakewrites the tests that cover a card's touches as theruns:field, joined with the runs the draft declares, and no longer appends aRuns:line to the task; an admitted card with the old line stays valid. The intake skill's draft example showswitnessesandrunsas fields, and says prose is explanation only.#1275
82ab00aThanks @E1i! - The sandbox list inscripts/ci/sandbox-failing.jsonlagain holds what the session sandbox refuses on main, so a card that touches a selector file is no longer stopped by the pre-push run on paths it does not own. The four suites that install the packed package are listed under a new refusal kind for the npm registry's 403, which the liveness trace now reads in whichever words the session's proxy uses, one run-root test moves to a new refusal kind formktempunder$TMPDIR, and the two run-root entries that now pass are gone.#1291
171ffdcThanks @E1i! - A freshinitallowsWebFetch,WebSearchandmcp__context7in.claude/settings.json, so the scan role can read documentation underdontAskinstead of being refused. A repository that already has.claude/settings.jsondoes not get these rules: the merge there takes only hooks and sandbox.#1299
d8d32e3Thanks @E1i! - The generated contract security test no longer assumes a bearer scheme: every operation under/v1/adminand/v1/memust name a scheme the contract's ownsecuritySchemesdefines, whatever its type, and an admin operation must name theadminscope where its scheme marks one.#1310
c697ce9Thanks @E1i! - cli:construct initrecords how the repository brings its server up asserve: { command, url, readyTimeoutMs }inconstruct.json, from the preset's default:pnpm devon port 3000 fornode-backendandmonorepo, on port 5173 fornode-frontend, and nothing fornode-library. A repeatedinitkeeps theservethe repository declared, and a malformed one is dropped on read.#1339
02fbb81Thanks @E1i! - An intake correction a window confirms under an active shard is recorded and printed aswindow under shard <id>instead of a person; a person at a terminal staysperson, and events already written stay as they are.#1282
44774feThanks @E1i! - The launch queue no longer runs cards one at a time just because each names the same shared registration file: files a repository lists undersharedAppendFilesinconstruct.json(a path, or a prefix ending in/**) do not block parallel launch or chain two cards into one lane when both cards name them. An overlap on any file outside that list, or a mask that covers a listed file, still blocks.#1314
6c05d77Thanks @E1i! - Everyquestion.ownerstop now has a lift on each route.bus:request owner.wait.close --from answercloses the wait on the owner's word from the owner channel and lifts the stop that wait was opened with, a stop on a reservation included, because the word is the owner's; another wait of the same card lifts nothing, and without--from answera window close of a reserved stop stays refused. A card amend admitted after the stop lifts it when the amend's note names the stop id or that stop's wait id (Q<N>); any other later amend does not. The answer node's stop on a commit refused for changes outside touches now records the refused paths inwiden, so an amend covering them lifts the stop with no owner wait to open or close, and an answer to a red CI on an open pull request is queued again; a refused owner path records none.#1300
5c82e92Thanks @E1i! -construct intakeandintake --admitrefuse a touch shaped like a package name (@types/express), a host (registry.npmjs.org) or a route (/v1/health) and name the reason, so a card's touches hold only repository paths. A path of that shape that exists in the tree or is listed undercreatesis kept, except a route, which is never a repository path.#1323
737385dThanks @E1i! - The answer node now opens the missing pull request of a card whose session committed and ended without one. An answer that leaves a clean tree with commits ahead oforigin/main, on a card with no pull request in the bus, runs the sametree-prstep the launch node runs and is recorded ascard.answeredwithpublished: true, and the card goes to review on the new pull request. Atree-prthat opens none leaves the denialleft_nothingas before; a tree with uncommitted changes and a card that has a pull request are unchanged.#1308
a1f6710Thanks @E1i! - factory: a pull request whose diff adds or widens a command outside the sandbox is the owner's under every shard and every decision, by the new authority ruleunsandboxed_command, whatever file carries it:excludedCommands,allowUnsandboxedCommandsother thanfalse,dangerouslyDisableSandbox, an import ofchild_processor a bare spawn call, read from the pull request's patches. A file with added lines GitHub gives no patch for is denied as unread. Tests and*.mdfiles are not read. It is a text match that closes these forms, not the whole class;architecture/security-invariants.mdlists what it does not see.#1342
9d25935Thanks @E1i! - A pull request that holds the update turn and is green and clean now merges without waiting for the hold to expire. A lower pull request the merge queue sends for an update while another holds the turn waits until that hold ends, instead of being leased again every few seconds and keeping the holder out of the queue, which also spends fewer GitHub calls. Its update still comes as soon as the holder merges or loses the turn.#1288
a7b4dbdThanks @E1i! - An owner decision scoped to a card now closes that card's open decision and command waits in the same write, and a card amended throughconstruct-intakecloses the decision waits opened before the amend. A merge wait stays open until its pull request merges.#1293
5a9782aThanks @E1i! - This repository's window has awindow-recipesskill: one table of a card's dead ends, each row the situation, its sign in the bus, the command and who runs it.#1326
d499627Thanks @E1i! -construct initwrites awindow-recipesskill into a generated repository: one table of a card's dead ends, each row the situation, its sign in the bus, the command that repository has and who runs it. A test asks every command in the table for its--help.#1292
c8d75c6Thanks @E1i! -pnpm bus:request takeover --card <N> --reason <text>lets the window take the tree of a card the bus has no route for: aquestion.ownerstop with no lift, green witnesses with no open pull request, or no answer or launch task for 30 minutes on a card that needs one. It is refused with the reason named while the card has a live task or a running session. An accepted takeover recordscard.heldandcard.takeover, the answer node skips the card, andrelease --card <N>ends it and queues again the answer tasks the hold withdrew.#1318
e9dc0c6Thanks @E1i! - The card dialog on the board shows a table of a card's witnesses when it has fields, one row W1..Wn with its run, test, expected head/base with the last result on the current head and what it proves, and a line for its runs.pnpm bus:witness-backfillparses theWitnesses:andRuns:of existing cards into fields in one event, lists every line it could not parse by card, and changes no card text; a card it did not parse keeps its prose witnesses. The services grid on the board takes a 16rem column.#1334
94d9937Thanks @E1i! - The CLI reference describes the witness and runs fields of a card:runs, andwitnesseswithid,run,test,head,baseandproves, and that a decision allowing a downgrade names the witness as#N W1.#1289
5993ff9Thanks @E1i! - The witness node now witnesses two heads at once: its executor no longer blocks the event loop while a witness command runs, and the git fetch and worktree setup of its tasks take turns, so two tasks never run them together.#1320
91441d6Thanks @E1i! -construct-intakeno longer creates a bus. Run from a repository or worktree with no bus at the path it resolves, it refuses with exit1, creates nothing and assigns no number, and names what to run first:construct-factoryorconstruct attach, or a bus named inCONSTRUCT_BUS_DB. Before, it opened an empty bus there and numbered the card against it. A bus named inCONSTRUCT_BUS_DBis still created.
0.45.2
Patch Changes
#1254
89aa4d1Thanks @E1i! - An answer session that leaves nothing — no new commit, no owner question, a clean tree — is now answered again instead of leaving the card standing silently, and the third empty answer in a row stops the card with an owner wait that names the cause.#1272
c470e34Thanks @E1i! - An answer round now gates only what it changed: the pre-push run takes--round <head>and selects tests and lints over the round's own diff from the head it started on, not the whole pull request, andcard.answeredrecords how long each step of the round took (lease, tree preparation, session start, first turn, gate, push).#1255
6bdd38fThanks @E1i! -initandsyncwritearchitecture/decisions/window-allow-merge.md, and the bus grants the window's allow-merge past the review round limit only while that record in its own repository readsaccepted, no longer by an owner decision number of this repository.#1269
0332126Thanks @E1i! - The eddies gauges on the board page no longer break apart in a narrow panel: each gauge is a three-column grid — the label, the bar taking the free space, the reading at its own width — so the bar keeps its length and the reading stays on the gauge's line.#1237
309ccc3Thanks @E1i! -construct boardnow groups each card under the lane the bus launches it in, the latestlane.assigned, not the lane it was admitted or moved into, and drops a wait from the owner strip as soon asowner.wait.closedis recorded, without waiting for the reducer. An owner wait with needdecisionnow closes when its card is merged, as every other wait of an ended card already did.#1256
636fe25Thanks @E1i! - A corrupted bus index no longer crash-loops the bus nodes until the owner repairsbus.dbby hand. When a node or the supervisor reportsSQLITE_CORRUPT, the supervisor stops the nodes of its own bus by its process record and a stop flag, and never touches the nodes of another bus. It backs the bus up through the sqlite backup API intobackups/<time>/with themax(id)andcount(*)of the events. When the events table still reads whole and nodedupe_keyrepeats, it runsREINDEX events,VACUUMandpragma integrity_check, checks that every event of the backup is in place, runsbus:reduce, checks every projection watermark is atmax(id), and starts the nodes again. Abus.healedevent records what was broken and what was done, andconstruct boardshows it. When the events table itself is broken, or any step is not ok, the nodes stay stopped, the backup is kept, and the owner gets one question. The heal never runs.recover, because it can lose events. The supervisor also publishesbus.snapshot.dbthrough the backup API on a timer and after each merge, for external tools to read instead of the live bus.#1241
a44c881Thanks @E1i! - A card's pull request in conflict withmainnow goes to the bus update node, which mergesmaininto the card's tree. Where the conflicting paths lie outside the card's touches, the node takesmain's version, commits the merge and pushes, so the pull request runs CI again. Where a conflict lies inside the card's touches, the node aborts the merge and stops the card withquestion.owner. Before, no node took such a pull request, and only the owner could clear it. If the update node cannot merge, for example because the card's tree is gone or stands mid-merge, it records amerge_refuseddenial, and the answer node takes the conflict as before.#1234
58df0b7Thanks @E1i! -construct doctor --factorychecks two more items.window-continueis red until the lastSTATUS:line of the window handoff isCONTINUE, and its command names the handoff to rewrite.card-permissionsis red while.claude/settings.local.jsoncarriespermissions.allow,permissions.additionalDirectories,permissions.defaultModeor asandboxblock, or cannot be read. Card sessions read that file, so those entries widen what a card session may do; keep them in~/.claude/settings.json, which card sessions do not read.#1251
289a7afThanks @E1i! - A merge of bus code tomainno longer stops new cards from starting while the leases in flight drain. The supervisor now drains only the bus processes that still hold a lease, and theleases.drainingrecord names the sha they run on. Every changed process that holds no lease, launch included, restarts on the new code at once and leases new tasks right away. A process is refused a new lease only while it runs code other than the sha the drain restarts onto.construct boardshows each open drain: the node, the sha it drains, the sha the restart moves onto, and the deadline.#1253
c413c7cThanks @E1i! - The bus witness node no longer closes a card while someone is still working on it. Before, a card whose witnesses already passed onmainwas closed while its launch session still ran. The session then opened a pull request that the bus refused, so the pull request was never reviewed or merged. Now a green witness onmaincloses the card only when no session is running for it and no pull request of its own is open. A pull request of its own that merged, or that was closed without merging, does not keep the card open. While a session runs or its pull request is open, the green verdict is recorded and the card stays open.#1232
f9df51bThanks @E1i! -miko exitnow finds the Eddies context threshold when it runs from a shell that does not setCLAUDE_PROJECT_DIR: it reads.claude/eddies.jsonof the directory it runs in, not of the installed package. A window under thepnpm mikoloop that is past the threshold, with a fresh handoff endingSTATUS: CONTINUE, now exits and is restarted instead of being refused with "not at a stop condition".#1270
e33c2a6Thanks @E1i! -intakeno longer chains the cards of one draft by their imports: a depends between two cards of a draft comes only from the draft. Where one card's file imports a file another card changes, the consumer's body carries animport:note naming that card instead of acorrected: dependsline, and the card is not held for confirmation for it.#1235
7fc2e12Thanks @E1i! -construct intake --draftnow accepts adependsorblockson a card the bus holds, such as one in work or in review, just as--admitalready did. Before, such a card was marked unclear as "neither a parked card, done nor merged" and parked for the window. A reference to a card that is neither parked nor held by the bus still stays unclear.#1242
c9e12e2Thanks @E1i! -construct intake --dry-runis now refused while a bus exists on the machine and this entry cannot reach it, for--draftand for--admit, with the same line the write prints. Before, the dry run went through without the bus's cards and could print a number the bus already holds. With no bus on the machine the dry run is unchanged.#1252
a54d3c0Thanks @E1i! -construct intake --admitno longer holds a negated witness with the inverted exit, or an equivalent replacement under a standing owner decision in force, as a witness downgrade.#1247
f0d6af6Thanks @E1i! - The bus answer node no longer takes a card the owner holds, and refuses an answer commit that changes a path outside the card's touches.#1243
d724753Thanks @E1i! -construct intake --admittakes one owner word for several witness downgrades. The decision must be live and name the card in its card list, and its text must name the card right after the allowance.разрешить понижение свидетеля <witness> у [#6](https://github.com/E1i/mikoshi-construct/issues/6), [#5](https://github.com/E1i/mikoshi-construct/issues/5) и [#4](https://github.com/E1i/mikoshi-construct/issues/4)allows that witness on each card it lists.разрешить понижение свидетелей у #Nallows every witness of each card it lists. A decision that only quotes a witness, or that allows one witness and mentions another, still holds the card.#1230
652c9f9Thanks @E1i! -construct intakeand the bus witness check now count a path under a card'screatesas part of the tree a witness reads, and intake marks unclear a witness meant to be red on the base that names no path of the repository or of the card'screates.#1268
852148bThanks @E1i! - The board reads a release as the cards whose release field names it: merged, in work, review and queue, the remainder of unmerged cards, and the gate as the release's exit criterion, open while the remainder holds a card and due once it is empty. Dropped cards of the release show as one dropped line instead of counting toward the total.pnpm board --plan <release>prints the release's plan from the bus, grouped by stage, so plan.md is no longer a second list kept by hand.#1266
eadd322Thanks @E1i! - The bus keeps a card's release as a field of the card:plan --op addandplan --op removemove one card into or out of a release with onecard.plannedorcard.unplannedevent,intake --release <id>puts an admitted card into an open release, a release carries its gate, andplan --op backfillmoves the cards a release's plan items linked onto the field in one event.plan --op linkis gone, and no command writes a card into a plan item any more.#1271
850311eThanks @E1i! - A card stopped with no pull request on an agent question no longer stays down for good when no window is running. The paths it asks to add to its touches keep only real files in its tree. Anything else, such as a package name, a host or a URL path, is dropped and named in the stop. When nothing is left to add, the card starts again once the owner closes its question. A stop that asks for a real path outside its touches still waits for an amend, and the amend starts it again.#1248
bd86eaeThanks @E1i! - A pull request at the review round limit can now go on with its fixes. The owner decisioncontinue-fixes PR #N at <head>queues an answer task on that head, carrying the review's findings and the card's current body. The next push gets a review, and the pull request merges only after that review passes. A changes review on that push closes the rounds again, so the next step is a new decision. Before, the only answers to the round-limit question were allow-merge, a re-cut or closing the pull request, because the answer queue stayed closed whatever the owner said. The round-limit wait now namescontinue-fixesbeside the other choices.#1250
fbff778Thanks @E1i! - Thearchitecture/owner-merges.mdthatconstruct initwrites now puts the sandbox settings of the bus sessions (scripts/ports/shift-settings.ts,scripts/ports/isolation.ts) undersecurity-invariants, so the owner merges a change to them under every shard. It also says that the owner merges a pull request that changes the table itself, whatever the table says. The bus enforces that last rule on its own, so a pull request is never judged by the row it replaces.#1260
1f94661Thanks @E1i! - The bus now installs a card tree's dependencies outside the sandbox (pnpm install --frozen-lockfile --prefer-offline --ignore-scripts) before every card session and every answer session, as the reviewer already did before a review.#1249
7ad2cddThanks @E1i! -construct-factory --mode ghost-protocolissues amerge+decisionsshard, so under the owner's word the window answers card questions as well as merging.#1263
133bc9aThanks @E1i! - The intake companion module now also names the files that follow a card's touches without a question: a generated twin of a touched file (contract/surface.json,architecture/add-population.md,architecture/self-hosting-drift.yaml, the root copy of a touched template) and a changeset the card adds, never a.claude, owner-merges, security or R1 path;construct intakeitself reads cards as before.#1244
414fcfdThanks @E1i! -pnpm miko:watchno longer leaves the window blind after its parent dies. A watch whose parent process is gone (apnpmkilled by a Bash timeout) now exits and releases the--oncecursor, and the cursor lock records its owner besidemiko-watch.db: a next--oncethat finds the lock held by a watch whose owner is dead waits a few seconds for that watch to let go and takes the cursor over, instead of answering "another consumer already waits". A lock whose owner is alive is still refused at once, never waited for.#1262
54ecd73Thanks @E1i! - An owner question no longer ends the window's turn: a tab window whose handoff endsSTATUS: OWNERcannot stop without a livepnpm miko:watch, so the question waits on the board while the window keeps settling every other card.#1236
ab8d33aThanks @E1i! -construct intakeno longer marks a vitest witness that names a test but no file as unable to be red on the base, andintake --admitcounts the same wordings as intake for a witness that must be red on the base. The witness check that runs a card's witnesses on the base and on the head (P7) now reads the paths a witness names, the card'screatesand the wording of a change witness through the same reader and predicate intake uses.
0.45.1
Patch Changes
#1208
8a3d48fThanks @E1i! -construct attachon a repository whose remote is not on GitHub now says plainly that the factory is unavailable there, and installs the window alone: without the harness, with no required check asked for, and with no factory place created beside it. A repository with no remote, or a remote that is a local path, attaches as before.--harness noneattaches without a gate on purpose, and the refusal for a required check that cannot be resolved now names it as the other way forward. Gogs, Gitea and GitLab are not adapters yet.#1210
d3580a4Thanks @E1i! -construct boardgroups the backlog by the parking lane a card was admitted to or moved to withintake --move, not by the launch slot the bus gave it. The launch slot is kept apart asslot-Nand is never named a lane, and emptylane-1…Nheadings are no longer printed. Every wait under "waits for you" now ends with a ready command and who runs it: the owner runsgh pr mergefor a merge wait andpnpm decisions:addfor a decision, and the window runs thepnpm intakeandpnpm bus:requestcommands a wait names. Each open plan shows a text progress bar. When the bus holds live cards but no open plan, the board printsplan not registeredwith the command that registers one, and an empty flow names the command that admits a card. The bus also closes a wait that asked the window to amend a card as soon as that card is admitted again. Onboard.html, the BUS LIVE indicator reads the factory's liveness from the window heartbeat: a fresh heartbeat showsbus live, and none or a stale one showsbus offlinein red. The header version is read when the page is rendered, so it is the version of the construct that runs the board. A service tile's ctx and spent readings wrap below the bar when the tile is narrow, instead of being cut off.#1195
65e5730Thanks @E1i! -construct intakeand/planset the cheap contour on every card, whatever its risk: the risk reading sets review depth and who merges, never the contour. A card stated asladderstays on the ladder only when its text carriesladder: owner <where the owner gave the word> — <the reason>; without both, intake corrects it to cheap and says why.#1217
bed75e2Thanks @E1i! -construct detachno longer removes silently. Before anything goes it prints what it will take — each daemon run directory under.construct/daemon, the factory's directory beside the repository with its handoff, the handoff's archive and the owner decisions, each with its number of paths, and the total — and asks for confirmation.--yesprints the same list and removes without asking; without a terminal and without--yes, detach removes nothing and exits1.#1201
cc16475Thanks @E1i! -browser-lab.mjs hands --profile-fromno longer leaves a profile copy behind for good when its session never reachesclose: the next hands run sweeps every other session's hands copy idle for six hours, and passes over one it cannot remove.hands … -- closewrites toconsole.jsononly the console logs its own session made since itsopen, not those an earlier run left in the same evidence directory. A close that fails removes an earlierconsole.json, writes none, reports the failure and keeps the session for another close; a close with no record of itsopenrefuses rather than guess which logs are its own.#1214
de137a7Thanks @E1i! - The promptdaemon.workflowgives each object's agent now says thathandsruns with its working directory in that object's evidence directory, so a path passed tohands, a screenshot or a file to upload, resolves against the evidence directory and not the repository root.#1200
e604b60Thanks @E1i! -npm packbuildsdistfirst, the bus names stray bus processes from another package, a witness refusal carries the command's last output lines, and a card's own changeset no longer forces a full pre-push run.#1204
2e05221Thanks @E1i! -construct intakerefuses a draft in which two cards carry the same task text, gives every slice it cuts a goal line of its own, and makes a card that imports what another card of the draft changes depend on it. A witness can state its kind as a field,{ "witness": …, "kind": "acceptance" | "invariant" }, and the downgrade check reads that field before the phrase "red on main". A draft can name aplanwhose file sits inside the repository and holds a slice table; every card then names itsitem, and a bus intake opens the plan, adds the items and links the cards. A refusal says how to add the missing table.#1226
8f547f8Thanks @E1i! -construct intakeno longer slices by risk an XS card, nor a card whose critical side is only a row ofarchitecture/security-invariants.mdbeside the code that changes it: it writeswhole:with the reason itself and parks one card, with no confirmation to ask for. Awhole:the draft states is kept as written.#1215
88e78e5Thanks @E1i! -browser-lab.mjs --route <url-glob> <file>now answers the matching requests of the extension service worker as well as those of the pages, and every command that opens the lab browser takes it, not onlypage:sw-eval "fetch(…)" --route …gets the file back.handsrefuses--route, since its browser is opened by@playwright/cli. The lab opens its browser withserviceWorkers: 'allow'and withoutPLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK, the two switches that would keep service worker requests off the routes.#1216
93a4cfdThanks @E1i! - The bus no longer keeps a card waiting in a lane once every card it was queued behind has merged or been dropped. A card that has not started yet then gets a lane of its own. It goes to a busy lane only when it shares touches with a card already running there, or depends on a card that is still live. Queued cards that wait behind it never pull it back. A card moved withintake --movenow launches from the lane it was moved to, including a parking lane numbered above the lane count.#1202
355d96eThanks @E1i! -construct-factory --mode ghost-protocolon the owner's word is the only word the factory needs: every worker it switches on runs live, merge, update, close and restart included, and the switch writes the owner decisionsallow-live mergeandallow-live updatefor the shard's term into the bus's decisions file, creating the file on a fresh factory. A closed card no longer holds a lane while close waits in shadow, and a ready pull request no longer waits for a secondconstruct say allow-live. The return to window leaves no switched-off worker live, so a worker switched on later in window starts in shadow. While the owner's ghost-protocol shard is active, the merge node no longer opens an owner wait asking forallow-live merge; once the shard is revoked or expired it asks again.#1220
6807d9aThanks @E1i! - The bus no longer launches a card behind a card whose pull request is still open. A card with an open pull request keeps its lane and its touches until that pull request is merged or closed, even while it stands stopped on a question or queued again after an amend.#1203
9e03db7Thanks @E1i! -initnow writes the files the factory reads: thebrief,reviewandscanagents (the brief agent names the repository's bus handoff and the/implementline the approval needs), theprobeskill, the/statusand/attached-discovercommands, a defaultarchitecture/owner-merges.mdwith the column «merges under a shard», and a «Who commits» section inCLAUDE.md.initin a git repository andattachcreateowner-decisions.mdbeside the repository's bus when it is not there, sodecisions:addno longer refuses on a first decision.#1207
58b0156Thanks @E1i! -initpinspackageManagerto the pnpm on the path only when it is not older than the pnpm mikoshi itself pins (12.4.2); an older or missing pnpm pins 12.4.2. The monorepo preset's catalog no longer carries@types/express,express,express-openapi-validatorandlight-my-requestwhen the sample app is not written, so its lint passes on a repository with no consumer of them. The.gitignoreinitwrites ignores.pnpm-store/.#1218
245390bThanks @E1i! - The files the mikoshi factory reads in a repository — thebrief,reviewandscanagents, theprobeskill,.claude/eddies.json,.claude/settings.json,architecture/owner-merges.mdand the hook scripts underscripts/construct/— are now one list in code, and a test fails when the factory names a fileinitdoes not carry.construct sync --applybrings a repository initialised before them up to date, and now also appends the factory hooks to a.claude/settings.jsonthat lacks them, keeping every entry and key already there.construct doctorgoes red when the construct carried some of them and one is missing, and says to runconstruct sync --apply; a repository whose record holds none of them is not read as run by the factory.#1206
794083cThanks @E1i! -initnow writes the budget layer the factory runs on:.claude/eddies.jsonwith the session, agent and run limits, and theeddiesguard and prompt hooks that measure spend against them. It also writes a window heartbeat:scripts/construct/window-heartbeat.mjsruns on every tool use and records awindow.heartbeatcarrying the window's context and spend into the repository's bus. The.claude/settings.jsonit writes lets the window edit and write files in its own repository, and asks before an edit of.claude/settings*.jsonor.claude/eddies.json. Wheninitmerges into an existing.claude/settings.json, it now adds the browser-lab sandbox exclusion as well as the hooks.attachadds aheartbeathook to the self-contained window hooks, which writes the samewindow.heartbeatwithout the gauges. A bus that is absent, or has no events table yet, is left as the hook found it.#1228
1f2930bThanks @E1i! - A bus-wiredintake --moveinto a parking directory now takes the card off the queue: a move into anything other than a launch lane (lane-*,night-*, or a dated lane with a one-letter suffix such as2026-10-30-a) writescard.dropped. It used to writecard.movedand a freshcard.admittedinstead, so the bus could launch the card and the board showed it as planned. A dated directory with a word suffix, such as2026-10-30-folded, counts as parking.#1196
0e08cc1Thanks @E1i! - A probe closed by its report is a satisfied dependency for the launch node and forpnpm task:startalike: both read one predicate, from the probe'scard.verifiedon. A card whose goal is already onmaincloses without a pull request once its witnesses pass onmain.#1193
5d62689Thanks @E1i! - Intake no longer reads a card that touches onlysrc/commands/init.tsas risk R1: whatinitwrites goes into the repository it creates, not into someone else's. Whatattach,syncordetachwrite into another repository stays R1, including every template group and thesrc/materializestrategies they share withinit.#1209
5555258Thanks @E1i! -construct intakecounts a test that runs ESLint (it constructsnew ESLint(…)or callscalculateConfigForFile) as covering a card that touches the rooteslint.config.*, so that test goes into the card's runs instead of being missed.#1224
c3ed507Thanks @E1i! - Bus card sessions (launch and answer) may bind local ports on localhost, so an attached repository whose gate runs tests that listen on a port passes its gate inside the session sandbox. Outbound network is unchanged, and the session's isolation readspartialwithsandbox.network.allowLocalBindingnamed.#1222
a91bedbThanks @E1i! -construct doctor --factorysays, before the factory starts, whether it will go: for each item it needs — the files it reads, the eddies and heartbeat hooks in.claude/settings.json, pnpm pinned at or above the mikoshi floor,.pnpm-store/ignored, a fresh window heartbeat on the bus, andallow-live mergeandallow-live updatein force — it prints goes or does not go, and under each red item the command that turns it green. It exits1while any item is red;--jsonprints the same checklist.#1227
3545e5dThanks @E1i! - Bus card sessions (launch and answer) may listen on the tsx IPC pipe under/tmp/claude-<uid>/tsx-<uid>, so an attached repository whose gate runs the tsx CLI passes its gate inside the session sandbox. No other unix socket is allowed and outbound network is unchanged; the session's isolation readspartialwithsandbox.network.allowUnixSocketsnamed.#1197
e0a7837Thanks @E1i! -pnpm miko:exitatSTATUS: DONEno longer ends a window whose owner has not written in it yet: the window waits for the owner's first message and takes its task. A subagent the window stopped withTaskStopno longer counts as running, so the exit is not refused for it. A window's heartbeat carries its repository, and a second window in the same repository names the first before it writes its own beat. The card-tree port cuts a tree for a branch that has no card, by the same path it cuts card trees.
0.45.0
Minor Changes
#1185
d919925Thanks @E1i! - cli: attach and init let the browser organ start inside the Claude Code sandbox by excluding onlynode scripts/construct/browser-lab.mjs *; detach removes what attach added#1184
a5e9cceThanks @E1i! - scripts: an adapter connects to the browser daemon through one file,.construct/daemon/<name>/adapter.json, with five fields —extension(a directory, optionally a build command),prepare,objects,mechanicandsuccess— whose single source of truth isscripts/construct/daemon-adapter.schema.json;node scripts/construct/daemon.mjs check <adapter>validates an adapter against it and refuses one whose code importsmikoshi-construct.#1189
1e50b9cThanks @E1i! - attach: carriesscripts/construct/daemon.workflow,scripts/construct/daemon-run.mjsand thedaemonskill, which run an adapter's objects in a real browser lab — a fresh agent per object, at most two at once unlesslimitsays otherwise, each on a--profile-fromcopy of the base profile — and leave.construct/daemon/<run>/<object>/evidence.jsonper object; an object whose prepare fails is recorded unobserved and starts no agent.detachremoves a.construct/daemonattach did not find and leaves one that was there;cost --jsongains adaemonkey, present when.construct/daemonholds evidence, listing each object's run, object, verdict, agent label and the tokens of that agent's transcript (nullwhen no transcript carries the label); the text report does not print it.#1186
6440f8dThanks @E1i! - The browser lab collects the console of the page and of the content-script world, routes page responses, takes screenshots, runs on a copy of a base profile and hands the browser to a pinned@playwright/cli; CI runs its real-browser tests and fails when any is skipped.
Patch Changes
#1190
1833af0Thanks @E1i! - cli: when attach refuses a collision where some paths are not recognised, the next step now readsMove the paths marked not recognised yourself, then run: cd … && rm -- … && npx mikoshi-construct attach …, a command a shell runs as pasted, instead of a line whose apostrophe left a quote unterminated#1191
48e3c14Thanks @E1i! - cli: the daemon core is now proven in CI by a fixture adapter run throughdaemon.workflowin a real browser — a prepare that substitutes a config file in the lab copy readsholds, one that leaves it as shipped readsfalse#1192
8a6d48cThanks @E1i! - The browser lab'shandstakes--profile-fromand copies the base profile once per session, runs each object in its own session with the extension config whatever the position of-s, works under--evidence <dir>so no.playwright-cli/lands in the repository root, and onclosewrites the full console stream of its session toconsole.json.
0.44.3
Patch Changes
#1183
3f4f9b9Thanks @E1i! - attach: the window hooks deny a Write, Edit or MultiEdit into the repository's handoff directory and say to write the handoff withmiko handoff write <name> <draft>.#1181
eb9c5fbThanks @E1i! - cli: the attached window gets.construct/window-rules.mdas context at every session start, not only after a compaction, andattachno longer writes theWriterule for the Engram directory, which Claude Code does not apply;ReadandEditstay.#1180
c93d4a0Thanks @E1i! - window: the handoff check readsdecisions: noneas no decisions file, andhandoff writeacceptsnext task: nonewithSTATUS: DONE.#1179
d264f2fThanks @E1i! - miko:miko --helplists the window commands,handoff writeandhandoff checkamong them, one line each, before the product CLI help.#1177
1ddbb4bThanks @E1i! - cli: the rerun lineattachprints after a collision refusal carries the--required-checkthe run was given, so the rerun no longer exits 2 in a repository with no CI job running the harness.#1182
9b99e0eThanks @E1i! - window:miko exitrefuses, naming them, while a subagent the window started is still running or a worktree holds uncommitted changes.
0.44.2
Patch Changes
#1173
54c6d83Thanks @E1i! -construct attachadds the Read, Edit and Write allow rules for the repository's own Engram directory to.claude/settings.local.json, andconstruct detachremoves exactly those.#1174
0d5ea75Thanks @E1i! - cli:attach --harness <cmd>without--required-checktakes the CI job whose step runs that command, and refuses with exit 2 when no such job is found.#1175
5fbf366Thanks @E1i! - The intake skill and the window architecture say the draft is always taken from the bus withpnpm intake --export '#N', never from a parking file.
0.44.1
Patch Changes
#1168
4de7138Thanks @E1i! -attachnow carries/construct-atlasand/attached-discoveras hidden carriers; in an attached repository the interpretation goes only into the Engram under~/.construct/engram/, anddetachremoves both carriers.#1169
da911e8Thanks @E1i! - cli: attach carries a generic window rules document beside the window hooks and recordspush: none, under which the bus neither commits, pushes nor opens a pull request in that repository.#1166
4b60286Thanks @E1i! - attach records the CI job its harness candidate came from in attach.json, and the bus reads that job as the required check; where the job's check name is not in the workflow (a matrix, an expression in its name, a reusable workflow) attach refuses until--required-check <name>names it#1171
430a20dThanks @E1i! - factory:miko handoff writeandmiko handoff checkresolve a relative handoff name against the repository's handoff directory —~/.construct/<owner>--<repo>/handoffin a repository other than mikoshi-construct,~/.construct/handoffin a mikoshi-construct checkout,CONSTRUCT_HANDOFF_DIRwhen it is set — and the first handoff in a new repository is created with its directory. Before,miko handoff write miko.md <draft>from the root of a fresh repository resolvedmiko.mdagainst the working directory and refused it as not this session's handoff, so the window in a new repository could not write its first handoff.#1167
1aa2295Thanks @E1i! - factory: a merge task's key now carries the sha of the pull request body, so a task withdrawn on the body (decision_unread,no_matrix_count_line) is queued again under a new key once the body is edited, and theboard.alarmraised for the withdrawal names that task key.#1164
5998af3Thanks @E1i! - factory: themikobin runs the window of the repository it is started in.mikowith no arguments starts the window loop;miko watch,miko handoff write,miko handoff check,miko request <kind>andmiko exitrun the window's commands from the package; every othermiko <command>is the CLI as before. In a repository other than mikoshi-construct, the handoff lives in~/.construct/<owner>--<repo>/handoff, the bus is that repository's own with no fall back to the machine-wide~/.construct/bus.db, and the loop's continue prompt names that handoff and themiko …commands instead ofpnpmscripts. Before,mikowith no arguments printed the CLI usage, and the window could only run inside a mikoshi-construct checkout.#1165
a91845eThanks @E1i! - factory: a redwitness.recordednow keeps the names of the failed tests and the first lines of their errors, cut at a limit, after the refusal line. Before, a red witness kept only the last line of the output, so which test failed was lost.
0.44.0
0.44.0 — the factory ships in the package (beta)
0.43.0
0.43.0 — Mikoshi builds the Atlas of any repository
0.42.0
Minor Changes
#591
f93df2cThanks @E1i! - cli:construct intake --admitamends a card the journal already admitted when its card line, task text or witnesses changed: the card is checked with the parking grammar and gets a newintakeline with"source":"amend", instead of a report that it is already admitted. Everyintakeline now recordsbodySha, the digest of the card's text below its header; an unchanged admitted card still writes nothing.#579
f29f0c7Thanks @E1i! - templates: the/implementladder stops withbase moved, naming both shas, when the HEAD its harness observed after a rung is not the base pinned at preflight, and the implementer is told the base and not to move HEAD, so a run no longer carries on over a base that changed under it.#571
d00e91cThanks @E1i! - ledger: a run ledger row may carrysketch, the sha of the sketch its run started from or null (ledger-row/1.2), copied from the build's handle by step 4 of the implement skill, andghosts:expect-sample --sketchreads it before the Ghost journal.#585
5193511Thanks @E1i! - cli:construct mutate judge --card <n>appends amutation-judgedline — card, mutation id, outcome, whether it matched — to--journal(default~/.construct/handoff/ghosts.jsonl) after a verdict, so a task closed as verified by mutation can be checked against a mutation that ran; without--cardnothing is written, as before.#598
a89b489Thanks @E1i! - cli: inside a shift, whose session carries its card inCONSTRUCT_CARD,construct mutate judge --idwithout--cardis refused before the mutated file is touched, and the refusal names the card to pass;--baseline, an--idrun with--card, and every run outside a shift are unchanged.
Patch Changes
#595
1c039c7Thanks @E1i! - cli:construct intakewith--parkingset to a subdirectory of the parking assigns a number no card already holds: the cards parked in the parking root and in every subdirectory of it count as taken, and so does every number anintakeline in the journal names, not only the files of the--parkingdirectory.#589
4da69fdThanks @E1i! - cli:construct intaketakes an optionalwhole: "<reason>"on a draft card; a card a person kept whole despite its seam keeps thewhoits draft proposed instead ofwindow, and the parked card carrieswhole: <reason>under its seam lines. A card with an unclear field still goes to the window.
0.41.0
Minor Changes
#570
4b53772Thanks @E1i! - templates: thebrowser-labskill andscripts/construct/browser-lab.mjsare carried by init, sync --apply and attach; the script observes an extension or a page and exits 0 observed, 1 no content script ran, 127 could not observe.#558
1106b00Thanks @E1i! - cli:construct cost --expect [--effort low|medium|high] [--json]prints the forecast of the next run from.construct/runs.jsonl, the same calculation the ghost launcher uses.#541
33d1900Thanks @E1i! - cli:construct intake --admit <parking>/<id>.mdadmits a card parked before intake confirmed cards: it checks the card by facts under its own number, holds a correction until a person confirms it, and writes the card'sintakeline, sotask:startand the shift take it.#552
9dc5192Thanks @E1i! - templates: the intake skill saysconstruct intakecorrects adependsorblockson a task already in main — an implement task whose merge line is in the journal, or a probe closed by its report — instead of on a closed card.#545
bc9f30cThanks @E1i! - cli:construct intakecounts complexity signals in each card — too many touches or areas, the mechanism the task runs on, a generated file with its sources, too many unclear fields — and, when two or more fire, writes the slicing principle, the signals and proposed disjoint slices into the card and holds it for the window.#565
b34481aThanks @E1i! - templates: the/planbrief skeleton carries anexpect:line on line 3, the first lineconstruct cost --expect --effort <class> --plainprints, so a repository's entry card andparseExpectread the forecast from it.#554
40a41d3Thanks @E1i! - cli:construct intakewrites arisk: R<n>line into every card, read from itstouches: R1 for the ladder mechanism, for anythinginit,attach,syncordetachwrite into another repository and for the security invariants; R4 for documentation, tests, logs and scripts outside the gate. When a card mixes R1 with R3–R4 work and the split signal proposed no slices, intake proposes a risk seam —seam: riskand oneslice:line per side with its level, a generated file kept with its sources and a template with its twin, named capability / delivery when that is the cut — and holds the card for the window. It only proposes; the card line is unchanged.#564
642a924Thanks @E1i! - intake: the complexity seam keeps a generated file with its sources and a template with its twin in one slice; when its slices would still hold R1 together with R3–R4 work it proposes none and the risk seam is offered; a proposed risk seam waits for the same--confirmtoken as corrections.scripts/ghosts/**andscripts/shift/**read as R2, except the approval and launch gate (approval.ts,hash.ts,launch.ts), which is R1.
Patch Changes
#547
2f5f849Thanks @E1i! - cli:construct intakekeeps adependsorblockson a task that is done but not merged and removes it only when a merge line names the task.#567
f09f4b6Thanks @E1i! -construct cost --expectnames what raises anonereading: below five counted runs the line adds how many more done runs at that selection it takes, as inexpect: none — n=4 for effort medium; 1 more done run at effort medium raises it.#543
a49775cThanks @E1i! - cli:construct intakecounts a witness command named by an absolute path to an existing file, such as/usr/bin/env, as resolved instead of marking it unclear.#548
b06e7ccThanks @E1i! - cli:construct intakechecks every backticked command of a witness, not only the first, and counts an absolute command path as resolved only when it names an executable file.
0.40.0
Minor Changes
#518
8c20c37Thanks @E1i! - templates: the/implementskill saysagreedSha256is the sha256 of the whole agreed text,Sketch:line included, and no longer calls it the approved hash. ghosts: the approval hash of a brief leaves out itsSketch:line and the approval line stores the approved sketch's full sha, sopnpm ghosts:launchstarts a sketch rebased onto a newerorigin/mainwithout a new approval whengit range-diffshows every commit as=, and refuses it withre-approveotherwise; an approval written under the earlier rule is refused once withre-approve, and theevent:taskjournal line gainsapprovedSha256,approvedSketchandrangeDiff.#520
dcbc016Thanks @E1i! - templates: discovery writes an attached repository's high-effort areas to.construct/high-effort-areas.mdand/implementreads them there, instead of from a CLAUDE.md section nobody fills.#524
11c6900Thanks @E1i! - templates:construct attachnow writes a second file beside the commit guard,.construct/shell-parser.mjs, which holds the guard's reader of the command line, andconstruct detachremoves it; the guard imports it inside the checked call, so a missing parser refuses with exit 2, and the refusals are unchanged.#532
5a836c7Thanks @E1i! - cli:construct.model.jsongoes tomodelVersion4 with stages, nodes and links, versions 1 to 3 still read with the lists empty, and an older build reads version 4 as ahead of it.#514
95bf0d2Thanks @E1i! - cli:initrefuses a repository thatattachholds — with.construct/attach.jsonpresent, readable or not, it writes nothing and says to runconstruct detachfirst.#536
b1d96b2Thanks @E1i! - cli:construct intakeparks no card whose corrections a person has not confirmed: it prints them with a token and exits2,--confirm <token>parks the cards as shown,--auto-confirm(off by default) parks them at once, and every parked card gets anintakeline in--journalwith its confirmation and corrections.#534
433fea5Thanks @E1i! -construct intakechecks each card against the repository and the journal and writes every correction into the card ascorrected: <field> — <was> → <now> — <reason>.#531
1cc512bThanks @E1i! -construct intaketurns a draft of sliced cards into parking cards: it assigns the next numbers free in the parking and among the pull requests and issues--takenlists, writes each card in the parking format, marks every field the retelling left unclear as anunclear:line and keeps such a card withwho: window, and parses every card back with the card grammar before writing. Theintakeskill slices a person's retelling into that draft, andattachnow carries it as a tenth carrier.#533
6dad0a2Thanks @E1i! - templates: the/implementladder runs on a red base whose failures are identified and pinned, and passes a rung that adds no failure; a base red in a way that cannot be identified still runs nothing.
Patch Changes
#539
740f828Thanks @E1i! - skill: the intake skill writes the taken numbers to a file beside the draft and passes--taken <file>instead of piping them, namespnpm --silent dev intakefor the repository that builds construct, and describes the confirmation gate: exit2with a token,--confirm <token>,--auto-confirmoff by default, theintakejournal line, and a confirmed card keeping the draft'swho.#538
e7d9cb9Thanks @E1i! - cli:construct intake --taken -andconstruct board --prs -wait for a slow producer on stdin instead of refusing with EAGAIN.
0.39.0
Minor Changes
#498
a459805Thanks @E1i! - cli:attachrefuses a repository that already holds.construct/attach.json, whether or not its carriers are still there, and leaves the record as it was#504
c0db020Thanks @E1i! - templates:initandattachalso writescripts/construct/check-baseline.mjs, which runs every harness step even after a red one and prints, for each step, the eslint, Vitest, Jest or tsc failures it recognises (nullwhen it recognises none) and the sha256 of the whole set; nothing calls it yet.#495
cd991ccThanks @E1i! - cli:construct costends with a signal block per class of finished cheap task — the median tokens (input, cache writes and output; cache reads left out) and minutes from five tasks or more, or none with the count below that#511
3de32f4Thanks @E1i! - templates and cli: the/implemententry card'sEXPECTnames what it covers —ladder: <forecast> · brief, review not recorded— so it no longer reads as the cost of the whole task;construct costprints its run, multi-run and turn-journal totals in tokens without cache reads (input, cache writes and output), the unit of the step split and the forecasts, and names that unit on the total line, so a total from before this release is larger than the same run reads now#494
e7609f7Thanks @E1i! - templates: /implement's report names the rung the run passed on, and says so when no rung passed#508
d380646Thanks @E1i! - templates:/implementprints an entry card before the first token is spent and ends its report with the same card, whose CONTRACT and EXPECT repeat the entry's byte for byte#497
5daeac6Thanks @E1i! - cost: the cheap forecast also counts window tasks.task:closerecords when a task ended and each session it used with the project key its session file lies under, and the sample reads those sessions under that key. A session recorded under two tasks counts for neither, andconstruct costnames each task it leaves out, including a close without a verification word.
Patch Changes
#501
f564649Thanks @E1i! - ghosts:pnpm ghosts:hashrunscheck-acceptance buildon the brief's/implementtext first and prints no hash when the build fails, naming its first error; when the build passes it prints the whole line for the.approved-sha256file,approved /implement text sha256: <hash> (<date>, <approver>; sketch <short sha>|none), instead of the bare hash. The approver is--by <name>, elsegit config user.name; with neither it refuses and prints no hash#496
38a2c3eThanks @E1i! - cli: the cheap forecast inconstruct costnames its source, Claude Code shift sessions, on its EXPECT line#492
a7a8d5aThanks @E1i! - cost: one reader counts a Claude Code session file's tokens for both the step split and the cheap forecast, and the cheap forecast counts them in the ladder's unit — input, cache writes and output, cache reads left out#505
f09b1c9Thanks @E1i! - ghosts:pnpm ghosts:expect-sample --effort <e>prints the brief'sexpect:line from the one sample the brief and the launcher use — the done runs of that effort thatparseLedgerLineaccepts — followed by its sources and every reason a row was left out. The class is optional. A missing ledger or journal, or a class no journal line carries, is named as the reason (runs not recorded in <ledger>,class not recorded on <N> lines in <journal>) instead of a baren=0. Rows the parser rejects are counted and named (<N> rows the ledger parser rejects not counted in <ledger>). Briefs that counted raw rows printed n=64 where this line prints n=58 on the same ledger: the 6-row difference is exactly those rejected old-schema rows.parseExpectreads a forecast line that carries this tail.#510
29f982cThanks @E1i! - ghosts:pnpm ghosts:launchcarries a Ghost's ledger lines into the main checkout's.construct/runs.jsonlas soon as its session ends, keyed by run, so a later carry adds no duplicate and a Ghost worktree removed by hand no longer takes its run with it. A carry that fails is named on the launcher's line for that task, and the status row is still freed.architecture/window.mdnow says Ghost worktrees are removed only withpnpm ghosts:cleanup, nevergit worktree remove.#502
4570316Thanks @E1i! - ghosts: the owner-merged kindghostsnames the 13 files that change the ladder, approval, merge or security instead of all ofscripts/ghosts/**, and the other 15 are listed as plain; a file underscripts/ghosts/in neither list turns the harness red until it is classified.architecture/owner-merges.mdis itself owner-merged, underown-instructions.
0.38.0
Minor Changes
- #483
235f3bbThanks @E1i! - templates:/implementopens its report withcontract:,expect:,action:andresult:, in that order, each carried from the build's handle, the Workflow run and.construct/runs.jsonl; a value no record holds reads<what> not recorded <where>, andexpect:saysexpect not recorded in .construct/runs.jsonlinstead of a forecast of the agent's own
0.37.0
Minor Changes
#480
21f9059Thanks @E1i! - cli:attachno longer counts a.construct/directory as something to attach to: a repository holding nothing but.construct/, empty or not, is refused with nothing to attach, as a repository holding only a README already was#482
84d86c6Thanks @E1i! - templates:attach --entryhas the agent read how the repository names its branches and writes its commits from its history instead of asking: each convention is reported as an observed share with its count and the command that counted it, and a history too small to count, or one where no form holds at least 60%, is said as such, with its search; an absent upstream,FETCH_HEADor interpreter now points to the same rule as every other absence
0.36.0
Minor Changes
- #475
4ebe900Thanks @E1i! - templates:attach --entryhas the agent prove every absence it reports — a suite CI does not run, a step left out, no hooks — with the search that reached the CI step or the call where the value decides and what that search returned, and saynot determinedwhen the search stopped at a config file or a loader
0.35.0
Minor Changes
#463
86cfe6eThanks @E1i! - templates: a browser witness carrier,scripts/construct/browser-witness.mjs, starts a dev server on a free port, opens its pages in system Chrome at the widths asked for, and exits 0 when every assertion holds, 1 when one is false and 127 when it could not observe (could not observe: …) or was called wrongly (usage error: …);initandattachwrite it#471
2bfdb52Thanks @E1i! - templates: the commit guardattachinstalls refuses with exit 2 on everything but an explicit allow, so input that is not a JSON object or an error while checking a call no longer exits 1, on which Claude Code runs thegit commitanyway#459
d6280bfThanks @E1i! - templates:attach --entryand/construct-discoverhave the agent name, before anything is installed, the Python version a repository needs and the file it came from, the interpreter and the command that selects it, and which locked packages build from source, what that build needs and for which architecture#472
a73d5f8Thanks @E1i! - cli:construct boardadds the columnsEXPECT(expect not recorded in .construct/runs.jsonlon a ladder row) andACTUAL(the run's tokens and seconds) afterNEXT;--jsonis unchanged#473
90bf98cThanks @E1i! - cli:construct costkeeps the steps of each ledger run — role, attempt, effort, tokens, seconds — in.construct/steps.jsonl, so a run's split survives after Claude Code clears its session files.
Patch Changes
#460
38ac698Thanks @E1i! - ghosts:pnpm ghosts:cleanupappends a worktree's ladder ledger lines that the main tree's.construct/runs.jsonllacks before it removes the worktree, keeps the worktree when they cannot be written, and--ledger-onlycarries them without removing anything#474
30c3a92Thanks @E1i! - cli:construct costtakes a run's step only from the agent's workflow phase, never from its type; an agent whose phase is not a step is reported unread and its run is not written to the step cache
0.34.0
Minor Changes
- #456
2400dcbThanks @E1i! - templates: the/implementladder stops on a witness that fails as on the base only when it does so on two rungs in a row; on one rung the ladder goes on to the next, and a witness the shell cannot run still stops the run at once
0.33.1
Patch Changes
- #446
8fda43bThanks @E1i! - cli:construct boardreads a--prslist with a null check as unreadable and still prints the board (exit 0), keeps pull request titles whole, and sorts a time ahead of now as the newest in its group
0.33.0
Minor Changes
#430
dcf29e3Thanks @E1i! - attach: the commit guard also refuses a commit, push, merge, rebase or tag behindenv -S,niceandxargs, or spelled with$'…'or$"…"#424
44b8ae5Thanks @E1i! - templates: open questions move out ofAGENTS.mdintoarchitecture/open-questions.md, so they stop loading into every session —AGENTS.mdkeeps one line pointing there,syncleaves an already-filled block where it was, and the next/construct-discovermoves it#428
4b09370Thanks @E1i! - templates: /plan reads each task's risk from what the change does before choosing its contour, and a critical sign asks for the ladder path and a human who approves the brief#443
9401d7cThanks @E1i! - cli:construct boardshows where each task stands in a repository from the ladder runs in.construct/runs.jsonland a pull request list handed over with--prs, and writes no file#441
f99a1d2Thanks @E1i! - cli: the review-verdict contour moves toreview-verdict/2— a verdict now carriestree, the tree it reviewed, and this repository'sghosts:verdictrefuses it unless that is the tree of the pull request commit; journal lines written under/1still read
0.32.0
Minor Changes
#421
09e3180Thanks @E1i! - templates:/implementstarts from the sketch a brief names — the args carry the sketch's tree, a staged sketch is the expected base diff, anything beyond it is a red base, and a staged tree that is not the sketch's stops the run as unverified with both trees named#419
a54a139Thanks @E1i! - cost: the ledger-row contour is 1.1 — a row may carryagreedSha256andargsSha256, each 64 lowercase hex, andconstruct costrefuses a row whose hash has another form, naming the field; rows without them read as before; step 4 of the /implement skill copies both from the build handle into the row
0.31.0
Minor Changes
#404
1f3681bThanks @E1i! - templates: the /implement ladder reads its args by path and sha256 — check-acceptance build --out writes .construct/implement-args.json and prints a handle, the Workflow receives the handle and never the file, the harness reports the file's sha256 on every call and extracts each witness through a witness mode that refuses another hash, and a mismatch ends the run as args unverified#409
82fb68fThanks @E1i! - cli: contract/contours/ledger-row.schema.json records the run ledger row and construct cost refuses a row whose run is present but not a non-empty string; the launcher, the watch and the board read the same shape through parseLedgerLine#398
b40da12Thanks @E1i! - cli: the commit guard attach installs finishes its stdin read without a top-level await, and every hook script this repository ships is linted for a synchronous stdin read#396
dd4c32cThanks @E1i! - cli: cost reports the turn journal that this repository's Claude Code hooks write to .construct/turns.jsonl, as turns, sessions, main-thread and subagent usage, unmeasured turns and gaps, and reads an absent journal as not recorded
Patch Changes
- #408
9f9973aThanks @E1i! - templates: the /implement ladder extracts each witness by its sha256 instead of its position, so a handle that drops or reorders a criterion no longer runs another criterion's command; check-acceptance witness takes --witness-sha256 in place of --n
0.30.0
Minor Changes
#392
16d379eThanks @E1i! - cli: upgrade the CLI before running detach on a repository this release attached, because attach now writes a PreToolUse guard into the untracked.claude/settings.local.jsonthat refuses the agent agit commit, push, merge,rebaseor tag, recordVersion becomes 2, and an older detach refuses that record and removes nothing whiledetachhere takes exactly that entry out#389
a4f3a92Thanks @E1i! - cli: attach --entry prints the protocol by which the agent reads a repository and proposes one harness the owner answers yes or no; the no-harness refusal names it, and a collision labels each existing path construct's own or not recognised against the known set of earlier files and prints the one command that deletes only the recognised ones and runs attach again
0.29.0
Minor Changes
- #381
e6b86a3Thanks @E1i! - cli: attach refuses a harness whose first word is not a command on PATH (a script name such asquality, orvitestfromnode_modules/.bin) and prints the command to use instead, and warns when the harness edits files (:fix,--fix,--write)
0.28.0
Minor Changes
#363
7522771Thanks @E1i! - The ladder counts a declared contract check as run only when the harness reports it under the exact command declared in AGENTS.md; a check reported under any other command iscontract check failed, with both commands named.#374
89b3a6bThanks @E1i! - cli:construct detachremoves.construct/only whenattachcreated it.attachrecords this asledgerCreatedin.construct/attach.json. Before, detach removed an empty.construct/that already existed before attach, a directory it had no record of creating. A record written before this field existed does not say, so detach leaves.construct/in place.#372
183e731Thanks @E1i! - templates: the discovery protocol's inventory step reads every README, at the root and in each app, from start to end before it writes down how to install, run or test anything. Before, it named the configs and entry points but not the README, and a partial read left out the environment and the dev server commands that the README stated.#362
eb735e7Thanks @E1i! - The harness agent reads a pytest skip or expected failure added to a test as a weakened test:@pytest.mark.skip,@pytest.mark.skipifand@pytest.mark.xfail, with or without parentheses, andpytest.skip(/pytest.xfail(calls. Before, only.skip(and.only(were named, which a bare@pytest.mark.skipdoes not match.#361
2cb8c27Thanks @E1i! - The/implementskill uses.construct/implement-agreed.txtas it is when the file already exists, instead of rewriting it from$ARGUMENTS. The Ghost launcher now writes that file from the approved brief before the session starts, so the agent no longer retypes the text the witnesses are parsed from.#375
43e1a9dThanks @E1i! - templates: the ladder script is nowscripts/construct/implement.workflow, with no.mjs. What to do: in a repository made byinit, runconstruct sync --apply. It removesscripts/construct/implement.workflow.mjswhen its bytes are still what was recorded and writes the new path; sync reports this as the new classmoved, and--jsonlists it underretired. If you edited the old file, sync writes neither path and reports both asconflict; move your edits across by hand. In an attached repository, runconstruct detach, thenconstruct attach. Why: the script ends with a top-levelreturn, the format the Workflow runtime runs, and a repository whose harness iseslint .parsed the.mjsand went red on its first check after attach. ESLint does not lint a file without a JavaScript extension, so the generatedeslint.config.mjsno longer needs, and no longer carries, thescripts/construct/*.workflow.mjsignore.
0.27.0
Minor Changes
#332
6c7c143Thanks @E1i! - templates: the/implementladder now reads theContract paths:andContract check:lines from the repository's AGENTS.md, never from CLAUDE.md — a line found only in CLAUDE.md makes the build refuse, naming it and saying it moved to AGENTS.md. When a repository declares aContract check:line, the ladder runs it after the harness command passes and a red or unreported check ends the rungcontract check failed, neverdone.#282
32977e5Thanks @E1i! - templates: the/implementskill no longer has the agent copy the brief's acceptance, witnesses, invariants and immutable paths into the ladder's args.node scripts/construct/check-acceptance.mjs build --brief <file>parses the brief and prints the whole args object,harnessincluded, and the skill passes it to the Workflow unchanged; a brief with no acceptance, an item with no witness or a witness holding a backtick is refused with the item and the reason, and nothing is printed on stdout. A label counts only at the start of a line or after the end of a sentence, and the witness is read after the last— witness:outside backticks; the check mode (--agreed/--args) reads briefs through the same parser.#348
01717edThanks @E1i! - templates: the/implementladder no longer asks the harness agent to report a witness'scommand. Since a reported witness is matched to the brief's by its criterion andranSha256, the field decided nothing; the verify prompt,.claude/agents/harness.mdand the verdict schema drop it. A contract check is declared only whenharness.contractCheckis a non-empty string, so anundefined,nullor numeric value leaves every harness prompt unchanged instead of asking for a check namedundefined. A red contract check's reason now names the command and its exit code (pnpm contract:bump exited 1), followed by its last lines when it reported any, so a check with an empty excerpt no longer hands the next implementer an empty reason.#286
52b2aa1Thanks @E1i! - templates: the/implementladder's outcome is nowuntested change— neverdone— for a rung that changed a source file (a path with asrc/segment ending in.ts,.tsx,.mts,.cts,.js,.jsx,.mjsor.cjs, not.d.ts) and no test file (a path with atests/segment named*.test.with one of those extensions); the attempt's reason names the source files, and the run goes on to the next rung. A red harness, an unchanged tree, an immutable path and an unwitnessed acceptance keep their own outcomes.#318
d75d52cThanks @E1i! - templates:/plangains the brief and witness rules: the Design and the Invariants must not contradict each other; a Design names every file its own decisions force; each witness is run as the ladder runs it (bash -n, red on the base for a behavioural reason, green on a known solution where one exists) before approval, and a changed brief goes back for a new approval; the fixtures its witnesses run against are merged before the ladder starts; a block of witness-writing rules; producer and consumer order by what passes between them (a data format: the reader first; a behaviour: the consumer last); deferrals, import rules for a new module, half-done migrations and verifications each get a task of their own; and ahightask is planned as its design step followed bymediumimplementation tasks carrying the settled design. The implement skill states where a ladder may start (the task's own worktree, never afterEnterWorktree), linkshighto the design it requires, and keeps the tree read-only afterdone. The security invariants header and discovery step 10 requireEnforced byto name the mechanism and what it matches, never a bare tool name.#296
163ab4cThanks @E1i! - templates:/plangains two rules. Every line of a task brief's Design, and every case a line lists, is held by a should / should-not witness pair or fixture pair; the brief's author checks Design line → witness line by line before approval and gives an unheld line a witness or removes it. Independent tasks — write contours that do not intersect, no dependency on each other's results — are planned and run in parallel by default (subagents for reviews, checks and brief preparation; separate sessions or worktrees for implementation), and a task is sequential only when it shares a write resource or needs another's result, which the plan states in one line.#346
78d8889Thanks @E1i! - templates:/planoutputs each ladder-path task as the full skeleton of its brief — the/implementline,Effort:,Design:,Acceptance:with a— witness:per item,Invariants:andImmutable:— in the shape the implement build parses, instead of a one-line task the build refused for having noAcceptance:section./planalso states that a task is never done twice: the brief proves its witnesses executable and does not implement the task, and an implementation its author wrote anyway becomes the pull request with no Ghost launched.#341
dee1ff3Thanks @E1i! - templates: a/implementwitness that cannot be witnessed is no longer read as a red one. When, after the change, a witness exits 126 or 127, exits 2 with a shell syntax error, or fails with the same exit code and the same last lines as on the base (temporary paths replaced by<tmp>), the rung's outcome iswitness invalid, its reason names the witness, and the ladder stops at once withbase unverified: no higher rung and no design step, since no implementation could turn that witness green. The harness agent now reports each witness's last lines on the working tree asafterExcerpt. A witness red on the base and green after, or red after with a different failure, is decided as before. A reported witness is now matched to the brief's by its criterion and itsranSha256: thecommandthe harness copies back is informational, so a paraphrased command no longer turns a witnessed criterion intoacceptance not witnessed, and a sha that differs iswitness not run verbatimwhatever command is reported.#301
505ebffThanks @E1i! - templates: the/implementladder now runs every witness verbatim. The build keeps a witness command byte for byte (double spaces, tabs and newlines inside the backticks survive), refuses onebash -nrejects before calling any agent with the item,bash -nand bash's own message, and printswitnessDigests— each witness's criterion, base64 and sha256 of the raw command — alongsidewitnesses. The verify prompt gives the harness agent each witness only as base64, in three fixed lines (decode,shasum -a 256, run), never the raw command; the verdict schema now requiresranSha256, and a rung whose reported sha256 does not match the digest iswitness not run verbatim, checked after an immutable path and before an unwitnessed acceptance, neverdone. A brief'sDesign:section, when present, is carried verbatim intoargs.designand into the architect's and implementer's prompts; a run whose witness has no digest inargs.witnessDigestsis blocked before any agent.
Patch Changes
#327
0811e65Thanks @E1i! - templates:architecture/principles.mdnames the principle behind the reasoning budget — every change goes through the cheapest contour that yields the proof it needs, and not every change goes through the ladder — and/planchooses each task's contour first: a cheap path (an ordinary session, the harness and CI) or a ladder path (a brief with witnesses, run by/implement), with the criteria for each.#307
d9eddf1Thanks @E1i! - templates: the/implementladder's verify prompt now names the witness scratch directory once, up front — "Make<dir>once, before the first witness, withmktemp -d, and write the absolute path it printed wherever<dir>stands: it lies outside the repository, so it still resolves after thecdinto the base worktree and adds no file to the working tree" — instead of the single "in a scratch directory of your own,<dir>", which said where the scripts go but not how or when to make that directory;.claude/agents/harness.mdsays the same. A brief's emptyDesign:section (design: "") no longer puts aDesign from the brief:block into the architect's or the implementer's prompt, and the build'sDesign:label counts only at the start of a line, so one written mid-sentence stays plain text.
0.26.0
Minor Changes
- #276
7614b0aThanks @E1i! - cli: every command refuses a flag it does not declare, andinit --preset,init --ai,init --review,attach --aiandmutate judge --formatrefuse a value outside their options, before anything is read or written: the usage is printed, stderr names every unknown flag as it was typed (or the flag, the value and every allowed one), and the exit code is 1. A script that passed a misspelt or unsupported flag and had it silently ignored now fails; drop or correct the flag.contract/surface.jsonrecords the options of each enumerable flag, as an optional field (surfaceVersionstays 2: a file without it records flags that had no options), andcontract:bumpreads an option removed as breaking and an option added as additive. Previouslymutate judge --format junitwas read as the default Vitest JSON and reported the report as not JSON; it is now refused namingvitest-jsonandjunit-xml.
0.25.1
Patch Changes
#264
8e737a8Thanks @E1i! - cli:construct costjoins a ledger entry to its run when the run's session was started in a git worktree. Claude Code files a session under the directory it started in, so a ladder run from a worktree session read asentriesWithoutSessionfrom the main checkout, and stayed that way after the worktree was removed. A run the ledger names and this directory's sessions do not hold is now looked up by itsrunidentifier under every other project key; only runs the ledger names are taken from there.#272
7b9dfcbThanks @E1i! - cli: with a harness command the user named,construct.model.jsonno longer claims what that command runs.every-change-passes-the-harnessstates<command> passes on every changewith no verification when the harness is notpnpm run quality, instead of always claiming lint, typecheck and tests pass with an ESLint verification it cannot know holds;lint-policyis not born at all, since it names a pnpm script and a test file the harness command may not run.#270
95b53d9Thanks @E1i! - cli:inittakes--harness <command>, asattachdoes. Without it, a repeatedinitkeeps the command recorded inconstruct.jsonby the previous run, and a firstinitstill defaults topnpm run quality. Theharness-stepsclaim — which spells out the pnpm scripts the harness command runs — is only born when the harness command ispnpm run quality; any other command leaves that claim unwritten, since the construct cannot know what it runs.#273
8c67db5Thanks @E1i! - cli:mutate judgetakes--format vitest-json(the default) or--format junit-xml, so a JUnit XML report from any runner can stand in for Vitest's json reporter. A JUnit report is refused, naming the missing run start time, when none of its<testsuite>elements carries atimestampattribute — the file's own modification time is never used as a stand-in.#274
86c9fdbThanks @E1i! - cli: with a harness command other thanpnpm run quality,construct.model.jsonno longer carries the factslint-policy-testandlint-policy-test-loads-eslint, which only thelint-policyclaim stood on and which that harness leaves unwritten.
0.25.0
Minor Changes
- #256
b73b16eThanks @E1i! - templates: a brief can nameImmutable:paths — files, or directories ending in/— that the change may not touch.check-acceptancestops when one is missing from the args, and the ladder fails a rung whose changed files include one asimmutable changed, even with the harness green and every acceptance item witnessed.
Patch Changes
- #260
472adbaThanks @E1i! - cli: doctor reads an attached repository (no construct.json,.construct/attach.jsonpresent) asstate: "attached"with the harness command and its coverage state, instead of reporting no-manifest.
0.24.0
Minor Changes
- #243
6aa1cc8Thanks @E1i! - Areport-coversorreport-missesfact carries aformat:vitest-json(the default, read whenformatis absent) orjunit-xml. Point ajunit-xmlfact'spathat a report produced bypytest -o junit_family=xunit1 --junitxml=<path>; the reader takes a testcase's repository path only from itsfileattribute, reads a<skipped>testcase as not run and<failure>/<error>as run, and yieldsunknowncoverage rather than throwing on a file it cannot parse. The model format goes tomodelVersion3.
Patch Changes
#245
67d7268Thanks @E1i! -attachno longer reads the stack. It refused a repository whose detected layout wasemptyorunknown, and that detector reads directory names: a Go repository with aservices/directory attached, while the same repository without it was refused (#232). Now a repository with anything in it attaches whatever it is written in. Only a tree holding nothing but.gitand the files an empty directory may hold is refused, asRefused: this repository holds nothing to attach to.doctordoes not read an attached repository yet: it answersNo construct.json here, so nothing reports whether the harness you name covers the code (#247).#244
5558437Thanks @E1i! - The implement skill says to start the ladder only from a turn whose only user message is the/implementitself. The Workflow runtime relays the message that triggered the run to the ladder's agents as a request that outranks the computed brief, so a message sent in the same turn becomes the implementer's task. The ladder cannot check this, and the skill says that the rule holds by discipline alone.
0.23.0
Minor Changes
- #234
ef66481Thanks @E1i! - Breaking:doctor --jsonharness.stategainsdoes-not-cover, andcheckedchanges meaning (decision 0033). It is now the projection of the verification stage of the discovery-written claimharness-covers-target:checkedonly when a Vitest JSON report lists a file of the repository's own verification surface as executed,does-not-coverwhen a complete, fresh report shows none of it ran,unknownotherwise. A consumer that readcheckedas "the command is a package script" now getsunknownon the same repository;harnessProblemsandokare unchanged. The model format goes tomodelVersion2 with the fact kindsfile-lacks,report-coversandreport-misses.construct graphdraws report-backed entries in a fixedruntime-reportclass and never reads a report.
Patch Changes
#239
36f7abcThanks @E1i! - The generated.claude/agents/implementer.mdruns the implementer withmodel: sonnetinstead ofinherit, so the low-effort rung no longer runs on whatever model the session uses. The architect and harness agents still inherit. The Cursor channel is not affected. The Sonnet default is under observation; setmodel: inheritto go back.#241
dfd14aaThanks @E1i! - The implement ladder reportsdoneonly when every acceptance item from the brief was witnessed failing on the base and passing after the change. Before, a green harness was enough, and a rung that changed nothing passed on a tree that was green by construction.- Each acceptance item ends with its witness,
— witness: `<command>`. The witness is fixed in the brief before the run. The implementer only sees it and cannot substitute one, andcheck-acceptancestops a run whose args carry a different witness. - The harness runs each witness twice: on the working tree, and against the base sha in a worktree of its own, never by stashing or rewriting files in the working tree.
- A brief now splits into acceptance, which must go from red to green and is the gate, and an
Invariants:section, which stays green throughout and is held by the harness. An item such as "the harness is green" belongs in invariants. - A base that cannot witness reads
base unverifiedand ends the run, never red: no install ran or the install failed, or a witness could not run on the base because a command or a package is missing. - A rung that changes no file is a
no changeattempt. A brief with no acceptance, or an acceptance item with no witness, returnsblockedbefore any agent runs.
- Each acceptance item ends with its witness,
#237
9f2e45aThanks @E1i! - A freshly initialised project installs again. Vitest 5.0.2 depends onwhy-is-node-running ^3.2.1, which resolved to 3.2.2 — a release published without the provenance 3.2.1 carries — and the generatedtrustPolicy: no-downgraderefused it, sopnpm installfailed on every preset. The generatedpnpm-workspace.yamlnow overrideswhy-is-node-runningto 3.2.1 rather than exempting 3.2.2 from the trust check. A project already initialised can add the sameoverridesentry to itspnpm-workspace.yaml.
0.22.0
Minor Changes
- #231
8756aeaThanks @E1i! - sync:construct.jsonmoves to manifest version 6 (decision 0032). Every write of a block target (AGENTS.md,CLAUDE.md,.gitignore) byinitorsync --applynow records the sha of the construct block's owned view and a snapshot of the vars it was written with. With these,syncreads such a target asblock-edited(the block differs from what was written),record-vars-edited(the block is what was written butvarsinconstruct.jsonchanged since),template-moved-on(both as written, today's template renders differently;--applywrites it) orkeep. A record cut before version 6 is never back-filled: where it readsunknown, sync says the record predates the fields that would answer, and running the construct again records them.sync --jsongains the count keysblock-edited,record-vars-editedandtemplate-moved-on.
Patch Changes
- #229
807d1efThanks @E1i! - release: a publish that awaits approval reads as pending, not as absent. The Release run publishes withnpm stage publish(npm 11.15.0 or newer, which the job now installs) instead ofchangeset publish. It uploads{version, stageId}as therelease-stageartifact, andchangeset tagstill writes the git tags and GitHub releases. Release verification downloads that record. If the version is absent from the registry and a stage record exists for it, the run prints the stage id with a notice to re-run this run after approval, then cancels itself: it ends grey, and Published smoke stays skipped. If the cancellation does not take effect, the run ends red, never green. If the version is absent with no stage record, it still fails with the same message as before.
0.21.0
Minor Changes
#225
d05d282Thanks @E1i! - templates: the ladder derivescontractChangedinstead of asking the harness agent to judge it. The harness agent reportschangedFiles—git diff --name-only HEADplus untracked files, verbatim — and the VERDICT schema no longer has acontractChangedfield.implement.workflow.mjssets the result'scontractChangedwhen a changed file equals, exactly, one ofargs.harness.contractPaths, and returnschangedFilesbeside it. The/implementskill fillscontractPathsby readingcontracts.pathandcontracts.typesfromconstruct.jsonand aContract paths:line fromCLAUDE.md;.construct/attach.jsonrecords no contract paths, so an attached repository names them in that line.#222
c5a8882Thanks @E1i! - templates:AGENTS.mdand.github/workflows/ci.ymlname the recorded harness command instead of a literalpnpm run quality, and the workflow's quality step quotes a command that would not parse as a bare YAML scalar (one carrying:or#), so itsrunis the command verbatim; withpnpm run qualitythe output is unchanged byte for byte.construct doctorchecks apnpm/npm/yarn/bunscript command againstpackage.jsonas before, and reports any other command —make check, say — asharness.state: "unknown", named in the output as not statically checkable, rather than as a missingpackage.json;doctor --jsongains theharnessfield, andunknownnever makesokfalse.
0.20.0
Minor Changes
- #211
6a95be8Thanks @E1i! - templates:/implementcopies an agreedAcceptance:section into the ladder's arguments verbatim and checks it withscripts/construct/check-acceptance.mjsbefore calling the ladder, stopping when an agreed item dropped out; the ladder logs the acceptance it received and echoes it asacceptanceon every result, andconstruct attachnow writes the check as a seventh file.
0.19.1
Patch Changes
- #205
e0e2b28Thanks @E1i! - cli:construct mutate apply --from <file> --id <id>applies a brief's named wrong implementation with a copy and a record in.construct/mutations/, andconstruct mutate judge --id <id> --report <file>restores it byte for byte from the copy and judges the outcome from the Vitest JSON report the runner hands over (--baselinerecords the green run apply requires); the CLI runs no test itself.
0.19.0
Minor Changes
#196
0f905eaThanks @E1i! - contract: CI computes the bump a pull request's change to the public surface requires and fails when the declared bump is weaker.contract/surface.jsongainssurfaceVersion2 and records the JSON type of each--jsonsample's root beside its key paths.pnpm contract:bumpcompares the surface at the latest release tag reachable fromHEADwith the surface atHEAD: before 1.0, additions require at least a patch changeset and a breaking change at least a minor one. No command-line behaviour changes.#198
4152fedThanks @E1i! - contract: CI generates the base from the tag's code when the tag carries no surface of the current surfaceVersion; no CLI behaviour changes.
0.18.0
Minor Changes
#186
714f2e1Thanks @E1i! -initrefuses a Node preset in a directory whose root has another ecosystem's manifest (go.mod,Cargo.toml,pyproject.tomland others) and nopackage.json. It names the preset and the manifest, writes nothing and exits 1. Until now it wrote the whole Node baseline into a Go repository and exited 0.soulkillreports the manifests it found on a newOther stacks' manifestsline, and--jsoncarries them asexisting.foreignManifests.#192
7e53958Thanks @E1i! - cli:doctor --json,sync --json,sync --apply --json,cost --jsonandsoulkill --jsoncarry a top-levelschemaVersion(1), the version of that key set;cost'sversionandsync'sfromVersion/toVersionstill name CLI versions. With noconstruct.json,doctor,syncandsync --applyunder--jsonnow print{ "schemaVersion": 1, "state": "no-manifest" }instead ofnull, with the same exit code1: a script that tested fornulltests forstatebeing"no-manifest". The key paths each of these outputs prints in each state are recorded incontract/surface.json.#184
93327fdThanks @E1i! - templates: the/implementladder checks the base with the harness before its first rung. A red base stops the run asbase redwith the failure excerpt, and a verdict the schema rejects stops it asbase unverified; neither runs an implementer or an architect. Every run now costs one more harness call.#190
c8401f2Thanks @E1i! - templates:/implementgains an eighth status,stopped, for a run stopped from outside before it returned. A ledger entry that ended without passing carries acause:stoppedtakesenvironmentorhuman, andfailedtakesenvironmentortask.construct costreads the following as malformed: a cause that belongs to another status, a cause on any other status, and a stopped entry with no cause. A failed entry with no cause reads asnot recorded, so entries written before the field are kept as they are. A ledger entry may also name where its token figure came from with an optionaltokensSource(runtime); without it, the figure is the Workflow tool's own report.
Patch Changes
#187
bd1f32bThanks @E1i! - cli: the command-line surface (commands and aliases, flags, exit codes per command and state, format versions, the pathsinitandattachwrite, and the block markers) is recorded incontract/surface.jsonand compared with the code on every change. No command, flag, exit code or output changes.#180
256fc30Thanks @E1i! -soulkillputs the pnpm version it finds on its ownCLI pnpmline, saying it is the pnpm on the PATH construct runs with and was not read from the repository. ThePackage managerline now carries only what was read from the repository.
0.17.2
Patch Changes
- #178
3b5bccdThanks @E1i! - The detected facts thatsoulkill,inspect,captureandinitprint label the Node major asCLI runtimeand say it is the Node running construct, not something read from the repository. The line used to readRuntime, which looked like a fact about the project.
0.17.1
Patch Changes
- #173
030fc66Thanks @E1i! -construct detachreadsrecordVersionin.construct/attach.jsonbefore anything else. A record written by a newer construct is refused with the same line a laterconstruct.jsongets, naming both versions. A missing or non-integerrecordVersionis refused with its own reason. Nothing is removed in either case. Records written by this build are version 1 and detach exactly as before; until now, a record of any version was accepted without being checked.
0.17.0
Minor Changes
#166
66597f2Thanks @E1i! -construct attach(aliasjack-in): the reasoning-budget carriers for a repository the construct did not writeA repository with its own agent configuration and often a different package manager can now take only the carriers of the reasoning-budget discipline — the
/plancommand, the/implementskill, the three agents and the ladder script — without a construct.attachwrites those six files, hides them and.construct/through.git/info/exclude, and records what it created in.construct/attach.json: the harness command, the sha256 of each file, the directories it made and whether it created the exclude file. It never modifies a tracked file;git statusis as clean after it as before.Seven refusals run before anything is written, in a fixed order, and each one creates nothing: no
.git, a.gitthat is a file, aconstruct.jsonalready here, a stack the detector does not recognise, a carrier path that already exists,--yeswithout--harness, and--ai cursororboth. Nothing is assumed about the harness: without--harnessthe command asks, and without a terminal it refuses.The carried commands read the record. The
/implementskill takesharness.commandfrom.construct/attach.jsonwhen there is noconstruct.json, the harness and architect agents accept a git toplevel that holds either record, and the ladder script no longer defaults the harness command topnpm run quality: a run with noargs.harness.commandreturnsblockedwith a question and calls no agent.The carriers are written exclusively (
wx). A carrier that appears between the collision check and the write is never overwritten: attach removes what this run wrote, restores.git/info/excludebyte for byte and refuses withCOLLISION.A later
detachremoves exactly what the record lists.#167
edbb648Thanks @E1i! -construct detach(aliasjack-out): the inverse ofattachRemoves exactly what
.construct/attach.jsonlists and nothing else: the recorded files whose bytes are still what attach wrote, the recorded directories that emptied, the block attach added to.git/info/exclude, and the record. Every read happens before any write. A carrier you committed withgit add -fis adopted and stays; a carrier already gone is named; a carrier whose bytes changed refuses the whole run with nothing removed. A file attach did not write — the ledger.construct/runs.jsonl, a local.claude/settings.local.json— is never deleted and is named as left behind. There is no--force.The tracked set is read from
.git/indexdirectly, versions 2 and 3,sha1andsha256; the CLI still runs nogit. Four index shapes are refused with their own reason before anything is removed: version 4, a split index, a sparse index, and an object format that is neithersha1norsha256.Attach's rollback now removes the block it added to
.git/info/excludethrough the same inverse instead of restoring the file from memory, so a line appended into the file in the meantime survives.
0.16.4
Patch Changes
#164
92c6be9Thanks @E1i! - The README names no version, and its opening paragraph says what the tool is todayThe front page opened with v0.3. while the published package was 0.16.x. Replacing the number would have been the wrong repair: nothing kept the claim true, so a correct number restarts the same decay from a later date. The defect is that the README asserts a fact it has no way to hold, and the fix has to remove the assertion or give it a source.
Between the two shapes — the README naming no version, or the version rendered into it from
package.jsonby a harness step — it names none. Nothing is lost by that: npm prints the version beside the README on the package page, the documentation site prints it, andconstruct doctorreports the version that materialized a given repository, which is the number a reader of a repository actually needs. A render script and a check would add a second producer of a fact three surfaces already publish.tests/readme-version.test.tsholds the property under either shape: every version-shaped claim in the README must equal the version inpackage.json. A README that names no version passes because it claims nothing; a rendered one would pass because it claims the right thing. The test also reads a claim out of a constructed sample and reads the token counts in the cost section as measurements, so it cannot pass by detecting nothing.The same paragraph was stale in content. It named the presets and
construct syncalone, from whensyncwas the newest thing; there are six commands now, and it said nothing about the two records that carry what a repository is —construct.jsonfor provenance,construct.model.jsonfor knowledge — which is what discovery,doctorandgraphstand on. It now names both and stays a paragraph.
0.16.3
Patch Changes
#162
62d8a2aThanks @E1i! - An observation: a true output read for the wrong relation, and the refusal that ended itA false premise entered a task brief from the reviewing session, survived the owner re-running the command it rested on, and was stopped at the implementer by a measurement.
git tag | tail -3was read as the three newest versions; it answers the last three lexicographically, and here those arev0.8.0,v0.9.0,v0.9.1, because9sorts after1. From that reading followed a count of untagged releases, a claim about what the release action pushes, and a claim that the header comment inrelease.ymlis false — two briefed pull requests, and a correction drafted for a changeset.git tag --sort=v:refnameended it: 31 tags against 32 published versions, one gap at0.1.0, which is the versionrelease.ymlalready documents as published by hand before trusted publishing could work.What makes the specimen worth recording is that the command succeeded. Its exit status was zero, its output was real, every tag it printed exists, and re-running it reproduced the same three lines. Only the relation between that output and the question was wrong. A failure would have announced itself; this did not, and the second run — by a second person — read as confirmation rather than as a repetition of the same reading.
The entry states two readings and promotes neither. It is a third instance of a valid result read as evidence for a different relation, after
git ls-filesin decision 0014 and a commit range read for a temporal question; all three are git, in each case the default output answered an adjacent question — what is listed rather than what is tracked, ancestry rather than time, lexicographic rather than version order — and in each case a flag existed that would have answered the question asked. Three instances on one mechanism are material for the entry and are not grounds to extend anything, the trigger for that being a third instance on a different mechanism. And the carrier that stopped it was neither a check nor a rule but the implementer declining to write code from a brief that did not match the tree: the fourth refusal to build recorded here, and the first where the refusal kept a false statement out of a published record rather than out of an unbuilt artifact.No remedy is proposed and nothing is promoted to a decision or a rule. The boundary is one premise, one night, one project and three parties — a form, not a rate, and nothing about how often a true output is read for the wrong relation.
0.16.2
Patch Changes
#160
9016086Thanks @E1i! - Two open questions: a check that can never be green, and a path that left no evidencedoctorexits 1 on this repository for two conditions that are legitimate and permanent —tsconfig.base.jsonrecorded in the manifest'ssyncbranch and absent from the tree, and fifteen baseline files modified sinceinit, which is what a repository that edits its own construct files looks like. Neither will become green, and a third condition — a real one — would arrive in the same exit code and go unread. A check that can never be green reports as much as one that can never fail. The question recorded is whether an owner can declare a construct-owned path they do not want, and files they maintain themselves, so thatdoctorcan tell a declared deviation from an unknown one.The second question comes from the first one's evidence. Measured: the recorded hash
040735e3…is byte-identical totemplates/harness/tsconfig.base.json, andgit log --all --followover the path returns nothing, so git holds no evidence either way about whether the file was ever on disk here. Stated, not measured: the message of commit9c00c33says--applywrote the path and that it was then deleted; the owner does not recall deleting it. A pathsync --applywrites that git does not track leaves no evidence of having existed, so what the run did is recoverable only from prose — and the two kinds of claim above are why the entry keeps them apart rather than reading the message as a record of the action.Both are named and neither is answered. No design, no code, and nothing repaired: the
syncrecord is a record of the past.#155
9428adeThanks @E1i! - Why a marker with no recorded provenance is not backfilled, said where the reader meets the gapdoctornow reports markers that carry no recorded provenance, and the obvious next move — compute a sha over each body and write it down — is the one move that must not be made. A sha asserts that the body it hashes is what that run wrote. Computing one over a body nobody recorded asserts authorship of text whose author is exactly what is unknown, turning never looked into checked and matching: rule 2 in the direction that manufactures support.docs/cli.mdsays this under the table of readings, so a reader who meetsunrecordedthere finds the reason rather than an apparent backlog. Provenance is written only by the run that writes the body: a discovery run records it for the markers it fills, a marker it did not fill keeps the entry it had, andunrecordedstays until a run rewrites that marker.This repository's own
open-questionsmarker carries the question that leaves open, with its shape stated rather than a design proposed: the step that knows what body it wrote is a hand-written L0 step, and any command that records provenance after the fact is indistinguishable at the moment it runs from the laundering above. So an answer cannot be a command the owner runs afterwards — either the write happens inside the same act that authors the body, or it does not happen.No behaviour changes and no code changes; the nine markers stay unrecorded.
#157
ed97251Thanks @E1i! - Two pointers in this repository's own markers named a file that is not hereAGENTS.mdpointed atdocs/PLAN.mdtwice — once inmodule-map, listing it among the directories the layout table does not cover, once inhigh-effort-areas, citing a section of it beside the discovery protocol. The file does not exist and is not tracked. Both pointers are removed and neither is replaced: what that file held now appears to live acrossarchitecture/decisions/,architecture/observations.mdanddocs/guide/, but that is an inference, and a marker is not the place for one. The sentences around them stand without a destination.Nothing else changes. Both markers carry no recorded provenance and still do.
#158
8d21eacThanks @E1i! - Two source files imported across the dependency policy with no boundary to hold them to itAGENTS.mdsays dependencies insidesrc/point one way and thateslint.config.mjsenforces it.ALLOWED_INTERNAL_IMPORTSkeyed a directory or file per module, and two files that import other modules had no key at all, so nothing was enforced for them:src/failure.ts, which reaches the vocabulary insrc/ui, andsrc/cli.ts, which composes everything.The acceptance is the general property rather than the two files: every source file that names an internal import is covered by a boundary. It was run red first and named both — the second was not known before it ran. A file that names no internal import is asked for nothing, so
src/record-ahead.tsandsrc/version.tscarry no entry and are not made to carry an empty one; that case ships as a test beside the criterion.The entries say what each file imports today, not what it might:
src/failure.tsmay reachuiand nothing that holds a record, andsrc/cli.tsmay reach the commands, the presets, the vocabulary, the version anddetect, but not the manifest, the model, the materializer orsyncbehind them. Both cases are intests/dependency-policy.test.ts.No behaviour changes: nothing in
src/moved, and the new rules are satisfied by the tree as it stands.#159
6b22a07Thanks @E1i! - An open question: the machine-readable output declares nothing and refuses nobodyconstruct.jsondeclaresmanifestVersionandconstruct.model.jsondeclaresmodelVersion, and each refuses a record written by a later build through one shared error.doctor --jsondeclares nothing:src/cli.tsserialisesDoctorResultas it stands, so the output carries no statement of what it is and there is nothing for a reader to check or for the tool to refuse. A consumer matching a value that has since changed —authorship: "unknown", which 0.16.1 no longer emits — receives no error; its branch simply stops firing.The question is recorded in this repository's
open-questionsmarker with the measurement behind it: nothing the construct materializes callsdoctor --json— not the templates, not the workflows, notconstruct-discover.md— and every match outside the source is built documentation or release-note prose. The consumer count is zero today, and that is what makes an answer cheap now rather than what makes it unnecessary.No design is proposed and no code changes.
0.16.1
Patch Changes
#151
2cf0662Thanks @E1i! - Release verification says which of three states left the version absent, and derives the thirdmikoshi-construct@0.15.0was versioned and never reached the registry. Release verification caught it, which is what it is for. Its message then named two causes — a staged publish awaiting approval, or a publish that failed while reporting success — and prescribed the repair for the first:npm stage approve, then re-run. The real cause was neither. The release action had found an unconsumed changeset in.changeset/and updated the version pull request instead of publishing, so there was nothing staged to approve and nothing to re-run. Every fact in the line was true and it pointed the reader at a repair that does not exist for the state they were in.Three states produce the identical 404, and they take three different repairs: approve the staged version, read the failed publish's log, or consume the changesets and release again. The message now names all three and prescribes none of them while the state is undetermined — the reader is told what tells them apart, not what to do before they know which one they have.
The third is not one of three guesses, because it is readable. Which branch the release action takes is decided by the tree it runs on: unconsumed changesets in
.changeset/mean it versions rather than publishes. The verification checks out that tree to read the version it is verifying, so it reads the directory from the same checkout and states the cause, with the count and the filenames that carry it. A tree with nothing pending excludes that state instead, and two are named rather than three.Boundary. The reading is of the tree the verification checked out, and it says so in those terms. A changeset merged after a successful publish, while the registry is still catching up, would be read as versioning; the window is the poll's two and a half minutes and the claim stays scoped to what was seen. Nothing about the exit codes changes: absent is still 1, unreachable still 2, and unreachable still claims nothing.
#154
424df7fThanks @E1i! - Discovery provenance reports every state it computes, and the three causes of "unknown" become three statesdoctorderived four things about a discovery marker and printed one.markerAuthorshipansweredunknownfor three different causes — the marker was never construct-authored, no sha was ever recorded, and the body could not be read — and the report then kept only the markers still reading back what discovery wrote and returned early when that list was empty. Soowner, the one state the sha exists to surface, was computed on every run and never printed, and a marker whose provenance was never recorded was indistinguishable from one the owner had rewritten.Measured on this repository before anything changed: nine of ten markers recorded as
unknownwith no sha, one recorded as construct-authored whose body no longer hashes to its recorded sha.doctorprinted no provenance section at all.The incoherent record is now unconstructable rather than handled.
MarkerProvenanceis a union of the two combinations that can occur —constructwith the sha of the body that run wrote, orunknownwithnull— soconstructwith no sha cannot be expressed.upgradeManifestis the one door such a record can arrive through, and it reads it back asunknownwithnull. That removes one of the three causes at the type level and leaves two real states, which is whyauthorshiphas four members and no flag:reading what it means constructrecorded, and the body still hashes to the recorded sha ownerrecorded, and the body no longer matches: edited since, and read as the owner's unrecordednothing was recorded, so there is nothing to compare a body against unreadablerecorded, and the body could not be read here The report renders each of them from one table keyed by the reading, so a state added later has nowhere to be silently dropped, and the section is omitted only when there is no marker at all. On the repository above it now names the edited marker as the owner's and says that nine carry no recorded provenance.
authorshipindoctor --jsonno longer emitsunknown; it emitsunrecordedorunreadable, whichever the reading was. Nothing else about the output changes, and provenance still never changes the exit code.The nine markers are left without shas: recording them is a separate change, and doing it here would have removed the state this was measured against.
#152
c4411fbThanks @E1i! - Two observations: the cells of a blind discovery run, written before it, and what the run producedA copy of this repository was taken before either record existed, to ask whether the discovery protocol surfaces a form stated nowhere in the tree: an assertion that cannot be subjected to a meaningful attempt to refute it is a declaration, not a check. The tree carries an instance of that form — decision 0027, on acceptance criteria, rendered in three further files — and an adjacent generalisation in decision 0024 and in observations.md. The prescribed reading surface of
.claude/commands/construct-discover.mdnames none of them.The first entry fixes the four cells before the run: what a hypothesis matching the form would mean with the carriers unread or opened, and what its absence would mean in each case. Two readings are stated plainly there because both were got wrong on the way to writing them — that a protocol which does not prescribe a file is not an agent failing to read it, which is why the run asks for the list of files actually opened, and that a hypothesis matching the form is attributable to independent discovery only if that list shows every carrier unread.
The second entry records the outcome. In one blind run the protocol produced four new instances of the form — three in the enforcement plane, one in verification — and did not state the form as a general property; no carrier of it was opened. The cells were binary on whether a hypothesis appeared and had nowhere to put four instances written without the generalisation, which is recorded rather than adjusted. No mechanism is offered for why the form was not stated. A second run by a different tool is excluded as invalid rather than counted as a negative result, and one of the four instances — nine of ten discovery markers carrying no recorded provenance — is left unrepaired on purpose, because repairing it would have changed the specimen.
Neither entry is promoted to a decision or a rule. The boundaries are one run, one specimen, one protocol, and an agent of the same lineage as the one with which the form was first stated.
#151
2cf0662Thanks @E1i! - 0.15.0 and 0.16.0 each carry a dated notice naming the otherThe changelog asserts that 0.15.0 is a release. It is not: no tag, nothing on the registry. Under 0021 the entry is not corrected — it records what was versioned, and that did happen — so a dated notice is added beside it instead, and the entry is left as it was written.
The notice is written in both directions, and the more important one is on 0.16.0. A reader arrives at the version they installed, not at the one that does not exist: someone on 0.16.0 sees an entry naming a single pull request and has no way to learn that two more shipped inside it. So 0.16.0 says it carries what is listed under 0.15.0, and 0.15.0 says its changes went out as 0.16.0. This is 0021's own remedy for a stale record — a pointer from the old statement to the new one — applied to a pair rather than to one file.
A notice is parsed out of the changelog rather than kept in a second list, and a test fails when one points at a version that answers nothing back, so the pair cannot be half-written. The rendered release-notes page carries both, because it is generated from the changelog.
0.16.0
Recorded 2026-09-22 — this release also carries the work versioned as 0.15.0. The entry below names only what 0.16.0 versioned itself. Everything listed under 0.15.0 is in this release too: that version was versioned and never published, so if you installed 0.16.0, read the 0.15.0 section as part of what you have.
Minor Changes
#149
fda1950Thanks @E1i! -/planin Claude Code requires a criterion to be seen failing before the changeThe plan command asked for acceptance criteria a harness run or a test can confirm, and for each criterion to be verified by what the task changes itself. Both are satisfied in full by a criterion that has never been shown failing, so a task could carry four criteria, all of them green from the first moment, none of them able to tell a change that worked from one that was never needed. The command now asks for the criterion to be run and seen failing first.
It is scoped, and the scope is the point. The requirement reads where a criterion can fail against the repository as it stands. A criterion for a defect or for absent behaviour can; one written to forbid a wrong implementation cannot, and the command says nothing about that case in either direction. Stating the wide form would have a planning agent reject a legitimate guard; stating the narrow form as universal would do the same. Silence here is the honest state of a question that is open.
This is not enforcement, and the distinction is worth reading slowly. What changes is that the rule reaches the planning command in Claude Code — not planning in general, and not Cursor, which this tool gives no
/planequivalent. The instruction is prose an agent may or may not follow — L0 on the scale this tool reports, exactly like the discovery protocol, and nothing reports a violation of it. The carrier is the evidence a run leaves behind, and it is not built here. Anyone reporting this release as the rule now works is making a claim wider than what was done.
0.15.0
Recorded 2026-09-22 — versioned, never released. No
v0.15.0tag exists and the registry has never served this version. The release run on the version commit found an unconsumed changeset in.changeset/and updated the next version pull request instead of publishing — nothing was staged and nothing failed, the publish never ran. The changes below reached the registry in 0.16.0. The entry itself is left as it was written.
Minor Changes
#146
4dd1b57Thanks @E1i! - A construct.model.json from a later build is a named state, not a schema failureA model declaring a
modelVersionthis binary does not understand produced a generic parse failure — the same path as a missing field or a malformed array. It is now reported as what it is, with the record, the field and both versions, and the command exits1without reading or writing anything.doctor,graph,syncandinitall inherit it, because all four read the model.The state was not built twice. One already existed for
construct.jsonand everything about it fitted except that the error and its line named that file and that field in their own text. The carrier now takes the record and the field as values and both readers raise it, so there is one mechanism rather than two of the same shape. A manifest from a later build reports exactly the text it reported before.The check also runs before the unknown-property check, since a model from a later build will usually carry fields this binary has never seen and the symptom would otherwise be reported instead of the cause.
What it closes.
readModelreturnsnullwhen the file is absent, andnullalready means no model, whichdoctorexplains by sayingconstruct initwrites one. Had a version-ahead model collapsed into that reading,doctorwould have told someone holding a newer model to runinit— proposing to overwrite the file it had just failed to read.Nothing migrates an older model, no fact kind is added, and
MODEL_VERSIONdoes not move.
Patch Changes
#148
70f8c07Thanks @E1i! - An observation: an acceptance played a second role at 0027's first useDecision 0027 requires an acceptance to be red on the current tree before the implementation exists. Its first application — decision 0028 — carried two axes, and only one behaved that way. The second was green and could not have been red, because the defect it describes does not exist on that tree; it becomes red only against a specifically named wrong implementation, which is what it was run against.
So an acceptance has two legitimate roles and the rule describes one: detecting an existing defect, which is red on the current tree, and forbidding a named wrong fix, which never is. The second needs a clause the first does not, or it is satisfiable by construction — the named wrong implementation must be one a reasonable implementer would actually reach for. Here it was the one the task brief itself described as the current state.
The entry does not extend 0027. Whether "red on the current tree" should become "red on the current tree, or against a plausible named wrong implementation" is named and left open on one application and one gap, with the trigger stated: a second acceptance that turns out to be a guard against a wrong fix, in an unrelated task.
0.14.1
Patch Changes
#145
71ff5d2Thanks @E1i! - Decision 0027: an acceptance is red before the implementation existsThe lifecycle had an unnamed stage between the brief and the implementation, and it had been doing real work. It is acceptance discipline, and it is not the reasoning ladder: one answers whether we may proceed to reasoning at all, the other how much reasoning to give once the harness says the solution does not work. A new normative area takes a new number rather than widening the ladder into a job it never had.
The rule is one mechanical test. A criterion that cannot be shown failing is a statement of intent however specific its wording, and the discriminator for every checkpoint in the stage is that it is met by producing something a second party can check rather than by an answer about one's own work. Two stops come with it — a baseline that cannot be reproduced is reported rather than assumed, and a criterion is never adjusted to make the test green — and one condition, that the party writing the acceptance is not the party measuring it.
the-cycle.md§3 keeps both of its existing rules, which the record names individually: the first bounds what a criterion may depend on and survives untouched, the second orders tasks and is not about criteria at all. Neither provides red-before-implementation, so the third statement lives in the decision and §3 points at it.The record carries L1 and says why: nothing today can report a violation, so by this repository's own observation it is a rule carried by memory. What would make it L3 is named and not built.
The record carries two things a later reader would otherwise have to rediscover. The chain of carriers has a stated end — it stops at the first level where enforcement can fail without a human deciding it has failed, and where that failure has been demonstrated on a real case the carrier was expected to catch — with both clauses shown against examples already here: the dependency audit under
continue-on-errorfails the first, and the post-publish smoke satisfies the second by having been run red on 0.12.2 and green on 0.13.0. And the path to enforcement is written as three rungs rather than one, because the middle rung — the planning agent reading the rule — is necessary, is still L0, and is the one that will be reported as completion.#143
f7c9da5Thanks @E1i! - Three observations: rules without carriers, plans that ended in not building, and six stops on a false premiseA rule with no independently checkable carrier is carried by memory. Two rules stated clearly and observed by whoever remembered them: the documentation claim that stood ten minor versions, and the reasoning ladder, whose only artifact is a ledger line recorded for 29 of 65 runs. What they share is not that they were broken but that breaking them produces nothing, so the absence of complaints is evidence about the reporting rather than about the rule. The rule was considered for promotion to a numbered epistemic rule and was not promoted, because it fails its own requirement — nothing would exist if it were broken.
Three plans that ended in not building, each with its reason recorded. The discovery plan skill, whose hand-written plan came out empty; the trace of an unmade claim, which 0020 left open and 0024 answered by refusing to record one; and the rule above, which declined its own promotion on the standard it proposes. None was dropped quietly, each reason is specific to the thing, and in each case the output was a record rather than the artifact.
Six stops on a false premise, in one night. Each premise as stated, and what measurement showed. Five were the reviewing session's and one the implementing session's. The condition that makes it work is that in all six the party who wrote the criterion was not the party who measured it.
All three carry their boundary: a form, not a rate, and none of them says how often any of it happens.
0.14.0
Minor Changes
#140
f1b1728Thanks @E1i! - The workspace policy is recorded, not derived again on every runDecision 0026, implemented.
allowedWorkspaceImportsanswered two questions at once: which packages exist, which is a fact about the tree, and what each may import, which is a decision. A secondinitre-derived both, so a leaf recorded as importing nothing came back allowed to import the app, andsync --applythen wrote that looser policy intoeslint.config.mjs— a dependency policy loosening on a repository nobody edited.Which packages exist is still derived on every run, so a package added since the last one becomes a new key. What each may import is now kept once recorded. A new key is given the preset's default for a package of its kind: a package under
apps/may import every other workspace package, anything else may import nothing. The run names the keys it added, what each may import, and thateslint.config.mjsis not rewritten there so a latersync --applywould write the new policy into it — the consequence, not only the delta.Adopting a monorepo whose packages already import each other will now fail lint until you widen the policy deliberately. The default for a first
initon a monorepo that already carries packages used to be permissive — every package allowed to import every other — because the packages were detected rather than created. It is now the same narrow default as everywhere else:packages/*starts at importing nothing. Widening it is a one-line edit toeslint.config.mjs, and from then on the record keeps what you chose. The old default blessed whatever the repository already did without anyone deciding to, and under this release that unchosen policy would have been recorded and kept.construct.jsoncarries the policy as structure underpolicyand declaresmanifestVersion5. The rendered form is derived from the structure and is never read back to recover it, so a formatting function is not the authority on what was decided. The rendered entries are sorted by package directory, so the policy no longer depends on the order the packages were enumerated in.
Patch Changes
#142
341ff2cThanks @E1i! - The CLI reference carries the line the picture has carried since 0.11.1docs/cli.mddescribes the picture's legend and the state on each entry, and stopped before the sentence the page prints under that legend — that colour carries the derived state and not the enforcement level, so the same green covers an L0 claim nobody is obliged to read and an L3 claim that fails the build. Nothing in the reference was false; it was incomplete about the one thing the page goes out of its way to say.The reference now repeats that line rather than restating it, and a test holds both against the same constant in
src/model/svg.ts, so a change to the sentence cannot leave the document behind.#139
c4b8c6aThanks @E1i! - The written count says which of two questions it answersinitprinted "Written: 4 files" and no next step in the same run. Both were right and they counted different things: the count was applied write operations, the next step was derived from the operations whose content actually differed from what was on disk. On a second run the merges and appends reproduce what is already there, so four operations are applied and nothing changes — and the reader was left reconciling two numbers that answer different questions under one word.The row now names both:
59 files, 59 changedon a first run,4 files, 0 changedon a second,5 files, 1 changedwhere one file was restored. The count is not removed, because the four operations did happen. The changed set is now computed once and read by both the count and the next step, so they cannot drift apart again.The three cases of the closing line are unchanged.
0.13.0
Minor Changes
#136
d640935Thanks @E1i! - A second init reads the record instead of asking the directory, and instead of asking youThree places where
initderived an answer from the state of the directory whenconstruct.jsonalready held it. All three are only wrong from the second run onward, which is why the rollout is what triggers them.A second
initdeleted thelint-policyclaim fromconstruct.model.json. Whether the repository carries the preset's sample was computed from whether the directory is empty — false on every re-run — so the model was rebuilt without that claim andmergeModeldropped it, silently, while the sample sources were still on disk and every fact under the claim still held. It is now answered by whether the construct ever materialized the sample here, which the manifest records andsyncalready computed the same way; the reading is one function both commands call. Three runs on a tree materialized from empty now leaveconstruct.model.jsonbyte-identical from the second run on, carrying the same claims the first run wrote.doctorfollows the same reading, so the two cannot disagree. Where the construct did materialize the sample and the owner deleted the claim by hand,doctornow readsevery-fact-holds— a run here really would record it — instead of promising the opposite.A second
initasked again for what it had already been told. The preset, the agent target, the project name and the code-review provider are all recorded, and a re-run now reads them and names them in the configuration block rather than putting the same four questions. A flag still overrides any of them. The confirmation before writing stays, because it authorises this run rather than restating a value. The recorded review model is kept too, instead of falling back to the default.initagainst amanifestVersionfrom a later build writes nothing, whichdocs/cli.mdhas asserted all along and nothing held. It is now a test.#134
e2db78cThanks @E1i! - Three output lines stop claiming a case they are only true inFound by taking a live adopted monorepo through
sync,sync --apply, the harness,initanddoctor. The model was written and five claims recorded; the output made it read as though nothing had happened.doctortold an adopter thatlint-policystood on facts that all hold and thatconstruct initwould record it. It never will. The claim comes with the preset's sample sources, andinitmaterializes those only into an empty directory — which the treedoctorinspects never is, because it carries aconstruct.json. Theevery-fact-holdsreading now splits: it keeps that name and that promise only where a run in this repository really would write the claim, and readssources-omittedwhere it would not, saying so instead.--jsoncarries the fourth value underreading.initreported how many records it carried over and how many it added after the list of paths, so a second run read as a full re-materialization until the last line. The count, and the variables this run changed, now print before the list. What the run changed is reported before what it looked at.init's closing line namedpnpm install && pnpm run qualitywhatever the run did. It now names install and the harness where the run wrote a package manifest, the harness alone where it changed other files, and nothing at all where it changed no file — which is what a thirdiniton the same tree does.initchose theAGENTS.mdandCLAUDE.mdform from whether the file exists, when the question is which form the construct wrote. By the second run the file always exists, so a secondinitreplaced the full document it had written itself with the short form meant for a repository that already had one — on a real adopted monorepo that silently removed the baseline command list. The form now comes fromvariantsinconstruct.json, which records it, andappendBlockno longer counts the heading inside its own block as a document heading it must demote. A second and a thirdiniton a tree the construct materialized from empty now leave both files exactly as the first run wrote them.
Patch Changes
#138
8b977cfThanks @E1i! - Decision 0026: which packages exist is derived, what each package may import is recordedA second
initon the monorepo preset re-derivedallowedWorkspaceImportsfrom the packages the first run created, recording'packages/shared': ['@x/api']where the first run recorded[].eslint.config.mjsis skipped on a re-run, so the file kept the strict policy and the record no longer matched it;syncreads that path asupdate, andsync --applycloses the gap by writing the looser policy into the file. Confirmed by running it.The variable answers two questions at once. Which packages exist is a fact about the tree. What each may import is a decision, and after the first run it is the owner's — re-deriving it is the construct overwriting what it does not own, which is the shape 0013 and 0006 already settled for the record.
The record decides: the key set is derived every run, so a package the owner added is picked up; the allowances of a key already recorded are never re-derived; a new key gets the default the preset applies to a package of its kind, measured as
apps/*may import every other workspace package and anything else may import nothing. Widening and narrowing stop being separate cases because a recorded value is not touched.The decision is recorded; its implementation and test are not, and the record says so and carries L0 rather than a level it does not have.
The record carries two named constraints rather than leaving them to whoever implements it. A run that changes a policy variable names both values and what the change will do — naming both values has held since 0013, and the defect was read and not understood rather than invisible, so the consequence is the requirement and the delta is not. And the recorded allowances are kept by recording the structure beside the rendered form, never by parsing the map back out of the rendered source, which would make a formatting function the authority on what was decided.
#137
be73f5dThanks @E1i! - An observation: the claim that a second init was fixed, from the day it was made to the day it failedDecision 0013 measured a second
initon a 43-path tree, madeconstruct.jsonadditive and namedvariantsamong the branches that must survive.docs/guide/upgrading.mdthen concluded "That is fixed: the record is additive now." The second clause was true and tested; the first read as the secondinitis fixed, when what was fixed was its record layer. It shipped in v0.3.0 and stood through v0.12.2.The defect rode in on 0013's own sentence — the branches carry the previous entries, "then the entries this run wrote".
AGENTS.mdis written by every run, so the freshly computed variant always replaced the carried one, and the record handed the right answer to the caller that computed the wrong one. The tests held the record's self-consistency and not its stability: the carry-over assertion was guarded by a clause excluding every path the run wrote, and a case named is idempotent asserted four properties the replacement satisfies. Nothing compared whatinitrendered across two runs until this week.The entry is kept because it is the one claim in this corpus with a complete lifespan: when it was made, what it was measured on, the layer that evidence covered, the layer the sentence claimed, when it was falsified and by what. It is one claim in one repository and carries no rate.
0.12.2
Patch Changes
#132
f8f32a7Thanks @E1i! - The discovery plan skill was not built, and an open question on interpretation freshnessWritten out by hand against this repository's model before any code, the plan came out empty: seven hypotheses, twenty-eight facts, all holding, zero items under each of the three decay kinds the skill was scoped to name. The emptiness is the result. Had anything decayed,
doctorwould already say so through the same projection, so the skill as scoped was a second rendering of what the report already carries.The observation also records the procedure, on its second use in a day: a plan written by hand before any code, as a check of necessity rather than a preparation for implementation. It sent one change to repairing its inputs and stopped this one from being built.
A new open question sits beside the enforcement-capability one and answers something different: whether an interpretation has been reconsidered since the tree under its facts moved. Nothing is claimed to be stale — what is unknown is whether a reconsideration is owed. The obstacle is named too: answering it means reading what changed since a
baseSha, which meansgit, anddoctorexecutes nothing.
0.12.1
Patch Changes
#129
7fed773Thanks @E1i! - Observation: a command that did not run, read as a measurement that didTwo cases on one machine in one day, under the same broken shim: a scan reported pull request bodies clean from a run where the tool was never found, and an
evidenceCleancomputation would have writtentruefor five hypotheses from agitthat never executed.Recorded as one shape rather than as two tool problems — a command fails, returns empty, and the empty is read as a successful measurement. The entry keeps the part that makes it worth recording: the failure was visible only because an unrelated expectation happened to contradict the value, and on a clean tree the failed measurement and the correct answer coincide exactly. Catching it was luck.
The requirement it leaves is procedural, not a check for a missing binary: a result is not a measurement merely because it has the expected shape; the measurement must also evidence that it was performed. Where a hypothesis depends on one that cannot show it ran, no hypothesis is written.
#128
77f7db8Thanks @E1i! - Discovery runs on this repository, and the open questions name what holds themThe tool had interpreted a specimen, a corporate site and two adopted trees, and never its own repository: the model carried zero hypotheses. Running the materialized protocol here writes seven, each
authoredBy: discoverywith a computedbaseShaand a computedevidenceClean, anddoctornow reports hypotheses where it reported none.Three of the four open questions asserted something false about this repository and nothing could re-check them. Decision 0025 states why: a hypothesis stands on facts and is re-derived on every read, so it cannot go stale silently; a question stands on nothing and therefore can. Premises that fit the two fact kinds are now hypotheses the questions cite by id; the judgment halves stay prose and the marker says they age.
The elision in the rendered picture now keeps the tail of a long label. Two facts on one long path rendered as the same visible line — the latent property recorded a few hours earlier, arriving on the first new data. The demonstration moves with it: the blind spot is now the middle of a line, not its end.
#131
18c435cThanks @E1i! - The reading-that-never-happened observation no longer rests on one broken toolchainThe entry recorded two cases under one broken shim, which left it readable as one machine's misconfiguration. The same reading arose in that session from a second, unrelated cause — a 403 from a proxy on the GitHub API — which has no shim under it at all. Zero matches distinguishes neither "the tool was not found" nor "the API refused": two sufficient causes, one empty result, and the result names neither.
Recorded as reported by the reviewing session and not verified here. Its weight is that the form does not depend on the shim, so the opening no longer offers the shim as the explanation.
0.12.0
Minor Changes
#126
806dd4aThanks @E1i! - doctor names the claims this preset can make and this repository does not carrySince the birth gate, a claim whose evidence does not hold is not written — which left
doctorshowing a short list and explaining nothing. It now names each claim the preset can make and the model does not carry, with the first fact that does not hold:Not claimed here: this preset can make these and this repository does not carry them. They have no level, because nothing is enforced by a claim that was never made. no-committed-secret — .github/workflows/security.yml does not carry what it would stand on.Nothing about this is stored. The expected set is rebuilt on every read from the preset and vars already in
construct.json, compared with the model, and evaluated against the tree by the same machinery that evaluates the claims the model carries. No new entry, no schema change, noMODEL_VERSIONbump, nothing written byinit. A trace would state what was true atinitand go stale in silence; a derivation stops being reported the moment it stops being true.The expected set is what the preset can claim, not what one
initmaterialized:node-libraryships no sample and therefore cannot makelint-policyat all, so its absence is a fact about the preset and is never reported. An absent claim carries no level, sits in its own block, and changes no exit code. Where the tree carries every claim its preset can make, nothing is printed.Decision 0024 records it, and closes 0020's open question as incorrectly posed: the answer was not to record the absence but that the absence needs no recording.
Patch Changes
#126
806dd4aThanks @E1i! - An absent claim distinguishes evidence that fails from evidence that could not be readThe first cut of the not-carried block tested
evaluation !== 'holds', which merged two different states — this is false here and we could not look — and left the choice between them to the declaration order ofsupportedBy.Each absent claim now carries its reading: a fact that does not hold, a fact that could not be read, or every fact holding. Where both a failing and an unreadable fact are present the failing one is reported, because it is the one a reader can act on, and that preference is stated rather than inherited from list order.
0.11.1
Patch Changes
#124
eeeb89cThanks @E1i! - The picture stops implying that colour carries enforcement strengthOn a default-preset tree an L0 claim nobody is obliged to read and an L3 claim that fails the build are the same green — true of this repository's own picture, where
vulnerable-dependencies-are-visibleis L0 andno-committed-secretis L3. The level is written inside each claim, but colour is read first and text second, so the page implied that green means fine when it means the facts named under it hold.One sentence now renders with the legend, because the legend is what explains the colour: colour carries the derived state and not the enforcement level, and each claim's level is written inside it. Nothing else on the page moves — no new channel, no new colour, no layout change — and stdout is untouched.
Decision 0023 records what this does not do: the picture does not show enforcement strength and is not intended to, and the sentence prevents a wrong reading rather than supplying a right one. A visual channel of its own for strength was costed and set aside, deferred on the same condition 0023 already sets for interaction — built when there is a recorded reading of the picture, not before.
0.11.0
Minor Changes
#118
3ef5abfThanks @E1i! - A construct.json from a later build is reported, not silently normalisedupgradeManifestread anymanifestVersionwhatever its value: a manifest from a later build was treated as one from an earlier build, its unfamiliar branches discarded andmanifestVersionrewritten down. Decision 0009 settled the backward direction and left this one open.Now a
manifestVersionabove what the binary understands throws a named error carrying both numbers, and every command that reads the manifest —doctor,sync,init, andcostwhere the environment does not already name the runtime — reports one line naming the version found, the version understood, and that a newer CLI is needed. Nothing is read and nothing is written.This does not help anyone already running an older binary. A published 0.1.1 will keep throwing on a v4 manifest; nothing here reaches it. The change is prospective: it makes the next shape change a reportable state instead of a second stack trace, and decision 0022 says so rather than reading as a repair of the crash that prompted it.
#122
cb8683cThanks @E1i! - construct graph --out writes a picture you can opengraphput Mermaid on stdout, which is the right machine-readable artifact and is not something a person can open: it needs a viewer that lives somewhere else.--out <path>now also writes one self-contained HTML file — inline SVG, inline styles, a few kilobytes, and nothing fetched when you open it: no CDN, no script, no network from afile://URL or anywhere else.stdout is untouched and stays the default. The Mermaid comes out byte for byte as before, pinned by a fixture captured from the renderer as it stood before this change.
The renderer is ours rather than an inlined Mermaid, on numbers taken before any code was written: the published package is 0.28 MB and Mermaid's minified bundle alone is 3.4 MB, so inlining it would grow the package roughly thirteenfold, weigh every rendered file at 3.4 MB, and make a tool whose invariant is that it executes no code it did not ship start shipping 3.4 MB of third-party JavaScript. Paying that before any person has read the picture inverts the order decision 0017 sets.
Both outputs are serialized from one structure, so they can differ in layout and cannot differ about what is in the picture — a test holds them to each other. Decision 0023 records that, and records before the fact what would count as evidence the picture is used: one observable signal, and a plain statement that the others cannot be measured by a CLI that emits no telemetry.
#116
165fd6aThanks @E1i! - harness-steps names every step of the quality script the construct writesThe templates have always written
pnpm composition:checkinto thequalityscript, and no fact named it. The claim said the harness runs lint, typecheck and tests, and stood on three needles — so it under-reported the script it was standing on, and a composition check silently dropped from that script would not have moved the claim.A
file-containsfact forpnpm composition:checknow sits under the claim, and its statement and mechanism name the step alongside the others.The needles are deliberately not widened to also match
pnpm run …. A literal substring cannot tell one invocation from the other, and one that tried would be guessing at a script the construct did not write. The needle is the construct's signature on its own script; decision 0020 is what keeps it honest, by checking the facts before the claim is made.tests/harness-steps-facts.test.tsholds the template and the facts to each other in both directions: every needle must be a substring of the quality script each preset renders, and every step of that script must be named by a needle. The second direction is what the missing fact failed.#115
4d74a48Thanks @E1i! - A construct claim is written only where its evidence holds on the tree init just wroteinitused to write facts it never evaluated. On a repository whose owner had written their ownqualityscript, theharness-stepsclaim was grounded in needles looking for the construct's spelling of the harness steps — false at the moment they were written, and reported bydoctorasunsupportedfrom the first run. That is a finding about what the preset shipped dressed as a finding about the repository, which is the defecthookwas removed for.Now a construct-authored claim is made only when every fact it declares holds on the tree, the facts nothing else stands on are not written, and
initnames each withheld claim with the evidence that failed. A claim already in the record is kept whatever its state, so drift still readsunsupportedinstead of disappearing; a claim whose evidence is merely unknown is still written, because not having looked is not evidence of absence.On an adopted repository this withdraws four claims, not one. A tree already carrying its own
ci.ymlandsecurity.ymlkeeps only the claims standing on files the construct wrote. The report is shorter than it was — not because less is checked, but because less of it was pretending, which is the sentence 0.5.0 shipped under and now covers a larger set. Decision 0020 records what the construct stops asserting, that discovery is what may legitimately claim over the owner's own files, and the asymmetry this accepts: a withheld security claim and an absent security practice both read as silence.
Patch Changes
#117
b1a634aThanks @E1i! - Decision 0021: a record of what a past version said is not edited0019 exempted a frozen fixture from the rewriting it otherwise requires, and gave the reason: the fixture states what a past version wrote. That reason was written as a property of one kind of file, and it is not one. A published release note listing an older version's harness steps was left alone for the same reason, and that file carries no specimen and no address — so the case cannot be a carve-out from a rule about how specimens are described.
0021 states the class. A frozen fixture, a published release note, a dated entry in
observations.md: the test is not the file's location but its tense. If an artifact's job is to state what was true then, it is not corrected when that stops being true, and what replaces the correction is a new dated record saying what changed.0019 keeps its fixture paragraph and gains a pointer, with no scope of its own — what may be named and what may be rewritten are two axes, and by this repository's own convention new scope takes a new number rather than widening an existing entry. The record reopens nothing: it states the rule those decisions were already following.
#112
e39ee77Thanks @E1i! - Records describe a specimen by structure, never by addressarchitecture/decisions/0019promotes a rule that had been living as a clause inside one observation, where it governed nothing: a repository used as a specimen is described by its layout, role, package manager, relation to this tool and the artifacts the finding turns on — never by name, npm scope, owner, URL, identifying commit or problem domain. Where the address sits inside quoted tool output, the quotation is either dropped for a description or marked redacted, never silently edited.Nine sites that named specimens by address were corrected and one stale citation to a test that does not exist was fixed. Frozen fixtures under
tests/fixtures/are exempt by the record: they are what a past version wrote, not what this repository is still authoring.The record also states the cost rather than softening it. The three runs those entries describe are no longer reproducible: their addresses are not held anywhere this repository can cite, and 0001's findings corpus is a decision rather than a repository that exists. Addresses already published remain in git history and in pull request bodies; the rule governs records written from now on.
#119
2899345Thanks @E1i! - doctor says what writes a construct.model.jsonOn a repository without one,
doctorreported the absence three times — in Enforcement, in Hypotheses and inYOU ARE HERE— and never named the command that creates the file. All three readings were correct and together they were a dead end: the sentence that resolves it existed only in the 0.5.0 release note, which is not where a person meets this.The Enforcement section now carries one further line, once, saying the file is written by
construct init, thatinitis additive and overwrites nothing it does not own, and that nothing forces you to have one. The three existing readings are unchanged and the sentence is added beside them: an absent model is a state to explain, not a fault to repair, and it still does not move the exit code.#123
56e289fThanks @E1i! - Edge labels in the rendered picture cannot sit on top of each otherThe picture's stage labels were separated only where two edges ran between the same pair of nodes. Labels belonging to different claims were not touched, and on this repository's own model they stood 9 pixels apart in one column — the same illegible overprint the parallel-edge fix was meant to end, arriving by a route that fix did not cover.
Label placement now excludes the collision by construction rather than detecting it: an anchor that would land within one line height of an already-placed one is pushed clear before it is written, so no rendered file can contain the forbidden state.
tests/edge-labels-do-not-collide.test.tsholds the property, taking the threshold from the renderer's own constant rather than repeating a number, and its own description says what it holds: distance, not readability. Readability was found by a person opening the file, and a green suite here is not a claim that the picture reads well — only that no two labels are closer than a line.#120
7114467Thanks @E1i! - The add population is named, before anything is done about itA live run against an adopted repository left two construct-written artifacts that do not fit it. Neither is a conflict — the construct added them and the owner never touched them — so they read as ours and sit there inert or wrong.
architecture/observations.mdnow records whataddactually tests: a path absent from the tree, with no recorded sha, that the template groups produced. There is no notion of applicability in the classification at all. The only two conditionalities in the tool areonlyWhenEmptymounts and theomittedGroupsthey produce, and both key on the tree being empty rather than on what the tree is.Every path the four presets produce is partitioned rather than sampled: 87 distinct paths, 37 reached only in an empty directory, and the remaining 50 across four kinds. Of the five kinds two are already conditional and one cannot misfit, so the population where a misfit can occur is exactly 23 paths plus the keys merged into
package.json— and the observed pair fell one in each of the two.tests/add-population.test.tschecks the partition in both directions, so a new template either moves the record or fails the build. No fix ships here: nothing undertemplates/,src/sync/orsrc/materialize/changes.#113
2ce9dcfThanks @E1i! - Epistemic rule 10: true when written is not true when mergedA sentence whose truth-maker is changed by the same diff that contains it is false on arrival. The rule names where such sentences concentrate — the passages that explain the change, and the artifact's own account of itself — and requires both to be reread against the finished diff before the change is done.
It caught its own introduction. This file's first line counted the rules; adding rule 10 falsified that count, inside rule 10's own diff. Fixed in the same change, which is the rule's first application and its acceptance test.
Evidence is two sentences written an hour apart in one afternoon, each inside a passage explaining the change it sat in. Two occurrences, one author, one file: a shape, not a rate. No mechanical check is proposed — the set of such sentences is given by meaning rather than form.
#121
c4140eeThanks @E1i! - The upgrading guide knows about the model, and about a manifest it cannot readdocs/guide/upgrading.mddescribed a four-step loop that has never written aconstruct.model.json, so a repository carried forward from before 0.5.0 followed the page exactly and still had none. The page now carries the one upgrade case that needsinit, why it is safe — the record is additive, and a construct claim is written only where its evidence holds, so the run cannot invent enforcement the tree does not have — and the fact thatdoctorsays all of this itself.It also warns that the list of claims will be shorter than before rather than longer, in 0.5.0's own words: shorter not because less is checked, but because less of it was pretending. And it carries the one failure upgrading produces on its own, a stale CLI meeting a manifest from a later build, which now stops with a named line instead of a stack trace.
Written from a run of the sequence, in order, against a tree materialized by an early 0.1.x release and carried forward with no model — structurally that tree and no other.
sync,sync --apply,doctorbefore and after,init, and the later-manifest case were each run and their output is what the page quotes.pnpm run qualityis the one step in the page not exercised there, because that tree has no installed toolchain; it is unchanged from before.No change to
sync,initor any template.
0.10.2
Patch Changes
#110
02e15b0Thanks @E1i! -construct graphshipped in 0.10.0 and was documented in the CLI reference and the README command table, and mentioned zero times in the walkthrough a new user actually reads. Reachable is not discoverable — the same gap the release sidebar had. Getting started now ends on the picture, which is the payoff of the walkthrough:initwrites the files,doctorreports on them, and the graph shows what those reports are read out of.The example is the real rendering of a repository straight after
init, not a sketch, and the documentation site now renders Mermaid fences as diagrams rather than as source.It also states the two things somebody meeting the model for the first time would otherwise discover by surprise: a repository with no
construct.model.jsondraws nothing and says so, andinitis what creates one.Why a plugin and not a build-time render, decided rather than defaulted.
vitepress-plugin-mermaidworks outside its declared support — it namesvitepress: ^1.0.0against this site's2.0.0-alpha.20, andmermaid: 10 || 11against mermaid 12, pinned here to 11. That is a real upgrade risk. The alternative, rendering to SVG at build time, removes it and ships no renderer to the client, but@mermaid-js/mermaid-clipeer-requires puppeteer, which puts a headless browser in every CI run, and the SVG becomes a generated artifact needing a writer and a staleness check.The deciding fact is that
docs:buildruns insidepnpm run quality, so a VitePress upgrade that breaks the plugin turns the harness red on the pull request that bumps it — the most visible moment rather than an unpredictable one. The client cost is lazy: mermaid is code-split across chunks loaded only when a diagram of that type renders, so pages without one pay nothing.The trigger for revisiting is written down: if a VitePress upgrade breaks the plugin, or a second diagram type pulls in chunks that are not lazy, render to SVG at build time instead. Migrating later costs roughly one edit per diagram page, which is why the trigger is recorded now rather than left to be rediscovered.
0.10.1
Patch Changes
#108
e6a214cThanks @E1i! - The release index asserts that versions run newest first, and the next release is the first with a two-digit minor — the point at which a string comparison puts0.10.0below0.9.0. The ordering was already numeric and the index takes its sequence fromCHANGELOG.mdrather than sorting it, so the assertion and the data cannot agree on one wrong comparison; both properties are now pinned by tests instead of being true by accident, with a mutation to a character comparison failing them.Checked before the release rather than by it, and of the same family as an assertion that pinned the newest version as a literal: code written while every minor was a single digit, correct up to the day it is not.
Predicted, so it is not read as a defect.
0.10.0is also the first version whose index anchor carries a two-digit minor. The link is built as#_0-10-0, by the rule observed in rendered output for single-digit minors, and nothing asserts that VitePress slugs the two-digit case the same way — deliberately, because reasoning about the slugifier is whatdocs:anchorsexists to replace. So the first real check of that anchor happens in the version pull request that introduces0.10.0. If it turns red there,docs:anchorsis doing its job on the render rather than on an assumption, and the fix is the anchor, not the gate.
0.10.0
Minor Changes
#106
0cc12d0Thanks @E1i! - The model has a picture you can look at:construct graph. The renderer that drawsconstruct.model.jsonas a Mermaid flowchart was reachable only from this repository's own scripts; now every installation has it. The diagram goes to stdout so it pipes into a file or a viewer, and the states in it are derived on read by the same codedoctorreports from — the command decides none of them itself.Absence stays a reading of its own: a repository with no
construct.model.jsongets a line on stderr and an empty diagram, a model that parses and names no entry gets a different line, and both exit0, because nothing to draw is not a failure.
0.9.1
Patch Changes
#102
1d1a639Thanks @E1i! - The documentation sidebar listed0.5.0,0.4.0and0.3.0under Releases — the three versions that happen to have hand-written pages — so a visitor saw0.5.0as the highest number in the navigation and concluded that was where the project stood, while the index below listed everything through the current release. The gate added earlier was not at fault: it required every version to be reachable, and every version was. Reachable and prominent are different properties, and only the first had been asserted.The sublist is now computed at config time from the same functions the index renders from, so there is no generated artifact that can fall behind and no second writer to enumerate. A version with a hand-written page links to that page and stays named however old it gets; a version without one links to its own section in the index.
pnpm docs:anchorschecks those section links against the rendered HTML, because an anchor that misses still lands on the page and says nothing. It runs insidepnpm run qualityrather than only in the docs deployment, which fires on pushes to the default branch and never on a pull request — and whose path filter did not cover the sources that generate the anchors.
0.9.0
Minor Changes
#95
905533bThanks @E1i! - cli+templates: Everyconstruct costreport names the version of the CLI that produced it — before the numbers in the text register, asversionin--json— and the/implementinstructions now require every figure in the closing usage line to name what measured it: the Workflow tool's own accounting, orconstruct costat the version that command reports. A whole session of published cost figures came from a binary that reported0.1.1and, on inspection of the bundle itself, predates the response-deduplication fix — while the sources they were quoted against are at0.8.0. Nothing in any of those numbers said so, and the version the binary reports turned out not to be enough on its own to place it. A hypothesis already records what tree it was read from; a cost figure recorded nothing, and that asymmetry is what this closes.No figure changes: the arithmetic is untouched and pinned by a test, and the two counting methods that are known to disagree remain unreconciled — while they are, provenance is what lets a reader see which of them a number came from.
#93
c727686Thanks @E1i! - templates: A hypothesis records whether its own evidence was committed, not whether the tree was clean.baseCleanbecomesevidenceCleanand speaks only of the files the facts under that hypothesis name. The first live discovery run on an adopted repository recordedfalseon every hypothesis and could not have recorded anything else —initwrites forty-two files into the repository it adopts before discovery reads a line — so a required field had one reachable value and distinguished nothing. Scoped to the evidence it answers both ways on that same path: a hypothesis standing on the repository's own committed files readstrue, one standing on a fileinitjust wrote readsfalse. The discovery protocol now carries the command that computes it,git status --porcelain --over the paths of that hypothesis's facts, under the same compute-it-never-estimate-it instruction as the sha256 one-liners.doctor's annotation says the evidence under the hypothesis was not committed when it was read, which is neither a doubt about the hypothesis nor a refutation of it. The schema is closed, so a model written withbaseCleanis rejected by name rather than ignored; nothing in the wild carries a hypothesis yet. The reasoning is in architecture/decisions/0018-evidence-clean-scopes-to-the-evidence.md.#97
50f7978Thanks @E1i! - cli:construct.model.jsongets its third projection — a Mermaid picture, rendered through the same mechanism that already rendersarchitecture/composition/*.yaml.pnpm model:renderwrites the graph intoarchitecture/model.md, andpnpm model:check— wired intopnpm run quality— reports the committed block as stale when the model moves without it. Claims and hypotheses are nodes, the facts under them are nodes, and a fact several entries stand on is drawn once with one edge from each of them: that fan-in is the shape a list cannot show and the reason the projection exists. A claim's edges carry the stage they come from, so its twosupportedBylists stay apart.The renderer holds nothing of its own. Every state in it comes from
deriveModelState, and the gate that guardsdoctoris repeated here: a renderer that decides a state from the model — from how many dependents a fact carries, from the level a claim declares — fails the test. A repository with noconstruct.model.jsonrenders a sentence saying so rather than an empty diagram, and a model that parses and names nothing renders a different one: absence is a third reading, not emptiness.
Patch Changes
#96
a9a4674Thanks @E1i! - The documentation site stops at a version that no longer exists.docs/release-notes/carried three hand-written pages and theReleasesnav link pointed at 0.5.0, while the changelog had already recorded nine more releases — the content existed and was simply never rendered, on the page a reader lands on when the tool did not work for them.A generated index at
docs/release-notes/now lists every versionCHANGELOG.mdcarries, newest first, rendered bypnpm release-notes:renderand committed the way the composition diagrams are. A release with a hand-written note — 0.5.0 and its upgrade sequence, which no changeset roll-up would produce — is linked rather than repeated, so hand-written notes stay the better thing where a release needs one.The floor is held by two tests rather than by remembering: one fails when the committed index drifts from the changelog, the other reads the versions from
CHANGELOG.mdand the wiring from the real VitePress config and fails in both directions — a version added to the changelog and wired nowhere, and wiring removed for a version that exists.#99
fd8c76fThanks @E1i! - templates: The discovery protocol's hypothesis step now tells the run to regenerate a rendered model where the repository has one, the way its composition step already says to runcomposition:render. Writingconstruct.model.jsonand leaving the artifact rendered from it behind turns the next harness run red for a reason nobody connects to the step that caused it.Found by sweeping every gate over a generated artifact for all the writers of its source, after a gate tested in both directions still shipped a release-blocking defect: both of its mutations had been performed by one writer, and a second one — the version bot — wrote the source and called no renderer.
#100
c103628Thanks @E1i! - A test guarding the generated release index assertedorder[0]was0.8.0— the newest version on the day it was written. Every release moves that value, so the check failed on the release after it shipped, for a reason that had nothing to do with what it was guarding. It now asserts the property it meant: the list is in descending version order, with more than one entry and a guard against the assertion holding vacuously.The same defect the repository keeps recording in other forms — a statement true of the present standing in for the property — this time inside a test written to enforce a property.
#98
c407022Thanks @E1i! - The release index is generated fromCHANGELOG.md, andchangeset versionwritesCHANGELOG.md— so every version pull request bumped the changelog, left the generated page behind, and failed its own harness on the gate added to keep that page current. The gate was right and the pipeline was missing a step:version-packagesnow runs the renderer afterchangeset version, so the page is regenerated by the same step that invalidates it.A test resolves the version script the release workflow names, follows it through
package.json, and fails when that chain no longer reaches the renderer — the state every release was in until now.
0.8.0
Minor Changes
#89
dfd6598Thanks @E1i! - templates: discovery writes hypotheses intoconstruct.model.json. The protocol gains a step of its own after the markers — not a reading of them: a marker is prose answering what is where, a hypothesis is a structural record answering what this is, standing on the same two fact kinds and no third, carrying the commit the run read from and whether that tree was clean. Everything it writes is authored bydiscovery, so the nextinitleaves it alone. An interpretation those two fact kinds cannot support stays prose in a marker, and one that looks as though it needs a third kind is recorded as an open question rather than inventing a way of knowing. The step where the run records what it wrote now names both addressees: provenance goes toconstruct.jsonand nowhere else, interpretation toconstruct.model.jsonand nowhere else.The step is instructions to an agent, which nothing enforces — L0. What ships proven is that the template materializes, that its worked example parses against the schema, and that a discovery-written hypothesis survives a second
initwhile the construct's own half is rewritten byte for byte. That the netrunner actually comes back from the model with something written in it is shown by a live run on a real repository, and that run has not happened yet.
0.7.0
Minor Changes
#86
cb99c0cThanks @E1i! -doctorreads back what the construct was taken to be. The result gains a knowledge-familyhypothesesfield: one entry per hypothesis inconstruct.model.json, carrying its statement, the base it was read from, and the state derived from the facts named under it — held, unsupported with the paths that no longer match, or unknown. The two ways of being unknown stay apart on the wire and in the report: a hypothesis whose facts could not be read says so and names them, and a hypothesis with nothing named under it says that instead of reading like a reading that failed. An empty list never passes for a repository that was looked at and found standing, and a hypothesis recorded against a tree with uncommitted changes is reported as one.Two defects on the hypothesis path go with it: the derivation kept only the state and dropped the reason, and it resolved with no facts in hand, so a fact that stopped holding was named by its id instead of the path it points at.
The rule that a reading may not be worded as a verdict now covers hypotheses as well as claims, and lives in one place both read from rather than in the test beside one renderer. It matters more here than it did for claims:
unsupportedon a claim is a statement about a mechanism, while on a hypothesis it is a statement about what the repository is, so the false reading — you are not that — sounds more confident than the true one, which is only that the ground under the interpretation stopped matching. Both registers are held to it at the strings, because a rendered line in a test resolves to the plain register whatever theme it asks for.
0.6.0
Minor Changes
#85
6e56f8aThanks @E1i! - A hypothesis now records the tree it was read from, not just the commit. BesidebaseSha,construct.model.jsonrequiresbaseClean: whether the working tree the run began reading carried no uncommitted change, before the run had written anything of its own. A construct that engrams an interpretation off a dirty deck should say so on the record, so a SHA in the model can no longer stand for bytes the interpretation was never formed from.Both fields are required and neither constrains the other — a repository with files and no commit is
baseSha: nullwithbaseClean: false.baseCleanis a claim discovery writes about its own run, never a measurement anything can confirm later, and hypotheses carrying different bases coexist by design: the base is how a fresh interpretation is told from a stale one.
0.5.4
Patch Changes
#81
5916b79Thanks @E1i! - The identifier scan classifies every JSON block in the documentation instead of selecting the ones it recognises.Selection caught the set narrowing — rename a table heading and it failed — and was blind to a block of a new shape never joining the scan at all. Nothing was missing, so nothing could be missed. A
construct.model.jsonexample added to the guide would have gone unscanned in silence, and its claim ids are exactly the identifiers at issue.Every block is now one of four kinds: a doctor result and a repository model, both scanned; a manifest and a sync report, both deliberately not, because their keys belong to other vocabularies. A block of any other shape fails the test and is named. Adding one forces a decision rather than slipping past.
A model block has its claim ids and
checkIds read while its structural keys —modelVersion,facts— are not treated as identifiers, so the second scanned kind needed no allowlist either.This is the same move as the field classification that admits a
mixedvalue and the type that makes an unclassified field a compile error: name the forbidden state so it can be prohibited, rather than arranging for it not to arise.
0.5.3
Patch Changes
#78
62a317bThanks @E1i! - cli: Whenred-gate,hook,construct-testsandweakestLinkleftdoctor, the documentation went on naming them and nothing failed; a reader would have found out before the build did.The code now owns two lists instead of one. Current is derived and never written by hand — the keys of
DOCTOR_FIELD_FAMILYplus every claim id and check id the model builder produces. Retired is the new exported list of identifiers this tool has published and no longer uses. Every identifier the docs and templates name must sit in one of them, so a removal can be described freely while a name in neither list fails the build. The two are asserted disjoint, which is the list's second and larger job: a retired name may never come back meaning something else, or every past mention would retroactively start saying something false.A mention is a token in code formatting — a key or an
idvalue in a fenced JSON result, a single-backticked cell in the tables that list fields and verdicts — never a word in prose. The English word "hook" in the L2 level description is not an identifier, and a rule that flagged it would be demanding edits that make the documentation worse.What the scan deliberately does not read. Only blocks whose shape is a doctor result, and the field and verdict tables. The manifest and sync-report examples are left alone: their keys —
manifestVersion,strategy,counts— belong to other vocabularies and are in neither list, so scanning them would have forced exactly the allowlist this design exists to avoid. A test states that exclusion rather than leaving it to be inferred from a regex.The gap that leaves is tracked rather than merely named. The scan selects the blocks it reads, and selection catches narrowing — a reworded heading fails — while being blind to a block of a new shape never joining the set at all. Replacing the selection with a partition, so that every JSON block must be classified and an unclassified one fails, is issue #79.
#77
8084a24Thanks @E1i! -What it refuses to claimdescribed a version that no longer exists, which is an uncomfortable thing for a page about not overstating.It taught the old three states —
present,absent,unknown— which were the check vocabulary before verdicts became projections of the model. The states areheld,unsupportedandunknownnow, and the page gives each one the reading it is not:heldis not proven, because the facts under a claim are necessary and never sufficient;unsupportedis not not enforced, because a named fact stopped matching and the report says which;unknownis not absent.It also still said the harness question is "always
unknown, because proving it means running it". That verdict is gone. A blind spot is represented by a stated boundary now, not by a verdict manufactured to fill the space — an answer nobody can act on is not a smaller finding than no answer, it is a worse one, because it looks like a finding.The levels table carries the precondition every level above
L0was already assuming: the mechanism must be able to report a failure. And a new refusal joins the list — that a level it reports is proven — with the note that whether a mechanism could fail at all is an open question rather than something assumed either way.getting-startedlistsconstruct.model.jsonamong the files a new repository gets, since it is committed and a reader meets it in their tree on the first run.
0.5.2
Patch Changes
#75
1d04d5bThanks @E1i! - The baseline fix in 0.5.1 repaired two things and only one was tested. Files compared against staleinithashes were reported modified, which is what prompted the work; a path recorded only bysyncwas never examined at all, which produced no symptom and so appeared in no test. It shipped repaired and unheld, free to regress as quietly as it arrived.It is held now: a path the
initrecord never contained is reported missing when it is deleted and modified when it is edited. Reverting the fix fails all three cases.The case that asserts silence while the path matches passes under the defect as well, because never looking is also silent. Only the cases demanding a positive report tell the two apart — which is why they are the ones that matter here.
0.5.1
Patch Changes
#71
211da72Thanks @E1i! -doctorcompared every path against the frozeninitrecord and ignored everythingsynchad recorded since, so on any repository that has runsync --applyit reported the files sync had just written as modified. Found on a real tree, not a fixture: seven fabricated entries sitting beside nineteen genuine ones, with nothing in the output telling them apart, and one more added by every future sync.construct.jsonholds two records on purpose — theinitrecord is frozen by decision 0006, and the sync record carries what has been written since. The latest recorded state for a path is the first overlaid by the second, which is whatrecordedShashas always returned and whatsyncitself reads.doctorsimply did not use it. That was visible in the output before it was visible in the code:versionGapreached the sync record throughreplaywhilemodifiedFilesdid not, one sibling backed and the other bare.The same defect was in two more places.
uncollectedTestslooked for the runner config and enumerated recorded test files in the init record alone, so anything sync added was invisible to it. Andinitcounted the records it carried over from an existingconstruct.jsonwithout the sync half, under-reporting what it kept and over-reporting what it added.Three occurrences make it structural rather than a bug to fix again, so the shared boundary is now enforced: reading
manifest.filesdirectly anywhere undersrc/fails lint, withsrc/manifest.tsthe single exemption, since it is the file that defines what the two records mean.#71
211da72Thanks @E1i! - The model every repository gets frominitclaimedvulnerable-dependencies-are-visibleat L3, and the job behind it ships withcontinue-on-error: trueintemplates/base. A job with that flag is marked successful even when its step fails, so the check is green whether or not a vulnerability was found. The claim asserted a level the mechanism cannot reach, in the release that shipped the model, in every repository materialized by it.The level is now
L0and the mechanism says why: the audit runs on a schedule and on pull requests, reports into the log, and can never fail a check, so nobody is obliged to act on it.The scale reads
L3as "CI that does not block a merge", which superficially fits — but that wording presumes a check able to report a failure at all, and distinguishesL3fromL4by whether the failure blocks. A check that is green in both worlds carries no information and sits below the scale.The mechanism was left as it is rather than made to fail. A dependency audit reads an external advisory database, so making it block would fail on news rather than on the change, which is presumably why the flag was set. Lowering the claim to the truth is the repair; raising the mechanism is a separate question with its own costs.
This is rule 8 applied to the tool itself — the presence of a command is not the level at which it is enforced — and the first case where a claim was
heldon facts that were all true while the mechanism it named could not fail.supportedBygives necessary conditions, never sufficient ones.#73
73f4d54Thanks @E1i! - The enforcement scale now states the assumption every level above L0 was already making: the mechanism must be able to report a failure.L3 read as "CI that does not block a merge", which literally describes a job carrying
continue-on-error— it is CI, and it does not block. The wording presumed a check capable of failing and distinguished L3 from L4 by whether the failure blocks, without ever saying so. The distinction between L0 and L3 is whether a failure can be raised at all, and that half was never written down.A check that is green whether or not the invariant holds reports nothing and is L0, however much machinery stands behind it.
This is a precondition being written out, not scope being added: it is what the levels already assumed, and exactly one record was affected by the gap — the dependency-audit claim corrected in this same release. Writing it now, while that single case is known and already repaired, means the sentence reclassifies nothing retroactively. Left for later it would silently move an unknown number of past records, and nobody would be able to tell a clarification from a change of scope.
0.5.0
0.5.0 — the tool stops asserting what it cannot show
0.4.0
0.4.0 — a number is worth what its counting method is worth
0.3.1
Patch Changes
0070441Thanks @E1i! - A green release run now has to mean the version is installable.Publishing 0.3.0 ended green —
Successfully published, a git tag, a GitHub release — with nothing on the registry. The version had gone into npm's staged-publish state, which a stage-only trusted publisher produces by design and which no CI token can approve; the next run exposed it with409 Cannot publish over previously staged version. The pipeline had reported a success the world did not contain.A separate
Release verificationworkflow now asks the registry about the version inpackage.jsonafter every release, and can be re-run on its own once a human approves a staged version — re-running the release itself would only publish again and fail on the 409.It answers with three outcomes rather than a boolean, because the rule this release is built on applies to its own guards:
installable,absent, andunreachablefor a request that could not be made. A network error is never read as a missing version. And when a version isabsentthe message names both worlds it could mean — a staged publish awaiting approval, or a publish that failed while reporting success — because CI cannot tell them apart and picking one would be the same defect again.#42
5b20037Thanks @E1i! - The documentation link comes first, where a reader on npm actually sees it.The link to the site existed but sat below the install snippet and the version note, which on the npm package page is under the fold. It is now the line directly beneath the description, with the four destinations worth naming: the site, getting started, the development cycle and the CLI reference.
A test keeps it that way and keeps it true: every
e1i.github.iolink in the README must resolve to a page this repository builds, and the documentation must be named before the install snippet. The README travels to npm, where nothing checks it and a dead link stays dead until the next release.
0.3.0
0.3.0 — a claim is worth what its enforcement is worth
0.2.0
Minor Changes
#13
04ba003Thanks @E1i! -construct coststops reporting two different facts as one. A missing project directory meant both "this runtime does not expose per-run usage" and "nothing has been run here yet", and the command printed the more damning reading of the two — so a Cursor user was told nothing was recorded when the truth was that their runtime never records it. Behind aCostSourceinterface, the command now resolves the runtime it is actually running under and answersok,empty,unsupported,mismatchorunknown, each with its own exit code and its own line.--jsonis an object carrying the status, the runtime and the project key that was looked up. A key that misses because the repository was reached through a worktree, a symlink or another path is named as such instead of being reported as absence, and where the evidence does not settle it the answer isunknownrather than a guess.#17
7e8ca83Thanks @E1i! - Discovery fills the markers inAGENTS.mdand the invariants table, and once filled nothing distinguished what the tool wrote from what the repository's owner stands behind.construct.jsonnow records it:discovery.baseSha,discovery.filledAt, and per marker the file it lives in, who authored it and the sha256 of the body discovery wrote. The marker itself stays a document a person reads — provenance in the prose would spoil the document and would put the record in the one place most likely to be edited.Authorship by the owner is never declared, only derived: a marker whose body no longer matches its recorded sha reads as theirs, with no command to run and nothing written back. Editing it by hand is the only evidence needed.
doctornames the markers that still read back, word for word, what the tool wrote — the places where the repository is quoting the construct at itself — and reports it without making it a gate or changing an exit code.construct.jsonalso carries an integermanifestVersion, separate fromconstruct, which is the CLI version; conflating a schema version with a product version is what makes a later migration undecidable. Manifests written by 0.1.x are normalised on read by a pure upgrade, so a repository initialised before this change gets a report instead of a crash. Their markers read asunknown, never as the construct's: a legacy manifest carries no provenance, and claiming otherwise would have this feature produce exactly the lie it exists to prevent.#12
39f8569Thanks @E1i! - cli:doctorreports an enforcement level instead of matching substrings. Five checks —lint-policy,construct-tests,ci,hook,red-gate— each return{id, level, state, evidence}, withlevelfromL0(text, or a command nobody is obliged to run) toL3(CI),stateone ofpresent,absentorunknown, and evidence naming the file or key that was read. The report ends with one line naming the weakest link: the lowest level among the gates the repository claims.--jsongainswarnings,checksandweakestLinkafter the fields it already emitted, which keep their names and meaning; the exit code is unchanged, so a low level is information, not a failure.doctorexecutes nothing from the repository it inspects — no child process, no dynamic import of a path inside it, norequireinto itsnode_modules, no call into its ESLint or Vitest APIs — because it is run throughnpxin a clone nobody has decided to trust yet, and a flat ESLint config is a module. The lint policy forbids those forms undersrc/**andtests/dependency-policy.test.tslints one sample per form. Because branch protection lives in the GitHub API and not in a file,doctornever claimsL4,ciis neverabsent, and the red gate is alwaysunknownand says so.#15
26e449aThanks @E1i! -construct costnow reads the run ledger and reconciles it against what the runtime exposes, joining on the runtime's own run identifier — which the/implementskill step records from here on. Both directions are reported and counted: an entry whose run has no session, and a session with no entry. Neither is an error; they are the two ways a record and a reality drift apart, and seeing the drift is the point. Pairing entries to sessions by time is deliberately not done — that is a guess presented as a finding. Entries written before the key existed are counted as unjoinable, lines that do not parse or lack a declared field are reported with their line number and the exact field path, and a token value ofunknownis never read as zero, because zero is a number and it would be a lie.The ledger's declared schema is what the writer can actually produce and no more: the workflow returns aggregate accounting for a run, never a row per agent, so no per-agent field is declared. Declaring a field nobody writes is the same defect as claiming an enforcement nobody performs.
docs/cli.mdsays plainly that the ledger is written by a step of a skill and is therefore L0 — a record nobody is obliged to keep.#19
7664355Thanks @E1i! - The lint policy checks never reached a real repository. They lived in each preset'ssamplegroup, and a sample is materialized only into an empty directory — soinitagainst a repository that already has code, the case this tool exists for, wrote the policy and skipped the test that proves it fires.doctorhad been reportinglint-policy L0 absentand was right. The tests now ship inbaseline, and arrive whether the directory is empty or not.node-frontenddeclared three restrictions and shipped no test that any of them fires; it now has one, and the restrictions cover their class — a computed member reaches the same method, and binding an element'sclassListorstyleto a local name steps around a selector matched on the member expression. Reverting any of them to its narrow form fails the new tests.node-libraryis deliberately untouched and still reportslint-policy L0 absent. It declares no syntax policy — its groups are the base and the harness, and the harness config carries no restriction of the construct's — soabsentis a true reading rather than a missing file, anddocs/cli.mdnow says so where the check is documented. Manufacturing a policy so that a report turns green is the defect this tool exists to find.#7
f22bcdfThanks @E1i! - The policies the presets ship were shape matches on one spelling each, and the same operation written another way walked past:await import('@scope/shared'),const { env } = process,globalThis.process.env,const { body } = req, and — worst of the set —sql.raw`select 1`, the tagged form thatNO_RAW_SQL's own message tells you to use. Each restriction in the monorepo and node-backend presets now covers its class, including bindingprocessorreqto a local name, while keeping every role's exemptions exactly as they were.The durable half is the test.
syntax-policy.test.tscompared resolved selector strings against the same strings restated in the test — proof that a restriction is attached, never that it fires. Both presets now lint real source per role from a single per-role table: one sample per restricted form expecting a report, each role's exempt forms expecting none.Named limit: in the monorepo, a package that binds
processto a local name and reads.envoff it is still not reported. That restriction is env-specific by design, and widening it would change what the rule means rather than what it catches.
Patch Changes
#8
7f07169Thanks @E1i! - Acceptance now runs the artifact that actually ships. Each leg installs the packed tarball into a directory outside the repository and invokes the installedconstructbinary forinitanddoctor, instead ofnode dist/cli.jsout of the working tree. That is what publishing exercises: externals tsup leaves out must resolve from the installed package's own dependencies,filesmust carrytemplates/or the first template read fails, andbinmust point at the built entry — running from the workspace proves none of the three, which is why nine legs went red at once. A drift guard asserts no bare import undersrc/resolves to a devDependency; it is green today and stays that way on purpose.#18
045efcaThanks @E1i! - The README's cost paragraph is rewritten from thirteen measured runs instead of three, and it now says something different. The old text argued that the reasoning class predicts the price. It does not: ninemediumruns spanned 847k to 5.9M. What the measurements show is that almost the entire cost of a run is each agent's entry into the repository — a fresh exploration, paid in full before anything is produced and paid again by every agent that starts. Twolowruns cost 557k and 740k with two agents each; twohighruns cost 14.19M and 14.14M with three. The class decides how deep an entry goes; the ladder decides how many entries there are, which is the claim the tool should be making.#10
728efc7Thanks @E1i! - Six fixtures fordoctorundertests/fixtures/doctor/, written before the checks that will read them and asserting the wrong answer on purpose. Five repositories are objectively broken — an eslint config that never loads the construct policy, construct tests outside the runner's globs, a quality script that is red on a clean checkout, a quality script no workflow runs, a command with no hook to run it — and todaydoctorcalls all five healthy. Each test says so in its title. A fixture written after the check can only confirm what the check already does; a fixture written first has to reproduce the lie. The expectations sit in one table keyed by the fixture directory, and a cross-check fails when a fixture has no row or a row has no fixture, so a check can never arrive without something that proves it can fail.#14
21b65d3Thanks @E1i! - The ladder's output contract was declared twice and the duplicate was the weaker of the two. The runtime validates against a schema; the agent files then restated the same contract in prose and closed with a fenced JSON example, which reads to an agent as "format your answer as text that looks like this" — the likely cause of a run where five answers in a row came back invalid, and a contradiction of decision 0005, which this repository had already taken. The fenced block is gone from the agent files here and in the templates; what remains is a list of the fields and what each one means. Alongside it: a schema-rejected response now retries with the validator's complaint in the prompt instead of a bare "the previous attempt failed", the retry limit is a parameter rather than a literal, and every failed attempt is recorded with a reason that tells a bad shape apart from a red harness and from a blocked report.#5
3116836Thanks @E1i! - Black ICE on the package boundary:pnpm run qualitynow runs a privacy guard overtemplates/,docs/andREADME.md. Domains are permitted by an explicit allowlist — a denylist in a public repository names the very thing it hides — and any host in a URL or an email address is checked whatever its top-level domain. Home directory paths (/Users/<name>,/home/<name>,~/<name>) are refused outright, one such path is gone from the sample transcript indocs/cli.md, and a test asserts the published file list carries nothing under.construct/,findings/orruns/.#16
27cf209Thanks @E1i! - The ladder no longer re-asks an agent whose response the schema rejected:retryLimitdefaults to0, and the run stops with the validator's error where a person can read it. This default has a measured price tag, which is rarer than it should be.A run was killed when the architect failed structured-output validation five times and hit the runtime's own retry cap. Re-running the identical task after the duplicated output contract was removed produced a valid spec on the first attempt. Comparing the two: the failed architect cost 3,658,281 billable tokens for nothing, the successful one 3,118,576 — so the four extra schema attempts inside a single call were worth about 135k each, not the millions they looked like. That cap belongs to the runtime and is not ours to set.
What is ours is
retryLimit, and it counts whole additional agent calls. Each one repeats the agent's exploration of the repository from scratch — about three million tokens for an architect — and it cannot fix a contradiction in the brief, because the agent is not allowed to change the brief. The first attempt already carries the runtime's five internal tries; a second full call buys a rerun of the same misunderstanding at a thousand times the price of one schema retry. Stopping and showing a human the validator's complaint costs nothing and took about a minute to act on when it happened.#9
51921a5Thanks @E1i! - Two claims that were made but never checked are now tests. Materialization is deterministic: for every preset and every AI target, twoinitruns into empty directories with fully pinned variables produce identical file lists and identical hashes, so a future template that reaches for aDate, an unorderedSetor an unsorted walk fails the gate instead of shipping. And the claim that this repository runs on its own construct is now a replay compared against the repository root, with every difference declared inarchitecture/self-hosting-drift.yamlwith a reason — ten of them, measured, not assumed — failing in both directions so the list cannot rot into decoration.Deliberately not done: the replay is never compared against the sha256 map in
construct.json. That manifest was written by 0.1.0; comparing today's templates to it compares two versions and calls the result reproducibility. Decision 0006 freezes whatinitwrote and scopes the freeze to that branch only, since provenance will write the discovery branch later. The boundary is stated in the test itself: what reproduces is materialization; discovery does not, and pretending otherwise would be the defect this work exists to catch.#6
7cbf62dThanks @E1i! - The ICE was painted on, not wired: the invariant "the CLI spawns exactly one child process" was enforced by a single selector matching a staticimportofnode:child_process, soawait import('node:child_process')andcreateRequire(target)('eslint')walked straight through. ThespawnPolicyblock now fails the build on the whole class — any dynamicimport()whatever its specifier,requirecalls andrequire.*access,node:moduleandcreateRequire— anywhere undersrc/except the pnpm version probe, andtests/dependency-policy.test.tslints one real source sample per form instead of comparing selector strings. The invariants table now names the mechanism rather than the wordlint.
0.1.3
Patch Changes
- #3
b3051b6Thanks @E1i! - cli: apnpm-workspace.yamlorworkspacesfield counts as a monorepo only when it lists packages. Since pnpm 10 that file also carries settings such asminimumReleaseAgeandallowBuilds, and the construct ships one in every preset, so a generated single-package project reported itself as a monorepo and a secondinitsuggested the wrong preset.
0.1.2
Patch Changes
1cf5709Thanks @E1i! - cli: document the commands. The README now opens with a real first run and a Usage section covering a new project, an existing repository, agent targets and the read-only commands; docs/cli.md is the full reference with every flag, worked examples and exit codes.