# Changelog

All notable changes to `@mmerterden/multi-agent-pipeline` are documented here.

Format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Versioning Policy

- **Major (X.0.0)** — breaking changes to the slash-command surface (renamed command, removed option, changed default that flips a reasonable workflow).
- **Minor (x.Y.0)** — new actions, new modes, new phase behaviors that are additive and opt-in.
- **Patch (x.y.Z)** — bug fixes, doc clarifications, new safety-net rules that refine existing behavior.

Internal file-layout changes that don't affect the slash-command surface are still flagged with `refactor!` commits but do **not** force a major bump. Version `2.0.0` marks the first "public-stable" API surface.

---

## [24.8.0] - 2026-11-23

### Added

- Device profiles for `/multi-agent:bug-bash`. `pipeline/schemas/device-profiles.json`
  (with its schema) holds twelve profiles, eight iOS and four Android: model,
  OS, system language, text size, appearance, location and the person who uses
  the device; six are the default set. `bug-bash.mjs devices` validates a
  catalog (the shipped one, or a project one with `--profiles`), selects
  profiles (`default`, `all` or ids), prints the width `min(--width or 4,
selected)` and the toolkit arguments that create and configure each device.
- Charters take `device`, checked against the catalog and the run's platform.
  The merge lists the profiles each candidate was seen on and flags one seen on
  a single profile of several; the report adds a Devices line, a table by
  class, a "Seen on one profile only" list and a Device column.
- A finding takes `class` (functional, layout, text-size, feedback,
  accessibility, translation, rtl, large-screen, system-ui, copy, visual,
  crash, artifact) and `element`.
- `features/device-profiles.md`: provisioning on iOS and Android, the driving
  rules on a profiled device, writing findings that merge across languages,
  proving a profile finding on its own profile, and teardown of the devices a
  run created.
- `native-trigger.mjs` with `schemas/native-trigger.json` and a scorecard
  Performance gate (`smoke-native-trigger.sh`): a native component is
  considered only when a single pure-CPU operation (CPU/wall at least 0.8)
  spends more than 30 s CPU, the work batches into one call, and prebuilt
  binary distribution is accepted or the work stays in the toolkit. Exit 0 not
  warranted, 1 a decision or ADR is needed, 2 a malformed record. The smoke
  measures a live code graph build.
- `mechanism-compare.mjs` (also `cost-analyze.mjs compare`): an observational
  report of cache read, output and prefix break per turn where
  `offload-ref.sh`, `bulk-read.sh` or the read-size block fired against where
  they did not, read from the host transcripts at session level and in K-turn
  windows around each firing, split into main and sub-agent. The 5 turns after
  a compaction are dropped and counted; below `--min-n` a row prints
  INSUFFICIENT with its n and no delta. A report, not a gate.
- rules.md "Context and Cache Discipline": history is not summarised or
  compacted to save tokens, because the summary is a new prefix billed at full
  price; context is bounded at the source, and compaction happens only near
  the host limit at a phase boundary after the handoff block.
- Component dispatch records the figma-validate pre-check as
  `componentDispatch.validate` (`{skill, verdict, reason?}`), and the writer
  refuses to close Phase 2 on a dispatch to a Figma frame without it, on an
  INVALID verdict, on a verdict whose check is not in `telemetry.skillCalls`,
  and on ALREADY_IMPLEMENTED outside the evolve scope.

### Changed

- The proof rule: a candidate seen on device profiles is confirmed only by a
  repro that ran on one of them (`repro.device`); a proof elsewhere is
  `unproven`. Runs without profiles keep the rule they had.
- `explore-run.schema.json` and `bug-bash-verification.schema.json` 1.1.0:
  `device`, finding `class` and `element`, `repro.device`.
- Android screens dispatch to `ai-android-toolkit:create-screen`; the halt
  for a missing Android screen skill is gone.
- The routine share scan denies bare ticket keys whose prefix setup recorded
  in prefs (`global.defaultJiraKey`, `projects.*.jiraProjectKeys`), in addition
  to `MULTI_AGENT_ROUTINE_DENY_TICKET_KEYS`.
- `phases/operations.md`, `prompt-assembly.md` and `docs/engineering.md`
  follow the compaction rule instead of compacting past half the context.
- `/multi-agent:bug-bash` takes `--devices`, `--width` and `--keep-devices`,
  and is granted the toolkit's simulator provisioning tools. iOS provisioning
  needs `@mmerterden/multi-agent-mcp` 4.6.0, Android provisioning 4.7.0; with
  an older toolkit the run uses the booted devices and says so.

### Fixed

- The attended commit gate judged a commit in any repository by the run bound
  to the committing session. A session-bound run now judges only commits in a
  checkout it owns: its worktree, its project root or one of its multi-repo
  entries. The run-identity check (`run-commit-check.mjs`) follows the same
  rule, so a commit to an unrelated repository keeps that repository's author,
  and so does the agent guard's confirmation for a commit inside the driven run.

## [24.7.0] - 2026-11-23

### Added

- `pipeline/lib/state-schema.mjs`: the slice of JSON Schema that
  `agent-state.schema.json` and `repo-profile.schema.json` use, implemented
  where the published package can reach it. 20 keywords, `$ref` into `$defs`,
  `patternProperties` and `format`. `write-state.mjs` has to refuse a bad write
  with nothing installed, and the package carries no schema engine.
- `state.phases.<n>.componentDispatch` and the 19 other fields a shipped
  instruction or shipped code already writes, declared in
  `agent-state.schema.json`: `testPolicy`, `accountId`, `gates[].sourceDigest`,
  `channelsTimeout`, `clarification`, `dev`, `flags`,
  `instructionDrivenFallback`, `repoMap`, `analysisSpec`, `baseSha`,
  `componentScope`, `documentContext`, `fetchedContext`, `command`,
  `phases.<n>.validator`, `phases.<n>.consistencyCheck`, `phases.<n>.errors[]`,
  `credentialInventory` and `projects[].baseFetchStatus`. `project` accepts
  null, which is what a stack-optional analysis run writes.
- `rungOrder` in `hosts.schema.json`, required: the fallback ladder is a fact of
  the registry rather than an order implied by a file's shape.
- `ticket-key` in the routine-sharing secret scan. A shared routine carrying a
  project key publishes which organisation wrote it, so the scan refuses a key
  where its place makes it unmistakable, an issue URL or a branch name, which
  leaves a technical token such as `UTF-8` or `SHA-256` clean. A bare key is
  refused only against the prefixes a machine declares in
  `MULTI_AGENT_ROUTINE_DENY_TICKET_KEYS`.
- `claude-jobs` in the disk cleaner: the work space of a background job whose
  own state says it ended. Any other state, an unreadable state and a recently
  touched tree are measured and reported rather than deleted, because that
  scratch is what a resume would read.
- `AUDIT_ONLY` in the gate ledger, naming the six recorded verdicts no checker
  requires, so an id added to the required set without a writer cannot block
  every unattended commit on an entry no run can produce.

### Changed

- Both write choke points refuse a write that ADDS a schema violation:
  `write-state.mjs` exits 6 with every added violation named by its path, and
  `gate-ledger.mjs` throws for its 19 importers. What a document already carries
  stays writable, so a run started under an earlier schema can still be
  finished. `analysis-sources.mjs --write` goes through the same lock and rule.
- Phase 2 cannot close a `taskType: component` run whose record contradicts the
  rest of it: the dispatched skill is the one its `componentScope` routes to, a
  qualified name belongs to a platform the routing table carries, and
  `fell-through` is refused on a run that carries a design reference.
- `telemetry.skillRouting` records what a run reads back - name, marketplace,
  version, source, role, reason, alwaysOn, stacks, hasIndex - instead of the
  resolver's whole answer. Measured over a three-toolkit iOS repo: 4614 bytes of
  routing in a 9047-byte document, 1227 after.
- `state-2.2.0-to-2.3.0.mjs` validates a document before it stamps it, and
  throws rather than writing one that still departs from the schema. `--all`
  names a run it cannot carry forward and keeps sweeping.
- Phase 3's criteria step writes the patch it resolves against and records a
  `criteria` verdict with its rule count and coverage fraction. A required step
  that leaves no trace is one a run can skip without anything noticing.
- `status-overview.mjs` prices a cache write at its own multiplier through
  `priceUsage`, the function every other transcript reader goes through.
  Pricing a write at the input rate is what makes a long-context session look
  cheap.

### Fixed

- The Android `screen` scope halts because `ai-android-toolkit` ships no
  `create-screen`, not with the message that the plugin is not enabled. A run
  told the wrong reason is a run nobody can fix.
- Four multi-repo readers addressed a project entry by the repo picker's field
  names (`name`, `localPath`, `provider`) rather than the state's own
  (`project`, `projectRoot`, `remoteType`), so no index matched and a per-todo
  worktree switch had no path.
- `familyOf` matched a family name anywhere inside a reviewer label, so a
  longer word containing one resolved to the wrong family. A finding whose
  reviewer cannot be named is recorded as `unattributed` rather than dropped.
  `rungOf` no longer falls off the end of the ladder with no answer.
- Three documents described `state.phases["2"].subphases[]`, which no schema
  declares and no shipped code reads.

## [24.6.0] - 2026-11-20

### Changed

- The dev phase's skill routing is carried by the run's own mechanics instead of
  by a step that has to be remembered. `write-state.mjs` resolves it on the
  write that opens Phase 2, stores `telemetry.skillRouting`, and prints the
  `index` skills to load; the write that closes Phase 2 is refused while any
  kept toolkit's `index` is unrecorded (exit 6, nothing written). Both run on
  every host, because every host moves its phases through that writer.
- `run-scope-guard.mjs` holds a code write inside a run's own tree while a kept
  toolkit's `index` has not been loaded, and names the calls to make: a skill
  read after the file is written cannot shape it. A run that reaches a code
  write with no routing at all has one resolved for it there too. Bounded at two
  holds per run, after which the same text arrives as a note - the phase's exit
  refusal is what makes the requirement binding.
- `note-skill-use.mjs` appends every Skill tool call it observes to
  `telemetry.skillLoads[]` of the run bound to that session, so what a phase
  opened is read off the host rather than reported by the phase. Separate from
  `skillCalls[]`, which carries the files a skill was applied to and stays the
  phase's own attribution. Not gated by `skillUsage.enabled` or
  `usageLog.optOut`: run telemetry is not passive collection, and nothing leaves
  the machine either way.
- `skill-conformance.mjs` reads the post-condition back before it resolves
  anything, and exits 4 without writing a manifest when the dev phase recorded
  no routing or kept a toolkit it never consulted. The rules it resolves are the
  ones the diff is held to, so a diff written without opening the skills its own
  stack routes to has no chosen rule set behind it.

### Added

- `pipeline/lib/dev-routing.mjs`: one definition of "the write that opens the
  dev phase", "the write that closes it", and how the routing is resolved,
  shared by the state writer and the run-scoped guard.
- `pipeline/scripts/check-skill-routing.mjs`: the post-condition as a command.
  Exit 0 holds or there is nothing to check, 1 the state could not be read, 2
  the routing is missing or a kept toolkit's `index` was never consulted.
  `--require-done` additionally refuses to start review over a Phase 2 that
  never closed; a review-only run, whose Phase 2 is skipped, is not held to it.
  Criteria resolution calls it with that flag.
- `telemetry.skillLoads[]` in `agent-state.schema.json`.

### Fixed

- `smoke-stack-skill-routing.sh` asserted the recording by grepping the phase
  document for the words `skillCalls` and `routedBy`, which is a check on this
  repo's own prose. It now drives the checker over synthetic states, drives the
  state writer through a dev-phase open and close, and fails when either stops
  refusing.

## [24.5.0] - 2026-11-19

### Changed

- The knowledge skills now ship in the stack plugins, not in this package. The
  tarball holds `pipeline/schemas/plugins-pin.json` - per plugin a minimum
  version and its knowledge skill names - and install delivers the skills
  themselves from a copy of the multi-agent-plugins marketplace. 2084 files and
  6.6 MB packed become 1293 files and 4.5 MB, and a host installed from the
  marketplace carries the version the marketplace published rather than the one
  frozen into whichever pipeline release the user last updated.
- `pipeline/skills/shared/external` stays the authoring source and is no longer
  a delivery source for anything. A developer's install resolves the
  marketplace exactly as a user's does, so there is no code path that only runs
  on a machine with a checkout.
- `install/_rewrite-tree.mjs` rebuilds `multi-agent-refs` without touching the
  `skills/` subtree inside it. That tree belongs to the step that delivers the
  knowledge skills, and it is the step that decides whether it may be replaced.
- Codex and the local host build their reference tree in a sibling directory and
  rename it into place. The rename happens only when the new tree carries at
  least as many of the pinned skills as the installed one, so a source that went
  missing cannot take the installed set with it. Copilot prunes a departed name
  only after a source that satisfies the pin was delivered.
- An install whose knowledge set is incomplete exits 1 after installing
  everything else, and names the skills and the host they are missing from. The
  exit code is a post-condition read off the disk, never a verdict on whether a
  fetch worked.

### Added

- `pipeline/lib/plugins-source.mjs`: where a copy of the marketplace may live,
  and whether one is good enough to deliver. A copy is stale below the pinned
  version and incomplete when a pinned skill has no `SKILL.md`; both are
  decided with no network and no clock. A complete older copy beats a newer
  short one, because a router cites a skill by path.
- One bounded fetch, when nothing on disk satisfies the pin: a shallow clone
  into the root install owns, no terminal prompt, killed at 45 s, and renamed
  into place only after git exits 0. It carries no credentials of its own, so it
  succeeds exactly for a user whose git can already read the repository.
  `--offline` and `MULTI_AGENT_OFFLINE=1` skip it; a dry-run never fetches.
- `prefs.global.pluginsRoot` and `MULTI_AGENT_PLUGINS_ROOT` name a marketplace
  root for a machine that keeps one outside the default order.
- `pipeline/scripts/gen-plugins-pin.mjs` writes the pin from a marketplace
  checkout; `npm test` runs it with `--check`, and
  `MULTI_AGENT_CROSS_REPO_REQUIRED=1` makes "nothing compared" a failure, so a
  release cannot ship a pin that disagrees with the published plugins.
- `pipeline/scripts/smoke-plugin-source-contract.sh`: the resolution under a
  fake git. A failing fetch leaves an installed tree byte-identical, a hanging
  one is killed and the install still finishes, a current copy below a stale one
  is the one delivered, an unattended run with stdin closed delivers the same
  set, and `--offline` runs no git at all.
- `smoke-host-skill-parity.sh` takes the expected set from the pin and installs
  twice more: from a source missing one skill, which must exit 1 and name it,
  and over a complete tree, which must lose nothing.
- `test/plugins-source.test.mjs`, `test/external-source.test.mjs`.

- The solid office view names a run and draws its phases. It gained the `annex`
  click target the flat view has - the tag a run working in two repositories
  leaves on the other one's room, hanging on the room itself since a camera has
  no corridor to draw on - and the run sign carries a phase bar: one segment per
  phase, the one in progress filled to its own progress. `runSigns()` exists on
  both renderers and reports what each one actually drew, so
  `smoke-office-runtime.sh` compares the two views rather than asking the model
  twice.

### Fixed

- A run sign was not drawn at all in the solid view. `readSigns()` kept a sign
  on its `text` being set, and a run sign carries no text of its own - what it
  reads comes from `signModel` - while the room's own floor header was
  suppressed in that sign's favour. A room with a run was therefore unnamed in
  that view. The filter now keeps a sign on having a run.
- `installRefs` rebuilt `multi-agent-refs` by wiping it, and the knowledge
  skills live in `multi-agent-refs/skills` on Codex and the local host, so the
  guard that refuses to wipe them when there is no source to rebuild from had
  nothing left to guard by the time it ran. `wipeDir` takes the entries another
  install step owns and leaves them alone.
- The task widget kept answering for a run that had already ended. The
  run-to-session binding now prefers the newest open run and falls back to the
  newest ended one, and a run's state is read from the file that was written
  last, so a paused run no longer loses its session to a stale `working`
  snapshot beside it.
- `task-mirror.mjs` said nothing when it found no tracker beside a bound run, or
  a phase tile naming a phase the tracker does not hold. Both now reach the hook
  failure log, which is capped at 1 MB so it cannot grow without bound.
- `/multi-agent:update` refreshes the stack plugins **before** it installs.
  Install delivers the knowledge skills from a copy of the marketplace, so
  refreshing afterwards left every host on the copy the machine already had
  until the next update.

## [24.4.0] - 2026-11-19

### Added

- The office draws its floor two ways. A button in the panel's header switches
  between the flat view and a solid one, hand-written in WebGL2 with no engine
  and no model files: the same rooms, the same desks, the same people, the same
  runs, lit by day or by night, inside the block and the streets around it. The
  choice is kept for the tab.
- `pipeline/office-src/floor-model.js`: the floor as state, independent of how
  it is drawn. It owns the layout, who sits where, what each person is doing and
  every word said about them, and one instance outlives a view switch, so nobody
  moves when the view changes. Both renderers read it, which is what makes the
  two views agree on a name, a tooltip and what a click does.
- `pipeline/office-src/portraits.js`: the sprite sheets and the face cut out of
  them, shared by the page rather than owned by one renderer.
- `test/office-floor-model.test.mjs`: the floor model run in node against the
  panel's own demo day - room reachability, crews, seats, signs and a tick
  without a canvas.

### Changed

- `test/office-renderer-contract.test.mjs` holds every shipped renderer to the
  flat view's surface, and reads each one from its own factory.
- `scripts/office-build.mjs` assembles the page from `RENDER_MODULES`.
- `smoke-office-runtime.sh` asks both views the same questions: the rooms they
  find, the names they fit without one covering another, and what a click can
  reach.

## [24.3.2] - 2026-11-18

### Fixed

- **A file-context test failed on a busy machine, not on a defect.** The hook gives git two seconds, because it runs inside a tool call and one that makes the user wait is worse than one that says nothing; when that runs out the context silently shrinks. Beside 150 other test files a plain `rev-parse` passes it, so a content assertion read as a failure. The bound is now `MULTI_AGENT_FILE_CONTEXT_GIT_MS`, default 2000, and only the test raises it.
- **The architecture documents did not carry the registry's new field.** `docs/architecture.md` and `docs/features.md` list what a host record holds; the skill-delivery field and the tree it names were missing, as was the gate that reads them.
- **A release the registry had taken but not released was reported as a failure.** npm can accept an upload and hold it: the version is in no packument, so the publisher's pre-check cannot see it, and the next upload is refused with `409 Cannot publish over previously staged version`. Measured on a real release: staged for twelve minutes while every read said the version did not exist, and the tarball answered 404 for two minutes after that. The publisher now reads that 409, for that exact version, as the registry confirming it holds the bytes, and goes on waiting instead of failing. Re-publishing is what would be unsafe, and it is what the 409 prevents; the poll still compares what the registry serves against the local integrity and fails hard on a mismatch.

## [24.3.1] - 2026-11-18

### Fixed

- **`/multi-agent:version` blamed the pipeline for another part's verdict.** The headline carries the pipeline's own version, so an overall verdict that belonged to the toolkit or the plugins read as the pipeline's: `multi-agent 24.3.0: a newer release exists` while the pipeline row two lines below said current, because the marketplace clone was the one behind. The headline now names the part the verdict belongs to, and says nothing extra when the pipeline is one of them.

## [24.3.0] - 2026-11-18

### Added

- **A gate holds the four hosts to one knowledge-skill set.** The skills reach them by three routes: Claude Code loads them from the marketplace plugin, Copilot has them written into its skills directory, and Codex and the local host read them as reference files. Three routes are three ways for one host to fall behind, and the symptom is silent, because the router cites a skill by path and the path simply is not there. `smoke-host-skill-parity.sh` installs all four into a temporary home and asserts that every install-fed host carries every knowledge skill, that those hosts carry the same set, and that each knowledge skill routes to exactly one plugin, which is what a plugin-fed host ships. It also asserts a plugin-fed host receives none from the installer, since two copies of one skill is how a host comes to read the stale one.
- **`/multi-agent:clean-disk` can delete what a test run left behind.** A suite that runs every night writes the biggest regenerable thing on the machine and nothing deleted it: the result bundles, the recordings and screenshots taken while it ran, and the report files. The new `test-artifacts` target finds all three by shape rather than by any harness's directory names, so no product's paths live in the repository: a run is recognised by a result bundle or a report shaped like a test report, and media and report files count only inside such a directory, so a recording somebody saved among their own files is never a candidate. Nothing version control tracks is ever offered, which is what keeps a committed fixture from being read as a run's output. It is opt-in (`--test-artifacts`, older than `--artifact-days`, default 7), never unattended, and confirmed per run, because a recording can be the only evidence of a failure anybody still has. A harness that keeps its results outside a repository is named with `--artifact-root` or `DISK_CLEANER_ARTIFACT_ROOTS`.

- **The host registry says how a host receives its skills.** `install.knowledgeSkills` is `install` or `plugin`, and `install.knowledgeSkillsRoot` names the tree when it is `install`. The parity gate reads it rather than discovering the layout, so a host whose delivery changes has to declare it first.

### Fixed

- **The installer read a stale copy of a plugin in silence.** Three places on a machine hold a copy of one plugin: a working checkout, the marketplace directory and the version-named plugin cache, and they sit at three different versions (measured here: a checkout at 0.26.4 against 0.26.2 in both others for one plugin, 0.11.0 against 0.10.0 and 0.9.1 for another). The resolver took the first path that existed, which was written when the checkout was the only thing `/multi-agent:sync` rebuilt: a user who had not pulled for a month got last month's skills while a newer copy sat beside it, and nothing said so. The newest copy now wins, the marketplace directory is read as a source, a copy that declares no version is used only when nothing declares one, and the install log names the version it read.
- **`npm pack` was not reproducible, and it broke the publisher's resume path.** `manifest.json` ships inside the tarball and carried a clock reading, so two packs of one commit were two different tarballs. A publish interrupted between steps could not then prove the second tarball was the first, and the registry refused bytes it already held. The timestamp now comes from the source: `SOURCE_DATE_EPOCH` when set, otherwise the commit's own date, and the clock only outside a checkout, where there is no commit to date the content by.
- **An install only ever added files, so attribution files an earlier version wrote stayed.** This ecosystem publishes no third-party notice, but six `NOTICE-*.md` from versions that did were still sitting in a Copilot skills tree; the uninstaller removed them and an update did not. Install now prunes that one named class from the root of a host's skills tree, and a test proves an update removes a leftover.
- **The Codex install emptied its own skill tree when the package carried none.** It rebuilds the tree by wiping it and copying the sources back, which only holds while there is a source to copy. With no source tree the wipe ran alone and put nothing back, and this host reads a skill by path, so the result was a host that could load none. The sources are checked first and the installed tree is left as it was found.
- **Three smoke suites were held to a budget smaller than their own work.** The general 180-second timeout is a hang detector, and it answers for almost every suite; the install-leak gate measured 258 seconds, gate-wiring 273, because they install four hosts and run other suites against each tree. A red that means "the machine was busy" stops being read. Those three now have their own budgets, each recorded with what it measured at, and an explicit `SMOKE_TIMEOUT_SECONDS` still governs every suite.
- **Twenty-three timing assertions failed on a busy machine rather than on a slow path.** A fixed wall-clock bound asks two questions at once, and only one is worth failing over: measured at load 25, a scan that takes 6 ms alone took 151 against a 100 ms bound, while a bare `node -e 0` took 91 ms against the 35 to 45 it costs unloaded. Budgets are now scaled by how slow the machine is right now, probed with a node start, and the factor never drops below 1, so no gate is loosened on an idle machine. A quadratic path, which overshoots by orders of magnitude, still fails.
- **The disk cleaner found build output by name, so it missed most of it.** A tool that chooses its own `-derivedDataPath` writes the same tree under a name no list can enumerate. Measured on one machine: four such copies beside a repository's worktrees held 104 GB, the walk went through all of it looking for a folder called `DerivedData`, and the report came back with 11 GB. The shape decides now, not the name: Xcode writes `Build` beside its `.noindex` caches, SwiftPM a `build.db` beside its manifest, and an ordinary directory costs one extra stat. On the same machine it then found a 4 GB `build` directory the name list had never matched.
- **Two gates were red and nothing read them.** `lint-host-literals` and the skills index both sit after the smoke suites in `npm test`, so a smoke failure meant they never ran: three test files enumerated host ids past the ratchet and the shared skills README described a command by its old wording. The test fixtures now take their hosts from the registry, which also made one of them cover the third install-fed host, and the ratchet is exact.

### Changed

- **`run-smokes.mjs` can be imported.** Its budget table and resolver are exported and the run itself sits behind an entry-point check, so what a suite's budget resolves to is a unit test rather than a sleep.

## [24.2.0] - 2026-11-18

### Added

- **`/multi-agent:version`** reports the three repositories of the ecosystem in one table, by name: `multi-agent-pipeline`, `multi-agent-mcp` and `multi-agent-plugins`, each with the version in use, the latest one upstream, its release date, the date it landed here and a verdict. They ship separately, so "am I up to date" has three answers, and the one that is behind is usually not the one the question was about. `current` requires an upstream read in the same run, so offline every npm row is `unknown` with its reason rather than a stale reassurance; a marketplace clone is compared by ancestry, so a commit fetched but never merged reads as behind rather than ahead. Drift between local parts - a host on another version, a version marker that does not read, a toolkit older than the one the release was built against, a plugin enabled but not installed, a server registration pinned to one version - is reported as a note, never as a verdict. Reads only: no cache file, no npm invocation, no upgrade, and a registration whose spec is a URL is never echoed, because such a URL carries a token. `--json` carries the whole document (`schemas/version-report.schema.json`), and the office panel runs it like `doctor` and `health`.

### Fixed

- **A machine without Claude Code reported itself as having no install.** `/multi-agent:health` read one fixed host tree, so a Copilot CLI-only or Local LLM-only machine was told the pipeline was not installed, and a version difference on the fourth host was never reported. Host versions now come from the registry (`schemas/hosts.json`), every installed host is compared against the first one, and each is named by its label.
- **A bug report from the fourth host carried no version.** `/multi-agent:feedback` looked for the version marker in three host trees and reported `unknown` from the local host; it now reads the registry's hosts.

### Changed

- **24.2.0 is the supported-version floor.** The registry's `required` dist-tag points at it, so an install below it halts at Phase 0 and asks for `/multi-agent:update` instead of starting a run on a version that is no longer supported. `/multi-agent:version` reports that state as `below-floor`, with the reason, rather than as a plain "behind".
- The lookup that finds which copy of the MCP server a host would run moved into `lib/toolkit-install.mjs`, so the health report and the version report answer from the same code. A registration's `env` is not read by either: a credential kept there cannot reach a report.

## [24.1.1] - 2026-11-18

### Changed

- **The fourth host is called Local LLM.** "Local model" said the same word twice next to three columns that are also models, and the thing that makes it different is where it runs. The label is the registry's (`schemas/hosts.json`), so the generated tables, `docs/facts.json` and the host rows in both READMEs follow it. The id `local`, the `--local` flag and the `~/.codex-local` root are unchanged, so nothing installed has to move.

### Fixed

- **The review panel's reviewer count left out the fourth host.** It named Claude Code, Copilot CLI and Codex CLI; the local host runs one reviewer on the model it serves, and now says so.

## [24.1.0] - 2026-11-17

### Added

- **A phase says what it is doing, on every host.** `schemas/now-lines.json` is the canonical set of current-action lines, 67 of them across the six phases, each within 60 characters, and `multi-agent-refs/tracker-contract.md` carries the `phase-tracker.sh now <id>` call for every phase in one table rather than a copy per phase document. The line reaches the native task widget's subject, the ASCII card's `Now:` row and the office's phase card from the one record that already existed; a phase that moved without writing a line falls back to the name of its own step in progress, so no surface goes blank. `scripts/lint-now-lines.mjs` holds the two halves to each other: every phase has lines, the names match `schemas/phases.json`, nothing is over the cap, and the contract has a call row naming each phase and its id - a row, not a loose mention, because the document also carries a worked example with a phase id in it.

- **Model, elapsed time, tokens, cost and step count on the progress widget.** `phase-tracker.sh subjects` composes a subject of at most 96 characters in a fixed drop order - cost first, then the action, then tokens - with a floor that keeps a truncated action readable instead of cutting it to nothing, and `render` gains a model column on the card. A working phase reads, in one line, which model is spending, for how long, how many tokens, roughly how much, which step of how many, and what it is doing right now.

- **A plain closing summary.** `scripts/render-work-summary.sh --format terminal` prints what changed, what was checked, what was delivered and what is left for you, as text rather than a report body, and Phase 5 calls it at the end of every run.

### Changed

- **The office shows what the terminal shows.** Each `phaseHistory` entry in the activity document now carries the phase's model, its current action, its own token spend and its sub-steps with their states, and the panel renders them under the phase. Client contract 2.4.0: `runs-index` 1.6.0 gives each phase its own `tokens`, and `activity` 1.5.0 the four new fields. Previously the page could name the phase and nothing else, which is the one thing a reader already knows.

- **`now` is the single write on every host.** The tracker contract asked Claude Code for `TaskUpdate({activeForm})` and the other three hosts for nothing, so three of four hosts had no way to record an action at all. Every host writes `now`; Claude Code additionally mirrors it to `activeForm`.

- **A Jira analysis comment points at the Confluence page when both are chosen.** The comment carries the lead and the exported page's URL instead of repeating the whole document in two places; Confluence is written first so the URL exists, and a failed Confluence write falls back to the full document in the comment.

### Fixed

- **A scratch file could be published, because the gate filtered it out instead of refusing it.** `smoke-doctor` writes a mutated copy of `doctor.mjs` beside the original for the length of its run; `smoke-pack-contents` removed that path from the packed list before comparing it, so a copy left behind by an interrupted run was invisible to every check and shipped inside 24.0.0's tarball. The pattern is now a `files` negation, so npm cannot pack it at all; the smoke asserts its absence instead of filtering it; `smoke-doctor` sweeps a sibling left by an earlier run, which is the only cleanup that survives being killed; and `files` negations that guard a git-ignored path no longer count as inert, since being absent is their normal state. The install fingerprint drops to 413 scripts, the number without the leftover.

## [24.0.0] - 2026-11-16

### Added

- **A host registry, and a fourth host.** `schemas/hosts.json` (with its schema) is the single place a host is described: its install flag and root, the subtrees it installs, where its sub-command specs live and under what prefix, its path-rewrite rules, its model rung table, its review panel, its dispatch mechanism, its price ceiling and its headless argv. `lib/host.mjs`, `lib/host.sh`, `lib/model-resolve.mjs`, `lib/reviewer-families.mjs` and `scripts/gen-host-tables.mjs` all read it, so a host is added by describing it rather than by editing the places that branch on one.
- **`--local`: a model served from your own machine.** Host id `local`, root `.codex-local`, Codex CLI as the engine, all four rungs collapsed onto one model, a review panel of one, concurrency 1, network `optional`, price 0. `lib/local-model.mjs` validates the endpoint, `/multi-agent:doctor` gains a `local-model` check, and `prefs.global.localModel.baseUrl` is loopback-only unless `allowRemote` says otherwise. The requirement is a server that implements the Responses API (`POST /v1/responses`), not any OpenAI-compatible one: Ollama 0.13.4+ qualifies, and LM Studio and generic servers were not measured. An end-to-end run against a real local model has not been recorded.
- **Service accounts.** `prefs.global.serviceAccounts[]` carries, per entry, a service, a scope saying where that credential may be sent, and `secrets` mapping each slot to a credential-store item name. `lib/service-account.mjs` is the only module that decides a destination, `lib/service-account.sh` is its shell front door and `lib/_service-account.sh` is what a fetcher sources. Two rules hold everywhere: a secret is never produced without a destination checked against the account holding it, and a file carrying no `serviceAccounts[]` resolves identically, because the same entries are derived in memory from the flat keys.
- **`scripts/lint-credential-reads.mjs`**: a per-file ratchet over every line that reads a credential name, a host or the store directly. It cannot go up.
- **A picker for a bare invocation.** `/multi-agent` and `/multi-agent:analysis` typed with nothing after them now ask for their parameters instead of printing the guide. `scripts/entry-mode.mjs` decides between `typed`, `picker`, `usage` and `refuse-unattended`, and `multi-agent-refs/_entry-picker.md` is the one page both hosts act on. Every typed form, and autopilot, route exactly as before.
- **An unattended queue for `/multi-agent:analysis`.** Per-repo `analysisQueue`, `analysisGithubLabel` and `analysisJiraLabel` (offered as `agent-analysis`), a history key of its own so the same ticket can be analysed and later developed, the terminal outcome `doc-delivered`, and the `analysis-autopilot` mode in `schemas/phases.json` and `schemas/launch.json`. A repo is enrolled by saying yes, never by leaving a label unset. A label that collides with the repo's development label is refused. `scripts/analysis-unattended.mjs` derives each intake answer from the item, the repo and preferences, and parks with the question and its fix where nothing can be derived rather than guessing.

### Changed

- **A credential and its destination are now one decision.** Every fetcher that used to read `keychainMapping` and `hosts` separately asks the resolver instead: the Jira family, Confluence, Fortify, both Figma fetchers, Jira attachments, Graylog, Crashlytics, the Bitbucket PR reviewer, Vercel, the Figma MCP refresh, the arming check and the Node readers. A shell caller receives a curl config that carries the URL and the credential together, with the scheme locked and redirects refused, so the credential no longer reaches a shell variable, argv or a trace. `lib/credential-resolve.mjs`, which looked the three halves up without joining them, is gone.
- **A host is matched exactly.** A subdomain of a configured host, and an environment override naming another host, are refused rather than allowed. Both used to resolve, and both are a credential reaching a host nobody named. A credential supplied through the environment together with its own `*_HOST` variable is still one statement about one instance and still resolves.
- **Jira authentication no longer involves jq.** `_jira-auth.sh` and `jira-publish.sh` build a per-call curl config, so the exit code 3 that meant "a value had to come from preferences and jq is not installed" can no longer happen.

### Fixed

- **Sub-steps are back on the progress widget, and they are the phase set's property now.** Every phase declares its sub-steps in `schemas/phases.json` (`steps`) and `phase-tracker.sh add` registers them, so a run reaches its first boundary with `0.1 Intake`, `0.2 Workspace`, `0.3 Task contract` under Phase 0 and the same under Plan, Review, Commit and Report. Dev declares none: its sub-steps are Phase 1's plan tasks, which `plan` attaches. The trackers of finished runs are what made the call: every phase but a Dev with an attached plan held an empty `subs`, because a step a phase had to announce before it existed only appeared when the model remembered the call.

  Three places were dropping the rows even once they existed. `tiles` built the Codex `update_plan` payload from the phase list alone, so sub-steps never reached that host at all; the per-phase `subjects <id>` read returned the phase row plus its sub rows into a single `TaskUpdate` subject; and `sub` changed the state file and the card without printing the host's mirror call, so a moved step moved nowhere the user could see. The Codex payload now carries every row with its own status, `subjects <id>` is one line because a tile subject is one string, and `sub` prints the same `-- NEXT (required) --` block `update` does.

  The number rides inside the row text (`  3.2 Review panel`), which is where it has to be: the widget renders one string per row and no field beside it. `tiles` asks for a rebuild only when rows arrive after the list exists, which is the plan attach and nothing else - `tiles --rebuild`, which `plan` now calls through the `tiles` action so each host is told in its own calls rather than handed Claude Code's.

- **A configured account kept its host but lost its port and its scheme.** An account derived from the flat keys stored a bare hostname, so `hosts.jira = "http://127.0.0.1:9"` came back as `https://127.0.0.1`: another port, another scheme, and a request nobody meant to send. The origin is now taken from the entry whose host is that account's, so a second account of the same service never inherits the first one's port.

- **A refusal was lost in the subshell that produced it.** The shell helper kept the resolver's refusal in a variable, and every caller reads it through a command substitution, which is a subshell. The caller therefore saw nothing and reported whatever its own default branch said, so "this host is not one this account may be sent to" was printed as "no token". The refusal is written to a file the parent can read, and a regression test calls the helper the way a fetcher actually does.

- **The local host could be installed but not removed.** `uninstall.mjs` knew three hosts, so `~/.codex-local` survived every form of the command, `--all` included. The Codex removal is now one body with two roots, `--local` is a target of its own, and the MCP entry is handed back under the `CODEX_HOME` the installer wrote it with instead of the default one. Three tests cover the targeting: each flag removes its own tree and leaves the other standing, and `--all` removes both.

- **The installer's help listed three hosts.** `--local` was accepted and `--all` already installed it, but neither appeared in `--help`. The host lines are rendered from the registry now, so a host that exists cannot go unlisted.

- **A smoke could run in the checkout that invoked it.** `mktemp -d` returns an empty string when it fails, and an empty value is not an error where it is consumed: `cd ""` is a no-op that succeeds and `git -C ""` means the current directory. Three smokes therefore wrote fixtures, committed and deleted in whatever repository was running them. Each now proves the directory exists before entering it, and `scripts/lint-temp-guards.mjs` fails the suite when a new one does not.

- **The uninstaller named its hosts in its own text.** Its flag list, its "name a host" line and the local host's root and label are read from the registry now, so the retired-flag message lists every flag that exists rather than the three it was written with.

- **The credential inventory looked for its helpers in three host trees.** The service-account helper and the credential store are discovered across all four, so a machine carrying only the local host finds them by the same path as any other.

## [23.7.0] - 2026-11-13

### Added

- `/multi-agent:review-rounds`: how many times review may send work back to development before the run stops, 1 to 3. With no argument it shows the effective value and its source and asks with a picker (2 rounds recommended, 3 rounds, 1 round); `status` prints, `1`, `2` or `3` sets it globally, `--repo` scopes it to the current repository, `reset` removes the override. Unattended runs never open the picker. The office lists it as a terminal command until its settings window carries the switch.
- `/multi-agent "task" --review-rounds N`: the limit for one run, stored as `state.reviewRounds`.
- `scripts/review-rounds.mjs`: the one resolver every reader of the limit goes through (`get`, `set`, `reset`, `parse`, `record`). Precedence: run flag, `prefs.projects.<slug>.maxReworkCycles`, `prefs.global.review.maxReworkCycles`, default. A stored value outside 1 to 3 is ignored and reported.
- `docs/facts.json` carries `reworkDefault` beside `reworkCap`.

### Changed

- The default review rework limit is 2, down from 3. A run that never set the preference now allows two rework rounds before the Phase 2 hard-kill ruling applies; `/multi-agent:review-rounds 3` or `/multi-agent "task" --review-rounds 3` restores three. The ceiling stays 3 (the Phase 2 `retryCount` cap). An explicit stored value is kept as it is; nothing is migrated.
- With limit N, review sends work back to development N times, every rework is reviewed again, and the run stops when a review still has accepted findings after N reworks (N reworks, at most N + 1 reviews). The decision moved to Phase 3 Step 4: `review-rounds.mjs next` answers `rework` (and records it) or `rule`, which runs `rework-rulings.mjs` on the current triage. Phase 2 re-entry no longer counts or compares anything.
- `review-rounds.mjs next` is idempotent per review iteration: it records `phases["2"].reworkForIteration` with the increment, answers `rework` again without counting twice, and resume re-enters a decided, unfinished rework instead of deciding again.
- Reworks are counted in `state.phases["2"].reworkCount` (integer 0 to 3, validated); `retryCount` counts build and component-dispatch retries only, with its own cap of 3.
- The rework-escalation script and the autopilot circuit-breaker read the same resolver. In an autopilot run `prefs.global.autopilotCircuitBreaker.maxReworkCycles`, when set and the breaker is enabled, lowers the limit (source `breaker`); it has no default and never raises it. The limit itself is `prefs.global.review.maxReworkCycles` (default 2).
- The per-repo key is the repository's folder name as is (no normalisation), the same value as `state.project`, on the command side and the run side. `--repo` outside a repository, or with a key it cannot resolve, or `--project` without `--repo`, exits 2 and writes nothing. A repeated `--review-rounds` flag is refused.

## [23.6.0] - 2026-11-13

### Added

- The `ink-animation` skill (ai-common-toolkit): a hand-inked procedural line animation from a scene description, as one animated SVG or HTML file or an MP4, driven by the toolkit's `media_ink_plan`, `media_ink_check` and `media_ink_render`. It is routed to the common plugin like the other cross-stack knowledge skills.
- Toolkit 4.5.0 tool surface, 267 tools: the three `media_ink_*` tools and six `vphone_*` tools (`vphone_list_apps`, `vphone_launch_app`, `vphone_open_url`, `vphone_tap_element`, `vphone_type_element`, `vphone_wait_for`). The path-parameter table, the usage name list and the tool lists in `outside-the-pipeline.md` and `docs/ecosystem.md` carry them.

### Changed

- A health section that is built from several parts reports one specific reason id to usage reporting: the id of the part that decides the section's colour (`services.refused`, `install.behind`, `sessions.open`, `autopilot.waiting`, `disk.prune` and so on), where it used to report the generic join id. `usage-health.mjs` keeps only an id from the health message catalogue and reports `other` for anything else.
- The recorded toolkit is 4.5.0 with 267 tools in 25 families, and the plugin marketplace carries 270 skills.

## [23.5.0] - 2026-11-11

### Added

- `mcp-health.mjs` and `GET /v1/mcp-health` (client contract 2.3.0, local only): per MCP server and tool over the last seven days, the calls, the server-side failures and the minute of the last failure, from the local failure log (`mcp-failures.jsonl`, with its previous generation) and the call counter (`mcp-calls.json` plus the lines `mcp-calls.log` has not folded yet). A server is named only from the shipped public list (any other is `private`) and a tool only from the shipped tool list of this product's server (any other is `other`); files are read through the bounded regular-file reader, never through a link, and a file over the size cap is named in `skipped`. The office server room shows the result as an MCP servers table, in English and Turkish.
- The audit line of a phone request (`remote/audit.jsonl`) carries `run`: the run's opaque handle for a verb about one run, and only a handle the executor issued to that device, never the run id.
- `design-check-config.mjs` checks the user's `design-check-config.json` against `design-check-config.schema.json` before `/multi-agent:design-check` reads it (step 3b of its Phase 0), naming every bad key by its dotted path and never echoing a value. A missing file is valid.
- `lint-unused-exports.mjs --baseline <file>` fails only on an exported symbol that is unused and not in the baseline, `--write-baseline <file>` writes the current set; `npm test` runs it against `fixtures/unused-exports-baseline.txt`.
- `lint-phase-labels.mjs` checks an "Agent definitions (used in Phase N and Phase M)" lead against the phases the listed agent files declare.

### Changed

- README and README.tr no longer say the office has no phone pairing; they say the office opens no port and point at the opt-in phone control below. `SECURITY.md` lists the telemetry field categories that are sent and the ones that never are. `features/verify.md` is linked from the README.
- `dispatcher.md` names Phase 1 and Phase 3 for the agent definitions.
- The recorded toolkit is 4.4.0 with 258 tools: `binary_analyse` is opt-in there (`MCP_TOOLKIT_CAPS` must include `binary-analyse`), so the tool count, the path-parameter table and the usage name list no longer carry it.

### Fixed

- `stack-detect.sh` finds a manifest below the repository root when the repository has no submodules and the caller runs under `set -u` on bash 3.2: the empty submodule prune list is expanded safely, where it used to end the search with an unbound-variable error and report no stack.

### Removed

- The skill rename mechanism: `skills/renamed.json` (23 retired entries, due at 21.0.0), `_renamed-skills.mjs`, the alias skills it wrote into the plugins and the Copilot and Codex copies, and the lint checks that read it. The plugin build writes no alias skill and removes any left in a plugin; the upstream overlap gate pairs a skill with an upstream skill of another name only through the `upstreamCorpusAliases` preference, and still compares every shipped file by content against the corpus.
- The tracked `out.txt` at the repository root.

## [23.4.0] - 2026-11-11

### Changed

- `reverse-engineer-own-app` points the store cross-check at `ios_app_store_audit` only; `ios-coding-standard` no longer ships a structure checker its skill never called.
- The free-model provider table lists the toolkit's local OpenAI-compatible provider.
- The leak gates no longer spell private names in the repository. `smoke-personal-data.sh` and `smoke-install-leak-gate.sh` read names that identify a person, an employer or a project from a private deny-list outside the repo (`$MA_LEAK_DENYLIST`, else `~/.config/multi-agent-mcp/leak-denylist.txt`; lines `re:`, `re-case:` and `id:`, the same file and format the toolkit reads), loaded by `pipeline/scripts/_leak-denylist.sh`. Without the list the run prints `skipped: private deny-list not installed` and checks the structural shapes only; `--strict` (or `MA_LEAK_STRICT=1`, set by the pre-push gate) fails instead, and an unusable list always fails. A hit is reported as `path:line` and the deny-list entry's line number, never the pattern or the matched text; the tarball step does the same through `leak_scan_paths`. The loader strips trailing whitespace from an entry, rejects an empty one and warns when the list is readable by group or others. A structural pass flags e-mail addresses, `user:password` URLs, `/Users/` and `/home/` directories and ticket URLs that are not placeholders, also without a list, and the tarball step runs it too. In `--root` mode on an install sandbox only the trees the installer owns (the top-level directories of `install-layout.tsv`) are scanned, not other programs' caches. `smoke-install-leak-gate.sh` sets `MULTI_AGENT_SKIP_MCP_REGISTER=1`, because the registration step ran the real Copilot CLI against the sandbox home and that CLI unpacked its own 119 MB package there. `run-smokes.mjs` hands the real list to isolated suites and repeats every `skipped:` line a suite printed (count and names) in its summary.
- The release workflow writes the list from the `LEAK_DENYLIST` repository secret to a temp file at run time and fails when the secret is missing; `publish-staged.mjs` runs `smoke-personal-data.sh --strict` in the package directory before it packs (or the command of `--leak-gate`), and `package.json` gets `prepublishOnly` with the same strict gate.
- Phase numbers in prose follow `pipeline/schemas/phases.json`: reviewers, the review panel and triage belong to Phase 3, the dev critic to Phase 2.5, in the dev-critic, model-fallback, review, diff-explain and cost-summary docs and `docs/engineering.md`. `lint-phase-labels.mjs` (run by `smoke-phase-labels.sh`) fails when a role is written beside the wrong phase number, in either word order, with any spacing and in Turkish (`Faz N`); the roles per phase are the `roles` lists in `phases.json`, and a role listed under two phases (the critic) is valid beside either.
- ROADMAP.md describes the present state, drops two dangling references and the process note about the old header, and states the model-selection non-goal in terms of the rungs, the fable switch and rule routing that exist and the 21.x - 23.x lines instead of a v16 candidate list; the opt-in telemetry idea is dropped because operational reporting is not opt-in.
- `docs/adr/0008` describes the current CI workflows, and `docs/performance.md` shows model ids from `cost-table.json` and no longer claims nothing leaves the machine.
- `prefs.schema.json` drops the `gitIdentities` key; `migrate-prefs.mjs` still removes it from an old preferences file. `global.office.remote` stays declared as deprecated so an un-migrated preferences file validates, and `migrate-prefs.mjs` removes it. The other deprecated keys stay because a runtime fallback or a gate still reads them.
- `publish-staged.mjs` and `identifier-scan.mjs` (moved from `lib/` to `scripts/`) are maintainer tools and are left out of the installed scripts and the npm package.

### Added

- `lint-unused-exports.mjs`: reports exported symbols that no other source file uses (tests and docs do not count as callers). Symbols a test imports are left out unless `--include-tested` is given, so the default report is the symbols nothing references. Advisory by default, `--strict` exits 1, `--list` prints them, `fixtures/unused-exports-allow.txt` lists public entry points when it exists.
- `gen-access-check.mjs` writes the Access check block of the 26 command files that carry it from `fixtures/access-check-blocks.json` (six variants); `--check` is in the test chain and fails on a hand edit or an unlisted copy.
- `validate-schemas.mjs` validates `schemas/examples/<name>.json` against `<name>.schema.json`; `design-check-config.schema.json` gets a worked example and a test.
- `test/codex-model-tables.test.mjs` holds the Codex tier table in `model-fallback.md` to `CODEX_TIER_MAP` and the Codex review panel to one reading across `phase-3-review.md` and `review/panel.md`.
- `features/cost-analysis.md` is linked from `/multi-agent:status`.
- `/multi-agent:pair` (phone control, off by default): pairs a phone through a QR code and a fallback code, and `--list`, `--revoke <device>`, `--off`, `--start` and `--status` manage the pairings. A paired phone can list runs, read a run's status and pending question, answer with one of the offered options and stop a run's session; nothing else is reachable and `start_run` is declared but refused. Nothing runs until the site enables the feature for the account and a phone is paired. The computer opens no port, only polls the site over HTTPS, and re-verifies every request against a passkey pinned at pairing. Details: `features/remote-control.md`.
- The run identifier in usage reports is a keyed digest: `r` plus 16 hex characters, an HMAC-SHA256 of the run id under a per-install secret kept owner-only in `usage-run-key`. The same machine and run always give the same value, so the events of one run join, and the raw id stays in the local logs. When the secret cannot be read or created the send is skipped and `usage-last-send.json` records reason `run-key-unavailable`.
- Typed-command counter: a `UserPromptSubmit` hook (`note-command-use.sh`) counts which `/multi-agent` commands are typed, by shipped name only (anything else counts as `other`), and the usage report carries the counts as `cmds` with a batch id `cb` so a resend is never added twice. Counting follows `usageLog.enabled` and `usageLog.optOut` and stores no arguments or prompt text.
- Opt-in session brief (`sessionBrief` in the preferences, `session-brief.sh` on `SessionStart` for Claude Code): an index of the repository's learnings ledger, one line about its code graph, the skill indexes of the enabled toolkits and, as a separate setting, a few working notes. Off until `enabled` is true, silent in unattended and pipeline contexts, and `MULTI_AGENT_SESSION_BRIEF=0` turns it off for one process.
- Code graph sidecars. The main graph file stays schema 1.2.0 with the same node and edge kinds as before and validates under the previous validator; capabilities that add nodes or edges live in files beside it, each with its own schema and version, a record of the graph it was built against, node and edge caps with a `truncated` marker, and a staleness check: `<graph>.calls.json` (built by default, `--no-calls` to skip), `<graph>.docs.json` (`--docs`) and `<graph>.infra.json` (`--infra`). `code-graph.config.json` beside the graph sets the layers per repo; a flag wins. `graph-query`, `graph-affected`, `graph-report`, `graph-export` and `graph-hint` join the sidecars that are present and say when one is absent, stale, built against another graph, invalid or truncated. Call edges never count toward degree, so hubs stay structural.
- Call edges (calls sidecar): `calls` edges from the function that contains a call to the function, method or type it reaches, resolved without a language server for Swift, Kotlin, TypeScript and JavaScript, Python, Go, Rust, Java, C#, C and C++. Each edge records how it was derived (`via`) and a `confidence`: `high` when a binding was resolved, `medium` for inference, `low` for a name and argument count only. A name imported from outside the repo produces no edge. A call through a protocol, interface or overridden method also reaches each implementer. `eval-call-edges.mjs` measures precision and recall on nine hand-checked cases and runs in `npm test`. Hand-classified samples of 40 `high` edges per tree found 37 of 37, 39 of 39 and 34 of 35 correct (JavaScript, TypeScript, Swift) and 7 of 8, 6 of 8 and 5 of 8 on `low`; the Swift error class (a bare name resolved to a nested type or to a repository type with a platform name) is now zero. `low` is an unresolved binding, often right in script-style code and a lead elsewhere. Python, Go, Rust, Java, C#, C++ and Kotlin precision is fixture-verified only. See `features/code-graph.md`.
- Stacks `rust`, `java`, `csharp` and `cpp` for `graph-build` (rules under `code-graph-rules/` and `test-gap-rules/`).
- `graph-query --callers <fn>` and `--callees <fn>` (depth up to 15, `--min-confidence`), a confidence per hop and a weakest-hop line on `--path` (the stronger of two equal-length routes wins), `--seed` to start a walk at named nodes, `--include` to rank documentation, rationale, infrastructure and configuration nodes.
- Infrastructure, configuration, dependency, documentation and rationale nodes (infra and docs sidecars): Dockerfile, Compose, Kubernetes, Helm, Kustomize, Terraform, Terragrunt, GitHub Actions and GitLab CI, `.env`, Gradle, application config, dependency manifests, Markdown and AsciiDoc sections, and NOTE / WHY / ADR comments, with `sets`, `uses`, `builds`, `runs`, `reads`, `mentions` and `explains` edges. Code that reads an environment variable or key by a literal name reaches its definition through one `env:` or `config:` node. Names only; values are never stored.
- `graph-export.mjs` writes the graph as Graphviz, GraphML, CSV or a Mermaid flowchart, with a module-level architecture view. CSV cells that start like a formula are neutralised and labels are escaped per format.
- `graph-report` lists the most-called functions with their span, functions nothing calls (candidates, with the blind spots named), and environment variables read but never set or set but never read.
- `graph-affected` reports files added since the build (`freshness.addedFiles`), and follows callers of a function seed. `graph-hint` names up to three graph nodes with the searched name.
- The free-text `graph-query` walk and the tier sections leave `calls` edges and non-code nodes out unless asked, so ranking is unchanged.
- Call edges of low confidence are leads. `graph-query --callers`, `--callees` and `--path`, `graph-export` and the report's most-called table read edges of medium confidence and better by default; `--min-confidence low` adds the leads, labelled. `graph-affected` never follows a low edge, prints each row's confidence and `via`, and marks a dependent reached only through medium edges, so `analysis.touchedAreas[]` can list those as unconfirmed. `graph-export` carries the weakest confidence of each arrow into CSV, GraphML, DOT and Mermaid.
- Name scope for call edges: a type nested in another type is reached by its bare name only from inside the outer type or an extension of it, or written qualified; names the platform owns (`URL`, `Date`, `Timeline`, `print`, `Map`, ...) bind to a repository declaration only when it is in lexical scope; in Swift a declaration in another build target is `low` unless the caller's target can see it. JavaScript and TypeScript arity ranks and never rejects; nested functions are hoisted and visible to closures; re-exports are followed; calls in default parameter values and destructuring defaults are read.
- The main graph also changes on a tree that holds strings or templates, because string and template handling was fixed: symbols and references built from text inside a string disappear, real ones appear, and a multi-line constant gets a correct end line. On this repository 31 such symbol nodes and 112 edges disappeared, 3 nodes and 7 edges appeared and 62 spans changed their end line. Degrees follow.
- A function node's id is its qualified name, with the parameter labels of an overload and a numeral for a true duplicate, so it no longer changes when lines above it move.
- The calls schema and validator refuse a `certain` confidence; the validator fails a sidecar whose `parent` does not match the main graph it is validated with. The module view of `graph-export` descends a directory level when everything lives under one directory, and call resolution has its own time budget.
- The code-graph string and comment stripper is dialect-driven: nested block comments (Swift, Kotlin, Rust), Swift and Rust raw strings, C++ raw strings, JavaScript regular-expression literals and nested template literals, and calls inside string interpolation are handled; `#if` / `#else` branches each keep their own bracket state.
- `validate-code-graph.mjs` validates a graph together with its sidecars, caps its error output, and rejects a kind newer than the declared schema version.
- The documentation and configuration extractors read only regular files inside the repo root, run every pattern in linear time, and keep YAML maps without a prototype; each file and each collection has a time budget, and what was skipped is listed under `coverage`.

### Removed

- `docs/FIGMA_PIPELINE.md`, a guide to a retired skill catalog (the current flow is `rules/figma-pipeline.md` and the stack plugins).
- The legacy wiki prompt flow in `wiki-capture.md` and the version stub in the analysis intake ref.

## [23.3.0] - 2026-11-10

### Changed

- The `fable` rung resolves to Claude Fable 5.2 (`claude-fable-5-2`) on Claude Code, priced in `cost-table.json` at 8 in / 40 out / 0.20 cache-read per million tokens. `claude-fable-5-1` moves to the `legacy` price map, so transcripts that name it keep their own rate, and joins the superseded-ID list `smoke-model-fallback.sh` checks the shipped tree against. The switch is unchanged: with `modelFallback.fableEnabled` false, every `preferredModel: fable` persona dispatches the opus rung.

## [23.2.0] - 2026-11-09

### Added

- `routine-share.mjs share --mask-hosts` (`/multi-agent:routines-share <name> --mask-hosts` or `--all --mask-hosts`) shares a routine whose only scan findings are internal hostnames: the shared copy replaces every hostname the `internal-host` rule flags (internal suffixes, `prefs.global.hosts`, `MULTI_AGENT_ROUTINE_DENY_HOSTS`) with `internal-host.invalid` before the scan runs, keeping scheme, user part, port and path, and its `sha256` is computed over the masked body. The saved routine is not touched. Each result reports `masked: N` (the dry run too), never the host text; any other finding still refuses the routine. The scan library exports `maskDeniedHosts(text, denyHosts)` (`{text, count}`) and `maskedHostsIn(payload)`. When the scan finds only hosts, routines-share offers masking instead of stopping.
- `fetch`, `import`, `diff` and `update` report `placeholders` and `placeholderLines` (`{field, line, count}`) for a masked routine, and routines-import / routines-update point the user at those lines to fill in their own host and offer to open the local SKILL.md; nothing fills a host in. A masked routine's shared `sha256` differs from the publisher's local one; nothing compares the two, and an importer who fills the placeholder in is treated as having edited the routine, so `update` asks before replacing it and keeps the backup.
- Usage events carry an optional `health` summary (`{generatedAt, overall, items: [{id, status, reason}]}`), one item per `health-report.mjs` section, so the panel can show each machine's state. `usage-health.mjs` keeps it in `~/.claude/logs/multi-agent/usage-health.json` for 30 minutes and refreshes it in a detached process (no `--probe`, no network). The refresh lock (`usage-health.json.lock`) is created exclusively and holds an owner token passed to the refresher; a lock older than 3 minutes is taken over, and a refresher that finds a fresh lock with another token exits at once. An event waits only when it starts the refresh, at most 5 seconds, and otherwise goes out without the field; an event that finds the lock held sends immediately without it. Reasons render in `outputLanguage`, are cut to 200 characters, and have the home directory (as a whole path component) replaced by `~`, other absolute paths by `[path]` and token-shaped text and email addresses by `[redacted]`; the cache is filtered again when read. A failed refresh rewrites its lock, so it is retried at most every 3 minutes. `MULTI_AGENT_USAGE_HEALTH=cache` uses the cache only, `off` never sends the field.

## [23.1.0] - 2026-11-09

### Added

- `disk-cleaner` 1.2.0, the script behind `/multi-agent:clean-disk`: `sim-device-caches` clears each shut-down simulator device's own `data/Library/Caches` (a booted device is kept, and checked again right before deleting; app containers and the device stay), and `sim-runtimes` deletes simulator runtimes through `xcrun simctl runtime delete`, sized from simctl, keeping the newest runtime per platform, any runtime backing a booted device, one not deletable, one with no recorded use and one used within `--runtime-days` (default 30). `sim-runtimes` is never in the unattended set.
- The report measures what it held back: `held` per category and in total (items, bytes, how many only age holds and their bytes, how many are in use), with a text line naming `--include-recent`. `--include-recent` drops the touched-recently guard of `repo-build`, `xctest-devices` and `tmp-builds` for one run; items in use stay held, session scratch touched within `--scratch-hours` stays held as live because it may belong to another open session, and unattended runs ignore the flag. A simulator device in any state other than `Shutdown` counts as running. `/multi-agent:clean-disk` shows the held space and asks on its own, keep first, before passing it.
- `--depth=N` (or `DISK_CLEANER_DEPTH`) sets how deep dev roots are searched (default 8), and `--exclude=PATH` (repeatable, or colon-separated `DISK_CLEANER_EXCLUDE`) keeps a path and any candidate holding it out of a run. A leading `~/` is expanded against the home, both sides are compared by their on-disk real path, and an exclude that does not exist is a usage error (exit 2).
- `unreadable` in the report counts the folders the scan could not read (permission denied), so an incomplete scan no longer reads as a clean disk.
- `/multi-agent:routines-share --all` (`routine-share.mjs share --all --visibility private [--dry-run]`) publishes every routine saved on this machine privately in one run: one dry run, one preview of every name, one publish / cancel question. It skips imported routines, every name this login already published (read from `GET /api/routines`, so a bulk run never narrows a routine shared wider or creates a new version), and every routine with a payload problem or secret-scan findings, and names each with its reason; the rest continue. At the first `429` it stops (`error: "rate-limited"`) and reports what it published, the rest `not-attempted`; a failed publish is named (`error: "partial"`) without stopping the others. The report has one row per name (`published`, `skipped`, `failed`, `would-publish`, `not-attempted`) and `counts`. Unattended runs are refused (exit 3) as for a single share.
- Usage events carry `services`: at most 40 `{name, kind, connected}` rows naming the apps the machine is connected to, so the site can show them per machine. `token` rows are the logical keys of `keychainMapping` (connected while mapped and the last `serviceStatus` check did not fail); `mcp` rows are the MCP server names registered with Claude Code (`~/.claude.json`, user and project scope, deduplicated) and Copilot CLI (`~/.copilot/mcp-config.json`). Only names are sent, never a credential value, a server config or a path, and a missing or unreadable config adds nothing.

### Changed

- `tmp-builds` also takes a temp folder of any name that is shaped like DerivedData or SwiftPM output (`ModuleCache.noindex`; `Build`, `Logs` and `info.plist` together; or `build.db` with `workspace-state.json` or `checkouts`, names compared case-sensitively), with the same owner, age and in-use guards as `dd-*`.
- A dev-root walk never enters `~/Library`, the Trash, `~/Applications`, a media library or a protected home folder, so `--root` can point at a broad folder.
- `xcode-caches` also clears `DocumentationIndex`. Simulator items in the report carry the device name.
- The disk-clean contract schemas list the two new category ids.

## [23.0.0] - 2026-11-09

### Changed

- **Breaking:** `/multi-agent:routines delete <id>` no longer withdraws a routine; it prints the command to type, `/multi-agent:routines-delete <id>` (Copilot CLI and Codex CLI `/multi-agent-routines-delete <id>`).
- Routine sharing is five commands, one per action, the same shape as `autopilot-on`, `autopilot-off` and `autopilot-status`: `/multi-agent:routines-share <name>`, `/multi-agent:routines-browse [query]`, `/multi-agent:routines-import <id>`, `/multi-agent:routines-update` and `/multi-agent:routines-delete <id>` (Copilot CLI `/multi-agent-routines-share` and the rest; Codex CLI `multi-agent routines-share` and the rest via the router skill, with `routines-delete` as its own `/multi-agent-routines-delete` prompt). Each runs the access check first and then its flow in `routine-sharing.md`, which is unchanged. `/multi-agent:routines` only lists saved routines; a sharing word typed after it (`share`, `browse`, `import`, `update`, `delete`) names the command it moved to and continues there; `delete` only prints the `routines-delete` command to type, because a withdrawal runs only when the user types it. `routines-delete` is declared destructive with a required confirmation.
- User-only commands (the ten whose Claude Code command sets `disable-model-invocation: true`: `clean-disk`, `forget`, `garbage-collect`, `kill`, `prune-logs`, `prune-prompts`, `purge`, `review-priority`, `routines-delete`, `uninstall`) are reached only by the user typing them on every host. The dispatcher no longer reads or runs one: its catch-all row lists them and names the command to type, `kill` and `purge` are no longer handled inline, and the superseded `clear-logs` names `prune-logs` instead of routing to it; the Copilot CLI dispatcher does the same. On Claude Code the frontmatter gate holds them. On Copilot CLI the mirror has no gate, so the descriptions of all ten drop their "Use when" trigger on both hosts and say they run only when the user types them. On Codex CLI, whose one router skill is model-invocable, each gets its own `/multi-agent-<name>` prompt (`~/.codex/prompts/multi-agent-<name>.md`), which uninstall removes. The command contract test scans both dispatchers, every model-invocable command and its Copilot mirror, and every shared reference for a route into a user-only command's file, by path in any of the three hosts' layouts, by a slash command followed as instructions, or by the shared-reference flow only a user-only command follows.
- The access check now gates the five sharing commands instead of `routines`, whose listing reads only this machine.
- `doctor`'s `routine-commands` check also reports a saved routine that types a sharing action as a `routines` argument, in the Claude Code, Copilot CLI and Codex CLI spellings, with `/multi-agent:routines-<action>` as the replacement.
- The office command catalog opens the routines window for `routines-browse` and `routines-import`, which its Shared tab runs, and the settings window for `fable-on` and `fable-off` in place of the removed rung command.
- The always-on description ceiling is 100500: the five commands and their core skills add ten descriptions of 115 to 130 bytes.
- `store-screenshots` 1.1.0 (from ai-common-toolkit 0.10.0): a frame geometry reference with each frame's proportions, cameras and buttons, the measured crop each frame's insets leave, the width-share rule and placements; slides without a device inside the store policy; mood palettes; the icon and brand-kit intake; a trust slot; the headline scale; an assets layout; a starter HTML file; a pitfalls table keyed to `store_screenshot_render` failures; and a report that explains the slide order. Google Play sets carry no award, quote, stats or ranking slide, no call to action, no store badge or icon and no people or hands on the device, prefer frameless slides, never frame Wear OS, and ask for at least 4 tablet screenshots; the Play feature graphic does not repeat the app icon, keeps key elements in the centre and avoids white, near-white, black and dark gray backgrounds (every mood uses its accent there), Play captions take at most 20% of the image, Play tablet and Chromebook slides carry no caption, and hands appear only when the core app usage is off-device. Frame numbers are points (Apple) or dp (Android), scaled by the rendered width over the logical width. The skill requires multi-agent-mcp 4.2.0. Five new evals cover the frame reference and the Play rules.

## [22.0.0] - 2026-11-08

### Changed

- **Breaking:** `/multi-agent:model [on | off]` is replaced by `/multi-agent:fable-on`, `/multi-agent:fable-off` and `/multi-agent:fable-status` (Copilot CLI `/multi-agent-fable-on`, `/multi-agent-fable-off`, `/multi-agent-fable-status`; Codex CLI `multi-agent fable-on`, `multi-agent fable-off`, `multi-agent fable-status` via the router skill), the same shape as `route-on`, `route-off` and `route-status`. `fable-status` is what the old command did with no argument: the rung, the pricing model and what the switch means on this host. Behaviour is unchanged: each command calls `lib/model-rung.sh` with `on`, `off` or no argument, `modelFallback.fableEnabled` and `costBudget.pricingModel` still move as one write, the installed agents are still re-applied, and on Claude Code `fable-off` still prints that the Phase 3 reviewer panel drops to two models. An upgrade deletes the installed old command on Claude Code, Copilot CLI and Codex CLI, uninstall removes it on all three, and `COMMAND_RENAMES` records `model` as renamed to `fable-status`.
- `model-rung.sh` names the realigning command in its `MISMATCH` line spelled for the detected host: `ma_command` runs against that host's tree, so the hint reads `/multi-agent:fable-off` on Claude Code, `/multi-agent-fable-off` on Copilot CLI and `multi-agent fable-off` on Codex CLI.
- `doctor`'s `routine-commands` check also reports a saved routine that names the old rung command, with `fable-on`, `fable-off` or `fable-status` as the replacement, and lists the removed commands each routine names.
- The always-on description ceiling is 99500: the three commands and their core skills add six descriptions of 123 to 162 bytes in place of two.

### Fixed

- `model-rung.sh off` prints the reviewer-panel change (3 models to 2) only on Claude Code; on Copilot CLI and Codex CLI it says the panel is unchanged and the switch changes no dispatch there. The host is `MULTI_AGENT_HOST` when it is `claude`, `copilot` or `codex` (any other value is ignored), otherwise the tree the script is installed in; it was `claude` whenever the variable was unset, on every host. Command names in its hints are spelled for that same host, so an override moves the `MISMATCH` hint with the host line.
- The Claude Code host line names the fable rung's model from `cost-table.json` (`prices.fable.modelId`, now Fable 5.1) instead of a hand-written "Fable 5". A trailing date segment is dropped, and an id that does not reduce to a dotted version prints as plain "Fable".

## [21.1.2] - 2026-11-08

### Added

- `multi-agent-refs/toolkit-tools.md`: every `multi-agent` MCP tool family with its stacks (ios, android, web, backend, common) and the phase refs or commands that call it. Each stack guide ends with the families its stack uses per phase. `lint-mcp-refs.mjs` now fails when a served tool has no family row, a row matches no served tool, a home never names its family, or a stack guide never names a family assigned to it.
- `thesis_*`, `voice_*`, `vphone_*`, `document_*`, `media_video_*`, `media_music_beats` and `media_thumbnail_check` have homes in `outside-the-pipeline.md`; `store_screenshot_*` is wired into `/multi-agent:store-ready` and `/multi-agent:test-screenshots`. The coverage allowlist is empty.

### Fixed

- Docs: stale phase numbers in `best-practices.md` and `performance.md`, the eight-phase token budget table, the toolkit family table's hand counts in `ecosystem.md`, the curated skill count in `architecture.md`, the jq caller count in `README.tr.md` (now pinned by `smoke-jq-guards.sh`), and the scripts index's file and assertion counts. Third-party credit lines removed from `best-practices.md`.
- The iOS coding-standard copy (README, command and mirror skill descriptions, the code-reviewer persona, `skill-conformance.md`, office job hints) no longer states a rule count; the registry is the count. A mirror skill under `skills/shared/core` now carries its command's description (`test/mirror-skill-description.test.mjs`), so a description edited on one side only fails the suite.
- `/multi-agent:test` names the Review phase as the home of the manual test, not Phase 5.

## [21.1.1] - 2026-11-08

### Fixed

- `/multi-agent:update` step 3, with its Copilot copy, reads the tarball name from `npm pack --json` on stdout and sends npm's notices to `npm-pack.log` beside the download, printed only when the download fails. With stderr merged into the captured output, a notice written without a line end ran into the file name, so no line held the name alone and the update stopped with "npm pack reported no tarball". `test/update-pack-tarball.test.mjs` runs the block from both copies against a stand-in npm that writes such a notice.

## [21.1.0] - 2026-11-08

### Added

- `thesis-writing` and `store-screenshots` knowledge skills, shipped in ai-common-toolkit 0.9.0 and routed through `COMMON_SKILLS`: a thesis or long paper from setup to defense with the toolkit's `thesis_*` checks, and App Store and Google Play screenshot sets rendered and checked with `store_screenshot_*`. Both need `@mmerterden/multi-agent-mcp` 4.1.0.
- Visual evidence covers personal data before upload (`features/visual-evidence.md` 5a): a field that must not reach a ticket or a PR is boxed with `mcp__multi-agent__media_redact` and the redacted copy is uploaded; a redaction that fails leaves the artefact out with a gap line.
- `/multi-agent:address-review`: answers human review threads on our own open GitHub PR. `pr-threads.mjs` fetches the unresolved, current threads (a PR that is closed, merged or someone else's exits 4), holds the verdicts to their contract (one per thread; `fix`, `pushback` or `question`; `file:line` anchors that resolve and quote their line; a pushback reply cites code; no reply opens with praise or thanks), renders the draft, and makes each GitHub write (a push, a reply, a resolve) only with the token its `propose` computed from the live thread or branch. Unattended runs end at the draft: `propose` and `apply` exit 5. `propose` and `apply` refuse a PR that is closed, merged or someone else's (exit 4), `apply` judged on the live PR; a push goes only to the checkout's remote whose URL is the PR's head repository, a PR from a fork and a head branch that is the default branch or `main`, `master`, `develop` or `release/*` are refused, and the push token binds the remote and the directory. Every GitHub read is live: the CLI has no flag that substitutes a recorded response. Threads read their newest 50 comments (`last:`), so `lastCommentId` is the newest one; a GraphQL `errors` response is an error. The host asks too: `pr-write-guard.sh` (PreToolUse on Bash, registered by install) answers every `pr-threads.mjs apply`, also inside `bash -c`, after `env`, through a variable, with the name split by quotes or backslashes or spelled as a glob, and inline code (`node -e`) that names the script, with `ask` naming the PR and the operation, and with `deny` under `MULTI_AGENT_UNATTENDED=1`. Fixes are made test first. Like every outward-writing command it runs `usage-access.mjs` first.
- Bugfix root-cause gate (`root-cause-gate.mjs`, `features/root-cause.md`): before any fix, Phase 2 writes the symptom, the hypothesis and the origin `file:line`, backed by an observed failure; `check` resolves every reference. Each fix attempt is recorded by its diff; the third consecutive failed attempt since the last green one exits 4 and a fourth is refused until the person answers the design question (`reset --decision`). The gate ledger holds a bugfix commit to it: the unattended commit check and the attended pre-commit check both fail while `state.rootCause` is missing, not passing or escalated. Unattended, the run parks on the `phase-2/root-cause` question. `state.rootCause` carries the summary.
- Phase 1 Step 3.5, approach choice (`approach-choice.mjs`, `features/approach-choice.md`, `prefs.global.approachChoice.enabled`, default on): a free-text task with no analysis document behind it gets two or three written approaches with pros, cons, modules and a file estimate; the person picks, and autopilot takes the recommended one with `--why` and records it in `decisions[]`. `state.approachChoice` keeps the rejected approaches, which the plan critic's cheaper-alternative lens starts from.
- Compliance eval cases for root cause, verification and receiving review (`pipeline/eval/compliance/{root-cause,verification,review}.json`), six scenarios beside the existing TDD, debugging and reply-shape cases.

### Changed

- `humanizer` 1.3.0: a fuller Turkish pattern table with its own reference (`references/turkish.md`).
- facts, `toolkit-path-params.json` and the office's toolkit version follow toolkit 4.1.0: 250 tools. The always-on description ceiling is 99000.
- `rules/debugging.md` requires a written root cause with an observed failure before the fix and stops after three failed fixes; `rules/tdd.md` adds "claim only what ran" and drops the bug-fix protocol line that `debugging.md` already states.

### Fixed

- `/multi-agent:update` step 3, with its Copilot copy, takes the tarball name from the one `npm pack` output line that is a bare `.tgz` name. It took the last line, so an npm notice or warning printed after the name became the path and the update stopped with "npm pack reported no tarball". `test/update-pack-tarball.test.mjs` runs the line from both copies against output with notices and warnings around the name.
- `pr-write-guard.mjs` answers `--help` and `-h` with its usage, as every script CLI does.

## [21.0.0] - 2026-11-08

Major release. The companion MCP server is renamed: its id is `multi-agent`, its tools are `mcp__multi-agent__*` and its package is `@mmerterden/multi-agent-mcp`, so permission rules, hooks and guard rules that name the old id change. Install and update migrate an existing machine and keep the old and new permission prefixes side by side until the old registration is gone. The office is local only: phone pairing, Web Push and the phone device API are removed, `/multi-agent:office-pair` is gone, and the client contract moves to 2.0.0 (`supportedMajors` `[2, 1]`). `/multi-agent:autopilot` is removed in favour of the `autopilot` modifier, and the 23 skill rename aliases announced for this release are gone.

### Added

- Install and update carry an existing machine to the MCP server's new names; nothing needs to be done by hand (`pipeline/lib/mcp-rename.mjs`). Each host registers the server as `multi-agent`, then removes the `multi-agent-toolkit` registration through its own CLI and checks it is gone; while the new registration fails, the old one stays. `~/.claude/settings.json` and the unattended profile change in two steps. While the old registration may still be in place (no CLI on PATH, `MULTI_AGENT_SKIP_MCP_REGISTER=1`, a refused removal), nothing is taken away: an old allow rule gains its `mcp__multi-agent__` form beside it, every deny and ask rule and every hook matcher naming either id covers both, including escaped (`mcp__multi\-agent\-toolkit__.*`) and wildcard (`mcp__multi-agent-.*`) matchers. Once the old registration is confirmed gone, a later install renames or drops the old entries. An approved `enabledMcpjsonServers` entry is only renamed in the second step, so no approval is added for an id nobody approved; a `disabledMcpjsonServers` entry covers both ids in the first. The profile is migrated after `--unattended` writes or tightens it, so a fresh unattended install also denies the old id's research tools. Each rewrite is preceded by a backup beside the file that never overwrites an earlier one; a file that does not parse is left untouched, and a refused backup or write is a one-line warning, never an aborted install. `~/.claude/logs/multi-agent-toolkit` and `~/.config/multi-agent-toolkit` move to their `multi-agent-mcp` names when the new directory does not exist yet. `migrate-prefs.mjs` renames guard rule tools and the `devToolkit` server name, package and label. `--dry-run` writes none of this.
- The unattended guard and user guard rules judge a toolkit tool called under the old id like the same tool under the new id, and a guard rule written for either id applies to both.
- `doctor` check `mcp-legacy-names`: WARN when the `.claude/settings.json`, `.claude/settings.local.json` or `.mcp.json` at the root of the repository the current directory is in still names the old id, which no installer rewrites, with the edit to make. The user's own `~/.claude`, where the installer keeps old entries on purpose during the transition, is not read.
- `test/legacy-mcp-name.test.mjs` (in `npm test`) fails when the server's earlier name appears, in any case and with a dash, an underscore, a space or nothing between its words, escaped or not, outside the changelogs, the migration and its test, the frozen v20.2.1 profile signature and its fixture, the store file's earlier path in the profile, the guard policy and the permission baseline, the guards' legacy prefix and the free-model CLI's earlier variable.
- Run-time access check `usage-access.mjs`: before a run does any work it asks the reporting site (`POST <site>/api/usage/access`, the login and the version only, the usage token in a header when one resolves) whether this login may run. A refusal exits 3 with one line in outputLanguage naming the reason: `blocked` (with the owner's message), `invite-pending` (accept the organization invitation, then restart the task) or `no-access` (where to ask); a link is printed only when it is https on github.com or the site's host. It fails open on a network error, a 2-second deadline, a non-200 answer or a body it cannot read, keeps a `blocked` answer for that login for 7 days while the site is unreachable (`~/.claude/logs/multi-agent/access-state.json`, mode 0600, no token), and runs whatever `usageLog.optOut` says. It runs at the `/multi-agent` dispatcher for every route except `status`, `log` and `help`, the `jira` and `issue` launchers before their first picker, `resume`, Phase 0, the autopilot runner and loop, the office job start, and first in every command that writes outside the machine (`analysis`, `analysis-jira`, `channels`, `complaint-analysis`, `create-jira`, `design-check`, `kill`, `office-pair`, `purge`, `refactor`, `review`, `review-analysis`, `review-issue`, `review-jira`, `review-priority`, `routines`, `scaffold`, `sync`) on Claude Code and Copilot CLI; `feedback`, `setup` and `update` stay open.
- `doctor` check `access`: `access: open`, `access: closed (<date>)` with the reason and link, or `access: could not be checked`, in outputLanguage. The `usage-report` check states the reporting state in one line with the last send time: registered, token rejected with the self-heal result, deferred, waiting for the owner's approval, or `registration waiting: enter your GitHub username with /multi-agent:setup`. `usage-register.mjs --status-line` prints the same line for the final run report.
- The autopilot loop stops with reason `access-blocked` (the refusal line kept as `refusal`), and the autopilot runner takes nothing and records no attempt for a closed login, with the line as the queue's `blockedReason`.
- `/multi-agent:routines share | browse | import | update`: share saved routines with other site members over the existing usage token. A local secret scan (`lib/routine-secret-scan.mjs`, same rules as the server) refuses before upload; import and update show the full body or a diff, verify the sha256 and rebuild the frontmatter locally. `routine-registry.mjs` gains `export`, `import` and `scan`; the new client is `routine-share.mjs`. Registry entries of imported routines record `sha256` and `sharedId`.
- `reverse-engineer-own-app` knowledge skill, shipped in ai-common-toolkit: inspects a build the user owns with the toolkit `binary_*` tools (declared facts, endpoint strings, two releases compared, endpoints against a QA run, JS and Electron imports) and declines DRM, licence-check, anti-cheat and authentication bypass. It is routed through `COMMON_SKILLS`, so `build-stack-plugins` keeps it in that plugin.
- `/multi-agent:store-ready` reads the build itself when the toolkit lists the `binary_*` tools: `binary_inspect` and `binary_strings_endpoints` add `[BUILD-FACTS]` findings to Gate 1 (get-task-allow or a non-store profile on the `.ipa`, ATS arbitrary loads, Android `debuggable`, cleartext endpoints), and the new `--previous=<path>` adds a `Release diff` from `binary_compare_versions`. Without the tools the step is skipped silently and every gate verdict is unchanged. Rules: `multi-agent-refs/features/build-facts.md`.
- `/multi-agent:security-review --artifact=<path>` runs `binary_strings_endpoints` on a build of the reviewed code: the host inventory goes into the report, and a flagged URL that traces to a source line becomes a finding with the build fact as a second evidence line, written so the evidence gate does not read it as a repository citation.
- `doctor` check `routine-commands`: a saved routine (a `local-only: true` command under `~/.claude/commands/multi-agent`) whose body still names the removed autopilot command is a WARN listing those routines, with `/multi-agent "<task>" autopilot` as the replacement and the file to edit. Preferences migrations are pure transforms of the preferences file, so routine bodies on disk are reported rather than rewritten.

### Removed

- **Breaking:** the 23 rename aliases in `pipeline/skills/renamed.json` are removed, as announced for 21.0.0: twenty in ai-ios-toolkit, `firebase` in ai-common-toolkit, `nextjs-app-router` and `tailwind-css` in ai-frontend-toolkit. An old name no longer loads; use the skill it pointed at. The marketplace plugins drop them with their "Renamed skills" index tables (ai-ios-toolkit 0.26.1, ai-common-toolkit 0.8.1, ai-frontend-toolkit 0.5.1), and the Copilot and Codex installers write no alias. The pairs move to `retired` in `renamed.json`, which writes no alias and which `upstream-overlap-gate.mjs` still reads, so a renamed skill is still compared with the upstream skill under its old name.
- **Breaking:** the phone device API is removed; the office is local only. Gone: the `/v1/phone/*` routes of the contract server, `phone-devices.mjs`, `_phone-auth.mjs`, `phone-signed-request.schema.json`, `phone-devices.schema.json` and `features/phone-api.md`. The client contract moves to 2.0.0 (`?v=1` stays accepted for one minor; see `pipeline/contract/CHANGELOG.md`). `office-on`, `office-off`, uninstall and every install or update delete the phone store an earlier version left under the autopilot root (`lib/office-legacy.mjs`).
- **Breaking:** phone pairing is removed from the office; the office is local only. Gone: `/multi-agent:office-pair` (Copilot `/multi-agent-office-pair`), `office-pair.mjs`, the relay client `office-remote-client.mjs`, Web Push (`office-push.mjs`, `lib/web-push.mjs`), `lib/office-remote.mjs`, `lib/qr-code.mjs` and `features/office-remote-protocol.md`. `office-on` starts no remote client and no longer runs the access check (it talks only to the loopback server), `office-status` drops the `remote` and `pairedDevices` fields, and `office-on` and `office-off` stop a remote client an earlier version left running and delete its phone store. `migrate-prefs` drops `global.office.remote` and an empty `office_push_vapid` slot; both stay declared as deprecated so an un-migrated file validates, and `uninstall --all-data` still deletes a mapped push key. An upgrade removes the installed command, skill, scripts and libraries on Claude Code, Copilot CLI and Codex CLI. Help lists the group as Office.
- **Breaking:** `/multi-agent:autopilot` (Copilot `/multi-agent-autopilot`) is removed. Use the modifier: `/multi-agent "task" autopilot`, the form the queue runner and the loop already launch. An upgrade deletes the installed command on Claude Code, Copilot CLI and Codex CLI, and `COMMAND_RENAMES` records `autopilot` (and `local-autopilot`) as folded into `multi-agent`.

### Changed

- The knowledge skills the marketplace plugins are built from (`pipeline/skills/shared/external/`) name toolkit tools `mcp__multi-agent__<tool>`, the only name a host lets a model call, as the plugins do; `multi-agent:<tool>` read like a skill or command such as `multi-agent:review`, and a rebuild would have reverted the plugins to it. `lint-mcp-refs.mjs` rejects `multi-agent:<tool>` in those skills (`toolFormInPluginSkill`) and still rejects the `mcp__` form in the pipeline's other skills. Their stated minimum toolkit is `@mmerterden/multi-agent-mcp` 4.0.0, the first release under that name.
- The `web-testing` Playwright examples use their own sign-in route, test accounts and basket labels, which keeps the file under the upstream overlap threshold now that tool names are written in the host form.
- The companion MCP server is now the npm package `@mmerterden/multi-agent-mcp` (4.0.0, bins `multi-agent-mcp` and `multi-agent-mcp-llm`), registered with every host under the id `multi-agent`, replacing `@mmerterden/multi-agent-toolkit-mcp` registered as `multi-agent-toolkit`. Its tools are `mcp__multi-agent__<tool>` in permission rules, hook matchers and agent tool lists, and `multi-agent:<tool>` in skill prose. Commands, skills, references, agents, the unattended profile, the agent-guard matcher (`WebFetch|mcp__multi-agent__.*`), doctor, health, office, the store config path (`~/.config/multi-agent-mcp/store.json`), the free-model usage log (`~/.claude/logs/multi-agent-mcp/.index`), help, READMEs and the Copilot and Codex copies use the new names. The `/multi-agent:sync` and `/multi-agent:refactor` area argument is `multi-agent-mcp`. Generators and gates that read a sibling checkout of the server accept a directory named `multi-agent-mcp` or `multi-agent-toolkit-mcp`.
- `MULTI_AGENT_TOOLKIT_LLM`, `MULTI_AGENT_TOOLKIT_DIR` and `MULTI_AGENT_TOOLKIT_REPO` are `MULTI_AGENT_MCP_LLM`, `MULTI_AGENT_MCP_DIR` and `MULTI_AGENT_MCP_REPO`; the earlier names are still read while the new ones are unset.
- Uninstall also deregisters a leftover `multi-agent-toolkit` registration when `multi-agent` is registered beside it; where it is the server's only registration it stays, like `multi-agent`. `--dry-run` asks each host the same read-only `mcp get` questions and announces exactly what the real run removes.
- The unattended profile denies edits to the store file, and the unattended guard refuses writes under it (protectedHomeDirs, protectedAncestorsOf), at both `~/.config/multi-agent-mcp` and `~/.config/multi-agent-toolkit`, because the server reads the second while the first is absent.
- facts, `toolkit-path-params.json` and the office's toolkit version follow toolkit 4.0.0.
- The toolkit facts count 238 tools in 24 families (the `binary` family), regenerated from the toolkit's `tools/list`, and `toolkit-path-params.json` declares the five `binary_*` tools.
- `--loop N` moved to `/multi-agent "task" autopilot --loop N`: the same `autopilot-loop.mjs start` invocation and the same `install --unattended` precondition. The stop conditions and caps are in `phases/modes.md` "Loop mode".
- `/multi-agent:autopilot-off` is model-invocable and listed: plain `off` removes the schedule and keeps every file, so it is `destructive: false`, `confirm: none`. `--now` still ends the running item only after the command names it and asks.
- `/multi-agent:help` names the label continuous mode picks up: GitHub issues and Jira items assigned to you that carry `agent-queue`, with `agent-queue:1`..`agent-queue:9` for explicit order, configurable in `autopilot-on`.
- `doctor` points a missing scheduler at `/multi-agent:autopilot-on`.
- `/multi-agent:help` is regrouped by task: a five-line start-here block, then Develop, Continuous mode, Jira and GitHub, Review and analysis, Testing and devices, Office and remote, Models and routing, Setup, Routines and Maintenance, one aligned line per command. Detail lives in each command's own page. `test/help-catalog-groups.test.mjs` reads the command list from `pipeline/commands/multi-agent/` and requires every command exactly once, in both languages, with the same groups in the same order.
- `feedback-send.mjs` resolves the usage token through the shared `lib/usage-token.mjs`.
- The office threat model (T3), the contract README and the manifest's page auth note state what the tab resume key costs: browsers persist sessionStorage to disk for tab restore, a duplicated tab carries the same single-use key so the second copy to reload is signed out, and the server keeps at most 16 live keys, evicting the oldest.
- The repository lives at `github.com/multi-agent-ecosystem/multi-agent-pipeline`, with its siblings `multi-agent-toolkit-mcp` and `multi-agent-plugins` under the same organisation. `package.json` repository, bugs and homepage, the READMEs, CONTRIBUTING, SECURITY, the issue template links, the Copilot instruction template, the schema `$id`s and the stack-plugin sync ref name the new owner; the npm package names stay `@mmerterden/...`. GitHub redirects the old URLs, so a marketplace already registered from `mmerterden/multi-agent-plugins` keeps updating: `plugin-refresh.sh` finds the marketplace by its name, not by its source URL.
- `usageLog.accessRepo` defaults to `multi-agent-ecosystem/multi-agent-pipeline`. `usage-identity.mjs` reads the previous `mmerterden/multi-agent-pipeline`, whether configured or cached as `loginRepo`, as the current name, so a cached reporting identity stays fresh across the move.

### Fixed

- A usage token the server stopped accepting no longer drops every record until the next Phase 0: on an ingest 401 `usage-report.mjs` runs one registration in-process and resends the record once with the new token. At most one heal runs per 10 minutes (a compare-and-set on `usage-heal.json` under its lock), concurrent sends never both register, a context that cannot see the accounts takes no window, and 5xx, timeouts and `not-accepted` never start one. `usage-last-send.json` records `first`, `heal`, `healDetail` and `healed`.
- An unattended run, or any context where gh lists accounts it cannot read the token of, no longer records "no GitHub account on this machine": the identity check answers `hidden`, caches nothing, and registration records `deferred` with no claim and no back-off, keeping the cached and pinned logins; the next run in a normal terminal registers.
- Setup and update ask a work machine, whose gh knows only a corporate account, once for the person's personal GitHub username and register it as a declared login, then say the owner approves it and logs start after approval; an unattended run never asks.
- `smoke-purge.sh` refuses to run without a private temp directory, so a `mktemp` that fails can no longer make it purge and remove the directory it was started in.

- `/multi-agent:setup` asks for Figma MCP and Firebase again. Step 3 names the `figma_mcp` pass (the Remote / Local question is always asked; a connected claude.ai or remote Figma connector does not count as onboarded) and the `firebase` pass (service-account JSON, then the Firebase MCP offer). `keychain.md` no longer describes `figma_mcp` as automatic.
- `fetch-crashlytics.sh --probe` answers `no-credential` when nothing is stored, instead of `unreachable`, and the probe table in `keychain.md` maps it to the Save Flow and the Firebase MCP offer rather than to asking for the trace. `smoke-setup-onboarding-passes.sh` holds the setup spec, both tables and the probe to this.
- `autopilot-control.mjs off [--now]` and `routine-share.mjs share | import | update | delete` refuse under `MULTI_AGENT_UNATTENDED=1` (exit 4 and exit 3, with the reason on stderr), and agent-guard blocks the same subcommands by name through `unattended-policy.json` `publisherScripts`, so an unattended run cannot switch off the schedule that launched it or publish or install a routine. The office `DELETE /v1/routines/{name}` refuses both steps on an unattended server with `409 unattended-refused`.
- The office shared-routine import preview runs the checks the confirmation runs: an `as` that is not a valid local name (the reserved `shared` included) is 400 `invalid-body`, and a shared routine that would fail the import checks is 502 `upstream-failed` naming the field, instead of passing the preview and failing at confirmation. A confirmation refused by those checks is 409 `state-moved`. `GET /v1/routines/shared/{id}` validates the shared name before checking it locally, and `routine-registry.mjs localNameTaken` refuses an invalid name, so no caller builds a command path from a name such as `../..`. `routine-registry.mjs` exports `isValidLocalName` and `payloadIssues`.
- A shared routine id may not start with `-`: `routine-share.mjs`, the office routes, `routine-registry.mjs` and the shared-routine and prefs schemas accept `^[A-Za-z0-9][A-Za-z0-9-]{0,63}$`, so an id passed on as `--id <id>` is never read as a flag.
- The office page falls back once to the tab's stored resume key when the link's code is refused, so reopening a used or stale link in a tab that still holds a live key no longer shows No access.
- The office no-access card takes the pointer, so its text (the `/multi-agent:office-on` hint) can be selected and copied; the empty-office card still lets floor clicks through.
- The office ledger window switch and the routines Mine / Shared switch are toggle buttons with `aria-pressed` in a `group`, instead of `tab` roles that lacked `aria-controls`, roving focus and arrow-key handling.
- `lib/usage-token.mjs` reads the usage token from the credential store of whichever host is installed, trying `~/.claude/lib`, `~/.copilot/lib` and `~/.codex/lib` in that order, so feedback and routine sharing work on a Copilot CLI or Codex CLI only install.
- The `/multi-agent:routines` help line and README rows name share, browse, import and update, and the `/multi-agent:setup` Step 3 loop rules (one prompt per service, per-service Skip, read the Save Flow first) stand in their own paragraph instead of inside the firebase bullet, in the command and its Copilot mirror.
- `routine-registry.mjs` treats any existing directory under `commands/multi-agent/<name>` as taken unless the registry tracks that name: `import` (and `import --replace`, which also needs the same shared id), `add` behind `/multi-agent:save`, and `localNameTaken` behind the office preview refuse a local-only command the installer preserves but the registry does not list, and leave it unchanged.
- `routine-registry.mjs` refuses every C0 control (tab included), DEL, C1 control (NEL included), U+2028 and U+2029 in `description`, `descriptionTr` and `argumentHint`, in `payloadIssues` (share and import) and in the frontmatter writer behind `add`, which now checks before creating the command directory.
- A shared routine's import and update are bound to everything they install, not only the body: `routine-registry.mjs payloadDigest` hashes the canonical JSON of `{argumentHint, body, description, descriptionTr, name}` (sorted keys, an absent optional field as `""`), byte for byte the sharing server's content digest; `routine-share.mjs fetch` and `diff` return it, a fetched routine whose server `digest` differs is refused `upstream-inconsistent`, and the fetch document carries one top-level `digest`; and `import` / `update` require `--digest` (`--sha` still checked when passed), refusing `changed-since-shown` when any field differs. The office import preview shows the description, descriptionTr and argument hint as text, unscrubbed, with the digest, and the confirmation carries `digest` beside `sha256`.
- `routine-share.mjs fetch` answers `localNameTaken` with the same check as the office (`isValidLocalName` then `localNameTaken`), so a shared routine named after a shipped command such as `doctor`, or after an untracked local command, is reported as taken.
- `routine-registry.mjs` writes the preferences file through `updateJsonFileSync` for `add`, `import` and `remove`: under the preferences lock (`WRITE_STATE_LOCK_TIMEOUT_MS`), at mode 0600, and through a symlink, so a dotfiles link stays a link and two concurrent writers keep both entries. The registry checks and the command directory write run under the same lock; a lock that cannot be taken leaves neither an entry nor a directory behind.
- `routine-share.mjs update` refuses `local-edits` when an imported routine's SKILL.md no longer hashes to the `skillSha256` the import recorded in its registry entry; `--force` replaces it and keeps the previous file as `SKILL.md.bak`. `diff` reports `localEdits` (true, false or `"unknown"`), and the update flow in `routine-sharing.md` asks before passing `--force`. An entry imported before `skillSha256` was recorded is checked by rebuilding its SKILL.md with the same writer: a byte-identical rebuild whose body matches the entry's `sha256` is unedited and gets `skillSha256` recorded, a different body is `local-edits`, and a file the writer cannot reproduce is `localEdits: "unknown"`, refused as `local-edits` with `certain: false` unless forced.
- `routine-registry.mjs add` and `import` name the routine as `/multi-agent:<name>` and print its `~/.claude/commands/multi-agent/<name>/SKILL.md` path on every host, since routines are Claude Code commands only; `routine-sharing.md` and the Copilot `multi-agent-save` skill say so instead of pointing at a Copilot command.
- `routine-registry.mjs payloadIssues` applies the sharing server's rules: a body with a C0 control other than tab, line feed and carriage return is `invalid-field`, and description, descriptionTr and argumentHint lengths count after trimming.
- A routine command directory that is empty or holds only `SKILL.md.bak` is stale: `localNameTaken` does not count it, and `routine-registry.mjs add` (saying so), `import` and `remove` clear it. Anything else at that path (a nested `<sub>.md`, which Claude Code reads as `/multi-agent:<name>:<sub>`, another file, a subdirectory, or a symlink, which is never followed) is a local command the registry does not track: taken, refused by all three, and never deleted. `remove` deletes only the `SKILL.md` and `SKILL.md.bak` it wrote and keeps any other file in a routine's directory.
- `/multi-agent:save`, its Copilot copy and the import flow in `routine-sharing.md` offer `/multi-agent:forget <name>` when a name is refused as a local command the registry does not track.
- The default reporting endpoint is defined once, as `DEFAULT_ENDPOINT` in `lib/usage-endpoint.mjs`; `usage-register.mjs`, `usage-report.mjs` and `routine-share.mjs` import it.
- `routine-share.mjs` sends the usage token only under the registration host rule: `registerUrlAllowed` (moved to `lib/usage-endpoint.mjs` with `BUILT_IN_HOSTS`, re-exported by `usage-register.mjs`) allows https to the site's own host or `usageLog.trustedHosts` and http only on loopback. A `MULTI_AGENT_ROUTINES_URL` or `usageLog.endpoint` on any other host is refused with `endpoint-not-allowed` before a request is made.
- `routine-share.mjs share --dry-run` resolves the endpoint and the usage token before printing the request, so a preview answers `no-usage-token` or `endpoint-not-allowed` exactly when the real share would.
- `usage-register.mjs` reads a stored token from, and writes a new one to, the credential store of whichever host is installed, through `lib/usage-token.mjs` (`HOST_ROOTS` and `credentialStores` are exported), so registration completes on a Copilot CLI or Codex CLI only install instead of failing with no credential store.
- `usage-register.mjs` drops the `account` field of a declared (`claim`) registration's answer: a name typed without a proof never shows or carries a member account or its temporary password.
- `usage-register.mjs` keeps a member account's sign-in URL only when it is https, or http on loopback; a `javascript:`, `file:` or other scheme on a loopback host name is dropped and the block names the site's login page instead.
- `usage-register.mjs` does not ask the site for a member account's temporary password (`x-account-delivery`) in an unattended run (`MULTI_AGENT_UNATTENDED=1`), as it already did not under `--quiet`.
- The `usage-register.mjs` header and `usage-reporting.md` state the limit of a member account's one-time password: the block appears in the host session transcript on disk, it stops working at the first sign-in (a new password is required) and expires after 7 days unused, both enforced by the site, so the person should sign in promptly. The setup and update commands and their Copilot mirrors use the same wording: show it once, then never repeat, store or pass it on, and give `pendingApproval` its one line.
- `routine-registry.mjs add | import | remove` and `autopilot-control.mjs on` refuse under `MULTI_AGENT_UNATTENDED=1` (exit 3 and exit 4, with the reason on stderr), and `unattended-policy.json` `publisherScripts` blocks the same subcommands by name; `on-preview`, `list`, `export` and `scan` stay allowed. `POST /v1/autopilot/on` on an unattended server still previews and answers the confirmation with `409 unattended-refused`.
- `/multi-agent:autopilot-off` and its Copilot mirror say what an unattended run gets: exit 4 with the reason on stderr, to be reported, never retried.
- `routine-sharing.md` states every `routine-share.mjs` exit code (0, 1 refusal, 3 unattended, 64 usage) and documents `delete`, which withdraws a routine the user published after a confirmation; `/multi-agent:routines` and its Copilot mirror route `delete` to that flow.
- The Copilot `security-review` mirror lists `.app` among the `--artifact` kinds, as the command does.
- Copilot mirrors point only at files a host writes. `store-ready`, `testflight-validation` and the five UI test aliases named `~/.copilot/multi-agent/...`, which no installer writes; they now read the command doc from `~/.claude/commands/` when Claude Code is installed, else from GitHub. The `help` mirror keeps the shared `~/.claude/logs` log root. The `update` mirror follows the npm channel its own header states (registry check, scope-pinned `npm pack`, `install.js --installed`, migrate, release notes) under `~/.copilot`, instead of `git pull` and `install.js --all`. `test/copilot-mirror-paths.test.mjs` resolves every `~/.copilot` pointer in a mirror, after the installer's path rewrite, against what the Copilot installer writes.
- `_input-parser.md` defines quoting for a task, and `/multi-agent` and its Copilot copy state it: strip the surrounding double quotes and unescape (`\"` becomes `"`, `\\` becomes `\` before a quote or at the end); a value that as a whole is a Jira key, a Jira or GitHub issue URL, `repo#N` or `#N` is that structured reference, anything else is free text, and a structured token inside a sentence stays free text. Everything after the closing quote is modifiers (`autopilot`, `--loop N`) or the branch after a Jira key. The quoted examples in help, setup, modes, operations, resume and the Copilot pipeline refs keep working as written. `smoke-pipeline-surface.sh` requires the rule in the ref and both trees and refuses wording that says a quoted reference must be sent unquoted.
- The approved Phase 1 plan is attached to the issue the run started from (`scripts/plan-attachment.mjs`, `features/plan-attachment.md`): a `plan-<taskId>-v<N>.md` attachment on a Jira issue, one comment with the plan inside `<details>` on a GitHub issue, nothing for free-text runs. Only after the approval gate; each redone plan is the next version and earlier ones are kept. `prefs.global.planAttachment` (`ask` | `always` | `never`, default `ask`) with a per-project override; a run that cannot ask skips `ask`, and an unattended run attaches on `always` only when `unattended-policy.json` does not block `plan-attachment.mjs upload` (the shipped policy does). The text goes through the outbound gate's rules first and any finding stops the upload, naming the rule. The outcome lands in `state.planAttachment.outcomes[]` and on the Phase 5 report line; a failure never fails the run. Approval is read from the gate's own record (`planApprovedAt`, or the autopilot `gateSkippedAt`), never from plan.json. The Jira upload goes only to a configured host (`prefs.global.hosts.jira` or an account's `jiraHost`; an env host is used only when it matches one); `GH_HOST` other than github.com is refused. curl is a fallback only for failures before sending; a timeout is recorded with the status unknown, and the issue's attachments are listed first so a lost response never produces a duplicate. A GitHub comment carries a hidden `multi-agent-plan:<taskId>:v<N>:<sha>` marker and the issue's comments are read first (every page), so the same plan version is never posted twice; a failed listing posts nothing. Jira host and token always come from one account (an env host is accepted in every mode only when configured, and an account's token key never goes to another account's host). Every plan write clears `planApprovedAt` and `gateSkippedAt`, and a record older than plan.json is refused. The Copilot orchestrator records the autopilot gate skip and runs the plan attachment at the same point as Claude Code.

## [20.44.0] - 2026-11-05

### Added

- Office: a skill catalog window ("Skill catalog" / "Skill kataloğu"), a card catalog station in the library and a button in the commands window. One searchable list of every `/multi-agent` command, marketplace plugin skill and saved routine: search by name, invoke name or description, filter chips by kind and by source, a repository picker with an "only what is on in this repository" toggle, counts per kind and per source. Each card shows the invoke name, the description in the page's language, and source, on/off, always-on and local-only chips; a command card keeps the commands window's give or open button.
- `GET /v1/skills` (`skill-catalog.mjs --json [--repo <path>]`, client contract 1.11.0): the catalog behind that window. `repo` resolves the way `GET /v1/stack` does and only decides which plugin skills are on; everything else is read from fixed roots. A missing command tree, marketplace clone or routine registry is a note, not an error. The route is local-only, since it names the routines and local-only commands kept on this machine.
- Office: a disk section in the cleanup window, behind the local-only `POST /v1/disk-clean` (`office-disk.mjs`, client contract 1.12.0). Measuring runs the disk cleaner's dry run and returns, per category, the size, item count, largest items with real paths and the kept reasons, plus the reclaimable total and the free space expected afterwards; it returns no token. Only a preview of ticked categories, each checked against the cleaner's own allow-list, returns a confirm token, and the confirmation applies exactly those categories. The Trash and old transcripts need their own `trash: true` / `transcripts: true`, start unticked on the page and carry a warning. An unattended server measures its safe set and refuses a preview and an apply with the new error code `unattended-refused`.
- Office: `review-priority` is a job (`writes: none`). Its team and preset are choices `GET /v1/jobs` reads from the rule files that parse, the presets narrowed to the team picked (`choices`, `dependsOn`, `valuesFor`; jobs surface 1.1.0). In the commands catalog, `clean-disk` opens the cleanup window.
- `/multi-agent:review-priority` accepts `preset=<id>`: that preset is the scope for every team and the scope question is skipped; an id a team does not list stops that team.
- Two ai-common-toolkit knowledge skills for the toolkit's media tools, which target toolkit 3.33.0: `release-video` builds a short narrated portrait release or sprint video from simulator or emulator recordings and stops at a checked file on disk, and `short-video-craft` maps the craft of a short (safe area, hook, pacing, loop seam, captions, mix) to the media tool parameters that enforce it.

### Changed

- `/multi-agent:update` step 5b and `/multi-agent:setup`, with their cross-CLI copies, ask a question only on `needsPersonalAccount: true`. A `refusal` (`not_collaborator` or `proof_required`) only prints its status line, since the site answers a declared name the same way whether or not it is a collaborator. The usage-reporting reference says the same; client code is unchanged.
- `skill-catalog.mjs` parses its arguments with the shared `parseArgs`: an unknown flag, a positional or a bare `--repo` exits 2 with the usage line.
- facts, `toolkit-path-params.json` and the office's toolkit version follow toolkit 3.33.0: 233 tools, 170 external skills, 266 plugin skills. The always-on description ceiling is 97500.

### Fixed

- `GET /v1/stack` and the Skills window list every skill of a plugin, including the grouped `skills/<group>/<name>` folders, instead of only the top-level `index`. The walk skips a folder or SKILL.md whose real path leaves the plugin's skills root.
- `smoke-usage-register.sh` section 11 reads each command doc with its lines joined and fails one that still names `not_collaborator` in a sentence that asks something.

## [20.43.1] - 2026-11-04

### Fixed

- `usage-register.mjs` checks a stored token with the server (`POST <register url>/check`, token in the `x-usage-token` header, 4-second timeout, trusted hosts only) before calling it onboarded. An explicit `valid: false` registers again in the usual order (a proof, else the stored `declaredLogin`, else the pinned `registeredAs` as a declared name) with no question and overwrites the stored token; a network failure, timeout or 5xx keeps it. Opted-out machines, a token in the environment or prefs, and dry runs send no check. A machine whose token was revoked no longer stays without a working token while reporting "token already onboarded".
- A pinned machine with no stored token registers its `registeredAs` as a declared name instead of staying silent.

### Changed

- `usage-register.mjs --json` adds `tokenCheck` (`valid`, `invalid`, `unknown`, `skipped`) and, on a refused registration, `refusal` (`not_collaborator`, `proof_required`). A declared name refused after a rejected token also drops the `registeredAs` pin, so `needsPersonalAccount` turns true.
- `/multi-agent:update` step 5b and `/multi-agent:setup` ask a question only on `refusal: "not_collaborator"` (one line, then the name once more) or `needsPersonalAccount: true`, which stays false whenever the account is already known.

## [20.43.0] - 2026-11-04

### Added

- `/multi-agent:clean-disk` runs the disk cleaner as a command: measure, choose, apply, report; the low-disk line names it.
- `/multi-agent:review-priority` reviews open bug priorities against a team's rule file, read only by default, one approved change at a time; an example impact-based rule file ships with it. An optional `corporate.md` in the rules directory is a baseline every team inherits, a team row with the same id overrides it, and the report names the file each cited rule came from.

### Changed

- `disk-cleaner.mjs` never stops a process: the `processes` category and `--processes` are gone, and orphaned session children are listed under `orphans` in the report as information. 23 categories remain; the Trash and old transcripts stay opt-in and are never unattended. The JSON report gives each category's largest items with real paths and sizes (`top`, `--top=N`), the count left out (`more`), the kept reasons (`kept`), `reclaimableBytes` and `disk.expectedFreeBytes`.
- doctor's `disk-space` check shows the free space every time, and what can be freed from the newest disk-cleaner dry run (total, top three categories, age; a run over a day old or none is named as such). `--probe` measures under a 60-second cap, and a timeout is reported, not failed. Enough free space but at least `diskCleaner.reclaimableGb` (default 10) to reclaim is INFO with the step `run /multi-agent:clean-disk: N GB can be freed`.

## [20.42.0] - 2026-11-04

### Added

- Build and test evidence is tied to a digest of the working tree (`lib/source-digest.mjs`). The gate ledger records it, an edit after the build makes the entry `stale` at commit, and `evidence-gate --ran-on` refuses a run whose source changed under it.
- `evidence-gate --command` / `--command-file` refuses a narrowed test run (`-only-testing`, `--filter`, `--tests`, `-t`, `-k`, `--grep`, `-run`, a single test file, `--passWithNoTests`) across fourteen runners and package scripts. `test-integrity-gate --test-command-file` reports one as blocking.
- `tdd-red` keeps the test files changed since the run's base commit, committed or not. `tdd-green` refuses a weakened or deleted one unless `--test-edit-reason` is given (blocking regardless when unattended), `plan-todos.sh tdd-restore` puts them back without creating anything outside the work tree, and `test-integrity-gate --state` reports the edits. An unreadable `--state` or `--test-command-file` is a blocking finding.
- `eval-guard-robustness` probes every PreToolUse hook in the install template, and the library matchers, with ReDoS, 1 MB and 5000-deep inputs under a timeout, against a dated known-holes list. `npm test` runs `--fast`; `npm run eval:guards` runs the whole probe.
- The guard asks before a recursive delete of `/`, the home directory (`$HOME`, `${HOME:?}` and the other parameter forms, `~`, `~user`) or a directory above it, and before a fork bomb, and refuses these unattended.
- The outbound gate, the command-line credential scan and the memory secret scan also match credentials hidden in base64, hex or rot13, with a Python twin used by the guard.
- Fenced untrusted text that reads like instructions is marked `suspicious` with the toolkit's classes: instruction-override, role-tag, tool-invocation, exfiltration and fence-escape.
- The installer reports risky `settings.json` combinations before it merges hooks, and setup asks about each HIGH finding.
- `run-scope-guard` on `Agent|Task` asks before a subagent starts on a run over its cost budget, and refuses with `onExceed: halt`.
- `lib/hook-once.mjs` makes the note-skill-use, note-mcp-failure and note-agent-event hooks write once per tool event.
- `cost-analyze advise` reports cache-read ratio, 1-hour cache TTL payback, sub-agent rung downshift with the pinned personas, context bloat and unpriced models, each finding with its numbers, its source and a what-if saving or null.
- `session-usage.mjs --host codex` reads the Codex CLI token ledger (running-total deltas, resets, forked replays); an unknown format reports UNMEASURED.
- Memory recall re-picks its head with MMR and ranks each clause of a multi-part task as its own query (`memoryRecall.mmrLambda`, `memoryRecall.multiQuery`); eval-recall gains two diversity cases.
- `doctor --json` carries `schemaVersion: 1` and `selection` under `schemas/doctor-report.schema.json`, with a golden test; `--only <id,...>`; the new check `mcp-schema-load` reports the toolkit's tool-list load per family as an estimate (`mcpSurface.schemaInfoAboveTokens`).
- An unknown flag or subcommand names the nearest one, in the output language.
- Opt-in `statusline.mjs` shows the run a session drives. Its cache lives in a private per-user directory, install never replaces an existing `statusLine`, and a symlinked settings file is written through with its mode kept.
- `publish-staged.mjs` publishes under a candidate dist-tag, matches the integrity, runs an install test, then promotes to latest; `--tag latest` is refused. It is the documented release step.
- Learned model-rung order (`modelRouting.learned`, off by default): `route-learn.mjs` learns from gate and review outcomes, promotes a policy only after a holdout Brier comparison with isotonic calibration, and chooses with seeded Thompson sampling.
- `/multi-agent:autopilot --loop N` (`autopilot-loop.mjs`): a bounded loop in which every iteration is a fully gated unattended run, launched with the autopilot runner's own argv, environment, unattended settings profile and preconditions, so the loop refuses to start where the runner would. Completion is checked and marked by the loop itself, and iterations, time and cost are hard caps.
- `disk-cleaner.mjs` frees disk space on a macOS developer machine by deleting regenerable data from a fixed allowlist of 24 categories: Xcode DerivedData, SwiftPM `.build` and DerivedData folders inside dev roots that look like build output and sat untouched for 12 hours, stale XCTest device clones, SwiftUI preview, Interface Builder and documentation caches, archives past an age, DeviceSupport for OS versions no paired device runs, unavailable simulators, simulator, SwiftPM, CocoaPods, Gradle, npm, yarn and pnpm caches, Homebrew, `dd-*` build folders in /tmp and $TMPDIR, pipeline scratch through `gc-tmp.sh`, scratchpads of ended Claude Code sessions, merged and clean agent worktrees under `.claude/worktrees`, developer-tool folders in ~/Library/Caches, old simulator logs and crash reports, finished pipeline task logs through `prune-logs.sh`, `.DS_Store` in dev roots, and orphaned children of ended sessions. The default run measures and deletes nothing; `--apply` deletes, every category can be skipped, and every path is checked again right before it goes: no symlink is followed, the real path must sit inside the category's roots, the user's folders, iCloud, keychains, credential folders and memory folders are refused, and nothing an open file or running command points into is touched. Transcripts and the Trash are opt-in; processes are stopped only with `--apply --processes`; unattended runs keep to a safe subset. It prints free space before and after and writes a JSON report.
- New `disk-cleaner` skill in ai-common-toolkit, which ships the script.
- Low-disk suggestion: `lib/low-disk.mjs` checks free space with one statfs call against `diskCleaner.lowDiskGb` (default 10) and `diskCleaner.lowDiskPercent` (default 5), and prints one line naming the disk-cleaner skill from doctor's `disk-space` check, the SessionStart banner, and the pre-push gate when a failed step said ENOSPC. `diskCleaner.suggest: false` silences it. Nothing is deleted from any of these places.
- `note-mcp-failure.mjs` classifies `ENOSPC` and no-space errors as `disk-full`, and doctor's `mcp-failures` check names the disk-cleaner skill after one such failure.

### Changed

- `credential-store.sh set <key>` without a value reads the secret from stdin, or asks for it with hidden input on a terminal, and refuses an empty secret with usage.
- `usage-reporting.md`, the hooks template and the classifier's header give the MCP failure classes in the order the code reads them: the interrupt flag, a user or permission refusal, then a JSON-RPC code.
- `md2confluence-v3.py --image-width` help says images in a table cell stay at 240 px, and decision 18 in `locked.md` names that width for the frame gallery.
- `outside-the-pipeline.md` lists `media_video_plan` and `media_video_render`.
- Phase 2 stops retrying a build that failed for lack of disk space and prints the low-disk line instead.
- The `backlog` and `localization-reuse-map` skill descriptions are shorter, to stay under the description ceiling.

### Fixed

- The URL-credential secret pattern, the command-line DSN pattern and the outbound email rule scan a long URL-shaped line in linear time, and a URL password of any length is still caught.
- `redact` skips the fold for printable ASCII text.
- `phase-1-plan.md` counts the 37 locked analysis decisions.
- progress-contract.md names the cost check's real default rate.

## [20.41.0] - 2026-11-03

### Added

- Global learnings. `learnings-ledger.mjs promote --candidates [--json]` lists learnings that recur in two or more repositories: entries of the same kind whose statements score at or above 0.5 on word-pair shingle similarity, high confidence only. Superseded entries, entries marked `dead_end` or `corrected`, and repositories in `memory.excludeProjects` are left out. Each candidate shows its repositories, entry ids and score. It runs on request only; nothing promotes automatically.
- `learnings-ledger.mjs promote --accept <P:id>` appends one candidate, with its source ids, to the global ledger `~/.claude/memory/multi-agent/_global/learnings-ledger.jsonl` after a y/N confirmation at a terminal; end of input at the question writes nothing and exits 2. `promote --retract <G:id> --reason "..."` takes a global learning back in every repository, and `feedback --id G:<id> --outcome dead_end|corrected` hides it in one repository. All three exit 3 in an unattended or autopilot run and when stdin is not a terminal, and agent-guard asks before an agent runs any of them and refuses them unattended.
- `brief` and `profile` include global entries marked `(global)` with a `G:` pointer (`show --id G:<id>`), at every tier. Global entries hold at most a third of the block and are ordered by date among the repository's own. They are left out in excluded repositories, in their source repositories, in repositories that already hold the same learning, and in a repository that hid them. A global row with an empty statement, or a retraction without an id, is skipped. A repo slug that folds onto a name starting with `_`, or resolves to the global ledger's folder, is refused, so no repository command can write the global ledger.
- Office: the memory archive (`GET /v1/archive`) has a `global` shelf for promoted learnings. Neither `/v1/archive` nor `/v1/memory` lists a folder whose name starts with `_` as a repository.
- `/multi-agent:review-analysis` gains an opt-in persona walk (`review.personaWalk.enabled`, default off). At most four personas derived from the document walk its flows and report missing states, unhandled errors, accessibility gaps and conflicting rules.
- `persona-walk-anchors.mjs` drops every persona-walk finding whose section or quote anchor is not in the document. A quote must sit in one paragraph and is matched across emphasis, code marks and link syntax; it may land above the first numbered heading or in an unnumbered document. Section ids may be bold or follow "Section" or "Bölüm", and a numbered heading nested under a numbered section whose number it does not extend belongs to that section. Fences close only on their own marker, and fenced code is never quotable. A conflicting-rule finding needs anchors in different sections or different paragraphs, and two quotes count only when they differ. A walk is refused past 200 findings, a finding past 8 anchors, and a document over 4 MB; the document and the walk must be regular files, opened without blocking.
- New `spec-persona-walk` skill in ai-common-toolkit, which ships the anchor checker.
- `eval-persona-walk.mjs` measures the walk on a seeded-defect corpus in invented domains: recall, precision, anchor-valid rate and recall per kind. Each planted gap is credited to one finding; kept findings are split into matched, duplicates and false positives, and duplicates lower precision. The scorer check runs in `npm test`; the model run is opt-in behind the live-eval cost gate. The bar for turning the walk on is in `pipeline/eval/README.md`.
- `graph-query.mjs --tier quick|panorama|deep` and `learnings-ledger.mjs brief|profile --tier` answer in a fixed character budget (1500, 6000, 12000), fitted by `fitToBudget` in `lib/tiered-budget.mjs`. `--tier=<t>` is accepted, an unknown tier exits 64, and the graph-query tier header shows at most 120 characters of the question. Output without `--tier` is unchanged.
- `note-mcp-failure.sh`, registered by install (PostToolUseFailure on `mcp__.*`), counts failed MCP calls per server and tool in `~/.claude/logs/multi-agent/mcp-failures.jsonl`. It records only server, tool, time and a closed error class, chosen from the JSON-RPC code first, then a message that opens with "invalid" or "validation", then an HTTP status (a bare three-digit number counts only after HTTP, status or a request line, or before a reason phrase), then wording. `denied` covers permission refusals only. Off with `mcpFailures.enabled: false` or `usageLog.optOut: true`, and while the preferences file exists but does not parse. `note-mcp-failure.mjs summary` prints "server-side failures of N failed calls" per server.
- Doctor check `mcp-failures`: INFO for a server with 5 or more server-side failures in 24 hours. Invalid input, denied and interrupted calls do not count.
- `eval-tool-order.mjs` (maintainer, opt-in) reports how often local sessions followed three documented tool orders, as rates only. A session counts as a pipeline run when it is named by `--run` or started a run-starting command from the command catalog; `help`, `status` and other helpers do not count.
- `prefs.global.guardRules`: user-defined agent-guard rules (tool, regex, `warn`/`ask`/`block`, reason). They only make the guard stricter, and unattended an `ask` is a `block`. A pattern with a back-reference, or one that does not compile, is invalid. The rest match under a 1-second budget in the guard's own process: `block` rules first, then `ask`, then `warn`, each with its own share of the time left. Messages name the rule id and reason, never the matched text.
- A guard rule that gives no answer (out of time, not reached before the budget ran out, or input past 65,536 characters with no match in its head and tail) refuses unattended and asks attended when it is an `ask` or `block` rule. A preferences file that does not parse, or a `guardRules` that is not a list, applies no rule: unattended it refuses every call a rule could govern when the file names `guardRules`, and attended each such call carries a note. With prompts off, an ask on Edit, Write or a toolkit tool prints the exact `confirm-command.mjs` key: the tool, the path and a sha256 of the input. A `warn` or `ask` message is added to a built-in ask's prompt.
- Doctor check `guard-rules`: reports invalid rules by id (an invalid `block` rule refuses its tool unattended; a duplicate id names both positions), names a rule with a slow shape as INFO, and reports rules whose tool has no agent-guard registration (a `Read` rule under the default hooks, or the `NotebookEdit` half of an `Edit` rule) and a preferences file or `guardRules` value it cannot read.
- `product-tree.mjs` builds a screen layer over the code graph without a model (screens, routes, flows, localized strings, endpoints, tests) for SwiftUI, Compose (Navigation 2 and 3) and Next.js / react-router. Programmatic navigation is counted and listed per stack when it cannot be resolved. Subcommands: `build`, `locate`, `show`, an evidence-checked `propose`, and person-only `agree` / `reject`.
- Product tree input handling: the build reads only regular files inside the repository (no symlinks, devices or FIFOs) up to 2 MB, decodes UTF-16 strings files, and runs git with the repository's fsmonitor, hooks, external diff and pager turned off. A root that is a git top level takes the main repository's name, so a linked worktree shares its repository's tree, project and exclusion. `locate` and `show` print one untrusted-data block or nothing, with the no-match note on stderr, and `locate` measures its budget on the fenced text, so it stays within `--max-chars`. Both `--json` outputs strip control characters from every string. `build`, `locate`, `show` and `propose` skip repositories in `memory.excludeProjects`.
- Product tree overlay: proposal evidence must resolve, symlinks followed, to a line of a regular file inside the repository, and `--parent` must name a node or a proposal. `--name` and `--note` lose control characters before a proposal is written. Proposing the same thing again keeps a person's earlier `agree` or `reject`. agent-guard asks before any `agree` or `reject` through `product-tree.mjs` (flags before the subcommand, a variable in its place, or a renamed copy run through node or directly) and before a shell write into the overlay, compared casefolded and after resolving a symlink, and refuses a file tool aimed at `product-tree-overlay.jsonl`, attended and unattended.
- `product-tree-eval.mjs` mines bug-fix commits, rebuilds graph and tree at each fix's parent, splits by time, tunes only on the older half, and reports Acc@k, recall@k, MRR, an exact McNemar test (summed in log space, so it holds past 1023 discordant pairs) and bootstrap intervals. It reads repository files under the same rules as the build and keeps non-ASCII paths.
- `prefs.global.productTree` (off by default). When on, Phase 0 builds the tree when it is missing or behind HEAD and locates the task, and Phase 1 injects the subtree, capped by `fitToBudget` at `productTree.maxChars` (default 6000) characters.

### Changed

- `/multi-agent:review-analysis` verdicts always print a G (persona walk) row: its count, or `off` when `review.personaWalk.enabled` is false.
- The learnings near-duplicate check, like the new promotion measure, treats curly apostrophes, every n't form, "cannot" and Turkish -me/-ma verb negation as negations, past, reported past and imperative forms whose suffix vowel follows the stem included, and reads words of any script whole.
- The learnings-ledger schema accepts `source: promotion`, `promoted_from` and `retracts` on global ledger rows.
- Doctor's hook-registration check counts a non-empty `guardRules` as needing `agent-guard.sh`.
- Shorter descriptions for `backlog`, `localization-reuse-map`, `storekit` and `swiftdata`, so the skill description surface stays under 96000 bytes.

### Fixed

- Confluence pages: an image inside a table cell renders at 240 px wide (`TABLE_IMAGE_WIDTH` in `md2confluence-v3.py`) instead of the 720 px page width, unless its own title names a width (`"width=400"`); images outside tables keep the page width.

### Security

- The skill-usage log and the MCP failure log share one append and rotation path through safe-write, each log under its own lock. A FIFO, link or directory at the log path drops the row instead of redirecting it, throwing or holding the hook. A writer that finds the rotation lock held waits briefly for the rotation, and a log still full afterwards, or one whose `.1` is a directory, drops the row, so neither log grows past its 1 MiB cap. The MCP summary reads only regular files.
- Learnings: statements, rationales and scopes lose C0 and C1 control characters when added and when printed, so an escape sequence cannot hide what a person approves. A repository folder that is a symlink, or whose real name starts with `_`, is refused. Ledger and feedback files are opened without following a link or blocking, must be regular files, and are read up to 16 MiB from the newest end.

### Docs

- ADR-0019 (Accepted, ships off, M0 verdict NO-GO): on 230 held-out bug fixes the product tree did not beat graph-only ranking (recall@10 46.5% against 47.1%, McNemar p = 1.0). It and the product tree page say the guard asks before an `agree`, a `reject` or a shell write into the overlay and refuses a file tool aimed at it.
- README: "Hooks per host" lists `note-mcp-failure.sh`, and "Your own guard rules" documents `guardRules`.
- Help lists Global Learnings under Key Features, with `--retract` and feedback on a `G:` id, in English and Turkish.
- `usage-reporting.md` section 10 and the hooks template say each local log rotates under its own lock, and give the MCP failure classifier's order with the `invalid` / `validation` opening read before an HTTP status.
- `docs/ecosystem.md` no longer carries hand-typed plugin skill counts and versions.

## [20.40.0] - 2026-11-03

### Added

- Office: a control panel station in the server room. It lists every Claude Code session with its current work, last step, tokens in, out and cached, estimated cost and duration; today's tokens and estimated cost per model; and six health lights (doctor, hooks, toolkit, last gate, recurring error-ledger tags, autopilot). The lights and today's totals come from `health-report.mjs`'s JSON, never probed and reused for two minutes; the server racks on the floor carry a light that turns red, blinking, when any health section is red. New local-only route `GET /v1/server-room` (`office-server-room.mjs --json`), contract 1.10.0.
- Office: a memory archive station in the archive room. Per repository it shows the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired are left out and counted, as `brief` and `profile` leave them out), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Every text is redacted and cut short. New route `GET /v1/archive` (`office-archive.mjs --json`), local-only like `/v1/memory` and `/v1/server-room`; a test holds that the phone route family has no verb for any of the three, that a device signature opens none of them and that the remote client never forwards them.
- Office: installable as a web app (Add to Dock on the Mac, Add to Home Screen in Safari). The server serves a manifest at `/office/manifest.webmanifest` (standalone, the HUD colour, the page language), the page links it with an `apple-touch-icon` and the Safari meta tags, and the layout keeps clear of every safe-area inset. The 180, 192 and 512 pixel icons are drawn by `office-build.mjs` from the first character sheet and held to it by `--check`. The panel CSP gains only `manifest-src 'self'`; every link stays under `/office/`. There is no service worker, so nothing is cached and a launch still needs a fresh code from `/multi-agent:office-on`.
- Office Web Push: a paired phone can be notified that a question is waiting or that a run finished, and nothing more. The machine client sends one padded code, encrypted per RFC 8291 with a VAPID token (RFC 8292) signed on `node:crypto` (`lib/web-push.mjs`), straight to the push service; the subscription reaches the machine only as a sealed, passkey-bound phone verb (`office-push.mjs`). Off until `office-pair.mjs push on <device>`; `push keygen` keeps the VAPID key in the Keychain as `office_push_vapid`; revoking a device deletes its subscription; rate-limited and audited in `remote-frames.jsonl`. See `features/office-remote-protocol.md`, Web Push.
- `/multi-agent:health --lang en|tr`: the text report renders in the given language, else `outputLanguage`, else English. Every section of `--json` carries `message {id, params}` beside its English `reason`, from the catalogue in `lib/health-messages.mjs`; the office server-room lights render the same catalogue in the page's language.
- `smoke-pipefail-early-exit.sh`: fails on a pipe into `grep -q` (one line or a continuation), on a capture ending in `head` or `grep -m` whose status is chained, and on `head` or `grep -m` behind a pipe in a `set -e` smoke.
- `test/unattended_policy_properties.py` (stdlib, fixed seed, run by `test/unattended-policy-properties.test.mjs`): random toolkit calls built from the declaration, checking writes and reads inside and outside the allowed locations, unknown tools, undeclared arguments, `..`, `./`, `//`, trailing slashes, `~` and `$HOME`, letter case on darwin, and real symlinks.
- `lib/glob-match.mjs`: the owned-path glob matcher as a leaf module with no pipeline imports; `owned-path-gate.mjs` re-exports it. `test/lib-import-graph.test.mjs` fails on any static import cycle among `pipeline/lib` and the `scripts/_*` helpers.
- `lib/cli-help.mjs`: every script CLI answers `-h` and `--help` with its usage and exit 0, and prints only its leading comment block, never a generated block below it.
- `MULTI_AGENT_CROSS_REPO_REQUIRED=1` makes `gen-free-hosts.mjs --check` and `gen-toolkit-path-params.mjs --check` fail when no toolkit checkout is found; both name the checkout, branch and commit they compared. `pre-push-check.sh` sets it, and `MULTI_AGENT_TOOLKIT_DIR` overrides the lookup.
- `smoke-pack-contents.sh` diffs the exact packed file list against `pipeline/scripts/fixtures/pack-files.txt` and reports a `files[]` negation that matches nothing as inert.
- Shared libs `lib/args.mjs`, `lib/slug.mjs` and `lib/prefs-value.mjs` hold the flag parsing, slug and preferences lookups, and `test/shared-lib-ratchet.test.mjs` fails on a new hand-rolled copy (43 argv loops and 2 preferences paths are listed as pending migration).
- `sync-skill-copies.mjs` keeps every file shared across skills (`skill-copies.json`) in one source; `npm test` runs its `--check`.
- The review's test-gaming scan reports a `lint-suppression` shape: an added inline suppression (`swiftlint:disable`, `swift-format-ignore`, `eslint-disable`, `@ts-ignore`, `@ts-expect-error`, `biome-ignore`, `@Suppress`/`@SuppressWarnings`, `ktlint-disable`, `# noqa`, `# type: ignore`, `# pylint: disable`, `# pyright: ignore`, `//nolint`, `#[allow(`, `rubocop:disable`), matched per language in comments only, is blocking, or important when the line states its reason. A loosened lint config (SwiftLint, ESLint, golangci, detekt, RuboCop, ruff/pylint/flake8 sections, ktlint `.editorconfig`, `.swiftformat`) is flagged too: a rule turned off, downgraded or removed, a disable list grown, or a threshold raised.
- `learnings-ledger.mjs add --supersedes <id>` (repeatable or a comma list, at most five) records the earlier entries a new one replaces without rewriting the append-only ledger. It refuses an unknown id, an entry recorded after now, the entry itself and a link that closes a cycle. `brief` and `profile` leave a superseded entry out, `timeline` rows and `show` give `superseded_by`, and `stats` counts `superseded`. The office memory archive leaves superseded entries out and counts them separately from retired ones.
- Skill calls are counted in a local log (`~/.claude/logs/multi-agent/skill-usage.jsonl`): skill name, outcome, time, host and repository folder name, plus a format version; never arguments, prompts or output. One writer rotates the log at a time, under a lock, so two hooks firing together never lose the older generation. `skill-usage.mjs summary [--days N] [--json]` shows per-skill counts, the installed skills not called in the window and where the log starts (`coverageStart`, `coversWindow`); `prune-candidates [--days N]` lists the unseen ones with their last use and names none while the log is younger than the window. The installed list holds every skill of every plugin the multi-agent-plugins marketplace lists, at any depth under the plugin's `skills/`, named `<plugin>:<folder>`; rename aliases are left out and a call under an old name counts for the new one; everything under `~/.claude/commands` is reported as not observable and is never a candidate, because a typed slash command makes no Skill tool call. Nothing is deleted. The office server room shows the skills used in the last 30 days, locally only. Off with `skillUsage.enabled: false` or `usageLog.optOut: true`.
- `pipeline/lib/mcp-config-audit.mjs` classifies each MCP server's launch selector offline as pinned, floating, mutable, local, remote or unknown (npx and other package runners, git specs, uvx and pipx, container images, go run, deno, remote URLs) and reports literal secrets in env, headers, arguments or URLs with the value masked. JSON, JSONC and TOML `mcp_servers` are read without a dependency. The toolkit's new `security_mcp_config_audit` uses the same module.

### Changed

- `pipeline/lib/repo-profile.mjs` and `repo-profile-derive.mjs` no longer import each other: the schema version and `mainRepoRoot` live in the leaf module `repo-profile-root.mjs`, which both import. `repo-profile.mjs` re-exports both names, so callers are unchanged.
- `validate-analysis-doc.mjs` runs its checks as 27 named functions from a table in report order (33 report rows); the checks live in six `_analysis-doc-*.mjs` modules next to it (structure, markers, diagrams, rules, redesign, shapes). Output and exit codes are unchanged, pinned by `test/validate-analysis-doc-golden.test.mjs` over 94 documents. `smoke-validate-analysis-doc.sh` and `smoke-locked-citations.sh` read the modules along with the validator.
- `contract-server.mjs` is the server core only: it checks a request in the security-model order through named entry points and looks the route up in `ROUTES`, a table of entries defined in six per-family modules (`_contract-routes-runs`, `-catalog`, `-repos`, `-ops`, `-office`, `-work`), with the shared pieces in `_contract-core.mjs` and the panel page in `_contract-office-page.mjs`. The served surface is unchanged: `ROUTES` keeps its order and fields, every export stays, and `test/contract-server-golden.test.mjs` pins every request across every route, method, entry point and refusal. `smoke-office-single-source.sh` reads the route modules along with the server.
- The office panel's script is split by concern into `pipeline/office-src/app/` (strings, core helpers and the API, floor, HUD and windows, activity data, one file per group of station panels, the company, the demo, start). `office-build.mjs` concatenates them in the order `APP_MODULES` lists into the same single inline script; each module names what it shares through `/* global */` and `/* exported */` lines, which the build leaves out of the page. The page runs the same code as before.
- The unattended guard confines toolkit parameters from the toolkit's own declaration instead of guessing from names. `pipeline/schemas/toolkit-path-params.json` lists, per tool, the parameters it writes to and the paths it reads, generated from the toolkit's `tool-manifest.json` (3.29.0) by `pipeline/scripts/gen-toolkit-path-params.mjs`; `npm test` runs its `--check` against a sibling toolkit checkout and skips with a message when there is none. A declared write is checked against the protected paths and the credential stores, a declared read against the credential stores, `$HOME` itself and the host roots. So `document_pdf_inspect.path` may read a file under a repo's `.claude/`, while `web_trace.path` and `ios_xcodebuild.derived_data_path` are checked as writes. Any path-named argument a tool does not declare, and every one on a tool missing from the file, is still checked as a write. For a tool the declaration does not list, every argument string that looks like a path (absolute, `~`, `$HOME` or climbing with `..`) is read-checked; on a declared tool, a path-looking string in an argument the declaration does not list is read-checked unless a text-like key names it (`TOOLKIT_TEXT_KEYS`), so a certificate or render path the declaration missed cannot reach a credential store, and the pass-kit signing files are declared reads. An object or a list in a declared read that also takes inline data is judged by the path-looking strings inside it, so `security_evidence_check` and `security_sarif_export` findings, `design_contrast_check` tokens and a `coverage_gap` inventory run unattended. `doctor --probe` warns when the served toolkit version differs from the declaration's `toolkitVersion`.
- Unattended credential denies: a toolkit write can no longer target `~/.aws`, `~/Library/Keychains` or `~/.docker/config.json`, and a toolkit read can no longer reach those, `~/.ssh`, `~/.gnupg`, `~/.netrc`, `~/.git-credentials` or the host roots. The unattended profile and the toolkit guard also deny reads of `~/.kube`, `~/.config/gcloud`, `~/.azure`, `~/.config/op`, `~/.terraform.d`, `~/.pypirc`, `~/Library/Cookies` and the Chrome, Firefox and Safari profiles under `~/Library/Application Support` (a `Read()` deny, a sandbox `denyRead` entry and the guard's read check). The guard's credential-store list, the profile's `Read()` denies, the sandbox `denyRead` list and `MCP_TOOLKIT_INDEX_DENY` cover `~/.android/adbkey`, `~/.appstoreconnect`, `~/.private_keys`, `~/private_keys`, `~/.config/configstore`, `~/.config/github-copilot`, `~/.local/share/gh`, `~/.zsh_history`, `~/.bash_history`, `~/.gradle/gradle.properties` and the Edge, Brave, Arc, VS Code and Vercel CLI folders under `~/Library/Application Support`. The index deny list is the guard's list plus the contract server and office directories, pinned in every `launch.json` shape and forced on the office's toolkit child; a parity test fails when one drifts. Existing installs pick up the new denies through `tightenUnattendedProfile`. The sandbox also denies reads of all of `~/.gradle` (credentials, init scripts, the configuration cache key store, daemon state) and of `~/.local/share/gh`: the profile points `XDG_DATA_HOME` at `~/.multi-agent-unattended-homes/xdg-data`, rebuilt before each launch as links to the operator's data entries without gh, and each run gets its own Gradle home under `~/.multi-agent-unattended`, set per launch and removed after the run, into which it downloads its dependencies, Gradle distribution and JDK toolchains; no Gradle cache is shared with a run. The sandbox no longer allows writes to `~/.gradle`, and every install records the mirrored data directory in `~/.claude/multi-agent-unattended.tool-homes.json`. Gradle builds that need credentials from `~/.gradle/gradle.properties`, and gh extensions, are not available unattended, and `~/.gradle/init.gradle(.kts)` are denied for writes. As a second layer `check_bash` refuses Bash reads of either path, globs over-approximated, shell options that widen globs, local web servers and recursive or archiving reads (`grep -r`, `rg`, `tar`, `cp -R`, `zip -r`, `fd -x`, `pax -w`, `7z a`, a home-rooted `find` into `cpio`) rooted at `$HOME` or above; the Gradle `properties` task is refused. A grep or rg pattern and option values are not read as roots, and `$(pwd)`, `$(git rev-parse --show-toplevel)` and unset variables are accepted as roots.
- Every secret detector (commit hook, outbound gate, agent-config and skill scanners, memory-store rejoin prefixes) is generated from `secret-patterns.json` by `gen-secret-patterns.mjs`; `npm test` runs its `--check`. Block messages name each pattern by its generated label (a `ghp_` token is reported as a GitHub token).
- The free-model sandbox hosts are generated from the toolkit's provider catalog by `gen-free-hosts.mjs` into `lib/free-hosts.generated.mjs`; `npm test` runs its `--check`.
- Eight knowledge skills have sharper trigger descriptions, each naming when to use it and which sibling skill to use instead: `app-store-release-notes`, `swift-testing-review`, `swiftdata-review`, `macos-menubar-utility`, `macos-app-distribution`, `swift-concurrency-fix`, `swiftui-glass-effects`, `tailwind-styling`. The descriptions of `app-store-review` and `skill-creator` are shorter, and twenty-three skill descriptions are single-line and shorter. The always-on description surface counts block-scalar descriptions by their text, and its budget is 96000 bytes.
- The untrusted-data fence takes extra attributes on its opening line.
- Every contract route declares its remote tier, and the server refuses to load a route without one; the resolved tiers are unchanged. `officeLang` lives in `_contract-core.mjs`, so route modules depend only on the core.
- Scripts read the preferences override variable name from `PREFS_ENV` in `lib/prefs-value.mjs`.
- The health gate line shows local time ("2 Nov 09:34", "2 Kasım 09:34'te"); `--json` keeps the ISO value. `health-report.mjs` usage errors say what was wrong (unknown language, unknown flag, missing `--lang` value) in the output language, and `--lang=<code>` is accepted.
- The server room's doctor light no longer counts hook warnings the hooks light already shows, so the rack agrees with the health report.
- Doctor and the credential inventory mark `office_push_vapid` as generated and name `office-pair.mjs push keygen` as its remedy instead of setup; `migrate-prefs` adds its keychain mapping slot on upgraded installs.
- Turkish office and health wording: informal address throughout, one term (Otopilot) for the mode, and clearer rack, archive and runner lines. The office page's tab title and Home Screen name follow the page language.
- Installer output drops internal tags, uses the colon command form (`/multi-agent:setup`), says "Preferences already exist", and an upgrade prints what it upgraded from and to.
- Uninstall stops the office server and the remote client before removing files, names the kept `office_push_vapid` key and the paired devices, removes them only under `--all-data`, words a dry run as what it would do, and plans MCP removal only on hosts that are installed.
- `office-build.mjs` prints its usage for `--help` and refuses unknown arguments before writing anything.
- READMEs describe the server room panel, the memory archive, installing the office page as an app and phone notifications; the office-pair row mentions `push`, the health row `--lang` and the last gate.
- The config-hygiene scan (`scan-agent-config.sh`) judges MCP launch selectors through `mcp-config-audit.mjs` instead of flagging every `npx -y`: floating or mutable selectors and plain-http servers are MEDIUM, a literal secret is HIGH and its value is never printed, and a pinned launch is not reported. Outside MCP configs a bare `npx` is reported only with `-y`, `--yes` or `-p`.
- `constitution.mjs` exports `LINT_FILES`, so the constitution and the test-gaming scan agree on which files are lint configuration.
- `gen-fact-marks.mjs` also reads `pipeline/rules`, so the MCP tool count in `outside-the-pipeline.md` is rendered from `docs/facts.json`.
- 41 CLI scripts and the Claude Code and Codex installers read arguments through `lib/args.mjs` and the preferences path through `lib/prefs-value.mjs`, with unchanged flags, messages and exit codes. `lib/args.mjs` gains an `onArg` hook for checks made in argv order. `match-skills.mjs` and `package-manager.mjs` keep their own loops because they run copied without `lib/`.

### Fixed

- Unattended guard: `ios_xcodebuild` `extra_args` is split as the shell will and each path flag's value is checked (`-project`, `-workspace`, `-xctestrun`, `-exportOptionsPlist` as reads; `-derivedDataPath`, `-resultBundlePath`, `-archivePath`, `-exportPath`, `-clonedSourcePackagesDirPath`, `-packageCachePath`, `-resultStreamPath`, `-testProductsPath` as writes). An unknown flag ending in `Path` or `Dir`, a missing value, `-xcconfig`, `-toolchain` and an uppercase build-setting override are refused, and so are glob characters, `~`, quotes, shell characters and any character outside printable ASCII, space and tab anywhere in `extra_args`, so neither a pattern such as `-xcconfi?` nor a U+FEFF separator can turn into a refused flag after the check. The string is split on space and tab only, as the toolkit splits it; the list form gets the same path checks. Unattended, `extra_args` follows an allowlist of xcodebuild flags and refuses `=`, padded list entries and flag entries holding a space. The list form accepts Swift test identifiers with parentheses and repeated `-destination` entries, and the test-enumeration flags and `-skipUnavailableActions` are allowed.
- Unattended guard: a refused toolkit write into a credential store says the run does not write it, not that it does not read it.
- `pre-commit-check.sh`: staged and unstaged scans read diffs with `--text --no-ext-diff --no-textconv` and the repository's attributes neutralised, so a key in a `-diff` or `binary` file, behind a textconv or behind `diff.external` is scanned. Staged files are decided from the index: a key staged and then deleted or overwritten in the working tree is scanned, binary content (numstat `-`) is scanned whole from the index blob, and NULs no longer turn added lines into "Binary file matches". The range scan's attribute override uses `attr.tree`; its `--attr-source` diff-tree option was a usage error that sent every file to the whole-blob fallback.
- `pre-commit-check.sh` reads its secret and git-command matches, and the non-ASCII test before the look-alike fold, from here-strings, so under `pipefail` a secret near the top of a large staged file is no longer scanned clean when `grep -q` exits early, and SIGPIPE no longer skips the fold. The same applies to the skill scanner, the issue-progress comment check, the worktree lists, the `launchctl`, `simctl`, `firebase` and marketplace probes, and intent classification; the same early-exit pipes are gone from every shipped shell script, and `smoke-pipefail-early-exit.sh` now scans every `.sh` under `pipeline/`, not only the smokes.
- Office push: `push keygen --rotate` writes only when the probe says the key is readable or missing, never over a locked or unknown one. A refused Keychain write names the store's exit code and first error line (the key cut out) and the next step; a malformed or unpaired device id points at `phone-devices.mjs list`; `push status` carries a `hint` with the keygen command when there is no key.
- Web Push: a VAPID private key must be canonical base64url (40 to 43 characters, standard padding allowed), 30 to 32 bytes, and satisfy 1 < d < n; `"AQ"` and keys with characters outside the alphabet are refused instead of loading as another key.
- `eval-skill-triggers-live.mjs` asks the routing question with the host's skills, plugins and MCP servers turned off (`--disable-slash-commands`, `--strict-mcp-config`). With them on, a model could answer with an installed command or a prefixed tool name that is not in the catalog under test, which scored as a miss.
- `smoke-bulk-read-free.sh` matches the captured worker output without piping it into `grep -q`. Under `pipefail` that pipe failed a check whenever grep exited on its match before the writer finished (`printf: write error: Broken pipe`), so a loaded machine failed a correct read at random. A check in the smoke fails if such a pipe comes back.
- An AWS key id (`AKIA`/`ASIA`) that runs on into more key characters is matched by the commit hook, the outbound gate and the agent guard's command-line scan.
- `ownedPaths` derivation matches how the owned-path gate reads globs: a slash-free pathspec naming a tracked path is read, a tracked file stays a file instead of becoming `<file>/**`, and an exception under a wildcard entry is attached to every entry that covers it.
- 131 smokes read a pipeline's output without piping it into `grep -q` or `head`, so a match found before the input ends no longer fails the check through SIGPIPE under `pipefail`.
- `skill-siblings.mjs` and doctor skip a host with no `.pipeline-version`, so a Claude-only install is no longer yellow for Copilot and Codex surfaces that are not installed.
- `office-archive.mjs` text mode prints a sentence when no repository has anything recorded.
- `gen-ref-toc.mjs --dir <missing>` and `run-aggregator.mjs --task-dir` with no value print a one-line error and exit 2 instead of a stack trace; `routine-registry.mjs add --name=bar` names the accepted spelling instead of printing undefined.
- `office-control.mjs` reads paired devices from the phone registry, so its status and `on --json` report the same remote state.
- The contract golden test seeds its own `TMPDIR` and normalizes the seed's real path, so it no longer depends on the host's pre-push stamp or the macOS `/private` prefix.
- `swiftdata` names `core-data` in its Not-for clause, so a question about an existing Core Data store routes to `core-data` instead of `swiftdata`.
- `health-report --lang=--x` stops with "--lang needs a value" instead of never returning.
- `transcript-index` reads a file named like an `Object.prototype` key (`constructor`, `toString`) as a transcript file, not as a numeric option.
- The skill-usage hook reads the repository folder from the file system instead of a git child process, so a row keeps its `repo` field under load.
- The lint-suppression scan runs in linear time on long lines and skips config lines over 4 KB. A scan that throws is reported as `gaming.scanned: false`, `--out` is still written, and Phase 3 Step 1.76 turns a failed or missing test-integrity result into a blocking "gate unavailable" finding.
- A renamed source file or lint config no longer reports its existing suppressions or rules as new, generated and vendored paths (the review file exclusions) are skipped, and a directive counts only at the start of a comment. Config loosening also covers an added list item with no visible parent (important), entries dropped from `select`, `opt_in_rules` or `extends`, and golangci `disable-all` / `default: none` (blocking); keys pair by section and parent, and `[[array.of.tables]]` ends a section. Directives added: ruff and flake8 file `noqa`, `mypy: ignore-errors`, `@ts-nocheck`, ESLint inline `rule: 0|off`, `@SuppressFBWarnings`, `noinspection`, `CHECKSTYLE:OFF`, and `NOLINT` for C, C++ and Objective-C.
- The MCP config audit never echoes a secret value: one sanitiser covers every selector, reason and name, an unknown launch names only its launcher and an unparsable URL only its scheme. Secrets are also found in `env` and `VAR=` prefixes, `bash -c` strings, bare `KEY=value` arguments and after `--api-key`-style flags. Its TOML reader cannot write to `Object.prototype`, malformed JSON is reported by line and column only, and echoed strings are capped at 4 KB.
- MCP selector classification: uvx git specs with a `#subdirectory=` fragment, every value-taking `docker run` option, `npx --loglevel` and `pkg@=1.2.3`. The audit CLI reports an unreadable file as HIGH and keeps going, and `scan-agent-config.sh` reports a failed audit as HIGH.
- The file-context hook skips superseded ledger entries.
- Pre-commit reads a staged binary from index stage 0, so a file named like `1:key.bin` is scanned.
- The install summary says "downgraded" for an older version and names an unreadable previous version instead of printing `null`.
- The MCP config audit's TOML reader reports a type clash by line only, never with a value from the file, parses literal strings in linear time, and the audit masks token-like URL path segments and `;` parameters.
- `test-integrity-gate.mjs` removes its `--out` before it runs, so an earlier iteration's file is never read as current, and no longer overflows the stack on a large diff. `review-decision-gate.mjs` treats an unscanned test-integrity result as a gate error, and autopilot never lowers a `gate_error` blocker.
- Lint-suppression pairing: each removed line excuses one added line, config lines pair only within one file or a renamed pair, so a rule moved into another config file is reported, and a line whose code changed while it kept its suppression is not reported as new. SwiftLint, pylint and clang-tidy `NOLINT` directives are read anywhere in a comment, and a JS/TS regex literal containing `//` no longer hides a directive on the same line.
- Lint config loosening reads glob, quoted and trailing-comment list items and every rule of an inline ESLint config (`off` blocking, `warn` important). A lowered minimum (`min_length`, `min-public-methods`, `MinNameLength`), a raised report floor (`min-complexity`, `min-len`, `min-occurrences`, `min-confidence`, `min-similarity-lines`, dupl `threshold`) and a golangci issue cap set to 0 (unlimited) are reported; a nested `warning` or `error` whose parent key is neither in the hunk header nor readable is reported as important. Directives after division, a JSX self-closing tag or a postfix operator are read. With `--diff-base` the gate reads a list item's parent key from the working tree when the diff leaves it out.
- The office skills panel says the usage log is younger than the window, and from which date the unused list means something, instead of an unused count that `prune-candidates` does not back. The server-room contract adds `skills.coversWindow` and `skills.coverageStart`.
- The install summary orders pre-release versions by semver, so `rc.9 -> rc.10` reads as an upgrade.
- `review-decision-gate.mjs` no longer trusts `.pipeline/test-integrity.json`, which the run can write. With a diff base (`--diff-base`, else `state.baseBranch`) it re-runs test-integrity itself, uses that result, and puts a blocker that triage dropped back into `accepted[]`; without one, a `test_integrity` blocker stays blocking. An empty `--integrity` file exits 3.
- The MCP config audit masks path segments, subdomain labels and bare fragment words of 16 or more characters that look random, whatever their characters; names, git refs and full commit SHAs stay readable. Arguments nested deeper than 64 levels give a one-line error instead of a RangeError.
- The skill-usage hook reads `.git` and `commondir` only when they are regular files of at most 4 KiB, so a FIFO or device there never blocks it.
- `smoke-npm-scope-pinning.sh` reads a line that is only a string literal as printed text, so a message array holding an install hint is not taken for a call.
- `test-integrity-gate.mjs --out` must be a regular file inside `--repo`, which must be a git work tree root (default: the cwd's work tree), and is written through a temp file and rename; `review-decision-gate.mjs` reads its re-run from the gate's stdout. Phase 3 Step 1.76 states that an unscanned test-integrity file parks the run.
- Pipeline output flags (`--out`, `--output`, `--json-out`) are checked as writes by the unattended guard when their value resolves.
- Unattended tool homes: the data directory lives under `~/.multi-agent-unattended-homes`, which no run can write, and is rebuilt before each launch. The refresh never follows a link, discards through a quarantine with one rename, checks the placed data directory, and never throws on a leftover it cannot remove; concurrent launches no longer fail with EEXIST. Nothing is ever deleted where a run can write it: a directory whose mode stops the rename gets u+rwx after a device and inode check and one retry, else it is left for a later sweep. The quarantine is deleted one directory entry at a time with the budget checked per entry, so removal memory does not grow with a directory's width. Install makes the run root and its four shared directories, and migrates the old `~/.multi-agent-unattended` layout without following links. It writes the data-directory record through a temp file and a rename, records the migration as pending before it starts and clears it only once all of it is gone, and waits while an unattended run may be at work: a session listed with a live process, a parked one, one missing for under a day, or an empty or unrecognised list counts as one. It moves old entries relative to a working directory checked by device and inode. `tightenUnattendedProfile` removes every `GRADLE_` variable from the shared profile.
- Hooks and launcher code outside the sandbox write a run's state directory, `~/.multi-agent-unattended/logs`, `pr-requests` and the run directory through `lib/safe-write.mjs`: temp files with `O_CREAT|O_EXCL|O_NOFOLLOW` and a random name renamed into place, appends with `O_APPEND|O_NOFOLLOW` and an fstat regular-file check, a link at any component below the run root refused, so a link a run plants beside its state is never written through. Shell scripts that run outside the sandbox (`phase-tracker.sh`, `log-metric.sh`, `audit-log.sh`, `gc-abandoned.sh`) make those writes through `scripts/run-write.mjs`. The publish step reads the PR request with `O_NOFOLLOW` within the run requests directory, and the runner readies the requests directories without following a link.
- Each unattended run gets a fresh Gradle home, `~/.multi-agent-unattended/run-<session>-<random>/gradle-home`, built where no run writes and holding only `org.gradle.daemon=false` in `gradle.properties`, and is launched with its own settings file, `~/.multi-agent-unattended-homes/launch/<session>.json`: the installed profile with that run directory added to `allowWrite` and `GRADLE_USER_HOME` and `GRADLE_OPTS=-Dorg.gradle.daemon=false` added to `env`. No Gradle cache is shared with a run: each run downloads its dependencies, its Gradle distribution and its JDK toolchains. The shared profile no longer lets a run write `~/.multi-agent-unattended`, only its `logs`, `pr-requests`, `repo-profiles` and `toolkit-index` directories, so a run cannot write another run's home or change the run root. The launch precondition refuses a launch without `MULTI_AGENT_SESSION_ID`, one whose argv `--session-id` differs from it, or one carrying any other `GRADLE_` variable, and accepts exactly that session's file and home. The runner removes the home and file once the session ends, the office sets it aside into the quarantine once the session list it polls shows a job's session ended, and a later launch sweeps the rest: a session listed with a live process keeps its run directory whatever its age, a listed session whose process is gone or one missing from a readable, non-empty list for a day has ended, and anything else goes after 7 days. Removal budgets are 2 s / 200000 entries at launch and 60 s / 2000000 after a run and at install, where the quarantine is also drained. The operator's `GRADLE_OPTS` and other Gradle variables do not reach a run. `~/.multi-agent-unattended-homes` is in `denyWrite` and the Edit denies as a whole.
- The unattended guard refuses Bash writes into `~/.gradle` and everything under `~/.multi-agent-unattended-homes`, including a link entry itself, and moving or removing a directory above `~/.multi-agent-unattended-homes` or the PR requests directory. It refuses `env -i`, `env -u` of any protected variable (every `MULTI_AGENT_*` included) and `su`, and protects `~/.config/multi-agent-pipeline`, the file `MULTI_AGENT_PREFS` names and `~/.config/multi-agent-toolkit`; the two `~/.config` directories are also in the profile's denyWrite and Edit denies, and moving or removing a directory above any of the three is refused. It reads env long options as GNU does (any unique prefix) and as BSD does (`--X` is `-` followed by X), refuses every long option except `--null`, `--debug`, `--help`, `--version`, `--list-signal-handling` and the three signal options spelled exactly, reads `genv` and `gnuenv` like env with GNU-accurate refusals, refuses `genv`/`gnuenv` `-a` (also in a cluster) as `--argv0` is refused, refuses `env -P`, refuses `env -u` with a name the shell rewrites, and refuses writes under another session's run directory. It judges zsh `emulate -c` like `zsh -c`, refuses `emulate -o <glob option>` and `emulate ksh|sh|bash`, strips `noglob` and `nocorrect`, and refuses `sched`.
- `lib/safe-write.mjs` accepts a path spelled in another case or Unicode form from the disk (`/users/...`, a wrong-case leaf, NFC to an NFD directory). Anchors and the pinned directory with each parent up to the anchor are compared by device and inode, not by spelling, and a link below the run root is still refused, through an operator's link into the root as well. The earlier working directory is restored by device and inode, falling back to the home directory, so the process is never left in a run's directory.
- `gc-abandoned.sh` (office gc apply, runner daily report) salvages and marks a run's state through `run-write.mjs abandon`; a run whose state directory holds a link, or whose state resolves outside the run root, is left alone, reported as `refused` with the reason and counted in the summary line. It never runs git inside an unattended run's worktree (state below the run root, `--unattended`, or named in the runner's `worktrees.jsonl`): the run is marked abandoned and the worktree kept as `kept-unattended`, because `git status` and `git stash` run the clean filters the run's own config names. Registration is read from the main repository by an explicit `--git-dir`.
- `phase-tracker.sh` takes its lock, reads, writes, repoints `.tracker-current` and appends spans through `run-write.mjs` when the tracker is below the unattended run root, under `MULTI_AGENT_UNATTENDED=1`, or with `TRACKER_SAFE_WRITE=1`, which `task-mirror` sets. `mv`'s flag is probed once, and temp names no longer fork `od` and `tr`.
- The unattended guard refuses `env -a` and `--argv0` under every env name (`env`, `./env`, Homebrew's `gnubin/env`), not only `genv` and `gnuenv`.
- `log-metric.sh` and `audit-log.sh` append through `run-write.mjs` below the unattended run root, and the audit trail there rotates through `run-write.mjs rotate`, one rename to `audit.jsonl.1` at `AUDIT_ROTATE_AT_BYTES`, keeping two generations.
- The office sets an ended job's run home aside into the quarantine with one rename instead of deleting it inside the `/v1/activity` request.
- Prose says "required" instead of "mandatory".
- `run-write begin` checks its deadline on every pass, reclaims at most three stale locks, and removes a file, FIFO or link planted at `<tracker>.lock`, so it no longer waits forever on one; the task-mirror hook kills `phase-tracker.sh`'s whole process group on its timeout.
- `ma_under_run_root` resolves a relative path against the working directory and stops at `/`, so a relative `LOGS_ROOT` no longer hangs `log-metric.sh`; a directory that exists but cannot be entered counts as below the run root.
- `phase-tracker.sh` takes `.tracker-current` below the run root only when it names a `tracker-state.json` below the same log root, reads it and the unlocked state without following a link, and prints the reason run-write gave for a refusal. It reads `mv --version` from a here-string, so the GNU probe no longer fails through SIGPIPE under pipefail.
- The skill-usage log rotates through safe-write (size, lock and rename), so a link at the log, `.1` or the lock is never followed.
- `capture-flush.sh` reads an unattended run's triage as a regular JSON file within its run directory and never names the store from the state's `project`.
- The autopilot runner and `autopilot-control off --now` no longer stash or inspect an unattended run's worktree. The runner removes a retired run's worktree only when its own publish step, in that retirement, returned `pr-opened` or `pushed-awaiting-pr`; a PR or publish outcome the run's state claims is not enough, and a publish step that threw or was skipped keeps the worktree (`keptWorktree` in `attempted.jsonl`). Untracked files in a delivered run's worktree are removed with it, because the publish step's last check covers tracked files only. `autopilot-off --now` (and `POST /v1/autopilot/off`) returns `keptWorktrees`, the worktree of each item it ended. Removal goes through the main repository by `--git-dir`, resolved with `rev-parse --git-common-dir` so a repository that is itself a linked worktree is accepted; `run-kill` removes the same way. A worktree whose run did not deliver stays until it is removed by hand, as does one a run locked or whose `.git` file it rewrote.
- `run-write.mjs` has `read`, `rotate` and `--within <root>`; without `--within`, a target spelled inside the run root is held to it, so `..` or a link out is refused. Exit 3 names its reason (`link`, `too-large`, `not-a-directory`, `not-a-regular-file`, `exists`, `outside`). `lib/run-worktree.mjs` checks and removes a run's worktree from its main repository without running git inside it.
- `capture-flush.sh` no longer leaves a temp file behind on every flush of an unattended run: the private triage copy is made once, where the exit trap removes it.

### Removed

- `test/fixtures/gen-toolkit-path-params.mjs` and its `toolkit-path-params.json`: the regex guess at the toolkit's write parameters is replaced by the vendored declaration.
- Upgrade cleanups that every install at the supported floor (20.17.0) has already run, since each has run on every install since 20.3.0 or earlier: the removal of trees no installer writes any more (`~/.claude/eval`, `~/.claude/multi-agent-tasks`, `~/.claude/.multi-agent-state` and the old adapter runtime in `~/.multi-agent`), the scrub of the pre-5.0 `## Multi-Agent Task Orchestrator` and `## Instruction Sync` sections from `copilot-instructions.md`, and the in-place rewrite of an agent-guard hook registered under a `Bash(...)` matcher or the web-tools-only matcher. A directory of those names, or a section under those headings, is now the user's and is left alone; a guard entry under an old matcher still does not count, and the current one is added beside it.

## [20.39.1] - 2026-11-02

### Removed

- `pipeline/office/NOTICE.md`: every office sprite is built from this project's own sources in `pipeline/office-art`, so the office ships without a notice file. An upgrade removes the installed copy with the rest of the old office tree.

## [20.39.0] - 2026-11-02

### Added

- The command, agent, skill, tool, tool-family and phase counts and the toolkit version in the READMEs, `docs/` and the help guides are rendered from `docs/facts.json` by `gen-fact-marks.mjs`; `npm test` and `smoke-facts.sh` fail on a stale marker or on one of those counts typed by hand. The toolkit version in the ecosystem doc now reads 3.28.0.
- `install/supported-floor.json` (`minimumUpgradeFrom`) names the oldest installed version the installer upgrades in place, 20.17.0. An install whose version stamp is older is refused before anything is written, with the commands for a fresh reinstall (`uninstall --yes`, then `install`); Keychain tokens and pipeline settings survive it.
- `/multi-agent:health` and `health-report.mjs [--json] [--probe] [--quiet]`: one report on everything the pipeline depends on here, each part green, yellow or red with a one-line reason. Parts: services (each credential held, missing or not set up; with `--probe` works, refused or unreachable), toolkit MCP (registered, version, tool count from its tool manifest or a short `tools/list` probe), install (the version each host carries and doctor's verdict with the ids of blocking checks), sessions (open Claude Code sessions, today's tokens and estimated cost, cache writes priced by lifetime: 1h at 2x input, 5m and unsplit at 1.25x), autopilot (on or off, last tick, items waiting for an answer), office (running and its port), disk (free space and log folder size), the last green local gate, and run-error tags seen in two runs or more in 7 days (a run is a ledger row id). Exit code 0 all green, 1 any yellow, 2 any red, 3 the report could not be built or a usage error. The report carries names, counts, versions, a port and dates only; a check that fails reads "could not be checked", never its error text.
- `pipeline/lib/session-usage.mjs`: tokens and estimated cost from the `usage` records in Claude Code's own transcripts, per model, priced from `cost-table.json`. Each message id counts once across files, synthetic messages and unparsable lines are skipped, files are read in chunks with a per-file byte cap (a capped file is reported), and an incremental cache reads only what a transcript appended since the last call.
- The office's activity view measures sessions no run tracks: such a table now carries `tokens` and `estUsd` from the session's own transcripts and subagent transcripts, with `costSource: "transcript"`. A session with no usage records stays `not-measured`. Client contract 1.9.0 (`activity` 1.2.0).
- `office-credentials.mjs` `officeCredentials({ timeoutMs })` lets a caller wait longer for the credential inventory; the panel's defaults are unchanged.

### Removed

- `uninstall --cursor`, `--copilot-chat`, `--antigravity` and `--target=<path>`: the cleanup of files from adapters the installer no longer has. Uninstall now refuses these and any other flag it does not know with exit 2 and removes nothing, instead of ignoring them and widening into an uninstall from every host.
- The memory, bulk-read, offload and read-size hooks no longer look for a bare `preferences.json`; settings are read from `multi-agent-preferences.json` only, the name the installer writes.
- In-place upgrades from installs older than 20.17.0. The installer no longer removes the `dev-toolkit` MCP registration (renamed to `multi-agent-toolkit` in 15.12.0) or rewrites the `Bash(git commit:*)` secret-scan hook matcher (replaced in 11.5.0). Uninstall still removes both, so the fresh reinstall clears them. The pre-manifest catalog prune goes with them: every install at 20.17.0 or newer already ran it, so `install/catalog-history.json`, `gen-catalog-history.mjs` and the `install --prune-external` flag are removed, and the flag is now refused with exit 1.

### Changed

- The smoke runner runs suites in a pool of `min(4, cpus - 1)` workers (`SMOKE_JOBS` sets it, `SMOKE_JOBS=1` runs them one by one in name order); suites that touch shared state run alone after the pool. `--fast` skips the suites over 30 s for a local loop. Verdicts and check counts are the same either way.
- `smoke-progress-contract.sh` fails when a phase doc lacks the progress-contract adoption marker; the advisory mode and its `PROGRESS_CONTRACT_BLOCKING` switch are gone.
- Knowledge skills renamed to names of their own: `app-store-changelog` -> `app-store-release-notes`, `firebase` -> `firebase-integration`, `ios-debugger-agent` -> `ios-simulator-debugging`, `macos-menubar-tuist-app` -> `macos-menubar-utility`, `macos-spm-app-packaging` -> `macos-app-distribution`, `nextjs-app-router` -> `nextjs-routing`, `spm-build-analysis` -> `package-build-audit`, `swift-concurrency-expert` -> `swift-concurrency-fix`, `swift-concurrency-pro` -> `swift-concurrency-review`, `swift-testing-pro` -> `swift-testing-review`, `swiftdata-pro` -> `swiftdata-review`, `swiftui-expert-skill` -> `swiftui-feature-builder`, `swiftui-liquid-glass` -> `swiftui-glass-effects`, `swiftui-performance-audit` -> `swiftui-performance-triage`, `swiftui-pro` -> `swiftui-review`, `swiftui-ui-patterns` -> `swiftui-flow-recipes`, `swiftui-view-refactor` -> `swiftui-view-splitting`, `tailwind-css` -> `tailwind-styling`, `xcode-build-benchmark` -> `build-time-benchmark`, `xcode-build-fixer` -> `build-time-fixes`, `xcode-build-orchestrator` -> `build-time-optimizer`, `xcode-compilation-analyzer` -> `swift-compile-hotspots`, `xcode-project-analyzer` -> `build-settings-audit`; the old names keep working as alias skills (written by `build-stack-plugins.mjs` and the Copilot and Codex installers from `pipeline/skills/renamed.json`) until 21.0.0.
- `upstream-overlap-gate.mjs` (pre-push) matches by content as well as by skill name: every text file on the shipped surfaces (skills with their references and scripts, agents, commands, refs, rules, office sources, scripts, lib, and the local `prefs.global.upstreamGateExtraRoots`) is paired with the corpus file it shares the most 6-word shingles with, code compared without its comments, and fails above 4.5%. Shipped PNGs are fingerprinted with a dependency-free difference hash and an image within 4 bits of a corpus PNG fails. Globs in the local `prefs.global.upstreamGateExceptions` report owner-approved material as excepted, with a count, instead of failing it. The corpus index is cached under `~/.claude/cache/upstream-overlap`.
- Reference files, templates and scripts flagged by the content-based overlap gate are rewritten in their own structure and wording, each now at or below 4.5% 6-word-shingle overlap with any upstream file: the build-time skills' recommendation format, source list, report template, benchmark schema and `benchmark_builds.py` / `diagnose_compilation.py` / `check_spm_pins.py`, `package_app.sh`, the Swift concurrency, SwiftData and view-splitting references, and the backend and frontend example references with `web-testing/SKILL.md`. CLIs, outputs, exit codes, schema property names and linked headings are unchanged.
- The office sprites are all built from sources in `pipeline/office-art`, with the same file names and pixel sizes: the furniture, floor patterns and the 16-piece wall sheet are letter grids, and the six character sheets are composed from body, outfit and hair layer sheets in `pipeline/office-art/characters` with seated typing and reading poses drawn as grids over them. Skin and hair keep a soft warm tone, so the page's second tint of the sheets leaves faces alone. A palette colour may be `RRGGBBAA` for soft shadows; the existing company furniture renders byte for byte as before. The unused `CUSHIONED_CHAIR_SIDE`, `DESK_SIDE`, `SMALL_TABLE_SIDE`, `floor_5` and `floor_7` are removed. `test/office-assets.test.mjs` pins every sprite name and size and holds each PNG to its source. Each character frame keeps the feet row of the sheet it replaces and its head row within a pixel, and the build stops on a layer pixel that falls outside its 16x32 frame or on an outfit pixel the recolour would read as skin or hair; `test/office-characters.test.mjs` pins those measurements.

### Fixed

- The Copilot installer drops any delivery-manifest entry that is not a plain kebab-case skill name before it removes what the previous delivery left, so an entry such as `""`, `..` or a path can no longer turn into a recursive delete of the skills dir or anything above it.
- `pipeline/skills/.skills-index.json` and `skills-index.md` list the renamed knowledge skills under their new names; `build-skills-index.mjs --check` runs in `npm test` and fails on a stale index.
- The smoke runner stops a timed-out suite's whole process group, so a child that holds the output pipes no longer keeps the run waiting, and an isolated suite no longer sees the host-directory overrides (`CODEX_HOME`, `COPILOT_HOME`, `CLAUDE_CONFIG_DIR`, the XDG dirs and the pipeline's own path variables) that resolve ahead of `HOME`.
- `modelRateLookup` prices only ids the cost table defines, so an id such as `constructor` is counted as unpriced instead of resolving to an inherited object member.
- The Claude Code installer applies the same skill-name check to its delivery manifest, so an empty entry can no longer resolve to the skills dir itself and remove it with the user's own skills. Without a manifest it removes no catalog-named dir and names the ones it kept, since each shadows the plugin copy of that skill.
- The upgrade refusal prints its reinstall commands with the scope pinned to the public registry, so an `.npmrc` that maps the scope elsewhere does not turn them into a 404.
- The smoke runner forwards SIGINT, SIGTERM and SIGHUP to every running suite's process group and removes their temporary homes before it exits, and passes the read-only personal-data pattern lists (`MA_PERSONAL_DATA_PATTERNS`, `MA_PERSONAL_DATA_WORDS`) through to the suites.
- `priceUsage` prices a record's 1-hour cache writes at 2x input and the rest at 1.25x, so the office ledger, `cost-analyze` and the health report give one figure for the same transcript.
- Install and uninstall accept the global `--no-color` option.
- `upstream-overlap-gate.mjs` pairs a renamed skill with its upstream under the old name from `renamed.json`, without a maintainer alias in the preferences. `lint-skills.mjs` checks for old skill names in `pipeline/agents`, `docs/` and both READMEs as well, and fails once the package version reaches an entry's `removeIn` while `renamed.json` still holds it.
- `gen-facts.mjs` leaves rename aliases out of `pluginSkillCount`, so the marketplace skill count stays the number of real skills while the aliases ship.
- `check_spm_pins.py` (package-build-audit) skips a repository URL that starts with `-` and ends git's options with `--`, so a `repositoryURL` in an audited project cannot be read as a `git ls-remote` option.
- The office ledger keeps a transcript record's 1-hour cache-write count when it copies a record, so its prices match the other cost surfaces.
- The upstream overlap gate compares every shipped PNG's raw bytes with every corpus PNG, fails on a shipped PNG it cannot decode unless an exception covers it, decodes interlaced PNGs and honours colour-key transparency; its image hash sets a bit only past half a grey level, so a 2x rescale of a sprite stays within the limit. It measures `.css`, `.scss`, `.html`, `.htm`, `.tsx`, `.jsx` and `.xml` files and reports how many shipped files it skipped by type; its cache follows the measuring code, and a file with too few sampled shingles is listed as unjudgeable instead of scored 0%.

## [20.38.0] - 2026-11-01

### Added

- `pipeline/lib/context-budget.mjs`: `fitToBudget(items, { maxChars, render })` measures hook text as rendered and drops whole items, lowest priority first (an item too large to fit alone goes first), until it is within the host's 10,000-character hook output limit, then appends one line naming how many items were left out. A `fit` CLI does the same for shell hooks, one stdin line per item.
- `file-context.sh` also runs before the call: PreToolUse on `Read`, and on `Grep` and `Glob` when the call names a path inside the repository. A Grep directory or a Glob pattern is mapped to at most five files the memory stores hold rows for; a whole-repo search gets nothing. The once-per-file-per-session rule, the `<untrusted-data>` wrapping and the secret scan apply to every event.
- `learnings-ledger.mjs` kinds `decision` (refused without a non-empty `--rationale`, rendered as `(rationale: ...)`) and `security-note`, each with its own section in `brief` and `profile`. The schema gains `rationale`.
- `learnings-ledger.mjs brief|profile --hook` fits the block to the hook output limit by dropping entries from the end of the ranked order.
- `note-agent-event.sh` on SubagentStop and PostToolUseFailure appends one row to the repo's `session-notes.jsonl`: the subagent's type, id, the bound run's task id and its last message cut to 200 characters (secret-scanned; a hit stores the row without the message), or a failed tool's name and its command's first program word.
- Secret patterns in `pre-commit-check.sh` and `outbound-gate.mjs`: Slack app-level tokens (`xapp-`), SendGrid keys, Twilio API key SIDs, AWS secret access keys and STS session tokens by their assignment, `ASIA` STS access key ids (pre-commit; outbound had them), and encrypted PKCS#8 and PGP private key blocks. `secret-patterns.json` carries a parity row for each.
- `graph-query.mjs --expand "<words>"` merges up to 12 extra words into the ranking query and drops, and reports, any word not in the graph's own vocabulary (node names split at camelCase, `_` and `-`). `graph-query.mjs vocab --like <word>` lists up to 50 vocabulary words sharing a prefix with the word or within edit distance 2.
- `graph-query.mjs` logs each free-text query (`{id, ts, query, expand, top}`) to `graph-queries.jsonl` beside the graph, and `graph-query.mjs feedback --id <Q:id> --outcome useful|dead_end|corrected` records an outcome against the query's top nodes in `graph-feedback.jsonl`. Both files rotate to one `.1` generation at 1 MiB; `MULTI_AGENT_GRAPH_LOG=0` or `--no-log` turns the query log off.
- `GRAPH_REPORT.md` has a "Surprising connections" section: edges between two clusters, the rarest cluster pair first, top 10 (`surprisingConnections` in `_graph-analysis.mjs`).
- `graph-hint.sh`, PreToolUse on `Grep|Glob`: once per session, when the call searches the whole repository for a bare identifier and a current code graph exists for it, adds one line of context naming `/multi-agent:graph ask` and `mcp__multi-agent-toolkit__graph_query`. It never blocks and is silent with `codeGraph.enabled` false.
- `lint-skills.mjs` enforces the published skill-authoring rules on every shipped skill: hyphen-only names without the reserved words `anthropic` and `claude`, third-person descriptions, forward-slash paths, a contents list on every companion file over 100 lines, and references one level deep from `SKILL.md`. `lint-mcp-refs.mjs` fails a toolkit tool named in skill prose without its server (`multi-agent-toolkit:<tool>` or `mcp__multi-agent-toolkit__<tool>`), matched against the live `tools/list`.
- `security-evidence-gate.mjs`: every file, line, quoted snippet and `ruled_out` control a security finding cites must exist in the tree before triage. Phase 3 sends unresolved citations back to the auditor once and drops a finding whose citation still does not resolve.
- Security findings carry `closure` (`confirmed` or `open_proof_gap`), required `counterevidence`, `assumptions[]`, and a `confidenceRationale` below high confidence; the auditor output adds a `securityCoverage[]` ledger whose `ruled_out` rows name the defeating control by `file:line`. The auditor covers newly reached sinks, weakened shared helpers and removed controls on a diff, checks fixes against a six-step list, and triage merges findings that share root cause, component, vector and fix.
- `parity-score.mjs`: a redesign's Difference List rows carry a priority (`must`, `should`, `could`) and the table is followed by the computed parity line (weighted score, must rows done, not shippable while any must row is not fully moved); the analysis validator recomputes it.
- `identifier-scan.mjs`: the personal-data smoke finds a forbidden name written inside an identifier (camel, snake or kebab parts), with a machine-local word list.
- `repo-recommend.mjs`: at most two hooks, MCP servers, LSP plugins and subagents a repository's files point to, minus what is already configured; `/multi-agent:stack` and setup Step 9 show it and apply nothing unless the user picks an item.
- `free-llm-apis` knowledge skill (ai-common-toolkit) with a provider table generated from the toolkit catalog by `gen-free-llm-skill.mjs`, checked in `npm test`.
- `upstream-overlap-gate.mjs` (pre-push): fails a shipped skill whose 6-word-shingle overlap with the same-named skill in the local `prefs.global.upstreamCorpus` is above 4.5%.
- security-review references for Firebase rules, Supabase, OAuth/OIDC, GraphQL, LLM prompt injection and agentic systems.
- Evals (at least three) for every knowledge skill.
- Orchestrator refs name the new toolkit tools where they run: `design_contrast_check` in design-conformance item 22 and `sim-test`; `ios_visual_diff` and `design_visual_compare` mode `layout` in design-conformance items 24-25 and the `sim-test` dark-mode and RTL passes; `store_listing_lint` in store-ready gate 3; `store_review_themes` in `complaint-analysis`; `security_evidence_check` and `security_sarif_export` in the security audit and `security-review`; the `learnings_*` tools in `knowledge.md` and `search`; `graph_stats`, `graph_hubs` and `graph_cluster` in the code-graph ref and `graph`; `research_community`, `media_transcript` and `social_read` in the research engine.
- `_toolkit-coverage.mjs`, run by `lint-mcp-refs.mjs`: every tool the live toolkit serves is named in a ref, covered by a family wildcard, or allowlisted with a reason.
- `upstream-overlap-gate.mjs` reads `prefs.global.upstreamCorpusAliases` (local-only) to compare a renamed skill with the upstream skill directories it names, beside the same-named one, and keeps the highest overlap; an upstream skill kept as `skill.yaml` counts as a skill.

### Changed

- `file-context.mjs` replaces its six-line cap with the measured hook budget; when the text is too long it drops past review findings first, then ledger entries, then known limits and security notes.
- `capture-resume.sh` fits its SessionStart banner to the hook output limit by whole lines.
- `graph-query.mjs` ranking scales a node's score by 2% up when its feedback standing is corroborated and 2% down when suppressed (`_memory-policy.mjs` `standing()`), so standing reorders near-ties only.
- `install` registers `file-context.sh` on PreToolUse `Read|Grep|Glob` beside the PostToolUse `Read` entry; `claude-hooks.json` also carries `graph-hint.sh` and `note-agent-event.sh`.
- The skills ship without attribution files: the NOTICE files, the attribution gate and the installer step that copied NOTICE files to Codex and Copilot are removed; `build-stack-plugins` and `uninstall` delete a NOTICE left by an earlier build or install.
- Twenty vendored skills are rewritten as first-party text, each under 4.5% overlap with its former source, with scripts rewritten to the same CLI and Swift examples compiled where they stand alone.
- The free-model sandbox host lists follow the toolkit catalog (Groq and Cloudflare under the default no-training policy, every chain-eligible provider with `allowTraining`).
- `gen-ref-toc.mjs` writes a contents list for files with two sections as well.
- The code of conduct is written in our own words; ADRs and comments describe their design without naming outside projects.
- `signal-community` routes keyless Stack Overflow, Hacker News and GitHub search through `multi-agent-toolkit:research_community` and opt-in social sources through `multi-agent-toolkit:social_read`.
- `upstream-overlap-gate.mjs` and `gen-free-llm-skill.mjs` are maintainer-only and do not ship.
- Autonomous research passes deny `research_community`, `social_read`, `media_transcript` and `llm_delegate`.
- The unattended guard path-checks toolkit arguments named `root` or ending in `Path`, such as the `outPath` of `security_sarif_export`.
- `security-evidence-gate.mjs` reads `host:port` and IP addresses as addresses, not file citations, and resolves a bare file name to the finding's own file.
- `note-agent-event.sh` scans the whole subagent message for secrets before cutting it to 200 characters.
- `upstream-overlap-gate.mjs` measures every same-named upstream skill and rejects a non-numeric `--max`.
- The `free-llm-apis` provider table lists each provider's extra environment variables in the Key column (Cloudflare: `CF_API_TOKEN + CF_ACCOUNT_ID`), and alternative keys as `A or B`.
- Memory exclusion: excluded projects match case-insensitively on macOS.
- `graph-query.mjs --expand` counts only accepted words toward its limit of twelve and reports vocabulary words past the limit apart from words the graph does not know.
- `security-evidence-gate.mjs` rejects a negative line and a range that ends before it starts, names the overflowing line, and finds a bare file name anywhere in the tree by basename, failing it as ambiguous when several files match and as "search incomplete" when the walk hits its 20000-entry cap.
- `graph-hint.mjs` uses a session's single hint only on a graph that parsed and passed the freshness check, and parses a stale or unreadable graph at most once per session, graph version (mtime and size) and HEAD; a rebuilt, current graph still hints later in the session.
- `file-context.mjs` marks memory as told only after the secret scan passes and only for groups that kept a line within the output budget; its glob matching keeps `[...]` classes, which never match `/`, and treats a comma outside braces and an unclosed `{` as literals.
- `identifier-scan.mjs` skips symlinks and exits 2 when the scan itself fails; `smoke-personal-data.sh` counts any exit other than 0 or 1 as a failure.
- `lint-skills.mjs` fails a shipped skill, command or reference that points at a NOTICE file (`NOTICE.md`, `NOTICE.txt`, `NOTICES`, `THIRD-PARTY-NOTICES`); the word NOTICE alone, as a log level, passes.
- The `free-llm-apis` provider table names the optional key of a keyless provider (`optional OVH_API_KEY`).
- `gen-free-llm-skill.mjs` exits 2 with a one-line message on an unreadable catalog, bad JSON, a catalog without a `providers` array or a provider without an id.
- `lint-mcp-refs.mjs` rejects the `mcp__multi-agent-toolkit__` form in a skill body under `pipeline/skills` (frontmatter, refs and commands keep it) and checks `multi-agent-toolkit:<tool>` names against the live tools/list.
- `signal-community`, the research engine, `unattended-security.md`, help and `docs/ecosystem.md` state that `research_community` needs `research-community` in `MCP_TOOLKIT_CAPS`, and that `media_transcript` needs `media-remote` and, unattended, its video host on the network allowlist.
- Released changelog entries describe what was added without naming outside projects or authors.
- `operations.md` and `credential-inventory.sh` describe their behaviour without install measurements or personal-site key purposes.

## [20.37.1] - 2026-10-31

### Fixed

- `write-state.mjs --replace` applies the same phase-transition refusals as a merge write: leaving Phase 1 without plan approval, leaving Phase 2 without a recorded tracker move, and changing or dropping `sessionId` are refused with exit 6. A state file that does not parse can still be replaced.
- `validate-triage.mjs` exits 2 when the over-rejection guard trips, even when it also corrected a contradiction; the corrected verdict is still in the result, and Phase 3 acts on it after the human check. `eval-triage.mjs` fails a fixture whose verdict needed correcting.
- `rework-rulings.mjs` escalates any finding with `foundBy: "security-auditor"` at the rework cap. The triage schema drops the auditor's `security` envelope, so a medium-severity finding without a SEC rule used to be parked.
- `scope-check-gate.mjs` keeps every line break in shell, Ruby (including `Podfile`, `Gemfile`, `Rakefile` and the fastlane files), TOML, `.envrc`, `Jenkinsfile`, `Vagrantfile` and Dockerfiles or Containerfiles of any suffix when it decides whether a hunk is layout only, so joining two commands onto one line is no longer listed as format-only.
- `validate-planning.mjs --spec` fails when the named spec cannot be read, instead of warning and skipping the design-value and citation checks.
- Memory stores stay off when `multi-agent-preferences.json` exists but cannot be parsed, and say so once on stderr; a missing file still means no exclusions.
- `office-on` stops the server it started whenever the start fails (no ready line, a ready line that is not JSON, a state write error, or a server that dies right after it), and closes the ready file's descriptor. `MA_OFFICE_READY_MS` (a positive integer) overrides the 15 s window.
- The office world loop cancels its queued animation frame on stop, so hiding and showing the tab no longer adds a render loop.
- The user test (Phase 3 on Claude Code and Copilot CLI, and `/multi-agent:manual-test`) hands the branch over through `user-test-handoff.sh`. The agent makes the WIP commit itself, so it passes the approval and secret-scan hooks like any commit. `checkout` refuses with nothing moved when the main repo has uncommitted changes (exit 3), or when the worktree or a submodule holds uncommitted work, a commit on no remote branch, an unpushed local branch or a stash (5); a submodule's git dir is removed with the worktree, so all of that would be lost. It then moves every ignored entry of the worktree (the run artefacts under `.pipeline/` and `.multi-agent/`, logs, `.env`, build output) and the main repo's current branch into a hold in the same repository, removes the worktree and checks the branch out. `restore` returns the main repo to the branch it was on, re-adds the worktree, moves the held entries back and keeps anything found at the worktree path aside; it refuses while the user's edits sit on the task branch in the main repo (3) and finishes an interrupted run when called again. Success is judged by where the branch ends up, so a failing post-checkout hook cannot cost the held entries. Both answers to the test start with `restore`, so `manual-test.json` is written into a worktree that exists.
- Phase 4 folds every checkpoint commit of the run (Phase 2's `wip(...)` commits and the user-test `WIP:` commit) back before the real commit through `checkpoint-fold.sh`, per repository in multi-repo runs. It follows first parents from HEAD and stops at the first commit that is neither, bounded by `origin/<base>` when that ref exists. It undid only one commit before, so Phase 2's checkpoints reached the PR.
- Phase 2's build log goes through the context-offload filter on every run; only multi-repo builds used it. Offload node ids carry the current phase numbers.

### Changed

- Phase docs keep the call and the decision; conditional detail loads on demand. New refs: `features/dev-multi-repo.md` (Phase 2), `features/commit-multi-repo.md` (Phase 4) and `features/test-gap.md` (Phase 3); the Phase 3 evidence flows moved into `audit-guide.md`. TDD token forwarding and the push retry policy stay in the phase docs because every run uses them. Every phase doc now has more room than its usual edit size.
- Phase 1 and the `autopilotSafetyGate` preference description point at `classify-plan-safety.mjs` for the safety classifier's rules and state its trigger correctly (one signal of weight 30+, two of weight 20+, or a score of 50).
- Phase 5 no longer describes an `outputQuality` / nested `channels` metrics shape that no writer produces; `log-metric.sh` writes flat key/value details.
- `rules/figma-pipeline.md` lists the Phase 0 tier probe and Phase 1's analysis half (Step 1.4) as allowed to reach Figma and Phase 1's planning half as not, and says which of those the scope guard enforces.
- Phase 4's Push-must-succeed policy and Telemetry are their own sections instead of sitting under Multi-Repo Mode, since every run uses them.
- `smoke-phase-telemetry-ids.sh` checks that every feature ref loaded inside a phase emits under that phase's id.

## [20.37.0] - 2026-10-31

### Added

- `/multi-agent:status` answers what is happening right now through `status-overview.mjs`: each open Claude Code session with the run it drives and its token spend (subagents included), the last 24 hours of tokens, the github.com accounts gh holds with the active one marked, the git author, and which logical credentials are registered. Credentials are checked by name against `credential-store.sh list`; no value is ever read.

### Changed

- Every SKILL.md is under its soft token cap (79 were over). Long tables, worked examples, option catalogs and rationale moved into `multi-agent-refs/<command>/` files or a skill's `references/` directory, and each SKILL.md points at the file and says when to read it; steps, stop conditions and safety rules stay in the SKILL.md. The Copilot help skill reads the shared `help/en.md` and `help/tr.md` catalogs. `localization-reuse-map` keeps its references in one `references/` directory.
- `swift-testing-pro` declares `not-for: swiftdata-pro`, which settles the last trigger collision.
- `runs-index.mjs` 1.4.0: a run whose status is complete, completed, done, abandoned or cancelled is in a new `done` group instead of being grouped by phase, so a finished run is no longer offered `resume`. The text table folds `done` and `unknown` into a count unless `--all` or `--group` names them, and a phase past the contract's last one shows as an old number (`7 old`) instead of `7/5`. Client contract 1.8.0.

## [20.36.0] - 2026-10-31

### Added

- `/multi-agent:office-pair`: one command for pairing a phone with the office. It opens the QR page, waits for the phone, asks the user whether both screens show the same comparison code, and enrols or cancels. `office-pair.mjs start --terminal` draws the QR in a terminal window, only when its output is a terminal, so captured output never holds the one-time secret.

### Fixed

- `office-pair.mjs start` without a relay names the missing setting (`global.office.remote.relayUrl` or `--relay`) instead of reporting that the relay URL is not a URL.

### Security

- Development tooling resolves `minimatch` 11.0.3 and `glob` 14.0.3 through npm `overrides` (GHSA-g3hv-75wg-m249, GHSA-3g3m-2fjr-6pw4). Both are pulled in by eslint and c8 only; nothing in the published package depends on them.

## [20.35.0] - 2026-10-27

### Added

- Office: each person wears their own sheet, recoloured at build time from the CC0 character sheets (`office-art/employees.json`), with a name, agent and model tier; clicking a person opens their card, and a Building window lists every room and who works there.
- Office remote layer, first part: `features/office-remote-protocol.md` (the end-to-end layer, relay, pairing and passkey tiers around the existing signed phone routes) and `lib/office-remote.mjs`, the machine side of its cryptography: P-256 ECDH with HKDF into one AES-256-GCM key per direction, counter nonces that refuse replays, the pairing envelope keyed with the one-time secret, the comparison code, and the WebAuthn assertion check.
- Office remote client: `office-remote-client.mjs` polls the relay, opens each frame with the paired device's key, applies the passkey tier (read session, low-risk window, per-request for launch), forwards only phone routes to the loopback server without an `Authorization` header and seals the reply; one audit line per frame without bodies or header values. `office-on` starts it only when a device is paired, `office-off` stops it.
- Office pairing: `office-pair.mjs start | wait | confirm <code> | cancel` registers a pairing with the relay (only the SHA-256 of the machine's relay token leaves the machine), shows the QR code on the local screen through the dependency-free encoder in `lib/qr-code.mjs`, opens the phone's sealed pairing message with the one-time secret carried in the link fragment, and enrols the device with scopes `read,answer` only after the comparison code is typed back. `phone-devices.mjs revoke` also drops the device's remote keys; `office-status` reports remote access as off, configured or paired.

- `answer-check.sh`, a PostToolUse hook on AskUserQuestion: a question the user submitted without a choice is named back to the model, so it is asked again instead of resolved to the Recommended option. Registered by `install` in every session; it only adds context.
- `worktree-prepare-all.mjs` creates a multi-repo task's worktrees in one step and, when a repo fails, rolls back what it created: worktrees without `--force`, and a branch only when it created that branch and it still points at `origin/<base>`. Phase 0 uses it for multi-repo runs; `worktree-prepare.sh` reports `newBranch`.
- `test-stability-gate.mjs` compares the repeated runs (`.pipeline/repeat-<k>.junit.xml`) of the new and changed tests: a test whose outcome differs across runs, a missing run or a test that failed every time is not GREEN.

### Changed

- agent-guard asks on a `git commit` from the session driving an attended run (where prompts are off it denies until `confirm-command.mjs` records the user's yes), and inside that run refuses a commit subject with no conventional type or over 72 characters, and a PR, issue or Jira body with a literal `\n` or an HTML entity outside code.
- `prefs.global.attendedCommitGate.mode` defaults to `auto`: a commit by the session driving the run is refused without the run's build and test evidence, and from Phase 4 on without a passing `review-decision`, which attended runs now record. Other sessions are warned as before; `warn`, `block` and `off` still apply when set.
- Triage judges anonymized findings end to end: the verdict carries each finding's `foundBy` label (or a gate `tag`) instead of a reviewer name, `validate-triage.mjs --anonymized` refuses a verdict that names a reviewer, and `anonymize-findings.mjs --restore` writes the reviewer family back from the label map after validation.
- `scope-check-gate.mjs --rejected <triage> --rework-base <rev>` lists `rejectedTouched[]`: findings triage rejected whose lines a rework hunk changed. Phase 2 records the reviewed commit per review round with `rework-base.mjs record` (`.pipeline/rework-base-<N>`).
- `validate-planning.mjs --spec` checks UI tasks against the analysis Section 6 inventory: a task touching a view file names its component in the new `design` field, and the name must be a Section 6 row.
- `update-issue-progress.sh` exits 5 without editing the issue unless the account has commented on it since the run started with the template's `Ref: #N` footer: the comment and the Progress flags go together. `--comment-file` posts the comment first through the outbound gate; the unattended runner's issue update uses it with the PR link. Issue coordinates that are not an owner/repo and a number exit 6.
- `write-state.mjs` refuses to leave Phase 2 of an attended run with a tracked issue unless `phases["2"].trackerStatus` is `verified`, `declined` or `not-tracked`. A run already in Phase 2 when this lands records the status once before it moves on.
- `task-mirror.sh` records a phase tile's id as its `tasklist_id` and notes a tile created after a higher-numbered phase's tile.
- `write-state.mjs` refuses to leave Phase 1 of an attended full run without `phases["1"].planApprovedAt`, and refuses to change a `sessionId` already set (exit 6, nothing written). Autopilot, background launches and analysis mode are not asked for a plan approval.
- A run cannot complete while a repo's commit has no recorded push: `projects[].pushStatus` must be `pushed`, `rebase-pushed` or `skipped`, or the repo has a pull request. `pushStatus` is declared in the state schema.
- agent-guard: a closing keyword in a `gh pr create/edit --title` or in a commit message asks first; AI attribution in a gh pull request or issue title, body, body file or comment is blocked; `vercel` with `--token` is refused; `purge.sh`, `prune-logs.sh --yes` and `run-kill.mjs apply` ask first; a stored secret read with nothing capturing or consuming its output is refused.
- `pre-commit-check.sh` refuses signing material and keystores (`.p12`, `.p8`, `.mobileprovision`, `.jks`, `.keystore` ...) and `Pods/`, `.build/`, `DerivedData/` paths by name, binaries included; `.DerivedData/` joins the clone-local exclude list.
- `run-scope-guard` also registers on `Bash|WebFetch`: a Figma read over HTTP (figma.com, api.figma.com) after analysis is denied under the same phase rule, and a direct write to `agent-state.json` or `tracker-state.json` (Edit/Write, a redirect or `tee`) is denied in any session. The wrapper starts node only when the payload mentions Figma or a state file.
- The test-integrity gate flags a test switched off (`XCTSkip`, `.skip(`, `xit(`, `@Disabled`, `@Ignore`, `@pytest.mark.skip`, `t.Skip(`, a `.disabled` trait) as a blocking `disabled-test` finding; a conditional skip is left alone.
- `worktree-prepare.sh` refuses a worktree outside `<project>/.worktrees/` and a new branch outside `feature/`, `bugfix/`, `hotfix/`, `release/`; an existing branch, local or on origin, is re-entered as it is.
- agent-guard asks before a POST or PUT to a Jira comment, a Confluence page or a Slack webhook, and refuses a Bitbucket pull request PUT whose body has no reviewers, fromRef or toRef (the PUT replaces the record and would wipe them).
- agent-guard refuses a side effect from a read-only subagent (one whose definition denies it Write), identified by the hook's `agent_type`: run-state writes, git commit or push, write requests with curl-like clients, and gh pull request, issue and api writes. Reads stay open.
- `run-scope-guard` denies `AskUserQuestion` from a bound autopilot run (it derives or records a halt) and `git add -A`, `--all` or `.` inside a bound run (files are staged by name); it now registers on `Bash|WebFetch|AskUserQuestion`.
- `validate-planning.mjs --spec` refuses a raw pixel or point value in a task when the spec carries a Figma design; values are named by design token.
- `gate-ledger.mjs append` pauses the run on the fourth consecutive failing `evidence-gate/build` or `evidence-gate/test` verdict (status `paused`, `haltReason <phase>:retry-cap`, exit 5): the three-attempt fix loop ends on a record.
- A commit inside a live pipeline run is refused when its author (`--author`, `-c user.email=`, or the repository's config) is not the identity Phase 0 chose (`run-commit-check.mjs`, called from the commit hook; silent outside a bound run).
- `phase-tracker.sh init` refuses to re-initialize a tracker that already holds phases; `--force` starts it over.
- `phase0-exit-gate.mjs` fails below the published version floor, reading the answer Step 0.6 cached (`update-check.sh --cache-only`, any age, never the network).

### Fixed

- File locks (`json-file-lock.mjs`, `write-state.mjs`) read a lock's PID and its identity through one descriptor, and reclaim a dead holder's lock by moving it aside first. Read by path twice, a lock released and re-acquired in between looked like a dead holder's, and the live one was deleted, so two writers held it and one update was lost.

### Added

- Office: the pull request window ranks open pull requests by graph reach, the number of files that depend on what each one changes, read from that repository's own code graph. A repository with no graph says so instead of ranking. Served by a new local-only route `GET /v1/prs/reach` (`work-items.mjs reach`); contract 1.7.0 adds `pr-reach.schema.json`.

### Changed

- Every skill companion file over 100 lines (references, patterns, templates beside a `SKILL.md`) now opens with a generated table of contents, as the multi-agent-refs already did. `gen-ref-toc.mjs` covers `pipeline/skills/` and takes `--dir <skills-tree>` for the plugin marketplace; a file with fewer than three sections at its section depth lists the depth below as well.
- Skill text that aged with the calendar no longer does: `app-store-review` drops "As of May 2026", and `google-play-compliance` points at its Rule 1 for the target API level instead of quoting a number in prose. `google-play-compliance` and `channels` name the MCP server and say when they apply.
- `google-play-compliance` Rule 1 carries the current target API requirement: 36 for new apps and updates on phones and tablets from 31 Aug 2026 (extension to 1 Nov 2026), 35 on Wear OS and Automotive, 34 on TV and XR.
- The bulk reader and Phase 3 triage write terse machine fields (a short phrase per `why` / `reason`), keeping every negation, number and path; the explorer already did.
- `test/project.test.mjs` also holds optional, peer and bundled dependencies at zero and the development tooling to its recorded set.

## [20.34.0] - 2026-10-26

### Added

- Plans carry `reviewFocus[]` (at most five inputs the spec implies but no task's tests exercise, each owned by a task whose tests add it) and `globalConstraints[]` (project-wide values every task brief quotes). `validate-planning.mjs` checks both and, with `--spec`, warns when a plan runs more than four times the length of its spec. Planning schema 1.1.0.
- The plan critic has two more lenses: `unstated-input`, an input the spec implies (empty, boundary, expired, concurrent) that no task's tests exercise, and `underspecified`, a decision a task leaves to its implementer that the analysis or the user should make.
- `rework-rulings.mjs`: at the rework cap every accepted finding still open gets a recorded ruling. Blocking and security findings (a `SEC-*` rule, a security criteria source, or the security auditor's `security` object) escalate to the user; the rest are parked as follow-ups and the run continues to Phase 4 instead of stopping.
- Phase 4 Step 0b lists deferred and parked findings before the commit and asks once whether to ship with them as follow-ups.
- Code graph: `graph-query.mjs --path <from> <to>` finds the shortest path between two symbols or files; an ambiguous name is refused with candidate ids and an unknown one gets its nearest names. External modules end a path but are never walked through.
- `GRAPH_REPORT.md` gains import cycles, clusters of files with a cohesion score (label propagation over imports and references) and questions worth asking before a change; `graph-report.mjs --diff <older graph>` lists what changed between two builds. All deterministic (`_graph-analysis.mjs`).
- `graph-links.mjs`: which files of one repository import another, by matching each graph's unresolved imports against what the others export (package name, Python packages, Swift targets, Go module, Kotlin types). A Kotlin link holds only files whose import names the exporting file's package, and a repository name counts only when the stack names no export. Graphs stay separate (ADR-0018).
- Kotlin graphs index a capitalised `fun` as its own `composable` kind and make it a reference target, so a change to a Compose UI function reaches its callers; an extension function is named after the function, not its receiver.
- `debt-ledger.mjs`: one list per repository of the limits accepted on purpose (`shortcut: <limit>, <when to replace>` markers a diff adds in a comment outside any string, deferred findings, parked rulings), fed by `capture-flush.sh`, secret-scanned, closable with `resolve`.
- `file-context.sh`, a PostToolUse hook on Read: once per file per session it hands the model what the repo's memory says about the file just read (ledger facts whose scope covers it and that feedback has not suppressed, its latest review findings, its open known limits) as untrusted context, after the secret scan. On inside a pipeline run, everywhere with `prefs.global.fileContext.enabled: true`, never with `false`.
- `scope-check-gate.mjs --patch` (or `--repo <dir> --patch-range <a>...<b>`, which reads the diff itself) lists hunks that only change layout (`formatOnly[]`): whitespace outside string literals and comments, never a space that keeps two operators apart, a line break after `return` or before a leading operator in Kotlin and Swift, a leading indent in Python, YAML or a Makefile, or the space around brackets and colons outside C-family languages and Python. A pure addition or deletion is never layout-only. Reported to reviewers and never fatal; the code reviewer gains a fit lens (follow the surrounding code, leave untouched lines alone) and reads `shortcut:` markers as known limits.
- `pipeline/eval/ab/write-lean.json` measures a candidate write-time rule for the GREEN step against none. It is not shipped: its run scored below the baseline.
- Ledger entries earn or lose weight: `learnings-ledger.mjs feedback --id <L:id> --outcome useful|dead_end|corrected` (Phase 5 records it for injected entries). A corrected entry, or one judged a dead end at least twice and more often than useful, leaves `brief` and `profile`; one useful at least twice ranks by a strength that fades with age. A new entry that repeats an existing one in other words (TF-IDF cosine 0.9 or more, same numbers and negations) is not added (`_memory-policy.mjs`).
- When `check-read-size.sh` turns a whole-file read away it also prints what the repo's memory says about that file (`file-context.mjs --lines`), so the delegated read starts from what is already known.
- `knowledge.md` documents progressive recall over a large ledger or triage corpus through the toolkit's existing full-text index (`context_index`, `context_search`, `context_get`).
- `npm run audit:refs` (`ref-filler-audit.mjs`): filler phrases and sentences copied verbatim across the instruction docs, with the tokens a rewrite would win back. Advisory; it rewrites nothing.
- The explorer returns its JSON with nothing around it, in short phrases, keeping negations, numbers and paths exactly as found.
- `prefs.global.memory.excludeProjects`: repos whose ledger, triage corpus and debt list are never written.
- Reviewers return `cannotVerify[]` for requirements that live in code the diff does not touch; triage settles each as verified (citing the file:line read), a finding (citing the file:line of the accepted or deferred finding) or out of scope, and `validate-triage.mjs --reviewers` or `--reviewers-dir` fails one left unsettled or settled without that evidence. Reviewer output 1.6.0, triage output 3.6.0.
- `smoke-skill-size.sh`: no `pipeline/commands/**/SKILL.md` may reach 20,000 bytes, and a file between 18,000 and 19,999 bytes is reported as a warning. After context compaction Claude Code re-attaches each invoked skill truncated at about 20k characters, so anything past that point would silently stop applying mid-run. Runs through `run-smokes.mjs` and the CI lite workflow.

### Changed

- The five command skills over that limit now keep their step skeleton, stop conditions and hard rules, with explicit "Read <ref> before Step N" pointers to the long reference sections, moved without changing their meaning: `channels` (33,925 to 17,749 bytes; `multi-agent-refs/channels/menu.md`, `generator.md`, `preview.md`, `reference.md`, plus the Step 1 target resolution in `multi-repo.md`), `setup` (26,000 to 17,452; `setup/language.md`, `multi-repo-group.md`, `summaries.md`, `accounts.md`, `hooks-and-plugins.md`, and sections appended to `token-save-flow.md`, `app-store-connect.md`, `firebase.md`, `google-play.md`), the `/multi-agent` dispatcher (24,130 to 17,548; `orchestrator/dispatcher.md`), `review` (24,033 to 17,838; `review/inputs.md`, `module-guides.md`, `valven.md`) and `resume` (20,102 to 17,586; `resume/details.md`). `setup` and `channels` leave the token-budget grace list, now under the hard cap.
- Token ceilings: phase-3 17200 to 17260, phase-4 6600 to 6650, phase-5 5700 to 5710, total 63550 to 63710, after the review-settled contracts above (triage settles `cannotVerify`, the PR body carries deferred, parked and marked limits, Phase 5 records ledger outcomes). Existing prose in phases 1 to 5 was compressed first and absorbed every earlier addition of this release.
- The reply-shape rule keeps negations, numbers, units and paths when it shortens a list.

### Fixed

- Office: the autopilot window could open empty with "busy" when the panel's own status poll was still running, because `GET /v1/autopilot` refused a second caller. It, `GET /v1/prs` and the maturity read now answer every concurrent caller from the one run in flight; at most two maturity reads for different issues run at once. A window that reloads after a request now redraws only if it is still the open one, so a late answer for Skills no longer replaces the autopilot window.
- `eval-ab-judge.mjs` showed the judge `blocker` as the string "true|false", so judges answered with a string and the judgement was dropped; the example is a boolean now and a quoted "true"/"false" is read as one. `MULTI_AGENT_EVAL_USER_SETTINGS=1` lets a live eval log in on a host that keeps its CLI login in user settings.

### Security

- The learnings ledger (`add`, `from-triage`) and the triage corpus (`ingest`) run every row through the secret scan before writing it, through one shared helper (`scripts/_secret-scan.mjs`) that the transcript miner uses too. A refused row is counted in `droppedBySecretScan`; a missing scanner refuses the row instead of writing it unchecked. `<private>...</private>` spans are removed before anything is stored. Control bytes are removed from the scanned copy, so a NUL cannot make the scanner treat the text as binary and skip it. The triage corpus scans every stored field, task id, title, stack and reviewer included.
- A token hard-wrapped by a space or a line break is still refused: a run that starts with a known token prefix is scanned a second time with its whitespace removed.
- Every memory store refuses a repository slug that could leave the memory folder (a path separator, NUL, `.` or `..`); spaces and non-ASCII letters stay valid, and slugs compare in Unicode NFC, so `excludeProjects` matches either normal form. The transcript miner honours `memory.excludeProjects` for the ledger and the `CLAUDE.local.md` block alike.
- `file-context.mjs --lines`, used when a whole-file read is turned away, prints inside the same untrusted-data block as the hook and stays silent when `fileContext.enabled` is false.

## [20.33.0] - 2026-10-25

### Added

- Office: pipelines run step by step. Agents wait at the open office and walk over to take their seat in a run's room. The table sign counts phases from 1 over the run's own phases, fills the current phase as its tasks finish and names the task in progress; the run window shows each phase's checklist and a seat shows its own tasks and recent MCP calls. A finished run stays two minutes.
- `task-mirror.sh`, a PostToolUse hook on `TaskCreate` / `TaskUpdate`: the native task list of the session driving a run lands in that run's tracker under the phase in progress, so the office and the terminal show the same list. Phase tiles are skipped, nothing is written outside a run bound to the session, and the hook never prints.
- The analysis mode has its own phase names in `schemas/phases.json` (Intake, Evidence, Synthesis, Review, Publish, Report); `/multi-agent:test-gen` and a standalone `/multi-agent:review` register tracker runs with their own steps, on Claude Code and Copilot CLI alike.
- Office rooms per repository are typed: Development rooms (`/multi-agent`) and Analysis rooms (`/multi-agent:analysis`), each floor keeping a free Analysis room; a run that touches more repositories opens an annex desk on theirs. Labels go through one layout pass and never overlap; a thought cloud over a working agent says what it is doing and opens its detail.
- Office reception has two new-run desks (development and analysis) that list Jira and GitHub issues and take free text.
- Office mail room: pull requests on every GitHub account `gh` is logged in to, each asked with its own token, and on the configured Bitbucket Server.
- Office server room: the key cabinet (`GET /v1/credentials`, names and probe verdicts from `credential-inventory.sh`, never a value, local-only) and the system panel (`GET /v1/system`: CPU, memory, disk and the pipeline's own processes, numbers only). The library holds per-repository memory (`GET /v1/memory`: code graph age, learnings, findings and session notes, redacted). The restroom previews and prunes old run logs through `prune-logs.sh` (`POST /v1/prune-logs`, two steps, 7, 30 or 90 days, local-only).
- Office orientation room: a trainer next to reception opens a guide built from the floor that is drawn, listing every room with the windows it opens, how both pipelines run, what is a job, a window or terminal-only, the security model and the signs. Each visit points at it in the feed; the page keeps nothing in browser storage.
- Five read-only office jobs: doctor, route status, scan, scenario audit and analysis review (19 jobs in all). Commands that stay in the terminal say why instead of offering a copy button.
- Office tables seat a run's whole crew from the start, one seat per role each phase uses (planner and plan critic, developer and dev critic, three reviewers, committer, reporter; an analysis run its own): whoever's phase runs works, later ones wait for their turn, finished ones stay seated.
- The table sign names where the work came from (the Jira key, the GitHub issue as `repo#N`, both when an issue got a Jira, or free text), what a waiting run waits for (a local test, the report channels, an answer here, or a question in the terminal) and, once finished, the pull request it opened. `runs-index` carries `source`, `prNumber`, `mode`, `channels` and the local-only `channelUrls` (runs surface 1.3.0). The client contract is 1.6.0: the six new routes, and the activity and pull-request surfaces at 1.1.0. A run with no tracker still lists every phase of its mode.
- A question a session asks in its own terminal counts as waiting for you: the table glows, the HUD counts it, the feed says so and the tab title shows the number; the drawer says to answer it in the terminal. The HUD reads agents working, runs and sessions.
- Office settings screen in the manager's office (`GET/POST /v1/settings`, local-only, two steps, one change at a time): output language, the fable rung and model routing, each through the script its terminal command runs (`office-settings.mjs`). Route on keeps the saved strategy and scope; rules, free providers and prompt language stay in the terminal.
- Phase 5 records each report channel's outcome in `state.channelResults`; the run window lists where the report went, with the addresses (https only) from the run record, which drops them from a redacted answer.
- The memory shelf offers a code graph build or refresh for each repository, through the graph job.
- Office characters come in twelve looks: six sheets and a recoloured second set, so every role at a run's table looks different. The team window shows every character with its portrait, the office staff and the agent pool apart, and the chat drawer shows the character actually at the seat.
- README and README.tr gain an office section with screenshots; README.tr gains the hooks-per-host table README has.
- Office rooms carry more of a real office: pictures, a clock and hanging plants on free wall, and a plant in each free corner, never behind a tall piece, under a room's sign or in anyone's way.
- The autopilot window is one switch that says the state and flips it, the three numbers that matter, and the repository selection; stop buttons appear only while it runs, and with no repository it says how one is added.

### Changed

- Office roles on the floor and in the feed are translated, and phase events count from 1 like the table sign.
- `/multi-agent:office-on` describes the panel as it is; the help catalog says the server runs until `office-off`.
- `prune-logs.sh` spares a run that can still be resumed (an `agent-state.json` status that is not finished, abandoned or cancelled) unless `--task` names it; `--only-from=FILE` limits a prune to a confirmed list. The office prunes only the folders its preview listed, passing them through `--only-from`, and refuses with `changed` when the set moved.
- `phase-tracker.sh task <N> <id> deleted` takes a mirrored task off the list, as a native `TaskUpdate` with status `deleted` does. A task id used again in a later phase updates that phase's task.
- Text cut to fit a field (`transcript-index` excerpts) counts its ` ...` ending toward the limit.
- An MCP call a turn left without a result is closed as failed, so no desk stands at the server rack forever. A task created between two phases is mirrored under the phase about to start.
- The key cabinet shows every verdict `credential-inventory.sh --probe` gives (malformed, no credential, probe error, server error, tier ready, needs a grant) and calls one it does not know unknown instead of not checked.
- The Bitbucket pull request list authenticates the way the credential inventory does: Basic with a stored `bitbucket_user`, else the token as a bearer. On a `gh` without `auth token --user`, the active account answers alone.
- The system panel counts only a node, npx or npm process as the toolkit server, and on macOS reports used memory from `vm_stat` (reclaimable pages count as free).
- A memory store line that is not a JSON object is skipped, a shelf that cannot be read is left out instead of failing the answer, and a graph dated in the future reads as zero days old.
- The room sign names only commands that exist; an autopilot job reads `/multi-agent autopilot` as its run does. Prunes run one at a time. A language change the preferences file could not take, or whose command descriptions were not switched, is reported as failed.
- The office translates numbered roles in the run window and chat drawer, the HUD counts sessions apart from solo jobs, the job form names the scenario audit's CSV field, and a run's head and crew stay at the table until it leaves.
- A run that just finished keeps only the session that ran it, so a session that starts the next run within two minutes sits at the new table.
- Office wall-station labels sit inside their room instead of above the top wall, and `smoke-office-runtime.sh` checks that no two labels overlap at any zoom step. A floor station's label sits above its tallest piece, hotbar labels fit under their icons, and room signs never cover a picture or board; the runtime smoke checks all three.
- `schemas/phases.schema.json` allows a mode's own phase `names`.

### Security

- `GET /v1/system` measures with child processes off the event loop; requests that arrive while one measures share its answer, and the log folder size is reused for a minute. `GET /v1/memory` reads its stores asynchronously, parses only their last megabyte, and skips a store that is a FIFO, a symlink or anything but a regular file.
- Turning routing on from the office names, in its confirmation, the saved free provider chain it brings back and whether that chain allows training.
- `/multi-agent:scenario-audit` writes its verdicts in a folder of the run's own instead of a fixed name under `/tmp`.
- The Bitbucket token is read from the credential store with a deadline and sent only over https (a loopback host excepted); redirects are not followed. A redacted pull request list carries no URL or login.
- `resolveToken` gives the credential store a deadline. A GitHub Enterprise Server account's token reaches `gh` as `GH_ENTERPRISE_TOKEN` as well.
- Office threat model rows T19 to T24 cover the new routes, the PR listing, the task mirror hook, the settings screen and report links.

## [20.32.0] - 2026-10-25

### Added

- Office: a repository can be added from any window that picks one. Checkouts earlier runs worked in are suggested, a path can be typed, and a registered entry whose folder is gone can be taken off the list; each is a two-step write (`POST /v1/repos`, `DELETE /v1/repos/{id}`), and only a git checkout is accepted. `GET /v1/repos?all=1` (`launch-request.mjs repos --all`) lists the suggested and the missing entries by id, never by path to a page.
- Office keeps itself current: the open page shows a reload banner when a newer page is installed and reloads onto it through a fresh one-time code (`GET /office/version`, `POST /office/reload`); `office-on` replaces a running server whose code changed on disk. A server that has stopped is said so on the page.
- The office ships the toolkit version the release was checked against (`office/toolkit.json`, written by `office-build.mjs` from `docs/facts.json` and held by `--check`), so the Tools window starts an exact version with no manual step and every pipeline update moves it forward. `MA_TOOLKIT_VERSION` and `prefs.global.office.toolkitVersion` still override it. The Tools window shows the version; nothing writes the preferences file.
- Office: hand a job to someone. Clicking a person or a station opens the jobs that role does (`schemas/office-jobs.json`: 14 jobs, each parameter typed by kind, no free text); the confirmation names the exact prompt, the repository and what the job writes outside this machine, and the second step starts `claude --bg` with the unattended profile and no shell (`GET/POST /v1/jobs`, two steps). A team job meets in its repository's room and is refused while another run is live there (`room-busy`); a solo job sits at a desk under its role. Every start is recorded under `logs/multi-agent/office/jobs/` (0600). The autopilot runner and the office start sessions through one launcher, `pipeline/lib/bg-launch.mjs`.
- Office is a company building: a hall with the lobby, the open office and the kitchen on top, then the manager's office, library, server room, test lab, analysis room, archive, mail room and restroom, with each repository's meeting rooms below. Thirteen staff work in their rooms; the hotbar moves the camera to a room, and each room's window holds its commands (the cleanup in the restroom previews `/v1/gc` before it runs). Copy buttons are gone: the New run flow, PR review and the command cards start real jobs.
- Office furniture drawn for this project: 16 sprites kept as pixel grids in `pipeline/office-art` and rendered into PNGs by `office-build.mjs` with a dependency-free encoder; `--check` holds the PNGs to their sources.
- `smoke-office-ui.sh`: the signed-in panel driven by Playwright (adding a repository, the refusal of a folder that is not a checkout, command cards, the reload banner, a stopped server).

### Security

- The unattended profile denies reading `~/.claude/logs/multi-agent/contract-server/` (a `Read` deny, a sandbox `denyRead`, and in `MCP_TOOLKIT_INDEX_DENY` together with the office state directory), where the local server keeps its bearer token, so a session the office or the autopilot starts cannot pick it up. Every install adds the deny rules and index-deny directories a newer release ships to an existing `multi-agent-unattended.settings.json` without changing what it allows (`tightenUnattendedProfile`), so the autopilot's profile check keeps passing after an update.
- `POST /v1/jobs` starts nothing unless agent-guard.sh is registered for every tool (`guard-missing`), re-checks at the confirmation that the repository is still allowed, and keeps claude's own error output off the page.

### Changed

- Office: the panel's server runs until `/multi-agent:office-off`; it no longer stops after an idle time or after 8 hours. `contract-server.mjs` takes `--idle-minutes 0` and `--max-hours 0` for that, and keeps its 15 minute and 8 hour defaults when started on its own. The open page checks in once a minute, also in a background tab, and says so when the server has stopped.
- Office: command cards keep their button on the title row; long names are cut with the full name on hover.
- `/multi-agent:sync` checks the office instead of copying it: the committed page matches its sources, the installed copies match the page, and the recorded toolkit version is reported (Step 3e).

## [20.31.0] - 2026-10-25

### Changed

- Office: every run meets in its own walled room inside its repository's room. The orchestrator sits at the head of a long table with a computer, the agents face each other along it, and the table grows with the team from two to six chairs a side. Agent labels sit above the near row and below the far one; on a narrow floor the chairs are packed and labels show on hover. Free meeting rooms finish the row, a hall on the left leads in, and the floor reaches the bottom of the stage. The corridor label of a run over several repositories now sits beside the room name.

## [20.30.0] - 2026-10-25

### Added

- `/multi-agent:office-on`, `office-off`, `office-status`: a local browser panel over the contract server (127.0.0.1 only). The office is a pixel floor: a lobby whose furniture opens each feature (new run, quest board, PR desk, ledger, autopilot desk with its bot, routines, skills, toolkit, services, commands), one room per repository with one table per run, agents walking in to their chairs, typing or reading by the tool they use, a phase bar over every table, the paper handed on at each phase change, a lamp and a bubble when a run waits for you, finished agents moving to the lounge, and dashed corridors for runs over several repositories. A text list shows the same office. A demo office plays a scripted run when nothing is at work and never sends a write. Text follows `outputLanguage` (English or Turkish). Sprites are installed in `office/assets/` and served at `/office/assets/` under a fixed file-name pattern; the page is built by `office-build.mjs` from `pipeline/office-src`; attribution in `office/NOTICE.md`. It shows their chats, a cost ledger with the source of every amount, run results, autopilot, routines, stacks, read-only toolkit tools and service reads, and starts runs through the existing launch route. The page installs to `~/.claude/office/` (and the Copilot and Codex trees); `GET /office` serves it, with `MA_OFFICE_PAGE` or `prefs.global.office.page` as overrides. The token reaches the page through a one-time 10 second code, never a URL; the server exits after its idle time and after 8 hours in any case. Remote access is not part of the pipeline; `office-status` reports "not available in this installation" unless a separately installed remote layer is present. Threat model: `multi-agent-refs/features/office-threat-model.md`. The description-surface ceiling rises from 94500 to 95000 bytes for the three commands and their core skills, after their descriptions were trimmed to 812 bytes for all six.

## [20.29.0] - 2026-10-24

### Added

- `run-stop-guard` (Stop hook): a session that drives a pipeline run cannot end its turn mid-run without finishing the current phase, recording an attended wait (`waitingFor: "attended-reply"` or `"local-test"`) or recording a halt. It acts only on the run bound to the session (`sessionId` or the new `hostSessionId` that write-state stamps on every phase move), never on a run matched by worktree alone, lets a turn through when it ends asking the user something, when background tasks or session crons are pending, and after three consecutive holds writes the halt itself. It fails open on any internal error and is switched off with `prefs.global.stopGuard.enabled: false`. SubagentStop is never held.
- `write-state.mjs` accepts `status: "complete"` only on the run's final phase with Phase 4 evidence (a commit sha, PR or publish, or a noted skip) and a passing plan-coverage verdict; otherwise it exits 6 and writes nothing. Phase 5 reads that exit and reports the run completed only on success; the autopilot runner treats it as `stopped-incomplete` and retries.
- Attended commit evidence check (`prefs.global.attendedCommitGate.mode`: `warn` by default, `block`, `off`), judged only against a live run.
- `agent-guard`: AI attribution read from the commit message itself (message, `-F` file, heredoc body, or the whole line when the file is written on that line), skipped hooks (`--no-verify` and its prefixes, `commit -n`, `core.hooksPath`, `HUSKY=0`, `GIT_CONFIG_*`), plain secrets on argv (local development DSNs exempt), and an ask for issue close, Closes/Fixes/Resolves in a PR body and Jira transitions; in bypassPermissions and dontAsk a confirmation record written after the user's answer lets the exact command through once.
- `run-scope-guard`: Figma MCP calls are refused after Phase 1 of a live, non-analysis run bound to the session; `/multi-agent:analysis` records its run at start. Attended edits outside the run's worktree raise a warning.
- `prefs.global.readOnlyRepos[]`: checkouts that may not be edited, committed or pushed.
- `/multi-agent:doctor` reports template hooks that are not registered or not executable and preferences that no registered hook enforces. The installer registers the run hooks itself, records them in `multi-agent-hook-manifest.json` after settings.json is written, and does not re-add a hook the user removed.

## [20.28.0] - 2026-10-24

### Added

- A registration that fails for a reason the person did not choose reports it: `usage-register.mjs` starts `usage-register-beacon.mjs` detached, which sends `{ u, v, reason, os }` to `<register URL>/failure` once per reason and version a day, with no token and no failure text, and never for an opted-out machine or one with no login. `/multi-agent:doctor` gains the `usage-register` check, which shows the last registration outcome and whether the failure report reached the site.
- Four test-planning knowledge skills join the common toolkit: `scenario-gap-analysis` (covered, wrongly covered and missing scenarios, with a could-not-measure section), `test-result-triage` (product-bug, stale-test, valid or ambiguous per test, ambiguous unless evidence says otherwise), `handle-request` (added, already present or could not add, per platform) and `fix-review-verdicts` (test-gaming, scope and root-cause verdicts computed from findings). They are routed to `ai-common-toolkit` through `COMMON_SKILLS`.
- `pipeline/scripts/permission-baseline.mjs` freezes the tool grants the pipeline ships in `pipeline/contract/frozen/permission-baseline.json`: each command, skill and agent's `allowed-tools` / `tools` (an agent with no or an empty `tools` inherits everything and is recorded as `*`) and `disallowedTools`, the host-read frontmatter keys that change what a file may do (`permissionMode`, `mcpServers`, `hooks`, `context`, `agent`, `shell`), the unattended profile (allow and deny lists, wideAllows, sandbox lists and values, `defaultMode`, `env`), `RESEARCH_DENIED_TOOLS`, the grant every saved routine is written with (`ROUTINE_ALLOWED_TOOLS`), and the permission flags in the spawn argv of `pipeline/scripts` and `pipeline/lib` with every literal value they take (comment lines are skipped). `check` fails when an entry joins an allow list, leaves a deny list or a value changes, and when a grant cannot be read (a block scalar, a multi-line flow list, a folded continuation, a quoted or duplicated grant key, a flow-mapping or indented frontmatter, a missing code-level declaration); `accept` records an intended grant, so every widening lands as a reviewed line in the baseline diff. Narrowing passes on its own, a deleted file is reported as removed and a file is reported as moved only when its tools, deny list and frontmatter keys all match the old path. Enforced by `test/permission-baseline.test.mjs` in `npm test`; the script and its baseline are maintainer tooling and are not published.
- `/multi-agent:test-gen` writes the tests an app lacks, as seven subagent stages each gated on its own artefact: inventory (`inventory.json`, then a priority pick; autopilot takes the top three), discovery (`discovery.json`) and gaps (`gaps.json`, with `dataNeeds[]` that name test data and never hold it), handles (`handles.md`), the tests (`written.json`), repeated runs and per-test classification (`results.json`). Discovery and gaps run on the new read-only `test-gen-analyst` persona, whose tool grant is an allowlist of Read, Grep, Glob and read-only toolkit tools. `scripts/test-gen-gate.mjs` checks the artefacts against the new `test-gen-inventory`, `test-gen-gaps` and `test-gen-results` schemas without a dependency, snapshots the working tree (untracked files included) before each stage that may edit the repository and judges the stage by its own delta: the handle stage must add a handle line (or say `HANDLES: none-needed` with `file:line` evidence, inside the repository, of handles that exist), and the write stage may change test files only, inside the repository and changed by the stage, with no test gaming in its diff, a run command one of the discovered runners owns, and more than zero tests run. It also checks `discovery.json` (new `test-gen-discovery` schema) and writes the three-state `results.json`. Toolkit tools `test_results_classify`, `coverage_gap` and `ui_locator_codegen` need `@mmerterden/multi-agent-toolkit-mcp` ≥ v3.25.0, recorded in `cross-cli-contract.md`; each has a named fallback on an older server. `smoke-test-gen-contract.sh` holds the schemas, the stage artefact paths and the read-only agent type.
- `scripts/handle-diff-audit.mjs` checks that a diff only adds automation handles (iOS `accessibilityIdentifier`, Compose `testTag` / semantics, web `data-testid`). The removed lines and the added lines with their handle constructs stripped are compared as ordered code tokens, operators and punctuation included and whitespace ignored, so re-wrapping a tag passes while a flipped comparison, a dropped `!` or swapped arguments fail as lost, extra or reordered tokens; a new file passes only when it holds handle constants and nothing else. With `--baseline` (or `--since <tree>`) it reads only what changed after the stage-start snapshot, so the person's uncommitted work is never read as the stage's change; refs are verified and an option-shaped value is refused. Each file is judged by its own platform's pattern, so a Flutter `Key` or a selector string in a test file is not a handle. Exit 0 handles only, 2 violation, 3 unreadable input; `smoke-handle-diff-audit.sh` holds the codes on fixed fixtures.
- `evidence-gate.mjs --stage-start <time>` holds a stage to its own output: the evidence must have been written during the stage (mtime no earlier than the start less 2s) and be whole: a `.json` file must parse, any other file under 400 bytes or ending in a letter or digit with no trailing newline is partial. The new `--claim artefact` checks only that, for stage outputs that are not logs.
- Per-test classification at the Phase 2 exit gate (`features/test-classification.md`). The toolkit's `test_results_classify` (`@mmerterden/multi-agent-toolkit-mcp` ≥ v3.25.0) reads the Gate 3 report, the repeat runs as confirmation and the Phase 0 report as the base; `scripts/test-classify.mjs merge` applies the pipeline's rules on top: `unstable` is never green, `not_measured` stays red with its reason, the Phase 0 baseline joins the preexisting set (and a test it lists that the toolkit calls a regression becomes `unstable`), a tripped breaker is not green. On an older toolkit `test-classify.mjs fallback` classifies from the repeat runs' JUnit XML alone; a test that failed and passed inside one run (a retry, per-device reports) is `unstable`, and both attribute quote styles are read. Exit 4 marks a crash, apart from a red verdict. `run-ui-tests.sh run` now names a per-test report next to its log (`UI_TEST_RESULT`, `UI_TEST_RESULT_FORMAT`: the xcresult bundle on iOS, Playwright's JUnit report, the module's connected test results on Android).
- `scripts/test-gen-state.mjs` keeps the project-level state of test generation. `base-record` writes the commit a run finished at with a reason that must name the run; `base-scan` diffs base..HEAD into changed files and `graph-affected.mjs` dependents, and a scan that cannot be made still writes a `measured: false` row with the reason. `revise` counts stale-test revisions per run and per calendar day against the new `prefs.global.testGen.revisionCap` (default 20), so many small runs cannot slip under the cap; at the cap autopilot parks, and a `product-bug` verdict is never applied in autopilot. The state file is read and replaced under a lock; a state or prefs file that does not parse parks autopilot instead of counting from zero, and a cap outside 0..500 falls back to the default.
- Test gaming check: `test-integrity-gate.mjs --diff <unified.diff>` (or `--diff-base <ref>`) reports added lines that make a suite green without fixing the code, as `test_integrity` findings with `signal: "test_gaming"` and the line. Product code that branches on the test environment (`navigator.webdriver`, `process.env.CI`, ProcessInfo and XCTest, `isRunningTests`, a test-harness check) is blocking; a swallowed error (an empty catch, `.catch(() => {})`, `except: pass`, a statement-level Swift `try?`, a Kotlin `runCatching` nobody reads; one finding per occurrence), a timeout raised to twice the nearest removed one or a new wait of 30s or more in a test is important. Units follow the language (JavaScript and Kotlin milliseconds, Swift and Python seconds). Only source files are read and comment lines are skipped; configuration (`*.config.*`, CI workflows), YAML and documentation are out of scope. `--diff-base` reads the working tree, untracked files included, against the merge base with the base branch; a ref is verified, a missing or option-shaped value is a setup error, and an unreadable diff is reported as `gaming.scanned: false`, never as clean. Phase 3 Step 1.76 passes the run's diff, and the code reviewer persona gains a test-gaming lens that defers to the `fix-review-verdicts` skill when it is enabled.

### Fixed

- A finished, halted or parked run now reports its end: Phase 5 and the halt and park blocks send `usage-report.mjs --task-id`, and resolve the state file with the new `--print-state` instead of a `$STATE_FILE` that an earlier shell never handed over. An empty `--state` is recorded in `usage-last-send.json` as `empty-state-path` instead of returning silently. `test/usage-report-callers.test.mjs` fails any `--state "$VAR"` whose variable is not set in the same fenced block.
- Usage registration and reporting work behind a corporate proxy or a TLS-inspecting gateway: `_http-post.mjs` retries a connection-level failure of Node's fetch through curl, which honours the proxy variables and the system trust store, with secret headers read from a 0600 file and never placed on argv. A failure keeps both causes (`fetch SELF_SIGNED_CERT_IN_CHAIN, curl curl-exit-7`), and every registration attempt is recorded in `usage-last-register.json`.
- Lint and format skip `.claude/worktrees/`, where agent worktrees of other branches live.

### Removed

- The opt-in anonymous install ping (`MULTI_AGENT_TELEMETRY=1`, `install/_telemetry.mjs`). Install and update are already reported by `usage-report.mjs --lifecycle` under the machine's registered token, and the endpoint the ping used no longer accepts unauthenticated posts.

### Security

- `fast-uri` updated within its semver range to clear four moderate advisories (GHSA-w74x-v6f9-j3xg, GHSA-xhq7-xmqj-769h, GHSA-wjr9-j795-jxcr, GHSA-333x-w4r6-6crp).

## [20.27.2] - 2026-10-20

### Changed

- App Store compliance follows the App Review Guidelines of 16.10.2026 and the September 2026 upload requirements. `rules/app-store-guidelines.md` adds the upload floors (iOS 13 deployment target, iOS 26 SDK, iOS 27 SDK from April 2027), 1.2 for AI content creation apps and nonconsensual intimate imagery, 2.3.1(a) Notes for Review, 2.3.14 creative assets, 2.5.19 hidden features, the 3.1.1(a) External Purchase Link or, where permitted, Music Streaming Services entitlement, 4.3 saturated categories, 4.5.3 notification and Live Activity spam, the 5.1.1(v) citation, and the age rating and medical device declarations; 4.8 asks for an equivalent privacy-focused login rather than Sign in with Apple only.
- `store-ready` Gate 3 (iOS) gathers evidence for 1.2, 2.5.19, the upload floor and the App Store Connect declarations, and its IAP and login rows follow 3.1.1(a) and 4.8.
- `apple-archive-compliance`: `info-plist` covers `MinimumOSVersion` ≥ 13 for iOS and iPadOS builds, `sdk-floor` names the announced iOS 27 floor, `required-reason-api` cites ITMS-91053, and `info-plist` and `embedded-sdk` carry the guideline and ITMS codes their scanner emits. The new behaviour needs `@mmerterden/multi-agent-toolkit-mcp` ≥ 3.23.2.
- `app-store-review` covers the new guidelines, the upload floors and the App Store Connect declarations, with a new eval.
- `smoke-compliance-skills.sh` checks that the Apple catalog table and `references/rules.yml` agree on every rule's ITMS codes and SDK floor.

## [20.27.1] - 2026-10-19

### Fixed

- The pre-commit secret scan reads a file moved without a change as a rename, not as new content. A diff limited to the new path cannot see the rename, so a plain `git mv` of a file holding long generated identifiers was blocked as a high-entropy secret. Exact renames are skipped; a rename with edits is still scanned whole.
- `smoke-learn-transcripts.sh` reads its fixture with a window wide enough for any checkout; the fixture keeps the date of the checkout that wrote it and the miner reads the last 30 days by default.

## [20.27.0] - 2026-10-16

### Added

- Jira Issue Links for an analysis: `scripts/plan-remote-links.mjs` plans one remote link per Figma frame (`Figma · <frame> (<nodeId>)`), Confluence page, API contract and published analysis page, and `lib/jira-remote-links.sh` writes the plan. Every link has a stable global id, so a re-run updates its own links in place; a URL already linked by someone else is skipped; nothing is deleted. A Confluence page becomes a native Wiki Page when the issue already carries one from the same Confluence. The analysis Jira target writes them after the same preview and approval as the body, and `generate` uses the same pair for its Figma and Swagger links.
- `issue-fetcher.sh` returns the issue's remote links as `remoteLinks[]` (untrusted tracker text). Phase 0 classifies them with the description's URLs, and an analysis offers the Figma, Confluence and Swagger ones of its Q4 issue as sources.
- `scripts/render-jira-evidence.mjs` renders the evidence lines of a Jira comment from `state.visualEvidence`, including the new per-scenario `scenarios[]`. Screenshots and recordings are links by default (`Kanıt: Ekran [<file>](<url>) · Kayıt [<file>](<url>)`); `visualEvidence.jiraMedia: thumbnails` embeds images as thumbnails instead, and recordings are links in both modes. `--measure` reports a body's length and its full-size image embeds for the preview.
- `/multi-agent:channels` has a "Test Koşumu (Xray)" content block that names the Xray Test Execution of the task's UI scenario run, so the Jira comment and the PR description lead to the run that verifies the change. `pipeline/scripts/render-flow-run.mjs` reads the flow runner's `history.jsonl` read-only: runs come from `--flow-run`, then `state.evidence.flowRuns[]`, then a discovery suggestion (commit on the task branch or a scenario ticket); the latest delivery line supplies the execution per domain, an undelivered run prints its deliver command, a skipped domain shows its reason, a scenario without a test key stays listed, and keys print without links when no `jiraBase` is configured. The block is the `test_run` section after `test_scenarios` in both the Jira and PR body contracts; `reportContent.testRun` is the new content default.
- Localization keys are reused before they are minted. Where a repo's keys sit under a generated or owned tree, Phase 2 treats the catalogue as shared across platforms: a new key is searched for by name and by display text in the mirror and, when reachable, upstream; a match is reused (an upstream-only key is logged as `pending-sync`), a miss is added once upstream with a platform-neutral name (`features/localization-reuse.md`, called from Phase 2). C6 in `conventions-defaults.md` matches keys of different conventions on the value, the parity check flags an added key whose text another key already holds, and `ios-localization` points shared catalogs at the toolkit's `key-naming.md`.

### Fixed

- TaskCreate tile subjects are copied verbatim from `phase-tracker.sh tiles` (`Phase 1 Plan`, `Phase 3 Review`), with no renamed or merged phase; the tracker contract's examples match, and a test holds the docs to the canonical names.
- Sibling checkouts (`multi-agent-toolkit-mcp`, `multi-agent-plugins`) are found beside the main checkout when the suite runs from a linked worktree under `.worktrees/`, so `smoke-facts.sh`, `gen-facts.mjs` and `smoke-mcp-package-resolvable.sh` check their numbers there instead of reporting them as not checked (`pipeline/scripts/_sibling-root.mjs`). CONTRIBUTING documents `.worktrees/` as the place for parallel branches.
- `jira-remote-links.sh apply` refuses any argument after the plan other than `--dry-run`, so a misspelled flag cannot become a real write, and the unattended guard treats `apply` as a publisher. Figma links are keyed on the branch key when the frame is on a branch and ignore the file-name slug, so the same frame is never linked twice.
- Phase 0 registers the full phase set with plain commands the unattended guard can judge, and Step 1b reads the Issue Links of every Jira input. The analysis Jira write and Issue Links procedure loads from `features/analysis-issue-links.md` only when the Jira target is selected.

## [20.26.0] - 2026-10-14

### Added

- **Jira issue family.** A run started from a Jira story or one of its sub-tasks resolves the story, the development sub-task and the test sub-task once its state file exists (`jira-family-write.sh resolve`, `state.jiraFamily`), by issue type: an issue is a sub-task only when its type says so, and only a story type (`issueTree.storyIssueTypes`) is reformatted. Channels then writes to each (`plan`, then `apply`): the Jira comment goes to the development sub-task unchanged; a test comment in the dev comment's four sections (summary, scenarios, impact, links with the PR and build) goes to the test sub-task, or to the story when there is none; and a story outside the `/multi-agent:analysis-jira` panel format is reformatted. The reformat sends every non-blank line of the author's text unchanged, heading lines and line endings included; only whole-line panel macros are replaced, headings are added where a block had none, and blank lines at section edges are dropped, and a description it cannot prove safe (unbalanced macros, mixed line endings, a lost line) is not written. Attended runs confirm every write once in a grouped, deselectable prompt ("3 yazma: story açıklaması, dev yorumu, test yorumu") and are asked only which sub-task when there are several; autopilot makes all writes and records each choice in `state.decisions[]`. Comments carry a hidden run marker counted only in the authenticated user's comments, a conforming or since-edited story is never written, and `state.jiraFamily.writes` is merged by write id, so a re-run writes nothing twice. Works the same on Claude Code, Copilot CLI and Codex. Settings: `issueTree.familyWrites`, `storyIssueTypes`, `testSubtaskTypes`, `devSubtaskTypes`. Contract: `multi-agent-refs/features/jira-family.md`.
- `jira-publish.sh --raw` sends a body that is already Jira markup without the emoticon escape, and `--expect-file` refuses (exit 6) a description replace when the text changed since the caller read it; the outbound gate and the backup still apply to both.

### Fixed

- `jira-wiki-escape.mjs` printed nothing when reached through a symlink (`install --link`, macOS `/var` temp paths), so `jira-publish.sh` posted an empty body; it now resolves the path, and `jira-publish.sh` refuses a body that escapes to nothing.
- `_jira-auth.sh` reads `MULTI_AGENT_PREFS` like `jira-publish.sh`, so a read and the write after it use the same Jira host and token.

## [20.25.1] - 2026-10-14

### Removed

- `/multi-agent:deps`, `dep-bump.mjs` and the `depBump` settings are removed: updating a project's own dependencies is outside what this pipeline does.

## [20.25.0] - 2026-10-14

### Added

- **Syntax check after an edit on Codex.** `edit-syntax-gate.sh` reads Codex's `PostToolUse` payload for `apply_patch` (every file the patch adds, updates or moves to) and answers in the shape Codex reads back. `/multi-agent:setup` Step 8 registers it through `host-hooks.mjs install --host codex` from the new `codex-hooks.json` template; Codex runs it once trusted in `/hooks`. Copilot CLI gets no registration: as of 1.0.45 it discards a `postToolUse` hook's output and applies no matcher, so the gate is Claude Code and Codex only. Still opt-in through `editSyntaxGate.enabled`, still never blocks; uninstall removes the registration, matching the template's full commands so the user's own hooks stay.
- **`/multi-agent:postmortem` reads Copilot CLI and Codex sessions.** `transcript-index.mjs` detects the format per file and indexes Copilot CLI session logs (`~/.copilot/session-state/<session>/events.jsonl`) and Codex rollouts (`~/.codex/sessions/**/rollout-*.jsonl`) into the same index with the same redaction, and `--run` finds a run's sessions on every host by session id or by checkout and time window. `COPILOT_TRANSCRIPTS_ROOT` and `CODEX_TRANSCRIPTS_ROOT` override the roots.
- **`/multi-agent:deps [package[@version]] [--major]`: bump one dependency and fix what it broke.** The normal pipeline with a fixed task (`state.mode: "deps"`, `taskType: chore`): pick a candidate (a picker when none is named), apply the bump, build and test, and when the run is red, fix rounds that may change only the files that use the dependency unless a build or test error names another. Each round is scope-checked; past `depBump.maxFixRounds` (default 2) the bump is rolled back (manifest, lockfile and the fix rounds' files; any other change is kept and listed) and the run reports what still fails instead of committing. A major, unparseable or prerelease bump needs `--major` or an explicit confirmation. Review gates, commit (`chore(deps): bump X from a to b`) and PR (`Ref:`, never a closing keyword) are the standard ones. Contract: `multi-agent-refs/features/dep-bump.md`.
- **`dep-bump.mjs`**, the deterministic half: `detect`, `list`, `apply`, `surface`, `scope`, `notes`, `rollback`, `config`, JSON out. SwiftPM (`Package.swift` / `Package.resolved`), Gradle version catalogs, npm and pip (`requirements*.txt`, `pyproject.toml`). Listing works offline from manifests, lockfiles, SwiftPM checkout tags and the Gradle module cache; `--registry` asks the ecosystem's own tool and notes a failed query per package. Risk is semver (a minor step under `0.x` counts as major, `+build` metadata is ignored, Maven release qualifiers such as `-jre` and `.Final` are stable under Gradle). Manifest names and urls are checked against their ecosystem's grammar before any registry tool sees them, and registry tools run in the manifest's directory. `apply` refuses a `--to` outside the ecosystem's version grammar (exit 2) and a worktree with uncommitted tracked changes; it edits only the dependency's own npm section, refuses a pip bump another clause excludes, widens SwiftPM ranges and skips commented `.package` calls, picks Poetry and yarn lockfile flags by tool version, uses a workspace root's lockfile, and lists Xcode-managed SwiftPM pins read-only. It updates the lockfile through the ecosystem tool and restores both files when that tool fails; a shared Gradle `version.ref` reports every module that moves with it. `scope` holds a fix to the surface recorded at apply: a file that starts importing the dependency passes only with an error line naming it in the `--log` it is given. `help` prints usage.
- **Settings** `depBump.maxFixRounds` (2) and `depBump.queryRegistry` (true); state root `depBump`.

### Changed

- **Claude rungs move to the current generation.** `cost-table.json` resolves `fable` to `claude-fable-5-1` ($10 in / $50 out / $0.25 cache-read per MTok), `opus` to `claude-opus-5-5` ($4 / $20 / $0.20), `sonnet` to `claude-sonnet-5-5` ($2 / $10 / $0.10) and `haiku` to `claude-haiku-5-5` ($0.50 / $2.50 / $0.05, the over-100k-token tier, since the table holds one rate per rung and over-reporting is the safe direction for a ledger; prompts up to 100k bill at $0.10 / $0.50 / $0.01). The Claude Code column of the Phase 3 reviewer table, the review and orchestrator skills, the fallback contract and the live-eval pinned model follow. Copilot CLI dispatches the newest IDs `copilot help config` lists (1.0.45): `claude-opus-4.7`, `claude-sonnet-4.6` and `claude-haiku-4.5`, recorded per rung as `copilotModelId`; it lists no Fable model, so that rung is not offered there. `smoke-model-fallback.sh` accepts a `copilotModelId` as a known ID, checks each against `copilot help config` when the CLI is installed, and treats `claude-fable-5` and `claude-haiku-4-5` as retired. `cost-table.json` gains a `legacy` map of previous-generation wire IDs at their official prices (`claude-fable-5` $10 / $50 / $1, `claude-opus-5` $5 / $25 / $0.50, `claude-sonnet-5` $2 / $10 / $0.20, `claude-haiku-4-5` $1 / $5 / $0.10); `cost-analyze` prices a transcript by exact wire ID (current, Copilot or legacy) before matching a dated snapshot, so a session on a previous generation is priced at its own rate. A `models` map prices each `copilotModelId` at its own model's official rate (`claude-opus-4.7` $5 / $25 / $0.50, `claude-sonnet-4.6` $3 / $15 / $0.30, `claude-haiku-4.5` $1 / $5 / $0.10) ahead of the rung's, so a Copilot CLI session is not under-reported at the newer rung's lower price; the rung mapping still drives dispatch.
- The always-on description ceiling in `smoke-context-budget.sh` moves from 92500 to 93000 for the new command and its shared/core counterpart (181 bytes each).

### Fixed

- `plan-todos.sh set` accepts the `T1`, `T2` ids a converted planning-output carries, and stops with exit 2 when a dependency matches no todo id exactly, naming an id that differs only in case.
- The syntax check after an edit looks at no more than 8 files per call and stops before a file would take the call past 8 s; the files it skipped are counted in its message, and when every checked file parsed a short note still says how many were not checked.
- `phases.json` declares the `deps` mode (all six phases), so the usage report counts a `/multi-agent:deps` run as `deps` rather than `unknown`.
- A Copilot CLI session with no `session.shutdown` record has its usage marked partial in the post-mortem.
- Uninstall removes every hook `claude-hooks.json` registers in `settings.json`, on every event, and leaves the user's own hooks in place.
- The Codex hooks file is written through a symlink with its mode kept, and a hooks file whose root or `hooks` value is not an object is refused with exit 1 and left unwritten.

## [20.24.0] - 2026-10-14

### Added

- **Plan checks before approval.** `validate-planning.mjs` pairs every two tasks that touch the same file or name the same symbol in the optional `creates` / `removes` / `produces` / `consumes` lists and returns one anchored row per pair: two creators of one file fail the plan; removing what another task uses, a consumer not ordered after its producer and an unordered shared edit are warnings shown at the approval gate. `plan-complexity.mjs` scores each task 1-10 from the repository (files listed, code-graph fan-in of their declarations, modules spanned, dependents outside them, test surface); a task above `planComplexity.splitAbove` (default 7) is split before approval with its requirement ids carried onto the parts. Contract: `multi-agent-refs/features/plan-checks.md`.
- **Drift holds what was built on it.** `plan-todos.sh drift` compares the files a step changed with its planned `files[]`, `creates[]` and their test files (paths normalised) and takes its not-done count; every pending step that depends on it, directly or transitively, gets `needsReplan`, `next` reports it as waiting, `start` and `complete` refuse it, and `confirm-replan` releases it once its plan has been re-read. Applies where Phase 2 iterates plan todos (`planTodos.enabled`).
- **TDD evidence per todo.** `plan-todos.sh tdd-red` / `tdd-green` read the runner's own results (JUnit XML, an `.xcresult` bundle or its exported summary, xcodebuild / `swift test` logs) through `lib/tdd-evidence.mjs` and record `plan.todos[].tdd`; `complete` checks it per `tddEvidence.mode` (`off`, `warn` by default, `enforce`). Docs and chore todos, component tasks, test policy `none` and `complete --no-tests <reason>` are exempt with the reason recorded, and Phase 3 gives the reviewers one note per todo completed `unverified` or exempted by `--no-tests`. It applies where Phase 2 iterates plan todos (`planTodos.enabled`).
- **Rework escalation.** On the last rework round the cap allows, or when `review-delta` reports findings still present after a fix, `rework-escalation.mjs` dispatches a fresh dev agent one rung up the model-fallback ladder with the triage round and the prior attempt's diff as files. It never escalates against the cost budget, on a run that fell back, onto fable while that rung is off, or past `reworkEscalation.maxTier` (default `opus`), and every refusal is recorded with its reason.
- **Decisions made on your behalf.** Autopilot and unattended runs record every choice a person would otherwise have made in `state.decisions[]` as `{what, why, costIfWrong, at, phase}`: parks, blockers lowered to important, rework escalations, pickers resolved without asking, split consensus, date-gate fallbacks. The Phase 5 report and the autopilot PR body list them in one redacted section, and the PR body still passes the outbound gate.
- **Mutation probe on changed lines** (opt-in, `mutationProbe.enabled`). `mutation-probe.mjs` makes up to `mutationProbe.maxMutants` (5) simple mutants on the lines the diff added or changed, runs the test command in a disposable detached worktree, and reports each surviving mutant as an `important` finding that the tests are weak. The user's checkout is never written. Phase 3 Step 1.763; recipe in `features/mutation-probe.md`.
- **Syntax check after an edit** (opt-in, Claude Code). Set `editSyntaxGate.enabled` and merge the hooks block again through `/multi-agent:setup` (Step 8), which now carries the `PostToolUse` registration. The hook parses the edited file within 2 s (`swiftc -parse`, `node --check`, `py_compile` into a temp dir, JSON, `bash -n`) and tells the model about a syntax error; it never blocks, and stays silent when the parser is missing or slow.
- **`find-polluter.mjs`** bisects a test list from a clean state to the test that leaves a stray file (`--absent`) or breaks another test only when run before it (`--target`), and stops with exit 2 when state survives a trial and no `--reset` was given; `debugging-strategies` points at it.
- **`/multi-agent:postmortem [#id|transcript.jsonl] [--audit]`**: a read-only post-mortem of a run from its session transcripts. `transcript-index.mjs` indexes turns, loops of identical tool calls, stalls, compactions, subagents, errors and denials, token use and invocations, each cited as `file:line`, and redacts every excerpt (credentials, emails, hosts, paths, home directories) with a count. The report goes to the run's log directory; nothing is sent. Claude Code transcripts only.
- **Story dependencies in `/multi-agent:analysis-jira`.** A requirement row's `Depends on: <ids>` clause links the stories in Jira (`issueTree.dependencyLinkType`, default `Blocks`, prerequisite to dependent); a dependency cycle or a prerequisite no story covers makes the plan `incomplete`. Documents without the clause plan exactly as before.
- **Reply shape.** `rules/response-shape.md` (with its detail in `multi-agent-refs/response-shape.md`) shapes conversational replies: the answer or next action first, numbered single-action steps, at most five items shown without ever dropping a finding, errors as cause then fix, and a last line that says what happens next.
- **Maintainer evals** (not shipped; their live calls never run in `npm test`, which tests them against a fake CLI): `eval-skill-compliance-live.mjs` pressure-tests discipline rules against a no-rule baseline with deterministic graders, and `eval-ab-judge.mjs` judges prompt and style variants blind, with hash-stable labels, a judge-only rubric region and a blocker-first verdict. Both are dry-run by default and need `--live`, `MULTI_AGENT_LIVE_EVAL=1` and an explicit budget; documented in `pipeline/eval/README.md`.
- The App Store optimization skill orders the brief for a marketing frame around a real capture: device and size, the capture as the asset, verbatim captions per locale, brand tokens, explicit exclusions.

### Changed

- `plan-todos.sh next` (with `planTodos.enabled`) answers from a task graph: the ready todo that unblocks the most pending work comes first, then the longest chain behind it, then plan order, and a todo a failed or missing dependency or a cycle blocks is named on stderr instead of leaving `next` silently empty.

## [20.23.2] - 2026-10-13

### Added

- `issueTree.storyPanels` sets the colours of a Story's wiki panels (`story`, `criteria`, `other`, each `#rrggbb`) or turns them off with `false`; `/multi-agent:create-jira` and `/multi-agent:analysis-jira` both read it. Unset keeps `#d4d39e`, `#d4a19e` and `#9eb6d4`, and a value that is not a colour keeps its default.
- `/multi-agent:analysis-jira` asks once, in an attended run with no `issueTree.subtaskRoles`, which sub-tasks every story gets, offering the site's own sub-task types (`analysis-jira-write.sh --subtask-types`), and saves the answer (`analysis-story-tree.mjs --save-subtasks`); "no sub-tasks" is remembered as `issueTree.subtaskRolesDeclined`.

## [20.23.1] - 2026-10-13

### Fixed

- `/multi-agent:analysis-jira` finds a site's sub-task types on Jira Data Center 9, which answers only the per-project `createmeta/{project}/issuetypes`; sub-tasks were created under the generic `Sub-task` name there. `issueTree.subtaskIssueType` may now map each role to the site's type (`{"develop": "Build Sub-task", "test": "QA Sub-task"}`, `"*"` for any other role), a site with several sub-task types and no setting is named in the run's output, and the preview shows the type each role gets.
- The code graph reads Swift imports behind an attribute (`@testable import`, `@_exported import`, `@preconcurrency import`, `@_spi(...) import`).
- Python type parameters (`class Box[T](Base):`) keep their bases, and a TypeScript base built by a call (`extends mixin(Base)`) adds no edge to the function.
- A diff hunk that only inserts or only deletes lines is given to the declaration spanning both lines around it, at any context size; at `-U0` it was given to the line before it.

## [20.23.0] - 2026-10-13

### Added

- **Operational reporting reaches teammates on work machines.** When no GitHub account on the machine can prove access, setup and update ask once for the person's GitHub username and `usage-register.mjs --login <name>` registers it as declared; the server issues the token only to a collaborator (the repository owner registers with a proof), under a machine label with a random suffix, and marks its records `claimed`. Later runs re-register a declared name without asking. A declared name is used only when the machine proves no account: it never replaces a proven registration, a later proof replaces it, it is compared case-insensitively, it is never used for `/multi-agent:feedback`, it is not written on a dry run or (outside feedback) an opted-out machine, a refused name is forgotten so setup asks again, and a claim that failed otherwise is not resent for a day.
- The installer starts `usage-report.mjs --lifecycle` right after writing the version stamps, so every install and update reaches the panel when it happens (`MULTI_AGENT_SKIP_USAGE_REPORT=1` turns it off).
- `graph-confirm.mjs` merges a `graph-affected` answer with `code_references` results: each direct dependent is `confirmed`, `name-only` or `unchecked`, and `lspOnly` names files the server found that the graph missed. Only a ready semantic index confirms or demotes.
- **`inherits` edges in the code graph** (schema 1.2.0): subtype to superclass, protocol or interface, read from Swift and Kotlin `:` lists, Swift extensions, Python bases and TypeScript `extends` / `implements`. `graph-affected "<Protocol>" --kind inherits --depth 1` lists its conformers.

### Changed

- A Story's description puts each section in a coloured wiki panel, its heading first: the user story `#d4d39e`, the acceptance criteria `#d4a19e`, every other section `#9eb6d4`. `/multi-agent:create-jira` and the stories `/multi-agent:analysis-jira` plans both write it; Task and Bug keep plain sections.
- The code graph is on by default (`prefs.global.codeGraph.enabled: true`): it costs seconds and no API calls, never fails a run, and without it the diff mapping, `dependents_reached` and `inherits` answers never run. Set it to `false` and no graph is built or refreshed.
- `knowledge.md` lists the stores a run fills without a model, how each reaches Phase 1, and why the prose files carry no generated copy of them.

### Fixed

- The code graph never points production code at a type a test file declares; a test fake named after a framework type (`protocol View`) made every view in an app depend on it.
- A root-level `Tests/` directory (the SwiftPM layout) counts as test code in the code graph and in `test-gap-scan`.
- An attribute whose arguments run over several lines (`@available(iOS 16,` / `macOS 13, *)`, `@Test(arguments: [Item.init(a: 1),`) belongs to the declaration below it.
- `symbol-existence-gate`, `test-strength`, `valven-port` and `valven-split` read git path lists NUL-separated, so files with non-ASCII names are checked under their real paths; valven pathspecs are literal.
- `learnings-ledger from-triage` exits 2 when it distills nothing, so a repeat `capture-flush` reports `ok-nothing-new` for the ledger.
- `product-context.mjs learn` and `decline` write the preferences file under the shared file lock, leave a file that does not parse untouched, and write through a symlink.
- A diff header whose quoted path is followed by a tab maps to the right file in `graph-affected --diff` and in `symbol-existence-gate`.
- `graph-affected --diff <base>..<head>` reads the diff on the side the graph was built at (its head or its base) whatever the working tree holds.
- `graph-build` keeps git's stderr off the terminal.
- `capture-flush.sh --json` keeps stdout to the JSON answer; its progress lines go to stderr.
- A preferences file that is a dangling symlink, or a chain of them, is written through to its target instead of replacing the link.

## [20.22.0] - 2026-10-13

### Added

- **Product context: planning reads the product's other repositories at their latest branch.** A run develops in its active stack's repositories; Phase 1 Step 1.6 now also reads every other repository of the product (the other platform's app, web, backend services, the shared resources repo), read-only, at `develop` or else the remote's default branch, pinned to a sha, through the multi-agent-toolkit's `repo_*` tools (≥ v3.22.1). It is symmetric: whichever stack is primary, the rest are references. Each join key (Figma node id, localization key, endpoint path, analytics event) lands as `implemented`, `not-yet-implemented` (this run is first; nothing is ported) or `diverges`, in `state.productContext` and in the plan. Never blocking. Contract: `multi-agent-refs/features/product-context.md`.
- `prefs.global.products` and `prefs.projects[<key>].product`, the product map. GitHub and Bitbucket repositories mix in one product; a repository may name a read-token credential key and `basic` or `bearer` auth. The dev-context step offers to map an unmapped project once (attended only), suggesting repositories whose name core matches; declining is remembered.
- `scripts/product-context.mjs` (`refs`, `suggest`, `needs-mapping`, `learn`, `decline`, `record`, `recall`). Each reference carries a tool-ready `spec`. Findings are appended to the related repository's own `knowledge/<repo>/product-context.jsonl`, keyed by the sha they were read at, so what an iOS run learns about Android serves the next Android run while that sha is current; the knowledge row keeps the tool's status and the planner's note, while a `diverges` verdict stays in the run's state. `learn` merges by remote, re-checks every credential the merge keeps, caps a product at 20 repositories (one `repo_find_keys` call), accepts `file://` only with the toolkit's file switch, and keeps the preferences file's mode.
- **Change impact from the code graph.** `graph-affected --diff <base>` (also `<base>..<head>` and `--diff-file`) seeds the reverse walk from a diff: each hunk maps onto the innermost declaration it touches through indentation-derived spans (`endLine`, code-graph schema 1.1.0, attribute lines and multi-line headers included, `#if` lines skipped), read on the side of the diff the graph was built from (`side`), so a graph built on the base checkout maps a branch's diff correctly and a deleted file reaches its dependents; enclosing declarations are seeded too, and the JSON names `changedSymbols`, `notIndexed` and `fileLevel`. Contract: `multi-agent-refs/features/code-graph.md`; decision: `docs/adr/0017-change-impact-from-the-graph.md`.
- **Graph freshness on every answer.** `graph-affected` reports `freshness`: files edited since the build (uncommitted work included), files removed, and whether HEAD moved. A stale answer says it is stale.
- **`dependents_reached` risk signal.** `diff-risk-score --graph` adds the number of distinct non-test files that depend on the changed declarations, two rings out, capped at 20 so it never outweighs a security path. Phase 3 Step 1.75 passes the project's graph; without one, nothing changes.

### Changed

- Phase 3 platform parity and `/multi-agent:review` take their counterparts from the product first and compare at the pinned sha, without a local checkout; the mirrored ios ↔ android resolution remains the fallback. The sibling-directory source keeps only repositories whose name core matches the primary's, and lists the main checkout's parent, not a worktree's.
- `/multi-agent:analysis` reads every repository other than the one it runs from at its latest integration branch through `repo_*`, records `evidence.repoShas[]`, and includes those shas in `evidence_digest`.
- `/multi-agent:setup hosts` re-opens the host prompts and the repository read binding (Token Save Flow Step 3.7) for tokens already saved; a GitHub or Bitbucket token pass asks for the binding after its host.
- `smoke-cross-cli-behavior.sh` installs Codex as well and checks that product context reaches Claude Code, Copilot CLI and Codex CLI.

### Fixed

- `graph-affected` reaches transitive dependents: the walk continues through what each dependent file declares, instead of stopping after one ring, and no longer lists the defining file as a dependent.
- `graph-query` charges its token budget for the line it prints, so the reported count matches the output.
- `capture-flush.sh` finds a run's triage when only Phase 3's own round files exist: after the salvaged and worktree copies it reads each worktree's newest `.pipeline/triage-round-<N>.json`, including worktrees a multi-repo run lists under `projects[]`, then the state directory. A run that died before its `triage-output.json` copy no longer leaves the triage corpus and learnings ledger empty.
- `capture-flush.sh` files triage-corpus and ledger entries under the run's own repository (its worktree's main checkout, else the project in the state), not under the directory the hook fired in.
- `capture-flush.sh` prefers the newer of a worktree's `triage-output.json` and its newest round, names a submodule's store after the submodule, and ignores a project name that is not a plain name.
- Copilot's instructions map `$HOME/.claude/scripts/` and `lib/` in refs read from `~/.claude` or GitHub to the Copilot copies.
- `diff-risk-score` reads `--numstat -z`, so renamed, braced and non-ASCII paths are the new path exactly.
- `graph-build` lists files with `ls-files -z`, so files with non-ASCII names (`Ödeme Özeti.swift`) are indexed.

### Security

- A repository credential is accepted by `learn` only when `prefs.global.credentialHosts` already binds the key to that https host. The binding is written by `/multi-agent:setup` (Token Save Flow Step 3.7) with the person present; the product map never creates one. Requires multi-agent-toolkit ≥ v3.22.1, which reads bindings from the same place.

## [20.21.0] - 2026-10-12

### Added

- **Free models for simple work: `/multi-agent:route-on --free`.** Layer 2 of model routing. The new `free` rung sends a large-file read (`bulk-read.sh`) and simple text tasks at the new `delegate` call site (log and document summaries, field extraction, labels, translation and commit-body drafts) to the multi-agent-toolkit's verified free-model chain first. Every answer is checked against its source by the toolkit, and `bulk-read.sh` also checks cited lines against the file; when nothing passes, the Anthropic default answers as before. Decisions, plans, code, reviews and triage never leave Claude. A subagent stays on the Anthropic ladder: the router refuses `free` there. Contract: `multi-agent-refs/features/free-models.md`.
- `modelRouting.free` (`enabled`, `allowTraining`) and the `delegate` scope. By default only providers whose free tier does not train on prompts (Groq) and a local Ollama receive text; `--allow-training` widens it. `--no-free` turns only the free chain off, and `route-off` keeps it configured.
- `/multi-agent:route-status` reports the last seven days of free-model work from the toolkit's usage log: tasks answered free and verified, cache hits, tasks handed back to Claude, and the tokens kept off Claude with an estimated saving at haiku rates.
- `route-on --free` lists usable providers by key source and, with none, names the one step that fixes it. `/multi-agent:setup` Step 3e stores free-model keys under `llm-<id>` through the clipboard flow.
- `doctor` check `free-models`: WARN when the free chain is on and no provider is usable under the data policy, or when the toolkit CLI cannot run; `--probe` sends each configured provider one tiny request and WARNs when every usable one fails.
- `lib/toolkit-llm.sh` runs the toolkit's `multi-agent-toolkit-llm` CLI from `MULTI_AGENT_TOOLKIT_LLM`, `PATH` or `npx`.
- Analysis evidence gathering summarizes long Confluence, document, Jira and `generic-doc` texts through the free chain when it is on; `binding: true` standards are never delegated.
- The `task-fit` and `cost-ceiling` strategies change dispatch: `task-fit` tries the matched rule's cheapest rung first, `cost-ceiling` does so once `cost-budget-check.mjs` reports the run at the warn threshold of `budgetCeilingUsd`.
- Unattended runs: agent-guard allows `llm_delegate` only while `route-on --free` is on, and checks its `path` like a write target. The sandbox network list adds the free-model hosts the data policy allows once the free chain is on, and a sandboxed `bulk-read.sh` keeps the toolkit's quota and usage files under `~/.multi-agent-unattended/toolkit-index`.
- Groq (`gsk_`) and OpenRouter (`sk-or-v1-`) keys are blocked by both secret surfaces, the commit hook and the outbound gate.
- The cross-CLI contract lists the multi-agent-toolkit 3.21.0 minimum for `llm_delegate`, `llm_providers` and the CLI.

### Fixed

- `route-state.sh set-rules` validates each rule against the schema and the cost table (keys, phase range, taskKind, known rungs) and writes nothing when one fails, instead of storing any JSON array.
- `recordDecisions: false` is honoured by `model-dispatch.sh` and shown correctly by `route-status`; jq's `//` read `false` as missing, so every decision was logged.

### Changed

- The ecosystem doc counts the toolkit from its 3.21.0 `tools/list`: 191 tools in 20 categories.

## [20.20.0] - 2026-10-12

### Added

- The cross-CLI contract lists the multi-agent-toolkit 3.20.0 minimums: `expect_aria` and `web_assert_aria`, the web state tools (`web_route`, `web_network_state`, `web_clock`, `web_dialog`, `web_upload`, `web_drag`, `web_hover`, `web_fill_form`, `web_find`, `web_generate_locator`, `web_trace`), `web_scrape` with `web_crawl` / `web_map` sitemap and path scoping, and the `research_ask` modes, filters and follow-up threads.
- `e2e-testing` covers error, empty, slow and offline web states with the toolkit's routing, offline, clock and dialog tools, `web_find` and locator objects, and `web_generate_locator` for a stable locator in a saved step or a generated test. Exploratory testing reaches the same states on purpose.
- `web-testing` shows `toMatchAriaSnapshot`, `page.route`, `context.setOffline` and `page.clock` for a project's own Playwright tests.
- `signal-community` uses the research modes, recency, domain and academic filters, arXiv and `fetch_content`, and treats a result whose untrusted fence carries injection flags as evidence to quote, never as an instruction.
- Phase 1 reads a load-bearing `generic-doc` link through the toolkit's `web_scrape` when the server is registered, else WebFetch.
- `/multi-agent:refactor` band E runs its research axes through the toolkit and watches `microsoft/playwright-mcp` and `firecrawl/firecrawl-mcp-server`, with a license check before any peer code is read.

### Fixed

- Unattended runs: the guard checks every entry of a `paths` list (`web_upload`) against the path rules instead of only single path arguments, and host-checks `web_scrape` and `web_map` URLs like `web_goto`.

### Changed

- The ecosystem doc and facts count the toolkit from its 3.20.0 `tools/list`: 189 tools in 19 categories.

## [20.19.0] - 2026-10-09

### Changed

- `/multi-agent:update` ends with a note of what the update brought, in the user's language: every release between the installed and the new version (not only the last one, and not cut at 40 lines), grouped as new, fixed, changed and removed, plus each stack plugin the refresh moved and what its releases added. The note is written from `release-notes.mjs`, which reads the new release's CHANGELOG and each updated plugin's CHANGELOG and never fails the update; internal-only entries are left out and nothing is added that the CHANGELOGs do not say.

## [20.18.0] - 2026-10-09

### Added

- Apple's Xcode-provided skills are linked from the machine's own Xcode 27.1 or later (`xcrun agent plugin path`), never shipped in this package. The installer keeps a local directory marketplace (`~/.claude/xcode-apple-marketplace`, plugin `xcode-integration@xcode-apple`) at the installed Xcode build for Claude Code, and copies the same skills beside the stack plugin skills for Copilot CLI and as refs for Codex CLI when the iOS toolkit is delivered, with a manifest for refresh and uninstall. No Xcode, an older one or a failing `xcrun` links nothing and fails nothing. `MULTI_AGENT_SKIP_XCODE_SKILLS=1` (and the existing `MULTI_AGENT_SKIP_MCP_REGISTER=1`) skip the link for hermetic installs.
- `/multi-agent:stack` turns `xcode-integration@xcode-apple` on with `ios` and off without it, once the link exists.
- doctor check `xcode-skills`: SKIP without the Xcode plugin, INFO when available but not linked, WARN when the link is older than the installed Xcode build.
- `ios-iphone-duo` routes the code scan to Apple's `app-resizability` first, and covers the scene-based life cycle (required from iOS 27 for apps built with the latest SDK), legacy layout guides, `keyboardLayoutGuide` and stored insets for machines without it.

### Changed

- Uninstall removes the Claude Code link (plugin, marketplace and directory) and the delivered copies, since nothing refreshes them without the pipeline.

## [20.17.2] - 2026-10-08

### Added

- iOS design knowledge skills, routed to ai-ios-toolkit: `ios-design-review` (design critique and screenshot-based visual QA with an appearance matrix and the multi-agent-toolkit MCP tools), `hig-app-icons` (Icon Composer layered icons and variants), `ios-sf-symbols` (rendering modes, variable values, symbol effects, custom symbols), `ios-haptics` (the single owner of haptics guidance) and `ios-iphone-duo` (iOS 27.1 two-screen readiness, beta APIs marked). Each has references and evals.

### Changed

- `swiftui-liquid-glass` owns Liquid Glass, including the UIKit counterparts, the compatibility opt-out and the accessibility settings that change glass; `hig-foundations`, `hig-components-layout`, `hig-platforms`, `hig-patterns`, `ios-accessibility` and `swiftui-animation` gain iOS 26 and 27 coverage; duplicated glass, animation and haptics material in `swiftui-expert-skill`, `swiftui-ui-patterns`, `swiftui-patterns` and `hig-inputs` is reduced to pointers, and the NOTICE files of the vendored `swiftui-expert-skill` and `swiftui-ui-patterns` record the trims.
- The description-surface ceiling in `smoke-context-budget.sh` rises from 91500 to 92500 bytes for the five new skills, after their descriptions were trimmed to 1472 bytes and ten edited iOS descriptions were trimmed (eight at or below their earlier length); the average stays at 314 against its 420 ceiling.

## [20.17.1] - 2026-10-07

### Changed

- Operational reporting finds the person's own GitHub account with no question asked. `usage-identity.mjs` stops at the first account that can read `usageLog.accessRepo`: a gh account as before, then the token git's credential helper holds for https://github.com (`git credential fill`, prompts disabled; login from `GET /user`, access from `GET /repos/<accessRepo>`, through gh or straight to the API when gh is missing), then an SSH key (`ssh -G github.com` identity files plus `~/.ssh/id_ed25519`, `id_ecdsa`, `id_rsa` with a `.pub`; login from `ssh -T`, access from `git ls-remote`, batch mode with only that key). Prefs cache `usageLog.loginMethod` (`gh`, `credential`, `ssh`) and `loginKey` next to the login. No token reaches an argv, a log or prefs, and a missing binary or a failed check only means no candidate.
- `usage-register.mjs` proves the login the way it was found: a gh token or the credential helper's token (read again at registration) as the bearer, or for an SSH key a signature over a server challenge (`POST <register>/challenge`, `ssh-keygen -Y sign` over the exact challenge bytes in a 0600 temp file, stdin closed, then the `.pub` through ssh-agent), sent with no Authorization header. `401` `ssh_signature_invalid`, `ssh_key_not_on_account` and `ssh_key_unsupported`, a key that cannot sign and an endpoint without a challenge each get their own status line.
- `needsPersonalAccount` is true only when the machine is not pinned and no account was found at all; setup and update offer `gh auth login` or adding the SSH key to the personal account as the last resort.

### Removed

- The fallback to the active gh account when no account can read the pipeline repository: the server accepts only the repository owner and its collaborators, so nothing is reported under another account. A cached `usageLog.loginFallback` is re-checked at once and dropped; a registration with `registeredFallback: true` is not treated as pinned, is not used to name runs, and is replaced as soon as an account with access is found.

## [20.17.0] - 2026-10-07

### Added

- Install and update records for operational reporting (`pipeline/lib/usage-lifecycle.mjs`): the installed version is read from the installer's `.pipeline-version` stamp, its time from the stamp's modification time, and compared with `usageLog.reportedVersion`. When they differ, `usage-report.mjs --lifecycle` sends an `install` or `update` record (new version, the version it replaced, the host trees, the time) under the reporting login and moves `reportedVersion` forward once the server accepted it. Registration, setup and update with a token already onboarded, and every accepted run event run it; the installer still writes nothing but files. `usage-register.mjs` records `usageLog.registeredAt`, which tells a first install from an update on a machine that never reported a version.
- A registration is pinned: the machine keeps the verified login in `usageLog.registeredAs` (`registeredFallback` says whether it was a fallback account), every record is named after it without a gh call, and a fallback account never replaces it. `usage-register.mjs --json` reports `needsPersonalAccount`, and setup and update offer once to log in the account that has access, switch the work account back and re-register, so the personal account needs to be logged in to gh only at that moment.
- Valven Development Behaviors in `valven-rules` (registry 1.1.0), scored on Valven's own bands: `VLV-CYCLE-01` coding time (first commit to the pull request opening; 30 min / 2.5 h / 24 h), `VLV-CYCLE-02` pickup time (ready for review to the first review; 1 h / 3 h / 14 h) and `VLV-CYCLE-03` review time (first review to approval or merge; 30 min / 3 h / 18 h). A duration in the 50 or 0 band is a `suggestion`, because the time has passed and the pull request cannot change it. `VLV-PICKUP-01` is `important` for a pull request without a reviewer and a `suggestion` for a draft older than 3 hours (`draft_severity`), because an unattended run opens a draft on purpose; a draft is not asked for a reviewer. `VLV-REWORK-01` also reports the churn score, `100 - churn %`.
- `valven-gate.mjs --pr-meta-file`: the pull request's timeline, read from `gh pr view --json author,closedAt,createdAt,isDraft,mergedAt,reviewRequests,reviews` as it is or from a normalized Bitbucket file; reviews by the author never count. `pr-timeline.mjs` writes the GitHub file: `gh pr view` plus the ready-for-review time and each review author's type from GraphQL, so a pull request opened as a draft is timed from when it was marked ready and a bot reviewer is not counted as a person. Pending reviews, bot reviews and reviews left before ready are ignored, an unknown reviewer count stays unknown, and a merged or closed pull request stops the clocks. The report carries `scores` per rule and `results[].score`; an unreadable file is reported and only the timeline rules go `not-measured`. `/multi-agent:review` passes it for GitHub and Bitbucket pull requests and prints a `Valven scores` line.
- `pipeline/lib/plugin-skill-roots.mjs`: the marketplace plugin `skills/` roots, shared by `skill-conformance.mjs` and `valven-gate.mjs`.
- Exploratory testing contract for `/multi-agent:test` (`features/exploratory-testing.md`, `explore-findings.mjs`, `explore-run.schema.json`). A finding carries expected, observed, repro steps, severity 1-5, kind `issue` or `warning`, and evidence on disk; a finding that misses a field, or writes a secret in clear text instead of `secret_ref:<name>`, cannot fail the run. Each run has a step, minute and token budget (defaults 8 / 10 / 150000, clamped to 1-12 / 3-15 / 20000-400000), and `check` stops it at a spent budget or after three consecutive blocked steps that reported nothing. `CREDENTIAL_MISSING`, `ENVIRONMENT_UNAVAILABLE`, `SEED_DATA_MISSING` and locator or replay failures are blocked steps, reported by cause and apart from product failures; a run whose every step was blocked is `blocked`, not `passed`. `sim-test.md` writes the run file, prefers `ui_locate` / `*_tap_element` and `expect_*` steps over coordinates, and renders its report from `report`.
- Assertion judge (`features/assertion-judge.md`): a visual or semantic assertion is decided by a fresh subagent that receives only the assertion, the current screenshot or UI tree, and optionally the app's vocabulary. `explore-findings.mjs judge-packet` refuses any field describing the run, and `judge-verdict` fails an inconclusive answer, or one citing evidence it was not given, as `ASSERTION_INCONCLUSIVE`.
- `/multi-agent:bug-bash [scope] [--platform ios|android|web] [--charters <file>]`: 5-10 charters, each with a persona (`first-time-user`, `skeptic`, `fuzzer`, `state-keeper`, `error-paths`, or `custom`) and its own budget, run as parallel explorer subagents (at most 4, one device or web `session` each). `bug-bash.mjs` validates the charters, merges findings that describe one defect, and confirms a candidate only when its repro test failed with `ASSERTION_FAILED` on the assertion that encodes it; every other candidate is listed as rejected with its reason (artifact, environment, design, fixture, did-not-reproduce, unproven, unverified), and environment rejections can be kept as unverified production risks. No commit, push or issue.
- `e2e-testing` knowledge skill, shipped in ai-common-toolkit: element locators, expect steps and their verdict codes, `secret_ref`, failure traces, `save_as` / `replay`, parallel web sessions, and `document_generate` / `document_mrz_build` fixtures for MRZ and document-scan tests. The toolkit side of all three entries needs `@mmerterden/multi-agent-toolkit-mcp` ≥ v3.19.0 (`cross-cli-contract.md` section 1.4); on an older server the flows fall back to UI-tree reads and frame-centre taps.
- The description-surface ceiling in `smoke-context-budget.sh` moves from 91000 to 91500 for `/multi-agent:bug-bash` and its shared/core counterpart (211 bytes each, below the 317-byte average, after a trim from 391) and the `e2e-testing` skill: the tree grew, no description is padded.

### Changed

- `valven-rules` moved from `skills/shared/core` to `skills/shared/external` and ships in `ai-common-toolkit`, so the rules reach everyone who installs the marketplace, not only pipeline users. Claude Code reads it from the plugin and no longer installs a local copy; Copilot CLI and Codex receive it from the installer as before. `valven-gate.mjs` and `valven-split.mjs` read the registry installed with them, so the gate's evaluators and rules come from one release: on Claude Code the installer lays the skill down in `multi-agent-refs/registries/valven-rules/`, outside the skills dir, and a leftover `~/.claude/skills/valven-rules` is never read. The plugin copies (checkout, then every cached version, newest first) are the last resort. On Claude Code `skill-conformance.mjs` searches the plugin roots first and then that registries dir; on Copilot and Codex the installed skills dir stays first.
- The Claude Code installer removes the old local copy when it matches a shipped version: `gen-catalog-history.mjs` keys a skill by its directory name whether it sits in `core/` or `external/`. A dangling symlink a `--link` install left there is removed too. Uninstall removes the old copy and such links (`PIPELINE_RETIRED_SKILL_DIRS`).
- The repo sync leaves `~/.claude/multi-agent-refs/registries/` out: the installer generates it from `pipeline/skills/shared/external`, which the repo already holds.
- Phase 4 recommends opening the pull request READY rather than DRAFT: every gate has passed before the push, and a draft holds the reviewers back. A saved `defaultPrMode` still wins. The Step 2.95 log line carries the coding score.

### Fixed

- `pre-commit-check.sh` lets `.env.example`, `.env.sample` and `.env.template` through the env-file block, since a template documents names rather than values; their content is still scanned for secrets, and every other `.env*` file is still blocked.
- Operational reporting: when no logged-in gh account can read the pipeline repository, `usage-identity.mjs` reports under the active account (else the first), marked `usageLog.loginFallback` and cached for 1 day so an account with access added later takes over. A work machine often has only an enterprise-managed account logged in, which can never be a collaborator of a personal repository; the server decides whether it accepts that login. Only a machine with no gh account at all reports nothing.
- `usage-register.mjs --quiet` prints one stderr line, `multi-agent: usage reporting is off - <reason>`, when reporting stays off for a reason the user can fix, and the Phase 0 backstop no longer discards stderr. A refused login is told to add the account with access with `gh auth login`.
- The usage emitter waits 6 s for the endpoint instead of 2.5 s, so a cold start does not drop the record.
- `smoke-cross-cli-behavior.sh` checks for any `$USER_`-prefixed login in the command docs instead of one hard-coded account suffix.

## [20.16.0] - 2026-10-02

### Added

- `valven-rules` registry (`skills/shared/core/valven-rules`): delivery-flow rules derived from the metrics Valven reports (cycle time, rework rate, review responsiveness, PR complexity, commit risk, lead time, change failure rate, MTTR). `gate_rules` are measured by a script: PR size (250 lines important, 600 blocking), 25 files, renames mixed with content, tests with source, issue key on the branch and on every commit, no WIP or fixup commits, rework ratio (removed lines written in the last 21 days, blamed at the merge-base), PR body length and test section, 150-line hotfixes. `rules` (`VLV-SCOPE-02`, `VLV-PRDESC-02`) are judgement rules the reviewers return a verdict on. Thresholds are overridable per rule in `prefs.global.valven.thresholds`; `prefs.global.valven.enabled: false` turns the gate off and logs it.
- `valven-gate.mjs --mode dev|commit|review`: runs at Phase 2 exit (Gate 6, `--worktree` includes uncommitted and untracked files), Phase 4 Step 2.95 before push, Phase 4 before the PR is created (PR body), Phase 3 Step 1.762 and every `/multi-agent:review` (Claude Code and Copilot). Works from a checkout or, for a PR without one, from the patch, commit subjects, branch name and body; what it cannot measure is reported `not-measured`.
- Old-work rules: `VLV-AGE-01` (a commit older than 14 days, by author date), `VLV-BEHIND-01` (more than 50 commits behind the base or a merge-base older than 14 days) and `VLV-TRACE-03` (commits carrying another issue's key). `valven-port.mjs` carries the net change onto `<branch>-vN` cut from the current base tip with `git apply --3way`, one commit, rolling back on conflict. Phase 0 does not reuse a branch with old work; Phase 4 ports before it splits; `/multi-agent:review` puts the port plan in the finding.
- `valven-split.mjs`: builds on one branch, ships as stacked PRs. Plans slices under the size budget (renames first, tests with their source, data, then domain, then UI), and with `--apply` creates `<branch>-p1..pN` and checks the top of the stack has the branch's exact tree. Phase 4 builds each slice and opens one PR per slice, each based on the previous; `/multi-agent:review` adds the slice plan to the size finding.

### Changed

- `review-decision-gate.mjs` counts `tag: valven` findings as gate-backed, so a single-source valven blocker is not lowered to important.
- `verify-citations.mjs` resolves a `line: 0` finding by its file alone when `criteriaSource` is `valven-rules`; every other source keeps the line check.
- Claude Code installs `valven-rules` with the compliance catalogs as a pipeline-local skill.

## [20.15.1] - 2026-10-02

### Fixed

- `phase-tracker.sh` sends no usage ping for a tracker file supplied through `TRACKER_FILE` outside the run roots, so a test fixture run directly (without `MULTI_AGENT_SMOKE`) never reaches the usage dashboard. `test/usage-ping-fixture-guard.test.mjs` covers both sides.
- `pre-push-check.sh` measures the worktree git runs it in (`git rev-parse --show-toplevel`) rather than the checkout the hook symlink points into, so a push from a second worktree checks that worktree's gate stamp. `test/pre-push-worktree.test.mjs`.

## [20.15.0] - 2026-10-02

### Added

- `phase-tracker.sh task <phase> <taskId> <status> [--subject S] [--active-form A]` records one entry of the host's native task list under the phase it belongs to (pending, in_progress, completed), so a reader that is not the host sees the same list. The tracker contract asks for one `task` call per `TaskCreate` / `TaskUpdate`, `update_plan` step or card row, on every host.

- `runs-index.mjs` 1.2.0: each run carries `runType`, `title`, `progress` and `currentTask`, and each phase `progress` and `tasks[]`, so a client shows how far a run is and what it is doing without reading tracker files. The index reads the unattended log root (`~/.multi-agent-unattended/logs`) beside `LOGS_ROOT`, one record per task id, so a run launched in the background is listed. Each run also carries `processAlive`, from `claude agents --json` through `lib/claude-sessions.mjs`, which the autopilot runner, `run-kill.mjs` and the index now share. Phase 0 records the fetched issue title as `agent-state.json` `title`.

- Launch request `mode: background` with `kind: development | analysis`: an unattended run of `/multi-agent` (without autopilot) or `/multi-agent:analysis`, in the same background shape as autopilot (`launch.json` `hosts.claude.background`). A picker the request did not answer parks the run on a `pendingQuestion` (`picker-contract.md`, Background) instead of being defaulted, and a background run never takes `workspace: local`. `launch.json` `hosts.claude.resume` and `launch-request.mjs` `planResume` give the background shape of `/multi-agent:resume <taskId>`.
- `gate-ledger.mjs park --waiting-for question --question-file <path>` parks a run on a question from the command line; the question is held to the shape a client answers before anything is written.

- `run-kill.mjs preview|apply <taskId>`: what a kill touches (worktree, branch, size, uncommitted files, commits on no remote, whether the session is alive), and the kill itself: `claude stop` for a live session, `git worktree remove --force` for a linked worktree inside its repository, the local branch deleted unless it is the base, the main checkout's branch or main / master / develop, and the run marked `abandoned` with `abandonedBy: "kill"`. `/multi-agent:kill` runs it.

- `gc-tmp.sh`, `gc-refs.sh` and `gc-worktrees.sh` take `--report <file>` (one JSON line per candidate, as `gc-abandoned.sh` writes) and `--only <file>` (only the listed paths), through `lib/gc-report.sh`. `gc-plan.mjs preview` runs all four collectors as dry runs and lists every candidate as `{kind, path, sizeKb, reason}`; `gc-plan.mjs apply` runs each with `--yes --only` over exactly those paths, so nothing the preview did not show is removed.

- `autopilot-control.mjs status | off [--now]`: continuous mode's status document with its contract version, and the off switch `/multi-agent:autopilot-off` describes (schedule and awake agent removed, a stale sleep lock released, the selection kept; with `--now` the in-flight item's session stopped and its run marked `abandoned` with `abandonedBy: "autopilot-off"`, its worktree stashed when it holds work and removed when clean).

- Contract server routes (contract 1.3.0): `GET /v1/repos` (`launch-request.mjs repos`: the configured and registered repositories a launch may name), `GET /v1/runs/{id}/log`, `POST /v1/runs/{id}/resume`, `POST /v1/runs/{id}/kill`, `POST /v1/gc`, `GET /v1/autopilot` and `POST /v1/autopilot/off`, each a call into the script the CLI runs. Kill and gc take a preview request and a confirming one; the confirm token is random, single use, valid for 120 seconds, bound to the route and run, and held only in the server's memory. New error codes: `run-active`, `not-resumable`, `confirm-expired`, `confirm-mismatch`.

### Changed

- `/multi-agent:kill` keeps the remote branch and the run's logs, and no longer offers to delete the remote branch. A remote branch is deleted on the host, by hand, when that is wanted.
- `/multi-agent:analysis` states the background rule: a run launched in the background never asks or defaults a picker, it parks on the question (`picker-contract.md`, Background).
- `/multi-agent:autopilot-off` runs `autopilot-control.mjs off [--now]`, the script `POST /v1/autopilot/off` runs, instead of its own launchctl, awake-agent and indicator steps.
- The plan's steps attach to Dev (phase 2), the phase that executes them: Phase 1 calls `phase-tracker.sh plan 2`, and Phase 2 moves each step with `sub 2 <task_id>` as it starts and finishes it. `smoke-phase-contract.sh` holds both calls to the Dev id in `phases.json`.

### Fixed

- Every background launch passes its prompt as claude's positional argument instead of `-p`, because `claude --bg` refuses `--print`; this covers the autopilot runner's launch, research and resume children and every plan from `launch.json`. The research child's `--disallowedTools` list now sits before another flag, so its variadic value cannot take the prompt.
- `POST /v1/launch` and `POST /v1/runs/{id}/resume` answer `409 unattended-profile-missing`, with a `remedy` naming the install command, when `~/.claude/multi-agent-unattended.settings.json` is absent, instead of returning a plan whose session stops at its first tool call. They answer `409 workspace-not-trusted` when Claude Code's config (`~/.claude.json` `projects[<repo root>].hasTrustDialogAccepted`) records the repository as not trusted, read through `lib/workspace-trust.mjs`, which never writes it; a config that cannot be read lets the launch proceed.
- `runs-index.mjs` reads a phase's `now` from `meta.Now`, where `phase-tracker.sh now` writes it, so the live line reaches the index and every client.

## [20.14.0] - 2026-10-02

### Added

- `/multi-agent:scenario-audit <scenarios.csv>` checks test scenarios against the code: `scenario-audit.mjs` reads the CSV (comma or semicolon, quoted cells, matched by header), searches HEAD for the code-level terms proposed per scenario, and holds each verdict to its evidence. PRESENT and PARTIAL need a `file:line` that resolves at HEAD and ABSENT needs the searched terms; anything else becomes UNCLEAR with the reason. Read-only; Turkish labels VAR / KISMEN / YOK / BELİRSİZ.
- `/multi-agent:analysis check <doc>` and `refresh <doc>`. `analysis-sources.mjs fingerprint` records each source's version and a hash of the part the document uses (the Figma node, the page body, the operations of the cited endpoints) and writes `<doc>.sources.json` beside the document; `check` compares and gives each source `unchanged`, `no-effect`, `update-doc`, `retest` or `unchecked`, and resolves the document's citations at HEAD. `refresh` redrafts from the stale sources into a new draft with a changelog row; replacing the document is a separate approval.
- Section 21 shows the Figma file version and date beside the node id. `analysisSpec.sourceVersions`, Figma `version` / `lastModified` and Confluence `version` are part of the schema.
- `pipeline/lib/credential-resolve.mjs`: one token resolution (credential store, then an environment variable) for Node scripts; `confluence-readback.mjs` uses it.
- `profile: custom` (Locked 37): an analysis laid out in a team's own outline (`outline: <path>`, copied beside the document). Its headings are the required sections; the universal validator checks still run and every template-specific check reports `skipped: custom profile`. Intake offers it as a third profile; `prefs.global.analysisProfiles` accepts `custom`.
- `/multi-agent:analysis conform <doc>` maps an existing document onto a template without changing what it says; unmapped content goes to an appendix and uncovered sections become Section 20 rows. `analysis-conform-coverage.mjs` checks that every source sentence of three words or more is still in the draft, whatever markup it moved into.
- `/multi-agent:estimate <doc|text>` gives an effort range from similar closed Jira work: `estimate.mjs` reads the finished issues a `statusCategory = Done` query names, their role sub-tasks and logged time, and reports P25-P75, the median and the issues behind each row. No number below three samples; story points come from the field the site names "Story Points".

### Changed

- `/multi-agent:help` reads one catalog, `multi-agent-refs/help/en.md` or `help/tr.md`, for the user's language instead of carrying both; the command file drops from about 8,500 tokens to about 300.
- `sync` moves its Codex, stack-plugin and dev-toolkit steps to `multi-agent-refs/sync/`, read when that step runs (about 7,500 to 3,800 tokens). `setup` moves the Token Save Flow with its host prompt, credential discovery, identity routing and Figma MCP setup to `multi-agent-refs/setup/` (about 11,400 to 6,500). `channels` moves the Board adapter and the multi-repo dispatch table to `multi-agent-refs/channels/` (about 9,500 to 8,400). The token ceilings in `lint-skills.mjs` move down with them.
- `channels`, `design-check`, `setup`, `store-ready` and `sync` carry a `## Gotchas` section near the top.
- `status` and `diff-explain` run as a forked read-only Explore context (`context: fork`), so their reads stay out of the calling conversation.
- `design-check` (about 8,000 to 5,000 tokens), `store-ready` (6,000 to 4,400), `refactor` (5,750 to 4,300) and `analysis` (5,600 to 4,400) move their long procedures into `multi-agent-refs/{design-check,store-ready,refactor,analysis}/`, read at the step that needs them; every binding rule stays in the command. The Copilot orchestrator skill drops from 713 lines and about 9,150 tokens to 313 lines and 4,850, with its operations, skill loading and per-project phase blocks in `multi-agent-refs/orchestrator/`. The grace entries for `design-check` and the orchestrator are gone.
- The Copilot `multi-agent-setup` skill carries every step of the Claude command and points at the same `setup/` refs.
- `smoke-context-budget.sh` counts the analysis command file together with the refs it names, so moving text from the command into one of its refs leaves the per-run total unchanged.

### Fixed

- Copilot skills name `$HOME/.claude/multi-agent-refs/...`, where the refs are installed, instead of `~/.copilot/multi-agent-refs/`, which no install creates (`review`, `review-jira`, `review-issue`, `review-analysis`, `design-check`, `store-ready`). `test/copilot-ref-paths.test.mjs` holds the rule.
- The Copilot `design-check` skill offers the snapshot lane before halting on a module without mock mode, as the command does.
- The Copilot orchestrator's kill keeps the task logs and reads the task counter from the shared log root, as `phases/operations.md` specifies; an autopilot blocking finding returns to Phase 2.
- `estimate` cites the picker contract.

## [20.13.0] - 2026-10-01

### Added

- Every destructive command (`kill`, `forget`, `garbage-collect`, `prune-logs`, `prune-prompts`, `autopilot-off`, alongside `purge` and `uninstall`) carries `disable-model-invocation: true`, so it runs only when the user types it. Confirm-only commands such as `sync` stay model-invocable. `test/command-contract.test.mjs` holds the rule, and `cross-cli-contract.md` records it with the decision to keep command-only frontmatter keys at the top level.
- `lint-skills.mjs` requires a routing clause ("use when ...") in every command description, as it already did for skills, and warns when a command on its Gotchas list has no `## Gotchas` section.
- `## Gotchas` sections near the top of `analysis`, `analysis-jira`, `autopilot`, `doctor`, `review` and `review-analysis`, mirrored into their Copilot skills.
- `validate-analysis-doc.mjs` warns on vague wording (`fast`, `appropriately`, `etc.`, `gerektiğinde`, `vb.` and similar) in id-bearing requirement rows (`BR-`, `IG-`, `FG-`); `--strict` turns it into a failure. Code spans and summary prose are not read.
- `smoke-personal-data.sh` also reads a machine-local pattern list (`~/.claude/personal-data-patterns.txt`, or `MA_PERSONAL_DATA_PATTERNS`), so names that must never ship are guarded without being written into the shipped tree.
- `pipeline/lib/analysis-sections.mjs` holds the section and table-row readers the validator uses, plus the per-profile location of the redesign artefacts.
- `argument-hint` on the root `/multi-agent` command and on the Copilot `multi-agent-setup` skill.
- `/multi-agent:analysis-jira` writes a full story description built from the document: the user story, up to 8 acceptance criteria (the G/W/T column or the rule; functional requirements plus alternative and exception flows on the corporate profile), redesign rows for the story's section, and links to the analysis page, the design and the API spec. Missing parts become body warnings and are never filled in. The preview shows every body in full; `--brief` keeps the one-line view.
- `escapeJiraWiki()` and `wikiLink()` in `jira-wiki-escape.mjs`: document text is escaped before it reaches wiki markup, and links accept http and https only.
- `--epic KEY` links the stories to an existing epic: `parent` on Cloud, the discovered Epic Link field on Server and Data Center (`issueTree.epicLinkMode`, `issueTree.epicLinkFieldId`). With no field found, the stories are created unlinked and the writer warns.
- `issueTree.cloneByChannel` creates one linked clone per channel in `channelComponents`, with its own label and component; `cloneLinkType` names the link.
- `analysis-tickets-writeback.mjs` writes a `## Tickets` table (story, key, sources, channel) into the analysis document between markers, idempotently; updating the Confluence page is a separate approval.
- `analysis-story-tree.mjs --page-url URL` links the published analysis page from every story.
- `validate-analysis-doc.mjs` gains six document-quality checks, in `pipeline/lib/analysis-quality.mjs`: `exception-flow` (a corporate use case with a main flow states its exception flow; missing warns on a draft and fails a final document, `Yok: <reason>` is an accepted answer), `scope-overlap` (an item both goal and non-goal fails), `cited-undefined` (a `BR`/`CB`/`IG`/`UC`/`FG` id the text cites but no table row or heading defines fails), `design-frame-unmapped` (a Figma frame outside every corporate use case warns), `business-layer-technical` (a file path or endpoint in global Part A warns; `<details>` blocks and redesign evidence tables are not read) and `missing-inputs` (a final document with a non-empty missing-inputs panel warns).
- `build-references.mjs --missing-panel` prints the sources the run could not read as the panel at the top of the document; the render places it above Section 1.
- `confluence-readback.mjs` reads a published page back and reports each document heading missing from the page and each embedded image that is not attached. The analysis render runs it after every publish and reports a mismatch without republishing.
- Draft pages carry `[TASLAK]` / `[DRAFT]` in their title until the document is final; the corporate `titleFormat` accepts a `{status}` placeholder.
- The corporate use-case table has an `İstisna Akışı / Exception Flow` row, the traceability matrix gains `Ekran` and `Test` columns, and Section 20 gains `Kategori` and `Karar` columns with one row per question. Multi-service use cases also get a sequence diagram.
- Synthesis proposes edge-case candidates from the evidence (`state.analysisSpec.edgeCandidates[]`); only accepted ones enter the document. The global API request body shows types instead of sample values and names each field's source, and the document head carries an "at a glance" line of counts.
- The analysis review verdict ends with `Publish ready`, an ordered `Fix first` list and a `Verified OK` line.

### Fixed

- The corporate profile has a layout for redesign documents: `2.1.1` current behaviour, `2.3.1` difference list and `5.(N+4).1` endpoint mapping, and the validator looks the artefacts up by profile. A corporate document with `redesign: true` previously had no sections the validator would accept.
- The analysis refs agree with each other: 36 Locked decisions everywhere (the command and `resolve.md` said 35 and 31); section numbers are canonical and keep gaps everywhere (the command and `render.md` said numbering re-flows); the `review.md` verdict example uses the rubric's own class names. `test/analysis-refs-consistency.test.mjs` keeps them aligned.
- The global Section 20 table carries an `ID` column with `AS-NN` values, which the closure gate pairs on.
- `feedback` and `review-analysis` descriptions say when to use them.
- The analysis-jira writer searches for clone labels before creating, so a re-run with `cloneByChannel` no longer creates the clones again. A node found on the site is recorded in the ledger as `exists`.
- Codex receives stack-plugin skills with their `$HOME/.claude/...` paths retargeted, like the pipeline's own skills.
- The analysis render resolves `CONFLUENCE_BASE_URL` from `prefs.global.hosts.confluence` before publishing.
- No analysis file says section numbers re-flow: the global template's omission rule, `synthesis.md`, `analysis-resolve` and the validator all state canonical numbers with gaps, and the consistency test also matches "re-flowed".

## [20.12.0] - 2026-10-01

### Added

- `usage-report.mjs` records the outcome of every send attempt in `~/.claude/logs/multi-agent/usage-last-send.json`: `accepted`, `not-accepted`, `rejected` with the status code, `redirected` with the host it pointed to, `failed`, or `skipped` with its reason. It carries the run id, the event and the endpoint host, never the token. Any outcome other than `accepted` also prints one line on stderr. Previously the response was discarded, so a failed send left no trace on the panel or the machine.
- `/multi-agent:doctor` gains the `usage-report` check: it reads that record and turns anything but `accepted` into a WARN with the step that fixes it.
- `lib/agent-model-sync.mjs`: the installed agents whose `preferredModel` is `fable` (code-reviewer, plan-critic, the iOS, Android and backend architects) have their `model:` line written from `modelFallback.fableEnabled`, `fable` when on and `opus` when off. `/multi-agent:model on|off` re-applies it on every flip and the installer on every install, so the one switch covers agents spawned without an explicit model as well as routed dispatches. Sources keep `model: fable`; `/multi-agent:sync` normalizes the repo copy back with `--fable-on`.

### Fixed

- `migrate-prefs.mjs` rewrites a `usageLog.endpoint` on `mmerterden.vercel.app` to `mmerterden.com`. The platform host answers every request with a 308, which the usage clients never follow.
- The unattended guard resolves a directory's worktree root once per decision instead of up to three times, which cuts a program-provenance check from seven git calls to five.
- `test/unattended-guard.test.mjs` is now `test/unattended-guard.serial.mjs` and runs after the parallel `test/*.test.mjs` pool. Inside the pool its guard decisions could outlast the guard's 5-second internal deadline, and the guard fails closed when that happens.
- Lockfile: `brace-expansion` 5.0.12 and `fast-uri` 3.1.8 (transitive), which clears the high and moderate advisories the scorecard gates on.

## [20.11.1] - 2026-09-29

### Changed

- `swift-architecture` (shared/external) carries the scope note that a keyed dependency container's rules take precedence over the initializer injection in its samples, so rebuilding the stack plugins keeps it in `ai-ios-toolkit`.
- `/multi-agent:store-ready` Android Gate 2 states what is known about the throwaway-edit upload: Google does not document whether it reserves the `versionCode`, fastlane's `validate_only` runs the same upload, validate and discard sequence as a pre-release check, and a later "already used" refusal is answered by raising the `versionCode`.

## [20.11.0] - 2026-09-29

### Added

- App Store Connect and Google Play keys are onboarded into the Keychain for the toolkit's `store_*` tools (`@mmerterden/multi-agent-toolkit-mcp` 3.17.0). Two logical keys join `keychainMapping`: `appstore_connect_private_key` (the `.p8` PEM, `${USER}_AppStoreConnect_Private_Key`) and `google_play` (the service-account JSON, `${USER}_GooglePlay_Access_Json`). The `.p8` now lives in the Keychain alongside the key id and issuer id, and `ios_testflight_validate` reads it from there when called with neither `api_key_id` nor `apple_id`.
- `pipeline/scripts/probe-store-key.mjs` checks a key before setup saves it: `--asc` signs an ES256 token and reads one App Store Connect page, `--play` exchanges a service-account assertion and reads one Play Developer Reporting page. One JSON line `{ok, store, status, hint}`, no key material; the hint tells a disabled Google Cloud API apart from a missing Play Console invitation.
- `pipeline/scripts/write-store-config.mjs` writes the toolkit's store reference file (`~/.config/multi-agent-toolkit/store.json`, or `MCP_TOOLKIT_STORE_CONFIG`) from `keychainMapping`, naming Keychain services only, after checking each item exists through `credential-store.sh probe`. Atomic, 0600 in a 0700 directory; `--check` compares without writing.
- `/multi-agent:doctor` check `store-reference`: WARN when store keys are mapped but the reference file is missing or stale, with the one step that writes it; INFO when a store is only partly onboarded.
- `/multi-agent:setup` Step 3b probes the `.p8` from its file, stores it through stdin, writes the reference file and offers to delete the file from disk (default keep). New Step 3d onboards Google Play for Android repos the same way.
- `/multi-agent:store-ready`: Android Gate 2 runs `store_play_validate_bundle` when Google Play is onboarded and the user approves the upload into a throwaway edit, and still reports `SKIPPED (no local Play validator)` otherwise, now with the reason. iOS Gate 2 reports whether the archive's build number is already used through `store_asc_next_build_number`. Whether the throwaway upload consumes the `versionCode` is stated in the report as an open question.

### Changed

- `pre-commit-check.sh` high-entropy scan: version markers (`v1`, `V2`), digit runs and `/` now separate the words of an identifier, so versioned API schema names and short REST paths from vendor API descriptions are read as names. A token that is mostly digits is never word-shaped, and random letters behind the same markers are still blocked (three new cases in `smoke-pre-commit.sh`).

## [20.10.0] - 2026-09-28

### Added

- The repo profile derives `di.validateMethod`, the registrar method that checks the wiring, separately from `di.registerMethod`, so a registrar with one of each yields both instead of whichever the count favours; `di.injectAttribute` recognises a keyed `@Dependency` wrapper. `validateMethod` is optional in `repo-profile.schema.json`, so a stored profile without it stays valid.

## [20.9.0] - 2026-09-27

### Changed

- Token ceilings: `phase-1-plan` 10000 to 10250, `phase-4-commit` 6500 to 6600, `phase-5-report` 5550 to 5700, total 63300 to 63550. Phase 1 now reads the repo profile and the documents CLAUDE.md links to, Phase 4 takes the commit format from the profile, and the Phase 5 report carries the repo-profile and skill-routing sections; the same pass removed narrated history from phase-1-plan.

### Fixed

- Two toolkits that ship a skill of the same name at the same role and scope resolve to the toolkit the pipeline itself publishes, so an outside toolkit never wins by how its name sorts.
- `review-decision-gate.mjs --integrity <file>` treats a declared file that does not exist as unreadable (exit 3, recorded in the ledger), never as no findings, and keeps a blocker on a gate's basis only when the tag or fingerprint also matches.
- The usage report sends a plugin name only for toolkits the pipeline publishes; any other enabled plugin is sent as the constant `private`.
- Phase 2 stack skill routing no longer routes a repo to another stack's toolkit. `pipeline/scripts/skill-candidates.mjs resolve` reads the effective `enabledPlugins` (user settings, then the repo's `.claude/settings.json` and `.claude/settings.local.json`) and drops a toolkit inherited from user settings whose name or `plugin.json` marks only stacks the repo is not built with, as detected by `lib/stack-detect.sh` and `schemas/stack-adapters.json`. Each exclusion carries its reason. A toolkit the repo enabled itself is never dropped, multi-stack repos keep every matching toolkit, inconclusive detection applies no filter, and `ai-common-toolkit` and `ai-analyst-toolkit` always stay. A detected stack without an enabled toolkit gets a hint (`enable ai-<stack>-toolkit with /multi-agent:stack`) instead of a substitute. The stack words come from the adapter table and the existing aliases, so a new `ai-<x>-toolkit` whose `<x>` is an adapter id is filtered with no code change. The user-level `settings.local.json` (under `CLAUDE_CONFIG_DIR` or `~/.claude`) is read as a second inherited layer. The mode comes from `lib/unattended.mjs`, the helper the gates use.
- `lib/stack-detect.sh` ignores a marker below the repo root when that stack's language is under 1% of the tracked source files (`git ls-files`, from 50 source files up; `Package.swift` manifests are not counted as source). A subtree copied into a Kotlin app with its own `Package.swift` no longer makes the app an iOS repo, and `why` names the ignored marker. Root markers always count; outside a git work tree nothing changes.
- An inherited toolkit whose name and `plugin.json` mark no stack is no longer kept in every repo. It is kept in the common role when it ships an `index`, and otherwise listed in `unscoped[]` and not routed to (unattended runs never load it; attended runs only when the user names it). A repo-enabled one is kept as before.
- Skill routing is Phase 2 throughout: `repoSkillCall()` and `marketplaceSkillCall()` default to `phase: 2`, and `features/stack-skill-routing.md` and its JSON examples say Phase 2. The Phase 2 step runs for every task, so the unattended marketplace fallback also runs when no toolkit is enabled.
- `usage-report.mjs` no longer sends repo-local skill names: `source: "repo"` calls are sent as `repo-local`, and a `marketplace-fallback` call keeps its name only for a toolkit the public marketplace carries (`marketplace-fallback` otherwise).

### Added

- Repo-local skills (`<repo>/.claude/skills/<name>/SKILL.md`) are routing candidates. The resolver reads each one's name and description, marks it explicit-only from `disable-model-invocation: true`, its description, or CLAUDE.md wording such as "only on explicit request", and pre-ranks them against the task. The task text is read from `--task-file <path>` or stdin (`--task -`), and every pipeline document passes it through a file written with the Write tool instead of a shell string. A repo-local skill wins over a toolkit skill of the same name for that repo and the choice is listed in `decisions[]`. A loaded one is recorded in `state.telemetry.skillCalls[]` with `source: "repo"`; the `agent-state` schema gains the optional `source` field.
- Unattended and autopilot runs, which cannot run `/multi-agent:stack` or write `.claude/` in the repo, read a detected stack's missing toolkit read-only from a local marketplace clone found through the host's `known_marketplaces.json` and each clone's `marketplace.json`. Loaded skills are recorded with `source: "marketplace-fallback"`, the toolkit name and its `plugin.json` version, and the Phase 5 report carries a line telling the user to enable the stack. No settings are written; when no clone carries the toolkit the gap is recorded and the run continues. Attended runs keep the hint only. Neither mode substitutes another stack's toolkit. The outcome is stored in the new optional `state.telemetry.skillRouting`.
- Phase 1 reads the in-repo documents that `CLAUDE.md` and `.claude/CLAUDE.md` link to as project rules. `pipeline/lib/claude-md-links.mjs` follows relative markdown links, document paths written as inline code and `@path` imports one hop, at most 10 files and 200 KB in total. References on a line that calls the target authoritative ("See X for", "source of truth") are read first; the file that crosses the byte budget is cut at a character boundary and listed in `truncated[]`. A leading `/` resolves against the repo root when its first segment exists there. It skips `SKILL.md` files and rejects URLs, absolute filesystem and `~/` paths, directories, binary files and any path that resolves outside the repo, including through a symlink and including a symlinked `CLAUDE.md`.
- `features/stack-skill-routing.md` states the precedence: repo-local skill, then detected-stack toolkit skill, then common toolkit. An enabled differently-named toolkit is a candidate only when it matches the repo's stack, is never required, and is recorded with its name and version. When two kept toolkits ship a skill of the same name, the resolver picks one owner per name (repo-local skill, then stack role over common role, then the narrowest enabling scope, then toolkit name) and records each choice in `overlaps[]` and `decisions[]`.
- Per-repo project profile. `pipeline/scripts/repo-profile.mjs` derives how a repo works from the repo itself and stores it at `~/.claude/projects/<slug>/repo-profile.json` (mode 0600, never inside the repo; worktrees share their main checkout's profile). It records paths a bot account owns (from commit history and from the `case` patterns and `git diff -- <paths>` pathspecs of workflows that name the bot, with a label bypass; an `on.*.paths` trigger filter is never ownership), generated trees with their input, regeneration command and same-commit rule (from case-insensitive header stamps and `Generated/` directories), the commit subject convention (ticket prefix or suffix, its style, required scope), the work and default branches, exact build, test and lint commands from CI, localization, testing-id and token accessor roots, DI registrar conventions, module layout, mocks, git hooks and whether they amend or rewrite a commit, required checks, the docs `CLAUDE.md` links to, and in-repo skills. Every field carries its source (`derived`, `confirmed`, `manual`), `file:line` or commit evidence, and a confidence. Schema: `schemas/repo-profile.schema.json`.
- `repo-profile.mjs ensure` runs at Phase 1. A missing profile is derived and saved; a stale one (head no longer an ancestor, more than 200 commits behind, or a workflow file changed) is re-derived keeping confirmed and manual fields. Attended runs ask once to confirm; unattended and autopilot runs never ask. `resolve <field>` applies the confidence policy: confirmed, manual and high are used, medium only for owned paths, generators and the commit format, low is ignored and recorded, and owned paths and generators are always honoured in unattended runs. Phase 2 checks targets against owned paths and generators, Phase 4 places the ticket from the commit format and re-reads the SHA after a rewriting hook, and the Phase 5 report lists derived, confirmed and ignored fields. `state.repoProfile` records the outcome.
- Owned-path gate. `pipeline/scripts/owned-path-gate.mjs` checks a change set against the repo profile's `ownedPaths[]` under the profile's confidence and mode policy and reports every changed path an honoured entry covers and its `except[]` globs do not. A change is exempt when all its authors match the entry's owner or `bypass.author`, or when the PR carries `bypass.label` (from `--pr-labels`, or read read-only through `gh` when it is installed; a missing `gh` never fails the gate). Change sets: the default diff from the work branch merge-base plus uncommitted and untracked files, `--base <ref>`, `--range <base>..<head>`, `--staged`, or `--paths`. Each violation names the path, glob, owner, evidence, confidence and a fix pointing at the generator input, the authoring command or the next sync. Exit 0 clean or skipped, 1 violations, 2 usage or environment error. Attended runs without a profile skip with a note; unattended runs derive one first, outside the repo. The glob matcher (`**` any depth, `*` one segment, classes, plain directories covering their subtree) has no dependency.
- The owned-path gate is Gate 0 of the Phase 2 exit gate, run before the build; a violation blocks the phase with its fix text. Phase 3 re-runs it at Step 1.761 and merges its reviewer-shaped findings (`tag: owned_path`, `blocking`) into triage, and `review-decision-gate.mjs` keeps them blocking on the new `owned-path` basis. `--integrity` now repeats, one file per deterministic gate.
- `pre-commit-check.sh` runs the owned-path gate when the agent commits and blocks with exit 2 on a violation. It judges the commit's own paths: the index, plus what the same command stages (`git add <pathspec>`, `-A`, `-u`) and what `commit -a` or `commit <pathspec>` takes, read by the new `agent-guard.py --commit-scope`; a dirty file the commit leaves out is not judged. It passes `--state auto`, which finds the live run whose `worktreePath` is the checkout. It reads the profile from `~/.claude` or the unattended run root and the globs' literal prefixes without node (`./`, `/` and `//` normalized as the gate does), so a commit touching no owned prefix costs no extra process, and it finds the profile of a repo whose path is not ASCII.
- Owned-path gate behaviour. A profile that honours no owned entry skips before any git call. Without `--base` the base is looked up from the profile's work and default branch, `origin/HEAD`, `origin/main`, `origin/master`, `main` and `master`; when none resolves, an attended run exits 0 with a note and a run that asks nothing scans the index and working tree, and a shallow clone with no merge-base is named as such. A `--range` or `--base` that git cannot resolve is one readable line. A default change set above 5000 paths is exit 2 (`base looks wrong: N changed paths`); stderr lists the first 50 violations and a count of the rest. `--repo` pointing at a subdirectory sees untracked files anywhere in the repo. When several owned entries cover a path, one entry's `except` releases the path only from that entry. A merge commit counts as changing only the files its author edited while resolving it. `--out` removes the previous file first, so an error never leaves a stale result, and `--help` prints the usage.
- Globs: a glob ending in `/` covers that directory's subtree, the matcher is linear in the name's length, `a**b` stays inside one segment, and `[]]` is a class holding `]`. `owner` and `bypass.author` are regular expressions when anchored (`^` or `$`) and otherwise one exact name, so `name[bot]` matches itself and `bot` does not match `robot evil`; an unanchored value with regex syntax fails validation.
- `repo-profile.mjs ensure` saves under the unattended run root (`<root>/repo-profiles/<slug>/`) when an unattended sandbox denies writes under `~/.claude`, and uses the profile from memory with `persisted: false` when nothing is writable. Its output carries `mode`, `policy`, `gatesActive`, `persisted`, `writeError` and `confirmed`.
- Derivation of owned paths: history candidates are checked against their whole history and narrow to the files and subdirectories only the bot touched; a history-only rule (`basis: "history"`) is at most `medium` and an attended run honours it only once confirmed. Workflow rules come from `case` arms and `git diff -- <paths>` pathspecs, stored repo-relative; an `on.*.paths` trigger filter is never ownership. A case `*` crosses `/`: a star-only segment becomes `**`, a last segment such as `*.swift` becomes `**/*.swift`, and any other star inside a segment widens an owned arm to its literal directory plus `/**` and drops an exception arm. A workflow rule for the same owner replaces a broader history directory it only partly covers. A bot login in a YAML or shell comment is an example, not an owner: the owner is the bot that committed under the job's paths, else the one it names in code.
- Derivation of the rest: `repo.workBranch` reads `push: branches:` when no pull request names a target, and local branches count in the activity fallback; a build, test or lint step that a pull request runs is `high` confidence. Generator commands drop `2>&1` and `| tee` plumbing, a `--check`, `--verify` or `--dry-run` step is the `check` field, `input` is the common parent of the co-changing directories, and a stamp must be a comment line in the first 5 lines. `mock.system` and `di.injectAttribute` come only from the repo's dominant language with `file:line` evidence, the DI registrar suffix is read from the repo's own file names, and `docs.authoritative` comes from `claude-md-links.mjs`. Non-ASCII paths stay intact, and tracked symlinks and anything that is not a regular file are skipped.
- The repo profile's mode follows `lib/unattended.mjs` (new `runPosture()`): terminal autopilot is attended with the gates active, so its profile stays under `~/.claude` and it is never asked to confirm. Because nothing is confirmed in it, it applies the unattended confidence policy (new `policyMode()`), in `resolve`, `report`, the owned-path gate and the commit hook.
- `save --from` replaces the stored profile as given: a manual value wins over a confirmed one and an entry removed in the edit is removed. The runtime validator applies `repo-profile.schema.json`. `--max-behind` is validated like `--history`, and `--help` prints the usage.
- An explicit-only repo skill is matched only when the task invokes it as `/name`, `` `name` `` or "skill name". A repo `SKILL.md` or skill directory that is a symlink out of the repo is rejected (`rejectedRepoSkills[]`), and a marketplace plugin directory, `skills/` or `index` that resolves outside its clone is treated as absent.

## [20.8.3] - 2026-09-27

### Fixed

- Upgrading from an install that copied the knowledge catalog into `~/.claude/skills` removes every copy whose files all match a version the catalog once shipped, not only copies identical to the current one. `install/catalog-history.json` holds the git blob hash of every file each catalog skill has shipped with, generated by `pipeline/scripts/gen-catalog-history.mjs` and checked in `npm test`; a copy with any file that never shipped is kept as the user's and still needs `--prune-external`.

## [20.8.2] - 2026-09-27

### Fixed

- The guard fold (`lib/normalize-text.mjs`, `scripts/agent-guard.py`) removes the whole Default_Ignorable_Code_Point set, read from `stripRanges` in `lib/confusables.json`: variation selectors, tag characters, the Mongolian free variation selectors and the musical formatting controls as well as the zero-width family. A commit trailer or a token carrying one of them is blocked.
- `lib/confusables.json` maps the compatibility letters and digits added after Unicode 13 whose NFKC form is ASCII (Outlined Latin, the modifier letters), so a Python whose `unicodedata` is older than Node's ICU folds them the same way. `test/normalize-parity.test.mjs` runs both folds over one shared sample file.
- `lib/normalize-text.mjs` loads its table fail-soft: without `confusables.json` it folds with NFKC only and prints one notice, so `lib/redact.mjs` and the log writers still redact. The outbound gate refuses to scan without the table.
- `lib/redact.mjs` matches credentials on the folded text and replaces the matching span of the original, so a token written with a look-alike letter or a non-breaking hyphen is redacted, and a line without a credential is written back byte for byte (Persian zero-width non-joiners, direction marks, joined emoji and soft hyphens included).
- The outbound gate skips the fold for pure-ASCII lines, and `pre-commit-check.sh` folds every non-ASCII file of a run in one node process, warning once per run when the fold is unavailable or fails.
- The `pre-commit-check.sh` identifier exemption for letters-only strings scores the letter pairs inside each segment against English: every pair carries log2 of its frequency in a 235k-word English word list relative to a uniform draw, rounded and clipped to -4..4, and the mean over the token must reach +0.25, with segments averaging 4+ letters and none longer than 24, and short all-caps acronyms not scored. Long CamelCase and snake_case identifiers built from words keep passing with an abbreviation inside (`Qr`, `Ffp`, `Otp`, `Cvv`, `Kg`, `Background`); fixed-seed random letters-only tokens are not exempt.
- `pre-commit-check.sh` returns at once in hook mode when the command does not spell `git`, with quotes and backslashes removed, and `agent-guard.py --git-subcommand` prints `commit` at its deadline so the scan runs rather than timing out. A commit whose command is a megabyte long is scanned inside the hook timeout.
- `agent-guard.py` tokenizes a segment longer than 16 KiB by whitespace with quotes and backslashes removed instead of with `shlex`, whose cost grows with the square of a token's length, and `unattended_policy.py` does the same. At the internal deadline, and on an internal error, a linear scan of the command still applies the force-push and attribution rules, attended and unattended. A force-push to a protected branch or an attribution trailer padded with a megabyte of text is blocked.
- `lib/redact.mjs` runs the rules on the raw text as well as on the folded copy and merges the spans, so a letter that folds to a word character next to a token (the Turkish dotless i, a ligature, a mathematical letter) no longer makes the whole line the replacement: only the token is. Where two rules match overlapping text, the one with the longer literal prefix names it, so an `sk-ant-` key is labelled `anthropic-key`.
- The unattended policy path-checks the toolkit's `output` (`ios_visual_diff`, `pass_build`) and `output_graph` (`ios_leaks`) parameters. `test/fixtures/toolkit-path-params.json`, generated by `test/fixtures/gen-toolkit-path-params.mjs` from the toolkit's tool schemas without starting it, lists every write parameter, and the unattended-guard test checks each one.
- `log-metric.sh` escapes `task_id`, `phase`, `event` and the detail keys with the same `json_escape` as `audit-log.sh`, and keeps a newline in a value as `\n` instead of dropping it, so a quote, backslash or newline in any field leaves one valid JSON line.
- The `outbound-gate.mjs` header documents exit 0 for an empty body and exit 2 for `--file` without a path, which is what the CLI does.
- `eval-guard-robustness.mjs` covers the new disguises on every guard, checks the redactor on every disguise, requires fullwidth tokens to be caught, adds Persian, Arabic and joined-emoji negatives, and removes its temporary directory.
- `check-rewrite-overlap.mjs` exits 2 on a path it cannot read, an empty or malformed `--max` or `--n`, and the `--flag=value` form.
- `package.json` `files` leaves out `gen-ref-toc.mjs`, `make-manifest.mjs` and `scorecard-snapshot.mjs`, and `smoke-consumer-smoke-surface.sh` holds the tarball's `pipeline/scripts/` to `isDevOnlyScript`.
- The `skill-creator` template states that the `metadata` block with `source` is required under `shared/external`, and optional elsewhere.
- `localization-reuse-map`: the key accessor type is an input (`--key-type`, repeatable or a comma list, or `keyType` in the mapping for `verify-map.py`; default `L10n`), and the language list is `--langs` or, for `all`, the languages present in the data, `en` first. `fetch-annotations.py`, `render-overlay.py`, `render-key-shots.py` and `publish-confluence.py` refuse `--token` with exit 2 and name the environment variable and keychain item to use; `publish-confluence.py` bounds each curl request with `--connect-timeout 15`, `--max-time 120` and a 150-second process timeout.
- `localization-reuse-map`: `resolve-new-values.py` and `resolve-legacy-values.py` default to `--langs all`, as the workflow already calls them, and the legacy-prefix examples use a neutral `App-`.
- `localization-reuse-map`: the default key accessor type is now `L10n`, and each project sets its own with `--key-type` or `keyType` in the mapping. When no chain of the configured type is found but Swift or Kotlin code has chains rooted at a common accessor name or ending in `.localized`, `scan-screen-keys.py` and `verify-map.py` print a `WARNING` naming those roots and the flag, and add `keyTypeWarning` to their JSON; the SKILL.md workflow sets the accessor before the scan and the gate. `verify-map.py` refuses a mapping `keyType` that is not a string or a list of strings with exit 2 instead of a traceback, and `format-and-output.md` documents the field and the `--langs all` defaults.
- Knowledge skills, checked against the iOS 26.4 SDK: notification grouping comes from the thread identifier and `summaryArgument` is not set (ignored since iOS 15); only four Apple Pay request types exclude each other and `applePayLaterAvailability` is separate; PencilKit `.version3` is the fountain-pen ink of iOS 17.5; RealityView placement uses anchors and raycasts go through `ARView`; the `StatefulRequest` list in `vision-framework` is complete; `permissionkit` names its non-`Sendable` types and `expirationDate`; `core-nfc` covers the iOS 26.4 session configuration; `cloudkit-sync` shows coordinated file access; `callkit-voip` no longer relies on `localizedName`.
- `extract-conventions.sh` recognises per-module DI registrars named `*DependencyRegistrar` as well as `*DependencyConfigurator` and reports them as "manual per-module registrar"; docs, templates and rule text describe these types by role.
- The 20.8.1 `localization-reuse-map` entry names one component mark; the code accepts three in the key column: `(owned by ...)`, `(bileşen ...)` and `(component ...)`.
- Install (Claude Code): `commands/multi-agent`, `multi-agent-refs`, `scripts`, `schemas`, `lib` and `templates` are each staged under `~/.claude/.pipeline-swap/` and swapped in by rename once all of them staged; the previous copies wait there until every swap succeeded, so no half-written or leftover copy ever sits inside `commands/`, where it would load as a command namespace. A copy or swap error leaves the previous install in place, prints one `install incomplete: ...` line and exits 1; `MULTI_AGENT_INSTALL_DEBUG=1` adds the stack trace. A leftover copy from an interrupted run is cleaned up or restored on the next install, one that cannot be deleted (a read-only subdirectory) is moved aside inside `.pipeline-swap/` with a note, and uninstall removes the directory.
- Install: a symlinked `rules/`, `agents/`, `commands/` or skills root that points outside the pipeline source is the user's; the install writes through it. Only a symlink into a pipeline checkout (a `--link` install) is replaced with a real directory. A pipeline-managed tree whose symlink points elsewhere is skipped with a warning. Applies to the Copilot CLI and Codex CLI installers too.
- Install (Claude Code): `~/.claude/.pipeline-manifest.json` records the hash of every co-owned file the installer writes (the top-level `commands/*.md`, `lib/`, `templates/`). A file is overwritten only when it is absent or unchanged since the last install; a file the user wrote or edited is kept and reported once. Files the source stops shipping are removed when unchanged, and other files in `lib/` and `templates/` are kept and reported once. The first install after one without a manifest adopts the files carrying shipped names.
- Uninstall (Claude Code) removes the manifest-listed files whose hash still matches, including the four top-level commands and `templates/`, keeps edited ones, and falls back to the shipped template names for an install without a manifest.
- Hook commands are written as `bash "$HOME/.claude/scripts/<script>.sh"`, so a HOME containing a space no longer makes the hook exit 126 and the guard stop. A re-install rewrites unquoted pipeline hook commands in place without duplicates; `install/templates/claude-hooks.json` uses the quoted form, `doctor` compares hook commands exactly, and `scan-agent-config.sh` and the autopilot runner accept the quoted and unquoted forms.
- `install.js --installed` installs the targets that already carry a version stamp (`~/.claude`, `~/.copilot`, `~/.codex` `.pipeline-version`), and Claude Code when none does. `/multi-agent:update` uses it instead of `--all`, so an update no longer installs Copilot CLI or Codex CLI (and registers their MCP server) on a machine that did not have them.
- `/multi-agent:update` keeps the values later steps need in `${TMPDIR:-/tmp}/multi-agent-update.env`, and every later shell block sources it: each block runs in a fresh shell, so `$CUR`, `$LATEST`, `$PKG`, `$REG` and `$UPD_DIR` were empty in steps 2, 3, 6 and 7.
- `migrate-prefs.mjs` writes `<file>.bak` before migrating and writes through a symlinked preferences file to its target; `usage-register.mjs` and `usage-identity.mjs` also write through the link. `writeJsonAtomicSync` and `updateJsonFileSync` take `followSymlink` (off by default).
- MCP registration adds first and reads the registered spec back only on "already exists": the same spec is left alone, a different one is replaced, and when the replacing add fails the previous spec is added back, so the host never ends up without the server. A spec that cannot be read back is left in place with the manual command.

## [20.8.1] - 2026-09-26

### Fixed

- Knowledge skills were checked again against the iOS 26.4 SDK headers and interfaces and corrected where they disagreed: keychain error codes and `SecItemUpdate` rules, `@Model` sendability, the iOS 18 versus iOS 26 split of the WidgetKit, ActivityKit and `TabView` APIs, `CBManager.authorization`, the TLS hybrid group name, the Face ID usage-description behaviour, single completion of background tasks, `Sendable` Core Data stores, the `Transaction.updates` listener, the Swift 6.2 baseline and `CLGeocoder`'s deprecation. Numbers the SDK cannot confirm are attributed to Apple's documentation or removed, and six descriptions route overlapping requests to one skill each.
- `localization-reuse-map`: the scripts take the slug rule, language order, key normalisation, key patterns, skipped folders and row-marker rules from one `scripts/_shared.py`, which the 20.7.0 entry already described. A component-owned key is exempt only when its key column carries the `(owned by ...)` mark. `render-overlay.py --ui-lang` picks the label language (default `en`), and `publish-confluence.py --embed-heading` sets the heading above embedded previews.
- `npm test` fails when `pipeline/skills/shared/README.md` is out of date with the skills (`gen-skills-index.mjs --check`).
- `pre-commit-check.sh` warns on stderr when it scans non-ASCII content without the look-alike folding that `lib/normalize-text.mjs` provides.
- `eval-guard-robustness.mjs` no longer counts NFKD decomposition as a disguise.
- `check-rewrite-overlap.mjs` exits 2 on a non-integer `--n` or a non-numeric `--max`.
- The `skill-creator` template shows the optional `metadata` block.

## [20.8.0] - 2026-09-26

### Changed

- The 67 Apple-platform knowledge skills that were vendored from an upstream collection under PolyForm Perimeter 1.0.0 are first-party rewrites under MIT, with the same names, triggers, companion files and relative paths. Each was written from a fact inventory of the previous skill, with every inventory item mapped to the new text.
- Their Swift examples compile in Swift 6 language mode with `-emit-sil` against the iOS 26.4 SDK (macOS, watchOS or visionOS SDKs for platform-specific blocks). Where the previous text named an API, a parameter or an availability that the SDK does not have, the rewrite uses the SDK's, and the prose around it says so. Blocks that need packages outside the SDK (MLX, llama.cpp, TCA, swift-algorithms, SnapshotTesting) are not compiled.
- Long reference files open with a `Contents` list.
- The npm `license` field and `LICENSE` are plain MIT again; the PolyForm notice file is removed.

## [20.7.0] - 2026-09-26

### Changed

- `skill-creator` (including `scripts/audit-panel.js`), `backlog` and `localization-reuse-map` (including its twelve scripts) are first-party rewrites with the same names, triggers, companion files and script interfaces. The `localization-reuse-map` scripts share one slug rule, one language order and one set of skipped folders; `verify-map.py` exempts `<placeholder>` keys and rows marked dynamic, `scan-screen-keys.py` reports interpolated keys as dynamic, and the `.xlsx` output is part of the copied `localizations/<slug>/` set.
- Every skill under `shared/external` declares its origin in `metadata.source`: `multi-agent-pipeline` for the 35 that were written here and had no source line.
- `design-conformance.md` is reworded and describes the gate without reference to where the doctrine came from.
- `BACKLOG.md` states when an entry leaves the registry, matching the `backlog` skill.
- The `shared/README.md` index describes `external/` as the skills that ship into the stack plugins, each naming its origin, instead of calling them mirrors of third-party guidance.

### Added

- `lint-skills` fails a skill under `shared/external` that has no `metadata.source` (`sourcelessSkills` in `_notices.mjs`).

### Removed

- The token-budget grace entry for `localization-reuse-map`; its SKILL.md is now under the cap.

## [20.6.0] - 2026-09-26

### Added

- `pipeline/lib/normalize-text.mjs` and `pipeline/lib/confusables.json`: NFKC, invisible characters removed and look-alike letters and dashes mapped to ASCII. `agent-guard.py` reads the same table.
- `eval-guard-robustness.mjs` (in `npm test`): each attribution trailer and every provider in `secret-patterns.json` is passed through disguises (zero-width space, word joiner, Cyrillic letter, non-breaking hyphen) and must still be blocked by `agent-guard`, the outbound gate, the commit hook and the redactor; ordinary Turkish text, emoji and Unicode in code must still pass.
- `check-rewrite-overlap.mjs` (maintainer tool, not shipped): the share of a rewritten file's 6-word sequences that also appear in its source, with a `--max` threshold.

### Changed

- The npm `license` field is `MIT AND LicenseRef-PolyForm-Perimeter-1.0.0`, and `LICENSE` names the skills that stay under PolyForm Perimeter 1.0.0 (listed in a notice file). Nothing was removed; the label now matches what the package carries.

### Fixed

- `agent-guard` blocked an attribution trailer only when it was written in plain ASCII; one written with a zero-width space, a Cyrillic letter, a non-breaking hyphen or a fullwidth colon passed. The rule now also matches the folded text.
- The outbound gate, `redact.mjs` and `pre-commit-check.sh` recognise a credential that carries an invisible character. `smoke-secret-parity.sh` runs every provider with a zero-width space through both surfaces.
- The pre-commit high-entropy scan no longer blocks long identifiers made of words, such as the Info.plist keys `UIApplicationSceneManifest_Generation` and `UISupportedInterfaceOrientations` behind the `INFOPLIST_KEY_` build-setting prefix. A letters-only token passes only when its CamelCase, `_` and `-` segments read like words; random mixed-case tokens are still blocked, including letters-only ones that the previous CamelCase exemption let through. The leading `+` of a staged diff line is stripped before candidates are extracted, so a token at column 0 is judged by its own shape.

## [20.5.0] - 2026-09-25

### Added

- `pipeline/lib/redact.mjs` replaces every credential the outbound gate recognises with `[redacted:<rule>]`. `audit-log.sh` and `log-metric.sh` pass each line through it, so a token copied into an error message never reaches `audit.jsonl` or `metrics.jsonl`; the rest of the message is kept for debugging. `smoke-log-redaction.sh` runs every provider in `secret-patterns.json` through both writers.
- Autopilot `githubAssignee` (default `@me`): GitHub intake lists only issues assigned to the operator, as the Jira search already does. `"*"` lists every labelled issue.
- Every persona declares `disallowedTools: Write, Edit, NotebookEdit`; `lint-personas` requires it. MCP tools stay inherited.

### Fixed

- Autopilot refuses to push a commit whose message would close an issue on merge, and the closing-keyword check recognises the full issue URL form.
- Autopilot takes nothing while the installed version is below the published `required` floor (`blocked-version-floor`, not an attempt), instead of spending a session per queued item on a run whose Phase 0 halts.
- `update-check.sh` reads the installed version marker before any repo clone, so a stale clone no longer reports a forced update after every update. It also treats a future cache stamp as stale, writes the cache atomically, remembers an unreachable registry for an hour, honours `updateCheck.ttlHours`, and orders a prerelease below its release.
- `/multi-agent:update` skips the download and reinstall when already current.
- `audit-log.sh` escapes newlines and tabs, and the audit file and its archives are created 0600.

## [20.4.0] - 2026-09-25

### Changed

- **Stack plugins are actually updated.** `/multi-agent:update`, setup and `/multi-agent:stack` call the new `plugin-refresh.sh`, which uses `claude plugin marketplace add|update` and then `claude plugin update` for every installed `@multi-agent-plugins` plugin in its own scope (project installs from inside their project). The previous `claude marketplace ...` form is not a CLI command, and its errors were discarded; the script passes the CLI's errors through and exits non-zero on a failed step.
- **Tokens stay off argv in shipped curl examples.** Authorization and X-Figma-Token headers are piped from `printf` (a shell builtin) into `curl -H @-`, which keeps the URL on argv for the unattended host allowlist; `-u user:token` pairs go through `--config <(printf ...)`. `smoke-secret-off-argv.sh` now scans for the argv form.
- **Issue and ticket text never lands inside double quotes.** Commit messages, PR titles and issue bodies filled from issue text are written to a file and passed with `-F` / `--body-file` (or a quoted heredoc outside the phase docs); `smoke-untrusted-in-quotes.sh` guards it. The reviewer lookup in Phase 4 passes the project name to jq with `--arg`.

### Fixed

- The SessionStart banner counted the `artifacts/` backup that `gc-abandoned` keeps of an abandoned run as a live run, read a state that records `phase` instead of `currentPhase` as Phase `?`, named the newest run as the oldest, missed the Phase 5 channel pause, and ignored `outputLanguage`.
- The installer collapses a hook registered twice on the same matcher to one registration, and `/multi-agent:doctor` reports a duplicate under `hook-coverage`.

## [20.3.1] - 2026-09-25

### Fixed

- Registration and run reports reach the reporting site from installs whose `usageLog.endpoint` names its platform host: that host only redirects to the site's domain, and the usage clients never follow a redirect with a credential, so the endpoint is rewritten to the domain before any request.
- `usage-register.mjs` stores the issued token: it passes `-` so the credential store reads the value from stdin.

## [20.3.0] - 2026-09-25

### Added

- **The client contract, over the CLI and localhost HTTP.** `contract-server.mjs`
  serves runs, commands, run questions, issues, worktrees and the launch shape,
  plans a launch and answers a pending question on `127.0.0.1`, byte for byte
  what the CLI prints: a per-start bearer token in a 0600 file, Host and Origin
  checks, schema-validated bodies up to 64 KiB, `?redact=1` (forced for a
  browser origin), `?v=` major selection and idle shutdown. It never starts a
  host CLI. `/multi-agent:serve` starts it on demand. `pipeline/contract/`
  ships the client kit: a manifest pointing at `pipeline/schemas`, generated
  TypeScript declarations and fixtures (`build.mjs`, run at prepack), the
  frozen fields of the current client and a contract changelog of its own.
- **Commands, run questions and the launch shape as data.** Every command
  declares `parameters`, `gui`, `destructive` and `confirm` in its frontmatter,
  held to `argument-hint` by `lint-skills`, and `commands.mjs --json` prints
  the catalog. `run-questions.json` lists the Phase 0 pickers;
  `MA_LAUNCH_REQUEST` names a request whose answers pre-fill them, validated by
  `launch-request.mjs` (unset, Phase 0 is unchanged). `launch.json` declares
  the unattended launch shape. `answer-question.mjs` records only an option id
  the pending question offered, and `resume --answer` goes through it.
  `issues.mjs`, `worktrees.mjs` and `runs-index.mjs --json` carry
  `contractVersion`, schemas with `x-sensitivity`, and `--redact`.
- **Per-stack evidence.** `stack-adapters.json` gives each stack (ios, android,
  web, backend-node, python, go, rust, jvm, unknown) its detection, commands,
  success markers, parsers, test-file patterns and truth-source globs.
  `evidence-gate --stack` fails a test claim that executed nothing or counted
  a failure, `test-summary.mjs` reads the counts from the runner's own output
  and reports unread counts as unparsed, and `test-strength.mjs` reverts the
  production side of a diff in a temporary worktree and requires the changed
  tests to go red.
- **Quality gates for autopilot runs.** With `MULTI_AGENT_UNATTENDED=1` or a run
  in autopilot mode, `symbol-existence-gate` checks added references against
  the stack's truth sources, `open-questions-gate` parks a run with open
  analysis questions on `waitingFor: question` before Phase 2,
  `verify-citations` matches quotes to lines and checks pre-existing claims
  against the base commit, and `gate-ledger.mjs` is the one locked writer of
  `state.gates[]`; with the variable set the commit hook requires every
  mandatory gate to pass for HEAD. With neither, every gate is a no-op.
- **Terminal output in the reader's language.** `user-facing.{mjs,sh}` resolve
  `outputLanguage` and the host's command spelling (`/multi-agent:<sub>` or
  `/multi-agent-<sub>`) once; the GUI, the autopilot menu bar and the terminal
  panels use them, and `smoke-terminal-language.sh` fails a frozen string or a
  hardcoded spelling in a user-facing surface. `promptLanguage` stays English.
- `design-check-config` `inventory.targetsFile` names a JSON target catalog
  that both design-check skills pass to `design_scenario_inventory`, for a repo
  whose state drivers no source signal reveals.

- `check-derived-drift.mjs`: a `git-paths` upstream type for sources that ship no manifest. The recorded version is the commit the port was taken from, and drift is any later commit on `upstreamRef` that touches `upstreamPaths`, so unrelated commits in an app repo do not count.
- **Android knowledge: same-frame input intents, deferred state reads and
  custom architecture rules.** `android-mvi-viewmodel` gains a per-intent
  immediate-dispatch flag so text, toggle and selection intents write state on
  `Dispatchers.Main.immediate` instead of a `Dispatchers.Default` hop, and shows
  how a context parameter confines use-case invocation to the ViewModel
  executor. `android-performance` gains a deferred-state-reads section (the
  composition / layout / draw phase table, `offset { }`, `graphicsLayer { }`,
  `drawBehind { }`) and a stability row for classes from modules the Compose
  compiler does not see. `android-build-quality-gates` gains a custom detekt
  rule set section for architecture rules a single file can show. `android-architecture`
  adds the data-source-only repository rule, the shared request helper, feature-local
  UI models and `internal`-by-default visibility. `compose-testing` fixes the
  test-tag hierarchy and uniqueness rule. `compose-navigation` requires the
  typed argument helper even for primitive-only routes, and its type-map
  example uses a neutral search filter.

- **Phone API on the contract server** (`features/phone-api.md`). Four routes
  under `/v1/phone/` - runs and one run (always redacted), answer a parked
  question, and launch - served by the existing handlers behind an Ed25519
  device signature instead of the bearer token. The signed text covers method,
  target, body digest, device id, timestamp and nonce; a request that is
  unsigned, from an unknown or revoked device, more than 60 seconds behind or
  5 seconds ahead of this machine's clock or older than the server's start,
  replayed (seen nonces persist on disk, so a restart does not reopen them), or
  for an unknown verb is refused. Requests whose signature verified go to a
  0600 audit log with five generations; refusals decided before that go to a
  separate, rate-limited refusals log, so an unsigned flood cannot rotate the
  audit log. Neither holds the signature, nonce or body. Devices are enrolled locally with the new `phone-devices.mjs add|list|revoke|launch`,
  which stores public keys only under the autopilot root with a per-device
  scope (`read`, `answer`, `launch`), refuses to change the registry under
  `MULTI_AGENT_UNATTENDED=1`, and is blocked by name in the unattended guard.
  Launch from a phone is off until `phone-devices.mjs launch on`. An answer is
  still only an offered option id, and the maturity and open-questions gates
  re-run on resume. Pause, resume, stop and steer are not offered: their
  existing backends start a session, run `launchctl`, delete a worktree or
  queue free text. The bearer path for the desktop client is unchanged. Client
  contract 1.2.0: `manifest.json` `phone`, `phone-signed-request.schema.json`,
  `phone-devices.schema.json`, new `contract-error` codes. The phone app is a
  separate project.

- **Autopilot keeps the Mac awake while it is on.** `autopilot-on` installs a
  second launchd agent, `com.multi-agent.autopilot-awake`, that runs
  `/usr/bin/caffeinate -s -i` until `autopilot-off` removes it, because
  launchd's `StartInterval` does not wake a sleeping Mac and a machine that
  sleeps between ticks stops taking work. `-s` holds system sleep off on AC,
  `-i` idle sleep on battery too. `autopilot-on` asks whether the display stays
  on as well (`-d`, `awake.display`, default no: builds, simctl screenshots and
  headless browsers work with the display asleep, and display sleep does not
  lock the keychain). New `autopilot-awake.mjs render|install|remove|status`,
  `templates/multi-agent-autopilot-awake.plist.template`, config `awake`
  (`{enabled: true, display: false}`), and `awake: {held, display}` in
  `autopilot-status --json`. The in-flight lock is unchanged.

- **Autopilot operations around a run** (`features/autopilot-operations.md`).
  A tick holds a sleep inhibitor from the launch to its end - `caffeinate -s -w
<runner pid>`, honoured on AC only - and kills the process group it spawned on
  every exit path. `autopilot-arming.mjs probe` checks every credential the configured
  repos need before `autopilot-on` offers the schedule (`gh auth status`, and the
  new no-value `credential-store.sh probe <key>`: `readable`, `missing` or
  `locked`), and every tick re-probes the item's source through `check --probe`,
  so a keychain that locked on sleep refuses with the key and the fix instead of
  failing the run. `maxParallelAgents` caps runner-launched sessions working at
  once, counting parked runs that are busy again; unset, the one-at-a-time claim
  is unchanged, and the claim is now an exclusive create of `runner.pid`. Once
  per local day the runner writes `gc-report-<date>.json` / `.md`, a
  `gc-abandoned.sh` dry run over only the worktrees it created
  (`worktrees.jsonl`; new `--only` and `--report` flags), with removal opt-in
  through `gc.autoDelete`, and, when `digest.enabled`, a digest of items,
  outcome classes, PRs, parked items and cost, sent through `reportChannels`
  after the outbound gate (`reportDigest`, posted to `digest.jiraIssue`).
  `autopilot-status --json` adds `inhibitorHeld`, `lastGcReport`, `lastDigest`
  and `maxParallelAgents`.
- **The autopilot runner is the single outward writer.** After an unattended
  session ends at the Phase 4 hand-off, `autopilot-publish.mjs` verifies the PR
  request the run left and only then pushes and opens the PR. The repository
  comes from the runner's config, never the request; the worktree must belong
  to it and sit on an unprotected branch that is ahead of the base fetched from
  the configured remote; worktree git config that rewrites URLs or runs a
  command is refused. The gate ledger, the named test log, the commit hook's
  secret detectors over the commit range and the outbound gate are re-run
  outside the run. The push URL is the config's `pushUrl` or `gh repo view`,
  never `.git/config`; the push is never forced and runs with hooks off, and
  `gh pr create --draft` takes the body from a file. Every spawn runs with
  `MULTI_AGENT_UNATTENDED` unset. Bitbucket pushes the branch and writes a
  summary, outcome `pushed-awaiting-pr` (terminal); an unknown host and every
  failed check are `verification-failed`, with the verdict in
  `pr-requests/<session>.verdict.json`.
- The runner refuses to launch (`blocked-guard-missing`) unless `agent-guard.sh`
  is registered on both the `Bash` and `Edit|Write|NotebookEdit` PreToolUse
  matchers, prepares `pr-requests/` at 0700 before every launch, and passes
  `MCP_TOOLKIT_URL_POLICY=strict` and `MCP_TOOLKIT_INDEX_DENY` to the child
  (`launch.json` contract 1.1.0 carries both).
- Post-PR reports move to the runner, off by default: `reportChannels` with a
  configured `jira` target posts one Jira comment, and the new
  `reportIssueUpdates` runs `update-issue-progress.sh` and a PR-link Jira
  comment. Both run once, after the PR opened, through the outbound gate.
- `pre-commit-check.sh --scan-range <base>..<head>` runs the secret detectors
  over the lines a commit range added. `test-summary.mjs` records the log it
  read in its ledger entry (`detail.source`). New autopilot config keys
  `repos[].host`, `repos[].pushUrl`, `repos[].baseBranch`, `reportIssueUpdates`;
  new state key `publish`.
- **Plan critic, one round.** With the quality gates active, Phase 1 ends with
  one adversarial critic (`agents/plan-critic.md`, dispatched through
  `model-dispatch.sh --persona plan-critic --default fable`, so it follows the
  fable switch like review) asking why the plan will fail under four lenses:
  scope, feasibility, security and a cheaper alternative. Each objection carries
  an id, lens, claim and evidence anchors (`file:line` resolved like
  `verify-citations.mjs`, a plan task, an analysis id or heading, or
  `inference`), in `.pipeline/plan-critique.json`
  (`plan-critique.schema.json`). The planner answers each objection once:
  accept and revise the plan, or rebut with evidence. `plan-critique-gate.mjs`
  judges with no model call: a missing, duplicate or orphan reply, `round`
  other than 1, or a second critique of a run already judged fails; an
  objection citing a binding constitution rule blocks unless its reply
  resolves it with an anchor that holds; everything else is advisory and kept
  in `state.planCritique.advisory` for the plan render and the PR summary.
  Gates active it records `plan-critique` in the gate ledger and parks a
  failing run as `verification-failed` (exit 0 pass, 1 fail, 2 not-applicable,
  3 unreadable); attended no critic runs and the gate, if invoked, is advisory,
  exit 0, nothing written. One round, because further rounds of debate move
  agents toward each other rather than toward the right answer. It is not in
  `MANDATORY_AT_COMMIT`: the resume tail commits under the gates with no Plan
  phase. Feature: `features/plan-critic.md`.
- **Review decision rule for autopilot.** `review-decision-gate.mjs` runs on
  the triage output after Step 3.7 in every round, the empty Step 3.1 result
  included. With the quality gates active an accepted `blocking` finding keeps
  its severity only when two independent reviewer outputs carry the same
  finding (same file, and the same fingerprint or cited lines at most three
  apart, never across different `ruleId`s or CWEs), when a `confirmed`
  verify-by-test log inside the checkout shows a failing test and no pass, or
  when test-integrity-gate.mjs produced it. Anything else is lowered to
  `important` in place, never dropped, with its fingerprint and reason in the
  report and the ledger entry; `approved` is recomputed. The Step 2.5 rebuttal
  round does not run under the gates (`--rebuttal-allowed` exits 1), and a
  reviewer entry with `roundCount` above 1 fails the gate. `review-decision`
  joins `MANDATORY_AT_COMMIT`: every mode carries Review and the gate records
  `pass` on a run with no blocker, so no clean commit is refused. Attended
  review is unchanged: advisory output, exit 0, nothing written. The reviewer
  panel on Claude Code is one model family, so the rule leans on executable
  evidence rather than on more same-family agreement
  (`features/review-decision.md`). `state.reviewIterations[].reviewDecision`
  is declared.
- **`/multi-agent:scaffold` and the scaffold contract.** The command resolves
  `ai-<stack>-toolkit:scaffold`, dispatches it through the Skill tool and then
  only verifies: `scaffold-gate.mjs --phase skeleton` requires a valid
  `.scaffold.json` (`scaffold-manifest.schema.json`), no commit and no remote
  yet, and the stack adapter's build, test and lint commands to pass, build and
  test judged by `evidence-gate.mjs --stack` with test counts. The first commit
  follows exit 0; creating the hosted repository is a separate question asked
  after it and is refused unattended by agent-guard. For a scaffolded repo
  Phase 2 runs `scaffold-gate.mjs --phase story` at entry and exit: build, test,
  lint and the manifest's demo command must pass, or the next story does not
  start (`features/scaffold.md`). The stack adapters gain an optional `lint`
  command kind, declared for ios, android, web and backend-node.

- **Project constitution and the spec-consistency gate.** `/multi-agent:analysis`
  writes the project's invariant rules (security, accessibility, architecture,
  licensing) to `~/.claude/knowledge/<project>/constitution.md` and its
  machine-readable twin `constitution.json` (`constitution.schema.json`). Each
  rule cites one labelled source: `repo` (a file and line in the repository),
  `evidence` (a standards document or tracker item) or `inference`, which is
  always `proposed` and never binding. A run with no repository keys the file on
  the analysis name and cites no repo. `constitution.mjs` resolves the path
  (worktree-safe), lists the repository files a rule may cite (license,
  instruction files, lint configs, the stack manifest) and checks a
  constitution, including that every repo ref resolves.
  `spec-consistency-gate.mjs` checks by id, with no model call, that every
  requirement (`BR-<slug>-NN` or `FG-NN`) has a task and a Test Plan row or test
  task, that every task cites a defined requirement, and that no requirement
  row or task waives a binding constitution rule. With the quality gates active
  it records `spec-consistency` in the gate ledger and exits 0 pass, 1 gap, 2
  not-applicable, 3 unreadable; attended it prints an advisory report, exits 0
  and writes nothing. `/multi-agent:analysis-jira` runs it after planning: gates
  active, a gap is the existing exit 4 and no issue is created; attended, the
  preview gains an advisory `consistency:` line. Pipeline Phase 1 Step 12 runs
  it before Phase 2. It is not in `MANDATORY_AT_COMMIT`, since a run whose
  item carries no requirement id has nothing for it to check. Planning tasks
  gain an optional `requirements[]` field, checked by `validate-planning.mjs`. Feature: `features/constitution.md`.
- **Research before asking.** A run the autopilot runner finds parked on a
  maturity blocker or on open analysis questions gets a research pass before it
  is left for a person: `/multi-agent:research <id> --autonomous` reads the
  tracker thread, issue links, similar closed items, linked documents and the
  repository, and `research-gate.mjs` decides what closed. `inference` alone
  never closes a gap, `evidence` must be quoted from a source in the fetched
  context, `repo` must resolve at `file:line` or in a commit, and acceptance
  criteria and business rules only ever yield candidates. The maturity check or
  the open-questions gate re-runs on the result and decides; `proceed` resumes
  the run, anything else parks it with the gaps left and the candidates found.
  `maxAskRounds` now bounds these rounds per item. The research session runs
  without the `research_*` MCP tools and web search. Engine:
  `multi-agent-refs/research/engine.md`; feature: `features/research.md`.
- `lib/issue-fetcher.sh` carries Jira comments and issue links and GitHub issue
  comments on the request that fetches the item, bounded by count, per-comment
  length and total bytes, and lists every tracker-written field in
  `untrustedFields`. The maturity score is unchanged. `--rescore` re-scores a
  descriptor on stdin with the same formula.
- New state key `research` and schema `research-output.schema.json`;
  `prefs.projects.<slug>.research.providers` (graylog, crashlytics,
  counterpart).
- `lint-skills` fails a skill under `shared/external` whose frontmatter has a
  top-level key no host reads. The allowed set is skill-creator's packaging keys
  plus Claude Code's documented skill fields; repo bookkeeping goes under
  `metadata:`.

- **Attribution check for vendored skills** (`_notices.mjs`). Every
  `NOTICE-*.md` under `shared/external` lists the skills it covers in a
  `## Skills (N)` section, and every vendored skill carries
  `metadata.source: "<upstream> (<license>)"`. `lint-skills` fails when the two
  disagree: a vendored skill no NOTICE lists (so deleting a NOTICE fails), a
  listed skill without that source, a NOTICE whose upstream differs from the
  skill's, a wrong count, or a skill listed twice. `build-stack-plugins.mjs`
  runs the same check before writing anything and exits 1 on a problem, ships a
  NOTICE only beside the skills its section lists, and gains `--check-notices`.
  `lint-skills` also warns on a `metadata.source` that names no licensed
  upstream (27 skills marked `community`).
- The `firebase` skill ships with its license terms and a record of the local
  changes.
- `launch-request.mjs plan --channel desktop|phone` (default `desktop`) applies
  that channel's input rule, so `plan --channel phone --redact` prints what
  `POST /v1/phone/launch` returns for the same request file; the manifest's
  phone-launch invocation passes it.
- `CREDENTIAL_STORE_KEYCHAIN` scopes `credential-store.sh` and `keychain.py` to
  one keychain file instead of the user's search list.
- Schemas for `phases.json`, `token-budget.json`, `unattended-policy.json`,
  `unattended-profile.json`, `secret-patterns.json` and
  `review-file-exclusions.json`.

### Security

- `usage-register.mjs` sends the GitHub login proof only over https to the default reporting host or a host listed in `usageLog.trustedHosts`, and reads the server's answer by code: a login mismatch, a login without collaborator access and a decline each get their own status. `usage-report.mjs` no longer follows a redirect with the ingest token.
- **The OS sandbox is the primary boundary for unattended runs.**
  `install --unattended` always writes an OS sandbox block into the unattended
  profile: enabled and required at startup, no unsandboxed retry, no excluded
  commands, auto-allow off, writes confined to the worktree, host configuration
  and credential stores denied, and network limited by a strict allowlist to the
  package registries the stack adapters need. The autopilot runner refuses to
  launch (`blocked-sandbox-unavailable`) unless the profile file's content still
  holds the sandbox, and re-checks before every research pass and resume, so a
  run that rewrote the profile cannot widen the next one. An unattended run
  writes its logs and PR request under `~/.multi-agent-unattended` (the one
  place outside the worktree the sandbox permits), and `Edit`/`Read` deny rules
  cover the file and MCP tools the sandbox does not. Behaviour verified against
  Claude Code 2.1.282 and recorded in `features/unattended-security.md`.
- **The publish step verifies a clean checkout and refuses host changes.**
  Independent verification builds and tests a detached checkout of the run's
  commit, so an untracked file (a `.npmrc`, a `conftest.py`) cannot change what
  runs; a build or test that rewrites a tracked file, or that changes
  `~/.claude/{scripts,lib}`, the settings files, the profile or
  `~/Library/LaunchAgents`, is refused before anything is pushed. The push range
  is scanned through repository `.gitattributes` and binary blobs, so a path
  marked `-diff`/binary cannot hide an added secret.
- **The unattended command guard closes the round-3 one-liner bypasses** as a
  second layer behind the sandbox: `/dev/*` and non-regular files as programs;
  debuggers, job runners and tracers; `node -r`/`sort --compress-program`/
  `rg --pre` helper values; git `send-pack`/`http-push`/`lfs push`/`svn`/`p4`,
  credential helpers, `maintenance start`, browser/server subcommands and the
  `--git-dir`/`--work-tree`/`--exec-path`/`--namespace` global flags; host
  checks on git and `gh` URLs and `--hostname`; `ssh`/`scp`/`nc`/`dig` and
  rsync-to-remote; `gh` alias normalization, `config set`, `config get` of a
  token; git `mv`/`checkout`/`worktree add`/`clone`/`init`/`checkout-index`/
  `apply --directory` write targets, `mkdir`, copy destination-plus-basename and
  `mv`/`rm` sources; `cd -` as an unresolved directory; the whole host roots and
  `$HOME`'s ancestors; the proxy and toolchain-redirect environment variables;
  `patch` and `git apply`/`am`; and every path-typed MCP argument, including
  inside `agent_run_steps`. A program file counts as trusted only when unchanged
  at the run's base commit and inside the run's own worktree.
- `fetch-confluence.sh` sends the token only to `prefs.global.hosts.confluence`
  or a subdomain of it, or to Atlassian Cloud when no host is configured, and
  refuses any other link host with exit 6 before the token is read. The setup
  flows write secrets through the stdin sentinel (`set <key> -`);
  `credential-store.sh` delegates writes to `keychain.py`, and its shell
  fallback writes `-X` hex and decodes the `0x` marker, so a multi-line value
  such as a service-account JSON round-trips byte-exact.
- `context-link-extractor.sh` matches hosts by domain rather than suffix, so a
  look-alike such as `evil-figma.com` is not classified as Figma, and a Graylog
  label must end at a word boundary.
- `agent-guard` blocks force-push bypasses (`HEAD`, any remote, push options,
  `git -C`, `cd`) in every mode. Under `MULTI_AGENT_UNATTENDED=1` it also
  blocks pushes, PR and issue writes, publisher scripts, Keychain reads,
  fetches outside the host allowlist, package installs, manifest edits and
  writes into protected paths, and fails closed. Phase 4 writes
  `pr-request.json` through `pr-request.mjs` instead of pushing, channels posts
  nothing unattended, and fetched text goes into `<untrusted-data>` blocks.
- `pre-commit-check.sh --scan-range` scans every commit in the range on its own, reading content from the commit objects, so a secret added and later removed inside a branch is refused before it is pushed.
- The publish step resolves its build and test commands from the base commit's manifests and refuses a range that changes those commands, their package scripts and hooks, the declared package manager, or the executable a command starts with (`publish/verify-scripts`).
- The publish step snapshots git credential settings before running the build and tests, pushes with that snapshot, and refuses to push when `~/.gitconfig`, the XDG git config or the credential settings changed meanwhile (`publish/verify-credentials`). Processes started by verification are killed by process group and by a per-run environment marker.
- With no `baseBranch` configured, a PR must target the remote's default branch; other bases need the new `allowedBases` repo option. Branch and base names that start with `-` or contain `..` are refused.
- `readRegularFile` refuses a file whose path no longer names the opened descriptor (dev/ino compared after the no-follow open).
- Redacted free text also replaces IPv4 addresses, host names under known TLDs and any `host:port`; file names, versions and code paths are left intact.
- Prefs writes from usage identity, usage registration and the prefs migrator share one locked, atomic writer and keep the file at `0600`.

- **The unattended Bash guard is fail-closed on anything it cannot parse into
  simple commands** (`scripts/unattended_policy.py`, `agent-guard.py`). Under
  `MULTI_AGENT_UNATTENDED=1` a command is judged only when it reduces to simple
  commands joined by `;`, `&&`, `||` and plain pipes between non-interpreter
  commands. A subshell, brace group, command or process substitution, heredoc,
  background job, shell keyword, interpreter reading its program from stdin, `-c` cluster on a
  shell, runtime-built command name, `sudo`/`doas`, `find -exec`, or a line above
  50 segments is refused unparsed. `$(...)` is analysed instead of refused: each inner command must pass the same parser and policy checks, a substitution may not name a command, subcommand or write target, and nesting, backticks, `<(`/`>(` and arithmetic stay refused. Quoted-delimiter heredocs and here-strings are literal data; segments and redirections are split quote-aware; in-command variables and `$HOME` are expanded and an unresolvable write target or `cd` is refused. Wrappers are stripped with their option values
  (`env -u`, `nice -n`, `timeout -s`); command basenames are casefolded and
  absolute paths reduced to their basename; git aliases and `git -c
core.hooksPath=` are refused. Path checks casefold on darwin, resolve through
  `cd`/`pushd`, parse `--opt=value` and attached short options, cover `curl -o`,
  `tar -C`, `unzip -d`, `ln`, `git checkout -- `/`git restore`, `patch`, and a
  directory that is an ancestor of a protected path. New protected paths:
  `~/.gitconfig`, `~/.config/git/`, the shell rc files, `~/Library/LaunchAgents/`,
  `~/.claude/CLAUDE.md`, `~/.claude/plugins/`, `~/.claude/multi-agent-preferences.json`.
  `gh` gains `alias`/`ssh-key`/`gpg-key`/`extension`/`codespace`/`secret`/`variable`
  and `auth` (except `auth status`) to the write list, skips `-R/--repo` inside a
  group, treats attached `-f*`/`-F*` as POST fields, and refuses graphql `@file`
  fields. `curl`/`wget` parse the host with `urllib.parse.urlsplit`, refuse
  `-x`/`--proxy`/`--connect-to`/`--resolve`/`-K`/`--unix-socket`/`--doh-url`, and
  refuse any request body or upload outright. `keychain.py get/set/delete` and
  `gate-ledger.mjs append/park` are blocked from Bash. `WebFetch` and the
  toolkit's `web_*` tools are gated on the network allowlist (`web_eval`
  refused), registered as a third PreToolUse matcher; the installer requires the
  `Bash` tool-name matcher for the Bash guard and migrates a stale `Bash(...)`
  guard entry. `agent-guard.py` arms a 5 s internal deadline (hook timeout 10 s)
  and memoizes git reads. Attended verdicts are unchanged in the allow direction.
- **The unattended guard judges what a command runs, not only its name**
  (`scripts/unattended_policy.py`). `xcrun`, `arch` and `sandbox-exec` are
  wrappers like `env`, so `xcrun git push` is judged as `git push`; `script`,
  `watch`, `env -S` and `env -C` are refused because the guard does not model
  the command line they run. An interpreter may run only a file the run did
  not write: an installed pipeline script, a file the user cannot write, a
  `node_modules/.bin` binary, or a file tracked and unmodified at HEAD. The same
  holds for a command named by path (`./x.sh`, behind `nohup` too), a module
  `python3 -m` finds in the cwd, `awk -f` / `sed -f` program files and the
  Makefile `make` reads. Inline programs are refused on every interpreter
  (`node -e/-p`, `perl -e/-E`, `ruby -e`, `osascript -e`, `php -r`, `lua -e`,
  `Rscript -e`, `swift -e`, `bun -e`, `deno eval`), as are awk programs with
  `system`, a pipe, `getline` or a `print >` redirect, sed programs with a `w`
  or `e` command, and `make --eval` or a `VAR=value` operand.
- **Configuration and environment that make git or a shell run a program are
  refused wherever they are set.** One key list covers `git -c`,
  `git --config-env`, `git clone -c` and `git config` (`diff.external`,
  `core.pager`, `core.editor`, `core.sshCommand`, `core.fsmonitor`,
  `core.hooksPath`, `gpg.program`, `url.*.insteadOf`, `alias.*`, `filter.*`,
  `credential.*` and the rest); `git config --global/--system` writes and
  `git config --edit` are refused. Every `GIT_*` variable other than commit
  identity, date and prompt control is refused, as are `BASH_ENV`, `ENV`,
  `PROMPT_COMMAND`, `CDPATH`, `HOME`, `NODE_OPTIONS`, `PYTHONPATH`, `LD_*`,
  `DYLD_*` and a non-trivial `EDITOR` / `PAGER`, including after `env` and in
  `arch -e`. `rebase --exec`, `bisect run`, `submodule foreach`,
  `difftool --extcmd`, `filter-branch`, `grep -O`, `--upload-pack`,
  `--template` and `ext::` / `fd::` transports are refused.
- **Write targets the shell expands, and writers the guard did not read.** A
  write target or `cd` with an unquoted glob is refused, since the shell picks
  the path at run time; an inherited `CDPATH` leaves a bare relative `cd`
  unresolved. `sed` `w` commands, `sort -o`, `find -fprint/-fprintf/-fls` and
  `find -delete`, `git diff --output`, `git format-patch -o` and `ditto` are
  read as writers. `crontab`, `launchctl` and `defaults` writes, `altool` and
  `notarytool` are refused. New protected home paths: `~/.zshenv`, `~/.zlogin`,
  `~/.zlogout`, `~/.bash_login`, `~/.ssh/`, `~/.gnupg/`, `~/.config/gh/`,
  `~/.npmrc`, `~/.netrc`, `~/.git-credentials`, and the new
  `~/.claude/multi-agent-unattended.settings.json`.
- **Packages fetched by a runner command are refused.** `npx`, `npm exec` and
  `npm x` pass only for a binary already in `node_modules/.bin`, because with
  no TTY npm installs a missing package without asking; `--call` is refused.
  `pnpm dlx`, `pnpx`, `yarn dlx`, `bunx`, `bun x`, `uvx`, `uv tool run/install`,
  `pipx run/install`, `yarn global` and `npm install-test <pkg>` are refused.
  `security` is judged by its subcommand after leading flags
  (`security -q find-generic-password`).
- **Every multi-agent-toolkit tool goes through the guard.** The installer
  registers `agent-guard.sh` on `WebFetch|mcp__multi-agent-toolkit__.*` and
  migrates the older web-tools-only matcher in place. Each step of
  `agent_run_steps` is judged as if called directly, a web URL given to
  `ios_open_url` / `android_open_url`, `xcrun simctl openurl` or `open` is held
  to the host allowlist (an app's own deep-link scheme passes), and the
  `research_*` tools are refused.
- **The attended force-push rule covers deletes and hidden pushes**
  (`agent-guard.py`). `git push origin :main`, `--mirror`, and `--prune` with a
  glob refspec are blocked like a force-push to a protected branch; the rule
  reads through subshells, brace groups, `sh -c` / `bash -c` payloads and
  `eval`; and after a `cd` it cannot read, a relative `cd` keeps the directory
  unknown, so a bare force-push there is blocked.
- **`install --unattended` no longer changes attended sessions.** The profile
  (`dontAsk`, the narrow allow list, the push deny, the toolkit env, the
  optional sandbox) is written to `~/.claude/multi-agent-unattended.settings.json`
  and the autopilot runner passes it to every child with `claude --settings`
  (`launchArgv`, `researchArgv`, `resumeArgv`, and `{settingsFile}` in
  `schemas/launch.json`). `~/.claude/settings.json` keeps its own posture; a
  whole-Bash allow there is reported by the installer and doctor, not removed.
  A profile an earlier install wrote into `settings.json` is moved out on the
  next `install --unattended`, printed first. The allow list names `xcrun`
  subcommands (`simctl`, `xcresulttool`, `xctrace`, `--find`) instead of all of
  `xcrun`.
- **The runner's guard precondition accepts only the installer's hook.** A hook
  command counts only when it is exactly
  `bash $HOME/.claude/scripts/agent-guard.sh` (or that path with `$HOME`
  expanded), only user or managed settings count, the web entry has to cover
  `agent_run_steps` and both `open_url` tools, and the launch is refused while
  the permission profile file is missing.
- `untrusted.mjs` defuses a forged closing tag written with whitespace, a tab
  or a newline before the slash, which could end an `<untrusted-data>` block
  early.
- The Copilot setup skill and the token-rotation step in `recovery-guide.md`
  stream the token over stdin instead of passing it to
  `security add-generic-password -w`. `smoke-secret-off-argv.sh` also catches a
  variable or backtick value on a store `set` and a `security` call carrying
  `-w`/`-X` on argv, in scripts and lib as well as docs.

### Changed

- **First-party knowledge skills in place of skills of unknown license.** 23
  knowledge skills are rewritten as original content and marked
  `metadata.source: multi-agent-pipeline`, keeping their names so routing and
  plugin indexes are unchanged: the nine `hig-*` skills (written against
  Apple's public Human Interface Guidelines, which they cite),
  `android-jetpack-compose-expert`, `kotlin-coroutines-expert`, `api-patterns`,
  `api-security-best-practices`, `nodejs-backend-patterns`, `fastapi-pro`,
  `docker-expert`, `github-actions-templates`, `observability-engineer`,
  `monorepo-architect`, `architecture`, `debugging-strategies`,
  `context-compression` and `accessibility-compliance-accessibility-audit`.
  `agentflow`, `closed-loop-delivery`, `ios-developer` and
  `android-ui-verification` are removed: the pipeline's own orchestration,
  `multi-agent:test`, and the Swift, SwiftUI and Compose skills already cover
  them. `NOTICE-provenance-unconfirmed.md` is gone with them, and `lint-skills`
  and `build-stack-plugins` now reject any skill whose `metadata.source` is
  `community`, whether or not a NOTICE lists it.
- Knowledge-skill examples use neutral domains (orders, products, notes)
  instead of travel wording.

- The autopilot runner, intake and circuit breaker share one outcome contract
  (`_autopilot-outcomes.mjs`: terminal, retryable, parked, blocked). Every
  retryable outcome counts toward `maxAttempts` once per run, with new
  `awaiting-answer`, `rate-limited` (its own backoff) and `verification-failed`
  outcomes. The runner finds its run by the session id it passes as
  `MULTI_AGENT_SESSION_ID`, which Phase 0 records as `sessionId`; a parked run
  holds its repo, not a slot; only a linked worktree matched by session is
  removed; spend is priced from tracker tokens and null when unknown, and
  arming refuses on unknown spend.
- The model router resolves a `fable` default to `opus` on every path while
  `modelFallback.fableEnabled` is off, and `/multi-agent:review`,
  `review-analysis` and the untracked-branch tail of `resume` ask it for their
  reviewer and triage slots.
- Every shipped surface uses the six-phase numbering in `phases.json`;
  `smoke-phase-labels.sh` fails a `Phase N (Name)` that disagrees with it or a
  phase above 5. Lite analysis mode and the removed `:local` commands are gone
  from the refs, schema and Copilot skill.
- Usage registration proves ownership of the GitHub login: it sends the verified account's `gh auth token --user <login>` as `Authorization: Bearer`, over https only (plain http only to loopback), without following redirects, and reports 401/403 with the login that could not be confirmed.
- Android, Compose, localization, clean-code and command examples in the shipped skills use a neutral orders/payments domain. The iOS coding standard names its data classes `identity-document` and `order-reference`. Technical guidance is unchanged.
- `unattended-security.md` and the publish step's docs state what the run's code can still reach when it runs as the runner's user (Keychain items readable without a prompt, `gh auth token`, the user's files) and recommend a separate macOS user for the runner.
- Core skill frontmatter (`skills/shared/core/multi-agent-*`,
  `apple-archive-compliance`, `google-play-compliance`) carries only keys a host
  reads. `language`, `not-for` and `standards-registry` sit under `metadata:`,
  and `lint-skills.mjs` reads `not-for` from either place and enforces the host
  key set on `shared/core` as well as `shared/external`.
- `lint-skills.mjs` rejects an angle bracket in any `description` or
  `description-tr`, not only in `shared/external`; the `save` and
  `test-screenshots` descriptions write placeholders as `{name}`.
- The line-grace ceilings for `setup` and `sync` drop to their current lengths
  (826, 528).
- The autopilot indicator fixture and the menu bar comments use the six-phase
  shape (`2/5 Dev`) with no pipeline-depth field, which the runner does not
  write.

- The 67 skills under PolyForm Perimeter 1.0.0 keep the license terms and the
  required notice beside every copy.
- 79 vendored skills carry `metadata.source` naming their upstream and license:
  67 under PolyForm Perimeter 1.0.0, six Xcode build skills,
  `swiftui-expert-skill`, the four `*-pro` skills and `firebase`. `swift-security` records PolyForm
  Perimeter 1.0.0 there instead of the upstream `license: MIT` line, which
  contradicts the repository license. Twelve of these files drop one or two
  blank lines to stay within 500 lines.
- `clean-code` is written in this project's own words and marked
  `metadata.source: multi-agent-pipeline`. It credits no upstream: the
  repository it cited has no license, so nothing from it can be redistributed.
  The skill stays in `shared/external`, the single source for knowledge skills
  that the stack-plugin builder publishes and the Copilot and Codex installs copy.
- Operational reporting is sent under the logged-in GitHub account that can
  read the pipeline repository (`usageLog.accessRepo`), not the account `gh`
  has active. New `usage-identity.mjs` checks each account `gh auth status`
  lists with that account's token in the child's `GH_TOKEN`, caches the
  answer in `usageLog.login` (7 days; 1 day when none qualifies), and
  re-checks on `--refresh`. With no such account nothing is registered or
  sent, and one line says why. `usage-register.mjs` replaces a stored token
  issued for a different login (`usageLog.registeredAs`) and no longer falls
  back to the OS user.
- Each run record now says what happened: `ev` (`phase`, `completed`,
  `halted`, `parked`), a run status derived from it, the current phase taken
  from the tracker, task type, a halt or park reason code, and, opt-in through
  `usageLog.includeTitle` / `usageLog.includePrUrl`, a cleaned one-line title
  and the PR URL. `phase-tracker.sh` reports every non-pending transition as
  `--event phase`; Phase 5 writes `status: complete` and `finishedAt` before
  sending `--event completed`; halts send `--event halted` and parked runs
  `--event parked`. A completed run is no longer reported with its Phase 0
  status and phase.
- The reported mode is one of `schemas/phases.json`'s modes or `unknown`, and
  the command is one that still ships, so a state written by an older version
  cannot report a removed mode. The analysis render writes `mode: analysis`
  and an explicit `complete` / `failed` status.

- The always-on description ceiling in `smoke-context-budget.sh` is 90500 (was 90000) for the new command and its shared/core counterpart.
- Overlapping iOS knowledge skills state their boundary in the description, so a
  host choosing between them has a clause to decide on: `swift-testing-pro` and
  `swiftdata-pro`, the three concurrency skills, the four SwiftUI review and
  pattern skills, and the two SwiftUI performance skills. Third-party
  descriptions keep their upstream text and gain one appended clause, recorded
  under "Local modifications" in their NOTICE. `backlog`, `localization-reuse-map`
  and `swift-language` descriptions are shorter, so the always-on description
  surface still shrinks with the boundaries in (90252 to 90237 bytes).
- Tables of contents in `android-build-quality-gates/references/patterns.md` and
  `ios-coding-standard/references/STANDARD.md`; `macos-spm-app-packaging` links
  its `references/scaffold.md`.
- Frontmatter of 65 external skills moves repo bookkeeping under `metadata:`:
  `source` (42), `risk` (42), `date_added` (41), `version` (21), `tags` (15),
  `standards-registry` (2) and `category` (1). `skill-conformance.mjs` reads
  `metadata.standards-registry` and still accepts the top-level spelling.
- `hig-components-content` and `hig-components-layout` descriptions each gain a
  clause naming what they cover and which of the two handles the rest.
- The six Xcode build skills record that they link one another by relative
  path, `swift-testing-pro/references/new-features.md` gains a table of
  contents, and the vendored-skill notices name the `metadata:` keys.

- Open questions: `open-questions-gate.mjs` runs as the last step of Phase 1
  whatever `analysis.docStatus` says, and the resume tail runs it at Phase 0, so
  every gated path leaves the entry `MANDATORY_AT_COMMIT` asks for (a list never
  recorded is not-applicable). On re-entry the gate applies `state.lastAnswer`:
  `assume` moves the rows to `analysis.assumptions[]` and records pass,
  `ask-now` re-parks under `MULTI_AGENT_UNATTENDED=1`, `abort` stops the run as
  verification-failed. Exit 3 halts Phase 1 too.
- With the quality gates active, Phase 1 always writes plan todos, and
  `plan-coverage-gate.mjs` reads a run that had a Plan phase but left no todos
  and no Section 14 `Add new` row as a gap (exit 1); only a run with no Plan
  phase is not-applicable. Phase 4 branches on exit code and `--json` verdict.
- Review decision: Step 1.76 writes `.pipeline/test-integrity.json` and Step 2.7
  `.pipeline/security-audit-<n>.json`; the gate reads both as files
  (`--integrity`, `--source`), treats a missing or empty file as no findings or
  no audit, and refuses an empty `reviewers: []` like a missing record (exit 3).
  The phase doc writes `reviewIterations[-1].reviewDecision` and parks with an
  explicit `gate-ledger.mjs park`.
- The attended path of `verify-citations.mjs`, `plan-coverage-gate.mjs` and
  `evidence-gate.mjs` returns the verdicts and exit codes of its base contract:
  quote checks, nested deferred findings and the plan-coverage exit codes 1 and
  3 apply only with the gates active. `test/attended-parity.test.mjs` runs a
  corpus against the base scripts and lists the four intended differences, each
  a false failure at the base.
- `autopilot-config.schema.json` marks `askOnLowMaturity`, `reportStatus` and
  `sendItemKeys` reserved: nothing reads them, and `autopilot-on` no longer
  writes a default for them.
- `smoke-removed-modes-absent.sh` scans `.github/` and rejects a fast mode or a
  Short answer.
- `smoke-no-mcp-in-dev-phases.sh` is described as what it is, a maintainer
  regression check over a state file: the phase docs, `rules.md` and the
  schema no longer say it fails a run. It has no default state file, and a
  Figma entry recorded without an integer phase exits 2 instead of reading as
  phase 0.
- `write-state.mjs` names on stderr any top-level key a write introduces that
  `agent-state.schema.json` does not declare. The write still lands: failing
  it would stop a run over a documentation gap, and the runtime package ships
  no validator.
- The smoke runner gives each suite its own temporary `HOME`
  (`SMOKE_SHARED_HOME=1` keeps the real one). The live keychain smokes run
  against a throwaway keychain, `smoke-cross-cli-behavior.sh` installs a git
  checkout into a temporary home and checks that, `gen-facts --check` leaves
  out and names the numbers it cannot read without the sibling repos, and the
  npm registry probe runs only with `SMOKE_NETWORK=1`.
- `validate-schemas.mjs` compiles every schema with ajv under the draft it
  names and validates each data file in `pipeline/schemas` against its sibling
  schema; a data file without one fails. The contract test harness holds every
  non-2xx body to `contract-error.schema.json`.
- Complaint intake redacts reservation and order reference codes as `[REDACTED:reference]`, recognises more reference-code labels, and `validate-complaint-doc` warns on a code after any of them, in any case.
- `guardRegistration` takes the managed settings path as an option; unit tests cover `allowManagedHooksOnly`, project-level `disableAllHooks` and `CLAUDE_CONFIG_DIR`.
- `json-file-lock.mjs` has direct tests: contention between two processes, stale and dead-holder reclaim, timeout, atomic replace and exact file mode.

### Docs

- README (EN and TR) describes current behaviour only: the release-labelled
  sections become feature sections, version history stays in this file and in
  ADR-0014. The command tables list `analysis-jira`, `graph`, `security-review`
  and `doctor`, and the Turkish `jq` prerequisite matches the English one.
- `autopilot-status`: a waiting item is parked until `resume <id> --answer` or a
  client answers it; a comment is posted only when `autopilotCommentsOnIssue` is
  on. The `--subjects` example shows `Phase 2/5`.
- `help` (EN and TR) lists the pipeline entries without a count and with no
  depth question; the Turkish block matches the English one.
- `sync` names the Codex transform without hardcoded spec and persona counts;
  `docs/architecture.md` and `docs/ecosystem.md` count six sync targets.
- Removed references to pipeline depth: `analysisPhase.mode` in Phase 1,
  short-run elision in the cross-CLI and component-dispatch contracts, `:local`
  in the tracker registration rule, and the Lite paragraph in `analysis`.
- `unattended-gates.md` places plan critique before the open-questions gate
  that closes Phase 1; `autopilot-circuit-breaker.md` excludes `died` and
  `rate-limited` from the failure count; `autopilot-off` names the
  `autopilot/abandoned/<task-id>` stash entry.
- ADR-0007 and ADR-0008 carry the ADR-0012 macOS-only amendment.
- `docs/features.md` opens with a table of contents.
- Schema descriptions (`phases.json`, `token-budget.json`, `prefs.schema.json`,
  `agent-state.schema.json`, `triage-output.schema.json`) state what each field
  is and who reads it. The token-budget ceiling history moved from
  `docs/token-budget-history.md` to the end of `CHANGELOG-archive.md`.
- Removed `docs/internal/STABILITY-FIX-PLAN.md` and
  `docs/internal/GENERICITY-REVIEW.md`.
- `features/maturity-followup.md` states that a parked autopilot item is not
  queued again by a later scan; it moves on `resume <id> --answer` or a client
  answer, and the resumed run re-enters the maturity step.
- `picker-contract.md` says `agent-guard.sh` blocks on an internal error when
  unattended, instead of calling all three hooks fail-open.
- The naming defaults, the Phase 2 conventions handoff, the task-sequence rule
  and the repo-discovery sample use neutral order and storefront names.
- The status command's group table lists `waitingFor` as a reason for the
  waiting group.

### Removed

- The PolyForm notice file, and the `license` line in `swift-security`.
- **The Linux and Windows code paths** (ADR-0012). `credential-store.sh` keeps
  only the Keychain backend: platform detection answers `macos` or `unknown`,
  and on anything else every subcommand but `platform` exits 2 with `macOS only,
see ADR-0012`; the `secret-tool` and PowerShell Credential Manager arms of
  `get`, `set`, `delete`, `probe`, `list` and `doctor`, `ps_run`, and the
  `linux` case in `delegate_to_python` are gone. `keychain.py` drops its
  `secret-tool` branches and reports non-macOS hosts as unsupported. The
  runner's in-flight sleep lock drops its `systemd-inhibit` branch. Also gone:
  the `USERPROFILE` fallbacks, the Windows path conversion in the installer's
  `relOf`, the `xclip` branch in `github-ssh-setup.sh`, the Linux cron example
  in `audit-log-rotate.sh`, the Linux branch of `smoke-keychain.sh`, the
  `secret-tool` stub in `smoke-bitbucket-contract.sh`, and the Linux and
  Windows wording in the setup, uninstall, review, channels and
  complaint-analysis SKILLs, `keychain.md`, `tracker-contract.md`,
  `url-enrichment.md`, `recovery-guide.md` and the workflow comments. The seven
  constructs ADR-0012 lists as load-bearing on macOS stay.
  `smoke-macos-only.sh` now scans shipped code and docs for another platform's
  backend or branch, proved on a planted `systemd-inhibit` line first.

### Fixed

- The commit hook scans the repository the commit runs in: a `cd <dir>` or `git -C <dir>` earlier on the line moves the scan to that checkout, and text inside a quoted heredoc is no longer read as a commit.
- `_autopilot-config` honours `minLength`/`maxLength`, so an empty string in a
  repo's `allowedBases` is refused at load. `attended-parity` fails, rather than
  silently skips, when the base commit is missing unless
  `MA_ATTENDED_PARITY_SKIP=1` is set. `feedback-send` accepts the bracketed IPv6
  loopback (`[::1]`) that `URL.hostname` returns. `markedPids` in the publish
  step is macOS-only (`ps -E`), dropping a dead Linux `/proc` branch.
- A session at its plan limit that prints only the "You've hit your weekly
  limit" notice is recognised, so the runner backs off instead of recording a
  retryable failure.
- `diff-explain` reads triage from the newest `reviewIterations` entry;
  `issue-fetcher` strips a URL fragment and re-validates the key before
  re-dispatching and times out Jira requests at 30 s; `evidence-gate`
  recognises Gradle `BUILD SUCCESSFUL`, pytest `PASSED` and `N passed` and
  reads `failed=0` as a zero summary; `plan-coverage-gate` writes its verdict
  synchronously, so a pipe keeps all of it.
- Autopilot checks `config.json` against `autopilot-config.schema.json` whenever arming, intake or the runner load it. A value the schema refuses, such as a non-numeric ceiling, slot count or attempt limit, blocks the queue with the field named (`blocked-config`).
- The cleanup report lists a runner worktree only while the newest run state naming it carries the ledger row's session. A refused `git worktree remove` is reported as `remove-failed`.
- The runner's circuit breaker counts each run once per window and, like the rate-limit backoff, reads a trailing time window. `ticks.jsonl` is size-capped and `attempted.jsonl` is compacted, with the full log kept in `attempted.jsonl.1`.
- Autopilot identifies GitHub items by `owner/repo#N`; rows recorded under the short id still count. A Jira issue matched by more than one repo is queued once, and the other matches are listed in `queue.json.dropped`.
- A run already waiting on a question at its first poll is parked from its own state instead of holding the queue.
- When retiring a run with uncommitted work, the runner records the stash reference only when `git stash push` succeeded.
- `gc-abandoned.sh` removes only paths git reports as worktree top levels, and only through `git worktree remove`.
- `autopilot-status.sh --write` keeps the previous `status.json` and exits 3 when the status envelope cannot be built; `--json` prints an error object with exit 3.
- `build-lock.sh` writes its owner atomically, takes a lock over only when the holder's process is gone, the owner file is stale, or the owner file is missing past a grace window, and `release <task-id>` frees only the caller's own lock.
- `worktree-prepare.sh` recognises a registered worktree named through a symlinked path and re-enters an existing task branch.
- Scripts that fall back to the installed copy of a helper keep running under `set -e` on bash 3.2 when the first location is missing.
- `answer-question` and `runs-index` read run state as a bounded regular file, so a FIFO or oversized file is reported unreadable instead of blocking the contract server.
- `gate-ledger.mjs check --repo` checks the named repository's HEAD.
- A state update that changes nothing no longer rewrites the file or bumps `rev`.
- `launch-request register-repo` holds the file's lock across read-modify-write, so concurrent registrations all land.
- `usageLog.optOut` is honoured before any credential read.
- `agent-state.schema.json` declares `review` and `complaintSpec`, and the state-keys check covers command docs too. design-check persists its platform under `designCheck`.
- The channels report example records `invokedFrom: phase-5`.

- The guard's internal deadline verdict reaches the hook wrapper: it is flushed
  before the process exits, so an unattended guard that runs out of time refuses
  with its reason. `MA_GUARD_DEADLINE_SECONDS` can lower the 5 s deadline, never
  raise it.
- `install/templates/claude-hooks.json` registers the same hooks the installer
  writes: tool-name matchers (`Bash`, `Edit|Write|NotebookEdit`,
  `WebFetch|mcp__multi-agent-toolkit__.*`, `Read|Bash`) and a readme that states
  which gates fail open and that `agent-guard.sh` fails closed unattended.
- Guard tests and the agent-guard and red-team smokes count an exit 2 as a
  refusal only when stderr carries a rule's reason, so a crash, a timeout or a
  missing decision in the policy code fails them.
- `state.currentPhase` moves forward on every completed phase, so resume re-enters after the last finished phase instead of after Phase 0. `phase-tracker.sh update <n> completed` calls the new `record-phase.mjs`, which writes through the locked state writer and never moves the value back.
- **An unattended run can execute its own documented steps.** Every command in
  the phase docs now passes the fail-closed unattended guard as written, once
  its placeholders are filled. Shell control flow moved into installed scripts,
  each called as one command: the new `worktree-prepare.sh` (heal a stale lock
  and dead admin entries, residue guard, add or re-enter, identity; JSON out)
  and `build-lock.sh acquire|release`; `probe-evidence-capability.sh --platform
auto --stack-root` picks the platform from `stack-detect.sh` and records a
  backend repo as `other` with a `skippedReason`; `repo-hygiene.sh
ensure|release|gitignore|prune <root>` runs without sourcing;
  `triage-memory.mjs prior-art` answers every finding in one call;
  `memory-save.sh --from-json` saves a synthesis array, bodies with spaces and
  newlines included; `test-integrity-gate.mjs --out`, `plan-coverage-gate.mjs
--analysis-from-state --json-out`, `test-gap-scan.mjs --stack-from <state>` and
  `render-agent-log-cost.sh --append <log>` replace the redirects, arrays and
  `case` blocks around them. Write targets in the docs are spelled
  `{worktreePath}/...`, LLM-written JSON goes through the Write tool, and
  `stack-detect.sh --json` replaces the `eval`. The steps a run does not take
  (credential read, evidence push, `gh pr create`, issue comment and progress
  sync, release PR edit) carry a `# unattended: skipped` comment, and
  `test/unattended-doc-lines.test.mjs` fails on any other refusal; its doc
  scanner judges a template line with its placeholders filled.
- `gate-ledger.mjs park` is allowed from Bash again under
  `MULTI_AGENT_UNATTENDED=1`, as `unattended-gates.md` instructs: parking only
  stops the run. `append` stays refused.
- The autopilot runner's guard-registration check also requires `agent-guard.sh`
  on the `WebFetch|mcp__multi-agent-toolkit__web_.*` matcher that the installer
  registers.
- Desktop launch free text is refused only when its first word is an op or mode
  word, the one position that can route; "Add unit test for X" is accepted.
  Newlines, control characters, a leading `-`, quotes, backticks and URLs are
  still refused, and the phone route still takes structured input only.
- The Codex and Copilot installs copy every vendored skill's `NOTICE-*.md` next
  to the installed skills, so the attribution ships with them.

- Phase 3 no longer passes JSON through a `${X:-{}}` default, which bash 3.2
  (the stock macOS `/bin/bash`) expands to `{\}`: the review decision gate read
  that as unreadable input and every gated commit was refused, and the Step 3.0
  merge came out empty. `smoke-shell-portability.sh` runs the documented blocks
  under `/bin/bash` and rejects a brace default in any doc.
- `plan-critique-gate.mjs`: an `analysis` anchor resolves only on a requirement
  id or a whole heading, and a rebuttal clears a binding objection with a file
  anchor only as `path:line` plus a quote.
- Pre-existing claims (`_pre-existing.mjs`) need a cited line that the diff from
  the base does not add or change, the same text elsewhere in the base file no
  longer counts, a blank or punctuation-only line never qualifies, and a
  failing-test log must sit in the checkout or the run's state directory, name
  the test and show a failure marker.
- `spec-consistency-gate.mjs` matches `CON-` ids in any case and reads passive
  and gerund waivers (`is waived`, `waiving`, `waived for`, `does not apply`).
- `symbol-existence-gate.mjs` resolves JSON keys by their full nested path: an
  invented dotted key built from segments that exist elsewhere, or a bare leaf
  that exists only nested, is reported missing.
- `evidence-gate.mjs`: with the gates active a test claim needs a positive
  executed count, from the log or from the new `--junit` / `--xcresult` /
  `--xcresult-json`; adapters gain `skipped` markers, and a Gradle log whose
  every test task is `SKIPPED` or `NO-SOURCE` or a Maven `Tests are skipped.`
  counts as zero. The `failed: 0` zero form is read only as a summary-list item,
  so `Assertion failed: 0 == expected` stays a failure. The web and Node
  adapters fail on vitest's `Errors N error` and yarn's `error Command failed`.
- `test-strength.mjs` reports a test that goes red only by failing to compile or
  load without the change as `unjudged`, never red (adapter `loadError`
  markers); red plus unjudged is a pass in the ledger, unjudged alone
  not-applicable.
- `verify-citations.mjs` needs a quote of at least 8 non-space characters or
  the whole line, and records not-applicable when there is nothing to check.
- `scaffold-gate.mjs`: a manifest `vars` entry cannot replace the per-run
  `resultBundle`. The phase docs handle scaffold exit 3 as a halt and exit 2 as
  a call error.
- Doc counts: 10 agent personas and Codex TOML files, 13 rules, 61 Copilot
  sub-command skills, 158 external skills, the stack plugins' skill counts and
  versions, and the toolkit's tool count.
- Product voice in `stack-adapters.md`, `sync/SKILL.md`,
  `unattended-contract.md`, `phase-0-init.md`, `gen-facts.mjs` and the
  `waitingFor` schema description; removed-mode leftovers in `help/SKILL.md`,
  `payload-contracts.md` and the bug report template.
- **A launch request's input is a reference, not a prompt.** The run starts
  with `--permission-prompts none`, so `launch-request.mjs` accepts a Jira key,
  a GitHub issue URL, `repo#N`, `#N` or a Jira URL on the configured host, and
  on the desktop channel free text that the plan passes as one quoted
  argument. A newline, a control or format character, a leading `-`, a
  flag-like token, and any token naming a pipeline op or mode keyword (read
  from the command tree, the dispatcher's routing table, `phases.json`,
  `launch.json` and the workspace options) is refused on every channel; the
  phone route takes structured references only. `repo` must be a configured
  autopilot repo or one registered with the new
  `launch-request.mjs register-repo <path>` (refused under
  `MULTI_AGENT_UNATTENDED=1`); any other directory is `403 repo-not-allowed`.
- `fetch-confluence.sh` refuses a host that is not a bare `host[:port]` before
  the allowlist check and before any token is read (`host-malformed`, exit 6),
  so `--host attacker.example/.confluence.example.com` and the same with `#`,
  `?`, `@` or `\` no longer pass the suffix match; the check compares the string
  curl receives. `issue-fetcher.sh` holds a Jira URL to the same shape and to
  the configured Jira host (Atlassian Cloud only when none is configured)
  before it re-dispatches with that host, instead of sending the Jira token to
  whatever host the link named.
- `scrub` (the redacted contract views and every phone response) replaces
  `host.tld/path` links written without a scheme, absolute paths under
  `/Volumes`, `/private`, `/var`, `/opt` and `/tmp`, and any user's home
  directory; the redacted runs view scrubs phase names too.
- `/multi-agent:autopilot-off` is declared `destructive: true` with
  `confirm: required`, because `--now` abandons the item in flight, and it
  names that item and asks before stopping it.
- Docs: the phone API's question-id pattern and audit outcomes
  (`registry-unreadable`), the attended exit of `plan-critique-gate.mjs` and
  `spec-consistency-gate.mjs` (3 on a usage error) and
  `review-decision-gate.mjs` (2), the `scaffold-gate.mjs` row in the
  unattended contract, and the picker contract's path.
- `lint-skills` rejects an unquoted frontmatter value YAML would not parse (a
  `: ` inside it, or text after a flow collection), and an angle bracket in the
  description of a skill that ships into the stack plugins. `signal-community`
  had such a header; it now parses, and four external skill descriptions drop
  angle brackets.
- `swiftui-pro`, `swift-concurrency-pro`, `swiftdata-pro`, `swift-testing-pro`
  and `swiftui-expert-skill` carry license notices, which the stack-plugin
  builder ships with those skills.
- The evals of eleven renamed knowledge skills name the skill as it ships
  (`callkit-voip`, not `callkit`), so a skill-creator run matches them to the
  right skill.
- `build-stack-plugins.mjs` removes a plugin's `NOTICE-*.md` once its source
  file is deleted, and bumps the version. It only removed a notice whose source
  still existed but no longer named one of the plugin's skills.
- The autopilot publish step no longer takes the run's gate ledger as evidence.
  It re-runs the stack adapter's build and test commands in the worktree, with
  token-shaped variables, the ssh agent socket and askpass helpers removed and
  a bounded timeout (`verify.timeoutSec`), and judges the output with
  `evidence-gate.mjs --stack` and `test-summary.mjs`; a failure, zero tests, or a
  stack with no commands refuses (`publish/verify-*`) unless
  `verify.allowUnverifiedStack` is set. A ledger that names no test log is
  refused as `publish/test-log`.
- The publish step pushes from a fresh bare staging repository with no system
  config and a global config holding only the operator's `credential.*`
  settings, instead of from the worktree behind a key denylist. `url.*`,
  `http.proxy`, `http.curloptResolve`, `http.sslVerify`, `http.extraHeader`,
  `credential.*`, `core.sshCommand` and includes in the worktree's config no
  longer reach the push, the base fetch or the remote-branch check.
- The pushed branch must be the `branch` the run recorded in its state, and a
  branch already on the remote is refused unless this session pushed it and its
  tip is an ancestor of the run's HEAD (`publish/remote-branch`). A worktree
  with uncommitted changes to tracked files is refused, since the tree tested
  would not be the tree pushed.
- Agent-writable files are read as bounded regular files
  (`lib/regular-file.mjs`): the PR request (read once and validated in process
  with `validatePrRequest`), the run state, the test log (inside the worktree or
  the run's directory), run states and trackers in the runner, `_run-paths.mjs`
  and `gate-ledger.mjs`. A FIFO under any of those names blocked the tick.
- `gc-abandoned.sh` keeps a run parked with `verificationFailed` or `waitingFor`,
  which gate-ledger's park writes with `status: failed` and pass 2 removed as
  finished. The daily cleanup report also drops a worktree whose item's newest
  attempt is parked, since a parked run leaves the queue when its session ends.
- The tick's credential probe also checks the credential the item's repo
  publishes with (`gh auth status` for a GitHub host, `check --repo`), and
  `verification-failed` rows refused at `publish/remote`, `publish/push` or
  `publish/pr-create` count toward the circuit breaker; the runner now records
  the refusing gate as `publishGate`.
- Spend in the arming check and the daily digest counts each run once, at the
  largest cumulative `usd` any of its rows recorded, instead of adding every row
  (`_cost.mjs` `attemptSpend`).
- `maxAskRounds` counts research rounds over the whole attempt log rather than
  its last 50 rows.
- `runner.pid` is claimed by writing a temp file and hard-linking it into place,
  the runner's other files are replaced by temp file and rename, and an
  unparseable `runner.pid` younger than a minute is left for the tick writing
  it. A run retired as died is marked `abandoned` through the locked state
  writer with a `rev` bump; `status: abandoned` and `abandonedBy` are declared
  in `agent-state.schema.json`.
- The Phase 0 state template in `phase-0-init.md` is a valid
  `agent-state.schema.json` document (`schemaVersion`, an integer `shortId`,
  phase keys 0-5), and a unit test holds it there. The schema declares the keys
  the phases read (`inputType`, `offlineOnly`, `figmaUrl`, `instructionFiles`,
  `contextLinks`, `crashContext`, `fortifyFinding`, `graylogContext`), and
  `remoteType` accepts `generic-git` and `local`, which Phase 0 writes.
- `runs-index` groups a run with `waitingFor` set as `waiting` at any phase. A
  run paused on a question at phase 0 was grouped `question`, whose offered
  action is garbage-collecting an abandoned intake.
- `autopilot-status --subjects` no longer prints a `Full` pipeline-depth label
  the runner never writes, and the menu bar drops the matching field.
- The contract manifest's `launch-spec` surface carries `launch.json`'s version
  (1.1.0), and `phone-signed-request.schema.json` states the timestamp bounds
  the server applies: 60 seconds behind, 5 ahead.

## [20.2.1] - 2026-09-22

### Fixed

- **Usage reporting could attribute a run to a work identity.** On a machine with
  more than one identity, the reporting login came from `identities[0]` (or the
  active `gh` account inside a work repo), so a run could land on the panel under
  a corporate account rather than the personal login that owns the ingest token.
  A new `usageLog.reportAs` pins the reporting login and is resolved before
  `identities[0]`, `gh api user` and the OS user.

## [20.2.0] - 2026-09-21

### Added

- **Four new Android knowledge skills**, drawn generically from a mature Compose
  app: `android-mvi-viewmodel` (a reusable `BaseViewModel<State, Intent, Event>`
  seam), `android-datastore` (typed and encrypted Jetpack DataStore, the
  SharedPreferences replacement), `android-design-tokens-codegen` (single-source
  JSON to typed-Kotlin codegen with a `--check` CI freshness gate) and
  `android-build-quality-gates` (module and quality rules as build-failing Gradle
  tasks). They ship in `ai-android-toolkit`.

### Changed

- **Ten Android skills deepened** with current best-practice techniques across
  coroutines, Compose, Retrofit, Room, security, testing, Gradle, design tokens,
  architecture and navigation. Cross-cutting topics are owned by one skill and
  cross-linked from the others rather than duplicated.
- **Eleven knowledge skills brought under the 500-line rule** by moving long code
  examples into per-skill `references/` files (progressive disclosure); their
  line-grace entries are removed. `android_ui_verification` renamed to
  `android-ui-verification` for kebab-case parity.
- **Description-surface ceiling raised 88000 -> 90000** for the four new skills;
  their descriptions were trimmed toward the average first and the average held
  at 320 against its 420 ceiling.

## [20.1.0] - 2026-09-21

### Added

- **`/multi-agent:security-review` and a wired security audit.** A defensive,
  static security review: build a run-scoped threat model (attacker, trust
  boundaries, attack surface, severity calibration), find vulnerabilities joined
  to OWASP (Web/API Top 10 2021 and Mobile Top 10 2024) and a CWE, score them
  with CVSS 3.1, and emit reviewer-shaped findings carrying evidence,
  counterevidence, confidence and a before/after fix. No live target, no
  payloads. `security-finding.schema.json` makes a finding a reviewer-output
  finding plus a required `security` envelope, so the security-auditor's output
  now merges at Phase 3 Step 3.0 and a blocking finding blocks Phase 4 - the
  audit runs at Step 2.7 on the `security_path` signal, and the command is the
  standalone entry point. An always-on `ai-common-toolkit:security-review` skill
  carries the method.

### Fixed

- **Six-phase leftovers and stale shipped claims.** Renumbered the eight-phase
  literals that misfired under six phases (a Report-phase run reaped by
  gc-abandoned, an eight-name work-summary strip, stale personas and dispatch
  docs), derived the reaped-phase and work-summary labels from the contract, and
  removed dead config (`componentDevWorkflow`, `shortRunFromPhase`). Corrected
  claims the code does not back: a phantom phase count, a scan skill pointing at
  a workflow and a flag that do not exist, a SECURITY.md table five majors
  behind (now derived and gated), and CONTRIBUTING.md / ADR-0011 describing CI as
  dormant while its workflows run on every push.

## [20.0.0] - 2026-09-21

### Removed

- **The Phase 0 Step 7.5 depth question, and `state.onlyDevelop` with it.** A
  picker asked Full or Short before the run had read anything, and Short skipped
  the plan phase outright - a guess about work not yet examined, recommended
  from `taskType` alone. It was the same defect v19.0.0 removed from the
  analysis phase when Lite went: a fixed selector overriding a rule that reads
  evidence. There is one pipeline; every mode runs its whole phase set.
- **`/multi-agent:local`, `/multi-agent:local-autopilot` and the `--local`
  flag.** Where the branch lives is the Phase 0 Step 5b question and nothing
  else answers it. `autopilot` resolves it to a worktree without asking,
  because an unattended run commits and pushes from wherever it stands.
- **`/multi-agent:resume-local`**, folded into `/multi-agent:resume`. One
  command now lists both kinds of unfinished work - runs that stopped
  mid-phase, and the current branch when it carries work no run produced - and
  asks which to pick up. The tail it runs (Review → Commit → Report, no Plan
  and no Dev) is unchanged; only its entry point moved.

  Command inventory: 60 → 57.

### Fixed

- **Every phase reported its telemetry under the number it had before the
  six-phase merge.** 29 `log-metric.sh` and `phase-tracker.sh tokens` calls
  across the phase docs carried literal ids from the eight-phase contract, so
  Dev's spend landed on Review's tile, Review's on Commit's, and Commit's on a
  number no phase has. The accounting gate then refused to close those phases,
  because the phase whose completion it guarded had recorded nothing. Each doc
  now emits under its own id, and `smoke-phase-telemetry-ids.sh` derives that
  id from the file name rather than a list.
- **The accounting gate covered phases 1-4 by literal**, which under the new
  numbering left Report ungated and, before the renumbering above, gated
  Commit against a doc that recorded nowhere. `TRACKER_LLM_PHASES` now defaults
  to every phase that dispatches a model, and the gate checks each covered
  phase has a recording path.
- **`/multi-agent:doctor` was missing from the Turkish help catalog and
  `:analysis-jira` from the Turkish one too.** Half the audience could not see
  two commands that ship. `smoke-help-catalog.sh` now compares both language
  blocks against the command tree, and fails a row pointing at a command that
  does not ship.
- **`smoke-description-tr.sh` sampled a hardcoded command** that no longer
  exists, so its round-trip check passed on a missing file. The sample is
  derived from the tree.

### Added

- **`smoke-picker-callers.sh`** - `AskUserQuestion` refuses a call declaring
  fewer than two options and discards every question batched with it, so the
  rules that prevent it have to reach whoever writes a picker. Every spec that
  renders one now cites `picker-contract.md`, the gate holds that at 47
  callers, and a third check fails any spec that narrates the one-candidate
  skip the contract forbids. A fourth holds the Phase 0 chain to its step
  breadcrumb, so a six-question intake keeps saying which step it is on.
- **`smoke-phase-telemetry-ids.sh`** and **`smoke-help-catalog.sh`**, described
  under Fixed above.

### Changed

- **Phase 1 always runs, and what it produces scales with the evidence.** The
  Locked 2 omission rule already drops a section with nothing behind it, so a
  one-line chore yields a short document rather than a skipped phase. Phase 2
  steps 1, 2, 3, 5 and 6 read that document; a step whose section is absent
  records `not-applicable (no <section> in this document)` instead of aborting.
- **The Plan Approval Gate has one skip left: `autopilot`**, and it is a skip
  because there is nobody to ask, not because the run is a lighter kind of run.
- **Tracker registration is a single batch at Step -1.** Nothing is deferred:
  no answer later in the run can add or remove a phase, so `gen-mode-dispatch.mjs`
  loses its deferred branch and every generated tracker section shrinks to one
  registration loop.
- **`global.resumeLocal` → `global.resume`**, preferences schema 2.8.0. The
  `autoFix` value carries across; the key follows the command the tail now
  enters through.
- **`phases.json` modes drop their `local` flag.** No mode set it once the two
  local commands went, and a generator branch no caller can reach reads as a
  capability. The generated dispatch blocks are byte-identical, so the drift
  gate holds.
- Two gates now assert the ABSENCE: `smoke-pipeline-surface.sh` fails if Phase 0
  grows a depth step or writes a depth key, or if any of the four downstream
  readers reads one; `smoke-plan-approval-gate.sh` fails if the gate's scope
  clause widens past autopilot.

### Breaking

`state.onlyDevelop` is gone from a schema with `additionalProperties: false`, so
a state file written before v20 does not validate. The floor moves with
`dist-tags.required` rather than a migration: a run below it halts rather than
reading a record written under a contract that no longer exists.

Decision, alternatives and consequences: [ADR-0015](docs/adr/0015-one-pipeline-no-depth-answer.md) and [ADR-0016](docs/adr/0016-the-run-shape-is-asked-not-typed.md).

---

## [19.1.4] - 2026-09-21

### Added

- **`smoke-gui-json-contract.sh` - the JSON a non-model consumer decodes stays
  put.** `runs-index.mjs` and `update-check.sh` already had their output pinned;
  `doctor.mjs --json` and `autopilot-status.sh --json` did not, and a renamed key
  there breaks every consumer at once while the pipeline's own callers, which
  read the human output, notice nothing. The gate drives both scripts and reads
  their real stdout: `checks[]` with `{id, severity, step, problem, detail}` and
  unique ids, `exit` an integer, severities from the documented set, the queue
  triple as lists, the counters as numbers and `on` as a boolean. Adding a key
  is deliberately not a failure - a decoder ignores what it does not know.
- **`smoke-no-confessional-prose.sh`** - shipped comments and docs describe the
  code, not the project's own history. A reason a rule exists still ships; a
  past-defect narration belongs in this file. Four allow-list entries are
  anchored to the lines that carry them, so a stale exemption fails the gate.
- **A deterministic test for write-state's mid-write refusal.** The refusal
  needs another writer to take the lock between acquiring it and renaming, which
  on an idle machine is too narrow to hit and under load is a coin flip.
  `WRITE_STATE_TEST_DELAY_MS` opens that window on purpose; the gate then asserts
  both halves - exit 4, and nothing of that writer in the file.

### Fixed

- **The concurrent-writer gate counted an honest exit 4 as an unexpected code.**
  A writer whose lock is taken mid-write refuses and writes nothing, which is the
  same class of outcome as an exit-2 lock timeout. It is now counted with its
  invariant attached - a refusal that wrote nothing must leave nothing behind -
  and both refusal counts are reported so a rising one stays visible.
- **`bulk-read.sh` claimed routing could send it outside the Anthropic ladder.**
  It delegates to the `claude` CLI, which speaks that ladder and nothing else, so
  the dispatcher's refusal of an external rung is the correct behaviour and the
  comment was the wrong half. Both READMEs now state the limit: no call site
  sends a model request itself, and a delegated read must not put a file's full
  text outside the account that owns it.

### Changed

- **Both READMEs gained a "which model answers" section**, listing
  `/multi-agent:{route-on,route-off,route-status,model}` with the two lines that
  matter: `scope` has no `host-session` value and that is a schema gate, and an
  external rung is refused at dispatch.
- Confessional history removed from 57 shipped comments and doc paragraphs
  across 40 files; each reason the rule exists was kept and rewritten with the
  code as its subject.

---

## [19.1.3] - 2026-09-21

### Fixed

- **Routing no longer hands back a rung the caller cannot dispatch to.** The
  router permitted a non-Anthropic rung at `bulk-read`, and `bulk-read.sh`
  passes the rung straight to `claude -p --model <rung>` - a CLI that speaks the
  Anthropic ladder and nothing else. `research_ask` never consulted the router
  at all. So no call site could honour an external rung, and the permission was
  empty: a rule naming one produced a failed call rather than a cheaper one.

  `model-dispatch.sh` now refuses a non-Anthropic rung at every call site and
  falls to the NEXT rung the rule named, not to the caller's default - the user
  asked for a preference order, and only the part that cannot be honoured is
  dropped. `provider` in `cost-table.json` stays, because it is what makes the
  refusal checkable and is the seam a future call site would use.

  `smoke-model-dispatch.sh` asserts the reason rather than the rule:
  `bulk-read.sh` still dispatches through the Anthropic CLI. The day a call site
  grows its own provider path, that assertion is what says the refusal may be
  lifted.

---

## [19.1.2] - 2026-09-21

### Added

- **`doctor` reports the update policy.** `update-policy` prints the effective
  `updateCheck.enabled`, `.ttlHours` and `.autoUpdate`, and says which of them
  came from the schema rather than from the preferences file. The knob that
  decides whether a run updates itself before it starts was otherwise only
  discoverable by reading the schema. Reported, never written - a preferences
  file is the user's, and a diagnostic that edits one is not a diagnostic.

---

## [19.1.1] - 2026-09-21

### Changed

- **`required` floor raised to 19.1.0.** An install below it halts at Phase 0
  Step 0.6, runs the update flow and asks for the command to be re-issued. The
  reason is the write-state window closed in 19.1.0: a writer could report
  success while its update was overwritten, and a floor exists for exactly the
  case where an older install is not behind but wrong.
- `preferences-template.json` carries the `updateCheck` block explicitly
  (`enabled`, `ttlHours`, `autoUpdate`). The schema defaults were already what
  the phase doc describes and `smoke-update-check.sh` already pins them, but a
  fresh install wrote no block at all, so the knob that decides whether a run
  updates itself was not visible in the file a user opens to change it.

---

## [19.1.0] - 2026-09-20

Minor: the routing preference 19.0.0 shipped now reaches dispatch, and the
toolkit's three new tool families are reflected everywhere the pipeline counts
them.

### Added

- **`pipeline/lib/model-dispatch.sh` - routing that changes the answer.**
  19.0.0 shipped `prefs.global.modelRouting` with a schema, four commands and a
  status report, and nothing consulted it at dispatch time. A preference that is
  written, validated and displayed but never read is worse than a missing one:
  `route-status` said routing was on, the rules looked applied, and every call
  went where it always went. Two call sites now ask: the subagent dispatch
  contract in `skills/shared/core/multi-agent/SKILL.md`, and `bulk-read.sh`.

  Precedence is `PHASE_MODEL_OVERRIDE` > a matching rule > persona
  `preferredModel` > the global default. Routing sits below the per-dispatch
  override on purpose: Phase 3 makes Reviewer 3 sonnet so the three reviewers
  disagree, and a policy that could overrule that would turn a deliberate choice
  into a suggestion.

  The script never fails and never returns an empty rung - a router that can die
  turns every call site into a place the run can die, for a feature that ships
  disabled. Missing prefs, missing jq, unparseable JSON, an out-of-scope call
  site and an unknown rung all return the caller's default, exit 0.

  Two limits are enforced rather than documented. A rule preferring `fable`
  falls past it while `modelFallback.fableEnabled` is false, so
  `/multi-agent:model off` keeps meaning what it says. And a non-Anthropic rung
  is refused for a subagent, because subagent dispatch belongs to the host - the
  script says so on stderr instead of substituting an Anthropic rung and leaving
  the user believing a rule worked that never could.

- `cost-table.json` rungs declare a `provider`. Without it every rung looks
  alike and the subagent limit above cannot be checked at all.
- `smoke-model-dispatch.sh` (18 assertions). Half of them drive the router; the
  other half assert the call sites invoke it, because a correct router nothing
  calls is the same outage with better internals - which is exactly what 19.0.0
  shipped.
- **Six analysis Locked decisions gained a gate.** 13 (Section 4 scenarios are
  Gherkin), 14 (a goal owes a paired non-goal), 15 (a new non-SVG asset owes a
  rationale), 17 (Section 9 may not write "other errors" in place of a status
  code), 18 (a screenshot is embedded, not linked to a host that outlives
  nothing), and 21 (References is the last numbered section). Each checks a
  shape the template prescribes and keys off a structure only a real document
  carries, so a minimal fixture is skipped rather than failed. The Gate status
  count moves 11 -> 18, and the 18 that stay prose now say WHY in three groups:
  run behaviour no document records, evidence gathering that happened before
  rendering, and judgement about meaning.
- Nine anchors below Locked 25 in `smoke-locked-citations.sh`. The existing
  anchors all sat above 25, which is where the v19 removal re-flowed the
  numbering - and that is precisely why the older drift survived.

### Fixed

- **Nine drifted Locked citations in `analysis-template.md`.** It cited 13 for
  paired goals (14), 12 for Gherkin (13), 14 for the SVG default (15), 16 for
  exhaustive response variants (17), 21 for the concept layer (22), 28 for the
  SwiftUI preview (27), 18 for variant drilling (19), and "17 + 18" for the
  design reference (18 + 19). A tenth cited Locked 17 for analytics PII, which
  no decision covers at all - the rule stays, the number goes, because a number
  a reader cannot look up is worse than none. The new anchors hold all of them.
- **Locked 33 was enforced all along and documented as prose.**
  `build-references.mjs --check` runs its coverage gate and
  `smoke-build-references.sh` tests it, but neither named the decision in a
  failure message and the attribution check reads messages. Both name it now.
  The same trap caught the new Locked 21 check on its first run: the attribution
  scan reads an error message up to the first semicolon, and the message had one
  in the middle.
- **write-state verifies the write after the rename, not only before it.** No
  POSIX call renames a file conditionally on still holding a lock, so the
  `stillOurs` check is a time-of-check and the rename is the time-of-use. The
  writer now reads the file back and compares the `rev` on disk against the one
  it just wrote; a different rev means another writer's rename landed on top,
  and the writer exits 4 instead of 0. Reporting success while losing an update
  is the one outcome that script exists to prevent, and a window it could not
  see was the one place that could still happen. The clobber branch has no test:
  staging it from a shell needs a hook inside the writer, and a test-only hook
  in the file that guards state is the worse trade.

- **Stale phase numbers in eleven files.** `/multi-agent:review` recorded its
  standalone runs under phase id 4; a tracker example in `phase-3-review.md`
  drew `Phase 3  Dev`; `rules/figma-pipeline.md` carried the whole eight-phase
  access matrix, including two rows for phases that no longer exist. Historical
  files (CHANGELOG, ROADMAP entries, ADRs, migration headers) were left alone -
  they narrate what was true then - and so were the separate phase namespaces
  that `analysis/SKILL.md` and the Figma component flow use.

### Changed

- Toolkit counts follow `multi-agent-toolkit-mcp` 3.13.0: **115 tools in 13
  categories**, up from 99 in 10. The new families are a full-text context index
  (FTS5 + bm25 over offloaded payloads), provider-backed research, and video key
  frames. `docs/ecosystem.md` gained their rows, `docs/facts.json` regenerated,
  and the MCP-server context-cost note in `doctor` and the prefs schema now
  names the real number.
- `signal-community` records the second search path. The community-signal skill
  carried a parity exemption because web search is not guaranteed on every host;
  `research_search` runs over the MCP channel every host already speaks, so the
  exemption now names the host's own search specifically and points at the
  toolkit path as the preferred one.

---

## [19.0.0] - 2026-09-18

Major, because phase numbers are the contract and they moved. Eight phases
became six: two of the eight were doing the same work twice, and the count
itself was guarded by nothing.

Full reasoning, mapping and rejected alternatives:
[ADR-0014](./docs/adr/0014-six-phase-consolidation.md).

### Changed

- **Six phases.** `0 Init`, `1 Plan`, `2 Dev`, `3 Review`, `4 Commit`,
  `5 Report`. Analysis and Planning were already one decision - the depth
  picker skipped them together and `onlyDevelop` described them as one unit -
  and they are one phase now. Review Stage 1 became Dev's exit gate, which is
  what removes the second build: Dev built and tee'd a log, then Review built
  again, and nothing consumed the difference. The user test moved inside
  Review, keeping its waiting state.
- **`pipeline/schemas/phases.json` is the phase contract.** The list existed as
  eight independent copies, none derived from another. The generator, the run
  index, the metrics logger and the token budget read it now, and comparison
  thresholds that used to be literals (`phase >= 6` for "waiting on you", the
  Short-run boundary) are named fields in it.
- **`smoke-phase-contract.sh`** is the gate that never existed. The phase count
  appeared in 91 places across 40 files with nothing holding any of them; the
  command count, the jq count and the persona count all had gates. It derives
  the count from the contract and checks the generator's output, the token
  budget, the state-schema bounds, every shipped surface that states a count,
  the progress fractions in sample output and the named thresholds. Verified
  both ways: a deliberately wrong contract fails it.
- **`smoke-no-mcp-in-dev-phases.sh` keeps `phase >= 2`, and the gate now
  asserts that it is unchanged.** Figma MCP was reachable only in Analysis (1);
  Analysis is inside Plan (1). The permitted set `{0, 1}` is identical either
  way, so the threshold surviving a renumbering is a result of the mapping
  rather than an oversight - and an edit that "corrects" it would widen access.
- **Analysis has one pipeline.** Lite mode is removed. It chose sections from a
  fixed list scored on three signals while Locked 2 chooses them from evidence,
  and the two disagreed in both directions: a small feature with rich business
  rules lost Section 15 because it was not on the list, and a feature with no
  API contract kept Section 9 because it was. 37 Locked decisions became 36.
- **Locked 2's numbering clause was wrong and is corrected.** It said numbering
  re-flows `1..N`; Locked 30 threads ids across the document BY NUMBER
  (`Section 15.1`, `Section 4.4`), so a re-flowed document sends every one of
  those references to the wrong section. No emitted document ever re-flowed.
  A rendered section keeps its canonical number, gaps included, and the
  validator now checks what actually holds: numbers inside the template range,
  ascending, no repeats.

### Added

- **`/multi-agent:model`** turns the top rung on or off AND realigns
  `costBudget.pricingModel` in the same write. The switch existed; the command
  did not, and the pricing field it must move with was left to the user to
  remember. It reports what the switch means on the host it runs on: a live
  switch on Claude Code, a status report on Copilot CLI and Codex CLI.
- **`/multi-agent:route-on` · `:route-off` · `:route-status`** - policy-driven
  model routing, shipping disabled. `scope` has no `host-session` member and
  the schema enforces that: rewriting the host's base URL would route the
  user's whole session, including work unrelated to this pipeline. `route-off`
  keeps the rules, so `route-on` does not re-ask. `route-status` prints the
  honest limit every time - a subagent cannot be sent to a non-Anthropic model,
  because subagent dispatch belongs to the host.
- **`docs/facts.json`**, generated by `pipeline/scripts/gen-facts.mjs`: the
  phase, command, skill and tool counts, derived rather than written. The
  website read its own copies and said "8 faz + 51 komut" while the repo had
  six phases and sixty commands. The tool count is asked of the toolkit's own
  `tools/list` rather than counted out of its source, because three tool
  families live in modules the main file only spreads in - a regex over
  `index.js` returns 2 when the answer is 99.
- **`prefs.schema.json` moves to 2.7.0, and the shipped template moves with
  it.** The template had been left at 2.6.0, which
  `smoke-schema-validation.sh` catches by design: a fresh install that starts
  behind the migration target makes an old entry in the migrator's accepted set
  load-bearing purely to rescue the template. 2.7.0 removes the Lite value from
  `analysisPhase.mode` and declares `global.modelRouting`, which the template
  now ships explicitly disabled rather than leaving absent - a default that is
  written down is one a reader can find.
- **The description-surface ceiling moves 86,500 -> 88,000**, and this is where
  that has to be said. Four commands with a shared/core twin each is eight
  descriptions; the average held at 316 against its own 420 ceiling, which is
  the condition the gate's convention names for a raise rather than a trim -
  the surface grew because there are more commands, not wordier ones. The
  fixed per-run load was a different answer: it went 122 bytes over its 60,000
  ceiling and the bytes were reclaimed from prose rather than the ceiling
  raised, which is what that gate's message asks for in as many words.
- **`smoke-six-phase-run.sh`** drives phase-tracker.sh through a synthetic run
  and asserts what a live run would show: six tiles named from the contract, no
  tile above 5, the `Phase 2 Dev` line shape, a sub-step that registers under
  its parent phase rather than as a seventh tile, a token count and a start
  timestamp for the cost and elapsed suffixes, and a state file that validates
  at 0..5 while `currentPhase: 6` is rejected. It says plainly what it does not
  cover: that Review does not build a second time is an assertion about a model
  following a document, and only a live run's `.build.log` mtime can show it.
  Verified both ways - a seventh phase in the contract fails it.
- **A facts gate on the website** (`tests/facts-consistency.test.ts`). It does
  not check that the copied `facts.json` is fresh - CI has no pipeline
  checkout, that is `sync-facts.mjs --check` on a machine that does. It checks
  what actually failed: that no component states a phase count or a phase
  number that disagrees with the contract. Copy may say "6 phases"; it may not
  say a different number. Verified both ways.
- **`metrics.jsonl` carries `phaseSchema`.** The file is append-only across a
  renumbering, so `phase: 3` means Dev in a pre-v19 row and Review in a post-v19
  one. Lines without the field are generation 1. `pipeline/lib/phase-schema.mjs`
  resolves both, and the two aggregators that compared phase numbers to literals
  go through it.

### Migration

- **`state-2.1.0-to-2.2.0.mjs`** maps `0→0, 1→1, 2→1, 3→2, 4→3, 5→3, 6→4, 7→5`.
  Two sources can collide onto one `phases{}` key: furthest-along status wins,
  `retryCount` takes the MAX (the schema caps it at 3, so a sum would emit an
  invalid state), `files[]` union, earliest start, latest finish. It also
  repairs four defects the live corpus already carried - `completed` →
  `complete`, `awaiting-user-test-main-checkout` → `awaiting_input`, and
  explicit defaults for a missing `currentPhase` or `status`. Measured on the
  62 real state files: **52 valid before, 62 after.**
- **`prefs-2.6.0-to-2.7.0.mjs`** rewrites `analysisPhase.mode` from `auto` or
  `lite` to `full`. The key is kept rather than deleted, so a file that set it
  stays valid.

### Fixed

- `migrate-prefs.mjs` read its target version from a literal that had drifted
  behind the schema. It reads the schema now, as do the two gates that were
  checking against their own copies of it.
- `phases.md` carried a second token-budget table whose total said 17,000 while
  the enforced file said 63,150 - wrong by a factor of four, for most of the
  project's life, guarded by nothing. The numbers are gone; the enforced source
  is named instead.
- `validate-analysis-doc.mjs` gated one half of Locked 2 and not the other. The
  one emitted document available rendered `1..10, 12, 16, 20, 21` and nothing
  looked.
- Eight pieces of dead code on the website, found by the linter rather than by
  grep - which had already been wrong three times about this repo.
- **The phase bound is generation-aware, and it had to be.** Tightening
  `currentPhase` to 0..5 marked every pre-v19 run log invalid - a run that
  finished at phase 7 in October was correct when it was written, and a
  validator that calls correct history invalid is one people learn to ignore.
  A file stamped 2.2.0 or later is bounded 0..5; anything older, including the
  files that predate stamping entirely, is bounded 0..7 and says so in the
  error text. The same decision `metrics.jsonl` got: label the generation, do
  not rewrite history. The tightening still bites where it matters - phase 7 on
  a file claiming 2.2.0 is exactly what a skipped migration produces, and that
  is rejected. Measured on the live corpus: 2 valid of 16 before, 11 of 16
  after, and the 5 that remain were already invalid for reasons the plan had
  recorded (no `currentPhase` at all, non-object phase values).
- `validate-state.mjs` did not check `retryCount`. The schema caps it at 3 and
  four documents call 3 a hard kill, so `retryCount: 4` was a state that every
  document forbade and every validator accepted. The bound is checked now. The
  limit is named rather than overstated: this closes the validation boundary,
  it does not stop the loop - that stays prose.
- **`phase-banner.sh` still had eight labels**, and it is the banner every
  phase prints. Its table is bare words - `en:4) echo "Review"` - so all three
  sweeps walked past it: they looked for `Phase 4 Review`, `4:Review` and
  `Phase 4: Review`, and none of those spellings appear in it. It is now six
  labels in both languages, and `smoke-phase-contract.sh` check 14 compares
  every one against the contract and rejects a label above the last id, so the
  one copy of the phase list that nothing derives is at least checked.
- A third spelling of a phase reference, `Phase N: Name`, which the first sweep
  could not see: its rules matched `Phase 3 Dev` and the tracker tuple `3:Dev`,
  and the colon form sits between them. It had left the canonical label table in
  `skills/shared/core/multi-agent/SKILL.md` reading eight rows with six-phase
  labels, and `/multi-agent:local` listing both a Phase 4 Review and a Phase 4
  Commit. Fifteen files, corrected by name match rather than by number.
- The golden-task fixtures are named for the phases that produce them, so they
  moved too: `phase-2-plan.json` -> `phase-1-plan.json`, `phase-4-review.json`
  -> `phase-3-review.json`, `phase-4-triage.json` -> `phase-3-triage.json`.
- A doc sweep of 166 files in the repo and 68 in the source tree, none of which
  the eight-phase plan had listed. Release history is deliberately excluded:
  `CHANGELOG`, the `ROADMAP` "Previous Release" sections and
  `docs/token-budget-history.md` keep the numbers their versions shipped with,
  and four ADRs carry a pointer to ADR-0014 instead of being rewritten, because
  an ADR records what was decided rather than what is true today.

### Removed

- **The engagement page** (`src/app/_nisan`, its API routes and its admin
  panel) on the website. The 16 RSVP rows were exported before anything was
  deleted and **the `rsvp_entries` table is kept** - removing code does not
  remove data, and dropping the table is a separate decision.

---

## [18.0.0] - 2026-09-17

Major, for two behaviour changes rather than a renamed command: a run's state now
has ONE canonical directory, and four publish paths refuse to send when the leak
gate cannot be loaded.

### Added

- **`multi-agent-pipeline verify`** answers "is this install the thing that was
  published". The install is a copy, and from the moment `install.js` writes it
  the two halves drift independently: an edit in the installed tree is behaviour
  with no source, and a file the installer skipped is a script the docs describe
  and nobody has. `manifest.json` (SHA-256 per shipped file, version, source
  commit) is built at pack time by `prepack` and never committed - a manifest in
  git is stale one commit after it is written, and a stale manifest reports
  honest edits as tampering.

  `commands/` is compared by presence, not bytes, because `install.js` rewrites
  each description into the user's `outputLanguage`: measured here, all 57
  command files differ and 56 of them differ by nothing else. Dev-only files are
  excluded, or 252 smokes and linters read as "the installer skipped this".

  What a green result proves is stated in the output's own reference: the bytes
  match what the publisher recorded. Not who published them - the manifest, the
  signature and the verifier travel in the same tarball, so provenance belongs
  to npm's integrity field. Signing is optional, and an unverifiable signature
  says so rather than claiming valid.

- **`cost-analyze.mjs`** - projection, anomaly, burn and diff. `cost-budget-check`
  watches one run against one ceiling, which is blind to both ways a budget
  actually empties: a drift no single run trips, and one session that burns a
  week in an hour while every run stays under its cap.

  The series is not where the schema says it is. `tracker-state.json` carries
  per-phase token fields that are written only when a phase reports them; of 98
  trackers on a working machine, zero carry any. The dense series is the host's
  own transcripts, so that is what this reads - and the consequences are printed
  rather than buried: it covers everything Claude Code did on the machine, the
  figures are LIST-price estimates rather than a bill, and a host with no
  transcripts reports UNMEASURED instead of zero.

  Anomalies use the median and the MAD, because the expensive session the check
  exists to find is the observation that inflates a mean and a standard
  deviation - it hides inside the statistic measured against it.

- **`install --unattended`** writes a documented permission profile, and prints
  it with a reason per line before writing. autopilot passes
  `--permission-prompts none`, which stops Claude Code asking and grants
  nothing; on a fresh machine the run stops at the first tool call with no
  prompt for anyone to answer, which is indistinguishable from an empty queue. A
  default install still writes no permissions at all.

- **`doctor --profile=server`** adds four checks that only matter when nobody is
  at the keyboard: the unattended contract, the permission posture, the
  scheduler, and the keychain. The default run is unchanged - same 17 checks,
  same verdict - because a laptop told it fails a server check learns to ignore
  doctor.

- **`docs/server-readiness.md`** sets up nothing and says so first. It covers the
  permission posture, why the scheduler is a LaunchAgent rather than a
  LaunchDaemon (the keychain is locked until login, and that failure arrives
  much later wearing a 401), and which credential each phase needs.

- **`scorecard-snapshot.mjs --diff`** keeps what the scorecard said and reports
  what moved. Deliberately no 0-100 score: the scorecard reports twelve measured
  metrics AND four it refuses to measure, and one figure would hide both halves.

### Changed

- **A run's state has one canonical directory.** `{project}/{taskId}/` is
  canonical and the flat `{taskId}/` is read for compatibility; every reader
  resolves through `lib/run-paths.sh` / `scripts/_run-paths.mjs`, so a run that
  exists in both layouts is counted once.

- **Five publish paths refuse rather than send when the leak gate is missing.**
  Jira comments and descriptions, PR review bodies and inline comments, the
  GitHub issue progress comment, the issue-CREATION path, and Confluence page
  create/update all run their outbound text through `lib/outbound-gate.mjs`
  first. A missing gate file refuses; opening the gate because the gate is not
  there would be the one failure mode that matters. The count is part of the
  gate: a sixth publisher cannot ship without the smoke's list naming it.

- **`set -e` on the four destructive scripts, and deliberately not on the two
  collectors.** `gc-abandoned`, `gc-worktrees`, `purge` and `worktree-finalize`
  delete things, so the command after an unnoticed failure is the dangerous one.
  `pre-push-check` runs the gates and counts failures, and `pre-commit-check` is
  a hook built out of greps that are supposed to find nothing - under `-e` the
  first clean detector would end the scan and report "no secrets" for a file it
  never finished reading.

### Fixed

- **A script that dies now prints one line instead of a stack dump, and releases
  what it held.** `lib/fatal.mjs` catches the sync throw, the rejection nobody
  awaited and the throw from inside a callback; the last two are invisible to a
  try/catch around `main()`. `write-state` releases its advisory lock on the way
  out, so the next writer never has to judge a lock on age alone. EPIPE is
  deliberately not fatal: `runs-index.mjs --json | head` is the ordinary way to
  read a large output.

- **Build junk no longer reaches an install.** A CI runner shipped 147 files
  where every developer tree shipped 146, for four rounds, and the extra was
  `__pycache__/*.pyc` - untracked, so no diff of the source could show it, and
  copied verbatim into all three install trees. `copyDir` now filters
  `__pycache__`, `*.pyc` and `.DS_Store` on every path.

- **`jq` is required rather than optional on the nine paths that publish or
  decide.** A missing `jq` renders as empty DATA and the work carries on with
  it; those nine now exit 3.

- **The autopilot runner survives a month unwatched.** `runner.log` is truncated
  in place past 5MB (renaming it leaves launchd's `O_APPEND` descriptor writing
  into the renamed file while the new one stays empty - the rotation that looks
  right and silently stops logging), three consecutive empty attempts stop new
  work being taken, and one JSON line per tick goes to `ticks.jsonl`.

- **`github-ssh-setup.sh` no longer waits forever on a headless machine**, and
  `write-state.mjs` gained `--if-rev=<n>` compare-and-swap so a second writer
  cannot silently overwrite the first.

- **A direct-run guard that compared `import.meta.url` to `file://${argv[1]}`**
  is false whenever argv[1] is not already resolved - a `/var` path that
  resolves to `/private/var`, or the symlink `install --link` writes. The script
  then does nothing at all, silently.

---

## [17.6.0] - 2026-09-15

### Added

- **The maturity check now has an effect (`prefs.global.maturityFollowup`).** It
  has always produced a machine-readable gap list - stable codes in `blockers[]`
  and `warnings[]` - and then thrown most of it away. A blocker halted the run,
  an autopilot queue moved to the next item, and the item stayed exactly as
  immature as it was found. Nobody was told, so nothing changed, so the next
  scan halted on the same item for the same reason. The check was doing its job
  and producing no effect.

  **Interactive runs ask at the step instead of ending at it**: open the item and
  fix it, continue without it (recording in `state.maturity.accepted[]` _which_
  gap was waved through, which is what separates an informed continue from a
  skipped check), or abort. `askInteractively: false` restores the old halt.

  **Autopilot can ask on the item itself**, behind
  `autopilotCommentsOnIssue` (**off by default**, because it is an outward-facing
  write). One comment naming what is missing, then a halt on the circuit breaker
  with `state.waitingFor = "maturity"`. A question, never a state change: no
  transition, no resolution, no assignee, no label, no close. `Ref:` never
  `Closes:`. Copy in `outputLanguage`, and the gap wording is the fetcher's own
  `maturity.summary` verbatim rather than a second copy of that table.

  **"Have we already asked" is read off the ITEM, not off our state file.** An
  autopilot scan is a new run with a fresh `agent-state.json`, so a state-only
  record would make every scan a first ask - the wall of identical bot comments
  this feature exists to prevent. The comment therefore carries its own gap set
  on a last line (`multi-agent gaps: code,code`) and the next pass takes the
  newest comment of ours. Neither the marker nor that line uses square brackets:
  `[text]` is a link in Jira wiki markup, and Jira is where this comment is most
  likely to land. The contract is carried on all three hosts - the Claude command
  tree, and the `shared/core` skills that Copilot dispatches and Codex reads.

  **The rule that shapes the rest: an edit is a reason to look again, never proof
  the gap closed.** A reply reading "will do later" moves the timestamp and fixes
  nothing, so a changed item is re-fetched and re-scored and the _check_ decides.
  Only a genuinely DIFFERENT gap set earns a second comment - otherwise an
  unattended queue turns an item into a wall of identical bot text. "Cannot tell
  whether it moved" resolves to re-check, never to wait, because folding unknown
  into "nothing changed" parks a run forever on a tracker that omits the field.

  Warnings still auto-continue under autopilot. Converting them to halts in a
  release would stall queues overnight on items that ran fine yesterday;
  `commentOnWarnings` raises them opt-in, and the gaps are recorded either way.

> Four of the additions below are written against this pipeline's own
> constraints: zero runtime dependencies, macOS only, and stdout is the MCP
> server's JSON-RPC channel.

- **The node stacks no longer type `npm` (`pipeline/scripts/package-manager.mjs`).**
  Phase 3's web test arm and its build step were hardcoded, so a repo on pnpm,
  yarn or bun failed in Phase 3 - with a worktree and a branch already created -
  or, worse, npm resolved against a lock file it does not own and the run
  continued on a tree the repo's own tooling would never have produced. The
  manager is now resolved from the repo: `$MA_PACKAGE_MANAGER`, then
  `package.json#packageManager`, then a lock file, then npm reported AS a
  default rather than as evidence. Node core only, per ADR-0004. Two lock files
  means a migration left one behind: the newest wins and both are named. Exit 3
  means the repo declares no such script, which is the `--if-present` case
  answered by an exit code instead of a flag whose support differs per manager.
  The resolved name goes through the phase's `eval`, so it is held to the shape
  a binary actually has and the gate proves it by eval'ing the produced line
  with every manager stubbed out. iOS and Android are untouched.
  `refs/features/package-manager.md`.

- **A `PreCompact` hook, so a compaction does not eat what a phase learned.**
  `SessionEnd` capture exists because every durable write used to live in Phase
  7, the phase a run is least likely to reach. An auto-compaction is that same
  failure one level down: it summarizes the conversation while a long Phase 3 or
  Phase 4 is still running, and anything not yet flushed is gone before
  `SessionEnd` ever fires. The template now wires `capture-flush.sh` there,
  deliberately WITHOUT `--if-stale` - that test exists so a session exit does not
  re-flush a finished run, and at a compaction what matters is whether anything
  is unflushed, not whether the run finished. Both store writes are idempotent.
  `doctor`'s `hook-coverage` check reports it as missing until the block is
  merged, at no extra cost, because that check diffs the template generically.

- **`doctor` now counts the MCP servers this host has registered (`mcp-surface`).**
  `mcp-registration` answers "is ours registered". Nobody was answering the
  question the user never gets asked: every registered server sends its tool
  list on every turn, they are added one at a time, and our own toolkit is 99
  tools by itself. The check only ever REPORTS - INFO above
  `prefs.global.mcpSurface.infoAbove` (default 8), `--explain` lists the names,
  and it never blocks, never warns and never disables anything, because how many
  servers are worth their context is the user's call and not a health failure.
  The threshold is judgement, which is why it is a pref instead of a constant
  nobody can see.

- **`GRAPH_REPORT.md` gained "Symbols nothing else references".** The report
  found unconnected FILES; a file imported for one symbol while three of its
  other exports were dead has edges, so those exports were invisible. The join
  is a query over data the graph already held. Candidates, never verdicts, and
  it gates nothing: ADR-0010 records that the extractor is regex over
  comment-stripped source, not a parser, so dynamic dispatch, reflection,
  string-keyed lookup and a public API consumed outside the repo all look like
  dead code from here. Four classes are excluded and COUNTED rather than listed,
  because they could not carry a reference edge however heavily used they are: a
  kind outside the stack's `referenceKinds`, a name declared in more than one
  place, a nested declaration, and anything in a test file. Symbols referenced
  only from tests are listed separately - not dead code, but code whose only
  consumer is its own test.

### Fixed

- **`/multi-agent:resume` started from `currentPhase + 1` unconditionally**, so a
  run that stopped mid-phase to ask a human resumed past the question. It reads
  `state.waitingFor` first now. This was already broken for Phase 7's channels
  pause, which documented itself as resumable through that field while
  `resume/SKILL.md` never mentioned it - one fix, two callers.

- **Only one machine in the world was reporting usage, and nothing was red.**
  Operational reporting needs `usageLog.enabled` AND a token that resolves, and
  both were arranged in exactly one place: `/multi-agent:update`, as forty lines
  of shell embedded in the skill. A user who installed the package, ran
  `/multi-agent:setup` (which said registration happens in update) and worked for
  weeks never registered, never reported, and an empty panel reads exactly like
  nobody using the pipeline. Copilot and Codex were worse off still: their own
  `setup` and `update` skills never mentioned registration at all.

  It is now one script (`pipeline/scripts/usage-register.mjs`) called from the
  five surfaces where a machine can first become real - setup and update on
  Claude Code, the same two on the cross-CLI surface, and the Phase 0 exit gate
  as the backstop for a machine that reached neither. Same fence as before, now
  enforced in one place: the token is REQUESTED and write-only, it lands in the
  credential store and never in a file, `usageLog.optOut: true` blocks everything
  permanently and is checked before the network call, and an unreachable endpoint
  leaves reporting off with one line and exit 0 - a caller is never failed over
  bookkeeping. `--json` distinguishes "you opted out" from "we could not reach
  it", because those are different facts about the same empty panel. A machine
  that has a token but `enabled: false` (a run interrupted between the two
  writes) is repaired rather than left silent. `refs/features/usage-reporting.md`,
  `smoke-usage-register.sh`.

- **`state.maturity` was written by every issue-shaped run and forbidden by the
  schema.** `agent-state.schema.json` has `additionalProperties: false`, and
  `maturity` was not declared - it survived only on the grandfather list of
  `smoke-state-keys-declared.sh`. Declared now, along with `maturityFollowup`
  and `waitingFor`, whose two values (`maturity`, `user-channels-choice`) are the
  two places a run pauses INSIDE a phase rather than between two. The grandfather
  list is two entries shorter, and it only ever shrinks.

---

## [17.5.1] - 2026-09-15

### Documentation

17.5.0 shipped base-branch evidence and documented it in the feature ref and the
CHANGELOG only. `README.md`, `README.tr.md` and `docs/features.md` all ship in
the npm tarball, and `docs/features.md` calls itself the complete catalog - so
the published package described less than it contained, and the npm page showed
a release missing one of its two features.

- Both READMEs gain a "Base branch: evidence, then a question" section: what is
  collected, that no field id or branch prefix is hardcoded, that an uncut
  release is a note rather than an option, that a failed fetch degrades loudly,
  and the pref that turns it off.
- `docs/features.md` gains the full section, and its modifier-flag table stops
  presenting `--local` as the only route to local mode - the workspace is a
  question at Step 5b now, which 17.5.0 changed without updating that table.
- `docs/features.md` said the toolkit has "80+ tools". It has 99.

### Website

- The base-branch card, and three counts corrected against the filesystem:
  `ai-ios-toolkit` 147 -> 134 skills (its own breakdown summed to 251 against a
  stated total of 238), and the Remote Control entry's 35 -> 56 commands and
  263 -> 212 skills.

---

## [17.5.0] - 2026-09-15

Four defects from one live run of `/multi-agent`, all in Phase 0, all visible in
the same screenshot. The transcript was read before anything was changed, so each
of these names the exact call that produced it.

### Fixed

- **A one-option `AskUserQuestion` is refused by the host, and it takes every
  question batched with it down unasked.** The run batched four questions -
  maturity, base branch, depth, workspace. The remote had one PR-targetable
  branch, so the base-branch question carried one option, and Claude Code's
  schema requires two: `InputValidationError ... questions[1].options too_small`,
  rendered in the terminal as `Invalid tool parameters`. All four were discarded.
  The run then did what the host's own error text says to do - stated the single
  path and continued - and printed "base branch: only candidate, continuing with
  it". That line is why the base branch looked like it was never asked about: it
  was asked, and the schema refused it.
  `picker-contract.md` gains "Two options or it is not a question", which is the
  missing half of "A single candidate is still a question" it has carried since
  the beginning: a one-row filter is asked WITH a real escape as its second
  option (unfiltered branch list, drop the filter, abort), never as a one-row
  picker. A filler option is called out as worse than not asking.
- **The phase widget committed to eight phases before the user picked a depth.**
  The tracker booted at Step -1 and registered all eight, so "8 tasks (0 done, 1
  in progress, 7 open)" with Analysis and Planning tiles sat on screen beside the
  question asking whether to run Analysis and Planning. Registration now splits:
  Phase 0 at Step -1, so the run is never silent while Phase 0 works, and the
  rest at Step 7.5 the moment depth names them. A Short run draws no Analysis
  tile at all, rather than drawing one and flipping it to `[SKIPPED]`.
  `phase-tracker.sh tiles --new` narrows the second batch to phases that carry no
  `tasklist_id`, so the Phase 0 tile is never created twice. `tracker-contract.md`
  "Late skip" is replaced by "Deferred registration".
- **The dev-context picker was unreachable from Phase 0.** `commands/multi-agent/SKILL.md`
  has routed every input type through `_dev-context.md` since it existed, and
  `phase-0-init.md` - the document a run actually follows step by step - never
  mentioned it. The reported run left no `siblings` in `agent-state.json`, so
  Phase 4's platform-parity cross-check had nothing to read and could not tell an
  empty answer from no answer. Phase 0 gains **Step 2b**, between project
  selection and the base branch, which is the order `picker-contract.md` already
  required (a base branch is a property of a repo set).

### Added

- **Where the branch lives is a question now, not a flag (Phase 0 Step 5b).** It
  was decided by `--local` and by a command name, never by asking. A run
  improvised "Worktree / Lokal" once, a user took it for a shipped picker, and
  concluded `/multi-agent:local` was redundant - while it was the only way to
  reach local mode at all. No spec contained that question. It runs after Step 4
  names the branch and before Step 6b creates the workspace and Step 7.5
  registers the tiles for the resulting set. Autopilot **resolves** it to a
  worktree rather than skipping it: an unattended run commits and pushes from
  wherever it stands, and doing that in the user's own checkout is what
  worktrees exist to prevent. `:local-autopilot` is the explicit opt-out.
  `workspaceSource` is the record - `localMode: false` alone is both "the user
  chose a worktree" and "nothing asked".

- **Base-branch evidence (Phase 0 Step 3), behind
  `prefs.global.baseBranchEvidence.enabled`.** Step 3 asked one question with a
  list it could not vouch for: `git fetch origin` ran, its exit code was
  discarded, and `git branch -r` printed the remote-tracking cache either way -
  so on a restricted network a weeks-old local list was presented as the
  remote's answer with nothing saying so. And the answer was usually derivable:
  an issue carrying a target version, or linking a separate issue that
  represents the release, already names the branch on a repo whose release
  branches encode the version.

  `base-branch-candidates.mjs` collects candidates **with the evidence behind
  each one** and ranks them; a human still chooses, and the evidence is the
  picker row's description. No field id is hardcoded - any Jira field whose
  schema resolves to `version` is read, whatever the board calls it - and no
  branch prefix is tabled: the release-branch template is inferred from the refs
  that exist, so one repo yields `<prefix>/develop_<version>` and another
  `release-<version>` out of the same code. A predicted branch is a **note**,
  never an option: "that version has no branch on the remote yet" is a real
  answer, and an option the user picks has to be checkoutable.

  The rule-5 branch filter gained a version alternative in the same change. It
  had narrowed the list with `grep -E '(develop|release|main|master)'`, which is
  the prefix table this feature exists not to have - and worse, because it
  discards: a repo whose release branches read `stabilise-2.7` matched none of
  the four words, so none of its branches reached the picker and the convention
  was unlearnable. A word list that ranks is fine; one that filters is not.

  Autopilot resolves `remembered` → `derived` → `default` and records which
  fired. With `autopilotAsksOnIssue` (**off by default**) it may post **one**
  comment on the Jira or GitHub issue asking which branch to develop from, then
  halt on circuit-breaker trigger 6 and wait for `resume`. A question, never a
  state change: no transition, no resolution, no assignee, no close, `Ref:` and
  never `Closes:`, copy in `outputLanguage`. An autopilot that posts a question
  and then answers it itself has not asked anything.

- `phase0-exit-gate.mjs` asserts two more fields, each the durable evidence a
  step actually ran:
  - `baseBranchSource` must be recorded, and an interactive run must record
    `asked` or `input`. `remembered` and `default` are autopilot resolutions; an
    interactive run that reaches for them skipped its picker. `baseBranch` alone
    cannot make this assertion - a branch announced in prose and a branch the
    user chose leave the same value behind, which is exactly what happened.
  - `siblings` must be an array, `[]` included. The empty array is Step 2b's
    record that it ran; absent means the picker never ran and a multi-repo task
    silently became a single-repo one.
- `phase-tracker.sh tiles --new`: emit `TaskCreate` only for registered phases
  that have no tile yet. Covered by `smoke-phase-tracker.sh` section 25,
  including the negative control that the unnarrowed call still lists everything.
- Both READMEs document what Short actually is next to the modes table: which
  phases it drops, what it does not drop (review, gates, tests), and when it is
  the wrong answer. The table row naming it has existed since v16.0.0; nothing
  explained it.

### Changed

- `gen-mode-dispatch.mjs` learns the deferred shape for the two modes that ask
  the depth question (`full`, `local`, `full-local`); the other modes still
  register their whole set at Step -1. `local/SKILL.md` regenerated.
- `smoke-pipeline-surface.sh` replaces the "Late skip" check with three: the
  Step -1 block registers no phase set, it does register Phase 0, and Step 7.5
  calls `tiles --new`.
- `smoke-mode-dispatch-drift.sh` accepts both phase-declaration spellings
  (`"<id>:<name>"` in a loop, or `add <id> "<name>"` on its own line).
- Token budget: `phase-0-init` max 13100 -> 13150 after 492 tokens of compression
  first, per `docs/token-budget-history.md`. The aggregate needed no bump.

### Investigated, not changed

- **`/multi-agent:local` is not redundant.** The picker does not ask
  local-vs-worktree: the "Workspace: worktree or --local" question in the
  reported run was improvised by the model, and no spec, ref or command file
  contains it. `:local` is a real mode with its own phase set (no Phase 5, which
  needs a worktree to check the change out from) and its own tracker
  registration, and `:resume-local` depends on the same `localMode` state. Making
  the improvised question official is a reasonable future change; removing the
  command on the strength of a question nothing specifies is not.

---

## [17.4.0] - 2026-09-15

Phase 4 now answers two questions it could not answer before: does the evidence a
review cites actually exist, and which files did the reviewer read.

### Added

- `verify-citations.mjs`: resolves every `file:line` a run claims against git
  rather than against the writer. Reads reviewer findings, triage
  accepted/deferred/rejected, analysis `repoEvidence` buckets and markdown prose,
  checks the path with `git cat-file` and the line against the blob's real
  length. Exit 0/1/2/64.
  - Phase 4 runs it with `--worktree`: a fix made during a review round is
    uncommitted, so pinning to HEAD would call every citation to it invented.
  - The analysis pre-dispatch gate runs it pinned to a commit, because a
    document cites repos it only reads.
  - Until now the only check was a regex asking whether a row LOOKED like a
    citation, which `Foo.swift:9999` satisfies in a repo with no Foo.swift.
- `review-file-filter.mjs` and `schemas/review-file-exclusions.json`: Phase 4
  Step 1.85 decides what the reviewers read before the diff cap decides what
  fits. The cap truncates the largest files first, so a regenerated lockfile was
  not merely wasted budget - it was what survived while real code was cut. 45
  generic patterns (generated trees, lockfiles, recorded snapshots, vendored
  source, build output, binary assets); every exclusion carries its reason and
  the glob that matched. Fails open: an unreadable pattern list reviews
  everything and says so.
- `fileCoverage[]` on `reviewer-output.schema.json` (v1.3.0), enforced by
  `validate-reviewer.mjs --coverage`. A reviewer that opened one file of ten and
  one that read all ten returned the identical empty `findings[]`; now each file
  in the set gets a `reviewed` or `skipped` verdict, and `skipped` owes a reason.
- `graph-mermaid.mjs`: draws the blast radius `graph-affected.mjs` already
  measures, as a mermaid flowchart in the PR body's impact section. GitHub
  renders it natively, so the diagram costs no renderer and no dependency. Over
  the node ceiling it reports what was left out rather than quietly drawing a
  small radius for a large change.
- `validate-analysis-doc.mjs` check 2d-2: a sequence-diagram participant that
  appears nowhere else in the document, and a named service that appears in no
  diagram, are both reported.
- Shared modules `glob-match.mjs` and `git-path.mjs`. Two glob matchers would
  duplicate meaning, not code: the day they disagree, a file is excluded from the
  review and still counted in the conformance denominator.

### Fixed

- `verify-citations` read `wiki.example.com:8443` out of any URL with a port and
  called it an absolute path. An analysis document is made of Confluence, Jira
  and Figma links, so the gate would have failed every real document with the
  wrong reason. URLs are stripped first, and an extension must start with a
  letter so `v1.2:30` is not a path either.
- `review-file-filter` dropped every non-ASCII filename. With `core.quotePath` on
  git prints a Turkish name as `"G\303\266r..."`, which matches no glob and
  resolves to no file - so it did not fail, it vanished from the denominator.
- `smoke-own-punctuation.sh` and `smoke-personal-data.sh` used `git grep` and
  `git ls-files` without `--untracked` / `--others`, so a brand-new file was
  invisible until committed. The run that would have caught a violation was
  always the run after the one that introduced it.
- `analysis/locked.md` heading said 36 decisions over a list of 37, with nothing
  counting.

### Changed

- `phase-4-review.md` was compressed to stay under its ceiling rather than
  raising it. Two passages moved to the refs that own them:
  `features/design-conformance.md` gained "Why this runs as a gate", and
  `cross-cli-contract.md` gained "Panel diversity per host" with the per-host
  reviewer table it had been describing in prose.

## [17.3.0] - 2026-09-14

A three-pass review of 17.2.0 found two things it had declared finished. Both
were the same shape: a chain fixed on one side and left broken on the other.

### Fixed

- **Web was a platform the chain did not agree on.** 17.1.0 gave
  `run-ui-tests.sh` a web arm and taught `probe-evidence-capability.sh` to open
  tier 1 and tier 2 for web; `visualEvidence.platform` has carried `"web"` all
  along. `capture-evidence.sh` never learned it and answered **exit 2**, a usage
  error. So a UI change in a Playwright repo picked a tier the probe had opened
  and got back a failure Phase 3 reads as a phase failure rather than the gap it
  is. `capture-evidence.sh` now has a web arm on all three verbs.

  Web does not share the iOS/Android recording model, and forcing it to would
  record the same run twice: Playwright and Cypress write the video themselves.
  `video start` writes a marker, `video stop` harvests the newest video under
  `test-results/` or `cypress/videos/` written **after** it, and re-encodes webm
  to h264 for the same reason the iOS arm re-encodes. The marker is what stops a
  video from yesterday's run being attached as today's evidence, which is worse
  than attaching nothing because a present artefact does not get re-checked.
  `fit` gained `webm`, which had been falling through to the pass-through arm and
  reaching the uploader at full size.

- **Continuous mode's node half still named one host.** 17.2.0 fixed the shell
  side and closed the class. `autopilot-runner.mjs` was still resolving its three
  siblings from `~/.claude/scripts`, and `autopilot-intake.mjs` looked for
  `jira-search.sh` there behind an `existsSync` guard whose else-branch is
  `return []` - on a Copilot-only or Codex-only host that is an **empty Jira
  queue with no error**. Both resolve from their own directory now.
- **A sentence in `phase-0-init.md` contradicted the code three lines above it**
  ("no simulator on web or backend, so the probe does not run", under a branch
  that sets `EVIDENCE_PLATFORM=web` and runs the probe).

### Added

- `visualEvidence.webBaseUrl` - the address a web capture points the browser at.
  Web is the one evidence platform that needs one. Absent, the capture reports a
  gap with that reason instead of guessing a port. Per-run override: `--url`.
- `features/visual-evidence.md` section 4.6, the web contract.
- `smoke-visual-evidence.sh` section 3d: for every platform the probe will open,
  the capture script must answer with a reason or an artefact, never exit 2. Nine
  assertions including a live harvest of a real webm and its h264 verdict; seven
  of them fail against 17.2.0's code.
- **A gate for the rule the manifest could not see.** `dependencies: {}` was
  already tested; a shipped script shelling out to a bare `npx <pkg>` is a
  runtime dependency the manifest never shows, fetched from the network on the
  user's machine. `test/project.test.mjs` now fails any `npx` invocation without
  `--no-install`, allowing only our own `@mmerterden/multi-agent-*` packages.

### Notes

- 17.2.0 was tagged but never published; npm goes 17.1.0 to 17.3.0.
- Five of this release's new assertions did not fire the first time they were
  mutated. `grep -q installTemplates` was satisfied by `installTemplatesX`, the
  host-resolver test only exercised the same-tree shortcut and never reached the
  three-root loop, and the depth mutation targeted a file that is level 1 for
  every reader. All fixed, all re-mutated, all red.

## [17.2.0] - 2026-09-14

Three published rules we were measurably breaking, a budget tier that could not
fire, and continuous mode discovering that two other host trees exist.

### Added

- **The 500-line SKILL.md rule.** Anthropic's guidance is a line count; ours was
  a token count, and the difference is not cosmetic: all sixteen files over 500
  lines were PASSING the token gate, because short lines and code blocks are
  cheap at chars/4 and expensive to read (`api-security-best-practices` is 910
  lines at 5,882 tokens against a 6,000 ceiling). `LINE_HARD_CAP` is a second
  axis, not a tighter number on the first. The sixteen are frozen at their
  current length in a closed grace list that only ratchets down, and
  `test/skill-token-budget.test.mjs` is what makes "closed" enforceable.
- **`smoke-ref-depth.sh`.** Reference depth was spent every release and measured
  never. The published rule asks for one level; the tree is three, and the
  mechanism is written into our own gates - both the token-budget remedy and the
  grace-list message told authors to move reasoning into a lazily loaded
  reference and both said it as if the move were free. It is not: it spends a
  level. The gate freezes the maximum at 3, lowers the ceiling when the tree
  gets flatter, and fails any pointer naming a file that does not exist. Both
  remedy texts now name the cost.
- **`gen-ref-toc.mjs` + `smoke-ref-toc.sh`.** A generated table of contents on
  every reference over 100 lines (39 files, 297 anchors), refreshed rather than
  hand-maintained, because a stale contents list is worse than none. Three sets
  are excluded on measurement: a ToC puts 5 of 8 phase docs over their max and
  the aggregate 1,533 tokens over, takes always-loaded `rules.md` from 59,908 to
  60,997 against a 60,000 ceiling, and the analysis refs 2,298 over theirs.
  Those files are loaded whole, so the navigation buys nothing. The exclusion is
  derived from the three budgets, never hand-listed.
- **`smoke-autopilot-hosts.sh`.** Continuous mode on a Copilot-only or
  Codex-only machine.

### Fixed

- **The warn tier that could not fire.** `warn_tokens` was a stored number
  maintained by hand and it rotted twice the same way: reset at v13.6.0 with
  five lines permanently amber, six of eight amber again by v17.1.0. It is gone
  from the schema. The gate derives it per phase from that phase's own git
  history as `median + 3*MAD`, anchored on HEAD rather than the working tree -
  the first version anchored on the working tree, which made the threshold
  follow the measurement so it could never fire, the exact defect being removed.
- **The ceiling that could only go up.** A `max_tokens` more than 25% above what
  the document measures is now stale and fails, naming the number to lower it
  to. Ceilings ratchet down, which the SKILL.md grace list always did and this
  budget never had.
- **Continuous mode's hard-coded host paths.** `autopilot-on` read the launchd
  plist template from `$HOME/.claude/templates/`, a tree only
  `install/claude.mjs` creates and no path rewrite retargets, so on a
  Copilot-only or Codex-only machine it rendered a launchd job from a file the
  host does not have; `autopilot-status` lost its whole spend section the same
  way. `ma_ap_asset` resolves across the three roots, and both installers now
  ship `templates/`. The state root stays shared on purpose - two CLIs on one
  machine must read ONE queue - and the gate asserts that too.
- **A leak scan that skipped the likeliest tree.** `smoke-autopilot-default-off`
  asserted nothing outside the three autopilot commands references the runner,
  but read only `commands/` and `multi-agent-refs/`, not `skills/`, where the
  Copilot orchestrator is a 713-line inline file.

### Changed

- The 23,769-character `note` in `token-budget.json` moved to
  `docs/token-budget-history.md`. The schema is 1,668 characters and describes
  the rules instead of the past.
- `cross-cli-contract.md` gains section 4.4: what continuous mode does on each
  host, and why the state root is the one thing that is not per-host.

## [17.1.0] - 2026-09-14

Continuous mode, and three things that were computed correctly and shown to
nobody: the plan's own steps, a web repo's UI tests, and the queue's status when
one field arrived as a number.

### Added

- **Continuous mode.** `/multi-agent:autopilot-on` picks the repos ONE machine watches; labelled GitHub issues and assigned + labelled Jira items then run in a worktree and stop at an open PR. `:autopilot-status` is the single producer the terminal, the menu bar indicator and the session hook all render, `:autopilot-off` removes the schedule and keeps the selection. Nothing is on by default: installing writes no state and schedules nothing, and `smoke-autopilot-default-off.sh` fails the build if that changes.

  The ordering is deterministic with no model call - explicit rank, repo grouping, priority, then OLDEST first, which is the opposite of the `jira` picker on purpose: a human wants what just landed, an unattended queue must not starve what has been waiting. Two preconditions are checked before any item is taken: a rolling 24-hour spend total, and a per-source credential gate, so a dead Jira token stops Jira items without stopping GitHub ones.

  A menu bar indicator draws the same `status.json` in the top right when `swiftc` is present. ActivityKit is `@available(macOS, unavailable)` - there is no Live Activity on a Mac - so this is an `NSStatusItem`, built from source on demand rather than shipped as a binary that would need signing.

- **UI tests on web.** `run-ui-tests.sh` rejected every platform but `ios|android`, so a repo with a full Playwright suite reported "no UI test target" and the PR body said UI tests had not run - a statement true of the runner and false of the repo. Detection keys on the browser-driving import (`@playwright/test`, `cy.visit(`), not on a directory called `e2e`: the same distinction that keeps 475 iOS snapshot tests from being counted as UI tests.

### Changed

- **The Jira comment and the PR body stopped being the same document.** Jira now carries Geliştirme Özeti, Test Senaryoları, Etki Analizi and Bağlantılar with the PR link on line 1 and no identifiers, file paths or diff hunks anywhere in it. The PR keeps all of that and gains Teknik Açıklama, Etki Analizi and Build - the build command, its result and the base sha it ran against. Given/When/Then is gone from the scenarios: it reads as translated English to the person running them, who wants a titled list they can follow with the app open.

### Fixed

- **The menu bar indicator read "autopilot kapalı" with items in flight.** `phase` was declared `String?` while the producer passes the queue's own value through `jq` untouched, so a numeric phase made Swift's `Decodable` throw - and the throw did not lose one field, it failed the whole document. A silent blank is the worst failure a status indicator has, because it is indistinguishable from good news.

- **`ma_ap_boottime` returned the microseconds.** `.*sec = ` is greedy and walks past `sec` into `usec`, so the helper produced a six-digit number that looked plausible and never equalled the same fact read anywhere else. It surfaced as a live runner being declared dead.

- **Three phase documents said "MCP forbidden" without qualifying it**, while the gate that enforces it has always matched `figma` and nothing else. The prose therefore banned the screenshot, xcodebuild and UI-test tools that Phase 3 itself calls, which is one way a run reaches Phase 7 with no evidence.

- **`channels/jira.md` told Phase 7 to upload evidence Phase 6 had already uploaded**, so re-rendering a comment attached every file a second time.

---

## [17.0.0] - 2026-09-14

Five things in this release were not working, and four of them looked like they
were. A platform we advertised and never verified; a stack answer that sent
nearly every repo to the iOS toolkit; an evidence step gated on a field no phase
wrote, passing an argument no phase assigned; and one word, "in progress",
covering a finished job, a crashed one and a run that never started. The common
shape is a contract with readers and no writer, which reads exactly like a
contract that is satisfied.

### Fixed

- **"In progress" covered three different situations and offered one answer.** Measured: 20 runs read `in_progress` and every one was over a day old, the oldest 157 days. They were not one failure. 3 had their PR already open and were holding at Phase 6/7, where the pipeline pauses BY DESIGN for channel selection - finished work. 11 were left at a Phase 0 question, which is almost entirely questions, so nothing was ever built. 6 stopped mid-development, the only group that is actually broken. The session hook reported the newest of the 20 as "stopped at Phase N" and said nothing about the other 19, in the same words whether the pipeline was waiting for the user or had crashed.

  `agent-state` gains `awaiting_input`, distinct from both `in_progress` and `paused`: the run is not broken and not resumable by a retry, it is finished with what it can do alone. A state file in the wild had already invented `awaiting-user-test-main-checkout` to say this. Phase 7 writes it where it pauses, the session hook and `/multi-agent:status` group on it, and each group offers its own action - resuming a Phase 0 question rebuilds nothing, and garbage-collecting an open PR throws away landed work.

  A run with no status is now left out of all three groups. Eight such files exist here, six with no phase either, and calling them dead is the same false claim as calling a waiting run dead.

- **`.pr` is an object in the schema and a bare URL string in three state files on disk.** `jq '.pr.url'` on a string errors, and with stderr suppressed that reads as "no PR" - so a run whose PR was already open could be classified as dead. Both readers now read the shape instead of assuming it.

### Added

- **`/multi-agent:garbage-collect --abandoned`**, backed by `gc-abandoned.sh`. Nothing collected these: `gc-worktrees.sh` skips REGISTERED worktrees on purpose, because a registered worktree belongs to a live run - and a run that stopped never stops being live. 28 worktrees across 7 repos, 23 GB.

  Two passes, because the state files are not where the disk is: only 5 of those 28 belong to a run that still reads `in_progress`, while 19 have no state file at all and 3 belong to runs that finished and outlived their worktree. A state-driven sweep alone reaches 4% of the problem.

  Three rules, each written against a shape found on the machine rather than imagined. A run waiting on you is never reaped. A path outside `<repo>/.worktrees/` is never removed - four state files record the REPO ROOT as their `worktreePath`, so a sweep that trusted the field would have deleted a checkout. Uncommitted work is stashed to `autopilot/abandoned/<task-id>` and the worktree is kept, because losing a day of edits is worse than 750 MB.

  And the rule that decides what the tool is for: **a worktree with no run state is reported, never removed.** `.worktrees/` is not exclusively ours - this machine holds `174`, `pr-4051` and `task-1` there, hand-made, one in active use - and nothing distinguishes those from a pipeline worktree whose log was pruned. They are the 11 GB, and naming them with their sizes is worth more than a rule that guesses.

  Dry-run by default, `--yes` applies, state salvaged to `artifacts/` before anything goes.

### Fixed

- **The visual-evidence chain had five readers and no writer, so none of it ever ran.** Phase 0 Step 7.7 is gated on `state.visualEvidence.required`; Phase 3 captures when it is true; Phase 5 records the flow video; Phase 6 blocks on a required artefact that is neither attached nor explained. No phase document ever wrote `required`, `requiredBy` or `platform`, so the verdict was never true, and every consumer below it read a contract that looked satisfied. Step 7.7 now writes the verdict and is named in `features/visual-evidence.md` section 1a as its only writer. Phase 0 has no diff, so the `bugfix` row is provisional and Phase 3 re-decides from the real one.

- **The probe was called with `--platform "$PLATFORM"`, a variable no phase document assigns.** The probe refuses an empty value with exit 2, so the call could not have worked on its best day - it went unnoticed only because the step above was unreachable. The platform now comes from the stack (section 1b), which is the right source: it selects which device tooling to probe, and that is a property of the repo rather than of the diff. iOS wins a tie, recorded in `stackWhy`. A repo with no device platform does not get an empty string passed through; the probe does not run and `evidenceCapability.skippedReason` says why.

- `smoke-evidence-probe.sh` now fails a `--platform` argument whose variable is not assigned in the same file. Deliberately narrow: more than a hundred variables appear in these documents without an assignment and most are fine, because an agent fills `$WORKTREE` from context. `--platform` is not inferable and its consumer enforces a closed set with a hard exit, which is what makes the rule about this flag rather than about shell hygiene.

### Fixed

- **Nearly every checkout on the development machine was routed to the iOS toolkit** - 22 of 25, measured. Two causes, measured: `setup` wrote `ai-ios-toolkit` whenever its marker list matched nothing, and nothing else ever revisited the answer, so a Next.js site and several Node CLIs inherited it. The default is gone; an undetected repo now gets the two stack-independent toolkits and a recorded reason, which is an answer rather than a guess.

- **Android was never detected.** Phase 1's marker scan ran at `maxdepth 2`, and `AndroidManifest.xml` sits at `<module>/src/main/` - depth 4 in every multi-module app. The scan also read a generated `.next/package.json` as a repo's manifest, and reported a Compose app as iOS because the app vendors a submodule that ships a `Package.swift`.

### Added

- **`pipeline/lib/stack-detect.sh`** is now the one owner of "what is this repo built with". Deterministic file markers, never a model call: root before anything deeper so `find` traversal order cannot decide the answer, submodule and build-output pruning, depth 5 for the Android manifest, and `MA_STACK_WHY` separating "no marker matched" from "could not be read" - a caller that cannot tell those apart treats an unreadable repo as a language-free one. Verified against every repo on the development machine and seven fixtures.

- **`pluginsForStacks()` in `scripts/_stack-routing.mjs`** is the one owner of "which plugins does that want". The mapping was written out by hand in four places, each a chance to get the single asymmetric name wrong - the detector says `web`, the marketplace ships `ai-frontend-toolkit`. Derived names are checked against the locally installed marketplace manifest, so a toolkit that was never shipped is caught at derivation instead of presenting as one silently missing from the session. An unreadable manifest routes by convention and reports `manifestVerified: false`; it never fails closed.

- `state.stacks[]` and `state.stackWhy` for the stack axis. `state.detectedStack[]` stays the LANGUAGE axis and is now declared in the schema, which had `additionalProperties: false` and no such property while the phase documents instructed the write. The two axes are deliberately not merged: `graph-build.mjs --stack` accepts `ios|android|node|python|go` and has no notion of `web` or `backend`, and conflating them is what let a Gradle-built JVM service read as an Android app.

- **`smoke-stack-detect.sh`**, whose golden-output assertion is what made the consolidation safe: every argument the four hand-written tables accepted must still resolve to exactly the plugins they listed, or the gate fails.

### Removed

- **Linux and Windows support.** The package advertised three platforms and verified one. Every credential read shells `security`, every iOS build `xcodebuild`, every piece of visual evidence `simctl`, so a run elsewhere did not degrade into a smaller run - it failed partway through with a worktree and a branch already created. ADR-0011 already recorded that CI had not executed since 2026-07-02, and its own status block called the Linux path "smoke-skipped" and the Windows path "unverified".

  The removal is a declaration, not a deletion. `package.json` declares `os: ["darwin"]`, which npm enforces on the root package: a non-macOS `npm ci` ends in `EBADPLATFORM` before a file is written. `index.js` and `install/index.mjs` refuse a non-darwin host with one line naming the requirement; `uninstall`, `help` and `--version` stay reachable, because somebody who installed before this gate must still be able to remove it. `MULTI_AGENT_ALLOW_NON_DARWIN=1` overrides and says on stderr that nothing on that path is tested.

  The dead Linux and Windows branches are left in place deliberately. They cost nothing at runtime, and seven constructs in them look like cross-platform scaffolding while being load-bearing on macOS - the `grep -P` ban, the `sha256sum || shasum` ordering, the `stat -c || stat -f` chains among them. ADR-0012 enumerates all seven so the follow-up cleanup does not break the BSD path.

- `pipeline/scripts/gate-linux.sh` and the `npm run gate:linux` script. Every workflow now runs on a macOS runner; `test.yml` loses its Ubuntu leg and its `windows-test` job, since with `os: ["darwin"]` enforced those jobs could no longer `npm ci` this tree at all.

### Added

- **`doctor` check `host-platform`**, which runs first and blocks. First, so an unsupported host reads one honest line instead of a cascade whose common cause is never stated. The blocking set grows from five to six and is documented in `features/doctor.md`.

- **`smoke-macos-only.sh`** asserts each declaration separately, because declarations rot silently: the `os` field, both entry gates, the uninstall exemption, the doctor registration and its first position, that no user-facing doc promises another platform, and that no workflow targets a runner that cannot install this package.

### Fixed

- **`smoke-doctor.sh` computed the documented blocking set and never compared it to anything**, so the ref and the code were free to disagree - and they did, the moment `host-platform` was added. Worse, the computation used `sed -n '/a\|b/p'`, and BSD sed reads `\|` as a literal pipe, so the value had been empty on every macOS run since it was written. Both halves are fixed and the comparison is now an assertion.

- **The step-verb mutation test mutated the first matching literal in `doctor.mjs`'s source**, which stopped being a step the probe run reaches as soon as a check that passes on macOS was registered above `install-present`: the engine was never asked, and the gate reported it had gone soft. The step to mutate is now read back from the probe run's own output, so it stays unpinned to any particular check while being guaranteed to execute.

## [16.31.1] - 2026-09-13

### Fixed

- **A literal keychain item name shipped in `refs/rules.md` for two months.** The Vercel section's example read `credential-store.sh get <maintainer's own item>`, which both named whose machine the file came from and taught the wrong mechanism: `keychainMapping` exists precisely so shipped files name the LOGICAL key and the mapping resolves the per-machine item. The example is now the one-line wrapper call, which resolves the token itself. `sync/SKILL.md`'s publish-candidate table and `keychain.py`'s comment carried the same shape and are genericized.

- **`smoke-personal-data.sh` had no pattern for that shape**, which is why it survived every scan. Added, case-sensitively: the owner segment must start lowercase, which is exactly what separates a resolved item name from the `${USER}_...` and `{USER}_...` template spellings the convention calls for - under the main list's `-i` that distinction disappears and the templates match too. It found three live instances on its first run.

- `account-resolver.sh`'s prefix example and `smoke-pref-migration.sh`'s fixtures now use placeholder spellings rather than ones that read like a real account.

## [16.31.0] - 2026-09-13

A pipeline that leaves worktrees, artefacts and exclude lines behind is not generic tooling, it is a guest that rearranges the furniture. This release makes a run leave the repo exactly as it found it, and fixes two credentials-and-integrity gaps found while proving it.

### Added

- **`pipeline/lib/repo-hygiene.sh`** - one owner for everything the pipeline writes into somebody else's repo. `ensure_exclusions` writes a marked block into `.git/info/exclude` covering `.worktrees/`, `.pipeline/`, `.multi-agent/`, `triage-output.json`, `.review-diff.txt`, `.build.log` and `.test.log`; `release_exclusions` removes exactly that block and nothing around it; `prune_empty` removes directories it can `rmdir` and never touches `memory/`. The single-line residue guard that lived inline in Phase 0 moved here, so the write and the removal are now written next to each other rather than one existing and the other not.

  The exclude path resolves through `--git-common-dir`, not `--git-dir`: inside a worktree the latter points at `.git/worktrees/<name>/`, where an exclude file is read by that worktree alone and disappears with it.

  **`safe_root` refuses `/`, `$HOME`, an empty argument and anything that does not resolve.** Every sibling GC script already had that guard; this one wrote into `$HOME/.multi-agent/` without it, which is a real path on a real machine.

- **`doctor`: a `worktree-residue` check** (the 15th). Reports per-repo `.worktrees` count and total size and points at `/multi-agent:garbage-collect` above the threshold. Written because the leak was invisible: one reference repo had accumulated 15 worktrees and 11.4 GB, and nothing reported it.

- **`smoke-repo-residue.sh`** (26 assertions, 10 sections) - simulates a full run's artefacts in a temporary repo and proves `git status --porcelain` is empty afterwards. There was no gate of this shape before, which is why the leak survived.

### Fixed

- **`vercel-deploy.sh` never read the credential store it advertised.** The header has promised "resolved from prefs keychainMapping if unset" since the wrapper was written; the block under that promise sourced the resolver only to name it in an error message. A machine with the token onboarded was still told to set an environment variable. Resolution now lives in one function that both `doctor` and `deploy` call, so the diagnostic can no longer report a token missing that a deploy would have found.

  The key was also **impossible to map**: `keychainMapping` is `additionalProperties: false` and carried no `vercel` slot, so the remediation the error printed could not be followed. The slot now exists in the schema, the preferences template, `credential-inventory.sh`'s capability table and the `keychain.md` key table - the four places `smoke-credential-key-alignment.sh` requires a runtime key to appear, and that gate caught three of them being missing.

- **`.skill-manifest.json` had been stale since 09-09.** Four `SKILL.md` files changed under it and two more were never in it at all, so every install printed drift warnings nobody could act on, and a signed manifest that is allowed to rot is decorative. `smoke-gate-wiring.sh` exempted `sign-skills.sh` as "release-time signing" for a release step that did not exist; the release flow now names it, and the manifest smoke verifies the **shipped tree** rather than only its fixtures.

- **An exclude file with no trailing newline was corrupted.** The block marker was appended directly onto the user's last line, which both mangled that line and made the block unremovable, since the removal matches on the marker being at the start of a line.

- **`gc-tmp.sh` swept four temp prefixes it never knew about** (`complaint-analysis-*`, `generate-issue-*`, `cred-inventory-*`, `pr-body-*`) and `*-wiki` clones. The `.git` requirement that guards wiki clones applies to those alone - applied to the prefix list it would have narrowed an unconditional sweep.

- **`gc-worktrees.sh` failed silently when the hygiene lib was absent**, doing nothing where it was meant to write the guard. It now says so loudly.

- **Two legacy data roots** (`~/.claude/multi-agent-tasks/`, `~/.claude/.multi-agent-state/`, both with zero code references) are recognised by `pruneAbandonedTrees()` through an entry marker, so one content-bearing entry without the marker keeps the whole tree rather than the installer deleting somebody's data.

### Changed

- `worktree-finalize.sh` prunes through the resolved real path rather than `$PROJECT_ROOT`, which differs whenever the repo is reached through a symlink.
- `purge` is the only path that releases the managed exclude block - a garbage collection run is not a reason to stop ignoring the pipeline's own artefacts.
- `smoke-offload-ref.sh` and `smoke-gc-worktrees.sh` now assert through `git check-ignore` on the real leak paths instead of matching our own printed strings.

## [16.30.0] - 2026-09-12

The flow video existed as a contract with no recorder, no UI test ever ran, and the PR carried filenames where a reviewer needed a picture. This release makes the evidence real and asks the user what it is worth paying for.

### Added

- **`capture-evidence.sh video start|stop`** - the recorder the contract has described since 16.24.0 and nothing implemented. iOS records through `simctl io recordVideo --codec h264` (hevc does not play in the Jira attachment preview or several browsers) and stops on SIGINT, which is the only signal that makes simctl close the container; a TERM leaves an mp4 every player refuses. Android uses `screenrecord` with its own 180s ceiling, which the script clamps to and reports, because one preference honoured on one platform and silently halved on the other is worse than a stated limit. Shell rather than MCP, like the still capture beside it: a host with no toolkit MCP registered still produces evidence.

  **Both recorders encode on change**, so a flow over a screen that never moved is a valid two-frame file a fraction of a second long. That file is kept - it is not broken - but `stop` says on stderr that nothing moved, and the caller records it as a gap rather than presenting a still as a flow. Nothing asserts the duration against wall clock anywhere, because that check fails a correct capture of a static screen.

- **`run-ui-tests.sh`** - finds the repo's own UI test target, picks the tests covering the changed files, and runs them. Exit 3 (target present, nothing matches) and exit 4 (no target) are reasons to fall to the next video tier; only exit 1 is a red test, and the log is the evidence, since a runner that died before reaching the tests also exits non-zero.

  **The signal is `XCUIApplication`, not a folder named `*UITests`.** In the reference iOS app 477 files sit under such a path and exactly 2 drive the UI; the other 475 are snapshot tests that render a view and compare pixels without launching the app. Recording video around one of those produces a still frame and files it as a flow. And a real app has many candidates - 17 UI test directories there, 8 instrumentation modules in the Android app - so detection reports the whole set and lets the changed files choose. Taking the first off a `find` is a guess wearing a measurement's clothes.

  Detection reads the filesystem and never calls `xcodebuild -list`, which resolves the SPM graph first and took 72 seconds on the reference workspace. It also found a target the `xcodebuild` path had missed entirely. The scheme, which only a run needs, is resolved in `run` behind a timeout.

- **`probe-evidence-capability.sh`** - measures before the user is asked. Offering "unit + UI test with a screen recording" and discovering afterwards that there is no target or no booted device spends the user's answer on something that was never going to happen. Every absent value carries its reason, because `no booted simulator, but one is available to boot` and `no iOS simulator available on this machine` close the same menu row and ask for completely different things. A value it could not measure is `null`, never `false`: with no `adb` on the PATH, "no device attached" is a negative nobody looked for and reads exactly like one somebody checked.

- **Test depth is a question** (Phase 0 Step 7.7): unit only, unit plus the UI test with a recording, or unit plus an MCP-driven flow. The options are built from the probe; a closed one keeps its row and states why, and when every option but the first is closed nothing is asked at all and `testDepthSource` records `forced` - a one-option question has no answer in it. Asked at intake rather than in Phase 5 because Phase 5 is absent from four of the eight modes, and a question asked where it cannot be reached is a question nobody answers. `prefs.global.testDepth.default` serves both autopilot entries.

- **The tier is re-checked at capture time.** A simulator booted at intake can be gone by the time the build goes green, so Phase 3 re-measures the device row alone and records the transition it came down from.

- **`state.visualEvidence.host`, and a PR that shows the picture.** Resolved in Phase 6: Jira takes both stills and video as attachments; with no Jira the stills go to an orphan `evidence/<task-id>` branch and the PR body embeds them. There is no GitHub API that attaches a file to an issue or a PR - the web uploader needs a browser session - so a branch is the only mechanism a script has that neither touches the PR diff nor publishes a release. **A private repo gets a blob permalink rather than an embed**: GitHub renders markdown images through a proxy that has no credentials for a private repo, and a broken image reads as missing evidence. Video stays Jira-only, and on a GitHub run none is recorded at all rather than paying UI-test minutes for a download nobody opens.

- **The probe's output contract**, settled by its own review. `--json-out <path>` writes the JSON the state records while stdout stays `KEY=VALUE`, so one run serves both the shell that builds the menu and the state that keeps the measurement; two runs meant two repo scans and two chances to disagree. Every value is **shell-quoted**, because Phase 0 evals that output and the reasons are prose: unquoted, `EVIDENCE_DEVICE_REASON=no booted simulator, but one is available to boot` makes `eval` run `booted` as a command and keep only the first word. That bug is invisible on any machine where the reasons happen to come back empty, which is the machine it was first tested on. `--only device` skips the detection scan for the Phase 3 re-check, and reports tier 1 as **unknown** rather than closed there - a tier that was never probed is not a tier that was ruled out, which is the same rule the probe states about every other field.

- **`smoke-ui-test-runner.sh`** (24 assertions) and **`smoke-evidence-probe.sh`** (33). The first caught a real bug while being written: `run` keyed its "no target" exit off the single chosen target, which is deliberately empty while several candidates exist, so "this repo has nothing to record" and "nothing covers what changed" collapsed into one code.

### Fixed

- **`smoke-no-mcp-in-dev-phases.sh` failed the pipeline's own prescribed calls.** It rejected every `mcpCalls[]` entry at phase >= 2 regardless of tool, while the rule it enforces (Locked 30, `rules/figma-pipeline.md`, `phase-3-dev.md` item 7) names `mcp__claude_ai_Figma__*` and nothing else, because what it protects is a single source of design truth, not MCP as a transport. `phase-3-dev.md` builds with `ios_xcodebuild` and `phase-5-test.md` audits with the accessibility tools, both at phase >= 2 and neither reading a design; the first person to record telemetry honestly is the one the gate would have failed. Now filtered on the tool name, with three assertions covering both directions.

- **The design-check MCP probe had never run.** `design-check/SKILL.md` read `mcpServers[...].args[0]` as a script path and `cd`'d to its parent. The registration is the npx form, so `args[0]` is `-y`, the `cd` failed every time, and a gate that exists to catch a stale tool list was inert. It now launches the server exactly as it is registered, which is what `doctor.mjs` already did.

- **`evidence-gate.mjs` never read the `screenshot` field** it has carried in the manual-test document shape since the gate shipped, so a criterion with `"screenshot": null` passed as a verified manual test on a UI change - the one case the picture was added for. New `--require-screenshot` flag, set by Phase 5 when visual evidence is required: a passing criterion must name a file that is actually on disk, since a path pointing nowhere is not evidence.

- **The derived `multi-agent-manual-test` skill had no evidence gate at all**, while its command sibling had one. Two copies of a command that disagree about whether a claim needs proof is the drift `skill-siblings.mjs` exists to surface.

### Changed

- `features/visual-evidence.md` section 4 rewritten around probe -> question -> run, plus a new host section carrying the two GitHub constraints that shape the PR rendering.
- Four phase docs gained a step, so `token-budget.json` moves with them: phase 0 (probe + depth question), 3 and 5 (recording), 6 (host resolution). The docs were compressed first and the new numbers are the measured residual, not headroom - these files are read into context on every run, so the budget is the place that cost is recorded rather than absorbed.
- `smoke-visual-evidence.sh` now records two seconds on a booted device and verifies the h264 file instead of grepping this repo's own markdown for the words "Tier 1" and `agent_run_steps`. A gate that asserts what we print proves nothing. Where no device is present the skip is printed as its own assertion, because `run-smokes.mjs` counts a silent suite as zero assertions and treats it as inert. It also holds the host to its two constraints: the public shape must embed an image, and the private shape must **not** - an embedded raw URL from a private repo renders broken for every reader, which looks like missing evidence rather than a link nobody clicked.

## [16.29.0] - 2026-09-11

### Added

- **Two release guards that had stopped working, found by running them.** The sync leak backstop matched `ai-ios(-engineering)?-toolkit:`, so it fired on `ai-ios-toolkit`, the GENERIC marketplace plugin, and aborted the sync over a legitimate reference that had been in main for months. It now names the corporate plugins only, and is asserted in both directions - the corporate name still caught, the generic one ignored.

  `scan-agent-config.sh` resolved its root as `$0/../..`, which is the repo from a checkout and the HOME directory from an install: from `~/.claude/scripts` it found zero shipped config files, then died on `"${TARGETS[@]}"` under bash 3.2's `set -u` rather than saying so. Same defect class as the one `skill-siblings.mjs` carried, so it gets the same two-candidate resolution, and zero targets is now a HIGH finding instead of a clean bill. The installed layout deliberately excludes `settings.json`: that file is the user's, not something the pipeline ships, and scanning it turned a personal permission choice into a release blocker.

- **`/multi-agent:doctor` - would a run work on this machine, and if not, what is the one next step.** Every failure it reports has already reached a user, and each arrived the same way: late, mid-run, after the pickers had been answered. A missing script fails at the call. Malformed preferences fail after Phase 0 has asked five questions. A token in a remote URL does not fail at all - it leaks. The pipeline's own answer to "is this set up correctly" was to start a run and find out.

  **The exit code is the product**, not the report: 0 healthy, 1 degraded, 2 blocked, 3 usage, **4 indeterminate**. The fourth is the one usually collapsed into 0 or 2, and collapsing it means a resolver that could not look borrows the code for a clean bill. `/multi-agent:sync` stops on 2 and on 4 - syncing a blocked install copies one fault onto five surfaces, and the copies are what people then debug. `/multi-agent:setup` runs it first and last, so "setup complete" has evidence behind it. `/multi-agent:update` runs it after the install, because that is when the layout changed.

  **BLOCK is a closed definition** - a state where a run will fail or leak, never one where it will merely be worse - and only five checks may produce it. That rule is enforced, not just written: a sixth check returning BLOCK is downgraded and the downgrade is reported, because a rule nothing enforces is a comment.

  **Absence is printed.** `SKIP` is a fourth severity in the same list at the same position, and the summary always carries its count, so "healthy" and "not looked at" are never the same output. Without `--probe` the liveness check prints `SKIP` and says why; a network check is the user's decision to spend.

  **It recommends, it never fixes.** A remote carrying a token may be the only credential that repo has, the remote may be a mirror a script depends on verbatim, and doctor can run inside a checkout the user does not own. For an embedded credential the honest step is not "hide it" - a token that reached `.git/config` is already burned - so the step is to revoke it at its host. The line carries the repo, the key, the host, a shape and a length bucket; never the value, and not the prefix either, since `ghp_` plus a length is already a fingerprint and this prints to a shared terminal.

  Fourteen checks, each with a `### <id>` entry in `features/doctor.md`, and `--list-checks` is asserted equal to that set in **both** directions: a check cannot ship without its entry, and an entry cannot outlive its check.

  Running it against this machine immediately paid for itself twice - it reported a missing git identity on a machine with two (the key is `identities[]`, a list, because work and personal both exist) and told the user to sync seven commands that are local-only and excluded from sync by design. Both were fixed before the gate was written; a health check that is wrong about a healthy machine is worse than none.

- **`/multi-agent:analysis-jira` - an analysis document, read as work.** A finished analysis already contains the breakdown: `BR-<slug>-NN` in the global profile, `FG-NN` in the corporate one, both guaranteed by Locked 31. The tree is derived from those ids, never from a reading of the prose.

  **Coverage runs in both directions, and the second one is the reason.** Forward catches a dropped requirement. Backward catches an INVENTED story - a node with no requirement behind it - and no forward check can see one. `coverageOf()` is exported and tested against itself: the planner cannot emit an invented id, so a test that fabricates one and re-checks it with its own logic proves nothing about the shipped code.

  **An unverifiable run is allowed; looking verified is not.** A lite document with no ids cannot be coverage-checked, so the verdict is `unverifiable` - on its own line in the preview, as a separate fourth approval option rather than a reworded `Approve`, in the writer's output, and beside every key in the ledger. Such a document still plans work from its user-story sub-sections; without that the no-atom case produced no stories at all and the `unverifiable` branch was unreachable, a state the code claimed to handle and never could.

  **Identity is a label, not a title.** Each node carries a hash of the document's `evidence_digest` plus its own source ids, and a second run finds its tree back with one JQL search. Titles were the obvious key and are the wrong one: they get edited, and matching on them breaks exactly when someone improves the wording. The label is server-side, so it survives a new machine, a deleted `~/.claude`, and a second analyst - who is precisely the person positioned to open a duplicate tree.

  **The write is ledgered.** An `intent` line before each POST, the key after the response; a crash between them leaves an intent with no key, and the next run searches by label before sending anything. The failure that matters is not "the run stopped" but "the run stopped and the retry made a second tree". An existing node is skipped, never updated: Jira has no backup path for fields other than description.

  The marker gate runs before any network call - zero `EKLENECEK`, zero `TBD`, no open Section 20 row - because a tree built from an open question publishes the gap as work somebody is now assigned.

  Every site-specific name lives in `prefs.global.issueTree` as a map VALUE, never a schema key: a key is a published literal and this schema ships to everyone. `subtaskRoles` ships empty on purpose, and `subtaskIssueType: null` means discover it from `createmeta` rather than assume a name.

- **`lib/_jira-auth.sh`** - one resolution of host and token, and one `-K` curl idiom, for Jira callers to share. The twelve lines existed twice and a third writer was about to make it three; the part most worth getting right (the token never reaching argv, a log, or `ps`) is the part most easily retyped badly. Only the new writer consumes it so far - `jira-publish.sh` and `issue-fetcher.sh` still carry their own resolution, and `issue-fetcher.sh`'s per-account token keys are not modelled here yet, so retrofitting them is a refactor rather than a rename and is not in this release. The leak property is asserted on all three independently, which is the part that has to hold either way.

- **`outputs.confluencePages[]`** records each emitted page's identity - `pageId`, `title`, `space`, `channel` - not only its URL. A write-back needs the id, and a `/display/SPACE/Title` URL cannot be parsed for one, so a URL-only record works on some sites and silently does not on others.

- **`install/templates/` now reaches the user tree.** It shipped in the tarball and was never copied, so `setup` told people to merge `install/templates/claude-hooks.json` - a path that exists only in a checkout. From an install the instruction named a file the reader did not have, and nothing said so. The doctor's `hook-coverage` check would have been a permanent `SKIP` for the same reason.

### Fixed

- **The widget came back empty of everything except the phase name.** The native tile renders exactly one string, its subject, so whatever a reader wants from the card has to travel in that subject. It carried `Phase 1 Analysis` and nothing else, while the tracker already held the model, the elapsed time, the tokens and the cost for that phase and the fallback card printed all four. `phase-tracker.sh subjects [id]` now renders the same values in the one shape the host accepts, `tiles` builds its `TaskCreate` calls from it, and every boundary hint re-reads it so the numbers advance instead of freezing at creation time. A phase with nothing to report is still just its name - no empty separators.

- **The base branch stopped being asked.** Step 3 is marked not skippable and the run skipped it anyway, because the filter left one candidate and "there is only one option" read like a legitimate reason. It is not one: the filter is narrow by design, `Other` is a real choice on every picker, and announcing the pick in prose is the same skip with a sentence in front of it. The rule is now written where pickers are defined rather than only in this step, together with the ordering it depends on - project, then repo, then base branch, because a branch is a property of a repo and an answer given before the repo is settled cannot be told apart from a correct one.

  Autopilot changed in the same pass. It resolved pickers to a sort order; it now reads `recentBranches[{projectKey}]` first and falls back to the order only when the record is empty, stale or gone from the remote, recording which rule fired. A remembered branch is evidence about this user and this repo; an option order is a guess that happens to be sorted.

- **Corporate stories all claimed every requirement.** The planner attributed `FG` ids by section containment, and the corporate template states the mapping in a COLUMN - the functional-requirement table carries a source-UC cell and the traceability matrix repeats the chain - so both of those sections name every use case and every group harvested every atom. Three use cases produced three stories with identical sources, identical titles and, since the label hashes the sources, one identical label: the second run found all three under that label and collapsed the tree onto a single issue, while coverage reported `ok` throughout because a set check cannot see misattribution. Attribution is now read from the row, which is where the template states it, with no column name hardcoded - an atom and a group sharing a table row IS the mapping, in whatever language the site writes its headers. The node's group is also in the identity hash now, because source ids alone are not an identity: two groups may legitimately cite the same atoms.

- **A failed story still wrote its sub-tasks.** `create_issue` omits the parent field when the parent key is empty, so when Jira refused a story the writer logged the error, set the exit code, and went on to POST its sub-tasks - which landed as live, parentless issues from a run that had already reported a failure.

- **Three gates that could not fail.** `smoke-analysis-jira.sh` asserted no token is interpolated into a curl argument using `[^\n]` inside a bracket expression, which BSD grep reads as the two literal characters `\` and `n`: the class excluded every header name containing an "n", `Authorization` among them, so on macOS the assertion could not fire for any header a caller would really write. The same file printed a green "no caller puts a token on a curl command line" unconditionally after the loop that checks it, so the report could contradict its own red line. And `smoke-doctor.sh` asserted the `MAY_BLOCK` downgrade with a regex over `doctor.mjs`'s own source, which a nearby comment satisfied as well as the code did - the enforcement could be deleted outright with the gate still green. The downgrade is now driven rather than read: the engine is importable behind a main guard and the gate calls `report()` with an out-of-set id and measures what comes back.

- **`smoke-command-inventory.sh` aborted instead of reporting.** It parsed the inventory block with a hardcoded `/^analysis, analysis-resolve/` trigger, so a command sorting between those two names left the parse empty - and under `set -e` the empty assignment killed the whole gate before its own "could not parse the inventory block" guard, before the shared-core counterpart check, and before it printed its tally. A publish-blocking gate that exits silently is worse than one that fails. The block is now anchored on the tree's own first and last command, and the parse failure is reported as a finding.

- **`doctor`'s script-surface check could not see one directory down.** Its pattern excluded `/` from the path segment, so a reference to `$HOME/.claude/scripts/nested/bar.mjs` was truncated to the directory; as long as that directory existed, a genuinely missing file inside it reported OK - the exact case the check exists to catch.

- **Maturity warnings named the jargon instead of the gap.** "Bug icin repro adimlari yok" tells a reader what is missing only if they already know what repro steps are. The two warnings that get read most now say what is absent in plain terms: what was done, what was expected, what happened; and, for acceptance criteria, that nothing says what "done" looks like.

- **Stale surface counts.** `docs/architecture.md` and `docs/ecosystem.md` still described Copilot CLI as carrying 51 skills while naming 53 for the other two hosts in the same diagram and the same table row; the installed tree has 53. `skill-siblings.mjs` carried the same stale number in a comment.

- **The phase widget disappeared because the task tools now depend on the model.** Claude Code provides `TaskCreate` / `TaskUpdate` by default only on Claude 3.x, Opus 4 through 4.7, Sonnet 4 through 4.6 and Haiku 4.5; on any newer model it leaves them out unless the user opts in, and that default arrived in v2.1.268. This contract named those calls in the very first release and was right for years, so nothing noticed the default change: a run wrote its tracker state correctly, advanced all eight phases, and drew nothing on screen for the whole run.

  It went unnoticed because the gate asserted the wrong thing. `smoke-tracker-widget.sh` checked that `tiles` PRINTS five `TaskCreate(` lines - a claim about our own output, not about the tool existing - and no run log in the local tree has ever recorded a `TaskCreate` call. That is the same shape as the `tokens` defect described one entry below it in 16.23.0: a gate that lints prose rather than a run.

  Both `tiles` and every phase boundary now name the fallback on the same output: the bordered card IS the widget there, reprinted inside the reply exactly as on Copilot CLI, and `tiles` renders the card itself so the content is already on screen. They also print the one command that brings the native widget back - `CLAUDE_CODE_ENABLE_TODO_TOOLS=1 claude` - because a user staring at a missing widget needs the command, not the diagnosis. The branch is taken by the agent, which knows its own tool list; a shell script cannot see it.

  **Naming the fallback was not enough: the card came back in the wrong shape.** With the instruction reading "reprint the card", a run redrew it as two compact lines and dropped exactly what a reader watches for - the per-phase rows, the elapsed time and the running token count. The card was on screen and the information was not, which is the failure the fallback existed to prevent. Both the `tiles` banner and the per-boundary hint now say to run `render` and paste its output VERBATIM inside a code block, and forbid the three ways it was lost: redrawing it, folding phases onto one line, dropping the columns. The gate asserts the wording on both surfaces and asserts `render` itself still emits one line per phase, a token column and a total row.

---

## [16.28.0] - 2026-09-10

### Added

- **The analysis sub-task the pipeline never read.** A development sub-task is usually filed with no description of its own. The fetcher already read the parent when that happened; it never read the siblings, so a board that keeps its analysis in a separate sub-task handed the pipeline an empty task and nothing said so. `issue-fetcher.sh` now reads the parent's other sub-tasks into `descriptor.relatedIssues[]`.

  One search request buys all of them with their descriptions, and only when the issue has a parent, because an issue with no parent has no siblings. That cost claim is measured by `smoke-jira-context.sh` rather than asserted: it counts the requests the fetcher actually issues. The issue's own `subtasks` field lists ITS children, and the parent's lists siblings without descriptions, so either of those shapes would have cost one GET per sibling.

  The payload never touches the `\x1f`-delimited parse the rest of the descriptor travels through - it arrives as one JSON argv - so the eight-field parse, its trailing-newline strip and its unfetched fallback are byte-for-byte what they were. The parent key is re-validated against an anchored pattern before it reaches the query: it comes from the API, but it goes into a URL.

  It reaches `agent-state.json`, unlike the parent feature it sits next to. `/multi-agent:resume` rebuilds context from durable artefacts and never from the conversation, so an intake-only enrichment would be gone by the first resume. The task's own description and maturity are still not persisted; that asymmetry is now written into the schema so the next reader does not mistake it for an oversight.

  `description_empty_sibling_available` fires only when the issue's description AND the parent's are both empty AND a sibling has content, downgrading what is today a hard blocker. The narrowness is the point: `score` loses ten points per warning and the picker only continues silently at `score >= 90`, so a warning that fired whenever an issue merely HAD siblings would turn every parented intake into a question.

- **How many reviewers actually saw a finding.** Phase 4 anonymizes findings so the judge cannot mark its own homework, but the merge stayed a pure judgement call: `validate-triage.mjs` surfaced a repeated fingerprint as a warning and left it there. `anonymize-findings.mjs` now stamps `corroboration: {count, of}` - distinct reviewers per fingerprint - computed where the whole panel is already in one payload, so it costs nothing.

  It is context, not a rule. `docs/adr/0001-three-model-triage.md` rejected majority voting because the same hallucination shows up in two of three same-family reviewers, and that decision stands: the triage hedge now covers corroboration in the same sentence it covers prior art. The reading that pays is the other end - a count of 1 is the finding only one reviewer saw.

- **`council-view.mjs`** renders what each reviewer found and what triage did with it. Everything it needs was already on the state and nothing displayed it; `run-metrics.mjs` reduced it to a ratio and the rows behind the ratio were invisible. De-anonymization is safe here because it runs after triage has ruled, and the gate pins that the map reaches no prompt. `/multi-agent:log` renders it; exit 2 means the run never reached Phase 4.

- **A validator summary that says which checks ran.** `validate-analysis-doc.mjs --report` prints every check by name with a verdict each: `ok`, a finding count, or `skipped: <reason>`. The gap it closes is specific - the traceability matrix only runs in the corporate profile, so on a global document it never executed and the output was byte-identical to "ran, found nothing". Attribution is positional and reconciles by construction, so a check added without its mark misnames a finding but can never lose one; the gate asserts the printed set equals the set the file defines. Default output is unchanged for gate callers.

- **Provenance in the reports a human reads.** `evidence_digest` and `base_commit` were already in the document front-matter, on the side only a machine reads. The analysis Phase 5 report, the `review-analysis` verdict and `--report` now carry them too: a timestamp cannot separate two reports made the same day, and the first question anyone asks of an older verdict is which version of the document it judged.

- **A verdict prints its empty classes.** `review-analysis` now names all six rubric classes and every deterministic gate whether or not they fired, with `none` where the count is zero. A verdict that lists only what it found cannot be told apart from one that never looked.

- **The uncertainty marker, in both profiles.** The two-way `AS-NN` pairing between the body and Section 20 ran only under `profile: corporate`, which made the global profile the one place an inline marker could point at nothing. Two documents already said otherwise - Locked 36 makes an unstamped gap fail the dispatch gate with no profile clause, and `analysis/render.md` routes an external-dependency gap to `AS-NN` for every run - so the check was the only side that disagreed. A document carrying no markers is unaffected: every loop is empty.

- **Every open question names an owner.** "A gap with an owner is a plan; a gap without one is a defect" lived in `analysis/review.md`, which is a model's judgement. It is now a validator error. The owner column is located from the table header rather than by index, because the two profiles order Section 20 differently and an index would silently read the wrong cell in one of them.

- **`status: draft | final`, the closure gate.** Nothing stopped a document with open questions from being published. Under `final` an unresolved `AS-NN` or an open Section 20 row is now an ERROR; under `draft` it is counted and nothing blocks. The key is optional and absent means `draft`, so no document written before it starts failing. `/multi-agent:analysis-resolve` flips it at the end of a run, with a confirmation - `final` is a publication claim, and that command is built on one question per decision.

- **`not-for:` frontmatter, and a warning that shrinks.** `lint-skills.mjs` reported nine trigger-vocabulary collisions every run and the list never moved: an author read it, had nothing to do about it, and stopped reading. A skill may now name the siblings it must not be chosen for, which the model sees on the routing surface itself and the lint consumes to drop the pair. Suppression is never silent - settled pairs are counted - and a name that resolves to no sibling on the same surface is an error, because a typo would otherwise leave the pair unanswered while the author believes it is handled. `review-issue`/`review-jira` and `issue`/`jira` are tagged; the list is five.

- `ANALYSIS_CEILING` 154500 -> 155000. The report shape is defined only in `analysis/render.md` and a front-matter key is documented only where the front-matter block is, so those two additions had to land inside the count; everything else in this pass stayed outside it. Both were compressed once before measuring, and 295 bytes of headroom against 213 still owed left no way to avoid the raise.

- **Redesign mode.** `options.redesign` is an intake opt-in that adds three artefacts to the document, all of them claims about v1 rather than plans for v2: current behaviour with `CB-<slug>-NN` ids and `repo/file:line` citations, the v1 to v2 endpoint mapping, and a difference list over a closed status vocabulary (`Moved / Partial / Missing / New / Out of scope`). Every `Missing` and `Partial` owes a Section 20 row by `AS-NN` - a behaviour v2 drops with no decision is the thing a redesign loses and production finds.

  It is an option, not a third `mode` value. `mode` says how many sections, `redesign` says which content, and since `mode === "full"` branches in four places inside the validator, a `mode: redesign` would have switched off the traceability matrix, the Test Plan requirement and the rule-to-test cross-check in exactly the documents that need them most. A small screen can also have a lite redesign.

  Eight validator checks, of which two are worth naming: a `CB-` id present in one table and absent from the other fails in **both** directions, and the three sections must exist before any row check is trusted, because row checks over a missing section pass over nothing and show the gate green. Evidence and certainty are derived by the renderer from `repoEvidence`, never graded by the writer, which is Locked 24 applied to a second table. `options.redesign` is an `evidence_digest` input: without that one line, a redesign started within a day of a normal run on the same feature would reuse that cache, skip Phase 1b and render an empty behaviour table that all eight checks then pass over.

  The contract, its reasoning and the check table live in `analysis/redesign.md`, which `analysis/SKILL.md` does not name and which therefore loads only on a redesign run.

- `ANALYSIS_CEILING` 155000 -> 158500, the largest single raise it has taken. What could not be moved out is the argument: the section skeletons belong in `analysis-template.md`, where every other conditional section (15.6, 16.2) is already defined; Locked 37 belongs in `analysis/locked.md`, because a decision recorded only where it is implemented is not locked; and the intake question belongs in `analysis/intake.md`, because the option is chosen before anything knows the run is a redesign. 5.9 kB stayed outside the count. Everything was compressed twice before the number was picked.

### Fixed

- `learn-from-transcripts.mjs` called `process.exit(0)` on the line after writing its `--json` result, so a large mining result was cut at the 64 KB pipe buffer - the exact defect the gate added in 16.27.0 exists to prevent, in the file that motivated it. The gate caught it; the two sites it named are now a `main()` with a return.

- `skill-siblings.mjs` resolved its trees from the script's own location with no fallback, so from an install (`~/.claude/scripts`) it looked for `~/pipeline/commands/multi-agent`, found nothing, and exited 1. `observations.mjs` caught that and wrote the note `"<target>: not a skill surface"` about files that are skill surfaces - a friction log silently keeping a false record. Resolution is now two-candidate, repo first then the install, and from an install the authored surfaces are reported as not applicable rather than absent: `--audit` says the authored side was not checked instead of borrowing the repo's verdict.

- The stdout-exit detector in `smoke-consumer-smoke-surface.sh` only matched a literal `process.stdout.write` on the line, so `console.log` and any one-line helper wrapping either (`emit()`) were invisible to it. It now resolves same-file helpers one level, skips declaration lines and stops the lookahead at a control-flow terminator. The three analysis validators are on the watch list and converted to `process.exitCode`.

- `smoke-install-layout.sh` fixture regenerated: `council-view.mjs` and `features/jira-context.md` moved the installed counts.

- **The closure gate read the wrong row, and then read it wrongly.** `status: final` decided whether an `AS-NN` was still open by taking the first table row in the document that mentioned the id. The corporate template writes `| **Request** | EKLENECEK (AS-NN) |` in the body, so that row won and a final document shipped with live placeholders. Openness now comes from the Section 20 row only, and from its status CELL located by header - and where there is no status column (the corporate Section 20 has none) an `EKLENECEK` still stamped with the id is itself the signal.

  The second half of the same line was a substring search: `açıklama` contains `Açık`, so a correctly closed Turkish row reading `Karar verildi / Decided` whose question text said "hata açıklaması" was reported as open and blocked. The status vocabulary is now matched per token across the bilingual `/`, never as a substring. English had the same trap in "reopened".

- **A finding that arrived inside a skipped check vanished from `--report`.** `mark()` printed the skip label whenever one was passed, so a malformed `status` value (caught by the closure gate, which then reports "draft document") and the redesign drift warning (raised by the branch that reports "not a redesign") were both on stderr and absent from the report. A count now outranks a skip label, which is what makes the registry's own claim - that a finding can be misnamed but never lost - true.

- **`council-view.mjs` rendered every ruled-out finding as `unruled`.** `triage-output.schema.json` defines a deferred or rejected item as `{finding, reason}` - the reason is the point of those buckets - while `accepted[]` is a flat finding. The view read the id off the wrapper. Its own fixture used the flat shape, so the gate passed; the fixture is now checked against the schema it represents.

- `council-view.mjs --iteration` with no value made the filter compare against `NaN` and exited 2 on a state full of iterations. `/multi-agent:log` reads exit 2 as "the run never reached Phase 4" and omits the section, so a usage error looked like an empty run. It is now exit 64.

- The endpoint-mapping column check counted raw `|` segments, so a valid GFM row without the optional trailing pipe was reported as short.

- The redesign drift warning fired on prose that merely used the words. `sectionBody` matches its keyword as a raw substring of the heading, deliberately, because Locked 2 re-flows section numbers - so `### 4.9 Notes on the old Current Behaviour audit process` matched, and Phase 4 runs `--strict`, which turned that warning into a blocked document. The rendered artefact is the honest signal: a current-behaviour table always carries `CB-<slug>-NN` ids and a paragraph using the words never does.

## [16.27.0] - 2026-09-10

### Added

- **A run that dies before Phase 7 keeps what it learned.** Every durable write - the triage ingest, the ledger distill - lived in Phase 7, and Phase 7 is the phase a run is LEAST likely to reach, as `features/code-graph.md` already admitted in passing. A run killed in Phase 3 threw away every finding it had established, and the next run on the same repo paid to rediscover it.

  `capture-flush.sh` derives those writes from `triage-output.json` plus `agent-state.json` - no model, idempotent, exit 0 on every path. Phase boundaries call it, a new `SessionEnd` hook calls it with `--if-stale`, and Phase 7 is now the LAST flush rather than the only one. The trigger is deliberately mechanical: a phase transition and a process exit, neither of which needs an agent to notice that a moment qualifies. Measured on a synthetic kill at Phase 3 against the real stores: 3 corpus rows and 1 ledger entry, where before there were none.

- **Work done outside a pipeline run is no longer invisible.** `rules/outside-the-pipeline.md` actively sends the user to work outside a run, and nothing captured any of it. `note-session.sh` reads the session's own transcript on `SessionEnd` and keeps the mechanical shape: which tools ran, which commands failed, which calls the user refused. It keeps a command's first word and an exit code - never an argument, never any output - because a transcript is the least-redacted artefact on the machine.

- **The pipeline's own friction log** (`observations.mjs`, `refs/refactor/observations.md`, `/multi-agent:refactor backlog`). The learnings ledger records what a run learned about a REPO; nothing recorded what it learned about the PIPELINE, because `/multi-agent:refactor` re-derives every finding from scratch and a friction noticed mid-task is gone by the next run unless it was fixed within the hour.

  One markdown file per observation; the directory listing is the index, since an index is a second copy of the truth and the second copy goes stale. `scan` reads frontmatter only. Two things it refuses: an empty `siblings_checked` (filled mechanically by the new `skill-siblings.mjs`, which resolves a command's five surfaces - authored, mirrored, and three host trees - because recollection is the faculty that produced the drift), and a `parked` status with no `parked_until`, which is a deferral wearing a friendlier word.

- **Lessons the model never noticed** (`learn-from-transcripts.mjs`). Phase 7 asks a subagent to read the run log, which is structurally blind to the repetitions worth catching. This correlates instead of interpreting: a failed read against the read that then worked, an identical invocation that kept failing, a search too narrow, a call refused twice, a file too big to read whole. Dry run by default; `--apply` writes to the ledger stamped `source: transcript-mining` and renders a marked block in `CLAUDE.local.md`.

  The first version mined 23 candidates from 35 real transcripts and nearly all were noise - shell keywords read as program names, two ordinary failures presented as environment facts. Rebuilt on the exact command text with a threshold of three, it mines 0 from those same transcripts, and the output now reports `toolResultsExamined` alongside the count so "nothing to find" and "the read is broken" stop looking identical.

- **Neighbourhood retrieval** (`timeline --anchor` on both stores). Search answers "which rows match"; nothing answered "what else happened around this one", so the only way to ask was to fetch the whole corpus and nobody asked. Both files are append-only, so line adjacency IS chronological adjacency - no index, no timestamp arithmetic. The four retrieval layers and what each costs are now written into `/multi-agent:search` and `refs/knowledge.md`, because the order costs more than the query does.

- **Structural offload instead of truncation** (`crush-json.mjs`). `offload-ref.sh` left a pointer plus the last N lines. For a build log the tail is the right stub; for JSON it is the final element and some brackets. Now a JSON payload gets field shape, outliers, and every element carrying an error, with the repetition dropped. Measured on real payloads, single-sample: a `gh api` page 271133 -> 74961 bytes, a 22 MB code graph -> 1.85 MB, and an `npm ls` tree returned unchanged because there was nothing to win. Fail-open throughout: not JSON, code, too small, any error, or any saving under 15% returns the input byte-identical.

- **Two measurement columns** in `learning-curve.mjs`: mined lessons per task and offload bytes saved per task, emitted by the two features above. They are kept apart from the model-written lessons on purpose - a single "lessons learned" number can climb while the half that actually prevents a repeat stays flat. `null`, not `0`, when nothing was recorded: no data and a measured zero are different answers.

### Fixed

- **A large read was being truncated at exactly 64 KB, silently, and only through a pipe.** `process.exit()` immediately after a `process.stdout.write()` cuts the write at the pipe buffer. Measured: `triage-memory.mjs query --json` returned 117651 bytes to a file and 65536 to a pipe; `learnings-ledger.mjs profile` returned 324056 against 65536. The profile block is injected at the HEAD of a phase prompt, so a large ledger was delivering a truncated, mid-JSON-line profile and nothing said so. 25 call sites now set `process.exitCode` and return, and a gate keeps them that way.

- **Concurrent observations shared one id.** Read-the-max-and-add-one gave eight simultaneous adds the same `0001`. The files did not collide, since their slugs differ, so nothing looked wrong - but `resolve --id` then picks whichever the listing returns first and resolves the wrong observation. The id is now claimed with an `O_EXCL` marker.

- **Setup merged one hook event and dropped the rest.** The instruction said to deep-merge `hooks.PreToolUse`, so the capture hooks would never have installed - the fix would have shipped inert.

## [16.26.0] - 2026-09-09

### Fixed

- **The credential store mangled every multi-line secret, and the failure surfaced three layers away.** `security` picks its output format from the _content_ of the value: anything it deems non-printable - a newline included - comes back as bare hex with no marker, and the reader took that at face value. A Firebase service-account JSON went in and `7b0a2020...` came out, which is neither JSON nor base64, so the Crashlytics fetcher reported a token-exchange error for a credential that was stored perfectly. The write side had the mirror defect: `security -i` is line-oriented, so a newline inside `-w` terminated the command mid-value and the item was never written at all.

  `keychain.py` now reads with `-g` and decodes on the explicit `0x` marker rather than guessing from shape, and writes with `-X <hex>` so no value can be cut at a newline. Lookup also walks all four attribute conventions (`-a`+`-l`, `-a`+`-s`, `-l`, `-s`) instead of one.

- **The base64 assumption that was never true.** `fetch-crashlytics.sh` tried a base64 decode before falling back to raw JSON. Neither branch could ever have fired for the real failure above, and the guess had spread into `keychain.md`, `features/url-enrichment.md` and the `keychainMapping.firebase` schema description, all of which told the reader to store an encoded blob. The store returns what was stored; encoding is its own business. With the decode step gone there is nothing to stage on disk either, so the temp file and its cleanup traps went with it - the service-account JSON now only ever exists in a shell variable.

  The assumption had spread further than the reader: `keychain-save.sh` base64-encoded a JSON file on the way in and printed a `| base64 -d` hint on the way out, and both setup surfaces told the user to pipe the clipboard through `base64` - so the writer and the reader disagreed and a fresh onboarding produced a credential the fetcher could not use. Worse, two gates had pinned the wrong text: `smoke-url-enrichment.sh` asserted the literal "JSON (base64)" across three files and `smoke-fetchers-offline.sh` fed the fetcher a base64 stub, so the suite was defending the defect. All nine sites now say the same thing, and the gates assert that no surface asks the user to encode it.

- **Three ways the credential inventory could lie, all shipped at once.** The inventory prints three columns per credential and each came from a different place with nothing tying them together: `graylog_test` and `usage_ingest` were onboarded by setup and printed "(no capability recorded for this key)"; the `jenkins` probe read `global.hosts.jenkins`, which the schema does not declare and `additionalProperties: false` forbids, so a healthy token was permanently reported as `no-host-configured`; and `appstore_connect_private_key` carried both a probe and a capability line for a mapping that cannot exist, since the `.p8` is a file by design - as the schema says two keys over. Each file was internally consistent, which is why review kept passing them.

  Capability lines now cover every mappable key including the deprecated aliases, `graylog_test` probes its own host, `hosts.jenkins` is declarable, and the dead `.p8` branch is gone.

### Added

- **Crashlytics access is measured, not assumed - three tiers, and the probe says which one is live.** The inventory used to check that the Firebase credential parsed as JSON, call it `well-formed`, and on that basis announce it would pull stack frames. Shape was never the question. A freshly generated `firebase-adminsdk-*` account authenticates perfectly and reads nothing until an Owner grants it a Crashlytics role, which no shape check can see - so the inventory promised evidence the credential could not deliver, and the run that believed it asked the user to paste the trace by hand.

  `fetch-crashlytics.sh --probe` now answers `tier-1-ready`, `tier-1-no-grant`, `malformed` or `unreachable` by asking IAM what the service account may actually do (`testIamPermissions`), not by calling Crashlytics and interpreting a 403 - a 403 also means a disabled API or an empty project, and those need different fixes. It lives in the fetcher so the JWT exchange has exactly one implementation; a copy in the inventory would be the one that drifts. The inventory adds `tier-2-ready` on top, measured from the host: an interactive `firebase login` session **and** a registered Firebase MCP server, since either half alone reaches nothing.

  Tier 1 wins whenever both are ready, and that is structural rather than a preference: url-enrichment expands a Crashlytics link found in a Jira ticket with nobody watching, and autopilot has no terminal to log into. A tier needing a browser cannot serve those. `capability_of()` now reads the verdict and says what this credential buys **today** - down to "nothing yet, and here is the one line to send an Owner".

- **`refs/setup/firebase.md`** - the three tiers and how each fails, the exact role-request wording, why `firebase login` cannot run inside an agent harness, MCP registration with its three scopes (and why `project`, which commits the server for everyone who clones the repo, is never the default), appId discovery, and the v1alpha caveat written down so that when Google withdraws an undocumented surface the failure is diagnosable rather than mysterious. Setup gained a Step 3c in both surfaces that reads it.

- **`firebase-app-discovery.sh` - the repo already knew the appIds.** Every Crashlytics call needs the opaque `1:<n>:ios:<hex>`, and a console URL carries only the bundle id, so the fetcher spent a Management API round trip resolving it on every run. `GoogleService-Info*.plist` and `google-services.json` name both ids; the script reads every match (a repo with several targets has several plists, and they do not all point at one project), skips build outputs, and emits entries shaped for `prefs.global.firebase.accounts[].apps[]`. The fetcher prefers that when present and falls through to the API when absent, so an install that never ran discovery behaves exactly as before.

- **An encoding-regression gate.** `smoke-keychain.sh` stored a short ASCII word, which is exactly the value class that never reproduced the bug. It now round-trips a multi-line service-account JSON (and asserts it still _parses_, not merely compares equal), a hex-looking string, embedded quotes and backslashes, non-ASCII, and leading/trailing spaces.

- **A gate for the shipped-but-dead script.** `firebase-app-discovery.sh` was written, installed onto every machine by all three hosts, and invoked by nothing: its only mention sat inside a comment in another script. That is the declared-but-inert defect in its purest form - the docs describe a capability, the install carries the code, and nothing connects them. `smoke-consumer-smoke-surface.sh` now checks every shipped script for an actual invoker, and is deliberately picky about what counts: comment lines, JSON schema descriptions, CHANGELOG and ROADMAP entries all name a script without ever running it, and each of those, left in the corpus, made the check pass on the broken state while it was being built.

- **A promise/probe/schema consistency gate.** `smoke-credential-key-alignment.sh` now enforces what nothing enforced: every mappable key has a capability line, every probed key has one, no capability is promised for a key the schema cannot map, and every host the probe reads is declarable. It also pins the tier vocabulary across the three files that name it - probe, capability line and user-facing table - so a new tier cannot ship half-wired, no shape-only verdict can come back, and the JWT exchange cannot quietly acquire a second copy.

## [16.25.1] - 2026-09-09

### Fixed

- **A contract that named two consumers neither of which read it.** `features/design-conformance.md` shipped declaring Phase 4 review and `features/visual-evidence.md` as consumers; both were silent. That is the declared-but-inert class the prefs gate already hunts elsewhere - the contract looks wired, the surfaces never open it.

  `visual-evidence.md` now points at it for what a capture is worth checking against: one contract owns getting the picture, the other owns reading it. Phase 4 Step 1.8 cites it in place of a hand-rolled list of eight visual-fidelity items (avatar icon, field grouping, character counter, header style, inline error layout, button height, indicator chip, placeholder copy) that were an ad-hoc subset of what the 30-group catalog now defines properly - so the step got shorter _and_ stricter, and carries the two rules that matter in review: a height or inset is measured rather than read from the token under test, and an unrun check is a fail-to-verify.

  `smoke-design-conformance.sh` gained the check that would have caught it: every consumer the ref names must cite it back.

## [16.25.0] - 2026-09-09

### Added

- **`features/design-conformance.md` - the component walk, ported as doctrine rather than as a tool.** An upstream corporate screen-QA skill landed with a catalog worth having, and the pipeline already owns this problem in `/multi-agent:design-check`. Copying the skill would have produced a second design auditor that drifts from the first, so what came across is the part that is portable: the catalog and the three mechanisms that turn "I looked at it" into a countable result.

  **Enumerate first.** Build the component inventory once, before any comparison, with elements nested inside buttons, fields and cards exploded into their own rows - an inventory built by kind drops a button silently, and with it the button height and its label. Then fill every cell: a blank one is a fail-to-verify, never a pass.

  **Measure, never read the token.** A `[MEASURE]` item compares the design against measured pixels or the resolved code value, never against the design tool's node box or the implementation's own layout token. The token is the thing under test; comparing it against itself is how a 48pt field ships against a 56pt design with every check green.

  **Converge per component.** One pass catches roughly one defect on a component - the wrong font, and not that same label's wrong colour and inset. Each component is re-checked until two consecutive attempts find nothing new, capped at attempt 8 with a `did-not-converge` warning. The screen is done when every component converged, not when the walk reached the bottom.

  Plus the four scope tags (`[MEASURE]` / `[CAPTURE+]` / `[A11Y]` / `[DYNAMIC]`, and a `[DYNAMIC]` item may never be silently passed), the 30 rule groups, and the bidirectional presence gate - which finds not only what the design has and the implementation lacks, but the neutral decoration the implementation adds that a one-directional colour comparison cannot see.

### Changed

- **`design-check` no longer halts on a module without mock support.** The mock gate gains a snapshot lane: a screen that can be rendered from its own view model is auditable even when nothing can toggle a variant at runtime. The trade is stated rather than hidden - snapshots reach modules mocks cannot, and cannot flip an in-app variant - and a declined or impossible snapshot still halts rather than fabricating a comparison.

- **The report says what it did not check.** The per-variant record gains `walk`: how many components were inventoried, how many converged, which ones hit the cap, and every `[DYNAMIC]` / `[CAPTURE+]` item that was not run, with its reason. An empty not-verified list on a run that never captured a dark or mirrored pass is a false clean, so the skip is listed instead.

- **`derivedSkillSources` records what was reviewed and refused, not only what was taken.** New `derivationNote`, `excluded` and `notDerived` fields. `tools/openapi-regen` is marked deliberately-not-derived at 0.45.0 with its reason: the skill's value is being a driver around three named scripts in one repo, so renaming its brand words leaves a skill pointing at scripts nobody else has. Without that record, every drift review rediscovers the same candidate and re-argues it.

- **`smoke-design-conformance.sh`** - 26 checks. Half of them guard the doctrine against being trimmed back into a glance; the other half name the project assets that must never arrive: a vendored colour catalog carrying cabin-class names, a typography catalog carrying licensed font families, product screen names, upstream script names. Those leak by content and carry no brand word, so a gate that greps for a company name would pass them.

## [16.24.0] - 2026-09-09

### Added

- **A UI fix now carries its picture.** Three changed files in a diff do not tell a reviewer what was wrong, and they do not tell a tester what to look for. When `taskType` is `bugfix` and a UI file changed, the run produces a before/after pair; when the work is design (a `component` task, a Figma reference, or a UI file that did not exist before), it produces the after. The verdict comes from `taskType` plus the changed-file list, mechanically, not from the model's reading of the task - the UI-file test is per stack and written down.

  **Before is the reporter's screenshot, or nothing.** Rebuilding the pre-fix state to photograph it costs a second build and a second launch on every UI bug, to recreate evidence the reporter usually attached already. So Phase 0 keeps the issue's own image attachments and that is the whole of it; no image on the ticket is a recorded gap, not a search.

  **After is captured in Phase 3, not Phase 5.** Phase 5 is the natural home - the simulator is already up - and it is dropped by every `autopilot` and `--local` entry, so a capture living only there produces nothing for exactly the runs nobody watched. It happens instead right after the build+test gate goes green, which is in every mode's phase set. `capture-evidence.sh` owns the naming, cleans the status bar (two shots of one screen otherwise differ by the clock, which makes every "after" look like a change) and downscales to 1242px.

- **The flow video, in three tiers, so no repo is excluded by not having a test target.** Tier 1 runs the repo's own XCUITest/Espresso target when it can be seeded with test data - the most faithful record, and it is a test that already runs in CI. Tier 2 drives the flow with `agent_run_steps` and records with `ios_record_video` / `android_record_screen`, needing nothing but a launchable build. Tier 3 is the honest skip for a library or a backend, with the reason recorded. The flow itself comes from the ticket when someone wrote one there, and from the Phase 5 test scenarios otherwise: human-written beats generated, the same rule the before follows.

- **Where they land.** The artefacts are Jira attachments. The Phase 7 comment renders them _inside_ its existing sections rather than adding a fourth - the section order is fixed and the contract says so - with the before/after thumbnails under the work summary and the flow video under the scenario it demonstrates. The PR body gains a `visuals` section that names the filenames and the ticket, deliberately not the URLs: a Jira attachment URL is auth-gated and renders as a broken image for anyone reading the PR outside a Jira session.

- **Degrading quality is allowed; dropping the artefact is not.** Jira's ceiling is an instance setting, so it is a preference (`visualEvidence.maxAttachmentMb`, default 10). Over it, a video re-encodes to 720p and a screenshot to JPEG q80; still over, the video becomes a four-frame contact sheet that says why. Phase 6 Step 3 blocks when a required artefact is neither attached nor explained - the gate is against silence, not against an honest "the ticket carries no image".

- **`smoke-visual-evidence.sh`** - 32 checks, most of them about stated absence being as required as stated presence: both scripts refuse bad input rather than guessing, the size ladder never returns an empty path, all four phases act, both renderers know where pictures go, the schemas declare the fields, and no ref re-implements the attachment POST.

### Changed

- **One Jira uploader instead of two.** `generate-issue.md` carried its own attachment `curl`; visual evidence would have been the second copy, and two copies is two places for `X-Atlassian-Token: no-check` to go missing - which fails as a 403 that reads like an auth problem. Both now call `jira-attach.sh`, which resolves host and token from prefs, keeps the token out of argv, and prints `<filename>\t<url>` per file.

## [16.23.0] - 2026-09-09

### Fixed

- **The progress signal reached stdout and stopped there.** `phase-tracker.sh render` prints a bordered card at every phase boundary and it was always correct on disk. It was also invisible: the hosts collapse tool output into `Ran 8 shell commands`, so the card the contract calls "the last tool result in the chat" has not been in the chat for a while. A run showed its pickers, went quiet for forty minutes, and finished without ever drawing its shape.

  Each host has a widget and now the tracker names its calls instead of hoping they are remembered. `phase-tracker.sh tiles` reads the phase set already registered by `add` and prints the registration calls for the host it runs from: a `TaskCreate` list on Claude Code, one `update_plan` payload on Codex, and on Copilot CLI - which has no task widget at all - the instruction to reprint the card inside the reply, plus the card. Every `update` then prints a `-- NEXT (required) --` block carrying that host's mirror call. Phase 0 Step −1 calls `tiles` right after the `add` loop; the Copilot instructions template does the same.

- **`phase-tracker.sh tokens` was documented, linted for, and never called.** Not once: no run in the local log tree had a `tokens_in`, `tokens_out` or `model` field on any phase, going back weeks. Every phase priced at `-`, every required completion line printed without its numbers, and every gate stayed green - because `smoke-tracker-tokens-invocation.sh` lints that the phase docs _mention_ the call, which is a claim about prose, not about a run. `payload-contracts.md` had already written that limitation down.

  The gate moved to where the call would have landed: `update <N> completed` now **exits 3** for phases 1-4 when nothing was recorded, prints the two commands that clear it, and leaves the phase exactly as it was - record, then re-run, nothing lost. A phase that genuinely ran no LLM call completes with `--no-llm`, which is recorded so the report can tell "nothing" from "unknown". Phases 0 and 5-7 are orchestration and are not gated, and `skipped` never is, because Short skips 1 and 2 by design.

- **A full model id silently cost nothing.** `cost-table.json` is keyed by family (`opus`, `sonnet`, `gpt-5.6`) while the name an agent has at hand is `claude-opus-5`, and the mismatch priced the phase at `-` with no complaint anywhere. `model` now resolves the family and says so out loud, listing the priced names, when it cannot.

### Added

- **`phase-tracker.sh report` - the closing report the run never printed.** Per phase: status, elapsed, tokens in/out, model and USD; then the run total, and an explicit list of any phase it could not price rather than a silent gap. Phase 7 prints it beside `render-work-summary.sh` (scope delivered, changed files with line counts, PR and commit links) so the end of a run answers both questions at once - what the pipeline spent, and what it changed. `format_span` gives the total an hours bucket; the per-phase card keeps minutes.

- **`smoke-tracker-widget.sh`** - 31 checks over the parts that were failing quietly: `tiles` emits the right call for each of the three hosts and starts at phase 0, the accounting gate fires and is recoverable, `--no-llm` is honoured and recorded, a full model id resolves to a priced family, every `update` carries its host's mirror call, the report prices what it can and names what it cannot, and the phase docs actually make these calls.

### Removed

- **The four `dev` redirect stubs are gone from the command surface.** `16.0.0` turned pipeline depth into a question the run asks at Phase 0 Step 7.5 and left `multi-agent-dev`, `multi-agent-dev-autopilot`, `multi-agent-dev-local` and `multi-agent-dev-local-autopilot` behind as stubs that printed a redirect and nothing else. Each one said, in its own body, that it would be deleted in the next minor. Twenty-one minors later they were still in the picker: typing `/multi-agent:` still offered `dev`, still described it as removed, and the description was the only thing it did.

  Deleted from every surface that carries them - Claude Code commands, the shared skill tree, the Copilot dash-command skills, the Codex refs mirror - along with the generated indexes (`.skills-index.json`, `skills-index.md`, `shared/README.md`, `.skill-manifest.json`, now 207 skills rather than 211) and the migration lines in `multi-agent-help` and the Copilot instructions template. `smoke-pipeline-surface.sh` check 5b, the gate that fails when a shipped file points a reader at a retired name, loses the four exemptions that existed only because the stubs and their generated index rows were allowed to name themselves; it is strictly tighter now.

  Nothing about the surface changes for anyone who has already migrated: the break shipped in `16.0.0`, this is the tombstone coming down. `/multi-agent` and `/multi-agent:local` still ask Full or Short, and Short is still what the removed flag used to mean.

- **The four names themselves, everywhere they were still readable.** Deleting the directories left the names sitting in prose, and prose is what a user acts on. Gone from the dispatcher routing table (the `--dev` / `dev-*` redirect row), from `modes.md` and `phase-3-dev.md`, from `resume-local` and `local-autopilot` (which described themselves in terms of a command that no longer exists), and from the `ios-coding-standard` picker description, which had been telling readers to hand their remediation plan to `dev/dev-local` - a description is the one piece of a command everybody reads.

  `examples/03-dev-mode-fast-path.md` was the worst of them and no gate could see it: `smoke-pipeline-surface.sh` check 2 scanned `pipeline/`, `docs/`, `install/` and `test/`, never `examples/`, so a whole worked example kept teaching `--dev` fourteen minors after the flag was removed - and contradicted itself while doing it, listing Phase 4 as skipped when Review has not been skippable since `14.0.0`. It is now `examples/03-short-run-fast-path.md`, written against the depth question, with the phase list and the transcript corrected. The `--dev` invocations in examples 01 and 02 and in the bug-report issue template went with it.

  With nothing left to detect, the deprecation-era gates came out too: `smoke-pipeline-surface.sh` loses check 2 (the `--dev` flag scan), check 5b (the retired-name scan) and both planted probes, and `smoke-mode-dispatch-drift.sh` loses the two loops that named the four modes - the generator's unknown-mode guard already covers them. The gate is 203 lines down to 98 and every remaining check asserts something that can still be false.

  Left alone on purpose: `CHANGELOG.md`, `CHANGELOG-archive.md`, `ROADMAP.md`, `docs/internal/` and the calibration log in `token-budget.json` are history, and rewriting them would misrepresent what shipped when. So is the runtime label `"dev"` that `state.onlyDevelop` still produces for the cost report and the component-dispatch payload: that is a run shape, not a command name, and renaming it would break the plugin contract and orphan every log already written.

## [16.21.0] - 2026-09-08

### Added

- **A read-size gate, and a cheap worker to send an oversized read to.** `offload-ref.sh` took half the machinery bill in 15.10.0 - the build log, the diff, the test output become a pointer plus a tail. The other half was never looked at, because nothing could look at it: only a `PreToolUse` hook sees a tool call before it runs. A phase that reads six 900-line files pays for 5,400 lines at that phase's own rung, and the part it needed was a handful of symbols.

  `check-read-size.sh` (+ `check-read-size.py`, the decision core) is the third hook in `install/templates/claude-hooks.json` and the first on the READ side. `bulk-read.sh` is where a blocked read goes instead: the file reaches a haiku-rung worker over the `bulk-reader` persona, and what comes back is a structured summary with LINE NUMBERS, so the caller's next step is a bounded `Read(offset:limit:)` around the region that matters - which is cheap, exact, and passes the gate. The full text is parked under `.multi-agent/refs/`, the same place and the same promise `offload-ref.sh` makes.

  **`observe` is a real mode, not a debug flag.** It decides and logs, blocks nothing, and it is what `bulkRead.mode` should be set to first: a gate switched straight to `enforce` has no baseline to be compared against, and "we cut tokens" becomes a claim nothing can check. The saving is measured from `metrics.jsonl` (`read.observed` / `read.blocked` / `bulk_read.delegated`), not asserted here - this entry deliberately quotes no percentage.

  **Phase 3 is exempt, and that is load-bearing.** Claude Code's `Edit` requires the same file to have been `Read` first, so a gate that blocks reads while code is being changed blocks the change. So does any file the run itself has touched (`phases[n].files[]`). The gate is for the phases that read to UNDERSTAND. A draft of the decision core read `run.phase` and `dev.editSet` - neither of which `agent-state.schema.json` declares - so the exemption could never have engaged and development would have been blocked by a hook whose message read like advice; `smoke-bulk-read.sh` now asserts the field names against the schema so it cannot come back quietly.

  **A ceiling, because delegation is not free either** (`bulkRead.maxBytes`, default 1 MB). Past some size the worker's own input bill approaches the read it replaced, and a file large enough to strain its window comes back truncated - a partial summary presented as a whole one is the one thing this feature must never produce. Over the ceiling the caller is told to narrow first (grep, then a bounded read). The check runs BEFORE the file is hashed or parked, so the guard is not theatre.

  **The command parser is per-tool, because the flags are not shared.** `cat -n` NUMBERS LINES rather than taking a count, and reading its next token as one swallowed the filename, left no operand, and let `cat -n <bigfile>` through the gate entirely. `sed -n '1,900p'` looked bounded because it carried a flag, when the range in its script IS the bound. An unparseable count reads as UNBOUNDED, never as 1. A `tail -f` is a stream and passes, because blocking it would be a false positive with no cheap alternative to offer.

  Off by default (`bulkRead.mode: "off"`), so merging the hook block is not itself a behaviour change. The worker degrades rather than inventing: no CLI, no auth, a timeout, or a non-JSON answer prints why and tells the caller to do a bounded read. A fabricated summary of a file nobody read is the one outcome worse than paying full price for the file.

### Changed

- **`multi-agent:setup` Step 8 and the picker-contract stop miscounting the hooks.** Both said two gates ship, and the setup step called the secret scan "the only deterministic gate that is OS-enforceable as a hook" - untrue since `agent-guard.sh` landed. Three ship now, and both places say so, along with which side of the run each one inspects.
- **`smoke-gate-hooks.sh` covers all three gates** rather than two, and asserts the shipped defaults are safe (the read gate off, phase 3 exempt) - a read gate that shipped switched on would have been a breaking change disguised as a merge.

## [16.20.0] - 2026-09-07

A comparison against `msitarzewski/agency-agents`, a 150k-star persona catalog, found nothing to copy wholesale and three things to fix: the personas were never registered, the circuit-breaker was prose, and a review finding had no identity from one round to the next. This release gives findings that identity and builds the loop controls, the handoff records and the evidence rules on top of it.

### Added

- **A finding keeps its identity across review rounds.** `finding-fingerprint.mjs` stamps every reviewer, triage and dev-critic finding with `F:xxxxxxxx`, computed from the file and either the cited rule ID or the normalised issue text; the line, the severity and the fix text take no part, so a finding whose line moved after the fix is still the same finding. `review-delta.mjs` compares one round's triage with the previous one and reports `stillPresent`, `resolved`, `downgraded` and `new`, plus how many consecutive rework cycles each survivor has lasted. Phase 4 keeps one `.pipeline/triage-round-<N>.json` per round, injects the previous round's accepted findings into the shared reviewer prefix so reviewers echo instead of rediscover, and stores the delta in `state.reviewIterations[i].delta`. The Phase 3 reflection prompt puts the survivors first, marked `STILL PRESENT`.
- **The circuit-breaker has two triggers in code.** Trigger 2 (a blocking or important finding that survives `identicalFindingCycles` consecutive rework cycles, default 2) fires from `review-delta.mjs` exit 3 at Phase 4 Step 3.8; trigger 3 (the rework cap) is recorded by the Phase 3 re-entry. Both write `state.circuitBreaker` and halt visibly in autopilot; interactive modes show the survivors and ask. `prefs.global.autopilotCircuitBreaker` and `state.circuitBreaker` now exist in the schemas the feature doc had been naming, `resume` clears the trip, and `smoke-autopilot-circuit-breaker` asserts the schema fields, the scripts and the phase wiring instead of grepping the prose.
- **Dev states its scope before review reads it.** Phase 3 Step 3.7 writes `.pipeline/scope-check.json`: a reason per touched file, the changes deliberately not made, and the code-simplifier rationales that used to be discarded. `scope-check-gate.mjs` compares it with the real diff; Phase 4 renders it as `<scope-self-check>` so reviewers judge against the stated scope and do not re-propose what was rejected; Phase 6 builds the PR `Changes` bullets and a "Follow-ups not done in this PR" list from it.
- **PR bodies carry a risk section when the diff earns one.** `channels/pr.md` gains the conditional `## Risk and Security` section (auth flow touched, secret handling changed, data migration, rollback), required whenever `state.diffRisk.signals` carries a high-stakes signal. Phase 4 now persists the diff-risk totals to `state.diffRisk`, and `run-metrics.mjs` reports `diff.filesTouched`, `locAdded`, `locRemoved` and the cross-round delta.
- **Manual test results are evidence, not a chat reply.** Phase 5 writes `.pipeline/manual-test.json` with one row per acceptance criterion (the quoted spec, the observation, the verdict, the screenshot) and `evidence-gate.mjs --claim manual` refuses an "ok" whose criteria are missing, failed or untested without a reason. The simulator UI report pairs every bug with its spec quote and its before/after captures and ends with a production-readiness verdict that defaults to FAILED.
- **One green run is not proof.** Verify-by-test re-runs a passing repro test `verifyByTest.repeatCount` times (default 3) before it may downgrade a blocking finding; a run that disagrees makes the verdict `inconclusive` with a `flaky` note. Phase 3 runs every new or changed test `testStability.repeatCount` times (default 3) and records `test.flake_signal` when outcomes disagree: a test that passes only on retry is a flake signal, not a pass.
- **Persona files round-trip and store readiness asks about symbols and rollout.** `lint-personas.mjs` checks every persona's frontmatter, its `## Output Format` section, and that the Codex TOML rendered from it decodes back to the same description and body byte for byte; the renderer no longer appends a newline the source did not have. The smokes that hardcoded six persona names now derive the list from the directory. `store-ready` flags an archive without dSYMs (or a minified bundle without `mapping.txt`) as blocking, checks that a symbol upload step exists, and ends the report with the phased-rollout thresholds and the rollback owner a release needs written down.

### Changed

- **Token budgets: phase-4-review max 14750 -> 15150, total 58250 -> 60250.** The full contracts for the review delta and the scope self-check live in `multi-agent-refs/features/review-delta.md` and `features/scope-check.md`, outside the budget; the phase docs carry the call, the pref and the exit table, and were compressed twice before the numbers moved. `rules.md` was tightened by 150 bytes to keep the fixed per-run load under its 60000-byte ceiling. Reasoning in `schemas/token-budget.json`.

### Fixed

- **Phase 4 and Phase 7 disagreed on the triage file name.** Phase 4 wrote `.pipeline/triage.json`; Phase 7, `worktree-finalize.sh`, `render-work-summary.sh` and `diff-explain.mjs` read `triage-output.json`. The salvage step bridged it only when the worktree was removed, and everywhere else the triage corpus and the learnings ledger silently stopped being fed. Phase 4 now copies the latest round to `triage-output.json` itself.
- **The eight personas were never registered as subagents.** `pipeline/agents/*.md` carried `description`, `model`, `preferredModel` and `modelRationale` but no `name:`, and Claude Code drops a subagent file without one silently: no error, no agent. Every `subagent_type: "code-reviewer"`, `"ios-architect"`, `"security-auditor"`, `"dev-critic"` and `"task-clarifier"` dispatch in the phase docs named an agent the host did not have. Each persona now declares `name:` equal to its filename stem, and `smoke-agent-model-routing` fails when a persona lacks it, when the name differs from the stem, or when it is not lowercase kebab-case. Found while comparing the persona format against `msitarzewski/agency-agents`, whose linter treats `name` as a required field.

## [16.19.0] - 2026-09-02

A review of the three repositories together (pipeline, toolkit MCP, plugin marketplace) with every test suite green found the defects the suites could not see. This release fixes what was found in the pipeline; `@mmerterden/multi-agent-toolkit-mcp` 3.8.0 and the marketplace plugins carry their own halves.

### Added

- **The accessibility scenario audits, it does not only look.** `/multi-agent:test "accessibility"` promised "visual + MCP audit tool" and then inspected screenshots. It now calls `ios_accessibility_audit` / `android_accessibility_audit` on every screen, treats `measurable:false` as not audited rather than clean, and runs `ios_accessibility_audit_deep` when an XCUITest target exists. The full scenario ends with a crash sweep through `ios_list_crashes` / `android_list_crashes`. Nineteen of the toolkit's 87 tools had no pipeline caller; the ones the flows claim now have one.
- **The UI bug hunter reads before it looks.** `/multi-agent:test` took a full-resolution screenshot after every tap and sent it through the model: 2.9 MB of PNG per step, which is what made the loop feel slow. The flow now reads `ios_get_ui_tree` first (text, ~0.1 s) and picks tap targets from element frames, batches tap / wait / capture / tree sequences into one `agent_run_steps` round trip, writes bulk captures to files and looks only at the screens whose tree changed. Inline screenshots are compact by default in toolkit 3.9.0.
- **`lint-mcp-refs --strict-tools` probes the sibling checkout.** The tool-existence check only ran when a local path was registered; an `npx` registration meant it was skipped on every machine, including the maintainer's. It now also tries `$MULTI_AGENT_TOOLKIT_REPO` and `~/multi-agent-toolkit-mcp`, so the 73 referenced tools are verified against the live server.
- **`triage-memory --state` and `diff-explain --task-id` do what their usage said.** Both flags were documented and dead.

### Changed

- **Three reviewers on Claude Code, everywhere it is written down.** 16.12.0 added Opus as the third reviewer and left eight documents saying two: the orchestrator's own description, the standalone `review` command (which dispatched two agents under a "3 in parallel" heading), the triage prompt ("two reviewers returned findings"), the consensus rationale, `modes.md`, the architecture diagram, the README's "two-vendor host" claim and ADR-0001. Every host runs three; the Codex set is now in the standalone command too.
- **Phase 1 is Sonnet, Phase 2 is Fable, and the template, refs, help and telemetry tags all say so.** Four documents had three answers, and the cost ledger was attributing Phase 1 and 2 spend to opus.
- **Platform parity has one source order.** The schema and `_dev-context.md` said the check reads `state.siblings[]` "and nothing else"; the contract lists it fourth of four. A model following the schema skipped the step on every standalone review.
- **`rules/figma-pipeline.md` no longer ships a 31-command catalog of which 30 do not exist.** New installs received the retired list; the current skill surfaces replace it. Its CI claim for `smoke-no-mcp-in-dev-phases` now says where the gate actually runs.
- **Counts the tree can check.** 55 commands (not 51), 36 Locked decisions (not 35), "80+" toolkit tools where "83" was asserted, and the ecosystem table lists the eight tool categories that sum to 87. `package-lock.json` had stayed at 16.15.0 for three releases.
- **Phase-doc token budget 57850 -> 58250.** The three-reviewer roster, the worktree convention and the model corrections are real content; the total was sitting 18 tokens under its ceiling.
- **`install --target=` is refused instead of ignored.** No installer read it; it installed into `$HOME` and said nothing.

### Fixed

- **The secret gate could not block a commit.** `pre-commit-check.sh` exited 1 and printed to stdout; the PreToolUse contract blocks on exit 2. A staged token went through. It also resolved staged paths against the working directory, so from a subdirectory every file was skipped. Exit 2, stderr, repo-root paths.
- **The attribution guard never saw the pipeline's own commits.** `git -C <worktree> commit` did not match `git\s+commit`. The guard now tokenises git's global options, and force-push is also caught for `+refspec` and `refs/heads/<protected>` forms.
- **Three smokes were decorative.** `smoke-language-axis`, `smoke-no-token-prompt` and `smoke-worktree-path-convention` did `cd pipeline` and then grepped `pipeline/...`, a path that does not exist, and printed ok. Pointed at the tree they found three real violations, now fixed, and one undocumented convention (worktrees live at `{projectRoot}/.worktrees/{taskId}`, now in Phase 0 Step 6).
- **Garbage collection could delete a running task's scratch.** The fresh-item guard was `find | head -1 | grep -q` under pipefail; with many fresh files `find` died of SIGPIPE and the guard failed open. `-print -quit` instead, in `gc-tmp`, `gc-worktrees` and `prune-logs`.
- **`uninstall` with no flags deleted the project's own `AGENTS.md` prose** from the pipeline heading to the next H1, through a fallback written for marker-less host files. Legacy adapter cleanup is opt-in and the fallback applies only to host files.
- **Every install removed `$HOME/.multi-agent` unconditionally,** a path also used for live per-repo state. Only known legacy entries are removed.
- **`install --copilot --link` wrote generated files into the source checkout** through the skills symlink. The skills root is a real directory; only authored trees are linked.
- **Four scripts did nothing from a path with a space.** The main-guard compared `import.meta.url` with an unencoded `file://` string; two of them are dispatch gates. `pathToFileURL` now.
- **Option parsers that hung or lied.** `fetch-figma-annotations.sh` spun at 100% CPU when an option was the last argument; twenty parsers in `lib/` and `scripts/` now fail with their documented exit code and a message instead of `shift` failing silently.
- **`vercel-deploy.sh deploy --prod` failed under the only bash macOS ships** (3.2.57: empty array under `set -u`).
- **`worktree-finalize.sh` reported every worktree but the last as unregistered** (a `while read` loop writing into a closed pipe), salvaged the tracker from a directory nothing writes to, and nested `.pipeline/.pipeline/` on a re-run.
- **`keychain.py set` put the secret on `security`'s argv,** visible in `ps`, and `credential-store.sh` routed every macOS write through it. Both use `security -i` over stdin; keychain.py's exit codes 2 and 4 are propagated.
- **`review-watch.sh` marked pull requests reviewed without reviewing them.** It now runs `post-pr-review.sh` for a head with findings and stamps only on success. `post-pr-review.sh`'s Bitbucket verdict PUT checks the status code; a 401 was "approve posted".
- **`figma-screenshot.sh --discover-sections` answered "this file holds no design" on an expired token** (curl without `--fail`). It exits 2 with the auth message; its temp files have traps and its output dir comes from `mktemp`.
- **`fetch-crashlytics.sh` and `figma-mcp-refresh.sh` exited with raw child codes** under `set -e`, so a VPN drop was diagnosed as a missing credential. Mapped to the documented 3 and 2.
- **Sourced from zsh, `credential-store-resolver.sh` printed the store path to stdout** and `figma-token.sh` asked for a single key named `figma figma_pat`.
- **`validate-analysis-doc.mjs` crashed on a document without front matter,** failed the gate on a check it called a warning, listed the correct Turkish word `Onay` as a typo, and cited "Locked 37" in a list of 36.
- **`multi-repo-pipeline.sh` committed `git add -A`** while its header said staged changes, and ignored `state.identity`. `plan-todos.sh` returned 0 for an unknown id. `update-issue-progress.sh` failed on macOS `mktemp` on the second call.
- **Smoke hygiene.** Thirty-six smokes: five asserted against the installed `~/.claude` copy instead of the repo, one passed when `sha256sum` was missing (`"" = ""`), eleven used predictable `/tmp` paths, five wrote probe files into the repo tree, five wrote into the real `$HOME`, four turned errexit on halfway through, four had assertions that could not fail, and a short personal-data pattern matched `thyme` under `grep -i`.
- **Smaller ones.** `build-skills-index.mjs` recorded `|` and `>-` as descriptions for five skills, so `match-skills` could never score them; `learning-curve` and `aggregate-metrics` computed "cache ratio" with different formulas; `graph-build` omitted Go; `repo-map --include` matched substrings while documented as globs; `eval-mine-corpus` read the corpus from a path the writer never used inside a worktree; `gen-mode-dispatch` defaulted to a mode removed in 16.0.0; `scorecard` claimed no network and ran `npm audit`; `_dev-only-files` misgrouped its regex; `render-cost-summary` selected 0/0 phases; `gc-refs` matched `pr-body-final.md`; `credential-inventory` reported every key missing with rc 0 when no backend existed; `repo-cache` and `issue-fetcher` split scan roots on whitespace; `md2confluence-v3.py` detected every document as Turkish and its residual-character warning could never fire; `github-ssh-setup.sh` wrote `UseKeychain` on Linux; dead functions and stale headers in `cost-lib`, `extract-conventions`, `shadow-git`, `fetch-document`, `benchmark-phase-0`, `sync-parity-check`, `_mcp-register`, `_plugin-skills`, `cost-budget-check`, `triage-memory`, `migrate-prefs`, `eval-golden-tasks`; dangling references to `figma-navigation`, `/multi-agent:fix-bug`, `ask_choice.sh`, `refs/frontend-guide.md` and a `-v610` anchor.
- **Vendored knowledge skills point at files that exist.** Twenty-six external skills linked 184 files that were never vendored; 58 were fetched from their upstream with provenance recorded, the rest de-linked. `help-skills` (Turkish, install-path catalog) is retired; `ios-module-structure` resolves its scripts relative to the skill; `ios-coding-standard` examples use a neutral domain.

## [16.18.0] - 2026-09-01

### Changed

- **The counterpart repo is now found, not asked for.** The parity check shipped needing a human to name the other platform's repo - through the Phase 0 picker, and then through a `--with` flag and a prompt in `review`. That is a question with the same answer on every run of the same project, and a question asked every time is one people learn to dismiss.

  It now resolves automatically and in both directions, so an Android run looks for the iOS repo exactly as an iOS run looks for the Android one: a remembered `prefs.projects[<slug>].counterpartRoots[]` first, verified before it is trusted (a path that is gone, or whose markers no longer resolve to the mirrored stack, is dropped and re-detected); then the primary checkout's **sibling directories**, one listing of its parent rather than a scan of `$HOME`, because a product's two checkouts sit next to each other; then anything the dev-context picker recorded. Exactly one match is used and written back, so the first run of a project learns the pairing and no later run asks. Several candidates are asked about only in interactive runs; `--with` remains as a one-off override and is remembered like any other answer.

  **No counterpart, or an unattended run facing several: skipped silently.** No section, no placeholder, no prompt, and the run is otherwise unaffected - which is most projects, and all of autopilot. An unattended run must never block on a picker.

  Stack still comes from marker files and never from the repo name. `smoke-platform-parity.sh` now asserts the automatic path itself: that prefs declares the learned field, that the contract reads it, that both directions are stated, that the empty case is a silent skip, and that an ambiguous match cannot block an unattended run.

### Fixed

- **The parity cross-check was unreachable from the command called `review`.** 16.17.1 fixed the dead trigger and then documented the remaining gap as a limit: `state.siblings[]` is written by the Phase 0 dev-context picker, so a standalone `/multi-agent:review <PR-URL>` had no siblings and skipped the step. That reads reasonably in a contract and is wrong in use - the standalone command is the one a person actually types when they want a review, and the feature existed only inside a full pipeline run.

  `/multi-agent:review` now obtains a counterpart the same two ways a human would offer one, and never by guessing: `--with <path|owner/repo>` names it outright and works unattended, and an interactive run with no `--with` asks once using the sibling half of `_dev-context.md`, so "which repos are siblings of this one" keeps one definition instead of two. Autopilot and non-interactive runs without `--with` skip silently, because an unattended run must not block on a picker. Either way the answer is persisted to `state.siblings[]` with its `stack` resolved from marker files, so the parity step reads one field regardless of how the run started.

  `smoke-platform-parity.sh` gained the checks for it: `--with` is declared in the argument-hint and not only in the body, and all three cases (named, interactive, unattended) are stated. The gap existed because the previous gate proved the documents agreed with each other, and agreeing documents can still describe a feature nobody can reach.

## [16.17.1] - 2026-08-31

### Fixed

- **The platform-parity cross-check shipped with a trigger nothing could satisfy.** 16.17.0 said the step runs when dev-context recorded a counterpart repo "whose stack resolves to the other mobile platform" - naming an `extras[]` / `readonlySiblings[]` entry and a `stack` field on it. None of the three existed: the picker's return value was never persisted anywhere, `agent-state.schema.json` declared no such array, and no phase wrote one. Phase 4 runs hours after Phase 0 and reads state, so the condition could never be true and the step could never fire. It was a feature that passed every gate and did nothing.

  `state.siblings[]` now exists as the one source: declared in the schema with a closed shape (`name`, `root`, `stack`, `canPush`), written by the dev-context picker at Phase 0, and read by the parity step and nothing else. `stack` is resolved from marker files in the checkout using the table Phase 1 Step 2 already owns, never from the repo name - `my-app-android` is a naming convention, and a wrong stack sends a cross-repo reader at the wrong tree. An entry with no checkout, or an unresolved stack, is skipped rather than guessed at.

  Two limits are now stated instead of discovered: a standalone `/multi-agent:review <PR-URL>` has no state file, so it has no siblings and skips the step - the counterpart repo is a human's choice in the picker, and inferring one from a PR URL would be a cross-repo read nobody authorized; and nothing is ever cloned, because cloning a repository in order to review a different one is a side effect nobody asked for.

  The gate is the actual fix. `smoke-platform-parity.sh` asserted only that the four documents referenced each other, which is why it passed on a trigger that was about nothing. It now checks that the field the trigger reads is declared in the schema with the shape it expects AND written by a phase, that all four documents trigger off that same field, and that the name-based stack shortcut is ruled out in writing. Verified against the 16.17.0 tree: both new checks fail on it.

## [16.17.0] - 2026-08-31

### Added

- **Review compares the change against the other platform's repo.** A feature written twice drifts, and the drift is invisible from inside one repo: the iOS diff is self-consistent, the tests pass, and nobody notices that the Android screen calls a different endpoint, sends one parameter fewer, or reads a localization key the other side no longer has. When the dev-context picker carries a counterpart app repo and the diff touches a screen, a service, a request model or a localization file, Phase 4 and `/multi-agent:review` now compare four axes against it: endpoints called, parameters sent, business rules around the call, localization keys used. Nothing else - layout, naming and idiom differ between the platforms by design, and reporting them would bury the four that matter.

  The counterpart is located through the code graph rather than by reading the other repo broadly: `graph-query.mjs` is token-budgeted, and the step reads at most 8 counterpart files, naming what it left out instead of truncating silently. The repo is **read only** - never edited, staged, committed, pushed or built, because the gap belongs to the other platform's team and their backlog, not to this PR. Findings land in their own `Platform parity` section and are never blocking: a reviewer that halts a correct iOS PR over an Android omission is a reviewer people turn off.

  A finding may not report an extractor miss as an absence. The graph is built by deterministic regex rules, so the contract requires "no counterpart call was found in the 6 files compared" rather than "the other platform does not call it" - the same stance the analysis phase already takes on its own scan. `smoke-platform-parity.sh` asserts the cap, the read-only prohibitions, the four axes, the non-blocking rule and that all three entry points actually reach the contract. Contract: `multi-agent-refs/platform-parity.md`.

## [16.16.0] - 2026-08-31

### Added

- **`/multi-agent:steer #N "<instruction>"` corrects a run without stopping it.** `kill` deletes a task and `resume` picks a stopped one back up; neither helps while a phase is in flight, so a correction that arrived mid-run had nowhere to go and the run finished in the wrong direction. The command queues one instruction into `state.pendingSteer`, written through `write-state.mjs` rather than by editing a file the running task is also writing to, and the next phase reads it at entry, applies it, and marks it consumed with `appliedAt`/`appliedPhase` while keeping the record as a trace. Entry rather than mid-phase on purpose: a phase that changes target halfway discards the work it already did, which is the outcome the command exists to avoid. An instruction that contradicts an approved plan halts for the user instead of silently rewriting it. `smoke-steer.sh` walks the whole path - schema, writer, phase-entry contract, help and both READMEs - because a command whose only value is a phase reading the field back is exactly the shape that ships green and dead.
- **`state.rev`, a monotonic revision counter.** The advisory lock makes a single write atomic and nothing more; it does not cover the gap between a phase reading state and writing it back, and `steer` above puts a deliberate second writer inside that gap. A reader that keeps the `rev` it read can tell the record moved underneath it instead of silently dropping whatever landed in between. Every successful write bumps `rev`; the writer takes the higher of the on-disk value and the incoming patch, so a stale patch cannot walk the counter backwards. A record written before this has none - treat a missing `rev` as 0.
- **`npm run gate:linux`** runs the ci-lite job on a real Ubuntu image through `act`, covering the Linux leg and a clean `npm ci` that the macOS pre-push gate cannot answer. Deliberately not part of `npm run gate`: `act` is not installed everywhere, and a required gate that cannot run is the failure ADR-0011 exists to avoid.

### Fixed

- **A live lock holder could lose its lock to the age rule.** `write-state.mjs` judged a lock stale when its holder PID was dead **or** the file was older than 30 seconds - age checked first, and returning on its own. So a writer that was demonstrably alive had its lock deleted the moment the file aged out, and the next writer overwrote the update behind it. Liveness now outranks age: an alive holder keeps its lock, `WRITE_STATE_LOCK_STALE_MS` applies only to a lock with no readable PID, and a new `WRITE_STATE_LOCK_ABANDON_MS` (default ten times that) is the last-resort ceiling for a recycled PID. No heartbeat: the writer holds the lock across one synchronous write, so there is no window for a timer to refresh anything, and a refreshed timestamp is weaker evidence than the liveness probe already gives.
- **Prettier was enforced nowhere, and `main` was failing it.** `format:check` was declared in `package.json`, wired into ci-lite, and ci-lite has not executed since 2026-07-02; `eslint-config-prettier` only disables conflicting rules, it does not check formatting. Twenty-five files were failing the project's own declared style. `format:check` now runs inside `npm test`, so the pre-push gate carries it, and a `.prettierignore` exempts two trees with reasons: git worktrees checked out inside the repo, and `pipeline/skills/shared/external/`, which stays byte-identical to upstream so a re-derivation diff remains readable.
- **The installed-tree leak sweep was running against a private copy of the pattern list, drifted to under half of it.** `smoke-install-leak-gate.sh` carried its own patterns under a comment saying it mirrored `smoke-personal-data.sh`. It did not: personal domains, the maintainer's name, one spelling of the machine username, corporate symbol prefixes and product literals were all missing, so the sweep that runs on every `npm test` was weaker than the one in ci-lite - which has not executed since 2026-07-02. The step now delegates to the file that owns the list, and ci-lite's inline copy of the same dance was replaced by a call to that smoke. Three shapes the private copy caught and the owner did not (a trailing-underscore username compound, the bare organisation name, an address with no local part) were added to the owner, so the union is preserved rather than traded away - and the first of them immediately caught a real leak that had been sitting in `docs/internal/`, which the narrower pattern could not match. That file is not in the published tarball, so nothing reached a user.

### Changed

- **CI is dormant in the repository, not only in platform state.** `test.yml` and `ci-lite.yml` still declared `on: push` and `on: pull_request` while both had already been disabled from the Actions UI - true only for a fork, or for whoever re-enables one without reading further. Both trigger blocks are commented out with the reason beside them, `workflow_dispatch` stays live, and [ADR-0011](./docs/adr/0011-dormant-ci.md) records why, what stays unverified while they sleep (the `windows-test` job, a clean Linux runner, a clean `npm ci` from the lockfile) and the two-line wake-up. `CONTRIBUTING.md` now tells an outside contributor that no workflow will run on their PR and to paste the `npm run gate` output instead of waiting for a green tick.
- **The scorecard covers moderate advisories and registry signatures.** It measured high and critical only; `--audit-level=moderate` and `npm audit signatures` lived in ci-lite and stopped running with it. Both are scorecard metrics now, the moderate ceiling locked at the measured value of 0. An unreachable registry fails the signature metric rather than skipping it: a supply-chain check that reports green when it could not reach the registry is worse than no check.

## [16.15.0] - 2026-08-30

### Fixed

- **Usage reporting only ever reported runs that finished.** The reporter was called from Phase 7, and Phase 7 is the phase a run is least likely to reach: across the whole local log history, exactly one run got there. So the admin dashboard read zero of everything while the table held real rows, and the question it exists to answer - who is using this - had no answer. Phase 0's exit gate now reports the run as started, on the same upsert key, so Phase 7 replaces that row with the final state and nothing is double-counted. The read side of the same bug is fixed in the dashboard: its rollup folded only `terminal` rows, and an unfinished run was scored `fail`.

### Changed

- **`/multi-agent:help` now covers the plugins and the toolkit MCP.** It named both in passing - a `refactor` line, a `sync` line, a `design-check` footnote - and never said what they are or how to call one. The catalog gained a Plugins & tools block in both languages: how a stack skill is invoked, which plugins are always on, and the MCP's 83 tools grouped by what they drive (device control, web, design comparison, store and accessibility audits), with the note that its registration survives uninstall. Paid for by compressing the `design-check` entry, which was restating its own contract in fifteen lines: 353 tokens reclaimed before a byte was added, so the file sits within its 8500 ceiling. The tool count that went in with it was wrong and is now absent: `rules/outside-the-pipeline.md` said 83 while the server serves 84, and the pipeline cannot check either number because it does not vendor the toolkit. Both places now say 80+, which stays true; the exact count lives in the toolkit's own README, where a gate boots the server and compares `tools/list` against it.

- **ADR-0010 now says where its numbers come from.** The coverage and token figures were published with no path to the harness that produced them, because the harness names a private codebase and cannot ship. It lives beside the graph it measured, under `~/.claude/knowledge/<project>/gate/`, and the ADR points at it: a number nobody can re-derive is an assertion, not a measurement.

## [16.14.0] - 2026-08-28

### Added

- **Go joins the code graph, and `web` / `frontend` resolve to the node rules.** Phase 1 has detected Go since the stack table existed, while both rule layers rejected it: there was no `test-gap-rules/go.json` either, so `/multi-agent:test "test-gap"` was equally blind to a Go repo. Both files now exist. The alias is the other half of the same gap: the rule files are named after the toolchain (`node`) and the rest of the pipeline names the product surface (`web`), so a caller typing the word they were last shown got "unsupported". `backend` is deliberately NOT an alias - it could be node, python or go, and the error names all three rather than guessing one.
- **Analysis ranks its repo-evidence candidates with the graph (opt-in).** The reuse-first scan (Locked 11) caps its candidate set at 200 files and warns when a generic feature name blows past it. `head -200` truncates in grep's walk order, so the cap was dropping an arbitrary file, not the least relevant one. With `prefs.global.codeGraph.enabled`, a graph query over the feature name sorts the set first. It is a sort key, never a filter: a file grep found and the graph did not rank is still scanned, because a regex extractor's silence is not evidence of absence. The 13 buckets, the cap and the no-graph behaviour are unchanged.

### Fixed

- **The code-graph ref did not say to build when no graph exists.** It said "build only when `baseCommit` no longer matches HEAD", which has no answer when there is nothing to compare. That is the case that matters: the knowledge base's prose files are written in Phase 7, the phase a run is least likely to reach, so a repo can carry a long task history and an empty knowledge directory. The graph must not inherit that dependency, and `--status` exiting 1 on a missing file now explicitly means build.

## [16.13.0] - 2026-08-28

### Added

- **`/multi-agent:graph` - a deterministic code graph, built without an LLM.** Phase 1 re-scanned the repo with grep and read on every task and defaulted to the "very thorough" tier on feature work; Phase 7 wrote `architecture.md` from one task's window and let it age for 90 days. Both wanted the same answer: where does this live, and what depends on it. `graph-build.mjs` extracts symbols, imports and references by regex over comment-stripped source into `~/.claude/knowledge/<project>/code-graph.json`; `graph-query.mjs` runs a token-budgeted traversal, `graph-affected.mjs` walks it backwards for impact, `graph-report.mjs` renders `GRAPH_REPORT.md`, and `validate-code-graph.mjs` fails a build whose edges point at missing nodes. Zero runtime dependencies, zero API cost, read-only on the repo. The reasoning, the trade and the numbers are in `docs/adr/0010-own-code-graph.md`.
- **Phase 1 Step 2.6 and Phase 7 graph refresh, behind `prefs.global.codeGraph.enabled` (default `false`).** When on, Phase 1 queries the graph and hands Explore a ranked starting set instead of a full scan, and Phase 7 rebuilds the graph after the branch changed code. Off, the pipeline behaves exactly as before. Measured on a 4,300-file Swift app at a fixed 30k retrieval budget: 80.4% coverage at 18,465 tokens against 66.0% at 24,555 for grep-and-read. The win is entirely in domain-word searches (63.3% vs 32.0% at under half the cost); when the task already names an exact type, `grep -lw` is still slightly better and slightly cheaper, and the command says so.
- **`_path-match.mjs`.** The glob matcher `test-gap-scan.mjs` carried inline is now shared with the graph engine, so the two cannot drift apart on what a repo excludes.
- **Code-graph rules for Android, Node and Python.** Four stacks now build: measured on a 4,229-file Kotlin app (25,234 nodes, 70,897 edges), this repo (126 sources) and a 43-file Python service, each validated and each hub list checked by hand rather than assumed correct. Two engine defects surfaced doing it, both of which iOS had been getting away with. Nesting was read from the pattern's match column, so `public final class Foo` counted as nested because the match starts at `class` seven columns in; it now reads the line's indentation. And the import pass read a fully stripped body, which blanks a JavaScript module specifier because the specifier IS a string literal - every import edge in that stack would have vanished with nothing to notice it. iOS was re-gated after both and scored identically (80.4% at 18,467 tokens).
- **A nested declaration is a node but never a reference target.** Kotlin sealed cases and Python inner classes are named after the concept they model - `Icon`, `Color`, `Success`, `Disabled` - and each is declared exactly once, so the ambiguity rule never caught them. Every Kotlin file that merely mentioned Compose's `Color` gained an edge to one app's nested case: 4,072 false edges out of 74,969, and four of the top eight architectural hubs were wrong. They stay findable by name through their `defines` edge.
- **`prefs.global.modelFallback.fableEnabled` (default `true`) - the fable rung as a switch, not only as a fallback.** Every other trigger in the fallback contract reacts to something going wrong; this one asserts up front that a rung is not in play, so there is no dispatch attempt and no error to recover from. `false` starts `ios/android/backend-architect`, `code-reviewer` and triage on `opus`. Claude Code only: Copilot CLI does not offer Fable 5, and on Codex CLI the `fable` rung means `gpt-5.6 @ xhigh`, a different vendor's model on a different account, which the switch deliberately leaves alone. Turning it off also collapses the Phase 4 Claude Code panel to two reviewers, because Reviewer 1 lands on the `opus` Reviewer 2 already holds and one model dispatched twice is not cross-model review; `consensus.reviewerCount` records `2`. Set `costBudget.priceAt` to `opus` alongside it, or the estimate keeps pricing at a rung nothing runs on and trips the ceiling early.

### Fixed

- **`derivedSkillSources` could not say which repo held the derived copies.** `localPath` reads as relative to the current repo, so both entries pointed at the UPSTREAM tree and stayed wrong through a plugin rename: the drift check was comparing a path that did not exist. Added `localRepo`, corrected both entries, and re-derived their skill lists from the tree instead of from memory.
- **Two `excludePathGlobs` shapes were silently inert.** A pattern with a wildcard and no `**` fell through to a literal `endsWith` / `includes` test against the pattern text, which can never be true: nothing ends with the characters `*.d.ts`. So `*.d.ts` in the node rules and `*.egg-info/` in the python rules excluded nothing, and generated typings and build residue reached every consumer of those rules, `test-gap-scan.mjs` included. Both shapes now translate to an anchored regex, and eight glob cases are pinned by the smoke.
- **`--all-data` left the knowledge base behind.** Full uninstall removed the log root and the per-repo memory root but never `~/.claude/knowledge/`, which holds `architecture.md`, `patterns.md`, `gotchas.md`, `decisions.md` and now `code-graph.json`. That is prose about a private codebase plus every symbol name in it, and it is the data a user most likely means by "remove everything". A default uninstall still keeps all of it, and memory written inside a repo (`$PROJECT_ROOT/.multi-agent/memory/`) is still never touched by either mode: it lives in the user's working tree and may be committed.
- **`modelFallback.floorModel` could not be set.** The fallback contract has documented it since the two-step ladder landed, but it was absent from `prefs.schema.json`, whose `modelFallback` object forbids extra keys - so a prefs file that followed the documented example failed validation. Declared, defaulted to `haiku`, and added to the template.
- **The consensus rule still claimed two reviewers on Claude Code.** v16.12.0 added the third reviewer and updated the matrix but not the `reviewerCount` line 300 lines below it. `smoke-cross-cli-behavior.sh` reads the matrix, so it never noticed. The line now says what it should have said all along: the count is the reviewers that actually dispatched, not the configured maximum.

## [16.12.0] - 2026-08-27

### Added

- **`/multi-agent:analysis` reviews the document before publishing it.** It had no review phase: the only pre-dispatch gate was a structural validator, so nothing ever read what was about to reach Confluence, and one real run published a channel it never searched for, an open question about a frame it never opened, and twenty-three unowned `EKLENECEK` markers. Phase 3.2 runs `phase-4-review.md` Step 0 (the analysis branch that already existed and nothing called) on the draft, before the destination is chosen. Reviewers are subagents holding `analysis/review.md`, never the context that wrote the document, because a context cannot notice a search it never thought to run. A blocking finding returns to synthesis with dispatch closed and never becomes an open question. Locked 36.
- **Phase 3.3 closes gaps instead of writing them down.** Reachable evidence is searched and never asked about, decisions the user owns are asked, and only external gaps enter the document as `AS-NN` rows with an owner. A gap with neither a `searched, not found` nor an `asked, external` stamp fails the dispatch gate. Autopilot runs both phases; only the asking degrades.
- **A third reviewer on Claude Code.** Opus fills the slot GPT-5.4 occupies on Copilot and Codex, so every host now runs three: Fable + Opus + Sonnet here. A finding two independent readers both miss is one triage has no chance to catch.
- **`figma-screenshot.sh --discover-sections`.** One `GET ?depth=3` lists every section whose name matches the feature, with a frame count and a channel guess, folding diacritics so `Elite` and `Elit` are the same word. A channel may no longer be called missing until this returns nothing, and the record must cite the scan (Locked 12). Verified against the file that caused the defect: it returns both the Desktop section and the mobileWeb sibling the run had declared absent.
- **Four validator gates**: `AS-NN` matched in both directions, `EKLENECEK` without an id, JSON inside a service-table cell, and Turkish diagram labels flattened to ASCII inside a mermaid fence, which the punctuation gate skips.

### Changed

- **"All variants drilled" now means read, not counted** (Locked 19). Visible `TEXT` layers inside each frame's own bounds are extracted, hidden layers and overflowing component boilerplate dropped. A frame can be called out of scope only by quoting its own text, and opening an open question about a frame nobody read fails the gate. One run logged a frame named `08 Payment` as ambiguous while its text spelled out the whole payment step.
- **Every frame-inventory row gets an embedded image** (Locked 18). The gallery is generated from the inventory rather than hand-picked; narrowing to a canonical subset for page weight is not a call the run makes alone. One run uploaded 34 attachments and embedded 14, and was reported as "frames not uploaded" - the files were there and invisible.
- **Embedded images carry a display width.** `md2confluence-v3.py --image-width` defaults to 720 with a per-image `![](f.png "width=320")` override; the attachment stays full resolution. A 2x phone export is 750x1624 and took two screen heights at natural size.
- **Service tables put payloads under the table, not in a cell.** `Request` and `Response` carry one of three states; JSON goes in a fenced block below, field notes in their own table. A whole-unknown contract is one line, not six `EKLENECEK` cells.

### Fixed

- **`md2confluence` re-upload logged one warning per attachment and lost nothing.** The already-exists path was keyed off HTTP 400, and this Confluence Server answers 500 for a duplicate filename, so the update path was unreachable. It looks before creating now; 400, 409 and 500 remain handled as the race they should always have been. `attachments_updated` is counted apart from `attachments_uploaded`, because "0 uploaded, 12 warnings" reads as data loss when nothing was lost.
- **The mermaid fallback lost every edge in any diagram whose nodes carry labels.** The pattern required the node id to sit next to the arrow, so `A[Basla] --> B` matched nothing - not just labelled branches, the whole flow. Both label syntaxes are captured now and the label is kept (`Evet -> Odeme Yap`), and the source ships beside the list so the diagram is recoverable.

### Internal

- **This release sets the `required` dist-tag.** An install older than 16.12.0 does not produce a worse analysis document, it produces one that has to be redone: no review before publishing, gaps recorded instead of closed, a channel called missing without the file ever being scanned, and frame filenames where the pictures belong. That is the criterion in the Supported Version Gate, so the tag is set rather than left off.
- The analysis ref ceiling moves 148000 -> 154000 across two raises in one session. Everything that could live outside the count already does: the scan in `figma-screenshot.sh`, the reviewer rubric in `analysis/review.md` which a subagent loads and the orchestrator does not, and all four new gates in `validate-analysis-doc.mjs`. The tree was measured for reclaimable duplication first and had none.
- `smoke-validate-analysis-doc.sh` replaces four section-number pairing assertions with the `AS-NN` contract in both directions.

## [16.11.0] - 2026-08-27

### Changed

- **Picker option labels now follow `outputLanguage`.** Only the `AskUserQuestion` `header` chip stays English, because it is capped at 12 characters and most Turkish equivalents overflow it. A Turkish run used to render a Turkish question with English buttons, which reads as a half-translated dialogue rather than a contract. `rules.md` carries the new per-field matrix; `picker-contract.md` carries what the caller now owns: branch on which option was picked, never on its rendered text, and pass `default` / `ASK_CHOICE_DEFAULT` as a 1-based index. The host's own **Other** row is injected in English and no run can localize it.
- **`Frontend` is `Web` across the pipeline** - the platform picker, the stack command, the schemas, the conventions tables, the phase docs and `frontend-guide.md`, now `web-guide.md`. The published `ai-frontend-toolkit` plugin id, the `frontendRepos` / `frontendRoots` prefs keys and the `frontend` stack alias all keep working: `web` is canonical and `frontend` still resolves, so nothing written before this release stops loading. `webRepos` / `webRoots` are the new spelling; the old pair is documented as deprecated rather than removed.
- **A repo-less analysis run keeps its channel split.** It used to flatten everything into one document because there were no repo conventions to project onto. But a phone screen and a browser screen carry different requirements whether or not a repository exists; only the _projection_ half of the split needed conventions. Channels are now derived from the evidence (`intake.md` Step 3 carries the signal table) and one document is emitted per channel. `mobile` stays one channel rather than iOS plus Android, since without conventions nothing tells the two apart.

### Fixed

- **The depth question passed a label as `ASK_CHOICE_DEFAULT`.** With labels localized, `"Full"` matches nothing on a Turkish run, `ask-choice.sh` falls through, and a non-TTY silently takes option one - the exact failure Phase 0 Step 7.5 was written to prevent. It passes the index now. Two more sites branched on a literal label (the plan gate and the review post-prompt) and now branch on the option.
- **The analysis source questions asked all seven in one `AskUserQuestion` call**, which the host rejects at 4. Every run improvised its own grouping, and the improvised split separated the Document question from the Confluence one. The split is fixed at two batches now: what the feature is (Figma, Confluence, Document, Jira), then what constrains it (Swagger, Standards, Firebase). A spec arrives as an attached `.docx` or `.pdf` at least as often as a Confluence page, so both are asked on the same screen.
- **Questions feeding only the development layer are no longer asked when no platform is selected.** With `platforms[]` empty that layer does not render, so the Standards and UI Tests questions spent the user's attention on answers nothing would consume. Firebase and A11y depth are still asked - they land in Part B, which does render.
- **Confluence and Jira dispatch had no rule for a repo-less run.** Both were written only for the per-platform case, so "one page per platform" and the `h2. Platform: <X>` separators had nothing to bind to. They now cover the derived channels, and a single channel-agnostic document gets no suffix and no separator.
- **A Confluence frame gallery shipped filenames where the pictures should be.** The analysis dispatch described the conversion, the attachment upload and the `<ac:image>` injection as three hand-rolled steps, while `md2confluence-v3.py` already implements all three. Hand-rolling is where the image reference got lost. Dispatch calls the script with `--attachments-dir` now and surfaces its `image reference has no matching attachment` warnings instead of reporting a clean publish; the conversion table documents that the converter degrades a missing file to a text link, which is the diagnosis for a page full of filenames.
- **`language/SKILL.md` claimed PR bodies, Jira comments and wiki pages are always English**, contradicting the `rules.md` matrix that routes all three through `outputLanguage`. Commit messages, PR title prefixes, branch names and identifiers stay English; the bodies a human reads do not.
- **The analysis command cited the wrong sections for two inputs** - Standards as Section 7 and Firebase as Section 6, where the template puts them at 13.7 and 11.

### Added

- **A `.docx` / `.pdf` / `.md` / `.txt` spec is a first-class analysis source**, asked next to the Confluence question. `fetch-document.sh` reads `.docx` with the Python standard library, so `python-docx` is neither imported nor needed; `.pdf` needs a `pdftotext` binary and degrades to referenced-but-not-fetched without one. `/multi-agent:setup` reports that binary as an advisory dependency, never a halt.
- **A full command catalog in both READMEs** - 53 sub-commands in nine groups, the 8 subagents, and the two compliance skills that are not commands. The list previously existed only inside `/multi-agent:help`.

### Internal

- The analysis ref ceiling moves 145000 -> 148000. Unlike the v16.6.0 raise this one is not compensating for a measurement error: the tree gained three features and the number is right. About 1.4 kB of new prose was trimmed back before the ceiling was touched.
- `smoke-language-matrix.sh` and `smoke-language-axis.sh` now assert the new rule in both directions - label follows `outputLanguage`, header stays English - and three more phrasings were added to the contradiction list after one slipped past the old set.

### Fixed

- **The website sync committed under whatever identity the run carried, and the site silently stopped updating.** Step 4 ran a bare `git commit`, so the commit took the active account's address. The deploy platform builds only a commit whose author is a contributor on the project; any other author is accepted by the push and then never built - the deployment is created, reports `readyState: BLOCKED` (rendered by the CLI as `UNKNOWN` with a 0ms build), and the live site keeps serving the previous version. v16.4.0 and v16.5.0 were both pushed that way, neither was ever built, and both syncs reported the website as done.
- **The commit is now made by `pipeline/scripts/website-deploy-commit.sh`, not by three lines of prose.** It reads the clone's own `user.name` / `user.email` and writes only on a mismatch (the website clone is usually already right, and overwriting it with the caller's identity is the defect), commits only when something is staged, reads the author back off the commit with `git log -1 --format=%ae` and halts before pushing on a mismatch - setting `git config` proves nothing, since an exported `GIT_AUTHOR_EMAIL` outranks it - then waits for a Ready production build instead of treating the push as the deploy. Exit codes separate the cases that need different responses: `1` wrong author and nothing pushed, `3` pushed but never built. The identity itself still resolves from `prefs.global.identities[]` routed by `platformIdentityRouting`, so no literal address enters a file that installs on every machine.
- **`multi-agent-refs/website-deploy.md`** carries the failure signature, the API call that names the reason the CLI hides, the empty-commit recovery that needs no history rewrite, and the live-site verification notes. The sync doc keeps three lines and a pointer, which is also what kept it inside its token ceiling.

### Added

- **`smoke-website-deploy-identity.sh` (20 assertions).** It runs the script against throwaway repos with real remotes rather than grepping the doc: the happy path lands and pushes, an exported `GIT_AUTHOR_EMAIL` halts with the commit still local, an unchanged tree makes no empty commit, a matching config is preserved while a wrong name is corrected, and missing or non-repository arguments exit 2. Wiring is asserted separately, since a correct script nothing calls is its own failure mode.

## [16.10.1] - 2026-08-26

### Fixed

- **`write-state.mjs` could delete a live lock and lose a writer's update.** The stale-lock reclaim deleted by path: between judging a lock stale and unlinking it, the holder can release and a third writer can acquire a fresh one, so the unlink removed a _live_ lock and two writers then held it. It is the same failure the PID-window comment in that file already describes, at a different point in the acquire loop, and it survived because it only reproduces under load - `smoke-write-state.sh` failed inside a full gate run and passed 12/12 when run alone. Reclaim is now by identity: the inode and mtime judged stale must still be the file at that path, otherwise it belongs to somebody else and is left alone. Twelve runs under artificial load are clean, which is evidence and not proof - a race cannot be proven absent.

- **Counts that had drifted from the tree.** `skills-index.md` and `skills/shared/README.md` still said 208 skills against 210 on disk; both are generated, so they were regenerated rather than hand-edited. `/multi-agent:update` quoted "245 scripts, 208 skills" for what an install lays down; it is 263 and 210. A comment in `smoke-command-inventory.sh` used "51 commands" as its example, which is the kind of number that goes stale the moment a command lands - it now says what it means without pinning a figure.

## [16.10.0] - 2026-08-26

Three debts the last few releases kept naming, closed.

### Added

- **`smoke-help-sync.sh` pairs each command's own description with the line `/multi-agent:help` shows for it.** Three releases running shipped the same defect: 16.7.1 (two commands absent from help entirely), 16.8.1 (the analysis entry describing behaviour from two releases earlier), 16.9.0 (a telemetry block still saying "optional, opt-in" after the default flipped). Every other gate was green through all three, because none of them asked whether the sentence a user reads still matches what the command does. The gate hashes both sides and fails when one moved without the other. Its limit is written into the file: it cannot tell whether either text is _correct_ - a maintainer who edits both to say something equally wrong still passes. What it forces is that the pair gets looked at together, which is exactly what did not happen those three times.

### Changed

- **The telemetry self-registration path no longer needs `jq`.** It read preferences through `jq` behind a `command -v jq` guard, so a machine without jq silently never registered and never reported - which in the panel is indistinguishable from nobody using the pipeline. Reads now go through `node`, a declared engine (>=20.11), so the path cannot be skipped for a missing tool. Thirteen other shell helpers still use jq; the install now prints one note when it is absent, naming what degrades (cost summaries, the tracker's JSON reads, convention extraction, skill signing) instead of leaving each to fail quietly. Both READMEs gained a prerequisites section.
- **The phase-doc token budget has room again.** The token-telemetry instructions were repeated verbatim in four phase docs while the canonical text already lived in `progress-contract.md`; the phases now point at it. Total goes 57599 -> 57059 against a 57600 ceiling, so headroom moves from 1 token to 541. The ceiling was not raised - the space came back from text that had more than its share, the same rule 16.7.1 followed for `help`.

### Fixed

- Six phase docs cited `progress-contract.md#token-telemetry-forwarding-v83`; the heading anchors as `#token-telemetry-forwarding`, so none of those links resolved.

## [16.9.0] - 2026-08-25

### Added

- **`/multi-agent:analysis` emits a run record.** It is a pipeline of its own now - its own phases, its own gates, its own report - but telemetry was only wired into the dev pipeline's Phase 7, so analysis runs were invisible. The panel showed dev work only, and the command people reach for _before_ writing any code did not exist in the usage data. Phase 5 now writes its own `agent-state.json` through `write-state.mjs` (atomic, lock-guarded, so concurrent runs cannot wipe each other) and calls the reporter. `mode` carries the profile, which is what tells one analysis run from another: a `global` run and a `corporate` run are different work. `project` is `null` on a stack-optional run - there is no repository to name - and is digested before it leaves the machine either way. The reporter stays best-effort: a failure there never touches the run, whose summary is already printed.

### Fixed

- The Phase 7 telemetry block still called reporting "optional, opt-in" after 16.8.0 made it on by default. It now states the default, both ways to silence it, and what is actually sent - command, duration, tokens, outcome - along with what is not: no repository name, path, prompt or diff. Same class of staleness as 16.7.1 and 16.8.1: the behaviour moved and the sentence describing it did not.

## [16.8.1] - 2026-08-25

### Fixed

- **`/multi-agent:help` still described the analysis command as it behaved before 16.6.0.** The entry read "per-platform v3 doc (23-section Full / 7-section Lite)" and said nothing about the standard being asked at intake, the corporate profile, stack being optional, or References being built from the evidence record - the word "profile" appeared nowhere in the file. Two releases had added the behaviour and neither had updated the sentence a user reads to learn what the command does.
- **The Copilot and Codex help never listed the analysis family at all.** `multi-agent-analysis` and `multi-agent-analysis-resolve` were absent in both the colon and the dash form, so a user on those hosts could not discover them from help. This predates the recent work; it surfaced while auditing the entry above.

Both fixes fit under the file's grandfathered token ceiling rather than raising it: the new text was trimmed where it carried the least, which is the same rule the 16.7.1 entry followed.

## [16.8.0] - 2026-08-25

Usage reporting answers the question it was built for, and stops carrying what it never should have.

### Changed

- **`usageLog.enabled` now defaults to `true`.** Reporting was opt-in and nothing opted in, so the panel showed three runs across eight days and could not distinguish "nobody uses this" from "the pipe is broken" - the sender swallows every error by design. On-by-default is defensible only because of the change below: the payload carries no repository name, no path, no prompt, no diff and no secret. `usageLog.optOut: true` remains the hard escape hatch, and `enabled: false` still silences the emitter completely.
- **The event carries the command that ran.** `commandOf()` returned `state.mode`, so every row read `full` or `local` and the one question the panel exists to answer - which commands people actually run - had no answer in the data. It now sends the invoked command; `mode` continues to ship separately.

### Fixed

- **The repository name is no longer sent.** `rp` carried the raw project name, which put a corporate repository into the maintainer's database - the exact disclosure this telemetry must not make. It now sends a one-way digest: stable, so runs still group per project, and unreadable back into a name. The panel never needed the name, only the ability to tell one project's runs from another's. The row already stored was redacted in place.

## [16.7.1] - 2026-08-25

### Fixed

- **The two commands 16.7.0 added were not listed anywhere a user looks.** `/multi-agent:review-analysis` and `/multi-agent:feedback` shipped without an entry in `/multi-agent:help` (either language), in either README, or in the Copilot and Codex help variant - so the release published two commands nobody could discover. Every gate was green through seven rounds and none of them caught it, because no gate asks whether a new command was documented; a command a user cannot find is close to a command that does not exist.
- Making room for those entries took `help/SKILL.md` past its grandfathered token ceiling (8586 against 8500). The ceiling is governed by a list that only ratchets down, so raising it was not available - and should not have been. The new lines were cut first, and the rest came from the `store-ready` entry, which spent four lines per language on detail that belongs in its own command doc. A help listing is one line per command. Space for the new commands was taken back from an entry that had more than its share rather than borrowed from the budget.

## [16.7.0] - 2026-08-25

Two commands: one that reviews the document instead of the diff, one that lets a user say something went wrong.

### Added

- **`/multi-agent:review-analysis`** reviews a written analysis the way `/multi-agent:review` reviews a diff. It resolves the document from a local path, a Confluence page or a Jira issue, runs the deterministic gates FIRST and reports their output verbatim (`validate-analysis-doc.mjs`, and `build-references.mjs --check` when a state JSON is available), then runs the parallel model review and triage. Findings cite `Locked <n>` where a rule applies, because "I would have written this differently" gives an author nothing to act on while "Locked 34: this Confluence page is in the evidence record but not in Section 21" gives them a fix and a reason; anything with no rule behind it is marked as judgement rather than dressed up as a violation. The verdict states what was NOT checked - without a state file the references coverage claim is exactly the one nobody can verify from the document alone. It never edits the reviewed document: that belongs to its author, and a reviewer who rewrites it has removed the choice to disagree. `/multi-agent:analysis-resolve` remains the command that folds answers back in.
- **`/multi-agent:feedback "<message>"`** sends one message to the maintainer. **Only the text the user types is sent** - plus the pipeline version, the host CLI and a timestamp, which a report is useless without. No logs, no repo names, no branch names, no file paths, no diffs. That limit is deliberate: this package installs from a public registry, so an automatic log attachment would take a corporate user's internal identifiers off their machine and into someone else's database. A person can paste the one line that matters; a script cannot know which line that is. The exact payload is printed before anything is sent and nothing leaves the machine without a confirmation, autopilot included - a message to a person is never fired unattended. Auth reuses the usage ingest token, so nothing new is onboarded; `usageLog.optOut` does not silence it, because telemetry is passive collection while this is a deliberate act, and silently dropping something somebody chose to send is worse than not offering the command. A send failure is reported rather than swallowed: the person is waiting to hear whether their message went.

### Changed

- **The analysis context-budget gate measures the refs the command declares, not a directory glob.** `multi-agent-refs/analysis/` also holds sibling-command refs - `resolve.md` belongs to `:analysis-resolve`, `review.md` to `:review-analysis` - and an analysis run loads neither, so the glob billed every run for files it never reads. The ceiling goes back to 145000 (from the 155000 v16.6.0 set): with the measurement corrected the real per-run cost is 139672, and that raise had been compensating for the glob rather than for anything the tree costs. A ceiling raised to fit a wrong number stops being a budget. Adding a ref to the analysis command now counts automatically; adding one for a sibling command does not.
- The command surface is 53. Both new commands carry their `shared/core` counterpart for Copilot and Codex, and the canonical inventory in `cross-cli-contract.md` and both sync skills lists them - `smoke-command-inventory.sh` fails on any of those going stale, and did, which is how the gap was found rather than shipped.

## [16.6.0] - 2026-08-25

Two analysis standards, one evidence record, and a references section that is built rather than remembered.

### Added

- **`/multi-agent:analysis` asks which standard the document follows** (Locked 32). Phase 0 Step 1b offers `global` - the 23-section development handoff, unchanged - and `corporate`, a requirements document whose spine is `IG -> UC -> FG`: business requirements, use cases with actor, precondition, main flow and step-bound alternative flows, functional requirements each beginning "Sistem,", service details, and three cross matrices that prove the chain closes. Part A is the requirement document, Part B is the technical analysis, Part C is the development analysis. Both profiles read the same `state.analysisSpec.evidence.*`: intake, fetching, repo evidence and convention extraction are shared, so the projections cannot drift into two products. One run emits one profile - rendering both would produce two documents about the same feature and leave the next reader to guess which is current.
- **`pipeline/multi-agent-refs/analysis-template-corporate.md`**, the corporate projection, plus the corporate backbone rule (Locked 33): Part A and the footer render even with zero evidence, carrying `N/A` when a section is genuinely out of scope and `EKLENECEK` when evidence is expected but missing. A requirements document has to let a reader tell "we considered hardware needs and there are none" from "nobody looked", which the global profile's omission rule deliberately cannot express. Every `EKLENECEK` owes a Risks and Open Questions row naming what is missing and who can answer it; one without a row fails the dispatch gate. Missing inputs never halt the run - the gap is written down and raised, not waited on.
- **The traceability matrix is cross-checked, not just required.** In the corporate profile every `IG`, `UC` and `FG` id defined in the document must appear in the matrix, and every id in the matrix must be defined somewhere else; both directions block dispatch. A matrix that merely exists is not the claim worth making, because every downstream reader trusts it instead of re-deriving the chain, and a requirement quietly missing from it is invisible exactly where it matters. The remaining consistency rules (an IG realised by a use case, an FG naming a source that exists, a cancelled requirement struck through everywhere) stay renderer obligations and are written as instructions rather than as guarantees.
- **`pipeline/scripts/build-references.mjs`** builds Section 21 from the evidence record instead of leaving it to the model (Locked 34). Each row carries a precision anchor - Figma node id, Confluence `pageId` plus page version, the commit sha a repo was read at, the Swagger spec version - because a reference with no anchor points at a moving target six weeks later. Each row carries an access cell, so a declared source that could not be fetched is listed as unreachable rather than dropped; a silently dropped source reads to the next person as a source that never existed. Statements the user made in conversation that no fetched source carries are recorded verbatim as free-text rows with the decision they settled. A coverage gate blocks dispatch when a consumed source is missing from the table and when a listed row has no evidence behind it: an invented reference is worse than an absent one, because a reader will follow it.
- **Two preference keys, declared in the schema rather than only in prose.** `global.analysisProfiles` narrows which standards the Step 1b picker offers (listing one auto-resolves the step), and `global.analysisProfile.corporate` carries the corporate profile's deployment bindings: `confluenceSpaceKey`, `confluenceParentPageId`, `titleFormat` and `titlePrefix`. A corporate analysis always lands in the same tree, so the Phase 3.5 destination prompt is skipped when all four are set and falls back to asking when any is missing. The names are deliberately generic, so no organisation's space, page or tooling names live in the repo, and the key set is closed - `global` is `additionalProperties: false`, so a documented-but-undeclared key would have failed `validate-prefs.mjs` for anyone who set it.
- **Stack selection is optional** (Locked 35). `No platform yet` is a real answer: evidence is still fetched, everything that does not need a target repository renders in full, and only the development layer plus the Pass B projection are skipped, with an open-question row recording why. The output is a single file at `~/Desktop/multiAgentAnalysis/<feature-name>/<feature>.md`: without a repo the usual repo-relative `analysis/` path has nothing to be relative to, and the current working directory is never written to, since for a repo-less run it is arbitrary and creating a folder wherever the command happened to be invoked is the kind of surprise that costs a tool its trust. Desktop rather than a hidden directory because the document is a deliverable meant to be opened and handed over, and `Analysis` because a folder named after the command that produced it is guessable; the Phase 3.5 picker shows the resolved path and takes an override. A requirements document is useful before anyone has decided which repository will hold the code, and refusing to produce one until that decision exists inverts the order the work actually happens in.

### Changed

- **The context-budget gate measures what one analysis run pays, not what the tree weighs.** With two profile templates on disk and exactly one loaded per run, summing both would bill every run for a file it never reads - and would push the project toward deleting a template to satisfy a number that was measuring the wrong thing. The gate is now shared refs plus the largest template; the pinned ceiling moves 145000 -> 155000, and the current cost is 146139 bytes.
- `validate-analysis-doc.mjs` reads `profile` from the front-matter and applies the matching contract. Three global-profile checks - the Section 3 flow-chart warning, the bare `N/A` placeholder warning, and the missing-`BR-` warning - no longer fire on a corporate document, where Section 3 is Business Requirements, `N/A` is required behaviour, and the spine is `IG`/`UC`/`FG`. The Test Plan check matches on title rather than number, so it covers both profiles, and is waived only for the stack-optional render where the development layer is legitimately absent. `platform: none` is a known platform value.

### Fixed

- `analysis-template.md` cited the References-at-the-bottom rule as Locked 20; Locked 20 is the localization mode and the References rule is Locked 21.

## [16.5.0] - 2026-08-25

Staying current stops being something a user has to be told to do.

### Changed

- **`updateCheck.autoUpdate` now defaults to `true`.** A newer version is installed before the run starts, in interactive modes and autopilot alike, instead of asking once per `ttlHours`. The old default made "be current" opt-in, which in practice meant a maintainer telling people to run a command - and since v15.14 the Supported Version Gate already halts any install below the `required` floor, so the real choice was never "update or not", it was "update, or be stopped and told to update". `autoUpdate: false` restores the question; `updateCheck.enabled: false` silences the advisory check (neither disables the required floor, whose only override remains `MULTI_AGENT_ALLOW_OUTDATED=1`). Docs already loaded finish the current run on the old version; the update takes full effect on the next run.
- **The MCP server is registered as `@latest`.** The registration was the bare package name, so `npx` reused any cached copy: a machine that had cached toolkit 3.0.0 kept starting 3.0.0 after 3.1.0 was published and tagged `latest`. The new tool existed on the registry and in the docs, and in no running server. Measured, not assumed - the npx cache held exactly `3.0.0` while `latest` was `3.1.0`. The cost is a registry round-trip when the server starts, and an offline start now depends on what npx can resolve rather than on any cached version being present: a stale server is a silent wrong answer, a failed start is a loud one.
- **Registration is rewritten on every install and update, not skipped when present.** The installer treated "already registered" as done and left the stored args alone, so an existing install would have kept the bare spec forever and the `@latest` change would have reached new installs only. The current entry is now removed before the add, exactly as the pre-rename entry already was. A host that refuses the remove is reported as possibly-stale with the manual command, rather than counted as a clean registration.

### Fixed

- Two comments in `install/_mcp-register.mjs` and one in `smoke-npm-scope-pinning.sh` still said 83 tools / `MCP_SERVER_PACKAGE`; the toolkit serves 84 and the registration builds from `MCP_SERVER_SPEC`.

## [16.4.0] - 2026-08-24

Two default changes are worth reading before upgrading. `/multi-agent:analysis`
no longer overwrites a Jira issue's description - it posts a comment unless you
explicitly choose the description, which is then backed up first. And Phase 6
gained a blocking gate: a plan step that never reached a terminal status stops
the commit instead of surfacing in the Phase 7 report afterwards. Both are
corrections to behaviour that lost work quietly; neither changes a command name
or an option.

Four gaps closed after an audit of candidate designs against this pipeline at source level. The rest was already covered: a constitution is `analysis/locked.md`, an analyze step is `validate-analysis-doc.mjs`, a packed digest is `repo-map.mjs`, an offload pattern is Phase 4 Step 1.9, a secret scan is Gate 4 before any reviewer runs, and memories are the learnings ledger.

### Fixed

- **The triage model could recognise its own findings.** On Claude Code the reviewers are Fable + Sonnet and triage is Fable; on Copilot CLI the reviewers include Opus and triage is Opus. Step 3.2 handed that model a list labelled "Reviewer 1 + Reviewer 2", and the Step 2.5 rebuttal round showed each reviewer "the OTHER reviewers'" findings by attribution - so the judge was marking its own homework, and the word "anonym" appeared nowhere in the pipeline. `scripts/anonymize-findings.mjs` now strips every identity key, relabels findings `Source A/B/C`, and orders them with a PRNG seeded from `taskId:iteration` after a stable content sort, so reviewer completion order cannot leak through position and `/multi-agent:resume` reproduces the same input. The label map is written to a separate file and never enters a prompt. Anonymization covers the whole triage input, because triage is both chairman and panel member.
- **An unfinished plan could reach commit.** Phase 4 answers whether the diff is correct, Step 1.45 covers the planned tests, and the criteria manifest's denominator is rule IDs. Nothing covered the plan's own steps: the `[done]` / `[pending]` rollup is rendered in Phase 7, after the commit. `scripts/plan-coverage-gate.mjs` runs as Phase 6 Step 0a and fails when a step never reached a terminal status, when a skip or failure carries no reason, or when an analysis Section 14 row tagged `Add new` names a file that is not in the tree. It reads current state rather than a diff, and a clean run stays quiet. It never appends remediation tasks: rewriting an approved plan is a Phase 2 decision, not a gate's.

### Added

- **Test baseline (`prefs.global.testBaseline`, default off).** Phase 4 Gate 3 had no way to tell an inherited red suite from one this run broke, so it blocked on someone else's bug or the dev agent "fixed" tests it never touched (`shadow-git.sh init` snapshots files, not test results). Phase 0 Step 7.6 now runs the same command Gate 3 uses, time-capped, and records `state.baseline.tests` with one of three statuses: `green`, `red` with the failing set, `red` with an empty set plus the log path when the output cannot be parsed into names, or `unknown`. Gate 3 subtracts a known failing set, refuses to either pass or silently block on an unparseable red, and leaves today's behaviour untouched when there is no baseline. The baseline is a stored set rather than a question to the user.
- **`smoke-triage-anonymity.sh` (17 assertions), `smoke-plan-coverage.sh` (15), `smoke-test-baseline.sh` (13).** Each proves the behaviour, not the prose: identity keys really are stripped, no model name survives in the payload, the same seed reproduces the order and a different seed does not, reviewer order does not change finding order, per-reviewer metrics degrade to `unavailable` instead of inventing a zero, every unaccounted todo shape is caught, Reuse/Modify rows and template placeholders are not counted against the tree, and no doc collapses baseline `unknown` into `green`.

### Changed

- **`reviewIterations[].reviewers` is typed.** It was `{"type": "array"}` with no item schema, so nothing said a reviewer entry names its model. Now `model`, `findings[]` and `roundCount` are declared, with nothing required: a run written before this shape still validates and surfaces as `unknown` rather than being folded into a named model.
- **`run-metrics.mjs` reports signal-to-noise per reviewer.** `acceptedRatio` pooled every reviewer together, so "which model is worth dispatching" had no answer. With the anonymization map present, accepted findings are attributed back per model; without it the raw counts still land and `perReviewerAttribution` says `unavailable`.
- **`smoke-gate-wiring.sh` matches the property, not the section title.** It grepped for the literal heading "3.0 Merge the deterministic findings in" and reported a wiring break when that section was retitled, while the wiring was intact. It now checks that 3.0 merges, that 3.1 reads the merged count, and that anonymization precedes the merge - relabelling gate findings as reviewer findings would cost triage the difference between a fact and a raw signal.
- **`total_max_tokens` 56600 -> 57600.** Three new phase-doc contracts cost about 1000 tokens after trimming the drafts by 500. Every individual phase stays inside its own max and `phase-0-init` is back under its warn line; only the aggregate needed the same incremental bump the last three feature commits made.

### Fixed (same release, found by reviewing the four items above)

- **`run-metrics` understated a reviewer on a mixed-map run.** `attributed` was a
  single global flag, so an iteration with no label map still added its findings
  to the per-reviewer denominator while being unable to contribute a numerator. A
  resumed run that upgraded mid-flight read as noise the reviewer was never
  credited for. The denominator is now the attributable raw count,
  `rawAttributable` is reported next to `rawFindings`,
  `mappedIterations` says how many iterations carried a map, and
  `acceptedUnattributed` counts every accepted finding that resolves to no
  reviewer - a deterministic-gate finding, which carries no `foundBy` by design,
  or anything from an iteration that had no map - so
  `acceptedAll === sum(perReviewer.accepted) + acceptedUnattributed` holds.
- **`anonymizationMap` was referenced but never declared.** Phase 4 Step 3.0
  writes it and `run-metrics.mjs` reads it, yet it appeared nowhere in
  `agent-state.schema.json` - it validated only because the iteration object
  allows extra keys. That is the same declared-but-undeclared shape the typed
  `reviewers` entry was added to close. Now declared with `seed` and
  `labelToModel`.
- **`anonymize-findings.mjs` documented an exit code it could not reach.** The
  header promised `64 usage`, but the TTY guard was lost when the file was
  rewritten, so a bare invocation blocked on stdin forever and 64 was
  unreachable. Restored, and verified through a pty rather than a pipe.
- **`plan-coverage-gate.mjs` could skip a real Section 14 row.** A header-row
  filter matched `^(dosya|file)\b` against the PATH column, so a promised file
  under a `File/` directory left the denominator silently. The filter was
  redundant anyway - the header's tag cell already fails the `Add new` test - so
  it is gone, with a fixture row proving it.
- **Two gate assertions claimed more than their code.**
  `smoke-triage-anonymity.sh` said "no model name appears anywhere in the
  payload" when the guarantee is structural (no identity FIELD survives; free
  text is deliberately not scrubbed, because that would mangle a finding about
  `ClaudeService.swift`), and the limit is now stated in both the gate and the
  script header. `smoke-gate-wiring.sh` matched a section title instead of the
  property and reported a wiring break on a retitled but intact section.

### Fixed (review round 2)

- **The Section 14 file check was wired to a variable nothing sets.** Phase 6
  passed `${ANALYSIS_DOC:+--analysis "$ANALYSIS_DOC"}`, and `ANALYSIS_DOC` is
  defined nowhere in the pipeline - so in practice that half of the gate never
  ran. The real location is `state.analysis.docPath[]`, an array with one entry
  per platform (Phase 1 Step 4), and `--analysis` is now repeatable so every
  platform's promised files enter one denominator instead of the first one
  standing in for the run.
- **A plan with zero steps passed.** `todos: []` reported `0/0 steps accounted
for` and exited 0, so a Phase 2 that produced nothing - or a state whose todos
  were cleared - read as a fully delivered plan. An empty plan is now exit 2,
  the same as a missing one.
- **A malformed reviewer dispatch vanished.** A reviewer whose `findings` came
  back as an object contributed nothing and said nothing, so triage adjudicated
  a smaller panel than actually ran. The anonymizer now warns on stderr and
  records the loss in the map under `malformed`, named by label.
- **A residual that anonymization does not remove is written down.** With two
  reviewers the label set is `{Source A, Source B}` and the triage model is one
  of them, so it keeps a 50% prior on which findings are its own. The value is
  that nothing tells it; a larger reviewer panel strengthens the same
  property.

### Not adopted, with reasons

- **tree-sitter symbol extraction.** `repo-map.mjs` extracts declarations by regex and tree-sitter would be more accurate, but `package.json` has `"dependencies": {}` and that zero-runtime-dependency property is deliberate. If accuracy is wanted, LSP is the compatible route.
- **Symbol-level reuse detection.** Locked 11's `Reuse existing X (file:line)` rows rest on regex and would benefit, but it means rewriting the Phase 1b collector. Separate work.
- **Per-task `verification` field.** Not a failure class, overlaps the coverage gate above, and touches schema plus plan approval plus the Phase 3 evidence chain - the widest blast radius of the five candidates.
- **`extensions.yml` hooks.** A HookExecutor layer above the existing `prefs` flags, for one maintainer.

### Fixed - Jira channel

- **`/multi-agent:analysis` overwrote the Jira issue description.** The Jira output target was a bare `PUT /rest/api/2/issue/{key}` on the `description` field: one write, no read first, no backup, no preview. An issue whose description held the reporter's own requirement text lost it silently - the picker asked which issue, never what would happen to it. Publishing now goes through `lib/jira-publish.sh`, and the destination question has three answers with **Comment pre-selected** (a comment cannot destroy anything, and it is what an unattended run gets). The description path reads the current value first, writes it to `~/.claude/logs/multi-agent/jira-backups/<KEY>-description-<stamp>.txt` and reports the path, appends below a `----` rule by default, and exits 3 rather than replacing a non-empty field unless the user's explicit "Description - replace" answer supplies `--confirm-overwrite`. The body is escaped by `jira-wiki-escape.mjs` on both paths, and the bearer token is passed through a curl `-K` config so it never reaches argv.

- **A Jira comment showed a smiley nobody typed.** The body referenced the Swift selector `login(source:input:)`, whose trailing `:)` Jira's wiki renderer turns into an emoticon image at render time. `channels/jira.md` had carried an "Emoticon escaping (required)" table with all 21 sequences for releases, and its own text said the table "is applied by the model, by hand" - so on a long body it was skipped, silently. The escape is now `pipeline/scripts/jira-wiki-escape.mjs`: it backslash-escapes each documented sequence, skips `{code}` / `{noformat}` blocks, reaches inside `{{monospace}}` (Jira parses emoticons there too), and is idempotent. `--check` is the inverse, for a pre-POST assertion. Wired into all nine Jira comment/description write sites (channels adapter, analysis description PUT, generate-issue create, wiki-to-Jira triad, readiness review, create-jira).

### Added - Jira channel

- **`smoke-jira-publish.sh`** - 20 assertions over the safe-write contract, driven by a curl stub so nothing touches the network: comment is the default target, the description path GETs before it writes, the backup exists even on the refused path, a blind replace is refused, a confirmed one writes only the new body, an empty description needs no ceremony, `--dry-run` sends nothing, and the token never appears in argv. It also holds `analysis/render.md` to the contract, so the bare description PUT cannot come back in prose.

### Changed - Jira channel

- **`smoke-channel-glyphs.sh` section 3 tests behavior instead of prose.** It used to grep `channels/jira.md` for the escaping table and pass - the table was present, and nothing applied it. It now runs the program: the exact selector that caused the bug, the monospace case, the code-block skip, idempotency, both `--check` exit codes, and a table-to-program tie that reads the 21 sequences out of the doc rather than retyping them, so the doc and the program cannot drift apart in either direction. It also asserts every known Jira write site routes through the escape, which is how a new write site that skips it gets caught.
- **`pipeline/scripts/README.md` counts recounted from the filesystem** - the header said 148 shell + 45 `.mjs` and the smoke heading said 118 files; the tree holds 186 shell, 58 `.mjs`, 151 smokes.

## [16.3.0] - 2026-08-24

Three defects the 16.2.0 review named but did not close, plus one it caused.

### Fixed

- **A section body ran past its own section.** `sectionBody` closed on the next heading at the same depth, so a sub-section that is the last of its parent had no terminator and swallowed everything up to the next sibling. In practice 13.1 ran into Section 14 and the Locked 24 check audited the Files-to-Add rows as concept-table rows, failing a correct document with three errors. It closes on any shallower heading now. Found by running a realistic template-conforming document through the gate, which is something the 16.2.0 fixtures never did: every one of them happened to put the concept table last.

### Added

- **`smoke-state-keys-declared.sh`** - every `state` root a phase doc names must be declared in `agent-state.schema.json`. 16.2.0 fixed `lastAnalysisDigest` by adding a sentence telling Phase 1 to persist it, which is the same shape as the bug it fixed: a contract asserted in prose with nothing checking it. This checks the half a machine can. The twenty roots the schema never declared are held in an explicit grandfather list that may shrink and never grow, and the gate fails if a grandfathered key gets declared and stays on the list.
- **`smoke-doc-model-claims.sh`** - a model named in a README phase line must be the model the persona file declares. Both READMEs credited Phase 1 to Opus for several releases while `explorer.md` had said `sonnet` all along. 16.2.1 fixed the two lines; this fixes the class. Proven against the original regression by putting it back.

### Known

- Both new gates read declarations, not behaviour. Nothing verifies that Phase 1 actually writes the digest at runtime, or that a Turkish document comes out clearer for the humanizer rules. Those are model instructions, and a gate over prose can only check that the instruction is present and self-consistent.

## [16.2.2] - 2026-08-24

### Fixed

- **The companion MCP server's old name survived in the docs.** 16.1.3 corrected one line in `docs/architecture.md` and called the rename done; `docs/ecosystem.md` still carried it 22 more times, including its section heading, its mermaid nodes and its boundary discussion. Fixing the instance is not fixing the class. `docs/internal/GENERICITY-REVIEW.md` keeps the old name on purpose: it is a dated pre-v10.7.0 snapshot, and editing a record to match today falsifies it.
- `docs/ecosystem.md` advertised 80 tools against 83 served, and declared a `≥ v2.9.0` minimum where `cross-cli-contract.md` requires v3.0.0.

## [16.2.1] - 2026-08-24

### Fixed

- **Both READMEs credited Phase 1 to Opus.** The explorer persona has run on `sonnet` since it was retuned, with a rationale in its own frontmatter saying sonnet matches opus on file inventory and dependency graphs at a fraction of the cost. The phase doc carried the same leftover in an `explorer/Opus` reference. A model name in a README is the kind of claim nobody re-derives, so it stays wrong until someone reads the persona file.

## [16.2.0] - 2026-08-23

The analysis subsystem said things its gate did not enforce. `locked.md` carries 31 decisions; four of them ended with the sentence "fails the dispatch gate", and the dispatch gate implemented none of the four. This release makes three of them true and pulls the fourth back to what actually happens.

### Fixed

- **The humanizer punctuation check flagged text the humanizer is documented to leave alone.** `analysis/render.md` exempts front-matter, fenced code, table rows and URLs; the validator split the whole file and scanned every line, so an em-dash inside a URL or a Swift snippet was a hard ERROR no humanizer pass could clear. Scope now mirrors the pass it enforces. The prose body is still checked, proven by a negative control rather than assumed.
- **An orphan code fence hid Section 16 from the model.** The Section 15 scaffold closed early, leaving 15.7 outside it, and the stray closing fence then opened a block that swallowed the Locked 31 dispatch rule, the Section 16 heading, its instructions and its entire scaffold. Sixty-three fences in a file that can only be even. Section 16's contract had been arriving as a code sample.
- **Phase 3's staleness check could not fire.** Step 3 compared `state.run.lastAnalysisDigest` against the document front-matter, and nothing in the pipeline ever wrote that key; the state schema did not declare it either. Every run took the absent branch and reported fresh. Phase 1 now persists it, plus a `base_commit` anchor, and the schema declares both containers.
- **The template attributed the Files-to-Add tag rule to Locked 15** (new assets default to SVG). It is Locked 16; the schema already had it right.
- **`filesToAdd` was typed `["object", "null"]` under a description reading "Never null."** Now `object`, matching its own sentence and its presence in `required`.
- The variant-coverage check anchored on a heading numbered literally `6.X`, while Locked 2 requires numbering to re-flow. Renumber the section and the check stopped running, silently. It now keys on the heading text.
- "23 main sections + 3 footer" counted the footers twice, and Lite mode advertised "7 main + 1 footer" above a list of eight numbers. Corrected across seven surfaces, both languages.

### Added

- **The dispatch gate enforces Locked 16, 24 and 31.** Untagged Files-to-Add rows, concept-table rows that state no evidence, and business rules with no Section 15 scenario are now errors rather than sentences. The traceability check previously warned when a `BR-` id appeared fewer than twice anywhere in the document; it now resolves the actual chain, from the rule's definition to a test that covers it.
- **Section 15 must exist in Full mode.** It is what Phase 3 reads as the RED input, so a document without it hands development an empty test matrix - and the gate used to accept that with exit 0. A rule defined with no unit sub-table fails too. The omission table allows exactly one exception, a backend-only run with no contract testing planned, and the validator knows the platform, so that case warns instead of blocking.
- **Section 3 diagrams are checked.** A rendered section with no mermaid block is an error; an absent section is a warning, because the template's omission condition (single screen, single service, simple rule) is real and a blanket requirement would be wrong. The 3.3 state-machine sub-section gained the trigger it never had.
- **The humanizer knows what language it is writing.** It was 135 lines of English AI-slop patterns with no notion of `outputLanguage`, applied to Turkish analysis documents that stakeholders read in Confluence. Turkish fails differently: nominalization chains, clauses piled up before a sentence-final verb, calqued English structure. Those are now named, with the diacritic rule moved beside them instead of living only in the caller's doc.
- **The three tones the pipeline passes are defined.** `technical-explanatory`, `formal-stakeholder` and `informal-technical` appeared at seven call sites across two refs and in none of the skill; all three silently collapsed to the same default, so the stakeholder page and the ticket comment came out identical. `smoke-humanizer-contract.sh` harvests the tone names from the call sites and fails when one has no definition.
- **Section 14's tag reaches development.** Phase 2 carries it onto the todo as `sourceTag`; Phase 3 binds the existing file on a `Reuse` step instead of writing a new one, and Phase 4 checks the diff against it. The analysis had already settled that decision and the implementer was re-making it.
- **Repo drift is detectable.** `base_commit` in the front-matter lets Phase 3 diff the repo against the commit the spec was written from. This is the case a digest cannot see: a reused document keeps a matching `evidence_digest` precisely because its evidence inputs did not change, while the code underneath it moved. Recomputing the digest would mean re-running Phase 1b and 1c, which is why the anchor is a commit.
- The analysis ref tree is measured: 132138 bytes across seven files, and nothing had ever put a number on the largest reference the pipeline ships. Unlike `rules/`, this loads once per analysis run rather than once per session, so the ceiling exists to make growth visible, not to force a cut.
- `smoke-validate-analysis-doc.sh` grew from 13 assertions to 26, every one planted-and-proven: the bad document is fed in and the error text matched, with a negative control wherever a check could pass by never firing.

### Known

- **The template prescribes two shapes for the Section 13.1 concept table and does not say which wins.** The scaffold uses explicit `Confidence` and `Evidence` columns; the Pass B footnote grammar puts the same facts in a `^[key confidence: source]` suffix, and its examples reuse the scaffold's own row names. Both carry the evidence, so the Locked 24 check accepts either and fails only a row carrying neither. Choosing one shape is a design decision for a follow-up, not something a gate should settle by rejecting half the template.
- The state schema declares `additionalProperties: false` while the phase docs write about twenty roots it does not define (`dev`, `plan`, `analysisSpec`, `taskType`, `maturity` and others). This release adds the two it touches, `analysis` and `run`. Nothing validates a state instance against the schema today, so the drift is latent rather than active.

### Changed

- **Locked 18 no longer claims a gate it cannot have.** URL-only Figma references in Section 5 are a review finding, not a validator error: whether an attachment upload succeeded is known at the Confluence dispatch step, not by reading the markdown.
- Phase doc aggregate 56350 -> 56600. The baseline had nine tokens of headroom, so no addition of any size could fit; compression came first and took the four new blocks from 380 tokens to 214.

## [16.1.3] - 2026-08-23

A dead-code and stale-name sweep. No dead symbols: every function and constant added this week is called from somewhere. Five stale names and one lie.

### Fixed

- **The uninstall preview described the wrong MCP entry, and claimed to remove one it now keeps.** The dry-run text named `dev-toolkit` - the pre-v15.12.0 name - and listed it as removed, while a current install registers `multi-agent-toolkit` and 16.1.0 made that one survive. The preview is the last thing a user reads before confirming a destructive action, so being wrong there is worse than being wrong in a comment. Both host lines now say which entry goes and which is kept, and that `lib/` keeps the credential reader.
- `refactor`'s research ref was still `dev-toolkit-research.md`, two releases after the server was renamed. Renamed to `toolkit-research.md` with both SKILL trees updated. The file was never dangling - just carrying a name that stopped being true.
- `docs/architecture.md` listed `dev-toolkit-mcp` as a sync target; the repo is `multi-agent-toolkit-mcp`. The plugins repo README and two site comments named the old server too.
- The MCP registration header still said "80 tools"; it serves 83.

### Added

- **Both READMEs and `docs/features.md` describe what 16.1.0 actually shipped.** They had been checked for stale `--dev` references and found clean, which is not the same as being current: the release's headline capability - the install being usable in an ordinary session - appeared in none of them. Now it does, in English and Turkish, including the part that constrains it: reads are ordinary work, writes route through the pipeline commands that carry the rules making them safe.

## [16.1.2] - 2026-08-23

The rule reached all three hosts in 16.1.1. It only WORKED on one.

### Fixed

- **Rules were installed with a byte copy, so every path in them dangled on two hosts.** Each CLI keeps its trees under its own root, and both installers carry a path-rewrite table that names `rules` explicitly - but `installRules` (Copilot) and `installTree` (Codex) used a plain `copyDir`, so the rewrite never ran on that tree. Result: all 13 rules told a Copilot or Codex session to run `~/.claude/lib/credential-store.sh`, a tree those installs never create. This is the same dangling-path class the Copilot rewrite was written to eliminate for skills; rules were named in the doctrine and left out of the code. It bites hardest on the one rule whose entire job is resolving that path. Both installers route rules through `copyTreeRewritten` now: `~/.copilot/lib/...` on Copilot, `~/.codex/lib/...` on Codex, unchanged on Claude Code. Twelve pre-existing rules were fixed along with the new one.
- `outside-the-pipeline.md` says what to do when the refs tree is absent. Copilot installs no `multi-agent-refs/` by design - the doctrine routes those references to `~/.claude` when Claude Code shares the machine - so a Copilot-only install was being sent to a file that is not there with no explanation. The rule now states that the summary it carries IS the contract in that case.

### Changed

- `smoke-context-budget.sh` asserts both installers put rules through the rewriter. Verified by reverting the Copilot fix and watching it go red. Shipping a rule to a host is not the same as shipping a rule that works there, and only the second one is worth the bytes it costs every session.

## [16.1.1] - 2026-08-23

Found by reviewing 16.1.0 after it shipped, and by the `/mcp` reconnect confirming the fix worked.

### Fixed

- **Copilot installs a rules tree and never mentions it.** `copilot-instructions.md` names `skills/`, `scripts/` and `agents/` but has zero references to `rules/` - so all 13 files, 31874 bytes, land in `~/.copilot/rules/` with nothing telling the agent they exist. That predates this release; 16.1.0 simply added a fourteenth unread file to the pile. Codex got its pointer in 16.1.0 and Claude Code has always had the CLAUDE.md "Modular Rules" table; Copilot now has one too, naming which rule matches which kind of work.
- `smoke-context-budget.sh` asserts reachability alongside size. A tree paid for by every session and pointed at by nothing is worse than one that is read: same cost, no return. Verified by removing the pointer and watching the gate go red.

### Verified

- The MCP scope fix works end to end: `/mcp` reports `Reconnected to multi-agent-toolkit` and all 83 tools are present. 16.1.0 could only show the server serving them when run directly.

## [16.1.0] - 2026-08-23

Installing the pipeline set up three capabilities that only worked inside `/multi-agent`. A plain session had the tokens, the plugins and the MCP server on disk and no way to know it.

### Added

- **`rules/outside-the-pipeline.md`** - the always-loaded pointer that makes the install usable without a run. Services (resolve the onboarded token, read freely, route writes to the commands that carry the safety rules), stack skills (ask each enabled toolkit's own `index`), and the toolkit MCP. 1412 bytes; the detail lives in `multi-agent-refs/outside-the-pipeline.md` and loads on demand. `rules/` already carried the proof this works: `figma-pipeline.md` is why Figma was reachable outside a run and the other 15 mapped services were not.
- **A budget for `rules/`.** It was the one always-loaded tree nothing measured - 30462 bytes across 12 files, every one loaded into every session whether the pipeline is used or not. `globs:` does not gate this: `code-style.md` declares `**/*.swift` and still loads in a repo with no Swift, so size is the only lever. Total ceiling 33500, and a 2048-byte cap on a capability-announcing rule so it stays a pointer rather than becoming a catalog. Both pinned in `context-budget-gate.test.mjs`; the cap caught this release's own rule at 2476 bytes and sent the detail to a ref.
- **`smoke-npm-scope-pinning.sh`** - one root cause broke three things this release, so it is now a gate rather than a lesson.

### Fixed

- **The toolkit MCP had been failing to start, and the error named nothing useful.** `/mcp` reported `CONNECTION_CLOSED`. The registration was `npx -y @scope/pkg`, and a `@scope:registry=` line in the user's `.npmrc` outranks everything that is not itself scope-specific - so npm looked in GitHub Packages, the package was not there, and the process never launched. Measured: `npm view @mmerterden/multi-agent-toolkit-mcp version` returns 404, the same command with `--@mmerterden:registry=https://registry.npmjs.org` returns 3.0.0. The server was never broken; run directly it serves 83 tools. The registration now derives the scope from the package name and pins it, so a fork under a different scope pins its own.
- **Uninstall deleted the only way to read the tokens it promised to preserve.** `lib/` was in the removal set, `credential-store.sh` lives there, and the closing message then advised running it. `--all-data` went further and removed `global.keychainMapping`, leaving the surviving tokens under names the user never chose and no longer had a record of. Both are preserved now; everything else in `lib/` and in the preferences file still goes, which is what separates keeping the right thing from stopping the clean.
- **The `multi-agent-toolkit` MCP registration survives uninstall.** Its device, accessibility and store-audit tools are useful with no pipeline at all - the same reason the tokens stay. The retired `dev-toolkit` name is still deregistered: it points at a registration nothing maintains, which is litter, not preservation.
- **Phase 3 skill routing knew two toolkits out of six.** The stack table mapped `ios` and `android` and sent everything else to "no toolkit", so a React or backend repo was told it had none while its plugin sat enabled with a routing table inside it. Routing now reads the effective `enabledPlugins` - the set `/multi-agent:stack` already writes - which cannot go stale when a seventh toolkit ships. The doc's own stale sentence ("a backend or web repo legitimately has no toolkit") went with it.

### Changed

- Routing is one definition with two callers: Phase 3 and the always-on rule both read the enabled set and defer to each plugin's `index`. Only the `telemetry.skillCalls[]` recording is run-specific. `smoke-stack-skill-routing.sh` asserts the rule keeps no toolkit table of its own - a second copy is the one that goes stale.
- That gate previously required the contract to name `ai-ios-toolkit` and `ai-android-toolkit`, which pinned in place the exact two-row table that was the bug. It now asserts the resolution source instead of a list of names.
- Codex's `AGENTS.md` gained the same pointer (it had zero mentions of the credential path; Copilot had one line, Claude none).

## [16.0.1] - 2026-08-23

Found by reviewing v16.0.0 after it shipped. Four defects, three of them mine from that release.

### Fixed

- **`/multi-agent:update` could not download the release, and said the opposite.** Step 3 ran `npm pack --registry "$REG"` under a comment claiming "an ambient .npmrc must not reroute the scope elsewhere". `--registry` does **not** override a scope mapping: a user-level `@scope:registry=https://npm.pkg.github.com` line wins, npm fails with `notarget`, and `--silent` hid the reason. Measured on the maintainer's own machine - exit 1, no tarball. The scope is now pinned with `--@<scope>:registry`, the failure prints the diagnosis and the `npm config get` command that confirms it, and the tarball name comes from npm's own output instead of a glob that would have extracted a stale tgz left in the temp dir. This mattered more than usual because v16.0.0 published a `required` floor whose remedy is exactly this command.
- **`analyst.evidence` and `analyst.signals` shipped declared-but-inert in v15.22.0.** Nothing read them. They passed `smoke-prefs-consumed.sh` because the words "evidence" and "signals" saturate the very file that should have consumed them. Phase 1d now names `prefs.global.analyst.evidence[]`, `.signals[]` and `.webSignals` where it dispatches, and states that a source absent from its array is off rather than unreachable.
- **`priorArtEnrichment.topN` never reached the script it configures.** `triage-memory.mjs query` reads `memoryRecall.maxResults` (5) unless `--top` is passed, so a user setting `topN: 3` got 5 and no signal. Phase 4 passes `--top` now.

### Changed

- **`smoke-prefs-consumed.sh` was reporting green off its own prose.** The gate lists formerly-inert settings in its header to document them, and its own file sat in the search path, so `contextOffload.minLines`, `learningsLedger.maxBriefEntries`, `testGap.scanTree` and `.promoteSeverity` were all satisfied by the sentence describing them as broken. It excludes itself now, the way the portability and personal-data scanners already did.
- **A second rule, for the blind spot that let two of the above ship.** A new setting must name its full path - `parent.leaf`, or the shell form `prefs_parent_leaf`, which is the stronger signal since it can only come from resolving that exact key. Bare-leaf matching survives for 32 grandfathered settings that are legitimately referenced by leaf name in prose. The list is a ratchet enforced mechanically, not by promise: an entry that has since been wired fails the gate until it is deleted.
- Underscore is a word character to both `grep -w` and `\w`, so a bare-leaf search never sees `${prefs_testGap_scanTree:-false}`. Three genuinely wired settings looked dead the moment the gate stopped searching itself; recognising the shell form is what tells a real defect from that artefact.
- The scan is one filesystem walk matched in memory instead of two recursive greps per setting across 944 files: 2 minutes back down to 1.5 seconds.

## [16.0.0] - 2026-08-23

### Removed

- **`--dev` and the four `dev-*` commands.** They existed only to express one boolean - skip Analysis and Planning - and made the user learn four command names to say it. Depth is now a question the run asks itself.
- **"Fast plus unattended" as a combination.** This is the part that is a behaviour change rather than a rename, so it is stated plainly: `dev-autopilot` and `dev-local-autopilot` have no equivalent. Autopilot may not ask questions, so something has to choose the depth, and an unattended run is the worst place to drop analysis and planning - nobody is watching to notice what the shortcut lost. A cron job or script on those names now picks: stay unattended and pay for the full pipeline, or stay fast and have a person present.
- All four names ship as **redirect stubs** for one minor release. A stub prints where to go and runs no phase; the files are deleted in the next minor. Same two-step the `delete` → `uninstall` rename used in v12.0.0.

### Added

- **Phase 0 Step 7.5, the depth picker.** Full or Short, asked once, recommended from the `taskType` Step 7 already computed: `bugfix` / `chore` recommend Short, `feature` / `refactor` / `component` recommend Full. `/multi-agent` and `/multi-agent:local` ask it; both autopilot entries and analysis mode do not.
- The question **names the caveat before the choice, not after**. When the intake carried an analysis document or a Figma reference, Short is the option that skips the only two phases that would turn that document into a task breakdown, and the user reads that inside the question.
- **`smoke-pipeline-surface.sh`** - four entries, four stubs, no live `--dev` anywhere, the depth step passes `ASK_CHOICE_DEFAULT`, help lists only commands that exist, and the four downstream readers of `onlyDevelop` still read it. Both of its scanners carry a planted-probe self-test, so a green run means "scanned and clean" rather than "the pattern matched nothing".
- **`smoke-analysis-mode.sh`** - 41 checks over the analysis mode: its phase set writes no code and runs no test, Phase 1 produces the document the pre-flights block on, both pre-flights read a status instead of aborting, the humanizer is invoked rather than approximated by a punctuation grep, the validator runs in every mode and fails closed, the open-question walk is reachable from Phase 2 and Phase 4, and Locked 30 still holds (no Figma access after the analysis phase, with a probe proving the detector can fire).

### Changed

- **`state.onlyDevelop` is untouched.** The whole point of routing the picker into the existing key is that nothing downstream had to change: Phase 2's pre-flight, Phase 3's model selection, `agent-state.schema.json` and `usage-report.mjs` all keep working, and only who sets the key is different. `smoke-pipeline-surface.sh` asserts all four still read it.
- **Tracker tiles flip late instead of being pre-marked.** The tracker boots at Step -1 and the depth answer arrives at Step 7.5, so a Short run registers Phases 1 and 2 like any other and flips them to `skipped` when it learns. Pre-marking is forbidden by the ordering contract and produces a visually scrambled tile stack; this is the pattern the contract already prescribed for exactly this case.
- `gen-mode-dispatch.mjs` no longer knows the four dev modes, and `smoke-mode-dispatch-drift.sh` asserts it **rejects** them - a generator that still answers `--mode=dev` is an invitation to restore the command.
- `smoke-dev-mode-review.sh` → **`smoke-short-run-review.sh`**. Its concern survives the rename intact: the fast path reviews its own work. Analysis and planning shape work that has not happened yet, so an already-scoped task can skip them; review judges work that now exists and has no substitute.
- Command inventory reads **51 files, 47 live commands**, and both numbers are derived. `smoke-command-inventory.sh` counts stubs by the H1 title rather than anywhere in the body, because `help` legitimately lists the retired names under a "Removed in v16.0.0" heading and counting it would report one stub too many with a straight face.
- Three gates (`smoke-command-inventory`, `smoke-generate-issue`, `smoke-review-readiness`) were each asserting the exact inventory header string. Two now check only that it leads with the derived count: one string asserted in three places means a legitimate change has to be made three times, and the third gets forgotten.
- Help, modes, the tracker contract, both phase docs, the dispatcher, the cross-CLI contract, both READMEs, `docs/features.md` and `docs/architecture.md` all describe depth as a question. CHANGELOGs, `docs/internal/`, ROADMAP release entries and prefs migrations keep their `--dev` mentions: they record what was true when they were written, and rewriting that is how a changelog stops being evidence.

### Fixed

- **Fourteen files still pointed readers at the retired command names.** The first sweep of this release chased the `--dev` flag and missed the class beside it: a file can drop the flag and still say "run `/multi-agent:dev`", which now only prints a redirect. Both READMEs, the Copilot instruction template, the mode-comparison tables in `local-autopilot` (both trees), the Copilot orchestrator's phase-set list, `ios-coding-standard`, `resume-local`, `store-ready`, `rules.md`, Locked 30 and 31, the analysis template, `render.md`, the complaint template and command, and the complaint schema all named a command that no longer dispatches. `smoke-pipeline-surface.sh` gained check 5b for the class, with a planted probe and a one-line-of-context rule so a wrapped removal notice is not misread as a fresh pointer.
- **The Copilot orchestrator's Phase 0 contract said "8 sequential interactive steps" and stopped there**, so a Copilot run had no instruction to ask the depth question at all. It now names Step 7.5 and who is exempt from it.
- `update`'s sample output still claimed 205 skills and 228 scripts; the real numbers are 208 and 245.
- The three generated indexes (`skills-index.md`, `.skills-index.json`, `shared/README.md`) were carrying the old command descriptions and skill counts; regenerated.
- **`local` mode's Phase 5 was documented two ways.** `modes.md` said the local pipeline keeps the interactive test prompt; `gen-mode-dispatch.mjs --mode=local`, which is byte-equality-enforced against the command file, drops Phase 5 entirely. The generator is right - the gate hands the user a change checked out of a worktree, and local has no worktree - so both `modes.md` rows now say so.
- **`cross-cli-contract.md` section 7 claimed Claude Code was macOS-only.** It has not been for some time, and the assumption it invited - that a Windows user necessarily arrives through Copilot or Codex - produces wrong conclusions about which code paths need to be portable.
- The phase-4 telemetry block named as compression debt in v15.22.0 was collapsed to an `emit()` helper.

## [15.22.0] - 2026-08-23

### Added

- **`ai-analyst-toolkit`, the second always-on plugin.** Analysis work needs facts the repo cannot supply: whether a dependency has a known upstream bug, what a release actually changed, whether anyone outside this team has reported the same symptom. Five skills answer those, and the plugin is enabled everywhere alongside `ai-common-toolkit` because none of the questions are stack-specific.
- **Two tiers, kept apart on purpose.** EVIDENCE (`evidence-github`, `evidence-registry`) has a citable identity and may feed a specification body, cited `GitHub:<owner>/<repo>#<n>` or `Release:<pkg>@<version>`. SIGNAL (`signal-community`) is advisory and may only reach Section 20 Risks. A specification is reviewable because every claim in it can be checked; a forum post is one person's experience, and letting it into a requirements section makes the checkable and the anecdotal look identical.
- **Access reflects what these sources actually allow in 2026.** GitHub goes through the already-authenticated `gh` CLI. npm, PyPI, Maven Central and Swift Package Index are keyless HTTP. Stack Overflow and Hacker News are keyless too, with HN search through `hn.algolia.com` because the official Firebase API has no search endpoint. Reddit closed self-service app registration in late 2025 and X discontinued its free tier for new developers, so both are reachable only through the host CLI's own web search: `prefs.global.analyst.webSignals`, off by default, best-effort, and exempt from cross-CLI parity for the same reason Figma component work is.
- **Phase 1d in the analysis engine**, plus `evidence.outside[]` / `evidence.signals[]` in `analysis-spec.schema.json`. Signal is deliberately excluded from the Locked 27 evidence digest: it changes by the hour, so including it would produce a new digest every run and permanently invalidate the cache the digest exists to serve. The consequence is stated where it matters - a cache hit reuses yesterday's signal rows, and `--no-cache` is how you refresh them.
- **Four other callers, all optional.** `refactor` Step 0 routes its GitHub / X / Reddit research through the skills instead of ad-hoc searching. The shared readiness review asks whether a reported bug is already open upstream, which changes the comment rather than the score. `complaint-analysis` can corroborate a complaint beyond one device. Phase 4 triage defers a finding that blames a third-party library, with its citation, instead of sending Phase 3 to fix code that is not ours.
- **`prefs.global.analyst`** (`evidence[]`, `signals[]`, `webSignals`) and **`prefs.global.analysisPhase`** (`mode`, `forceFull`, `commitDoc`). The second block had been referenced by three phase docs since v15.17.0 without ever being declared.

### Fixed

- **`analysisPhase.forceFull` was declared-but-inert.** `smoke-prefs-consumed.sh` caught it the moment the schema landed: nothing read the key. Phase 1 Step 4 now names both it and `mode` in the when-table - one decides whether a document is produced, the other how deep it goes.
- **`evidence.documents[]` had nowhere to land.** v15.20.0 added `fetch-document.sh` and a `document` link type, but `analysis-spec.schema.json` is `additionalProperties: false` and had no bucket for the result, and the Phase 1 fan-out table had no row for the type. Both exist now, and a document whose text could not be extracted stays in the list with `fetched: false` so Section 21 still cites it - dropping it would make the analysis read as if the file was never supplied. `standards.kind` accepts `document` too.
- **Copilot and Codex silently lost every `ai-common-toolkit` skill whenever a repo named its stack.** `pluginsToDeliver()` derived the delivery set from `enabledPlugins` and kept only what it found there, so a `.claude/settings.json` listing `ai-ios-toolkit` alone dropped all 32 common-toolkit external skills (humanizer, firebase, council, search-first, the accessibility audit and five more) from both copy hosts. Claude Code loads them from the marketplace, so the loss was invisible on the one host with a plugin loader and total on the two without. The installer now unions an exported `ALWAYS_ON` set into every selection, and `smoke-install-layout.sh` imports that same constant instead of restating the enabled list - a hardcoded copy of it is what let the gate stay green through the whole regression.
- **The document fetch was invisible in the progress contract.** `by-type` and the deep-fetch line now carry `document`, with a `degraded` outcome for the found-but-unreadable case (a PDF on a machine with no `pdftotext`).

### Changed

- `smoke-stack-skill-routing.sh` gained check 7: the always-on toolkits must be wired in every mechanism that carries them. "Always enabled" is not one switch - the routing table, the plugin builder, the installer (Copilot and Codex have no plugin loader, so a plugin missing there is simply absent) and the two SKILL files each fail silently on their own.
- Description-surface ceiling 82600 -> 83400 and the paired literal in `context-budget-gate.test.mjs`. All three new descriptions were trimmed toward the average first; the average held at 320 against its 420 ceiling, which is this gate's own signal that the tree grew rather than that anything is padded.
- Phase-doc aggregate 55800 -> 55900. Compression came first and three times, taking the new prose from 220 tokens to 110; the Phase 1d contract itself never entered this budget, because it lives in `multi-agent-refs/analysis/evidence.md`.

## [15.21.0] - 2026-08-23

### Added

- **A confirmation pass that shows what was derived and asks only what was not.** Phase 2 Step 0.9 runs before planning: the platform set, the seven convention groups, the existing components, the localization keys and the analytics events all came out of the repos in Phase 1, so they are shown for confirmation rather than asked. Only Section 20 rows are asked, through the resolve engine, one row with at most three source-labeled candidates plus Defer - and never an invented one. It sits here rather than in Phase 4 because Phase 4 runs after development, where an answer arrives too late to change anything.
- A corrected derived value rewrites its Pass B footnote as `^[user-override: resolved <date>]` (Locked 24), so where a value came from stays traceable even after a human overrode it.

### Changed

- **The analysis stopped asking for the platform.** Every repo selected in Phase 0 already carries a stack tag from the project scan, so the platform set is the distinct tags of the selected repos. It is derived and shown in the breadcrumb; the question survives only as a fallback for an untaggable repo or a user who wants fewer platforms than the repos imply.
- **The analysis stopped asking for repos.** That was the third place asking the same thing - Phase 0 Step 2 selects projects, `_dev-context.md` adds editable siblings, and analysis re-derived its own list on top. Repos now come from Phase 0, and the platform-to-repo mapping falls out of the stack tags.
- `prefs.projects[<key>].frontendRepos[]` moved into `_dev-context.md`. Only the analysis command read it, which meant the pipeline's own dev-context picker could never offer a frontend repo - they are rarely submodules, so submodule detection never finds them.
- Phase-doc token budget: total 55500 -> 55800. Compression came first and twice, 430 tokens down to 250, by collapsing the derived-versus-asked explanation and leaving the walk itself in the ref that Phase 4 and `analysis-resolve` already mount.

## [15.20.0] - 2026-08-23

### Added

- **The analysis can read a Word file now.** Nothing in the pipeline handled `.docx`, which is the format most feature specs actually arrive in - a spec had to be pasted or re-typed into Confluence before the analysis could cite it. `pipeline/lib/fetch-document.sh` handles `.docx`, `.pdf`, `.md` and `.txt`, as a local path or a URL, and the extractor gained a `document` type that recognises both. It is distinct from `generic-doc`, which is an HTML page: this one is a file that must be converted before it can be read.
- **No new dependency for the common case.** A `.docx` is a zip, so `word/document.xml` is parsed with the python3 standard library the lib layer already requires; the same code path runs on macOS, Linux and Windows. Requiring pandoc or libreoffice would have been the wrong dependency for a tool that must work everywhere. PDF has no stdlib path: `pdftotext` is used when present and its absence is a soft skip (exit 6, `converter-not-available`), which on Windows is the normal case, not an error. The converter binary is configurable via `DOCUMENT_PDFTOTEXT`, which is also how the smoke exercises the degrade path without breaking `PATH`.
- **The analysis test plan is now the TDD RED input.** Phase 3's pre-flight read the concept table and even claimed test method names come from the analysis, while nothing read Section 15 - so RED invented its own tests and the carefully written test matrix never reached development. Step 5b loads it into `state.dev.testPlan[]` and RED writes those rows. Phase 4 step 1.45 then cross-checks every planned row against a real test: missing is `important`, present-but-asserting-something-else is `blocking`. That is what makes "analysis quality is output quality" a finding rather than a slogan.

### Fixed

- The local-document matcher also matched the path inside a URL, so `https://x/api.pdf` produced a phantom local file `//x/api.pdf`. Matches overlapping a URL span are skipped; the smoke asserts a document URL yields exactly one entry.

## [15.19.0] - 2026-08-23

### Added

- **Business rules are written in EARS now.** Section 4.4 rule statements were free prose, so Locked 31's "two readers must not disagree on pass/fail" was carried only by the acceptance criterion, not by the rule it came from. EARS (Easy Approach to Requirements Syntax, IEEE RE'09, five patterns) fixes the clause order and the keyword set, which is what removes the ambiguity. EARS states the rule, Gherkin still states how you check it - Locked 13 widens, it does not change.
- **Section 15.7, manual test scenarios.** The pipeline already emitted this format as the Jira test-scenario comment from `resume-local`; the analysis had no place for it, so the document a QA engineer needs was the one thing the spec did not carry. Defined once, read by both. Every MT row carries its `BR-` id, and the validator enforces it: a scenario nobody can trace to a rule is a scenario nobody can tell is stale.
- **Section 6.X is the whole variant axis, not the part this screen used.** New Phase 1b.2 walks each Code Connect-bound instance to its main component and reads `componentPropertyDefinitions`, so "used subset" finally has a set to be a subset of. Locked 29 promised this table for four releases with no step that could produce it. It has to happen in Phase 1: Locked 30 forbids Figma access afterwards, so an axis missed here is missed for the run.
- **Three layer headings**: `Bölüm A - Analiz` (what to build), `B - Teknik Analiz` (what is true), `C - Geliştirme Analizi` (how to build it), with a boundary rule - remove the row, what becomes unclear - and the corollary that A carries no technology name and C no business rationale. Additive `#` headings only: section numbers are referenced in 172 places including two validators, so nothing renumbers, and Confluence gains a two-level table of contents for free.

### Fixed

- **A layer heading could have satisfied a required section.** `validate-analysis-doc.mjs` matched required sections by substring over every `#{1,3}` heading, so a layer named `Bölüm B - Mimari ve Teknik` would have reported the architecture requirement as met with Section 13 absent. The matcher now only reads numbered section headings. Caught while adding the headings, not after shipping them.

### Changed

- UI test scenarios default ON for `taskType == component` and for any task carrying a Figma reference. They were opt-in everywhere, so UI work started with UI tests switched off.
- The doc validator gained the 15.7 and 6.X rules; `smoke-validate-analysis-doc.sh` grew from 10 to 13 assertions, one per new contract, each planted-and-proven rather than asserted.

## [15.18.0] - 2026-08-22

### Added

- **`/multi-agent:analysis` is a pipeline mode now, not a command standing beside the pipeline.** It runs on the same 8-phase machinery - tracker tiles, `:resume`, the cost ledger, the channels report - with four phases reinterpreted the way `--dev` reinterprets Phase 3: Phase 3 and Phase 5 skip, Phase 4 reviews the document instead of a diff, Phase 6 publishes instead of committing. Phase set 0/1/2/4/6/7, generated by `gen-mode-dispatch.mjs --mode=analysis` and drift-checked like every other mode.
- Phase 4 in analysis mode asks reviewers one question: could an implementer build the right thing from this document alone? A finding is anything that would force them to guess. The Section 20 walk runs there too, and a deferred row reports `review_blocking` rather than quietly staying open.
- No `local` or `autopilot` variant, on purpose: worktree isolation buys nothing when no code is written, and the intake, the convention preview and the open-question walk are interactive by nature.

### Changed

- The engine keeps moving out of commands and into `multi-agent-refs/analysis/`: `intake.md` and `resolve.md` join `locked/evidence/synthesis/render`. `analysis-resolve` and pipeline Phase 4 now mount the same resolution walk instead of describing it twice, and `analysis/SKILL.md` fits under the 6000 hard cap that applied once its grace entry was retired.
- Phase-doc token budget: total 54900 -> 55250. Compression came first and three times, twice on the new prose and once on old: both mode branches shrank by pointing at the refs that hold the actual walks, and the front-matter parse contract stopped being spelled out identically in two pre-flights.

## [15.17.0] - 2026-08-22

### Fixed

- **The full pipeline demanded a document nothing produced.** Phase 2 and Phase 3 pre-flights have BLOCKED on `analysis/<feature-slug>-<platform>.md` since v9.0.0, and Phase 1 never wrote it - its output was `analysis.json`, a different artefact. So a full run either aborted at Phase 2 telling the user to go run `/multi-agent:analysis` by hand, or the model quietly ignored its own BLOCKING contract. Phase 1 Step 4 now produces the document, and both pre-flights read `state.analysis.docStatus` instead of guessing from the filesystem: `produced` / `reused` continue, `not-applicable` is a legitimate skip (bugfix or chore with no Figma reference), and only a contract breach aborts. Neither phase sends the user to another command any more, because producing the file is Phase 1's job.

### Changed

- **The analysis engine moved out of the command and into on-demand refs.** `multi-agent-refs/analysis/{locked,evidence,synthesis,render}.md` now carry the 31 Locked decisions, the evidence gathering, the two-pass synthesis and the render/publish flow. `/multi-agent:analysis` keeps them as its contract and Phase 1 loads the same four files, so there is one engine with two entry points rather than a command the pipeline cannot reach. Side effect worth naming: `analysis/SKILL.md` went from 18081 to 5974 tokens and its lint grace entry (ceiling 18500) is retired - the grace list only ratchets down.
- Whether the document is produced is decided from signals Phase 0 already computed, so no new question: `feature` / `refactor` / `component` always, `bugfix` / `chore` only with a Figma reference. An existing document whose `evidence_digest` still matches is reused rather than regenerated (Locked 27).
- `analysis-output.schema.json` gains `docStatus`, `docPath[]` and `openQuestions[]` - the fields the two pre-flights branch on.
- Phase-doc token budget: total 54400 -> 54900. Compression came first and twice: the new step went from 745 tokens to 497 (its history moved to this entry, the per-ref descriptions moved into the refs' own headers), and the front-matter parse contract, spelled out identically in both pre-flights, now lives in `phase-3-dev.md` with `phase-2-planning.md` pointing at it. The 17.4k-token engine itself left the budget entirely by moving to refs.

## [15.16.1] - 2026-08-22

### Fixed

- **The humanizer punctuation check never ran on macOS.** Two SKILL files told the agent to verify the emitted document with `grep -P '[\x{2013}...]'`. BSD grep has no `-P`, so on the pipeline's primary platform the command errored out and "returns zero matches" was trivially true - the policy's only mechanical check was a shipped no-op. Both now call the deterministic Node validator that already implements the same policy (`validate-analysis-doc.mjs`, `validate-complaint-doc.mjs`), which behaves identically on macOS, Linux and Windows.
- The repo already banned `grep -P` (`smoke-shell-portability.sh`, "no guarded form"), and that gate was green the whole time: it only scanned `*.sh`. A markdown instruction file is executed too - an agent reads `grep -P ...` and runs it verbatim - so the scanner now covers `commands/`, `multi-agent-refs/` and `skills/` markdown as well. It distinguishes a prohibition from an invocation, so a line that forbids the construct still passes. Adding it immediately surfaced a second instance in `complaint-analysis/SKILL.md` that no one had noticed, which is the argument for the gate.

## [15.16.0] - 2026-08-22

### Added

- **More than one Firebase project per team.** `keychainMapping.firebase` held exactly one service-account key, which is wrong for the normal case: a legacy app next to its redesign, or staging next to production, each with its own key. A crash URL from the project you did not pick failed the `project_id` check and reported it as a configuration error, which it was, but not the one the message suggested. `global.firebase.accounts[]` maps `projectId` to a keychain key, `fetch-crashlytics.sh` reads the projectId out of the console URL and picks the matching account, and the single slot stays the fallback so a one-project setup needs no config at all. `/multi-agent:setup` now loops the Firebase pass (`Add another Firebase project? [y/N]`), reading `project_id` from each decoded JSON rather than asking for it.
- A `project_id` mismatch now names the key it used and prints the `accounts[]` entry to add. With several projects in play, "project mismatch" alone does not say whether the URL is wrong or the mapping is incomplete.

- **Jira project keys are discovered instead of recalled.** The token is saved and the host is known by the time setup asks for a project key, so it now asks Jira: one search for issues the person assigned or reported, most-recently-updated first, and the distinct project keys become a picker. A corporate instance has thousands of projects and a typed key is a typo that routes branches and new issues at the wrong board. The free-text prompt stays as the fallback for no-VPN and fresh accounts, and the per-repo mapping offers the discovered keys rather than asking for them again.

### Changed

- `setup/SKILL.md` lost its third copy of the service-ID table and its second copy of the `keychainMapping` shape; both live in `refs/keychain.md`, which the flow already cites. What stayed is the column nothing else had: where to generate each token. The Firebase host-exemption note also stopped being stated twice, two paragraphs apart.
- The App Store Connect tier reasoning moved into the ref that owns that flow, and `refs/keychain.md` gained the four App Store Connect standard key names so it is now the complete answer for every service setup points at.
- `smoke-url-enrichment.sh` follows the type label to where it now lives and adds eight assertions: five for the multi-account contract (including that the single-slot fallback survives) and three for Jira discovery and the completeness of the key-name reference.

## [15.15.0] - 2026-08-22

### Added

- **Graylog has two instances now, because it always did.** Test and production are separate Graylog deployments, and a trx id minted by a tester does not exist in production - so searching production alone answered "no logs" for a complaint that was fully logged one host over, and that answer was indistinguishable from a genuine miss. `hosts.graylogTest` and the optional `keychainMapping.graylog_test` (which falls back to the production key, correct for shared-token deployments) make the second instance addressable. `fetch-graylog.sh --env auto` is the new default: production first, test when production returns nothing or is unreachable. `--env prod` / `--env test` pin one.
- **The payload names the instance that answered** (`source.environment`, `source.searchedEnvironments[]`), and `/multi-agent:complaint-analysis` now has to cite it. A production complaint corroborated only by test logs is `insufficient-evidence`, not a confirmed `bff` fault, and the old payload gave the triage no way to tell those apart.
- `/multi-agent:setup` asks for the two things the previous release added a consumer for but no collector: the Graylog test host plus its optional separate token, and `fortify.versionIds`. `versionIds` shipped in 15.14.0 as the only way to resolve an instance-id-only Fortify ticket, and nothing asked for it, so that path silently no-opped for everyone.
- **`smoke-graylog-environments.sh`**, 15 assertions over the resolution rules that are easy to get subtly wrong: auto stops at production when production answers, falls back on empty AND on unreachable, degrades (never blocks) when both are down, treats a pinned environment with no host as exit 6 rather than silently searching the other one, and lets a 401 on one instance fall through instead of masking a working answer from the other.

### Fixed

- A pinned `--env` with no configured host now exits 6 naming the exact pref, instead of falling back to whichever host happened to be set. Attaching test logs to a production complaint is worse than attaching none.

### Changed

- `fetch-graylog.sh` resolves host and token per environment instead of once at the top, and reads prefs through one helper rather than three near-identical inline python blocks.

## [15.14.0] - 2026-08-22

### Added

- **A release can now be required, not just available.** `/multi-agent:update` stays exactly what it was, and most releases change nothing: the run-start check keeps reading `dist-tags.latest` and keeps asking politely. What is new is a second tag. `npm dist-tag add <pkg>@<version> required` names the oldest version a user may run, and an install below that floor is not behind, it is wrong - it would produce work against a contract that no longer holds, which then has to be redone. Below the floor, Phase 0 Step 0.6 halts: it runs the update flow and stops, and the user re-issues the command on the new version. It does not continue on the freshly updated install, because this run's phase docs, refs and scripts were already loaded from the old one, and that is the drift the floor exists to prevent. Interactive and autopilot behave identically - there is nothing to decide.
- **`require-supported-version.sh`** turns the signal into an exit code for shell callers: 0 = proceed, 3 = halt, with `force|<local>|<latest>|<required>` on stdout and a human block on stderr. It shares `update-check.sh`'s cache, so a second command inside the TTL window costs no network call.

### Fixed

- **The Firebase Crashlytics fetcher called an endpoint that does not exist.** It built the app reference by hand as `<platform>:<bundle>` and asked for `/v1alpha/projects/<p>/apps/<ref>/issues/<issueId>`. The appId is opaque (`1:1234567890:ios:abcdef`) and cannot be derived from a bundle, and v1alpha has no get-issue-by-id route, so every fetch failed - and the failure was reported as `api-not-enabled`, which sent anyone debugging it to look at Google's API allowlist instead of at the URL. It now resolves the real appId through the Firebase Management API (`iosApps` / `androidApps`, matching `bundleId` / `packageName`), then reads `reports/topIssues` for the summary and metrics and `events?filter.issue.id=<id>` for the newest event. The payload gains what that event carries and the old shape could not: the full `stackTrace[]`, the breadcrumb and log timeline with screen names, session and occurrence counts, and the console URI. A multi-app project with no bundle match exits 3 as `app-not-found` rather than picking a neighbouring app.
- **Fortify findings that arrive without a URL are no longer invisible.** A scanner-to-tracker bridge writes the instance id and the `file:line` into the ticket and never writes the SSC link - it knows the id, and the person reading the ticket never needed the URL. The extractor was URL-only, so those tickets produced an empty `contextLinks[]`, Phase 0 skipped the deep fetch, and Phase 4's Fortify gate reported `n/a` on a ticket that exists _because of_ a security finding. It now also matches a labelled `Fortify Instance ID` / `issue instance id` / `fortify id` and emits a URL-less entry, the same shape graylog trx ids already used. `fetch-fortify.sh --instance-id <id>` resolves the project version by asking each id in `prefs.global.fortify.versionIds` in order. To stay off prose, the id must be at least 16 characters and contain a digit, and the bare label `instance id` is deliberately not matched.
- **`prefs.global.fortify` did not exist.** Phase 4 Gate 5 documented `fortify.alwaysCheck` as its opt-in from the day it shipped, but `global` is closed to additional properties and the schema had no `fortify` object, so setting it failed validation - the gate could only ever run off a referenced URL. The object now exists with `alwaysCheck` and `versionIds`.
- Fortify URLs of the form `/ssc/html/ssc/version/<id>` and `#/version/<id>` now yield a version id. Only the API shape `/projectVersions/<id>` was matched before, so the UI links people actually paste parsed to `projectId: null`.

### Changed

- `update-check.sh` reads both tags in one call and now uses the abbreviated packument (60 kB instead of 250 kB for the same answer). Its own contract is unchanged and deliberately so: it still always exits 0, still says nothing when the registry is unreachable, and still emits `<local>|<latest>` for a plain update. The floor appends a third field, `force`, which a `cut -f1`/`-f2` reader ignores. The cache file grows a third field too; a two-field cache written by an older install still reads, and its missing floor means "unknown", never "none".
- **Fail-open, on purpose.** Offline, a blocked registry, an undeterminable local version, a `required` tag published above `latest`, or no tag at all: every one of these exits 0. A version gate that bricks the pipeline on a flaky network is worse than the drift it guards against.
- **Not opt-out.** `updateCheck.enabled: false` silences the advisory "update available" prompt, which is what it always meant; it does not lift a floor. The single override is the env var `MULTI_AGENT_ALLOW_OUTDATED=1`, which exits 0 with a warning and is logged in the run record, so a broken release cannot strand someone mid-incident. Exempt commands - `update`, `setup`, `uninstall`, `help`, `status`, `log`, `search`, `routines`, `forget`, `language` - are the remedy or cannot depend on a contract.
- Phase-doc token budget: total 54050 -> 54400. Compression came first and took the new Step 0.6 prose from 469 tokens to 337, by moving the rationale, the exemption list and the `npm dist-tag add` recipe into `multi-agent-refs/rules.md` "Supported Version Gate" (loaded by 25 commands, outside this budget) and into the script header, leaving the phase doc with the call, the decision table and the halt.
- `smoke-update-check.sh` grew from 12 to 27 assertions, covering the floor, the clamp, the legacy cache, the wrapper's three exit paths and the doc wiring on both sides.
- **`smoke-context-links.sh`: the extractor has a behaviour test now.** A 250-line deterministic classifier that every Phase 0 deep fetch dispatches on had no test of its own, so a regression in any pattern would only ever surface as "the ticket had a link and nothing was enriched", with nothing red to point at. 32 assertions over every emitted type, both Fortify entry shapes, dedup, and the two things that must NOT match: prose containing the words, and a bare non-doc URL.
- `sync/SKILL.md` lost a "Special inputs" table that repeated the argument table from the top of the same file, minus one row.

## [15.13.0] - 2026-08-22

### Fixed

- **Three settings that were declared and did nothing are now wired up.** `learningsLedger.maxBriefEntries` had a default of 20 while both phase docs hardcoded `--max 20`, so raising it changed nothing. `testGap.scanTree` and `testGap.promoteSeverity` were declared in the schema AND implemented as `--scan-tree` / `--severity-promote` in the scanner, with nothing in between reading the pref and passing the flag: the plumbing existed at both ends and the middle was missing. A user who set any of the three got the default back with no error and no warning, and the schema told them they had done it right.

### Added

- **`smoke-prefs-consumed.sh`: every setting the schema declares must be read by something.** This class has now shipped five times - the two `contextOffload` fields fixed in 15.11.0 and the three above - which is enough to gate rather than to keep catching by hand. The check walks the nested schema and asserts each leaf key is mentioned as a whole word somewhere outside `schemas/`. Deliberately loose: it asks "did anyone wire this up", not "is the wiring correct", because a stricter rule would have to understand shell, JS and markdown, and a gate that is wrong is worse than one that is broad. `keychainMapping.*` is exempt with a reason - those are resolved dynamically, so the literal name never appears in code by design. Verified by planting a setting nothing reads and watching the gate go red.

### Changed

- Phase-doc token budget: total 53950 -> 54050. The 94 tokens are the wiring itself, not prose - two `--max` substitutions and a three-line flag block. Compression came first and twice: the rationale moved into the new gate's header, where it is enforced rather than described, and a `--severity-promote` table row was dropped because the invocation above it now shows the flag and names the pref that triggers it.

## [15.12.2] - 2026-08-22

### Fixed

- **`grep -P` is banned in shell, and the ban is enforced.** Unlike the other divergences the portability gate tracks, this one has no guarded form: BSD grep has no `-P` at all, so it exits 2 with "invalid option", and the `2>/dev/null` that nearly every check carries turns that error into an empty result, which reads as "found nothing". A check written that way passes on every input including the one it was meant to catch. Two gates in this repo did exactly that, were handed a file with the defect deliberately planted in it, and reported a clean tree. The scan covers every shell file under `scripts/` and `lib/`, not only the shipped ones, because the two that broke were smoke gates that never ship - and a gate that cannot fail is worse than no gate, since it is trusted. The check opens by proving its own detector fires on a planted invocation.
- **Always-loaded context is back under budget with its designed headroom.** The fixed per-run load had reached 60000 of a 60000 ceiling, so the next edit to either tracked file would have broken the gate. The cause was the pattern the gate exists to catch: `core/multi-agent/SKILL.md` carried a full transcription of the Phase 0 contract, restating all eight steps that `refs/phases/phase-0-init.md` already defines, while its own text said the transcription "does not replace the contract, read the ref". Its citations into that ref had also drifted - `L221` now points at the token pre-check, not the branch picker it claimed. Every rule was verified present in the ref before cutting (per-repo branch picker, shared branch name with per-repo collision, per-repo identity, serial per-repo worktrees). What stays in the always-loaded file is the part that enforces rather than describes: the blocking exit gate and the credential-inventory rule. 2422 bytes reclaimed, load now 57576 of 60000. The ceiling was not raised.

## [15.12.1] - 2026-08-22

### Fixed

- **The pre-push gate no longer runs inside the push.** Git opens the connection to the remote before the hook fires, so the six-minute chain 15.12.0 wired in idled that connection until the server dropped it: the first two attempts to push the rename died on a broken pipe with every gate green. The hook is now verify-only and instant - it checks a stamp keyed to the exact tree (HEAD plus a hash of the working tree) and refuses the push when there is none. `npm run gate` produces the stamp. Refusing is the point: no stamp means nothing has verified this tree, and the reason this file exists is that nothing else will.

## [15.12.0] - 2026-08-22

### Changed

- **The companion MCP server is now `@mmerterden/multi-agent-toolkit-mcp` (v3.0.0), registered as `multi-agent-toolkit`.** The old name read as internal scaffolding; the server is standalone (three runtime dependencies, 83 tools, no coupling to any orchestrator) and the name now says which family it belongs to. The MCP tool namespace moves with it: every `mcp__dev-toolkit__*` reference across 24 files is now `mcp__multi-agent-toolkit__*`, because a host derives the tool prefix from the server name and the old prefix would have addressed a server that no longer answers.
- **Existing registrations are migrated, not duplicated.** A host keys its registration by name, so a rename does not upgrade an entry in place: without a migration an install ends up with both `dev-toolkit` (pointing at the now-frozen 2.26.0) and `multi-agent-toolkit`, two servers advertising the same 83 tools with the host choosing between them. The installer removes the legacy entry before adding the new one, and `uninstall` clears both names - "removes the pipeline's footprint" has to mean the footprint it ever had.
- Declared minimums move to `v3.0.0+`; 2.x only ever existed under the old package name.

### Migration

- `@mmerterden/dev-toolkit-mcp` stays published at 2.26.0 and is deprecated with a pointer. Nothing is unpublished, so a pinned consumer keeps resolving. The toolkit also keeps `dev-toolkit-mcp` as a second `bin` alias.
- A hand-registered client that the pipeline installer does not manage needs `<cli> mcp remove dev-toolkit` once.

### Fixed

- **`pre-push-check.sh` ran three of the eleven gate steps.** It was missing both linters, three of the four evals, `validate-prefs` and `scorecard`, and drove the smoke suites through the bare `for f in smoke-*.sh` loop that `run-smokes.mjs` was written to replace - the loop that cannot tell a passing suite from one that exited 0 having asserted nothing. It now runs `npm test`, defined once in `package.json` so the hook cannot drift behind the chain, plus eslint and the personal-data scan. Because a full run takes about six minutes and git has already opened the connection to the remote by the time the hook fires, the verdict is cached against the exact tree that produced it (HEAD plus a hash of the working tree): re-pushing an unchanged tree is instant, one edited byte re-runs everything. Without that, the first push after the fix died on a broken pipe with every gate green. Verified by planting a defect that only the previously-missing steps catch: the old subset reported 434 unit tests passing and a clean tree; the new gate blocked the push. The hook's header also claimed the repo has no CI, which stopped being true some time ago.

## [15.11.0] - 2026-08-21

### Changed

- **Nothing the pipeline posts carries a decorative glyph any more.** The work summary rendered task marks and a phase strip in checkmarks and hourglasses, the PR review emitter prefixed every finding with a coloured dot and signed it with a robot, and the GitHub issue Progress table was three traffic lights. All of it now reads in words: `[done]` / `[pending]` for tasks, `done · active · failed · skipped · pending` for the phase strip, `done` / `partial` / `pending` for the issue flags, and the severity is the bold label it always was. `channels/jira.md` had banned decorative glyphs in a comment body for releases while the renderers filled it with them; the rule and the emitters now agree, and `smoke-channel-glyphs.sh` holds them to it. The pipeline's own terminal output is deliberately out of scope: a `✓` in a console summary is a UI affordance, not a document somebody reads later.

### Fixed

- **Jira no longer manufactures smileys the pipeline never typed.** Comments are posted as Jira wiki markup, and Jira's renderer converts `:)` `:D` `;)` and, far more easily hit in technical prose, `(x)` `(/)` `(!)` `(i)` `(y)` `(+)` `(on)` `(*)` into emoticon images at render time. Nothing escaped them. `channels/jira.md` now carries the escaping table and orders it after the markdown conversion and before the POST. This was never something the humanizer could fix: the text is legitimate, and `(x)` in a comparison table renders correctly on GitHub and Confluence - only the Jira conversion knows the target parser.

### Tests

- `smoke-channel-glyphs.sh` (8 checks) and a glyph assertion in `smoke-work-summary.sh`. Both detect with node's `\p{Extended_Pictographic}` rather than `grep -P`: the first draft of the gate used a PCRE class, reported a clean tree with a checkmark deliberately planted in an emitter, and passed. Under `bash` on a stock macOS `grep` is BSD grep, which has no `-P` at all - it exits 2 with "invalid option", the `2>/dev/null` swallowed the message, and an empty result read as "no glyphs". The gate now opens by proving its own detector fires on a planted glyph before it trusts any verdict, and both gates were re-checked by planting one and watching them go red.

## [15.10.1] - 2026-08-21

### Fixed

- **`uninstall --all-data` now removes the per-repo memory root.** `~/.claude/memory/multi-agent/` holds the learnings ledger and triage corpus: durable knowledge written in prose about the repos it was collected from, which on a corporate checkout is concrete information about the codebase. It survived even the full-cleanup mode, so "removes everything but your tokens" was not true in the one place a user is most likely to mean it. The default run still keeps it, alongside settings and logs, and both halves of that promise are now tested.
- **Offloaded tool payloads are reclaimable.** v15.10.0 added `offload-ref.sh` without a way to clean up after it. In worktree modes the payloads die with the worktree, but the `--local` modes write into the real checkout, and because `.multi-agent/refs/` is gitignored the files never appear in `git status` and nothing reclaims them. New `gc-refs.sh`, dispatched as a third phase of `/multi-agent:garbage-collect`, sweeps them with the same contract as the /tmp sweeper: dry-run until `--yes`, a root guard that refuses `/` and `$HOME`, a grace window so a sweep cannot pull a ref out from under a running phase, and node-id matching so a file the user put in that directory survives. `--all` sweeps every checkout under `$HOME`.

## [15.10.0] - 2026-08-21

### Added

- **Per-repo memory now recalls by relevance, not by recency.** Both memory stores ranked by something that was not relevance: `triage-memory.mjs query` scored a raw token overlap with no IDF, so a word present in every row ("view", "test", "error") counted as much as the one word that identified the bug, and `learnings-ledger.mjs brief` did not rank at all - it replayed the newest 20 entries. Past a few hundred rows both degrade the same way: the injected context stops being about the task in hand. New `pipeline/scripts/_retrieval.mjs` owns the arithmetic for both (the way `_cost.mjs` owns pricing): field-weighted BM25, exponential recency, and Reciprocal Rank Fusion with per-ranking damping so recency separates comparably relevant rows without ever promoting an unrelated one. The tokenizer indexes identifiers whole and split (`KeychainStore` is reachable from "keychain") and folds regular plurals, which is what lets a query phrased as prose reach a row that names a symbol. Zero dependencies: no embedding service, no vector store, no second model call. `prefs.global.memoryRecall.strategy: "legacy"` restores the old behaviour in one flag.
- **`learnings-ledger.mjs profile` and drill-down pointers.** Durable knowledge is now two blocks instead of one, because relevance and prompt-cache reuse pull against each other. `profile` emits a task-INDEPENDENT `<repo-profile>` ordered by confidence, then kind, then statement - byte-stable across runs, so it belongs at the head of a phase prompt where an unchanged prefix is served from cache and grows into an asset as a repo is learned. `brief --task` emits `<task-relevant-memory>`, ranked against the task, and goes after the task text where a per-run difference costs nothing. Every rendered line ends with an `L:<id>` pointer instead of spelling out its evidence; `learnings-ledger.mjs show --id` and `triage-memory.mjs show --id` return the full row. `multi-agent-refs/prompt-assembly.md` carries the placement contract.
- **`offload-ref.sh`: bulky tool payloads become a pointer plus a tail.** Phase 3 already teed its build output to a file, but nothing decided how much of that file reached the model, so in practice all of it did. The filter parks the full text at `.multi-agent/refs/<node_id>.md` (content-addressed, gitignored) and prints a `[[ref:<node_id>]]` stub with the last lines - where a failing build's error already is. The evidence gate keeps reading the whole log, so what counts as a verified pass is unchanged; only what reaches the prompt shrinks. Wired into Phase 3 builds and Phase 4 test output, opt-in via `prefs.global.contextOffload.enabled`, and a pass-through when off, so the pipe is always safe to write.
- **Recall precision is measured.** Phase 1 and Phase 4 emit `memory.injected` / `memory.hit`, and `learning-curve.mjs` trends the ratio alongside the existing KPIs. Without the pair, a ranking change that injects the right rows and one that injects noise are indistinguishable from outside: both return five hits and exit 0. `smoke-learnings-ledger.sh` holds the emitter and the consumer to the same event names, so renaming one side fails a gate instead of silently emptying the column.

### Security

- **Entry text cannot forge the boundary of the block it is injected into.** `from-triage` builds ledger statements out of a finding's own words, which are model output, so a statement is untrusted content placed inside a structure the reader parses. Statements are now stored as one line (the schema always said "in one line"; nothing enforced it), and the block delimiters are neutralised at render time in both the ledger blocks and `<repo-memory>`. Angle brackets that are not delimiters are untouched, so `Array<String>` still reads as itself.

### Changed

- `memory-load.sh` takes optional task text and ranks the MEMORY.md pointers against it. The previous `head -30` was a truncation, not a summary - the thirty-first pointer was invisible however precisely it matched, so the block got less useful the longer a repo was worked on. With no task text the index order is unchanged.
- Phase 4 prior-art lookup and the rejected-preference brief are both ranked against the findings under triage; a finding whose wording matches nothing now returns nothing instead of the three newest rows.
- `prefs.global.contextOffload.minLines` and `tailLines` are read by `offload-ref.sh`. They shipped in the schema and were honoured by nothing, so a user who set `tailLines: 50` got 20 with no way to tell; config that does nothing documents a control that is not there. An explicit flag still beats the pref, and a non-numeric or zero value falls back to the shipped default.
- Phase-doc token budget: total 53350 -> 53950. The new prose was compressed twice first (1168 tokens down to 580) by keeping the reasoning in `prompt-assembly.md` and the `offload-ref.sh` header, both outside the budget. Phase 3 and Phase 4 are left amber on their warn lines on purpose - that is the signal that those two docs are next for structural compression rather than another bump.

### Tests

- `test/retrieval.test.mjs` (20 unit assertions on the ranking primitives), `pipeline/scripts/eval-recall.mjs` + `pipeline/eval/recall-cases.json` (8 end-to-end recall cases against a deliberately noisy corpus, each reporting what the pre-ranking scorer would have returned), `smoke-offload-ref.sh`, and new coverage in `smoke-learnings-ledger.sh` and `smoke-per-repo-memory.sh`.

## [15.9.1] - 2026-08-20

### Changed

- **Telemetry logs the GitHub account name, never the git `identity.name`.** The reporter resolved the run's user to `identity.username || identity.name`, and since prefs identities carried no `username`, it fell back to `identity.name` - which can be a full corporate title/brand string, landing verbatim in the usage store. It now resolves to the identity's GitHub username, then the active `gh` account login resolved live, then null; the git `identity.name` is no longer a fallback. Self-registration (`/multi-agent:update` step 5b) resolves the same way.

## [15.9.0] - 2026-08-20

### Fixed

- **Telemetry emitter and run scripts: 21 verified defects from a refactor bug hunt.** The emitter now reads `usageLog.optOut` as a hard block, refuses non-TLS endpoints so the write-only token never travels in cleartext, resolves the credential store and version marker across all host trees (Copilot/Codex-only installs), prices each phase at its own model rate instead of opus-for-all, keeps hyphenated MCP server names, drops plugins mapped to `false`, and gates before touching the keychain. `phase-tracker.sh` uses a per-process temp file so the fail-open lock cannot publish a torn state, honors `$TRACKER_FILE` on init, and builds OTEL attrs with jq. `build-stack-plugins.mjs` aborts on a flag given without a value and reports content-only changes in `--dry-run`; `localize-commands.mjs` is Windows- and CRLF-safe; `account-resolver.sh`, `channels-multi-repo.sh` and `figma-mcp-refresh.sh` gaps closed. Covered by `test/usage-report.test.mjs`.

### Changed

- **`purge` and `uninstall` are no longer model-auto-invocable** (`disable-model-invocation: true`): the two irreversible, full-data-loss commands run only on an explicit user request.
- **`humanizer` skill (v1.1.0):** a self-critique pass re-verifies the rewrite against the original (meaning preserved, nothing invented, patterns actually gone); trailing-participle and connective-padding patterns added.
- Stale version tables refreshed: `SECURITY.md` supported-versions moves to the 15.x line; `ROADMAP.md` "Current Release" becomes a rolling "Recent Releases".

### Companion

- **`dev-toolkit-mcp` v2.26.0** (shipped alongside): CallTool boundary now validates arguments against each tool's inputSchema (lenient-but-safe), closing the command-injection class where a string reached a numeric shell interpolation; every caller-derived path is single-quoted; a new gate backstops it. Backward-compatible, 83 tools unchanged.

## [15.8.1] - 2026-08-19

### Fixed

- **Self-registration follows the endpoint redirect**: the default reporting host answers `/register` with a 308 to the canonical domain; the update step's curl now passes `-L`, so the token actually arrives instead of the redirect page. Without it, v15.8.0's self-registration silently reported "registration unreachable" on every machine.

## [15.8.0] - 2026-08-19

### Added

- **Operational reporting self-registers on update**: when no ingest token is onboarded, `/multi-agent:update` requests a per-machine write-only token from the reporting endpoint's `/register` route, stores it only in the OS credential store, and enables `usageLog`. Registration failing (offline, endpoint down, ingest disabled) leaves reporting off with a one-line notice - never an error. Hard opt-out via `usageLog.optOut: true` blocks both the registration and the auto-enable; setup Step 2.7 (admin-issued token) still takes precedence. The emitter's payload is unchanged: coarse run metadata only, never prompts, code, diffs, or paths.

## [15.7.0] - 2026-08-19

### Added

- **Setup walks missing credentials one by one**: Step 3 gained a strict sequential onboarding loop - fixed service order, one Token Save Flow prompt per service (token -> author -> host), per-service skips that never abort the loop, and `figma` / `figma_mcp` as distinct passes. The discovery summary can no longer end setup.
- **Per-repo Jira project keys in setup**: the Jira pass closes with an optional multi-select mapping (repo -> project key) written to `prefs.projects[{slug}].jiraProjectKeys`; per-repo keys resolve before `global.defaultJiraKey` everywhere a key is needed. Re-open with `/multi-agent:setup jira-keys`.
- **Figma MCP mode question**: the `figma_mcp` pass opens with Remote / Local. Remote generates the `figu_` OAuth token for the current user (Dynamic Client Registration + PKCE; `prefs.global.figmaMcp.remoteGeneratorScript` drives the flow when set); Local wires the PAT-based `@anthropic-ai/figma-mcp` server (`localGeneratorScript` supported). Prefs schema: new `global.figmaMcp` block plus `supabase_access` / `supabase_service_role` keychainMapping keys.

### Changed

- **Help spells out the --dev pipeline**: the Pipeline section now carries the dev chain (Phases 1-2 skipped, Review never skipped, Opus dev). Stale notes claiming Test or Review are skipped in --dev were corrected in both languages.
- **Setup Step 5 (Repo Discovery) split to a reference**: the full contract moved to `multi-agent-refs/setup/repo-discovery.md`; the SKILL keeps the opt-in prompt and a summary.

### Fixed

- **build-stack-plugins.mjs dead import**: unused `APPLE_ONLY` import removed (superseded by the `STACK_ONLY` routing table).

## [15.6.1] - 2026-08-19

### Changed

- **`/multi-agent:update` installs from npm, not from a git clone**: the registry is the single update channel - latest published release resolved with a direct registry read (never `npm view`'s cache), downloaded via `npm pack` with the registry pinned, installed with `install.js --all`, changes rendered from the packaged CHANGELOG, smokes run from the tarball. A pipeline repo clone is now purely a maintainer workspace (synced by `/multi-agent:sync`); consumers need no git access at all, so collaborator grants on the private repo can stay read-only or be dropped.

### Fixed

- **`node --test` runs stop pinging the live dashboard**: the tracker-entities suite calls `phase-tracker.sh init` outside run-smokes' `MULTI_AGENT_SMOKE` guard, so every test run left a phantom "probe" row on the timeline. The suite now sets the flag itself, and `usage-report.mjs` refuses to emit under it as the last line of defense for any caller.
- **Usage report reads the tracker as it is actually written**: `tracker-state.json` stores `phases` as an array, but the reporter iterated it with `Object.entries`, so dashboard phase ids were array indexes - every phase after a skipped one was mislabeled (Commit id "6" reported as Faz 5). Failed-phase error tags carried the same wrong ids.
- **Run duration and terminal timestamp resolve from the tracker**: nothing stamps `state.finishedAt`, so every run reported `du=null` and a terminal emit was stamped with the reporter's wall clock (wrong for backfills). Both now fall back to the tracker's phase span (earliest start to latest completion).
- **Version and user fields stop reporting null**: the reporter reads the installer's `~/.claude/.pipeline-version` marker (installed trees have no adjacent `package.json`) and falls back to `identity.name` when `identity.username` is absent.

## [15.6.0] - 2026-08-18

### Fixed

- **The heart goes platform-blind** (platform-dynamic audit, 15 findings): Phase 3's RED run, target resolution and build verification become `case "$STACK"` arms (gradle/pytest/npm beside xcodebuild, with the Gradle build-lock decision stated); Phase 4 Gate 1 matches its own stack-generic Gates 2-3; Phase 2 dispatches the platform's architect agent; Phase 5's device-check table gains the Android MCP tools; the figma-config schema stops claiming SwiftUI as universal; wiki scope gains a `platform` value.

### Added

- **Per-stack routing hatches**: `STACK_ONLY` lists in `_stack-routing.mjs` so a stack-only skill (ktlint, hilt-di, ...) routes with one list entry instead of a regex widening - and `--check-routing` now FAILS on unrouted skills. `lint-skills` accepts `platform: backend|frontend`.

## [15.5.0] - 2026-08-18

### Added

- **`sharedUtilities` census bucket** - the bind-don't-rebuild inventory: formatter families, validation rule types + per-module facades and design-token namespaces living outside screen slices, counted with samples; Phase 3 treats a non-empty bucket as binding.

### Fixed

- **Smoke runs never touch the live dashboard** - run-smokes exports `MULTI_AGENT_SMOKE=1` and phase-tracker's live ping returns under it (test gates were leaving phantom "running" rows on the timeline).
- **Routing resolves the multi-agent-plugins toolkit first** - the public toolkit family is the pipeline's standard companion; a corporate variant is the fallback, not the default.

## [15.4.0] - 2026-08-18

### Added

- **Per-project `testPolicy`** (`tdd` | `tests-after` | `none`): Phase 0 resolves it after project selection for every input type, asking once via a native picker when absent (autopilot defaults to `tdd` and notes it). Phase 3 gates the TDD cycle on it; Phase 5 skips the gap scan under `none` and runs only pre-existing targets. Prefs schema + template carry the field.
- **Ordered stack-toolkit routing candidates**: the ios/android rows resolve the corporate `-engineering-` variant before its public derivation, and a full probe miss records every candidate tried. The conventions census learns a `CrossDomains` root; screen-creation tasks bind the routed toolkit's `create-screen` workflow.
- **ios-module-structure 0.3.0 / ios-coding-standard 1.2.0** (authoring source): the settled architecture becomes the standard - UnitDialect slot, unit vocabulary roles, STRUCT-18..21 with checker support, UNIT-01..03 / SAFE-03 / MOD-08; the pre-conversion spellings are named residue.

### Fixed

- The test-policy step resolves for Jira-ID and URL inputs, not only free-text; STRUCT-18 reports an unbound contracts root as disabled coverage instead of passing silently.

## [15.3.2] - 2026-08-17

### Fixed

- `local` and `local-autopilot` mode docs pointed at the retired `commands/multi-agent.md` dispatcher spelling; they now reference `commands/multi-agent/SKILL.md`, and the Codex installer rewrites the directory-layout spelling to the router skill (dedicated rewrite rule, smoke guard for the new corruption shape, unit tests).
- The sync spec copies (command tree + Copilot shared-core mirror) disagreed on the Claude source list and file mapping; both now carry `multi-agent-refs/` and `lib/` and the same mapping rows.
- The dispatcher entry doc now declares the TaskCreate ordering rule and is scanned by `smoke-tasklist-ordering.sh`, closing the one mode (full interactive) the inventory missed.
- `check-md-links.mjs` resolves `$HOME/.claude/commands/` links against the repo source, so a future layout move cannot leave dangling dispatcher references silently.
- Install-layout fingerprint fixture regenerated for `usage-report.mjs` and the relocated reference files.

### Changed

- refactor Step 0c (dev-toolkit research) and setup Step 3b (App Store Connect onboarding) moved to on-demand references under `multi-agent-refs/`, keeping both skills inside their token budgets.

## [15.3.1] - 2026-08-15

### Changed

- Documentation and wording clarifications.

## [15.3.0] - 2026-08-15

### Added

- `/multi-agent:setup` gains an optional one-time operational-token onboarding
  step (opt-in). The token is stored in the OS credential store only, never in a
  file, prefs value, git, or synced tree.

## [15.2.0] - 2026-08-15

### Added

- `/multi-agent:update` auto-configures the optional operational integration when
  its token is already onboarded, resolving it from the credential store; it never
  fabricates or ships a secret, so a machine without one is unaffected.

## [15.1.0] - 2026-08-14

### Added

- Optional, opt-in per-run operational reporting (`usageLog`), off by default and
  a no-op unless configured.
- `/multi-agent:refactor` Step 0d (band F) reads a local run-diagnostics ledger to
  rank recurring failures as prioritized improvement areas - offline, no auth.

### Changed

- Reconciled the Copilot shared-core `multi-agent-refactor` skill with the Claude
  command version, ending the prose drift that had accumulated between the two.

## [15.0.1] - 2026-08-13

Post-15.0.0 audit release: three blocking defects in the 15.0.0 surface, two
data-loss paths, and the doc drift that let a command count go stale in 17
places at once.

### Fixed

- **The 15.0.0 plugin-only migration never ran on an upgrade.** Its prune was
  gated on `.external-skills-manifest.json`, which no released version wrote on
  Claude Code, so every machine upgrading from 14.x kept the whole ~151-dir
  external catalog (the duplicated per-session descriptions and plugin-shadowing
  copies ADR-0009 exists to remove), and `uninstall --claude` refused to clean it
  for the same reason. Pre-manifest installs are now migrated by proof rather
  than by name: a skill dir byte-identical to the shipped catalog is provably
  pipeline-delivered and is removed, a dir that differs is kept and reported,
  and the new `install --prune-external` flag removes those too (still never a
  dir carrying `local-only: true`). Gate: `smoke-claude-external-migration.sh`.
- **The cross-host stack filter read a file nothing writes.** `pluginsToDeliver`
  looked only at `~/.claude/settings.json` while `/multi-agent:stack` writes the
  invoking repo's `.claude/settings.json`, so a stack selection either delivered
  the entire catalog to Copilot/Codex (logged as if a filter had run) or, worse,
  delivered a different stack than the repo asked for. Repo settings are now read
  first, user-global second, `--platform` last.
- **Copilot's skipped-stack prune could delete user-authored skills.** The prune
  was derived from catalog _names_, so a user's own `~/.copilot/skills/<name>/`
  sharing a catalog name was removed with no prompt. It is now scoped to the
  previous delivery manifest (or, pre-manifest, to dirs byte-identical to the
  catalog) - the same contract `uninstall` already used.
- **Manifest-driven removal had no path containment.** A name carrying `..` or a
  path separator in `.external-skills-manifest.json` resolved outside the skills
  directory before reaching a recursive delete.
- **`validate-complaint-doc.mjs` rejected reports that follow the template.**
  Section 1's coverage table cites `C-NN` ids in its last column and was read as
  verdict-less triage rows, and verdict matching was positional-substring, so a
  summary cell mentioning `core-data` classified the row as `core`. Triage rows
  are now scoped to the Triage section with the id in the first cell, and verdict
  tokens match cell-exact. The smoke fixture carries both Section 1 tables so the
  gate is exercised against real template output.
- **`/multi-agent:stack` with no arguments wiped the repo's stack selection.**
  The implementation block resolved an empty arg list to "common only" and then
  applied the write rule that sets every other stack toolkit to `false`. Zero
  args now exits into status mode, and the picker's `frontend (web)` label maps
  back to its canonical arg.
- `parse-complaints.sh` returns the documented exit 4 when `--file` / `--format`
  is passed without a value instead of dying on `set -u`, and redacts all-letter
  PNRs that follow a PNR-ish keyword.
- `migrate-prefs.mjs`: the schema-unreadable fallback set now includes `2.5.0`,
  so a 14.x prefs file no longer throws `unknown schemaVersion` on an install
  tree whose `schemas/` cannot be read.
- `check-derived-drift.mjs`: an acknowledged drift pin no longer silences a
  cache-only resolution, which had let the gate exit 0 while nothing
  authoritative was consulted.
- `match-skills.mjs` gains the `~/.codex/multi-agent-refs/skills` index
  candidate, so dynamic skill loading works on Codex instead of exiting 1.

### Changed

- `smoke-command-inventory.sh` now derives the command count for `README.md`,
  `README.tr.md`, `docs/architecture.md` and `docs/ecosystem.md` as well. Those
  four files held 17 of the 20 "50 commands" sites and none was gated, so adding
  `complaint-analysis` desynced all of them at once.
- Doc corrections: autopilot / local modes document 7 phases, not 8 (the
  interactive Phase 5 test gate is dropped in every autopilot and local variant,
  per `gen-mode-dispatch.mjs`) - README EN+TR and `tracker-contract.md`; the
  Node badge matches `engines` (20.11+); the publish diagrams say public npm
  rather than GitHub Packages; skill / schema / fixture counts match the tree;
  `ecosystem.md` drops the retracted "frozen `figma-*` fallback" claim; ROADMAP
  catches up four majors; ADR-0007 records Codex's return as a native target.
- `SECURITY.md` ships in the package, so the README link resolves on npmjs and
  in an installed tree. Install help documents `--dry-run`, `--index-only` and
  `--prune-external`.

### Removed

- Dead pre-v15 code: `copyExternalSkillsFiltered`, `classifyExternalSkill` and
  its prefix tables (superseded by the routing table), `existingSkillNames`
  (superseded by `pipelineOwnedSkillNames`, and a hazard if called), and an
  unconsumed `MCP_SERVER_NAME` re-export. Six internals no longer export a
  surface nothing imports.

## [15.0.0] - 2026-08-13

### Changed (BREAKING)

- **Claude Code stack skills are plugin-only** (ADR-0009). The installer no longer
  copies `shared/core` + `shared/external` into `~/.claude/skills`; the
  `multi-agent-plugins` marketplace is Claude Code's only stack-skill source,
  namespaced (`ai-ios-toolkit:<skill>`). Exactly two pipeline-owned compliance
  catalogs stay local (`PIPELINE_LOCAL_SKILLS`). Old installs are migrated
  manifest-scoped (`.external-skills-manifest.json`); user-authored dirs survive.
- **Marketplace plugin names lose the `engineering` infix**:
  `ai-<stack>-engineering-toolkit` -> `ai-<stack>-toolkit`. `enabledPlugins`
  keys must migrate; `/multi-agent:stack` deletes the retired keys.
- **`/multi-agent:ship` -> `/multi-agent:resume-local`** (the tail command opens a
  PR but merges nothing, so "ship" oversold it). Prefs `global.ship` ->
  `global.resumeLocal` via schema 2.6.0 (step migration + monolith, autoFix value
  carried across the finish -> ship -> resume-local chain).

### Added

- `/multi-agent:stack` **multi-select**: several stacks per call (`ios backend`),
  a native multi-select picker with no args, `web` alias, always-on
  `ai-common-toolkit`, legacy-key cleanup, and a Copilot/Codex refresh offer.
- Every marketplace plugin ships **`ai-<stack>-toolkit:help`**: a language-aware
  catalog rendered live from `plugin.json` (drift-proof by construction).
- `pipeline/scripts/_stack-routing.mjs`: the single routing table shared by
  `build-stack-plugins.mjs`, the installers and the skills index.
- Skills index entries carry `plugin` + `invokeAs`; `match-skills.mjs` returns
  plugin-namespaced names. `skill-conformance.mjs` probes the marketplace
  checkout and version-named plugin cache as skills roots.

### Changed

- Copilot CLI and Codex CLI local copies are **filtered to the enabled stacks**
  (`pluginsToDeliver` + `partitionExternalSkillsByPlugins`); Codex previously
  received the full catalog unconditionally and now also writes a delivery
  manifest. One `/multi-agent:stack` selection governs all three hosts.
- Prompt-context skill tables (phase 1/2/4), `humanizer` invocations,
  `build-optimize` dispatches and the store-review references are
  plugin-namespaced.
- `DESC_CEILING` 82000 -> 82600 and phase-doc total 52750 -> 53100: the
  namespaced tables and the new command descriptions did not fit ceilings that
  were already at (or 193 bytes past) their limit; the always-on surface itself
  shrank with the local copy gone.

### Added

- **`/multi-agent:complaint-analysis`** — customer-complaint / customer-reported-error
  triage as a new one-shot ops command (51st command). Ingests complaints from
  free-text paste, csv/xlsx/txt/json exports (`pipeline/lib/parse-complaints.sh`,
  with built-in PII redaction: email / phone / card / national-id / PNR shapes),
  Jira issues, or Confluence URLs; fetches Graylog evidence per
  trxId/conversationId via the existing `fetch-graylog.sh`; correlates read-only
  against the selected client + BFF repos (user-confirmed layer tagging:
  ios / android / web / mobile-bff / web-bff); and classifies each complaint as
  `client:<layer>` / `bff:<layer>` (root cause + citations + a fix plan grounded
  in the existing architecture + a ready-to-run dev prompt), `core` (routing
  recommendation to the backend core team, never a fix analysis), or
  `insufficient-evidence`. Report dispatches to Local (default) / Confluence /
  Jira behind a deterministic gate (`scripts/validate-complaint-doc.mjs`:
  sections, verdict tokens, per-core routing entries, humanizer punctuation,
  redaction-leak scan; smoke: `smoke-validate-complaint-doc.sh`). State contract:
  `schemas/complaint-analysis-spec.schema.json`. Graylog-as-primary-evidence is a
  documented, command-scoped exception to the advisory-only rule in
  `features/external-context-injection.md`. `DESC_CEILING` raised 81000 -> 82000
  (gate + pinned test together): the two new ~430-byte descriptions did not fit
  in the ~25 bytes of headroom the surface had left; the average stays at 319
  against the 420 ceiling.

## [14.2.2] - 2026-08-04

### Added

- **`localization-reuse-map` skill** added to `shared/external` — a per-screen
  localization-reuse map that ties new/legacy/CMS translation keys together,
  with follow-up fixes for placeholder rendering, snapshot staleness, and the
  three gates its initial commit left red.
- **`docs/ecosystem.md`** — a detailed diagram of how this repo, the
  `multi-agent-plugins` marketplace, and `dev-toolkit-mcp` compose at install
  time and run time. `docs/architecture.md` cross-links it.
- **Turkish README (`README.tr.md`)**, cross-linked from `README.md`.
- Jira intake now surfaces the **parent issue's description** as a
  confirmable candidate when the child issue's own description is empty.
- `payload-contracts` reference doc, consolidating the required-reading list
  for Phase 6 and 7.

### Fixed

- Corrected stale 44/43-command counts to the real 49 across README,
  `cross-cli-contract.md`, and both sync/update `SKILL.md` copies; fixed a
  hardcoded "42 command specs" log line in `install/codex.mjs` to count the
  actual source tree instead.
- **`audit-log-rotate.sh` could delete the archive it had just created.**
  `gzip` preserves the source file's mtime by default, so rotating log
  content already older than `KEEP_DAYS` produced a `.gz` that inherited
  that old mtime - and the very next line's retention sweep (`find -mtime
+$KEEP_DAYS -delete`) deleted it in the same run, before it was ever read.
  The archive's mtime is now reset to rotation time, so retention counts
  from when it was archived, not from the age of the content inside it.
- The mode banner claimed pickers stay English when they didn't - language +
  dialect resolution fixed.
- The cost tracker now reads the same state file `phase-tracker.sh` writes.
- Jira conversion table pipes are now escaped; Intake warnings render at h2.
- Copilot mode skills carried a stale review claim and missing payload
  pointers - corrected.
- 18 cross-script drift and edge-case bugs resolved from code review.
- Markup dialect is now chosen per surface for channel posts; the Jira table
  heading-conversion bug fixed.
- `localization-reuse-map`: empty-cell placeholder is now a single dash; a
  stale snapshot no longer reads as an unauthored key.

## [14.2.1] - 2026-07-30

### Changed

- **`testflight-validation` merged into a new `/multi-agent:store-ready`, and the
  Android side brought to parity.** The iOS archive audit existed twice with
  identical arguments - `ios_app_store_audit({archive_path, rules: "all"})` in the
  command's Gate 1 and again inside `sim-test.md`'s `store-ready` scenario. Two
  copies of one call is how the second door grew with no Gate 2, no Gate 3 and no
  Android equivalent. There is now one implementation.
  Gates are symmetric per platform, because the failure modes are: a malformed
  package, a package the store itself refuses, and a policy a human enforces.

  | Gate            | iOS                             | Android                                                  |
  | --------------- | ------------------------------- | -------------------------------------------------------- |
  | 1 Static        | `ios_app_store_audit`, 18 rules | `android_apk_audit` + `google-play-compliance`, 21 rules |
  | 2 Authoritative | `altool --validate-app`         | `SKIPPED`                                                |
  | 3 Policy        | `app-store-review` vs source    | `play-store-review` vs source                            |

  Gate 2's asymmetry is reported as an asymmetry rather than smoothed over: Play's
  authoritative check exists only server-side, through a Publishing API draft edit,
  and the pipeline ships no client for it. An Android run therefore clears at most
  2 of 3 and never prints `passed`. `bundletool validate` is Gate 1 and is not
  promoted to fill the hole.
  The running-app sweep became Step A rather than a separate errand - a build can
  be structurally perfect and still ship an unreadable screen - and it degrades to
  `SKIPPED (no booted device)` instead of halting the package validation.

  Nothing was removed. `testflight-validation` is a thin iOS-pinned alias (removing
  a command is a breaking change to the slash-command surface), and
  `test "store-ready"` still resolves, now as a hand-off. `sim-test.md` keeps only
  the pointer, so a dark-mode run no longer loads altool and credential-tier prose
  it never needs.

### Added

- **Four fixed-scenario `test-*` commands.** `/multi-agent:test-dark-mode`,
  `:test-accessibility`, `:test-dynamic-type` and `:test-screenshots [locale]` pin a
  scenario the quoted-tag form made you remember and quote. Typing `test-` now
  autocompletes the matrix list instead of returning a single entry whose tags live
  only in the help text. The scenario-tag form is unchanged and not deprecated -
  each command is an alias for it, delegating to the same `sim-test.md`, so there is
  one implementation and no forked logic. Same pattern the mode aliases already use
  (`:dev-autopilot` = `--dev autopilot`).
  `screenshot <lang>` became `test-screenshots [locale]` rather than
  `test-screenshot-tr`: the locale is a parameter, and freezing one language into a
  command name buys one command per language. `store-ready` deliberately got no
  alias - it takes an optional archive path, and its 18-rule audit is the same one
  `/multi-agent:testflight-validation` runs as its first gate, so the alias would
  have advertised a second door onto a duplicate.

### Fixed

- **Copilot's `purge` could not see a single worktree.** It discovered them with
  `find {repo}/.worktrees/ -name "agent-state.json"`, and no worktree carries that
  file: Phase 0 writes state to `$HOME/.claude/logs/multi-agent/{project}/{task-id}/`.
  Verified on a repo with two live task worktrees - the marker scan returns zero
  while `purge.sh`'s own directory enumeration finds both. So the skill reported
  "nothing to purge" as success with real worktrees on disk. The Claude Code command
  had already been fixed by delegating to `purge.sh`; the Copilot mirror never
  received that fix, which is the second time a repaired Claude-side surface left its
  Copilot counterpart behind in this release.
  It now delegates to the script and explicitly forbids re-introducing a
  marker-file scan.
- **The stale log location survived in four more places** after `clear-logs` was
  redirected. `shared/core/multi-agent` told Phase 0 to create `agent-log.md` and
  `agent-state.json` inside `.worktrees/PROJ-{id}/`, told `:resume` to look for state
  there, and printed that path as the report location; `phase-0-init` said "create log
  dir" without naming one, 49 lines above the line that does. All four now name
  `$HOME/.claude/logs/multi-agent/{project}/{task-id}/`, the path the tracker,
  `prune-logs.sh` and `:resume` actually read.
  `status` and `log` keep their worktree scan as a legacy fallback: it finds nothing
  on a current tree, but it is harmless and would still serve an old one.

- **`clear-logs` scanned a path nothing writes to, and help advertised it as a
  slash command that does not exist.** It looked for
  `.worktrees/PROJ-*/agent-log.md` and `agent-state.json`; Phase 0 has written both
  to `$HOME/.claude/logs/multi-agent/{project}/{task-id}/` since the layout moved.
  Against the current tree the scan matches zero files, so the op reported "logs
  cleared, deleted 0" as success while every real log stayed on disk - worse than a
  missing command, because it reads as done. There was also no `clear-logs` command
  directory, so the `/multi-agent:clear-logs` entry in the Copilot help pointed at a
  slash command that was never installed.
  The name is kept as a redirect to `prune-logs` rather than deleted, so an existing
  invocation lands somewhere correct. `prune-logs` and `garbage-collect` now appear
  in the Copilot help, matching the Claude Code side. This is the `finish` → `ship`
  class of drift the inventory gate's own comment describes, in the files that gate
  does not parse.
- **`sim-test.md` advertised two scenarios it never implemented.** `"biometric"` and
  `"performance"` sat in the activation block with no implementation section, so
  reaching either fell through to the general sweep and was reported as the scenario
  asked for. Neither can be built symmetrically today: biometric has `ios_biometric`
  and no Android counterpart, launch timing has `android_launch_time` and no iOS
  counterpart, and the file auto-detects platform - so each would work on one
  platform and silently do nothing on the other. Both rows are withdrawn with the
  reason recorded in place, rather than shipped as half-features or left advertised.
  Advertised scenarios and implemented sections now match one to one.
- **`help` never documented two shipped commands.** `testflight-validation` and
  `ios-coding-standard` existed in the tree, installed correctly, and appeared in no
  block of `help/SKILL.md` in either language - `ios-coding-standard` was reachable
  only because it also sat in `prefs.global.routines`, i.e. it read as a personal
  routine rather than a first-party command. Both are now in the EN and TR Post-Hoc
  sections. A command absent from help is a command nobody runs.
- **Rule count drifted between the two language blocks.** The TR block advertised a
  17-rule iOS store audit against the EN block's 18 and `ios_app_store_audit`'s
  actual 18. The TR reader was being given a number no code produces.

### Changed

- **`DESC_CEILING` 78000 -> 81000**, with the paired pin in
  `test/context-budget-gate.test.mjs` moved in the same commit, as that test
  requires. Not a bump to silence a red gate: at 78000 the surface had **16 bytes**
  of headroom, so any new command failed regardless of how tersely it was described,
  while the gate's own average check sat at 320 against its 420 ceiling - the signal
  that the tree grew rather than that descriptions are padded. The alternative was
  shaving routing text off eight unrelated `shared/external` skills to fund four
  commands, which trades a real capability for a cosmetic number. Both the gate and
  the test now carry the ceiling's history inline so the next raise has to argue for
  itself. Cost is honest: ~470 always-on tokens per run.

## [14.1.1] - 2026-07-30

Three defects that all shared one shape: a name written in one place and read in
another, so the mechanism looked implemented, ran without error, and did nothing.

- **Phase 0 wrote the base-ref field its own exit gate does not read.** `/multi-agent:dev`
  recorded `"baseRefFreshness"` while `phase0-exit-gate.mjs` requires `baseFetchStatus`
  with one of `fresh | cached-stale | local-branch | aborted`. The value vocabulary was
  already correct - only the field name differed - so every dev-mode run failed its own
  exit gate with `baseFetchStatus="<unset>"` even when all four Phase 0 pickers had
  actually run. A gate that always fails is as useless as one that never fails. The
  canonical name appeared in five places and the wrong one in exactly one: the dev
  command's own doc. `smoke-phase-0-multi-repo.sh` now asserts that the name the exit
  gate reads equals the name the phase doc documents, and that no shipped file names an
  alternative, with a planted-line probe proving the detector can fire.
- **Branch memory never populated.** Phase 0 Step 3 read
  `prefs.global.recentBranches[{projectKey}]` while its own step 7 wrote the legacy
  `prefs.projects[].branches`, which `prefs.schema.json` marks pre-v2.1.0. Both spots
  also described a `{name, lastUsed}` entry the schema rejects (`branch` is required and
  `additionalProperties` is false), so a literal implementation would have failed prefs
  validation and the dedup - which keys on `branch` - would have accumulated a duplicate
  every run. The "reused from last run" picker option could therefore never appear.
  `migrate-prefs.mjs` carries stranded legacy entries into the canonical LRU, stamped
  with the migration time because the legacy field never recorded a real one and an epoch
  stamp would be pruned by the TTL on first read; `count: 0` marks them seeded rather
  than observed.
- **The sync skill hardcoded the author's git identity.** `git config user.name`,
  `user.email` and `gh auth switch --user` carried literal values in the plugin-publish
  block, while the same file's other two publish blocks used `{identity.name}` and
  `{owner}`. Since the file ships to every installation, a downstream user's
  plugins-repo commits would have been attributed to someone else and their `gh` account
  switched under them - and it contradicted the pipeline's own rule that the git author
  is always the user's identity.

Leak-gate coverage, which is why the third defect had gone unnoticed:

- `smoke-personal-data.sh` only ever scanned `pipeline/`, but the package also publishes
  `install/`, `docs/`, `index.js`, `install.js`, `README.md` and `CHANGELOG.md`, and every
  tracked file is public regardless of what npm ships. `CHANGELOG.md` was additionally in
  the `--exclude` list. A second pass now scans every tracked file outside `pipeline/`,
  driven by `git ls-files` so the covered set stays exactly "what is public" with no
  second list to maintain. `LICENSE`, `package.json` and `CODE_OF_CONDUCT.md` are exempt,
  because a package must name its author and a code of conduct must give a real contact.
- Added patterns for the author's own name, personal email and `gh auth switch` account -
  none were checked before, which is precisely how a literal identity survived in a
  shipped command - plus the employer's abbreviation where it is used as a symbol or
  workspace prefix, bounded so ordinary words that merely contain those letters
  (`HEALTHY`, `RHYTHM`) do not match.
- `--exclude-dir` for `.git`, `node_modules`, `.worktrees`, `.next` and `DerivedData`.
  Without it, `--root` mode scanned `.git/logs`, so auditing any checkout was guaranteed
  to "fail" on commit metadata no consumer receives, burying the real findings.
- Five leaks removed from public files: a real corporate email in `CHANGELOG-archive.md`,
  a corporate toolkit name in both changelogs, the author's website in `docs/adr/0008`
  and `docs/internal/`, and corporate symbol/repo/task literals in `docs/internal/`.
  These are gone from HEAD; git history still contains them.

## [14.1.0] - 2026-07-29

Two things the pipeline was supposed to do and did not: use the skills a project's
own toolkit says apply, and clean up after itself.

### Added

- **Phase 3 asks the stack toolkit which of its skills govern the task.** Each
  `ai-<platform>-engineering-toolkit` already ships an `index` skill holding a
  30-plus row intent-to-skill table, maintained beside the skills it points at.
  Phase 3 dispatched to that plugin for exactly one case (`taskType == "component"`),
  so `bugfix` / `feature` / `refactor` / `chore` had no skill dispatch at all:
  whichever skills the host surfaced by description match were the ones used, and
  nothing recorded or required any of them. That was the dev-side half of the gap
  v14.0.0 closed on the review side - review asked "was this built to the rules it
  was supposed to follow" while nobody had chosen any rules.

  The routing table is NOT copied into this repo. A second copy would drift the
  moment the plugin shipped a skill, and the copy here would be the stale one, so
  the pipeline asks rather than knows. `smoke-stack-skill-routing.sh` check 5 fails
  the build if a routing table appears in a shipped file (verified against a planted
  6-row table). Routed skills land in `telemetry.skillCalls[]` with
  `routedBy: "<toolkit>:index@<version>"`, so Phase 4 conformance can hold the run to
  what its own toolkit chose. An absent or disabled toolkit is a recorded no-op, not
  a halt - a backend repo has no toolkit and must still run.
  Contract: `refs/features/stack-skill-routing.md`.

- **Phase 6 removes a task's worktree once its PR is open** (`worktree-finalize.sh`,
  gated by `prefs.global.settings.worktreeAutoRemoveOnPr`, default **true**). It
  salvages `agent-state.json`, `phase-tracker.json`, `triage-output.json`,
  `.pipeline/`, `.build.log`, `.test.log` and `.review-diff.txt` into the log dir
  first, because Phase 7's triage-memory ingest, the learnings-ledger distill,
  `render-work-summary.sh`, `:resume`, `:status` and `:log` all read them - and the
  first three are `[ -f ]`-guarded, so a removal without salvage would have degraded
  silently rather than failing.

  It keeps the branch and **does not check it out**. `git worktree remove` leaves the
  branch as an ordinary local branch, so nothing is lost, while a checkout would move
  the user's HEAD and could collide with their own uncommitted work on another
  branch. Phase 5 removes-then-checks-out on purpose because it is a test handoff;
  this is not. Verified end to end: HEAD stays put, the user's uncommitted file
  survives, the branch is still checkoutable on demand.

  Every destructive path is gated and each skips with a reason rather than failing:
  real uncommitted changes, an unpushed HEAD, `--local` mode, a cwd inside the tree,
  an unregistered path. `--force` appears nowhere. Contract:
  `refs/features/worktree-finalize.md`. New state: `worktreeRemovedAt`,
  `artifactsPath`.

- Gates: `smoke-stack-skill-routing.sh` (12 checks) and `smoke-worktree-finalize.sh`
  (28 checks, exercising real git repos rather than grepping the doc).

### Changed

- `render-work-summary.sh` gained a log-dir fallback for state and tracker files.
  It resolved them only from the worktree, so it exited 2 and the entire Work Summary
  vanished from the PR body and the Jira comment. Its sibling
  `render-agent-log-cost.sh` has had that fallback all along.
- `:resume`, `:status` and `:log` no longer treat a missing worktree as a broken run
  when `worktreeRemovedAt` is set: state is read from `artifactsPath`, and resume asks
  before moving the user's HEAD.
- `gc-worktrees.sh` and `/multi-agent:garbage-collect` both claimed the finishing
  command owned worktree removal. That is now true rather than aspirational.
- Token budget 52200 -> 52700, after compressing 414 tokens out of Phase 3 and
  Phase 6 first, per the discipline recorded in `token-budget.json`.

### Fixed

- **Every finding the test-integrity gate produced was unattributable.** It read
  `f.file` from the diff-risk report, which declares and emits `path`, so each
  finding carried `file: undefined` and read "Test file 'undefined' shrinks". That
  is useless to the developer and rejected by `reviewer-output.schema.json`, which
  requires `file` with `minLength: 1` - on the one gate that deliberately has no
  opt-out. It stayed invisible because the smoke's own fixtures used `"file"`, the
  key the bug read: the fixture matched the bug instead of the schema. Fixtures
  corrected, and a new assertion checks the finding names a real path (verified by
  reintroducing the bug).

- **The command inventories kept a renamed command alive.** `finish` survived the
  v14.0.0 rename to `ship` in all three inventory lists, because
  `smoke-command-inventory.sh` only proved nothing was MISSING and `ship` appears
  elsewhere in those files' prose. Added check 4b: every name in an inventory must be
  a command that exists in the tree (verified against a planted `ghostcmd`).

## [14.0.0] - 2026-07-29

The `--dev` family reviews its own work, and review now checks the code against the
criteria it was supposed to be built to instead of general good taste.

Major because a command was renamed: `/multi-agent:finish` is now `/multi-agent:ship`.
No alias is kept - `installCommands()` replaces the command tree wholesale, so a clean
cut leaves nothing half-migrated.

### Added

- **Phase 4 Review runs in `dev`, `dev-autopilot`, `dev-local` and `dev-local-autopilot`.**
  Phase sets become `0/3/4/5/6/7` for `dev` and `0/3/4/6/7` for the three variants, in
  `gen-mode-dispatch.mjs` (the generator is the source of truth; the tracker sections are
  regenerated from it, never hand-edited). Analysis and planning are still skipped: they
  shape work that has not happened yet, so a task the user has already scoped can do
  without them, while review judges work that now exists and has no substitute. Accepted
  blocking findings return to Phase 3 under the existing 3-iteration hard kill; the
  autopilot variants auto-fix without prompting and halt on the existing rework-storm
  circuit breaker rather than committing. No new machinery for either - both were already
  built and became reachable the moment Phase 4 entered the phase set.
- **Phase 4 Step 1.78, criteria resolution** (`skill-conformance.mjs`, zero LLM). Resolves
  which rule registries apply to this diff, scoped to its languages and paths, and writes
  `criteria-manifest.json` BEFORE the reviewers run. That file is the denominator: reviewers
  return one verdict per selected rule ID, so "did it apply this completely" is answerable
  rather than inferred. A reviewer that opened nothing and one that checked everything
  produce identical `findings` arrays, which is why the checklist exists.
- **Registry discovery is declared, never sniffed by name.** A skill opts in with
  `standards-registry: <path>` in its frontmatter, so the pipeline names no stack-specific
  skill and a future UIKit, Objective-C, Kotlin or backend registry drops in with zero
  pipeline change.
- **Every registry declares its own `scope`** (`languages`, `paths`, `excludePaths`,
  `notCovered`), and per-rule `scope` narrows it further. Measured before this landed: only
  2 of the iOS registry's 99 rules carried any applicability field, and the rest wrote their
  scope as English prose inside `mechanism` - so an Objective-C or UIKit diff would have
  collected all 99 SwiftUI-shaped rules, manufacturing findings and burying the real ones.
- `references/rules.yml` for `apple-archive-compliance` (18 rules) and
  `google-play-compliance` (21), converted from their existing SKILL.md tables with IDs and
  severities preserved. Registry count goes 1 -> 3, so discovery is genuinely
  capability-based rather than one skill with extra steps.
- **Exception-marker audit**: expired, reason-less, expiry-less, or unknown-ID
  `standard:exception(...)` markers become rule-ID-bearing findings. The marker template is
  read from the registry, never hardcoded, so a registry with different comment syntax works.
- `state.telemetry.skillCalls[]` - Phase 3 records each skill, plugin skill and guide it
  consulted, with the files it applied them to.
- `prefs.global.skillConformance.blockOnCoverageGap` (default **false**) and
  `prefs.global.ship.autoFix`, the latter referenced by the tail command's spec since it
  shipped but never actually declared. Prefs schema 2.4.0 -> 2.5.0 with a migration that
  carries any existing `finish.autoFix` value across the rename.
- Gates: `smoke-dev-mode-review.sh`, `smoke-skill-conformance.sh` (26 checks),
  `smoke-skills-root-resolution.sh`. `smoke-subagent-validators.sh` grew 10 checks for the
  conformance contract; `smoke-mode-dispatch-drift.sh` grew a step that asserts the negative,
  because its per-phase `grep -Fq` could not catch an ABSENT phase.

### Changed

- **`/multi-agent:finish` -> `/multi-agent:ship`.** "Finish" never said what it did. The
  command takes work already sitting on a branch through review, a build+test gate, PR and
  report; `ship` says that. With review now inside the dev modes, its remaining job is work
  that had no pipeline run behind it, rather than a patch for a mode that skipped review.
- **Reviewers cite rule IDs.** `reviewer-output.schema.json` 1.0.0 -> 1.1.0 adds `ruleId`,
  `criteriaSource` and the per-rule `conformance[]` array; `triage-output.schema.json`
  3.2.0 -> 3.3.0 carries both through triage. `code-reviewer.md` gains a `${CRITERIA}`
  injection slot - the phase doc had claimed for some time that "skills are injected into
  reviewer prompt context" while the agent definition had no slot for them, which is exactly
  why review could not cite a rule.
- `validate-reviewer.mjs` enforces the checklist with `--criteria`: a selected ID with no
  verdict, a verdict for an ID that was never selected, a `conformant` row with no file
  evidence, and a `violated` row with no matching finding all fail. Without this the field
  would be decoration - the validator is hand-written and does not apply
  `additionalProperties`, so any array at all would have passed.
- `${CRITERIA}` lives in the shared cacheable prefix, identical for every reviewer.
  Subsetting it per reviewer would invalidate the prefix for the whole panel and re-bill the
  largest block in the phase.
- Phase 4 no longer transcribes SwiftUI interaction and accessibility rules inline; they
  resolve from the registry that declares SwiftUI scope, so criteria and severities live in
  one place. This removed the drift the release exists to close, and reclaimed budget.
- Phase 3's pre-flight no longer aborts unconditionally on a missing analysis document.
  Steps that read that document are recorded `not-applicable (no Phase 1 in this mode)`,
  which is what the `--dev` family always needed and never had.
- `migrate-prefs.mjs` derives its migratable-version set instead of enumerating one
  `else if` per version. The old chain had to be extended by hand whenever
  `TARGET_VERSION` moved, and forgetting made the migrator throw `unknown schemaVersion`
  on the exact version it had just been released to migrate from.
- Token budget 51500 -> 52200, after 820 tokens were compressed first, per the note in
  `token-budget.json`.

### Fixed

- **`ios-coding-standard` in the repo was a version behind the installed copy** (95 rules
  v1.0.0 vs 99 rules v1.1.0). Because `installSkills()` copies the repo over the
  destination, the next `/multi-agent:update` would have downgraded a user's registry -
  harmless while nothing read it, a correctness regression the moment Phase 4 blocks on rule
  IDs. Resynced to 99 rules.
- `modules/*.yml` overlays and `references/EXAMPLES.md` are deliberately NOT shipped: they
  quote real module paths, symbol names and call-site counts from one codebase, so a shipped
  overlay would bind another project's dialect slots to the wrong dialect. `modules/_TEMPLATE.yml`
  carries the shape instead, and the skill states that an unbound slot disables its rules
  rather than defaulting silently.
- `tracker-contract.md` contradicted itself on skipped phases: one section said to
  `TaskCreate` every phase "even if it will be skipped in this mode", another said omitted
  phases get no `TaskCreate` at all. The mode files and the generator follow the second, so
  the example now matches it.
- Three docs disagreed on whether `--dev` runs Phase 5. They now agree with the generator.
- The dispatcher's modular-loading table had no row for `dev` or `dev-autopilot`.

## [13.6.0] - 2026-07-28

A review pass across the pipeline, the plugin marketplace and the companion MCP server.
Every gate was green before it started: each defect below was invisible to the suite,
and most were invisible because a gate asserted the wrong half of the contract. New
gates are named per item.

### Fixed

- **The Tier 2 Figma PAT could not be found on any migrated install.** `migrate-prefs.mjs`
  consolidated `keychainMapping.figma_pat` into `.figma` and deleted the old key, but the
  setup wizard kept _writing_ `figma_pat` (so the next migration deleted the mapping it
  had just created), both Tier 2 fetchers kept _reading_ it, and the failure text told the
  user to map the one key guaranteed not to survive. Tier 2 reported `missing-token` while
  a valid PAT sat under the new name. Claude Code's MCP tier masked it; Copilot and Codex,
  which serve no Figma MCP tools at all, fell straight to Tier 3. The lookup now lives once
  in `lib/figma-token.sh` (canonical `figma`, legacy `figma_pat` as a fallback) rather than
  duplicated per fetcher, which is what let the two copies drift from the migration.
  Gate: `smoke-credential-key-alignment.sh`.
- **Claude Code installs registered no MCP server**, so every skill that reaches for a
  `dev-toolkit` tool - `design-check`, the `ios_*` / `android_*` calls, the archive audits -
  had nothing to call. Codex had registration from day one and Copilot gained it later;
  Claude Code was last and easiest to miss, because a maintainer who registered it by hand
  once sees a working tree forever. `--scope user` is not optional: `claude mcp add`
  defaults to project scope, binding the server to whichever directory the installer ran
  in. Uninstall now deregisters it too. The gate that existed to catch this iterated
  `codex copilot`, so it structurally could not; the host list is now derived from the
  installers on disk.
- **`@mmerterden/dev-toolkit-mcp` was not on the public npm registry**, while all three
  installers register `npx -y @mmerterden/dev-toolkit-mcp`, which resolves from it. GitHub
  Packages answers 401 to unauthenticated reads even for public packages, so pointing npx
  there is not an alternative. Registration never failed - it only writes host config - so
  the break surfaced later as an E404 on first tool use, and only for users whose `~/.npmrc`
  lacked a scope redirect. Published; `publishConfig` now matches the pipeline's.
  Gate: `smoke-mcp-package-resolvable.sh`.
- **157 instruction paths resolved only from a repo checkout.** `node pipeline/scripts/x.mjs`
  works when cwd is this repo's root, which is never true during a run: the pipeline works
  inside a worktree of the user's project. The class covered 85 script invocations (bare,
  `node`-prefixed, env-prefixed, `&&`-chained), 16 skill references, 12 rules references,
  and 4 files invoking `"$REPO_ROOT/pipeline/scripts/..."` where `$REPO_ROOT` was never
  assigned anywhere in the pipeline. Gate: `smoke-install-relative-paths.sh`, which
  enumerates the whole class rather than the instances.
- **`dynamicSkillLoading` had never worked on an installed tree.** Three breaks stacked: a
  full install did not ship `.skills-index.json` (while the schema said it always did),
  `match-skills.mjs` resolved its default index to `$HOME/pipeline/skills/...` from
  `~/.claude/scripts/`, and the runtime contract in the orchestrator invoked a
  repo-relative path. Its own smoke passed `--index` explicitly and ran from the repo, so
  it never exercised either failure. The index now ships on every install for all three
  hosts via one shared helper.
- **Two compliance skills were unreachable on Codex.** `apple-archive-compliance` and
  `google-play-compliance` live in `skills/shared/core`, and Codex's installer copied only
  `shared/external`. `smoke-compliance-skills.sh` asserted both were wired to four
  consumers - reading the source tree, with no host awareness - so it passed while the host
  had nothing to load. Gate: cross-host reachability parity in `smoke-install-layout.sh`.
- **A plugin skill whose name a pipeline skill also owns was dropped on the copy hosts.**
  Claude Code reaches both because its loader namespaces plugin skills; Copilot and Codex
  copy flat, so the iOS toolkit's `architecture` (that stack's structural rules) was
  silently unreachable behind the pipeline's generic ADR skill, as was its `backlog` and
  the common toolkit's `index`. Clashes are now plugin-prefixed, the flat analogue of what
  the loader does, so the pipeline keeps the bare name and nothing is lost.
- **Plugin skills were frozen after their first install.** `skipNames` was a snapshot of
  the destination, so a plugin skill matched its own previous copy and was skipped forever,
  outliving every upstream fix in it. It is now the pipeline-owned set derived from the
  source tree, and each plugin skill dir is wiped before refill so a file dropped upstream
  does not linger.
- **Copilot skills referenced trees Copilot does not install.** Its skills were copied
  byte-for-byte, so 15 references pointed at `~/.claude/scripts` and `~/.claude/lib` -
  absent on a Copilot-only machine. Codex has had this rewrite since its installer was
  written. Copilot now rewrites the trees it owns, and installs `rules/` as well, closing
  the same silent-nothing fallback Codex's installer already documented.
- **`phase-tracker.sh` never reclaimed a stale lock on Linux.** It tried `stat -f %m`
  before `stat -c %Y`, and on GNU coreutils `stat -f` is a _valid_ flag (`--file-system`,
  where `%m` is the mount point): it succeeds, returns something like `/`, the `||` never
  fires, and the age arithmetic runs on a path. Every tracker call then spun the full ~5s
  bound and fell open with a warning. Every other `stat` call site in the repo already had
  the order right.
- **The portability gate accepted any file containing `||` anywhere in it**, which is every
  shell script in the repo, so an unguarded BSD/GNU construct shipped green - the
  `phase-tracker` bug above rode through that hole for releases. The guard is now checked
  on the hit's own line, plus a dedicated `stat` ordering rule.
- **Model IDs were a generation behind.** 21 references dispatched `claude-opus-4-8` and
  `claude-sonnet-4-6` on the opus/sonnet rungs. Both are still valid upstream, so nothing
  errored - Phase 4's reviewer panel, the dev phase and the whole fallback ladder simply ran
  the previous generation. Now `claude-opus-5` and `claude-sonnet-5`, with the rung/ID split
  stated in the fallback contract. Gate: a generation guard in `smoke-model-fallback.sh`.
- **`rules/pipeline-output-formatting.md` did not exist.** Two shipped skills named it as
  the PR-body contract to follow. The install-layout smoke had been _reporting_ paths that
  exist on no host as a note rather than failing on them, which is how it survived; that
  claim is now strict.
- **A pre-migration preferences file failed validation before the migration could fix it.**
  `firebase_sa`, `firebase_project` and `servicePatMap.figma_pat` are deleted by
  `migrate-prefs.mjs` but were undeclared under `additionalProperties: false`. Declared as
  deprecated tolerance slots, and the deprecated/deleted sets are now checked against each
  other in both halves of the schema.
- `state.figmaAccess` was a BLOCKING pipeline-wide contract that the state schema never
  declared. Declared, including the new `tier1Unavailable` cause.
- Four credential-store corrections: the resolver overwrote a pre-set `CRED_STORE` while
  documenting it as an override; `doctor` advertised an env-var fallback that `get` does not
  implement; `resolve_key` read `keychainMapping` with python3 only, so on a Windows box
  without it the mapping was skipped in silence and a present token read as missing (node
  is now the second reader, and node is guaranteed wherever this installs); and macOS
  `list` read the item LABEL rather than the SERVICE attribute `get` looks up.
- `lint-mcp-refs.mjs` printed one checkmark for two different claims - "the server name is
  recognised" and "its tools were verified to exist" - so Figma and XcodeBuildMCP read as
  verified when nothing had probed them. Verified and declared are now distinguished.
- 15 orphan `<name>.md` files from a pre-directory install layout sat in a real
  `~/.copilot/skills`, shadowing the proper directory form. Pruned, on both copy hosts.

### Changed

- Figma Tier 1 availability is now host-aware. Absent tools (the normal case on Copilot and
  Codex, where the installer registers only `dev-toolkit`) record
  `figmaAccess.tier1Unavailable = "host"` and fall straight to Tier 2 - no probe, no
  re-auth retry, and no "recreate the MCP token" question the user cannot act on. Tools
  present but failing auth is `"auth"`, where the retry does apply. On those two hosts a
  mapped `figma` PAT is the primary path, not a fallback.
- Phase-doc token budgets recalibrated. The path correction above cost 196 tokens of pure
  correctness; 149 were reclaimed first by compression (Phase 1's Figma tier table now
  points at the Phase 0 probe that already resolved it; Phase 4's Codex constraints point
  at the always-loaded AGENTS.md block). Five warn lines had been permanently amber, which
  makes the amber tier useless as a signal - every warn reset to the documented
  current+10%, the four maxes the new warn would have collided with to current+25%,
  aggregate 51000 -> 51500.
- The install summary told users to register the Claude Code MCP server by hand. It no
  longer does, because the installer does it.

## [13.5.1] - 2026-07-28

### Fixed

- `ios-coding-standard`'s local lint runner defaulted its scratch root to
  `~/.claude/local/...`. On a Copilot- or Codex-only machine that made the script create
  a stray `.claude` directory belonging to a host that is not installed, just to hold
  lint output. It now picks whichever host tree exists and falls back to `$TMPDIR`.
  Found by the Codex sync verification, which flags any `$HOME/.claude/...` reference
  that reaches the Codex tree.

## [13.5.0] - 2026-07-28

### Fixed

- **Every fetcher died on a Copilot-only or Codex-only install.** Eleven runtime scripts
  loaded `credential-store-resolver.sh` as `. "$HOME/.claude/lib/..." || . <next> || {
error }`, all of them under `set -e`. Sourcing a file that does not exist aborts the
  shell outright - `||` included - so on a host without `~/.claude/lib` the chain reached
  neither its later candidates nor its error branch: bare exit 1, no message. Reordering
  does not help, because whichever candidate is absent aborts at that point. All eleven
  now check `[ -f ]` before sourcing and decide on `$CRED_STORE`, and the resolver ends
  with `resolve_credential_store || :` so sourcing it can never trip a caller's `set -e`.
- The resolver only knew about `~/.claude` and `~/.copilot`. A Codex-only install could
  not locate the credential helper at all, while the file sat in `~/.codex/lib`.
- **Copilot CLI registered no MCP server.** Codex had registration from the day its
  installer was written; Copilot never did, so it carried all 257 pipeline skills and
  could not call one of the 80 dev-toolkit tools those skills depend on. Both hosts now
  go through the shared `install/_mcp-register.mjs`, which also treats Copilot's
  `already exists` (exit 1, unlike Codex's replace-and-exit-0) as the desired end state
  rather than reporting a working registration as a failed install. Uninstall deregisters
  on both.
- **`figma-mcp-refresh.sh` called macOS `security` directly**, so silent Figma MCP token
  renewal - the path that keeps every Figma consumer on Tier 1 - never worked on Linux or
  Windows, and surfaced as an unexplained expired-token prompt. It now goes through
  `credential-store.sh` with the `set <key> -` stdin form, which keeps the secret off
  argv on every platform, the property the old `security -i` call was preserving.
- **`phase-tracker.sh` hashed with a bare `shasum`** - a perl script absent from slim
  Linux images. Where it was missing, OTel trace and span ids came back empty: valid
  JSON, useless telemetry, no error. Same for `post-pr-review.sh`, where an empty
  fingerprint made every finding look new and re-posted the whole review each iteration.
- `audit-log.sh` fell back to printing `unhashed:<url>` when no hasher was available,
  writing the plaintext remote - credentials included, if the URL carried any - into the
  audit log that hashing exists to protect. It emits a marker instead.
- `smoke-write-state.sh` counted an honest exit-2 lock timeout as data loss, because it
  read the final state without looking at exit codes. That made it fail once inside a
  fully loaded suite run while passing 12/12 in isolation - a flake that read as a
  data-loss bug and would eventually have been "fixed" by lowering the writer count,
  removing the regression detection the test exists for. It now asserts the real
  invariant: no writer reports success while losing its update.
- `smoke-token-preflight.sh` asserted the literal `security add-generic-password`, which
  pinned the implementation to macOS. It now asserts the portable route and fails if a
  direct platform keychain call comes back.
- `multi-agent-refs/rules.md` pointed at `~/.claude/scripts/vercel-deploy.sh`; the
  wrapper installs to `lib/` with the other shell libraries.

### Added

- **`smoke-shell-portability.sh`** (8 assertions) over every shell file that ships to a
  user tree: single-platform hashing without a fallback, unguarded BSD/GNU-divergent
  constructs, hardcoded absolute home paths, direct platform keychain calls, and the
  `.`-chain-under-`set -e` trap above. It found the `post-pr-review.sh` hasher and the
  `figma-mcp-refresh.sh` keychain call on its first run.
- `smoke-install-layout.sh --update-fixture` regenerates the layout fixture from the tree
  the gate itself installs, probe plugin included. The documented hand-rolled recipe
  omitted it, so following it baked a three-file shortfall into the fixture.

## [13.4.0] - 2026-07-28

### Added

- **`credential-inventory.sh`** - one command that answers "what can I reach right now?"
  A run asked the user to paste a Crashlytics stack trace by hand, offering the manual
  path as the fastest route, while a valid Firebase service-account JSON sat in the
  Keychain mapped as `firebase` and resolving fine. Nothing had failed: the pipeline
  simply never asked itself whether it already held a credential that answered the
  question. The tool reports `present` / `mapped-but-missing` / `unmapped` per logical
  key plus what each one unlocks, and `keychain.md` Rule 2 now binds every question that
  requests external data to its output - ask for the pointer (the issue URL), never for
  the payload. Values are never printed.
- `--probe` verifies that configured credentials actually answer, because "the key is in
  the Keychain" and "the service replies" are different claims that the user fixes in
  different ways. The verdicts stay separate on purpose: `auth-rejected` (refresh the
  token), `unreachable` (on a corporate host, almost always the VPN),
  `no-host-configured` (a token with nowhere to point), `well-formed` (valid shape,
  liveness needs more input), `not-probeable`. Collapsing them into one "failed" bucket
  is what led the user to three different wrong actions. Only configured credentials are
  probed - an unmapped key is a capability the user chose not to enable.
- `smoke-credential-awareness.sh` (32 assertions) and `test/phase0-exit-gate.test.mjs`
  (20 cases) lock all of the above, including two secret-leak checks and the rule that
  the credential reaches curl through a stdin config rather than argv, where any `ps`
  could read it.
- `smoke-install-layout.sh --update-fixture` regenerates the layout fixture from the
  tree the gate itself installs. The documented hand-rolled recipe omitted the seeded
  probe plugin, so following it baked a three-file shortfall into the fixture and the
  next run failed on a drift that was really a bad regen.

### Fixed

- **The Phase 0 exit gate now asserts that the pickers ran.** It checked `taskType` and
  the Figma access tier only, so a run that skipped the project and branch pickers and
  developed straight on the local checkout passed cleanly - which is exactly what a
  reported run did with a Jira ID. The gate now also requires `baseBranch`,
  a `baseFetchStatus` from the known set, and a worktree path distinct from the project
  root. Branch selection is marked non-skippable in `phase-0-init.md`, in every mode:
  `--dev` skips the LLM phases, not Phase 0's pickers.
- **An unreachable external source is announced instead of absorbed.** Exit code `3`
  used to mean "mark it failed and continue", so an expired token and a VPN-off remote
  both reached the analysis phase as _no data_, indistinguishable from a ticket that
  referenced nothing. The run then planned from a partial picture and reported success.
  `external-context-injection.md` now classifies the stderr and surfaces a decision -
  refresh the credential, connect the VPN and retry, supply a current URL, or continue
  without - records `userDecision` in state, and requires autopilot to report what it
  skipped rather than hide it. Retry is a real branch, not a label.
- The base-branch and fetch-failure pickers were still written as ASCII numbered menus
  in `phase-0-init.md`, against the picker contract's native-widget rule. Both are now
  expressed as picker options, and the fetch-failure question names the corporate host
  when the remote points at one - a host that will not resolve is almost always the VPN,
  and saying so is the difference between a five-second fix and a run built on a stale ref.
- `credential-inventory.sh --json` returned empty arrays while the table mode looked
  correct: `python3 - <<EOF` takes its script from stdin, so the piped payload never
  reached `sys.stdin`. Caught by the new gate on its first run.
- The probe read hosts from `global.<service>Host`; the real path is
  `global.hosts.<service>`, so every self-hosted service reported
  `no-host-configured`. Found by running the probe against the real preferences instead
  of trusting the field name.
- `figma_mcp` is an OAuth token for the MCP server, not a REST PAT: probing it against
  `api.figma.com` returned 403 for a healthy token and would have sent the user to
  regenerate something that worked. It is now reported as not-probeable, with liveness
  left to `figma-mcp-refresh.sh`, which owns the grant.
- A failed `curl` wrote `000` through `write-out` _and_ triggered the `|| echo "000"`
  fallback, producing `000000` and a bogus verdict for what was simply a closed VPN.
  Any non-three-digit status now reads as `probe-error` rather than being dressed up as
  a service verdict.
- `multi-agent-refs/rules.md` pointed at `~/.claude/scripts/vercel-deploy.sh`; the
  wrapper installs to `lib/` with the other shell libraries. It had been reported as a
  dangling reference for several releases.
- `/multi-agent:setup` no longer describes an unreachable discovery source as skipped
  "silently". Setup is where the user is configuring things, so a source that could not
  be reached is precisely what they need told, with the classification that decides
  their next move.

## [13.3.0] - 2026-07-28

### Added

- **Copilot CLI and Codex CLI now carry the stack plugin's authored skills.** Claude Code
  loads `multi-agent-plugins` natively; the other two hosts could not, and the contract
  papered over it by claiming Copilot kept standalone `figma-*` copies as a "frozen
  fallback". `install/copilot.mjs` pruned exactly those directories, so Copilot had
  **zero** plugin-authored skills: `create-screen`, `figma-validate`, `figma-review`,
  `component`, `state` and `navigation` were all absent, and a component task on Copilot
  had nothing to dispatch to. New shared `install/_plugin-skills.mjs` delivers the
  `index` / `reference` / `workflow` / `tools` groups to both hosts - as skills on
  Copilot, as reference files on Codex, where the skills block truncates silently.
- Plugin selection reads `enabledPlugins` from `~/.claude/settings.json` rather than
  copying every stack plugin. A flat copy of all five is last-write-wins, and `fix-bug`
  plus `branch-and-pr` exist in four of them while `component`, `state` and
  `create-component` exist in three - an iOS repo could have ended up running the
  Android `create-component`. The `--platform` flag is now only the fallback for a
  machine with no Claude Code settings to read.
- `test/stack-content-sync.test.mjs` - three cases locking content propagation,
  content-only version bumps, and no-op idempotence in the stack-plugin generator.

### Fixed

- **`build-stack-plugins.mjs` never propagated content edits.** It copied a skill only
  when the skill _set_ changed, so editing a routed skill in `shared/external` reached
  no plugin while the generator reported "all plugins up to date" - which read as
  confirmation. This falsified the single-authoring-source guarantee the whole
  `shared/external` design rests on. Found by converting banned punctuation in
  `ios-coding-standard` and seeing the plugin copy keep all 188 banned characters with a
  differing `rules.yml`. Fixing it also surfaced 37 stale skill descriptions across four
  plugins, still missing the "Use when ..." routing clause that decides whether a skill
  is matched at all: those plugins had been serving worse descriptions than the source
  for as long as the routing clause existed.
- `build-stack-plugins.mjs` now accepts `--key=value` as well as `--key value`. The `=`
  form fell through to the default, so a run aimed at a throwaway checkout silently
  retargeted the user's real marketplace and reported success.
- `smoke-install-layout.sh` asserts plugin-skill parity against a seeded probe plugin,
  so the check cannot pass vacuously in an isolated `HOME` the way it did on first write.

### Changed

- `cross-cli-contract.md` §1.1 replaced the false "frozen fallback" claim with a
  per-host delivery table: native plugin load on Claude Code, installer-delivered skills
  on Copilot CLI, installer-delivered refs on Codex CLI. Parity is asserted on the
  reference set, not the skill set, because Codex ships one router skill by design.
- `codex-instructions.md` gained a "the skills are on disk, not in the list" section
  with an `ls` / `grep` / `head` discovery recipe: only 5 of Codex's skill entries render
  descriptions, so the 193 delivered refs are reachable but not description-matched.

## [13.2.0] - 2026-07-28

The iOS coding standard reaches all three hosts, and works outside the pipeline.

The 95-rule registry lived as a pipeline-local routine. Two consequences, both
measured: only Claude Code could reach it, because `local-only` commands are
deliberately never synced (verified absent on Copilot CLI and Codex CLI), and it
applied only when the routine was invoked explicitly - nothing pulled the rules in
while Swift was being written. The plugin's own `reference/code-style` skill is 154
lines of prose with zero rule IDs, so the registry was not reachable that way either.

### Added

- **`ios-coding-standard` skill**, authored once in `pipeline/skills/shared/external`
  and routed into the iOS stack plugin's `knowledge/` by the existing generator. That
  one source now lands as a skill on Claude Code and Copilot CLI (description-matched,
  so the rules are present while code is being written) and ships inside the plugin for
  Codex. `references/` carries the registry, the teaching doc, a SwiftLint config for
  the mechanically-enforceable subset, and a module-scoped lint runner with a baseline
  mode.
- **`/multi-agent:ios-coding-standard`** promoted out of `local-only` into the command
  inventory (43 → 44), with its Copilot twin, so the module-wide audit procedure exists
  on every host. It reads its rules from the skill rather than carrying a copy.

### Changed

- The registry was generalised before promotion: company hostnames, an internal URL
  scheme, internal model and endpoint names, and repo-specific module paths were
  replaced. `smoke-personal-data.sh` is clean across all six promoted files. Rule
  bodies describe shapes (a mapper doing arithmetic, a logger interpolating a token)
  rather than named modules, so the registry applies unchanged to any SwiftUI codebase;
  a project layers its own vocabulary through a `modules/<Module>.yml` overlay.
- Four over-long skill descriptions trimmed (`ios-simulator` 839→578,
  `swift-api-design-guidelines` 738→468, `swiftlint` 725→473, and the three new ones).
  The always-on description surface was at 78,079 of 78,000 bytes before this change;
  adding a 44th command and a new skill needed 859 bytes it did not have. Each trim
  removed duplication between a description's "covers" enumeration and its trigger
  clause, which is where the routing value actually is. Surface is now 77,734.

### Notes

- **Codex lists plugin skills by name only.** Measured: all 76 plugin-provided skills
  render with an empty description in Codex's skills block, while the 5 system skills
  render theirs. So on Codex a plugin skill is invoked explicitly rather than matched
  on description. That is the reason the registry is authored in `shared/external`
  instead of hand-placed in the plugin: the pipeline install path gives Claude Code and
  Copilot CLI a description-matched skill, and the plugin copy covers Codex.
- The iOS plugin now declares 143 skills and Codex surfaces about half. That overflow
  predates this change and `tools/validate.py` warns on it; routing `knowledge/` behind
  the plugin's `index` skill is the fix and is separate work.

## [13.1.0] - 2026-07-27

Six gates, from one branch that spent half its commits on rework.

A Figma-driven screen task was built through the generic development path. The cause
chain, measured from the run's own artefacts: Phase 0 reported `completed` having
written only `tracker-state.json`, so `agent-state.json` and its `taskType` never
existed, so Phase 3's component dispatch could not fire. The stack plugin already
ships `create-screen`, `figma-validate` (7 criteria including design-token compliance
and Code Connect strategy) and `figma-review` (14-item checklist) - none of them ran.
Padding came out 16 where the frame said `Spacing/12`. Three of six commits were fixes,
the last a full sheet rebuild.

Nothing here is a new capability. Every gate enforces a rule that already existed or
invokes a skill that was already written but never called.

### Added

- **`phase0-exit-gate.mjs`, blocking.** Phase 0 may not be marked completed until
  `agent-state.json` exists with a `taskType`, and a Figma reference forces
  `taskType: "component"` plus a recorded `figmaAccess.tier`. A phase that reports
  success without its output is worse than one that fails: every later phase then
  reasons from a field that is not there. The evaluator is pure and exported, so the
  gate is testable without reproducing a run.
- **Phase 4 Step 2.8, visual conformance gate.** Runs `figma-review` and
  `/multi-agent:design-check` for component/screen work, with the coverage gate, and
  asserts Code Connect was **published** rather than merely written - a
  `*.figma.swift` on disk with "Not published" in Figma is a binding that exists for
  nobody. `design-check` had been a command with no phase invoking it, so the only
  thing standing between a build and visual drift was the user opening the app.
- **Phase 1 Step 1.45, reuse discovery, blocking.** Search for an existing wrapper,
  entity, mapper or screen before proposing a new one. One run wrote a repository over
  an endpoint a sibling domain already wrapped **with its country parameter**, called
  the generated method without it, and re-invented an entity the module already had.
  "Copy X and rename it" is the reuse answer, not a hint.
- **`smoke-component-dispatch-gates.sh`** (12 assertions) pins all six.

### Changed

- **Component dispatch halts instead of degrading.** The contract used to send an
  incomplete-state component task down the generic TDD path while the next sentence
  said "never silently skip the Figma work" - taking the generic path _is_ skipping
  it. That wording authorised the exact failure above.
- **Dispatch routes on scope, not just platform.** A screen and a component are
  different jobs and the plugin ships a skill for each; routing a screen to the
  component skill is why one run produced entities and a mapper but left the screen
  half-wired. `figma-validate` now runs before the create skill.
- **Phase 1 captures spacing by token name, per atom.** Phase 3 is forbidden from
  calling Figma, so a pixel number - or a missing entry - is unrecoverable later. A
  UI frame with no spacing entries is a capture failure, not an empty frame.
- **Phase 3 records that generated trees are not editable.** A mock fixture went into
  the generated tree; the fix moved it to the custom tree and registered the scenario
  in the generated index. Same content, wrong side of the generator, and the Debug menu
  never showed it.
- **Fast modes warn when handed an analysis document.** `--dev` skips Analysis and
  Planning by design, so there is no phase that turns a document into a plan. The doc
  becomes context for one pass and work lands in whatever order it was read.

## [13.0.0] - 2026-07-27

> **Why major and not minor.** The additions here are additive, but two defaults
> changed in ways a reasonable workflow would notice: `install --all` now writes a
> third tree (`~/.codex`) and registers an MCP server via `codex mcp add`, and the
> cross-CLI contract changed shape (the parity axis is per-host now, so an auditor
> comparing Codex on skill directories would read a correct install as drift).
> Per the versioning policy that is a changed default, not a new option.

Codex CLI becomes a third supported host, and a new pre-submission validation command.

### Added

- **Codex CLI as a first-class target** (`install --codex`, included in `--all`).
  The v9.7.0 adapter was deleted in v10.7.0 because Codex was then a degraded
  consumer with no sub-agent fan-out. Codex 0.145 has skills, parallel sub-agents
  with per-agent model and reasoning effort, hooks, MCP and a plugin marketplace,
  so it earns the same treatment as the other two rather than an adapter.
  `install/codex.mjs` writes `~/.codex/{skills/multi-agent,multi-agent-refs,
agents/*.toml,prompts/multi-agent.md,scripts,lib,schemas,rules}` plus a managed
  span in `~/.codex/AGENTS.md`, and registers the dev-toolkit MCP server through
  `codex mcp add` rather than hand-merging TOML that Codex owns.
- **`/multi-agent:testflight-validation`** (command 43). Three gates, each seeing
  what the others structurally cannot: the static 18-rule archive audit, Apple's
  own `altool --validate-app`, and a Review-Guidelines check against repo evidence.
  ITMS codes are mapped to the rule each implies. It validates only - never
  `--upload-app` - so a validation run cannot ship a build by accident.
- **App Store Connect credentials in `/multi-agent:setup`**, inside the Step 1
  discovery / Step 2 mapping / Step 3b onboarding flow alongside Jira and
  Bitbucket, not as a late add-on: a user who already has one in their keychain
  gets it mapped automatically. Tier 1 is an API key, tier 2 an Apple ID plus an
  app-specific password - which matters because creating an API key needs an
  Admin or App Manager role many developers on a corporate team do not have.

### Changed

- **Codex takes the Claude Code thin-dispatcher shape, and has to.** Measured on
  Codex 0.145: installing one plugin declaring 142 skills took the assembled
  skills block from 11 skills / 4,710 bytes to 83 / 22,111, surfacing only **75 of
  142** and **evicting an unrelated user-scope skill**. Shipping the 43
  sub-commands as peer skills would silently lose pipeline commands next to any
  stack toolkit. The pipeline contributes exactly one skill on Codex and keeps the
  specs as refs; `smoke-install-layout.sh` fails if a second one appears.
- Phase 4 reviewer matrix gains a Codex column (gpt-5.6 @ xhigh / gpt-5.4 /
  gpt-5.6 @ medium, triage at max) with two measured constraints written into the
  contract: a `spawn_agent` that sets `model` without `fork_turns: "none"`
  **silently inherits the parent model**, collapsing the panel onto one
  perspective; and 4 concurrency slots _including the orchestrator_ make three
  reviewers the ceiling. Single-vendor caveat recorded - consensus among three
  OpenAI models is weaker evidence than the same consensus on a two-vendor host.
- `tracker-contract.md` gains the `codex` visual channel: the native `update_plan`
  tool, with its no-parallel-call and no-plan-mode caveats.
- Cross-CLI contract retitled for three hosts; parity axis for Codex is the **ref
  set**, not the skill set, because comparing skill directories would demand the
  layout that breaks it.

### Fixed

- **The remote reachability gate blamed the network for every failure.** Any
  non-zero `git ls-remote` exit was reported as `unreachable (VPN/DNS)`, so a
  missing-credential error that returns in under a second sent the user to enable
  a VPN that could not help, and offered a stale-base fallback for a cause that
  had nothing to do with staleness. Failures are now classified from stderr
  (credential / network / wrong remote / unknown), the observed line is printed
  next to the classification, and only the network case offers the cached ref.
- **The Phase 0 branch-collision probe read a failed probe as "no collision".**
  With `2>/dev/null` and an empty-output test, an auth or network failure was
  indistinguishable from "the ref does not exist", so the run created a branch
  that already existed on the remote - surfacing as a rejected push at Phase 6,
  far from its cause. Exit codes are now distinguished (0 exists, 2 free, anything
  else unknown-and-recorded).
- **`/multi-agent:update` deleted the Codex prompt on every run**, pruning
  `~/.codex/prompts/multi-agent.md` as a retired v9.7.0 adapter leftover.
- **Uninstall could delete trailing user content in `~/.codex/AGENTS.md`.**
  `stripManagedBlock` matched only the Copilot end marker, so on the Codex marker
  it fell through to a heading-bounded fallback that returns nothing when the
  trailing content has no top-level heading. Verified against the pre-fix path.
- `smoke-own-punctuation.sh` failed on HEAD: `test/tracker-title-entities.test.mjs`
  (added in v12.11.0) holds the banned characters as its own assertion list and
  was never allowlisted.
- **Half-English pickers on Turkish runs: six shipped files contradicted the
  canonical language matrix.** `rules.md` is unambiguous - `AskUserQuestion`
  `question` and `options[].description` render in `outputLanguage`, only `label`,
  `header` and host chrome are pinned to English. But `/multi-agent:setup` Step 0
  claimed `promptLanguage` governs "interactive pickers and prompts ... Picker UI is
  always English", `/multi-agent:language` claimed "confirmation prompts ... are
  authored in English. Only the assistant's free-form replies follow
  `outputLanguage`", and four more files said variations of the same. Those are the
  two commands a user goes to _configure_ this, so the model followed whichever
  canonical-looking doc it read first and gate questions came out English. All six
  corrected to describe `promptLanguage`'s real scope: the button and chip chrome,
  never the question a user reads.

### Gates (continued)

- New `smoke-language-matrix.sh`: asserts `rules.md` still pins the per-field
  matrix, then greps every shipped command / skill / ref for the seven phrasings
  that actually shipped and contradicted it. Two authoritative docs giving opposite
  answers is a spec with two answers, not a wording nit - the gate found a sixth
  violation (`_input-parser.md`) that the manual sweep had missed.

### Gates

- New `smoke-codex-install.sh` (37 assertions): install/uninstall round-trip into a
  HOME seeded with user content, asserting every artifact lands, every rewritten
  `$HOME/.codex` path resolves, generated agent TOML parses, and user content is
  byte-identical afterwards.
- `smoke-install-layout.sh` extended to three targets, including a check that every
  concrete `$HOME/.codex` reference **resolves on disk**. The earlier "no `.claude`
  references remain" check was blind to a wrongly-rewritten path, which is how
  `commands/multi-agent.md` became `multi-agent-refs/commands.md` - well-formed,
  pointing at nothing. A miss is classified by whether the Claude counterpart
  exists, so broken-by-rewrite fails and broken-upstream is only reported.
- New `test/codex-install.test.mjs` (24 assertions) locks the path-rewrite map,
  the frontmatter transform, the persona tier map, and managed-block trailing
  content, including regressions for both rewrite defects above.
- `MULTI_AGENT_SKIP_MCP_REGISTER=1` makes an install hermetic, so the layout
  fingerprint no longer depends on whether `codex` is on PATH.

## [12.11.0] - 2026-07-26

### Tracker tile titles rendered HTML entities

A live run showed this in the TaskList widget:

```
Phase 1: Build &amp; Launch
Phase 3: Drive &amp; Compare
```

`rules.md` already forbids entities in "titles, commit messages, task subjects, or
body text" because nothing downstream decodes them. A tile title IS a task subject,
so the rule covered this exactly. `output-quality-check.sh` enforced it over the PR
body and the Jira comment and nowhere else, so the one surface where the rule was
actually broken was the one surface nothing inspected. The gap was in the check's
coverage, not in the rule.

`phase-tracker.sh add` is the single funnel for every tile title, so it decodes
there, and warns on stderr: decoding silently would fix the display and hide the
bug that produced it.

**All three encodings**, because a title can arrive in any of them:

|         | ampersand | less-than | em-dash    |
| ------- | --------- | --------- | ---------- |
| named   | `&amp;`   | `&lt;`    | `&mdash;`  |
| decimal | `&#38;`   | `&#60;`   | `&#8212;`  |
| hex     | `&#x26;`  | `&#x3C;`  | `&#x2014;` |

The first version of this fix handled only the named column, which is the same bug
fixed for one spelling out of three.

Two subtleties, each pinned by a test:

- **Nesting.** `&amp;lt;` means the literal text `&lt;`, not `<`. One
  left-to-right pass gets this right for free, because a global replace never
  rescans its own output. An ordered-sed version needed `&amp;` decoded last for
  the same effect, and that ordering was a latent trap.
- **Fancy punctuation degrades to ASCII.** `&mdash;` becomes `-`, never an
  em-dash. This repo bans em/en-dash and ellipsis in shipped text and gates it in
  the scorecard, so decoding them faithfully would make this function INJECT what
  another gate rejects. Applies to the numeric spellings too, or the named form
  would be safe while `&#8212;` still injected.

An unknown named entity is left alone, so a title legitimately containing `&foo;`
survives.

`output-quality-check.sh` gains a tracker-title backstop covering all three
encodings: an entity reaching the stored state means the funnel was bypassed.

The decoder is fed through a QUOTED HEREDOC rather than `node -e '...'`. Inside a
single-quoted shell string every apostrophe in the JS terminates the string early -
including, at one point, the apostrophe in the comment explaining the problem.
shellcheck flags it (SC2140) and the first version worked only by accident of where
the quotes fell.

12 tests. 306 unit total.

## [12.10.0] - 2026-07-26

Two pieces of abandoned residue, and a gate that had inverted.

### `~/.multi-agent/` is pruned on install

The "shared runtime" the Cursor / Antigravity / VS Code Copilot Chat adapters
needed, so their emitted agents could reach the gate scripts by absolute path.
Those adapters were deleted in v10.7.0 along with `installSharedRuntime`,
`_base.mjs`, `rewriteScriptRefs` and `smoke-shared-runtime.sh` - but not the tree
they had written. 222 files (174 scripts, 23 lib, 24 schemas) sat frozen at
whatever the last adapter-era install produced.

It is worse than dead weight because it is indistinguishable from a live install
when you look at it: same directory names, same file names. Its
`schemas/migrations/` is missing `prefs-2.3.0-to-2.4.0.mjs`, so reading it gives a
migration chain three versions short and a reasonable conclusion that the chain
itself is stale.

`ABANDONED_TREES` now takes `root: "home"` entries for trees beside `~/.claude`
rather than inside it, and 253 files (this plus the 31 in `~/.claude/eval`) are
removed on the next install.

### The live-prefs gate was rejecting the only correct state

`smoke-schema-validation.sh` step 7 read:

```bash
if [ "$LVER" = "2.1.0" ]; then pass "live prefs already v2.1.0"
elif ... else fail "live prefs has unknown schemaVersion: $LVER"
```

`migrate-prefs.mjs` `TARGET_VERSION` had since moved to 2.4.0, which inverted the
gate: a prefs file left behind at 2.1.0 passed as "already current", and a file
correctly migrated to 2.4.0 fell through to the else arm and FAILED as "unknown".
The gate rejected the fully-migrated state it exists to encourage.

It now reads the target from `migrate-prefs.mjs` and the accepted set from the
schema's own `schemaVersion` enum, so it cannot disagree with either again, and a
known-but-older version reports how far behind it is (`v2.1.0 -> v2.4.0`) instead
of reading as current. This is a CONSUMER smoke (`/multi-agent:update` runs it), so
it resolves both paths through `SMOKE_DIR`, which is `pipeline/scripts` in the repo
and `~/.claude/scripts` in an install.

### Dead-file sweep

Swept refs, schemas, agents, libs and scripts for files nothing references. No
orphans. The two candidates were both false positives from the sweep's own exclude
flags: `design-check-config.schema.json` is referenced as the instance filename by
the design-check command, and `count-lib.sh` is sourced by two siblings inside
`pipeline/lib/`, which the sweep had excluded. Recorded here so the next sweep does
not re-flag them.

## [12.9.0] - 2026-07-26

Context engineering follow-through, and a guard that was blocking safe commands.

### Phase docs load their conditional sections on demand

The two biggest phase docs carried the UNION of every branch, so a run paid for
paths it never took. Both were over their own warn thresholds.

- `phase-0-init.md` Step 1b (URL Enrichment, 9.6 kB) applies only when the task
  input carries URLs. A bare Jira ID, a GitHub issue number or a free-text task
  never needs it. Moved to `multi-agent-refs/features/url-enrichment.md` behind a
  761-byte stub that states the run condition. Phase 0: 11701 -> 9469 tokens.
- `phase-4-review.md` Multi-Repo Mode (3.0 kB) applies only when
  `state.projects[].length > 1`. Moved to `features/review-multi-repo.md`.
  Phase 4: 12070 -> 11048 tokens.

Total phase-doc budget 50955 -> 48047 tokens, and both docs are now under warn
rather than over. `smoke-url-enrichment.sh` follows the content to the ref and
additionally asserts the phase doc still POINTS at it: a JIT reference nothing
loads is worse than the inline copy it replaced.

### The always-on description surface is budgeted

Progressive disclosure defers reference BODIES, but a skill or command
`description` sits in the host's listing for the whole session whether or not the
skill is ever invoked. That is a second fixed load, it was LARGER than the
budgeted one (76918 bytes across 236 descriptions), and nothing capped it.
`smoke-context-budget.sh` now gates the total and the per-description average
(the total can stay under budget while every description bloats), reports the
whole pre-task cost as one number, and `test/context-budget-gate.test.mjs` pins
all three ceilings as literals.

### No prose block loads twice

`smoke-context-duplication.sh` hashes normalised prose blocks across the files
that can co-load in one run. 12.7.0 removed three sections the orchestrator had
inlined from `multi-agent-refs/` - one already stale, naming a path the code no
longer used - found by hand with nothing to prevent a recurrence.

Scope mattered more than the algorithm. A first draft scanned the command and
skill trees too and reported 10+ duplicates, every one legitimate: the
`commands/multi-agent/X` vs `skills/shared/core/multi-agent-X` pairs are the
cross-CLI parity contract, which `cross-cli-contract.md` REQUIRES byte-identical,
and the mode commands repeat prose but only one loads per run. A gate that fires
on deliberate design trains people to ignore it. Narrowed to the ref tree plus the
orchestrator, it found one real case: three pickers each restating the Language
matrix that `rules.md` already carries on every run - and the copies had already
drifted, two saying "Commit/PR/Jira/Wiki" and one "Commit/PR/Jira". Replaced with
a one-line pointer, 678 bytes reclaimed.

### agent-guard stopped blocking safe pushes

The force-push detector ended in `-\S*f\S*`, matching any flag containing an `f`:

```
git pull --ff-only && git push origin main    -> BLOCKED
git push --follow-tags origin main             -> BLOCKED
```

Neither rewrites history, and `--follow-tags` is the normal way to push a release
tag with its commit, so the guard blocked a routine release step. False positives
are not free: people learn to route around the hook, which loses more safety than
the guard buys. The short-flag arm is now `-[A-Za-z]*f[A-Za-z]*` (a single dash
followed only by letters, so `-f`/`-fq` still match and no `--long-flag` can), and
force detection is scoped to the `git push` segment so a neighbouring command's
`-f` no longer implicates it (`rm -f stale.log && git push origin main`).

Fail-closed behaviour is unchanged and now asserted: an untokenizable command, and
a bare force-push whose target branch cannot be determined, still block.
`test/agent-guard.test.mjs` covers 30 cases across both directions.

### Also

- Trees an older installer created and no current one manages are pruned on
  install (`pruneAbandonedTrees`). `~/.claude/eval/` held 31 files that no
  installer wrote and no uninstall removed - wipe-before-copy only protects trees
  still being written, so an abandoned one persists forever.
- shellcheck in CI scans `git ls-files '*.sh'` instead of `find pipeline`, so a
  shell script added outside `pipeline/` is no longer silently unchecked.

## [12.8.0] - 2026-07-26

12.7.0 fixed nine gates that reported success without checking anything. This
release is the level above that: gates that check correctly and never run, and a
shipped surface that could not work where it was shipped to.

### 117 maintainer smokes stopped shipping to users

`pipeline/scripts/` was copied wholesale into `~/.claude/scripts/`, so every
repository CI gate landed on every user's machine. Measured from a real install:
of 117 installed smoke scripts, **100 failed** and 17 passed only by accident of
not needing the repo. They resolve the repo root as `dirname($0)/../..`, which in
an install layout is `$HOME`, and then read `package.json` / `install.js` /
`node_modules`. What a user saw:

```
$ bash ~/.claude/scripts/smoke-install-layout.sh
FAIL: install.js missing
```

A green repo gate, run in the wrong place, indistinguishable from a broken
installation. Worse, `/multi-agent:update` actively instructed users to run
`smoke-cross-cli-behavior.sh`, which reported "3 failed" for the same reason.

The default for `smoke-*.sh` is now EXCLUDE, in both the install and the tarball.
A smoke ships only when a command actually invokes it - `CONSUMER_SMOKES` in
`install/_dev-only-files.mjs`, currently the two that `/multi-agent:update` runs.
Both now resolve paths through the new `pipeline/scripts/_smoke-root.sh`, which
handles the repo and install layouts, so `smoke-cross-cli-behavior.sh` reports
20/20 from an install instead of 17/20.

Also withheld: `run-smokes.mjs`, `eval-*.mjs`, `pipeline/eval/**`, `scorecard.mjs`,
the linters, `validate-schemas.mjs`, and the fixture corpora - all of them need
devDependencies or the repo tree. Install drops from 201 files to 73; the tarball
from 977 to 753.

`smoke-consumer-smoke-surface.sh` holds four invariants: the allowlist equals what
commands invoke (drift either way fails), every consumer smoke uses the shared
resolver, no maintainer smoke survives the install filter, and none survives into
the tarball. `smoke-pack-contents.sh` now evaluates `files[]` the way npm does
(last matching pattern wins, so a broad negation may be followed by a narrower
re-inclusion - verified against npm directly) and reports an inert negation that
guards nothing. `smoke-install-leak-gate.sh` step 4 previously asserted the
OPPOSITE contract, naming three "essential" smokes that had to install; it now
derives the expected set from `CONSUMER_SMOKES`.

Fixed along the way: both installers computed the excluded-file count by summing
`countFiles()` over the exclusion array, which returns 0 for every non-literal
entry, so the count would have under-reported by 100+ files.

### Four gates that were tested, green, and never ran

Every gate in this repo checks its own behaviour. Nothing checked that a gate is
_reachable_. Four were not - each with a passing unit test and a passing smoke,
and no reference from `pipeline/commands/`, `multi-agent-refs/`, `agents/`,
`skills/` or `install/`:

- **`test-integrity-gate.mjs`** - the anti-reward-hacking control for a suite made
  green by deleting tests. Now Phase 4 Step 1.76, emitting blocking findings that
  merge into the reviewer findings at Step 3.0 (before the no-findings
  short-circuit, which would otherwise skip triage entirely on a diff whose only
  finding is a deleted test). No opt-out: a run that can switch off its own
  anti-reward-hacking control cannot be trusted to report a pass.
- **`review-scope.mjs`** - the reviewer-count cost gate. Now Phase 4 Step 1.77,
  behind `prefs.global.reviewScopeGate` (default true). Every diff had been paying
  for the full reviewer set.
- **`audit-log.sh`** - the PAT-lookup audit trail. `.gitignore` carried defensive
  globs for it and `/multi-agent:prune-logs` documented managing it, but
  `credential-store.sh` never called it, so the trail was always empty. Now
  written on every `get`, on both the success and the miss path, through the
  Python delegate and the raw-shell path. Since the trail now actually grows,
  `audit-log.sh` self-rotates past `AUDIT_ROTATE_AT_BYTES` (1 MB) rather than
  depending on a launchd/cron install nothing ever told a user to set up.
- **`write-state.mjs`** - the atomic `agent-state.json` writer with an advisory
  lock, written for exactly the multi-repo race the phase docs create by sharing
  one state file across worktrees. `operations.md` now documents it as the
  required mechanism, with the exit codes a caller must handle, and
  `phase-0-init.md` points at it where the shared file is introduced.

Phase 4 Step 1.75 now scores the diff **once without `--top`**: both new gates
need every scored file (a shrinking test file ranked 20th; whether any file is
high-stakes), and the top-5 prompt hint is derived from that report instead of a
second git walk.

`smoke-gate-wiring.sh` sweeps every runtime script for a reference from the
instruction surface, with maintainer tooling listed explicitly and by reason
rather than being the silent default for anything unreferenced. It also pins the
four wirings individually, and asserts the test-integrity gate is fed the full
report rather than the truncated hint. It found two more scripts on the first run
(`review-watch.sh`, `audit-log-rotate.sh`), both correctly user-launched.

### Removed: the v9.1.0 legacy-v2 analysis escape hatch

Triple-dead and still documented in three files. Its own text said "escape hatch
removed in v9.2.0" - this is 12.8.0. The `prefs.global.legacyV2AnalysisAllowed` it
depended on was never added to `prefs.schema.json`, and `global` is
`additionalProperties: false`, so a user who configured it as documented produced
a preferences file that fails validation. `template_version < v3` now simply
aborts. The reclaimed budget paid for the two new phase-4 steps, so the fixed
per-run context ceiling did not move.

### Gate honesty

- **The context ceiling can no longer be bypassed.** It was
  `${CONTEXT_BUDGET_CEILING:-60000}` - the only env-overridable threshold in the
  suite, so `CONTEXT_BUDGET_CEILING=999999` passed while measuring nothing. It is
  a literal now, pinned by `test/context-budget-gate.test.mjs` (the companion to
  `test/coverage-gate.test.mjs`, which already protects the coverage floors from
  the same move). Headroom was 3.5% when this was written - precisely when raising
  the number looks attractive. The test also prints current headroom so it shrinks
  visibly instead of silently.
- **The coverage claim names its denominator.** "coverage floors held" reads as a
  repo-wide figure; c8 instruments JavaScript, and this repo carries ~30k lines of
  shell and Python that no coverage number covers at all. The metric is now
  "coverage floors held (JavaScript only)" and states the excluded size, matching
  what the scorecard's UNMEASURED section already does for whole categories.

### Also

- `smoke-consumer-smoke-surface.sh` and `smoke-gate-wiring.sh` added to `ci-lite`;
  the consumer-surface gate also runs in `release`, since a publish is the only
  moment tarball contents become permanent.
- `test/dev-only-files.test.mjs` (20 tests) covers the exclusion predicate,
  including that a hypothetical new smoke is withheld by default and that runtime
  scripts the phases invoke are not.

## [12.7.0] - 2026-07-26

A refactor pass whose theme turned out to be one recurring defect: gates that
reported success without checking anything. Nine of them, plus a data-loss bug found
while fixing them.

### Fixed

- **The GitHub Actions security audit had never run anywhere.** `smoke-workflow-audit.sh`
  reported "0 passed, 0 failed, 2 skipped" on the workstation and on the runner, and
  `ci-lite.yml` justified not installing zizmor and actionlint by saying to run it
  locally "where the tools exist" - where they were equally absent. Run for the first
  time it found nine issues: a high-severity cache-poisoning path restoring a
  lockfile-keyed dependency cache into the job that signs and publishes the tarball,
  four checkouts persisting their credential, four jobs on the default token scope.
  All nine fixed across all three repos. The smoke is strict by default now; a
  missing linter fails, and the local escape hatch is ignored when `CI` is set.
- **A suite that asserted nothing reported success.** `run-smokes` only read exit
  codes, and three suites were exiting 0 having checked nothing - including the gate
  for the no-MCP-outside-analysis rule, which printed "no run to check" on every
  clean clone and every CI runner. It self-tests against eight fixtures now. The
  runner counts assertions and fails a suite that made none; the four output shapes
  it recognises were surveyed across all suites rather than assumed.
- **`smoke-plugin-validate.sh` ran zero checks here** while appearing as a green CI
  step. Removed; the real check lives in multi-agent-plugins, which gained its own CI.
- **The drift check read a mirror and called it the authority.** It resolved the
  upstream version from the installed plugin cache, only as fresh as the last
  marketplace update, so it reported "up to date" for a derivation four releases
  behind. Resolution is local clone, then repo API, then cache; a cache-only answer
  reports "unverified" rather than passing. `check-derived-drift.mjs` makes the order
  testable - seven tests, including a clone whose two manifests disagree.
- **`write-state.mjs` lost a concurrent write.** The lock was created empty with its
  PID written on the next line, so a writer arriving in that window read an
  unparseable PID, called the lock stale, and deleted a live one. Both writers then
  did their own read-modify-write and one update vanished. Reproduced three times in
  fifteen runs under load, invisible on an idle machine, which is why the smoke read
  as flaky. The lock is created atomically with its PID via `link()`, an unreadable
  PID no longer counts as stale, and the smoke went 10 checks to 12 with the race
  pinned directly.
- **Coverage was measured against the wrong denominator.** `.c8rc.json` lacked `all`,
  reporting 83% against a real 33% over its own include set. Floors are 72/68/85.
- **Two HIGH advisories** pinned by the lockfile, closed.
- **One skill routed into two stack plugins**: the backend pattern carried a bare
  `architecture` alternative that also matched `android-architecture` and
  `swift-architecture`, so a Python/Node plugin shipped Compose and SwiftUI guidance.
- **`engines.node` claimed `>=20.0.0`** while the code uses `import.meta.dirname`,
  which arrived in 20.11. A user on 20.0 through 20.10 would have broken.
- **The orchestrator skill named a log path the code had stopped using**, in one of
  three sections it had duplicated from loadable references while citing them zero
  times.

### Added

- **`npm run scorecard`** gates the measurable half of a review score against locked
  thresholds and names the four categories no script can score instead of giving them
  a number. Nine measured metrics: coverage floors, zero high or critical advisories,
  the fixed context budget, the workflow audit, the punctuation rule, a routing clause
  on every skill description, licence and changelog presence, the zero-assertion check
  still wired, derived skills current with upstream. Its own first version trusted an
  exit code that meant two different things and reported an unconfigured machine as
  passing.
- **`smoke-context-budget.sh`** pins the bytes every run pays before it starts.
- **`smoke-own-punctuation.sh`** enforces the locked punctuation rule on our own tree,
  in both the literal and the escaped encoding - `prefs.schema.json` carried 50
  escaped em-dashes that the first version of the gate could not see.
- **`check-derived-drift.mjs`**, with `upstreamVersionSource` and `upstreamLocalClone`
  in the prefs schema.
- **`eslint-plugin-n`** and **`publint`**, the latter having sat behind
  `npx --no-install` and never executed.

### Changed

- **Fixed per-run context: 67150 -> 57831 bytes.** Three duplicated sections moved
  out of the orchestrator skill to the references it now cites.
- **A routing clause in all 193 skill descriptions**, 93 of which had none. The
  linter fails on a missing one instead of warning.
- **`prettier` is enforced.** It was configured with nothing running it, so 583 files
  failed the declared style. Scope is code and config; markdown is excluded on
  purpose and the reason is in the workflow.
- **The punctuation rule applied to our own files**: 719 em-dashes across 77 files.
- `--ignore-scripts` on the four CI `npm ci` lines; `pipefail` in 13 lib scripts.
- eslint 10.8, prettier 3.9.6, c8 12.

## [12.6.0] - 2026-07-25

Two threads. The design-check command gains a scenario inventory, a coverage
gate and MCP-currency gating, and the refactor/sync pair learns to research,
audit and ship the companion dev-toolkit MCP server. Alongside that, a defect
sweep found eight gates and features that exited 0 while doing nothing - six
of them guarded by a smoke test whose fixture had the wrong shape, so the suite
stayed green the whole time.

Requires `@mmerterden/dev-toolkit-mcp` >= v2.9.0 for the App Store audit path.

### Fixed

- **Eight gates and features that reported success while doing nothing.** Each
  exited 0 without doing its job, and in six cases the guarding smoke test
  hand-wrote a fixture with the wrong shape, so the suite stayed green.
  `npx @mmerterden/multi-agent-pipeline uninstall` was a silent no-op (the
  `isMainModule` guard compared `import.meta.url` to `argv[1]`, which is
  `index.js` under the bin dispatcher). `cost-budget-check.mjs` probed
  `.worktrees/<id>/phase-tracker.json` while `phase-tracker.sh` writes
  `~/.claude/logs/multi-agent/<id>/tracker-state.json`, so the cost ceiling
  could never fire; it also now prices `tokens_cached`. `classify-plan-safety.mjs`
  required `score >= 50` while its heaviest rule is 35, so no single heavy
  signal could trip the autopilot pause its own contract promises.
  `triage-memory.mjs` and `learnings-ledger.mjs` derived the repo slug from
  `--show-toplevel`, which inside a worktree is the task id, sharding the
  per-repo store one directory per task; they now use `--git-common-dir`.
  `state-2.0.0-to-2.1.0.mjs` emitted keys `agent-state.schema.json` rejects
  under `additionalProperties: false`. `memory-load.sh` read `preferences.json`
  while the installer only writes `multi-agent-preferences.json`, so per-repo
  memory was dead in production. `smoke-cross-cli-behavior.sh` had unquoted
  command substitution (SC2046) that made two gates pass while violations were
  present. The CI leak gate in all three workflows grepped 5 of the 23
  forbidden patterns and was `release.yml`'s only PII gate; all three now call
  `smoke-personal-data.sh --root`, keeping one pattern list.
- **shellcheck moves from `error` to `warning` severity.** `error` returns zero
  findings across all 175 scripts, so the gate could not catch this repo's
  actual defect class - SC2046 is a warning. Noisy codes are excluded with a
  per-code rationale. Four real findings surfaced and are fixed, including two
  unguarded `cd` calls in `smoke-shadow-git.sh`, one preceding a relative
  `rm -rf`.
- **`credential-store.sh` resolves logical keys through
  `prefs.global.keychainMapping`.** `get github` searched the backend for a
  credential literally named "github" and returned empty with exit 1 -
  indistinguishable from "no such credential" - because the entry is named by
  the mapping. Applied in `get`/`set`/`delete`, falling back to the logical key
  when no mapping exists.

### Changed

- **`ios_app_store_audit` catalog grows to 18 rules**, requiring
  `@mmerterden/dev-toolkit-mcp` >= v2.9.0. Adds `sdk-floor` (ITMS-90725, the
  iOS 26 / Xcode 26 build floor in force since 2026-04-28). `embedded-sdk`'s
  missing framework privacy manifest moves from a `5.1.1` WARNING to
  `ITMS-91061` ERROR, an enforced rejection since 2025-02-12, so archives that
  previously passed with a warning now fail. The rule count and the declared
  minimum are updated across all nine files that asserted them.

### Added

- **`/multi-agent:refactor` band E (Step 0c)**: the companion dev-toolkit MCP
  server is now in scope. The step researches current MCP practice (protocol
  revisions and SDK releases, host-client conventions, peer servers, the
  platform tooling it wraps, field practice) and audits the toolkit repo
  against it: syntax, stdout hygiene (stdout carries the JSON-RPC frames),
  advertised tool counts vs reality, `files[]` coverage, dependency freshness.
  Findings land in the merged Step 4 plan as band-E items, applied in that repo
  and shipped by sync. New focus filter: `/multi-agent:refactor dev-toolkit`.
- **`/multi-agent:sync` Step 3d**: ships the dev-toolkit MCP server when it
  moved (dirty tree, unpushed commits, or an untagged version). Seven ship
  gates run before anything leaves the machine, including a `tools/list`
  stdio handshake that must answer with a non-zero tool count, an
  advertised-count match against README and `package.json`, an
  `npm pack --dry-run` check that every runtime `tools/*/` directory is inside
  `files[]`, and a version-contract check against the minimums pipeline skills
  declare. Publish goes to the registry from that repo's `publishConfig`
  through a throwaway `--userconfig` built from the `npm` logical Keychain key.
  Outside autopilot / `release` it asks first; `/multi-agent:sync dev-toolkit`
  runs only this step.
- **`global.devToolkit` preference** (schema + template): `enabled`, `label`,
  `localPath`, `mcpServerName`, `packageName`, `registry`, `repoUrl`. Both
  commands fall back to auto-detecting the repo from the `mcpServers`
  registration when `localPath` is absent, and skip silently when nothing
  resolves. No path is ever hardcoded.

- **`smoke-command-inventory.sh`**: the command count is now DERIVED from
  `pipeline/commands/multi-agent/*/` and the prose must agree with the tree
  (contract header, both sync surfaces, every command listed on all three, and a
  `shared/core` skill counterpart per command). `smoke-generate-issue.sh` and
  `smoke-review-readiness.sh` stopped asserting the literal `41` and now compare
  against the derived count too.
- **`lint-mcp-refs.mjs`**: every `mcp__<server>__<tool>` reference in
  `commands/`, `skills/` and `multi-agent-refs/` must name a known registered
  MCP server, and when the companion toolkit resolves locally the referenced
  `dev-toolkit` tools are checked against its live `tools/list`. Wired into
  `npm test` and `npm run test:quick`.
- **`validate-prefs.mjs`**: validates `preferences-template.json` against
  `prefs.schema.json` (hard failure) and the local preferences file (advisory,
  `--strict-live` to enforce). Dev-only (ajv), excluded from the published
  package so the runtime stays zero-dep.
- `design-check` is registered in the command inventory: contract list +
  category row, both sync inventories, and the Copilot mirror. Inventory is 42
  commands.

### Fixed

- **Every `mcp__dev_toolkit__*` reference is now `mcp__multi-agent-toolkit__*`** (55
  lines across 10 files). A host composes MCP tool names as
  `mcp__<registered-server-name>__<tool>` and the server registers as
  `dev-toolkit`, so the snake_case form named tools that do not exist. The worst
  case was silent: `design-check`'s `allowed-tools` allowlist matched nothing, so
  the skill was denied the tools it needs, and `smoke-compliance-skills.sh`
  asserted the wrong spelling and kept the gate green.
- `prefs.schema.json` accepted neither the template it describes nor a real
  preferences file. Now declared: `global.modelFallback`, the `_*Template`
  documentation blocks, nullable `defaultJiraKey`, `keychainMapping.figma_pat` /
  `figma_user` / `claude_oauth_token` / `claude_oauth_token_fallback` (all four
  resolved by shipped flows), project-level `componentDevWorkflow`, and a
  `defaultReviewers` ceiling that fits real reviewer groups (10 -> 40).
- `global.derivedSkillSources` is now declared in `prefs.schema.json`. It was
  used by refactor Step 0b and shipped in the preferences template, but the
  strict (`additionalProperties: false`) global block rejected it.
- `/multi-agent:sync` Step 3d prefers the toolkit repo's own gate script
  (`npm run gates`) over the inline gate list, so the definition lives in the
  repo being shipped and the two cannot drift apart.

---

## [12.5.0] - 2026-07-24

Repo learning loop: repeated runs on the same repo produce better and cheaper
output over time. Plus a round of worktree hardening.

### Added

- **Freshness gate** for the triage corpus: `triage-memory` stamps each stored
  row with the file's git `file_sha`, and queries annotate `stale=true` when
  the file changed since the lesson was recorded, so dead lessons stop
  resurfacing in later runs.
- **Causal diagnosis** on lessons: `learnings-ledger` rows carry an optional
  `diagnosis` (the verbal root-cause "why", per Reflexion), and Phase 4's
  lesson-memory loop now records it. `brief` renders it as `(why: ...)` so the
  reason, not just the outcome, re-enters Phase 1 on the next run.
- **`learning-curve.mjs`** (+ smoke): a time-bucketed trend over
  `metrics.jsonl` (first-pass clean rate, review cycles, rework per task,
  tokens per task, cache ratio) that shows whether a repo's runs are improving.
- **`prompt-assembly.md`**: stable-prefix prompt-cache guidance, referenced
  from `phases.md`, so lazy-loaded phase docs stay cache-friendly.

### Changed

- Worktree handling hardened: `.worktrees/` is now a first-class member of the
  traversal-prune skip set (`node_modules`, `Pods`, `.build`, `DerivedData`,
  `.next`) across every tree walker (`repo-map`, `repo-cache`,
  `extract-conventions`, `shadow-git`), so no walker descends into a worktree
  checkout. Phase 0 gains an explicit residue-guard + traversal-prune contract;
  Phase 5 heals stale worktree admin state before recreating a worktree.
- `eval-mine-corpus` now reads the corpus from the per-repo memory dir it is
  actually written to (was a path that never received data).
- Phase-doc total token budget recalibrated 50000 -> 51000 for the new
  contracts (prose compressed first; every per-phase max still passes).

### Fixed

- `gc-worktrees.sh` anchors the repo on the main worktree and resolves paths on
  both sides, so orphan detection no longer misfires from inside a worktree.

## [12.4.0] - 2026-07-23

User-defined routines: manage your own recurring, project-specific jobs as
first-class `/multi-agent` commands.

### Added

- **`/multi-agent:save`** turns a recurring job into a reusable
  `/multi-agent:<name>` command. It leads with the work actually executed in
  the current session (distilling repeatable jobs from what was just done),
  then adds named procedures found in `~/.claude/CLAUDE.md`, and offers them in
  a multi-select picker: pick one, pick several to combine into one routine
  (steps concatenated in order), or describe a new one via free text.
- **`/multi-agent:routines`** lists saved routines with what each does, in
  `outputLanguage`. **`/multi-agent:forget`** removes one (guarded: never
  touches a shipped command).
- Backed by `routine-registry.mjs` (add/list/remove/get; name validation,
  collision + shipped-command guards, atomic prefs write). Saved routines are
  `local-only: true` command dirs + a `prefs.global.routines` registry entry:
  preserved across `/multi-agent:update` by the install snapshot/restore,
  rejected from the public repo by the sync backstops, and never counted in the
  command inventory.
- Registered in `/multi-agent:help` (EN + TR "Routines" section with a dynamic
  listing of saved routines).

### Changed

- Command inventory 38 -> 41 (`save`, `routines`, `forget`); contract, both sync
  docs, help EN/TR, and the count smokes updated; 3 Copilot twins added.
- prefs schema `global.routines` + `schemaVersion` 2.4.0; new
  `prefs-2.3.0-to-2.4.0.mjs` migration (idempotent, adds `routines: []`).

## [12.3.0] - 2026-07-23

`/multi-agent:analysis` overhaul: the feature-spec doc is now a development
handoff that both an AI implementer and a human reviewer can act on, bound by
one shared-ID traceability spine, with a deterministic pre-dispatch gate.
Researched against 2025-2026 spec-for-AI best practices. Repo stays generic;
all project specifics live in per-project `figma-config` / prefs.

### Added

- **Figma Dev Mode annotations as authoritative copy.** `evidence.figma[]` gains
  `annotations[]`; new `pipeline/lib/fetch-figma-annotations.sh` (Tier-2, token
  off argv, config-driven `TR:/EN:` parser). The annotation is the copy; the
  visible text layer is a placeholder. Never invent copy (blank beats a guess).
- **Localization ownership model.** `figma-config.localization`
  (`in-repo` | `externally-owned`, `authoringPipeline`, `locales`, `baseLanguage`,
  `keyPattern`). Section 10 renders a per-locale grid (in-repo) or key + status +
  copy-source + base value with per-locale values deferred to the owning system
  (externally-owned); new key = addition, existing = review-gated.
- **Business rules + rule-driven tests (Locked 31, the traceability spine).**
  New Section 4.4 `BR-<slug>-NN` rules -> Given/When/Then acceptance criteria ->
  Section 15.1 unit-test scenarios (happy/boundary/error/empty) with Swift
  Testing (iOS) + JUnit5/MockK/Turbine (Android). One shared-ID vocabulary binds
  rules -> tests -> UI flows -> a11y ids -> tokens -> Figma nodes.
- **Optional UI-test scenarios (Section 15.6)** and **optional VoiceOver/TalkBack
  walkthrough (Section 16.2)** via Phase 0 Step 5a opt-ins (`ui_tests`,
  `a11y_depth`), recorded in front-matter and enforced by the validator.
- **Layout & Scroll (Section 5.4):** auto-layout/padding/gap/sizing/position
  tokens plus explicit scroll container / sticky / content insets / safe area /
  keyboard avoidance (not inferable from a static frame) + Figma MCP capture
  order. **Dark Mode (Section 7.4):** semantic light/dark token pairs, elevation,
  contrast recheck. **Accessibility (16.1):** per-element table + WCAG 2.2 refs.
- **Deterministic pre-dispatch gate:** new `pipeline/scripts/validate-analysis-doc.mjs`
  checks the emitted doc (front-matter completeness, never-omitted sections,
  humanizer punctuation, Full-mode BR traceability, opt-in section presence);
  wired as a BLOCKING Phase 4 gate. Turns prose "dispatch gate" claims into a
  real, model-independent check. `smoke-validate-analysis-doc.sh` (10 cases).

### Changed / Fixed

- Section 11 analytics events cite their triggering story / business rule.
- Platform coverage clarified: the analysis renders exactly the platforms whose
  repos are provided (iOS only -> iOS doc, both -> both).
- Trim: Section 19 Alternatives + 22 Glossary default-drop; Section 18 Rollout
  slimmed to a checklist.
- Fixed pre-existing template bugs: figma evidence schema reconciled with the
  captured fields, locale-set `it`/`zh` mismatch, four undeclared `prefs.projects`
  keys, duplicate Section 13.6 heading, off-by-one Locked-decisions summary, and
  the Lite-mode Locked-31 contradiction (rule-to-test half is Full-mode only).
- Purged all airline/corporate example terms from the analysis surface (neutral
  `UserProfile` domain); personal-data leak gate: 0 leaking.

## [12.2.0] - 2026-07-21

### Added

- **Graylog log-fetch integration** — when a task's ticket/issue carries a transaction id (`trx`/`trxId`/`transaction id`) and/or a conversation id (`conversationId`/`convId`/`X-conversationId`), the pipeline fetches the matching Graylog log messages and injects them as advisory diagnostic context into Phase 1 analysis. Mirrors the Crashlytics analysis-context adapter (advisory only, no Phase-4 gate).
  - New `lib/fetch-graylog.sh` adapter (mirrors the Fortify hosted-service shape): host from `prefs.global.hosts.graylog` (+ `GRAYLOG_HOST_OVERRIDE`), token via `prefs.global.keychainMapping.graylog` → `${USER}_Graylog_Access_Token` through the credential-store resolver. Graylog PAT auth is HTTP Basic `<token>:token` delivered only via a `curl -K` process-substitution config (never on argv). Universal/relative search by full-text OR of the ids, range + limit configurable via env.
  - **Non-blocking by design:** any network/VPN failure degrades to an empty normalized result and exit 0 — a log fetch never blocks a run. Exit codes: 0 ok/degraded, 2 missing-token, 3 genuine auth rejection, 4 usage, 6 host-not-configured.
  - Config surface: `graylog` added to `keychainMapping` + `hosts` in `schemas/prefs.schema.json` and `preferences-template.json`; keychain doc row (non-critical service). Extraction branch added to `lib/context-link-extractor.sh`. Phase-0 deep-fetch step (`state.graylogContext`) + Phase-1 dispatch row + external-context-injection dispatch row. `multi-agent:setup` prompts for the Graylog host (like the Jira host) and discovers the token key. Offline smoke coverage in `scripts/smoke-fetchers-offline.sh`.

## [12.1.1] - 2026-07-21

### Changed

- **Channel outputs no longer carry decorative/emotive emoji or smileys.** Jira/issue comments, Confluence & Wiki pages, and PR bodies are plain technical prose. Added an explicit no-emoji hard-rule to each channel template (`multi-agent-refs/channels/{jira,issue-comment,confluence,wiki}.md`) and an emoji-stripping pattern to the humanizer (`shared/external/humanizer`). Functional status/severity marks a fixed template defines (`✅/⏳` phase ticks, `🔴/🟡` severity labels) are unaffected.

---

## [12.1.0] - 2026-07-21

### Security

- **`agent-guard.sh` is now wired by the default installer** (was opt-in via the setup template). A plain `install` now OS-enforces the two load-bearing git gates on every `Bash` tool call: no AI/assistant attribution in commit messages, and no force-push to a protected branch (`main`/`master`/`develop`).
- **Force-push protection now fails CLOSED.** A detected force-push that can't be tokenized, or a bare force-push while the current branch can't be confirmed non-protected, is blocked rather than allowed. (The general guard stays fail-open; only the data-loss path is fail-closed.)
- **Multi-repo clone hardening.** `cmd_prepare` disables git's `ext::`/`fd::` remote helpers (`protocol.ext.allow=never`, `protocol.fd.allow=never`) and ends options with `--`, closing an arbitrary-command-execution / option-injection vector on repo URLs sourced from `.gitmodules` suggestions. Local/file/https/ssh clones are unaffected.

### Changed

- **Node floor raised to 20** (`.nvmrc`, `engines.node` → `>=20.0.0`). Node 18 was EOL and untested by CI; the matrix already covers 20/22.

### Refactored

- **Token-cost pricing is now a single source.** The per-Mtok cost formula, previously copy-pasted across ~6 bash/mjs scripts, lives in `cost-lib.sh` (bash) + `_cost.mjs` (Node), both reading the shared `cost-table.json`. Zero runtime dependencies preserved.

### Added

- **`smoke-source-parity.sh`** — guards feature-set drift between the two source trees (`commands/multi-agent/<name>` vs `skills/shared/core/multi-agent-<name>`); fails if a feature exists in one tree but not the other.

### Docs

- Refreshed post-v12 doc drift: `SECURITY.md` + `ROADMAP.md` support/version markers → 12.x; `docs/features.md` smoke-suite count `10` → `100+`; ADR index now lists 0008 and 0008 carries a v10.7.0 amendment (the `_adapters.mjs` module was removed); `CONTRIBUTING.md` coverage claim clarified (local-only) and the stale phase-docs path corrected to `pipeline/multi-agent-refs/phases/`.

---

## [12.0.0] - 2026-07-20

Command rename (breaking), a full-cleanup uninstall mode, outputLanguage-aware
picker descriptions, worktree residue cleanup, and cleanup-command hardening.

### Breaking

- **`/multi-agent:delete` renamed to `/multi-agent:uninstall`.** The old name is
  gone (no alias). The Copilot twin is now `multi-agent-uninstall`. Command
  count stays 38; the canonical inventory, sync list, help, and cross-cli
  contract were updated. Per the versioning policy a renamed command forces a
  major bump.

### Added

- **`uninstall --all-data` full-cleanup mode.** Standard uninstall still keeps
  settings + logs; `--all-data` additionally removes
  `multi-agent-preferences.json` and the entire `~/.claude/logs/multi-agent/`
  tree (task logs, state, metrics, audit). Tokens, `CLAUDE.md`, and the
  user-owned `rules/` are preserved in both modes. The slash command asks a
  scope picker (Standard vs Full cleanup) before the double confirmation.
- **outputLanguage-aware slash-command descriptions.** Every command ships an
  English `description` plus a `description-tr`; when `outputLanguage=tr`, the
  installer and the `/multi-agent:language` toggle swap the installed
  `~/.claude` descriptions to Turkish (reversible via a `description-en`
  sidecar). Repo and npm files stay English; `/multi-agent:sync` normalizes and
  gates the round trip so localized text can never leak back into the repo.
  New `localize-commands.mjs` + `smoke-description-tr.sh`.
- **`/multi-agent:garbage-collect` worktree phase.** New `gc-worktrees.sh`
  (dry-run by default) prunes stale worktree admin entries, removes orphan
  `.worktrees/*` dirs no longer registered as worktrees, unstages gitlink
  ("Subproject commit") residue from a pre-guard `git add -A`, and ensures the
  `.worktrees/` `info/exclude` guard. Registered worktrees are never touched.
- **Worktree residue guard on creation.** Phase 0 (single- and multi-repo) and
  the Copilot core skill now append `.worktrees/` to the clone-local
  `.git/info/exclude` before every `worktree add`, so a blanket `git add -A`
  can no longer record `.worktrees/{id}` gitlinks into shared branches.
- **update-check reaches npx-only installs.** The installer stamps
  `~/.claude/.pipeline-version` (and the Copilot equivalent); `update-check.sh`
  falls back to it when no repo clone is present, so users who never cloned the
  repo still see the "update available" prompt. Uninstall removes the marker.

### Changed / hardened

- **`/multi-agent:purge` now runs a real backend** (`purge.sh`): dry-run by
  default, every `rm` target resolved strictly inside `<repo>/.worktrees/`,
  refuses `/`, `$HOME`, and the project root; main worktree and
  main/master/develop always preserved. `--delete-remote` gates remote-branch
  deletion behind `--yes`.
- **`prune-logs.sh` / `gc-tmp.sh` hardened**: safe id/path validation, the
  audit trail + metrics corpus never removed, containment guards on deletion
  roots. New/expanded smokes: `smoke-purge.sh`, plus prune-logs and gc-tmp
  coverage.

## [11.5.0] - 2026-07-16

Full-project refactor round: 20 verified defect fixes (install lifecycle, shell
libs, fetchers, gate scripts), an install-time performance overhaul, and new
supply-chain / validation gates. Driven by a 4-band analysis (best-practices
research, bug hunt, category scoring, upstream-drift check).

### Fixed - data loss and destructive paths

- **Install no longer wipes user agent files.** `installAgents` wiped the whole
  `~/.claude/agents` / `~/.copilot/agents` dir on every install/update, deleting
  user-authored subagents. It now removes only pipeline-owned files (list derived
  from `pipeline/agents/` so it cannot go stale).
- **Plain install after `--link` no longer destroys the dev checkout.** Every
  wipe/copy target now goes through a symlink guard (`ensureRealDir`); a `--link`
  re-install just re-links instead of wiping through the symlink into the repo.
- **Unguarded `rm -rf` paths locked down.** `shadow-git.sh` validates task ids
  (`prune ..` refused); `multi-repo-pipeline.sh teardown` refuses `/`, `$HOME`,
  the project root, and their ancestors after path resolution.
- **`update-issue-progress.sh` no longer eats issue bodies.** The Progress-table
  rewrite is now bounded at the legend comment, the next heading, or EOF; bodies
  without the legend comment keep all trailing sections.
- **Copilot instructions merge is now marker-bounded.** An explicit end marker
  preserves user content appended after the pipeline section across install,
  update, and uninstall (previously sliced to EOF).
- **Uninstall actually removes what install creates.** Agent files (dir-vs-file
  bug meant none were ever removed), `multi-agent-refs/`, `schemas/`, `lib/`,
  and the compliance core skills are now covered on both targets; token and
  preferences guarantees unchanged.

### Fixed - security

- **Pre-commit secret-scan hook fired never.** The PreToolUse matcher used
  permission-rule syntax that can never match the tool name; matcher is now
  `Bash` with a fast stdin filter in `pre-commit-check.sh`, and existing installs
  migrate the dead entry in place.
- **Secrets off argv.** OAuth refresh grants, bearer/PAT headers, Basic auth,
  and keychain writes across nine call sites (fetchers, repo-cache, issue-fetcher,
  figma-mcp-refresh, credential-store, keychain-save) moved to `curl -K <(...)`
  configs and stdin so tokens never appear in `ps`.
- **Crashlytics service-account key hygiene.** The decoded Firebase SA JSON now
  lives in a `mktemp` file created under `umask 077` with trap cleanup instead of
  a predictable world-readable `/tmp` name.
- **Telemetry honesty.** The "anonymous" install ping no longer sends
  `githubUser`, `gitEmail`, or `hostname`.

### Fixed - correctness

- **`fetch-confluence.sh` worked never.** An env-prefix-on-assignment bug meant
  the URL parser always saw empty input; every invocation failed. Parsing now
  goes through argv and the fetcher honors its documented exit codes.
- **`diff-risk-score.mjs` default invocation** resolved the diff base after
  using it (`null...HEAD` fatal, gate fail-open); base now resolves first.
- **`evidence-gate.mjs`** no longer flags passing logs containing "0 tests
  failed" as failures.
- **`grep -c || echo 0` double-output idiom** fixed at ~20 sites via a shared
  `count-lib.sh` helper (bogus `* PR:` bullets in Jira/Confluence bodies, silently
  zeroed convention counters in `extract-conventions.sh`).
- **False-success family.** `multi-repo-pipeline.sh` no longer prints
  "committed/pushed" on failure; `repo-cache.sh` keeps the previous cache when a
  refresh fails instead of serving an empty file for the TTL; `review-watch.sh
--watch` survives transient gh failures and its cursor can no longer move
  backwards.
- **`issue-fetcher.sh`** classifies bare `#316` / `316` correctly (repo picker
  path instead of a malformed `//issues/` URL).
- **`phase-tracker.sh`** read-modify-write is now lock-protected; parallel
  Phase 4 reviewers no longer lose token/cost deltas.
- **Shadow-git**: forced excludes now land in `info/exclude` (they were dead
  code, ballooning snapshots with DerivedData), and `restore --files` removes
  files created after the snapshot instead of keeping half the change.
- **macOS bash 3.2 portability**: `${URL,,}` in `fetch-swagger.sh`, `date -r
<file>` in `audit-log-rotate.sh` (which also rotates atomically now).
- **Glob translation** in `triage-memory.mjs` / `test-gap-scan.mjs`: `**` no
  longer breaks after the `*` pass (nested-path filters match again).
- **`migrate-prefs.mjs`** errors on unknown flags (a `--dry-rnu` typo used to
  perform a real write) and reports the correct target version.
- Minor hardening: `write-state.mjs` lock release on early exits,
  `post-pr-review.sh` / `plan-todos.sh` null-safe jq, `account-resolver.sh`
  JSON escaping, `scan-skills.sh --json` spurious empty finding removed.

### Performance

- **Install: ~94s -> ~6s.** `scan-skills.sh` rewritten from per-file grep loops
  to combined single-pass scans (identical findings output, verified by diff);
  `countFiles` no longer shells out to `find | wc -l`.

### Added - gates and tooling

- **OIDC trusted publishing.** `release.yml` publishes tokenless (no more
  `NPM_TOKEN`); one-time npmjs.com trusted-publisher setup required before the
  next release (see workflow header). Release gates now also run the layout
  smoke, the install leak audit, and the new pack-contents smoke.
- **New smokes**: `smoke-plugin-validate.sh` (`claude plugin validate --strict`),
  `smoke-workflow-audit.sh` (zizmor + actionlint, offline, skip-if-missing),
  `smoke-pack-contents.sh` (packed-payload deny-list derived from package.json
  negations at runtime + file-count band), `smoke-fetchers-offline.sh`
  (44 offline assertions covering every fetcher's parse/credential/network
  stages - the class of hole that let fetch-confluence ship dead).
- **`check-md-links.mjs` now covers `pipeline/**`** (700+ skill/command files,
  `$HOME/.claude/multi-agent-refs/` links validated against the repo source).
- **`lint-skills.mjs` spec-conformance warnings** (agent-skills name pattern,
  routing-clause descriptions, body size budget).
- **Coverage floor**: c8 `--check-coverage` at the measured baseline (lines 80).
- **DevEx**: `test:quick` script, `index.js --version`, unknown commands list
  valid ones, smoke-runner env knobs documented in CONTRIBUTING, `cache: npm` +
  strict `npm ci` in all workflows.
- **Real-module tests**: `test/index.test.mjs` suites now import the actual
  install helpers instead of inlined copies (the dead hook shipped because the
  copy-based tests could not fail); new temp-HOME integration tests for the full
  install -> update -> uninstall lifecycle and the JS gate scripts. Unit tests
  145 -> 197.

### Docs

- ROADMAP moved to the 11.x line, SECURITY.md supported-versions table updated
  (11.x active), README Scorecard badge, dead `files[]` negations removed,
  internal working notes moved to `docs/internal/`.

## [11.4.0] - 2026-07-10

Review PR-picker, two readiness-review commands, and durable local-only wrappers.

- **`/multi-agent:review` no-URL PR picker.** With no argument (interactive), review
  now lists open GitHub + Bitbucket PRs in one labeled list and multi-selects which
  to review (per-PR inline comments + approve/needs-work), instead of silently
  defaulting to the local branch diff. Autopilot / no open PRs falls back to the
  local diff; explicit URL/`#N`/branch still work. The Copilot twin was brought to
  parity (input-aware + PR posting).
- **New `/multi-agent:review-jira` + `/multi-agent:review-issue`.** Grade whether a
  Jira issue / GitHub issue is ready for the pipeline (scope, acceptance criteria,
  repro, design reference, API contract, stack signal, dependencies) by reusing the
  Phase 0 maturity engine (`issue-fetcher.sh`) plus a readiness rubric, then post
  the gaps back as a comment on the item (confirmed; autopilot auto-posts). Read-only
  on code: no worktree, no branch, no creation. Command count 36 -> 38.
- **Corporate alias wrappers survive updates.** `install/claude.mjs` now preserves
  command dirs whose SKILL.md is `local-only: true` across the namespace wipe, so
  personal `multi-agent:<name>` aliases that delegate to a private marketplace plugin
  are no longer destroyed on every install/update (they were, before). Covered by a
  new `smoke-wrapper-preservation.sh`. (The wrappers themselves are local-only and
  never ship in this package.)

## [11.3.2] - 2026-07-10

Command rename + website refresh.

- **Renamed `/multi-agent:generate` -> `/multi-agent:create-jira`** (Copilot skill
  `multi-agent-generate` -> `multi-agent-create-jira`). The command is the
  consolidated Jira-issue creator that asks the type (Task / Bug / Story); the
  new name says what it does. Command dir, Copilot skill, dispatcher rows, help
  (EN + TR), the command inventory in the cross-CLI contract + both sync copies,
  the skill index + manifest, and the contract smoke were all updated; command
  count stays 36. The internal ref (`generate-issue.md`) keeps its filename.
- **Website:** corrected the `multi-agent-plugins` skill count (205 -> 227, the
  real sum across the five toolkits) and bumped the pipeline card to this version.
- Also published v11.3.1 to GitHub Packages (both registries were on npmjs only).

## [11.3.1] - 2026-07-10

Self-audit patch (found by running `/multi-agent:refactor` on the pipeline itself): a data-loss fix, a latent gate regression, supply-chain hardening, and a few correctness fixes.

- **Fix (data-loss): uninstall no longer deletes `~/.claude/rules/`.** Install
  treats `rules/` as user-owned (write-if-missing, never overwritten), but the
  uninstaller recursively removed the whole tree, destroying personal rules
  (including the git-attribution rule). Uninstall now preserves `rules/`, and
  lists it in the PRESERVED summary.
- **Fix (gate regression): `lint-skills` scoped to `pipeline/skills`.** The
  v11.3.0 command-layout migration made command files match `find pipeline -name
SKILL.md`; slash commands have no `name:` frontmatter, so the skill linter
  started erroring on all 37 of them (latent because CI is billing-paused and
  releases were published manually). The linter now only checks actual skills.
- **Fix: `.skills-index.json` is idempotent** - dropped the `generatedAt`
  timestamp so regenerating an unchanged skill set produces no diff.
- **Fix: uninstall strips the Copilot pipeline block regardless of file size** -
  removed the 50 KB fallback cap that orphaned the block in large
  `copilot-instructions.md` files.
- **Fix: install "dev-only excluded" count** is now the real file count (the
  `fixtures/` directory was under-counted as one entry).
- **Security (supply-chain):** `release.yml` publishes with `npm publish
--provenance` (`id-token: write`); all GitHub Actions pinned to commit SHAs;
  added `.github/dependabot.yml` (actions + npm dev deps); `credential-store.sh`
  escapes single quotes in the Windows PowerShell paths.
- **New: `eval-mine-corpus.mjs`** turns recorded triage decisions
  (`triage-corpus.jsonl`) into review-gated candidate triage-eval fixtures.
- **Tests:** added node unit tests for the Phase 4 diff-risk gates
  (`test/phase4-gates.test.mjs`) so they run in the release lane, not only the
  bash smoke; `lint-skills` now warns (non-fatal) on terse skill descriptions.

## [11.3.0] - 2026-07-10

Single-source skill management, an upgraded `refactor` command, and two new Phase 4 diff-risk gates.

- **Component/Figma work is plugin-only.** The pipeline no longer bundles the
  `figma-ios` / `figma-android` / `figma-common` skill trees. Phase 3 dispatches
  component and Figma-to-code work to the per-stack marketplace plugins
  (`ai-ios-toolkit` / `ai-android-toolkit`) via the Skill
  tool, so component skills live in one place. The 3-tier Figma design-access
  fallback still governs the analysis phase.
- **Command layout migrated to `<name>/SKILL.md`.** Each subcommand is now its own
  directory with a `SKILL.md`, and the dispatcher is `commands/multi-agent/SKILL.md`.
  This restores subcommand registration in the `/` picker on current Claude Code
  (the older flat `commands/multi-agent/<name>.md` files stopped registering). The
  slash surface (`/multi-agent:<name>`) is unchanged.
- **Refs are non-invocable.** The 46 reference docs + internal pickers moved out of
  `commands/` into `multi-agent-refs/`, so Claude Code no longer registers them as
  `/multi-agent:refs:*` slash commands. Commands read them by absolute path.
- **`refactor` upgraded.** `/multi-agent:refactor` now (A) researches field
  best-practices from GitHub + X/Twitter + Reddit + web and produces an adapted
  plan fitted to the repo's stack, (B) runs an explicit bug hunt (real defects with
  file:line + failure scenario, verified before reporting), and (C) checks upstream
  drift of derived skills, configured via `global.derivedSkillSources` in local
  preferences (never synced, so it can reference private sources). All four bands
  (best-practice / bug / improvement / drift) merge into one prioritized plan.
- **New: Phase 4 diff-risk gates.** `test-integrity-gate.mjs` is an
  anti-reward-hacking gate that turns removed/weakened tests into a blocking review
  finding, and `review-scope.mjs` scales the reviewer count to diff complexity
  (trivial diffs get a single reviewer, high-stakes or large churn gets the full
  panel). Both are deterministic pure functions of the diff-risk JSON, covered by
  `smoke-phase4-gates.sh`.
- **Cleanup + hardening.** Removed stale flat/`refs/` paths from the Copilot core
  skills and `copilot-instructions`, pruned the orphaned `figma-to-component`
  install dir, broadened the personal-data leak detector to catch private
  marketplace/plugin names, and refreshed the docs (README, features, architecture,
  Figma pipeline) to the plugin-dispatch model.

## [11.2.0] - 2026-07-07

Skill mining + an install-safety fix.

- **Fix (data-loss): `install.js` no longer clobbers user-owned rules.** `rules/`
  is authored/evolved locally and is deliberately never synced back to the repo
  (privacy). The installer used to `wipe + copy` it on every update, which
  reverted local edits (including the git attribution rule). Rules now install
  write-if-missing: new baseline rules are added, existing local rules are
  preserved untouched. New `copyDir({ skipExisting })` option backs this.
- **Two skills mined from the corporate iOS toolkit and genericized into
  `ai-common-toolkit` (v0.1.2):**
  - `skill-creator` — the house rules for authoring skills (description-first
    discovery, lean SKILL.md as an index, progressive disclosure, reference vs
    workflow vs tool layers, no-prefix naming, grow-from-failure), with a
    template, pre-ship checklist, good/bad examples, and a multi-architect audit
    script. All corporate references scrubbed.
  - `backlog` — a deferred-work registry where every deferred job lands with its
    full spec + origin + unblock condition (deferred -> ready -> in-progress ->
    done, never deleted), so deferral never means loss.

## [11.1.0] - 2026-07-07

Harness-hardening pass: four techniques, all additive and opt-in.

- **Guard hooks (`agent-guard.sh`)** — a new PreToolUse Bash gate that turns two
  prompt-level rules into deterministic, OS-enforced blocks: AI/assistant
  attribution in a commit message, and force-push to a protected branch
  (main/master/develop). Fail-open on any internal error, never executes the
  inspected command (decision core is `agent-guard.py`, shlex-tokenized only),
  no network, no secret output. Wired into `install/templates/claude-hooks.json`
  alongside the existing secret scan; `multi-agent:setup` offers to merge it.
  Backed by `smoke-agent-guard.sh` (19 behavioral cases incl. injection safety).
- **Config-hygiene gate (`scan-agent-config.sh`)** — a dependency-free, read-only
  audit of the shipped config surface (hook templates, preferences template,
  agent defs, MCP helper scripts) for hardcoded secrets, permission-bypass flags,
  eval-bearing hook commands, blanket `Bash(*)` allows, and pipe-to-shell /
  unpinned-npx install patterns. Runs in the release VERIFY step; blocks on any
  HIGH finding. Backed by `smoke-config-hygiene.sh` (real surface clean +
  planted-bad detection).
- **Autopilot circuit-breaker** — `refs/features/autopilot-circuit-breaker.md`
  defines the sanctioned autopilot pause: halt and hand back to the user on a
  no-progress stall, an identical repeated failure, a rework storm, cost drift
  past the `costBudget` ceiling, or a merge/rebase conflict. Continuing
  unattended off the happy path is the less safe choice.
- **Three technique skills** added to `ai-common-toolkit`
  (v0.1.1): `council` (multi-voice adversarial decision), `search-first`
  (research-before-coding with an adopt/extend/compose/build matrix), and
  `agent-introspection-debugging` (capture -> diagnose -> contained-recovery ->
  report, with an honesty guard against fake auto-heal claims).

## [11.0.0] - 2026-07-07

Breaking: the two issue creators `generate-task` and `generate-bug` are merged
into a single `generate` command. The command surface shrinks from 37 to 36
commands, so this is a major bump per the versioning policy (a renamed/removed
command is a breaking surface change).

- **New `/multi-agent:generate`** asks the issue type (Task / Bug / Story) at the
  start of every run, then mines the project's recent same-type issues for
  conventions and drafts the issue.
- **Standard template baseline with auto-sizing.** Each type has a fixed section
  skeleton (Task/Story: Detailed Description, Scope, Acceptance Criteria, Test
  Scenarios; Bug: Detailed Description, Steps to Reproduce, Expected/Actual
  Result, Environment). Conditional sections (Design Reference, API Contract /
  Swagger, Screenshots, Notes) render only when their trigger is present - no
  empty placeholder headings, nothing invented.
- **Test Scenarios pulled from Jira convention.** Detects linked Xray/Zephyr test
  issues or a dominant test-scenario heading style and reuses it; falls back to an
  AC-derived skeleton the user edits.
- **Swagger / API Contract section.** When a Swagger/OpenAPI URL or contract is
  given, fetches only the referenced endpoints (method + path + key fields) and
  links the spec. No full-spec crawl; failures degrade to link-only.
- **Removed** `generate-task` and `generate-bug` on both CLIs (Claude Code +
  Copilot) and the plugin skill set. The shared `refs/generate-issue.md` flow is
  now 12 steps with a dedicated type-selection step; the hard approval gate is
  unchanged.

## [10.12.0] - 2026-07-06

Two trust upgrades: every external channel post now shows a plan-mode-style
preview + approval gate before anything is written (autopilot posts directly),
and Phase 0 gains a proactive token expiry pre-flight with silent Figma MCP
renewal via OAuth refresh grant.

### Added

- **Channels Step 6 body preview + approval gate** (dispatch → Step 7,
  summary → Step 8) - interactive runs render
  every selected channel's final body (PR description, Jira comment,
  Confluence page, Wiki, Board move, GitHub issue comment) and ask
  Approve & post / Edit (loop) / Skip channels / Cancel before dispatch.
  Bypassed only by autopilot and `--dry-run`. What is posted is byte-identical
  to the approved preview; regeneration after approval re-runs the gate.
  Phase 7 Step 1.5 (issue comment + progress flags) routes through the same
  gate. Contract: `smoke-channels-approval-gate.sh`.
- **Phase 0 Step 0.7 token expiry pre-flight** - probes every token the run
  will need (jira/github/bitbucket/confluence/figma/figma_mcp) with one cheap
  call each (cached via `serviceStatus`, TTL 300s) and resolves expiry AT INIT
  instead of on the first mid-run 401. Figma MCP is the critical path: silent
  renewal first, then an init-time question (Regenerate now via script / Save
  Flow / Continue degraded). Autopilot never prompts - silent renewal or
  logged degrade. Contract: `smoke-token-preflight.sh`.
- **`lib/figma-mcp-refresh.sh`** - silent Figma MCP (`figu_`) renewal via
  OAuth refresh grant: reads `<key>_Refresh` from the Keychain + client
  credentials from the `.figma-oauth.json` next to
  `prefs.global.tokenScripts.figma_mcp`, saves the new access (and rotated
  refresh) token back. Status lines only - token values never printed.
  Live-verified end-to-end (renewed + mcp.figma.com probe 200).
- **`prefs.global.tokenScripts`** (schema + template) - maps service ids to
  user-owned token generation scripts; personal paths stay in the local
  preferences file, never in synced command files.
- **keychain.md Figma MCP lifecycle section** - refresh-entry convention,
  silent-renewal-first rule, generation-script escalation, init cross-ref.

### Fixed

- Copilot parity catch-ups the 10.11.0 sweep missed: `multi-agent-sync/SKILL.md`
  inventory 35 -> 37 + list, `multi-agent-help/SKILL.md` generator entries
  (EN + TR), `multi-agent-channels/SKILL.md` flow now includes the approval
  gate (steps 6-8). `smoke-generate-issue.sh` now asserts the SKILL-side
  counts too.
- `figma-mcp-refresh.sh` form fields sent via `--data-urlencode` (robust to
  special characters in tokens); re-verified live.

## [10.11.0] - 2026-07-06

Jira issue generators: `/multi-agent:generate-task` and `/multi-agent:generate-bug` create standards-compliant Jira issues by learning the target project's own conventions before drafting, with a hard preview + approval gate before anything is created.

### Added

- **`/multi-agent:generate-task` + `/multi-agent:generate-bug`** - one-shot
  Jira issue creators (no worktree, no commits, no pipeline chaining). Inputs:
  optional free-text description + optional Figma URL; both asked
  interactively when missing.
- **Convention mining** - samples the project's 30 most recent same-type
  issues (JQL) and adopts the team's summary prefix pattern, dominant
  description heading set, top labels/components, and priority norm.
  createmeta discovery surfaces required custom fields (allowedValues become
  picker options) and detects Sprint/Epic/Team fields generically by
  `schema.custom` id.
- **Active-sprint placement** - Agile REST board + `sprint?state=active`
  detection; the user chooses active sprint vs backlog. Sprint assignment
  happens post-create via `POST /rest/agile/1.0/sprint/{id}/issue`
  (field-id-agnostic). No board / no active sprint degrades to backlog with
  an explicit note.
- **Hard approval gate** - a full draft preview (every field + complete
  description) renders before create; Approve / Edit (loop) / Cancel. The
  gate has no bypass: no autopilot variant exists for these commands.
  Genuinely unknown fields (component, epic, priority, labels, assignee,
  sprint, required customs, missing Bug repro/environment) are asked, never
  invented.
- **Figma context (optional)** - the 3-tier chain (MCP -> REST PAT -> user
  screenshot) resolves frame name + node id for a Design Reference section,
  a remote link on the created issue, and an opt-in screenshot attachment.
  Standalone command, so MCP use is allowed (analysis-class); Figma failures
  never block issue creation.
- **Language rule** - issue summary + description follow
  `prefs.global.outputLanguage` (intentional exception to the
  external-payloads-English default; the issue is authored for the user's
  team). Documented in both command files and the shared ref.
- **Shared flow ref** `refs/generate-issue.md` - single 11-step contract
  consumed by both commands via profile blocks (`ISSUE_TYPE`, default
  sections, JQL filter); UTF-8 verbatim POST path (`jq --rawfile` +
  `--data-binary @file`) and humanizer pass reused from the Jira channel
  adapter.
- **Smoke gate** `smoke-generate-issue.sh` - 66 assertions: file/frontmatter
  presence, profile declarations, approval-gate markers, endpoint markers,
  UTF-8 path, section vocabulary, 37-command count consistency across
  dispatcher/contract/sync/help, forbidden-string scan.

### Changed

- Command inventory 35 -> 37 across `cross-cli-contract.md`, `sync.md`,
  dispatcher routing/loading tables, `help.md` (EN + TR), README.

## [10.10.0] - 2026-07-03

Live tracker UX: per-tile cost, a real "currently doing X" line, and tracker continuity across the local-test handover. Shaped by a market sweep of 2026 agent-UX practice (transparency-first live status; per-step cost visibility).

### Added

- **`phase-tracker.sh now <N> "<text>"`** - dedicated live current-action
  line for the active phase (quiet: writes `meta.Now`, never renders, 60-char
  cap). The bordered card shows it as `Now: <text>` under the active tile.
- **`phase-tracker.sh cost <N>|total`** - single pricing implementation
  (cost-table.json rates, cached tokens at the discounted cacheRead rate,
  floored to cents; `-` when unpriceable). The completion narration line,
  the card, and finish's summary all reuse it - no more inline USD math.
- **Per-tile est. USD + cached footer on the bash card.** Tiles render
  `<elapsed> · <tok> tok · ~$<usd>` when the phase has a priced model; the
  footer adds total USD and cached tokens. Render survives a missing cost
  table. Tiles now sort by numeric phase id so continuation sets stay ordered.
- **Progress-line mirror rule** (tracker-contract "Active phase" +
  progress-contract cross-link): every normal-tier `→ verb object` line is
  mirrored to the active phase - `TaskUpdate activeForm` on Claude Code,
  `now` elsewhere - so the tracker always answers "what is it doing right
  now". Throttled: canonical lines only, dedupe, no renders.
- **Completion tile suffix (Claude Code):** on phase completion the tile
  subject gains the spend (`Phase 3: Dev · ~35k tok · ~$0.58`); subject edits
  do not reorder tiles.
- **Tracker continuity across the local-test handover.** Phase 5 and
  `/multi-agent:manual-test` mark the waiting state
  (`now 5 "awaiting local test (user)"`); `/multi-agent:finish` now runs
  load-or-continue instead of an unconditional `init` - prior phase 0-3
  history (elapsed, tokens, USD) survives, Phase 5 is closed with a Result
  meta, the Claude Code TaskList is rebuilt from state, and one line
  summarizes the inherited history (`Continuing <id>: phases 0-3 finished
earlier (12m, 38.4k tok, ~$0.74)`). `add` is idempotent to make this safe.
- **`/multi-agent:resume` rebuilds the phase tiles** from `tracker-state.json`
  (the contract documented it; the command now actually does it).
- **Phase 0 + 7 token forwarding**: the clarifier call and the Phase 7 report
  compose call forward tokens to the tracker, completing all 8 tiles.

### Fixed

- Tracker doc drift: the `tokens` action's 4th `[cached]` arg and the `model`
  action are now documented in the contract and the script usage text.

---

## [10.9.0] - 2026-07-03

### Added

- **Update check at run start (Phase 0 Step 0.6, opt-out via
  `prefs.global.updateCheck`).** Once per `ttlHours` window (default 24h,
  cached, 3s-bounded curl straight to the npm registry - never `npm view`),
  the pipeline compares the installed version against `dist-tags.latest`.
  Newer version found: interactive modes ask ONE question ("Update now?" ->
  yes runs the `/multi-agent:update` flow and the run continues; the update
  takes full effect next session); autopilot logs one line and never asks
  (zero-interaction contract). `autoUpdate: true` skips the question and
  updates before the worktree is created. Offline, ahead-of-registry, and
  failed checks are silent - the step never blocks. New
  `pipeline/scripts/update-check.sh` + `smoke-update-check.sh` (13 assertions).
- **Design fidelity contract (Phase 3, BLOCKING on Figma-referenced tasks).**
  The analysis doc's captured frames are the 1:1 reference for every UI line:
  a Code Connect-mapped component must be used verbatim (no sound-alikes,
  missing modifiers go into `+Modifiers`, never forks), unmapped UI becomes a
  NEW component under the standard architecture, and inter-component spacing
  comes from the design's measured values mapped to tokens - never invented.
  Missing design data halts with a re-run-analysis instruction; Figma MCP
  stays forbidden outside analysis.
- **`docs/engineering.md`** - version-free catalog of the discipline layer
  (bounded loops, evidence gates, token-budgeted phase docs, immutable tests,
  fresh-context handoffs, memory hedges, install hygiene), linked from README.

### Changed

- **Docs drop inline version markers.** `docs/features.md` headers and bullets
  no longer carry `(vX.Y.Z)` tags - the docs describe the current state;
  history lives in this CHANGELOG. Same principle applied to the website copy.
- **Phase-doc token budgets recalibrated** (`token-budget.json`, total
  46500 -> 50000) after the verify-by-test, update-check, immutable-test, and
  design-fidelity contracts landed - Step 3.7 prose was compressed to a
  pointer into `refs/features/verify-by-test.md` before recalibration.

---

## [10.8.0] - 2026-07-02

Three additive loop-quality features, all sourced from the 2026 agentic-loop research sweep (Anthropic long-running-agent harness guidance + adversarial-review findings): empirical verification of blocking findings, an immutable-test contract, and structured phase-boundary handoffs.

### Added

- **Verify-by-test triage (Phase 4 Step 3.7, opt-in via `prefs.global.verifyByTest`).**
  Accepted blocking findings are no longer judgment-final: one verifier agent
  (default Sonnet, capped at `maxFindings`=3) writes a minimal repro test per
  finding and runs ONLY that test. Test fails as predicted -> finding confirmed
  and the repro test is handed to Phase 3 as the rework RED test
  (`state.reviewIterations[-1].verifyByTest.redTests[]`). Test passes under
  `evidence-gate.mjs` -> finding downgraded to `deferred` (never `rejected`).
  Compile error / timeout -> `inconclusive`, judgment verdict stands. The whole
  step is timeout-bounded and never blocks the pipeline. Schema
  `triage-output` v3.2.0 adds the optional per-finding `verification` block;
  `validate-triage.mjs` validates it. New feature doc
  `refs/features/verify-by-test.md` + `smoke-verify-by-test.sh` (20 assertions).
- **Immutable-test rule + `test_lines_removed` diff-risk signal.** New rule in
  `refs/rules.md` and the Phase 3 GREEN step: deleting, renaming, or weakening
  an existing test to reach green is a violation; a test changes only when the
  task changes the spec it encodes, named in the commit body. Deterministic
  backstop: `diff-risk-score.mjs` v1.1.0 emits `test_lines_removed` (w=3.0)
  when a test-classified file removes more lines than it adds; wired into the
  Phase 4 Step 1.75 signal table, `diff-risk.schema.json` v1.1.0, and
  `validate-diff-risk.mjs`. New fixture `diff-risk-test-removal.diff` +
  3 new `smoke-diff-risk.sh` assertions.
- **Structured handoff blocks (fresh-context re-entry discipline).** The
  phase-boundary checkpoint in `refs/phases/operations.md` now appends a
  structured `## Handoff` block (Done / Remaining / Decisions / Open findings /
  Next) to `agent-log.md` at every phase transition - written by the
  orchestrator from state it already holds, no LLM call, ~15 lines. The
  post-`/compact` re-grounding and `resume.md` Step 3 read the latest handoff
  FIRST (state wins on mismatch), falling back to per-phase findings for
  pre-v10.8 logs. Documented in `log-format.md`; guarded by
  `smoke-handoff-contract.sh` (13 assertions).

- **Module review guides in `/multi-agent:review` (Step 2b).** When a changed
  file's module carries its own convention file (`CLAUDE.md`, `*-CLAUDE.md`,
  `AGENTS.md` below repo root), the review discovers it deterministically from
  the diff paths (capped at 5, truncation logged), injects it into every
  reviewer prompt, and scopes each guide to files under its own directory.
  Works with a local checkout or via provider API in PR mode.

### Fixed

- **`validate-triage.mjs` reviewer enum accepts `fable` and `gpt`.** The runtime
  validator still rejected the schema-v3.1.0 reviewer values restored in
  v10.7.4 (`fable` is Reviewer 1 on Claude Code, `gpt` on Copilot CLI), so any
  accepted finding attributed to them failed the 3.2.1 gate. Enum now matches
  `triage-output.schema.json`.

---

## [10.7.4] - 2026-07-02

Deep-consistency sweep: the v10.6.0 Fable restore and the v10.7.0 adapter removal are now reflected on every surface, and the test suite is green again end to end.

### Fixed

- **`cost-table.json` regains the `fable` price row** (`claude-fable-5`, $10/$50 per MTok, cache-read $1) — the v10.6.0 restore had left every architect/Reviewer-1/triage dispatch unpriced ("USD unavailable") in the cost ledger. `cost-budget-check.mjs` and `prefs.schema.json` `costBudget.pricingModel` now default to `fable` (conservative upper bound); `triage-output` / `reviewer-output` schemas and the telemetry enums (`log-format`, `progress-contract`) accept `fable` (+ `gpt` as reviewer source).
- **`uninstall` legacy adapter cleanup actually works again.** The four `--cursor` / `--copilot-chat` / `--antigravity` / `--codex` blocks imported adapter modules deleted in v10.7.0, so every run silently no-opped. They now perform inline cleanup (multi-agent-* files + managed-marker blocks) with user files untouched; verified by a round-trip test.
- **`smoke-install-layout` fixture regenerated** (167 scripts; it was stale at 174 since the v10.7.0 deletions and failed `npm test` + CI). `smoke-readme-counts.sh` deleted — it asserted a README counts table that the v10.7.1 concise-README rewrite intentionally removed. The 10.7.1 changelog entry no longer spells the corporate Jira key it genericized, so the tarball leak gate passes.
- **`multi-agent-sync` skill command inventory reconciled** — it still listed the v7-era 26 commands; now the canonical 35 (incl. `finish`), matching `sync.md` and `cross-cli-contract.md`.

### Changed

- **Fable-restore consistency sweep.** Every doc that still said "Opus triage" / "Opus top tier" now says Fable where Claude Code dispatches Fable (Phase 1/2 headers, phase-4-review tables + metrics, help EN+TR, review command + skill, orchestration SKILL, features/architecture/performance docs, examples, CLAUDE.md template). The Copilot CLI reviewer trio stays explicitly pinned at GPT-5.4 + Opus + Sonnet (Fable 5 is not offered there) — now stated in `model-fallback.md`, which also drops its stale version-tagged title. The stray `claude-opus-4.6` / `claude-sonnet-4.6` ids are normalized to `claude-opus-4-8` / `claude-sonnet-4-6`.
- **Adapter-era residue swept**: `index.js` help no longer advertises removed install flags; `package.json` description/keywords say Claude Code + Copilot CLI only; `.gitignore` drops the dead `sync-adapters.mjs` note; `tracker-contract.md` drops the Cursor detection branch; ADR-0007 is marked Superseded and `GENERICITY-REVIEW.md` carries a pre-v10.7.0 banner; ROADMAP's "Current Release" jumps from the stale 10.1.0 (which still claimed Fable retired) to 10.7.x and dead future items are resolved.
- **Plugin-model docs**: the Copilot instructions template and `scripts/README` no longer reference the deleted `stack-swap.sh` session-start mechanic; `features.md` "Stack Swap" section rewritten around marketplace-plugin enablement; `architecture.md` counts refreshed (39 commands, 8 personas, 17 schemas, 100+ smokes, 41 figma + 38 core + 143 external skills); `help` stack args include `mobile`.

## [10.7.3] - 2026-07-02

### Changed

- **Zero external-tool residue.** Genericized every remaining editor/tool citation
  in the pipeline's own files across schemas, lib comments, refs, and the
  task-clarifier persona; feature behavior is unchanged, only the third-party naming is dropped. (Vendored
  `shared/external` knowledge and the `~/.codex` prune path in `update` are unaffected.)
- **README** gained a **Tokens & integrations** table (keychain-mapping model + the
  services the pipeline talks to: Jira, GitHub, Bitbucket, Confluence, Figma, Fortify,
  Firebase, Jenkins, npm) and an explicit **Platform support** section (macOS / Linux /
  Windows, keychain backends).

## [10.7.2] - 2026-07-02

### Changed

- Swept the last adapter residue from the phase-tracker docs: the "Visual channel"
  CLI list is now **Copilot CLI / plain shell** (Cursor / Windsurf / Cline dropped)
  across every mode command + `tracker-contract` + `phases`.

## [10.7.1] - 2026-07-02

Sweep residual adapter references left after the v10.7.0 removal.

### Changed

- Cleaned lingering Cursor / Antigravity / Codex / Copilot Chat mentions from
  `picker-contract.md` (now Claude Code + Copilot CLI only), `delete` command +
  skill, `shared/README`, `ask-choice.sh`, and the skills index. Deleted the
  now-broken `smoke-delete-flow.sh` (it installed adapter targets that no longer
  exist). `uninstall.mjs` keeps its legacy adapter-file cleanup for users who
  still have old adapter installs.

## [10.7.0] - 2026-07-02

The pipeline targets **Claude Code + Copilot CLI only**. The Cursor / Antigravity / VS Code Copilot Chat / OpenAI Codex CLI adapters are removed.

### Removed

- **All non-native adapters deleted.** `pipeline/adapters/` (Cursor, Antigravity,
  Copilot Chat, Codex + orchestration variants), `pipeline/scripts/sync-adapters.mjs`,
  `install/_adapters.mjs`, and the `smoke-adapters.sh` / `smoke-sync-adapters.sh` /
  `smoke-shared-runtime.sh` smokes are gone.
- Installer flags `--cursor` / `--copilot-chat` / `--antigravity` / `--codex` /
  `--all-tools` removed; `install` now dispatches only Claude Code + Copilot CLI.
- `multi-agent:sync` drops the Codex (Step 2a) and per-project adapter (Step 2b)
  steps; the `--no-adapters` flag is retired. README, `phase-4-review`, and
  `setup` adapter documentation removed.

### Changed

- **`multi-agent:update` prunes the retired global Codex adapter prompt**
  (`~/.codex/prompts/multi-agent.md`). Per-project adapter files (`.cursor/`,
  `.agent/`, `.github/copilot-instructions.md`) are left untouched — they live in
  user repos; the `uninstall` command can still remove them selectively.

## [10.6.0] - 2026-07-02

Fable 5 restored as the top model tier; `stack-swap` fully removed; setup gains a default stack step.

### Added

- **`multi-agent:setup` Step 9 — default stack plugin enablement.** First-run
  setup detects the project stack from markers (`.xcodeproj`/`Package.swift` → iOS,
  `build.gradle` → Android, `package.json`+react → Frontend, `requirements.txt`/
  `pyproject.toml` → Backend) and enables the matching marketplace plugin plus the
  always-on `ai-common-toolkit`. **No clear marker → default iOS.** So a
  fresh install works out of the box and a repo at any org gets its correct stack.

### Changed

- **Fable 5 is the top model tier again.** Architect (`ios/android/backend-architect`)
  and Reviewer-1 (`code-reviewer`) personas declare `preferredModel: fable`. The tier
  ladder is now `fable → opus → sonnet → haiku`: **if Fable 5 is unavailable, the first
  fallback is Opus 4.8**, applied per-dispatch with no file edits. Security personas keep
  opus. Reverses the 2026-06 "fable retired" state now that `claude-fable-5` is available.

### Removed

- **`stack-swap.sh` + `smoke-stack-swap.sh` deleted.** The SessionStart skill-dir-swap
  mechanic is gone entirely; stack selection is marketplace-plugin enablement
  (`/multi-agent:stack`). No dead code or legacy hook remains.

### Fixed

- Genericized a leaked corporate Jira project key (replaced with `PROJ`/`{JIRA_KEY}`)
  in the `finish` command + skill so the personal-data gate passes.

## [10.5.0] - 2026-07-02

Stack skills move from the local `stack-swap` mechanic to versioned marketplace plugins.

### Added

- **`build-stack-plugins.mjs`** — rebuilds each stack plugin's `knowledge/`
  layer in the `{owner}/multi-agent-plugins` marketplace from the pipeline's
  authoring source (`pipeline/skills/shared/external/`), regenerates each
  `plugin.json` `skills[]`, and **bumps the patch version of any plugin whose
  skill set changed**. Idempotent (`--dry-run` supported); a no-op run bumps
  nothing. Cross-stack skills (accessibility audit, humanizer, Firebase) route
  to `ai-common-toolkit`; Apple/Xcode-only skills stay in the iOS
  plugin. This is the version-based-management backbone: the pipeline is the
  single authoring source, the marketplace is a derived, versioned artifact.
- **`multi-agent:sync` Step 3c (PLUGINS)** — runs the generator, then commits +
  pushes the plugins repo when a plugin version was bumped.

### Changed

- **`/multi-agent:stack`** — selecting a stack no longer moves skill directories
  via `stack-swap.sh`. It now enables the matching marketplace plugin(s) (stack
  toolkit + `ai-common-toolkit`) in the current repo's
  `.claude/settings.json` `enabledPlugins`, disabling the stack toolkits that
  don't apply. Declarative, per-repo, versioned. No SessionStart hook.
- **`/multi-agent:update`** — added a step that refreshes the plugin marketplace
  (`claude marketplace update multi-agent-plugins`) so the latest published
  plugin versions are picked up alongside the pipeline update.

### Deprecated

- **`stack-swap.sh`** — no longer wired to any SessionStart hook. Retained for
  manual/offline use only; stack selection is now plugin enablement.

## [10.4.0] - 2026-07-02

New `finish` command: run the pipeline tail over work you already did locally.

### Added

- **`/multi-agent:finish`** (`multi-agent-finish` on Copilot CLI). Takes the
  current branch's local work (diff vs base + working tree) and runs the
  pipeline **tail** in one command — Phase 4 Review → Phase 5 Build+Test success
  gate → Phase 6 Commit/push/PR → Phase 7 technical analysis + a Jira comment
  with test scenarios — **without re-developing** (phases 1-3 skipped). Works
  after `dev-local`/`local` (which skip Review + Test) or after hand-coding /
  hand-testing. Interactive and `autopilot` modes. Reuses the existing
  `phase-4-review` / `phase-5-test` / `phase-6-commit` / `phase-7-report` /
  `channels` contracts; distinct from `resume` (tracked task) and `review`/
  `channels` (single-step). If the repo has no tests it reports "no tests
  present" — never fabricates results.
- Command inventory 34 → 35 (`cross-cli-contract` §1, README counts, `help.md`
  EN+TR, `sync.md` synced-command list); cross-refs added in `dev-local`/`resume`.

## [10.3.0] - 2026-07-02

Android (Jetpack Compose) parity for the interaction skills shipped in 10.2.0,
plus two fixes from a review pass. The cross-cutting integration adapters are
now genuinely dual-platform, honoring the figma-common "dispatched by both iOS
and Android" contract.

### Added

- **Android (Jetpack Compose) sections** in `figma-navigation`, `figma-overlays`,
  and `figma-bottom-sheets`. Same emit-intent / caller-owns rules and the same
  `figma-config` `ui.*` hooks; native-first per platform (Navigation Compose;
  Snackbar / AlertDialog / Dialog + state-driven loading; `ModalBottomSheet` +
  `rememberModalBottomSheetState`). The Android orchestrator uses the Compose
  section, the iOS orchestrator the SwiftUI section. `figma-evolve-component`
  wording made platform-neutral (SwiftUI or Compose).

### Fixed

- **`animated-gradient-border` reference snippet** now animates the
  `AngularGradient(angle:)` on a static shape instead of `rotationEffect` on the
  stroked rounded-rect (which spun the whole shape — glitchy corners).
- **Genericized the sheet corner-radius example token** (`.Radius.n12` →
  `.CornerRadius.radius12`) so no app-specific token leaks into the generic
  pipeline.

## [10.2.0] - 2026-07-02

Generic SwiftUI interaction coverage for the figma-to-swiftui pipeline. Three
new cross-cutting integration skills (navigation, overlays, bottom sheets) plus
a reconcile-and-extend workflow, all native-SwiftUI-first with an optional
per-project `ui.*` config hook so the same capabilities work on any SwiftUI
codebase - no app-specific coupling. Phase 3D dev detection and Phase 4 review
both consume them.

### Added

- **`figma-navigation` / `figma-overlays` / `figma-bottom-sheets` skills**
  (`pipeline/skills/figma-common/`). Cross-cutting integration adapters, same
  shape as `figma-form-integration` / `figma-price-integration`: a component
  emits a typed intent / takes a caller-owned binding and never routes, presents
  an app-level overlay, or owns the sheet surface. Native SwiftUI by default
  (`NavigationStack`/`navigationDestination`, `.alert`/`.confirmationDialog`/
  `.sheet(item:)` + ref-counted loading, `.sheet`+`presentationDetents`); a
  project's own system is used only when `figma-config` declares
  `ui.navigationSystem` / `ui.overlaySystem` / `ui.sheetSystem`.
- **`figma-evolve-component` workflow.** Reconcile an already-implemented
  component against current Figma (drift-heal) + additively extend it for a
  need, behind a mandatory human gate; distinct from `figma-to-swiftui`
  (build new), `figma-mend` (rebuild), and `figma-fix` (review bug).
- **`animated-gradient-border` UI pattern** (`figma-ui-patterns/patterns/`) -
  self-contained native-SwiftUI recipe (angular-gradient stroke + Reduce-Motion
  gate), no external dependency.
- **`ui` block in `figma-project-config.schema.json`** - optional
  `navigationSystem` / `overlaySystem` / `sheetSystem` (`mode: native | custom`
  - type names). Absent → native SwiftUI.

### Changed

- **Phase 3D pattern detection (§1.5.4).** Detects navigation / overlay /
  bottom-sheet affordances and dispatches the matching integration skill
  (gate-driven, per `orchestrator-discipline` Rule 4).
- **Phase 4B view (§4.7.4)** references the new skills; **`figma-to-swiftui`
  accessibility reference** enriched with the VoiceOver-minimalism decision tree
  (annotate only what a vision-impaired user needs; state-necessity tree;
  anti-patterns).
- **Phase 4 review** (`phase-4-review.md`): Step 1.5 gains iOS interaction +
  accessibility-minimalism checks (self-routing/self-presenting components,
  `AnyView` through an overlay center, un-ref-counted loading, magic-number
  detents, a11y over-annotation), and the new skills are injected as reviewer
  reference context for SwiftUI UI diffs. Generic across SwiftUI projects.
- **`figma-to-component` SKILL.md** documents the complementary integration
  skills; **`orchestrator-discipline` Rule 4** and **`cross-cli-contract`**
  updated (figma-common 27 → 31, total figma skills 37 → 41).

## [10.1.0] - 2026-06-25

Fable 5 retired (no longer available): the pipeline's top intelligence tier is
now Opus. Plus per-task cost visibility on by default, four Phase 1/4 token
economy measures, and a stability pass that bounds dispatch timeouts, heals
stale worktrees, and validates state before resume.

### Changed

- **Fable 5 -> Opus across all routing.** The five heavy agent personas
  (`code-reviewer`, `security-auditor`, `ios/android/backend-architect`) now
  declare `preferredModel: opus` instead of `fable`; Phase 1 Analysis, Phase 2
  Planning, Phase 4 Reviewer 1 + triage, and the `--dev` dev model all run on
  Opus. This also resolves the prior CLAUDE.md-vs-phase-doc inconsistency
  (CLAUDE.md already documented Opus for these stages).
- **Model fallback ladder is now `opus -> sonnet`** (was `fable -> opus ->
sonnet`). `modelFallback.fallbackModel` default is `sonnet`. The
  `premiumTierUntil` date gate is kept as a generic mechanism for any future
  plan-window-limited premium tier. `model-fallback.md` bumped to v10.1.0 and
  `smoke-model-fallback.sh` updated to assert the new ladder + Opus personas.
- **`costBudget` defaults on in warn mode.** The proactive per-task cost ceiling
  (`cost-budget-check.mjs`) now ships enabled (`onExceed: "warn"`, `maxUsd: 5`,
  priced at the conservative opus rate) so runaway spend is visible live. Warn
  never halts; set `onExceed: "halt"` to make the ceiling blocking, or
  `enabled: false` to opt out.

### Added

- **Phase 4 context economy (Step 1.9).** Reviewer and triage prompts now build
  a byte-identical shared prefix (full diff + analysis summary + plan) so, when
  the host supports prompt caching, reviewer 2/3 and triage read it at the
  discounted cache-read rate instead of re-billing the diff as fresh input.
- **Single-repo diff cap.** Diffs exceeding the Phase 4 token allowance are
  truncated with a `file://...review-diff.txt` pointer and a
  `review.diff_truncated` metric - the single-repo equivalent of the existing
  multi-repo 80% cap.
- **Phase 1 light Explore tier.** Small `bugfix`/`chore` tasks (single named
  file or a referenced crash/stack frame) scan only the named area + direct
  callers instead of a full-repo "very thorough" pass.
- **Triage prior-art injection cap.** Merged prior-art is capped at the 8
  highest-similarity hits so a many-finding review does not inflate the triage
  prompt.

### Fixed

- **Parallel dispatch timeouts.** Phase 1 Explore and Phase 4 reviewer dispatches
  are now bounded by a wall-clock budget (`EXPLORE_TIMEOUT_SECONDS` /
  `REVIEWER_TIMEOUT_SECONDS`, default 180). A stalled or dead agent is dropped and
  the phase proceeds with the dispatches that returned, instead of hanging
  indefinitely waiting on the slowest one.
- **Worktree stale-lock heal.** Phase 0 runs `worktree prune` + `unlock` before
  every `worktree add`, ending the `already exists` wedge a run killed mid-add
  left behind.
- **Resume safety validation.** New `validate-state.mjs` checks `agent-state.json`
  is safe to re-enter (parseable + `currentPhase` in range + well-formed
  `phases`, tolerant of legacy shapes) before resume picks a phase, instead of
  silently re-entering on stale state.
- **Model fallback floor.** The ladder now walks `opus -> sonnet -> haiku`
  (`floorModel`, absent defaults to `haiku`) so two simultaneously-unavailable
  tiers degrade instead of hard-halting the phase.
- **Visible halts + lock tuning.** Hard halts surface to stderr + tracker even in
  autopilot (no more silent stops); `write-state` lock acquire window is
  env-tunable (default 15s) with the stale window cut 60s -> 30s; external curls
  gain `--connect-timeout 5`; `phase-tracker` gains a concurrent-safe
  `MULTI_AGENT_STRICT_TASK_ID` mode; the retired `fable` price entry is removed.

---

## [10.0.6] - 2026-06-23

Release-plumbing patch so the stable line reaches npmjs. No behavior change to
the slash-command surface.

### Fixed

- **Regenerated the stale `install-layout.tsv` fixture.** The v10.0.5 line added
  `smoke-metrics-cache-ratio.sh` without refreshing the layout fingerprint, so
  `smoke-install-layout.sh` failed (install writes 173 scripts per target, the
  fixture still claimed 172). The fixture now records 173 for `.claude/scripts`
  and `.copilot/scripts`; this was the only gate blocking a clean release.

---

## [10.0.5] - 2026-06-19

Telemetry backbone for prompt-cache reuse, plus a self-deriving PR review
iteration counter. Ships with a consistency fix so the two consumers of the
token ledger agree on what an input token is.

### Added

- **Prompt-cache reuse ratio in metrics.** `aggregate-metrics.mjs` now sums
  `tokens_cached` per model and reports `cache_ratio = cached / (in + cached)`
  - the share of input tokens served from the host prompt cache - per model and
    overall, in all three output modes (json / markdown / text). This is the
    single number that says whether cache-friendly prompt structuring is paying
    off. Backward-compatible: a phase that omits `tokens_cached` reads as 0%.
- **PR review iteration counter derived from the PR itself.** On a `needs_work`
  post, the iteration number is re-derived as `max("iteration #N" already on the
PR) + 1` instead of trusting agent-state. Standalone `/multi-agent:review`
  runs use a fresh task id each time, so the PR comments are the only reliable
  cross-run source of truth.

### Fixed

- **Token-count convention mismatch between the two ledger consumers.**
  `render-agent-log-cost.sh` treated `tokens_in` as cache-inclusive and
  subtracted the cached count (`fresh = in - min(cached, in)`), while the new
  `aggregate-metrics.mjs` treated `tokens_in` as cache-exclusive (`total =
in + cached`). Fed real data with high cache reuse (`cached > in`), the
  renderer collapsed `fresh` to 0 and underpriced the row. Standardized on the
  **cache-exclusive** convention that matches the host usage report
  (`input_tokens` and `cache_read_input_tokens` are disjoint): the renderer no
  longer clamps or subtracts, and `log-format.md` now documents the disjoint
  contract that both consumers rely on.
- **PR iteration scan could be inflated by a human comment.** The
  `max("iteration #N")` scan now matches only inside the Multi-Agent Review
  footer, so a reviewer who writes "iteration #99" in prose cannot jump the
  counter.
- **README smoke-suite count.** Bumped 107 -> 108 to match the actual suite
  count after the cache-ratio smoke landed.

## [10.0.4] - 2026-06-12

Final two clean-runner failures (ubuntu matrix) - full 5-job matrix green is
the target state.

### Fixed

- **macOS-only project-slug glob.** `plan-todos.sh`, `post-pr-review.sh`, and
  `update-issue-progress.sh` resolved task state by globbing
  `~/.claude/projects/-Users-*` - Linux slugs start with `-home-`, so state
  resolution silently found nothing there. All three now glob `projects/*`.
- **`smoke-bitbucket-contract.sh` stubbed only macOS Keychain.** The smoke
  PATH-shadows `security`, but on Linux `credential-store.sh get` routes
  through `secret-tool`, so the mock token stayed empty and every parse
  assertion came back blank. A `secret-tool` stub now covers the Linux path.

## [10.0.3] - 2026-06-12

Cross-platform portability fixes - the v10.0.2 SMOKE_NO_BAIL run surfaced
every remaining clean-runner failure; all nine are fixed. Linux behavior was
reproduced locally by putting GNU coreutils' gnubin ahead of PATH.

### Fixed

- **`stat -f %m` is not a safe BSD probe.** GNU stat also accepts `-f` (as
  "filesystem status") and SUCCEEDS, printing a mount point - so the
  `|| stat -c %Y` fallback never ran and mtimes became `/` on Linux, breaking
  `search-logs.sh` (since-filter, scoring, JSON/TSV output) and
  `repo-cache.sh` TTLs. Probe order flipped to GNU-first (`stat -c` first;
  BSD rejects `-c`, so the fallback chain is safe both ways). `date -r
<epoch>` display calls gained a GNU `date -d @` fallback.
- **Hardcoded maintainer layout `$HOME/multi-agent-pipeline` removed** from
  `smoke-schema-validation.sh` (preferences-template path) and
  `smoke-pat-audit.sh` (.gitignore audit-log check) - both now derive the
  repo root from the script location; the template check skips gracefully on
  installed-tree execution (which also un-cascades `smoke-install-leak-gate`
  step 5).
- **`smoke-lib-scripts.sh` fixture bare repos init with `-b main`** - on
  runners without `init.defaultBranch=main` the bare HEAD pointed at master
  and `prepare` ended detached instead of on the task branch.
- **`vercel-deploy.sh` rejects `--token` argv BEFORE the CLI-presence
  check** - the refusal is a security guarantee and must not depend on the
  vercel CLI being installed.
- **`smoke-install-layout.sh` fingerprint pinned to `LC_ALL=C sort`** -
  runner locales order dot-prefixed paths differently, producing
  same-content/different-order fingerprint mismatches on macOS runners;
  fixture regenerated under the pinned locale.

## [10.0.2] - 2026-06-12

Second round of cross-platform CI repairs (first real clean-runner exercise
of the full smoke suite).

### Fixed

- **Windows: `New-StoredCredential` not recognized.** `ps_run` preferred
  `pwsh` (PowerShell 7), but the CredentialManager binary module targets .NET
  Framework and installs into Windows PowerShell's module path - `ps_run`
  now prefers `powershell.exe` and falls back to `pwsh`.
- **Linux: headless keyring unlock.** `gnome-keyring-daemon --unlock` spawns
  SystemPrompter, which exits 1 on ubuntu-24.04 runners and never creates the
  `login` collection. The round-trip now pre-seeds an unencrypted default
  keyring file (libsecret CI recipe) and starts the daemon on it.
- **test.yml smoke suite ran against a missing install.** Install-dependent
  smokes (cross-cli-behavior etc.) verify `~/.claude` / `~/.copilot`; a clean
  runner has neither, so the full matrix could never go green off the
  maintainer machine. The workflow now runs `node install.js --all` first and
  executes the suite with `SMOKE_NO_BAIL=1` + a 600s per-suite timeout so one
  CI run surfaces every remaining environment-dependent failure.

## [10.0.1] - 2026-06-12

CI matrix repairs - the cross-platform `test.yml` jobs had been failing on
runner-environment drift since before v10.0.0; all three root causes fixed.

### Fixed

- **Windows: `credential-store.sh: line 137: USER: unbound variable`.** Git
  Bash on Windows runners does not export `USER`; under `set -u` the Windows
  `set` backend crashed before reaching Credential Manager. Now falls back
  `${USER:-${USERNAME:-claude}}` (same default the macOS backend already used).
- **Linux: `secret-tool: Object does not exist .../collection/login`.**
  Persisting `gnome-keyring-daemon` env across workflow steps via
  `$GITHUB_ENV` stopped working on ubuntu-24.04 runners (the default `login`
  collection never materializes, `GNOME_KEYRING_CONTROL` lands empty). The
  round-trip now runs inside a single `dbus-run-session` with an inline
  unlock.
- **macOS: `pip3 install --user jsonschema` -> `externally-managed-environment`.**
  macos-latest runners ship PEP 668-managed Pythons; the install step now
  falls back to `--break-system-packages`.

## [10.0.0] - 2026-06-12

Quality major: a 10-category self-audit (73.5/100) plus a competitive sweep
(GitHub / Reddit / HN / X) drove hardening across CI, tests, installer,
adapters, and the phase contracts. No slash command was renamed or removed;
the major bump covers the behavioral defaults below.

### Breaking

- **`npm test` smoke loop replaced by `pipeline/scripts/run-smokes.mjs`.**
  Per-suite timeout (default 180s, `SMOKE_TIMEOUT_SECONDS` override), substring
  filters (`node pipeline/scripts/run-smokes.mjs adapters keychain`),
  `SMOKE_NO_BAIL=1` run-all mode, and a pass/fail summary. A hung smoke can no
  longer block `npm test` or CI indefinitely.
- **`publishConfig` corrected to `registry.npmjs.org` (`access: public`).** It
  pointed at `npm.pkg.github.com`, so a plain `npm publish` targeted the wrong
  registry - npmjs had been stuck at 9.8.0 while 9.9.0-9.10.2 shipped only as
  git tags. New `release.yml` publishes on `v*` tags after gating on
  tag==package.json version and a matching CHANGELOG entry.
- **CHANGELOG split.** Entries v2.0.0-v8.13.0 moved to `CHANGELOG-archive.md`
  (repo-only, excluded from the npm tarball); CHANGELOG.md shrinks 310KB -> 40KB.
  `smoke-changelog-version.sh` gates top-entry==package.json drift.
- **Phase 1 / 2 / 4 structured outputs now pass deterministic validator gates.**
  `validate-analysis/planning/reviewer/triage.mjs` accept a file argument and run
  inside the phases (fails CLOSED: one self-correction rework, then halt with a
  recovery hint). Previously the validators only ran in `npm test`.
  `smoke-validator-gates.sh` (23 assertions).

### Added

- **Skill frontmatter linter** (`lint-skills.mjs`, wired into `npm test` +
  ci-lite + release.yml): every SKILL.md must carry a frontmatter block with
  `name` + `description`; `user-invocable`/`platform` value checks. First run
  found and fixed 16 figma-common SKILL.md with no frontmatter at all and 15
  external skills missing `name:`; `.skill-manifest.json` re-signed (217).
- **Installer `--dry-run`** - same code path (guards live in `install/_common.mjs`
  primitives), prints `[dry-run] would ...` per operation, writes nothing.
  Unknown `--flags` now exit 1 with the supported list instead of being
  silently ignored. Both covered by new unit tests (23 total).
- **Phase 3 Step 3.6 code-simplifier pass** - one Sonnet subagent shrinks the
  working diff (comment bloat, unrelated rewrites, dead code, over-abstraction)
  before Phase 4; safe edits only, build+tests re-verified, wholesale revert if
  anything breaks, tokens in the cost ledger.
- **Phase 4 lesson memory loop** - each fix/rework round appends a one-line
  root-cause lesson per resolved blocking/important finding to the existing
  learnings ledger.
- **Phase 2 cross-artifact consistency gate** - plan is checked against the
  analysis doc (requirement -> task mapping, no orphan tasks, open questions
  carried) before approval. `smoke-community-gates.sh` (19 assertions) covers
  all three. Sourced from the June 2026 competitive sweep - see ROADMAP for
  the adopted/declined ledger.
- **CI hardening**: lint is blocking on ci-lite (was warn-only),
  `npm audit --audit-level=moderate` gates both workflows, shellcheck
  (severity=error) gates all pipeline shell scripts, skill lint step added.
- **Docs drift gates**: `smoke-md-links.sh` + `check-md-links.mjs` (internal
  markdown link checker, code spans excluded), `smoke-changelog-version.sh`.

### Changed

- **Adapter family deduplicated.** Shared install/uninstall flow extracted into
  `pipeline/adapters/_base.mjs` (skill collection sources, managed-block
  removal, rules walking, digest rendering); cursor / copilot-chat /
  antigravity / codex + both orchestration modules thinned by ~490 lines with
  byte-identical installed output (`smoke-adapters.sh` 33 assertions green).
- **README restructured**: Quick Start now precedes "What's new"; the release
  wall condensed to the latest three entries (CHANGELOG remains canonical);
  `--dry-run` documented; smoke count 103 -> 107.
- **ROADMAP**: new "v10.x candidates" table from the competitive sweep
  (autonomous loop mode, mid-run steering, watchdog + review debt,
  constitution artifact, evidence receipts, marketplace distribution,
  cross-session backlog, pre-flight quota check) plus a declined list.
- Help text aligned to "8-phase" (index.js said 9-phase; phases are 0-7).

### Fixed

- `brace-expansion` moderate DoS advisory (GHSA-jxxr-4gwj-5jf2) via
  `npm audit fix` - 0 vulnerabilities.
- `smoke-keychain.sh` SC1087 unbraced variable in a grep class (shellcheck).
- `eslint.config.js` missing `Response` global (5 no-undef errors in
  install-telemetry tests under blocking lint).
- Stale `fixtures/install-layout.tsv` (claimed 86 command files; 87 on disk
  since v9.9.0) regenerated.

## [9.10.2] - 2026-06-11

Live per-phase token narration (user-reported gap: tiles showed duration only).

- **tracker-contract section 5 now MANDATES a completion narration line.** The
  native TaskList widget on Claude Code shows name/status/duration - it has no
  per-phase token field, so token telemetry written via `phase-tracker.sh tokens`
  was invisible until the Phase 7 Cost Breakdown. On every phase transition to
  `completed`, the orchestrator now prints one chat line in `outputLanguage`:
  `Phase <N> <name> done - ~<in> in / ~<out> out tokens (<model>, ~$<usd>)`,
  priced from `cost-table.json` (floor-to-cents, same math as the cost renderer).
  Zero-token phases print `(no LLM calls)`; counts are content-size estimates
  prefixed with `~` (the orchestrator does not receive its own usage metering) -
  the state file + Phase 7 breakdown stay authoritative.
- `smoke-tracker-tokens-invocation.sh` extended to assert the contract carries
  the narration mandate.

## [9.10.1] - 2026-06-11

Model fallback contract for fable personas.

- **New `refs/features/model-fallback.md`.** Fable access can be plan-window-limited
  or quota-limited; the contract defines a deterministic tier ladder
  (`fable -> opus -> sonnet`) applied via the existing `PHASE_MODEL_OVERRIDE` /
  `CLAUDE_CODE_SUBAGENT_MODEL` per-dispatch override - persona files are never
  edited at runtime. Three triggers, checked in order: (1) **date gate** -
  `prefs.global.modelFallback.premiumTierUntil` (ISO date); past it, fable
  personas dispatch on `fallbackModel` with a one-line WARN (autopilot never
  asks); (2) **dispatch error** - a failed fable dispatch retries once on
  `fallbackModel` instead of aborting the phase; (3) **budget ceiling** - after
  a `cost-budget-check.mjs` exit-11 pause, fable downgrades for the rest of the
  run. Every fallback logs a `model_fallback` metric + agent-log line.
- **Prefs knob** `global.modelFallback` added to `preferences-template.json`
  (`enabled: true`, `premiumTierUntil: null`, `fallbackModel: "opus"`,
  `onDispatchError: true`). Wired at Phase 0 Step 0 (date gate) and Phase 4
  (per-dispatch); `phase-4-review.md` model-override paragraph also fixed
  (still said `preferredModel: opus` after v9.10.0).
- **New gate `smoke-model-fallback.sh`** (10 assertions): contract doc + three
  triggers + template defaults + phase wiring + fable personas intact.
  Smoke suites 102 -> 103.

## [9.10.0] - 2026-06-11

Claude Fable 5 adoption on the Claude Code side.

- **Heavy personas route to Fable.** `code-reviewer`, `security-auditor`, `ios-architect`,
  `android-architect`, and `backend-architect` move from `model: opus` to `model: fable`
  (`claude-fable-5` - the tier above Opus 4.8). `explorer` / `dev-critic` stay on sonnet,
  `task-clarifier` on haiku. `smoke-agent-model-routing.sh` enum extended to
  `fable|opus|sonnet|haiku`; modelRationale lines refreshed.
- **Model-assignment labels updated** across the Claude-side docs: Phase 1 Analysis and
  Phase 2 Planning headings, Phase 4 reviewer pair (Claude Code now dispatches
  Fable + Sonnet; Copilot CLI keeps GPT-5.4 + Opus + Sonnet), Phase 4 triage
  (Opus triage -> Fable triage), and the `--dev` fast-mode dev model in
  `dev.md` / `dev-autopilot.md` / `dev-local.md` / `dev-local-autopilot.md` / `help.md`
  (EN + TR). Adapter-platform picker labels (VS Code / Antigravity / Codex) untouched.
- **Cost ledger: `fable` pricing added + stale `opus` entry fixed.** `cost-table.json`
  gains `fable` ($10 in / $50 out / $1 cache-read per MTok, `claude-fable-5`) and the
  `opus` entry is corrected from the 4.7-era $15/$75 to the actual Opus 4.8 pricing
  ($5/$25/$0.50, `claude-opus-4-8`) - every prior cost report priced opus phases 3x too
  high. Cost smokes re-baselined to the corrected math (`smoke-agent-log-cost`,
  `smoke-cost-budget`).

## [9.9.0] - 2026-06-10

Analysis open-question resolver + repo hygiene hardening.

- **New command `/multi-agent:analysis-resolve`** (+ dash-form `multi-agent-analysis-resolve`
  skill). Walks the Section 20 Risks and Open Questions of an analysis v3 document one
  row at a time: up to 3 source-labeled candidates per row (`From evidence` / `From repo`
  / `AI reasoned`), the pick merges into the target body section, the doc saves after
  every answer. Stop tokens (`stop` / `pause` / `dur` / `kes`), immediate follow-up
  insertion, optional verbatim-match sibling propagation across per-platform files,
  changelog bump on finalize. Inherits the analysis Locked decisions: citation
  discipline, forward-looking voice (repo answers demote to `> Legacy reference:`
  blockquotes), humanizer punctuation policy, no Figma access (Locked 30 - design-gap
  rows get only Defer + a re-run recommendation), no auto-commit. Command inventory
  33 -> 34; `/multi-agent:analysis` Phase 5 report now suggests the resolver when
  Section 20 has open rows.
- **Dead references removed.** `analysis.md` Reusable refs no longer points at a
  non-existent `fetch-wiki.sh` (the wiki fetch chain is inline: clone -> gh api ->
  WebFetch); `refs/features/external-context-injection.md` figma row routed to the real
  3-tier chain instead of a non-existent `fetch-figma.sh`; `channels.md` board adapter
  no longer links a missing `refs/channels/board.md` (behaviors documented inline).
- **Bitbucket credential hardening.** `post-pr-review.sh` Basic auth moved off
  `curl -u user:token` argv (visible to `ps` / process audit) onto a curl config fed
  through process substitution (`-K <(...)`).
- **First offline test coverage for the two biggest untested libs.**
  `smoke-extract-conventions.sh` (8 assertions: throwaway iOS fixture repo, 12-field
  output shape, confidence enum, evidenceFiles cap, error paths) plus a new
  `conventions-output.schema.json` contract for the Phase 1c extractor output.
  `smoke-md2confluence.sh` (9 assertions: front-matter parsing, TR punctuation gate
  with diacritic preservation, storage-XML rendering for headings / tables / code).
  Smoke suites 100 -> 102, JSON schemas 15 -> 16.
- **Stale-version cleanup.** `multi-agent-analysis/SKILL.md` rewritten from the
  v8.8.1-era "fixed 7-section" description to the v3 contract (23-section Full /
  7-section Lite, Pass A/B render, Phase 3.5 output picker); `help.md` analysis line
  updated in both languages; README at-a-glance counts re-synced to the filesystem
  (external catalog 133 -> 143 and total SKILL.md 206 -> 217 had drifted in v9.8.0);
  ROADMAP current-release pointer moved off 8.4.1.

## [9.8.0] - 2026-06-03

Interactive credential-expiry handling and analysis improvements.

- **Token expiry now asks, never silently skips.** When a credential resolves but
  the service rejects it (401/403), the pipeline surfaces an Expired-token decision
  instead of silently dropping the source or falling to a lower tier: `Regenerate`
  (replace in place) / `Use a different token` / `Skip and continue` (which halts
  only when the token is structurally required for the input). The question asks a
  choice; the replacement value still enters through the clipboard Save Flow, never
  chat, so `smoke-no-token-prompt.sh` stays green. `refs/keychain.md` Rule 1 reframed
  to distinguish "never prompt for a token value" (kept) from "may ask a decision"
  (new). `setup.md` Token Save Flow Step A split into missing vs expired branches.
- **Figma access tiers stop silently degrading.** A dead Figma MCP token (after one
  re-auth retry) now asks `Recreate the MCP token` vs `Continue with Figma PAT`
  instead of silently dropping to the PAT. A 401/403 on the Figma PAT runs the same
  Expired-token decision before falling to the user-screenshot tier. Mirrored in the
  `refs/rules.md` Tier table.
- **Picker step narration.** New breadcrumb contract in `refs/picker-contract.md`:
  every picker step prints a localized `Step <i>/<n>: <what this step decides>`
  narrator line (auto-resolved steps included), so the native picker shows, step by
  step, what it is doing. Wired into the account / repo / dev-context pickers and the
  analysis Phase 0 chain.
- **Analysis picker questions follow `outputLanguage`.** Fixed `_account-picker.md`,
  which hardcoded English prompt strings and contradicted the canonical Language
  Application matrix; its questions now render in `outputLanguage` (`label` / `header`
  stay English per the UI contract). This was the source of the half-English picker
  on Turkish runs.
- **Analysis reuses already-built components via Code Connect.** New Phase 1b.1 builds
  a Code Connect index from existing `*.figma.swift` / `*.figma.kt` bindings
  (`{fileKey, nodeId -> component, path}`). figma-to-swiftui already built and bound
  the components, so this index is the source of truth for "what already exists":
  matched design nodes emit `reuse` rows, only unmatched nodes become new components.
  Empty index falls back to the prior `uiComponents` heuristic. A scope note clarifies
  the command is a development analysis, not a screen-anatomy spec.

## [9.7.0] - 2026-06-02

OpenAI Codex CLI support - the 6th supported AI surface.

- **New `--codex` adapter (`pipeline/adapters/codex.mjs`).** Codex CLI is a
  global-config tool: its custom prompts (slash commands) and MCP servers live
  under `~/.codex/`, and it has no per-project prompt directory. So unlike the
  Cursor / Antigravity / Copilot Chat per-project adapters, the Codex adapter
  installs globally and writes Codex's real surfaces: `~/.codex/prompts/multi-agent.md`
  (the `/multi-agent` slash command), `~/.codex/AGENTS.md` (marker-wrapped skill
  index), and a marker-wrapped `[mcp_servers.dev-toolkit]` block in
  `~/.codex/config.toml` (TOML managed block that preserves the user's existing
  config). Codex has no subagent fan-out, so the Phase 4 parallel review degrades
  to a sequential adversarial two-pass (encoded in the prompt).
- **Wiring.** `--codex` flag in `install/index.mjs` + `install/_adapters.mjs`
  (and `--all-tools`), uninstall support in `pipeline/scripts/uninstall.mjs`,
  `REVIEWER_MODELS.codex` (GPT-5.5-Codex primary + Claude Opus 4.8 cross-model)
  in `_base.mjs`, and a global one-shot pass in `sync-adapters.mjs` (fires when
  `~/.codex` exists). Sync Step 2a documents the global flow.
- **Gate.** `smoke-adapters.sh` test 2d covers the Codex round-trip (prompt +
  AGENTS.md + config.toml MCP merge preserving user TOML, then uninstall
  restoring the user's config). Adapters smoke 28 -> 33 assertions.
- Platforms 5 -> 6. No new slash command (Codex is a consumer, not a command),
  so the Cross-CLI command inventory stays 33.

## [9.6.0] - 2026-05-31

Disk hygiene + correctness hardening, all gate-backed.

- **Two new maintenance commands.** `/multi-agent:garbage-collect` (`gc-tmp.sh`)
  sweeps leftover `/tmp` scratch from past runs (picker state, review diffs,
  `issue-progress-*`, `channels-*`, `context-*`, analysis drafts); `--older-than`
  spares in-flight scratch. `/multi-agent:prune-logs` (`prune-logs.sh`) deletes
  per-task log dirs under `~/.claude/logs/multi-agent` with
  `--older-than`/`--project`/`--task` filters and ALWAYS preserves the audit
  trail + metrics corpus + `.counter`. Both are dry-run by default and confirm
  before deleting (purge-style). New smokes: `smoke-gc-tmp` (13), `smoke-prune-logs`
  (15). Command inventory 31 -> 33; help catalog now points at a real log cleaner
  (the dangling `clear-logs` reference had no backing command).
- **Intent guard hardened against adversarial input.** The 26-case corpus was
  non-adversarial, so the green eval hid real misclassifications: `fix the bug?`
  read as a question (work silently skipped), `can you explain how to add X` read
  as a task (worktree for nothing), and TR mid-sentence interrogatives
  (`nasil refactor ederim`) missed. `classify-intent.sh` now lets a leading
  imperative beat a trailing `?`, keeps a polite-but-conceptual phrasing a
  question, and detects TR SOV interrogatives mid-sentence. 8 adversarial EN+TR
  cases added; eval-intent safe 100% (34/34), exact 97.1%.
- **Schema conformance test (ajv).** The hand-rolled `validate-*.mjs` validators
  were a parallel re-implementation of the `.schema.json` contracts that nothing
  cross-checked. A new ajv-backed test (43 cases) validates the eval fixtures
  against the real schemas. It immediately caught two drifts, now fixed:
  `reviewer-output` forbade the `reviewer` label the merged Phase 4 array carries;
  `agent-state` modeled `buildStatus` as a string-only enum and `reviewIterations`
  as flat counts while `phase-3-dev.md` writes `buildStatus={ok,attempts,lastError}`
  and the iteration record carries `reviewers`/`triage`/`validatorResult` (which
  `run-metrics.mjs` reads). `ajv`/`ajv-formats` added as devDependencies (runtime
  deps stay zero).
- **Correctness fixes.** `run-metrics.mjs` degrades instead of crashing on a
  partial/null `agent-state.json` (a documented use case); `eval-intent.mjs` fails
  loudly on an invalid `--min` instead of silently disabling the gate (NaN
  threshold); `audit-log.sh` coerces a non-bool `success` arg so the JSONL line
  always parses; `keychain-save.sh` prints usage instead of crashing on no args.
- **CI re-armed** on push + PR to main (ci-lite + the macOS/Windows test matrix),
  and dead code removed (`runReviewerValidator`, unused imports/vars). Counts:
  commands 31 -> 33, smoke suites 98 -> 100, SKILL.md 204 -> 206.

## [9.5.0] - 2026-05-30

Toward proven (not just designed): measure the features instead of asserting them, and ship the evidence-collection harness.

### Added

- **Measured intent-guard accuracy** (`eval-intent.mjs` + `pipeline/eval/intent-cases.json`). 26 labeled EN+TR cases run through `classify-intent.sh`; the gate uses operationally-safe accuracy (the only dangerous errors are a task read as a question -> work skipped, or a question read as a task -> a spurious worktree; `ambiguous` proceeds as a task so it is safe for task cases). Currently 100% safe / 96.2% exact. Wired into `npm test`. Turns the heuristic into a number with a regression set.
- **Per-run outcome metrics** (`run-metrics.mjs` + fixture + `smoke-run-metrics.sh`). Parses an `agent-state.json` into the numbers that answer "did this run go well": review iterations (rework loops), first-pass-clean, reviewer signal-to-noise (accepted / raw findings), consensus verdict, build outcome. Phase 7 emits it; accumulating the output across real runs is the real-world validation corpus that golden tasks + benchmarks only approximate.

### Notes

- These address the honest "measure, don't assume" gap from the self-review: the intent guard and review signal are now quantified, and the harness exists to turn real runs into evidence. The remaining step (running real tasks + a public benchmark) is the user's, and cannot be fabricated.
- CI auto-run stays disabled in `test.yml` (the maintainer paused it for GitHub Actions billing); re-enabling the push/PR triggers is a billing decision, not changed here.

## [9.4.0] - 2026-05-30

Closes the structural gaps the adversarial review surfaced: the deterministic gates now actually RUN on the three adapter platforms, and the multi-model review is restored there using each platform's real model lineup.

### Added

- **Shared runtime so gates execute on Cursor / Antigravity / VS Code Copilot Chat.** The gate scripts + lib + schemas are installed once to `~/.multi-agent/` (dev-only / PII files excluded) and the emitted agents/commands/workflow reference them by absolute path (`installSharedRuntime` / `rewriteScriptRefs` in `_base.mjs`). Previously the emitted agents referenced `pipeline/scripts/...` which did not exist in the consumer project, so the deterministic gates could not run there at all. Uninstall removes the runtime. Enforced by `smoke-shared-runtime.sh`.
- **Cross-vendor 2-model review on the adapter platforms.** A second reviewer agent (`ma-code-reviewer-x`) is emitted pinned to a different vendor, using each platform's actual model lineup (researched mid-2026, centralized in `_base.mjs#REVIEWER_MODELS`): Cursor `inherit` + `gpt-5.5`; VS Code Copilot Chat `Claude Opus 4.8` + `GPT-5.5`; Antigravity documents a `Gemini 3 Pro` + `Claude Opus 4.6` pair (its models are dropdown-selected, not file-pinned). Restores the cross-model diversity that was Claude-Code / Copilot-CLI-only.
- **Recommended PreToolUse hooks template** (`install/templates/claude-hooks.json`) wiring the secret scan as a HARD pre-commit gate on Claude Code; `multi-agent:setup` Step 8 offers to merge it. The secret scan is the one gate that is OS-hookable (no run-specific args); the others are phase-invoked by contract. Enforced by `smoke-gate-hooks.sh`.
- **Golden-task fixture 08** (`08-ios-auth-consensus-unverified`) exercising the consensus block through the eval harness (both reviewers approve on a security surface -> `unverified`). Golden tasks 7 -> 8.
- **Reviewer-count contract checks** in `smoke-cross-cli-behavior.sh`: locks Claude=2 / Copilot=3 + the documented adapter-platform reviewer set against drift.

### Fixed

- VS Code Copilot Chat agents emitted `model: inherit`, which is not a valid Copilot model (there is no `inherit` keyword; omitting `model` inherits the picker). Normal personas now omit `model`; the two reviewers pin a picker label.

### Notes (stated honestly)

- The adapter platforms still have no `PreToolUse` equivalent, so their gates are workflow-enforced (run as steps) rather than OS-blocked.
- Pinned adapter models depend on the user's subscription; swap them in `REVIEWER_MODELS` / the Antigravity dropdown if a model is unavailable.
- Old PII-bearing versions (9.3.0-9.3.3) remain in the private registry: GitHub Packages does not support `npm deprecate` (E400), and deleting versions / rewriting git history are irreversible and were left to an explicit owner decision. The package + repo are private, so this is not a public exposure.

## [9.3.4] - 2026-05-30

Second round of review-driven fixes - the lower-severity findings left open in 9.3.3, plus an honesty correction on the multi-platform claim.

### Fixed

- **Arg parsers dropped values starting with `--`.** `learnings-ledger.mjs` and `evidence-gate.mjs` now accept the `--key=value` form, so a statement / pattern that begins with `--` (e.g. `--statement="-- prefer let"`) is preserved instead of silently failing.
- **Secret scan skipped filenames with spaces.** `pre-commit-check.sh` now iterates staged files NUL-delimited (`git diff --name-only -z`), closing a false-negative where a secret in `my file.txt` went unscanned.
- **`learnings-ledger forget` rewrite is now atomic** (temp file + rename) so a crash or concurrent reader never sees a half-written ledger.
- **`from-triage` scope for a top-level file** is now the filename itself, not a stray `./*` glob.

### Changed

- **Honest multi-platform claim.** The README and the adapter-emitted orchestration commands now state plainly that Claude Code + Copilot CLI run the pipeline natively (gate scripts installed), while Cursor / Antigravity / VS Code Copilot Chat receive the workflow + subagents + MCP but run the deterministic gates as ADVISORY (the gate scripts are not copied into those projects). Making those gates execute on the three adapter platforms is tracked work (needs a uniform script-path resolution + per-platform testing), not yet shipped. Stale `cursor.mjs` header ("26 commands can't run there") corrected.

## [9.3.3] - 2026-05-30

A 4-agent adversarial review of the v9.3.x work surfaced real defects in the features just shipped; this release fixes them.

### Fixed

- **evidence-gate was bypassable.** A failing build log that also contained the word "SUCCESS" (cached-step note, banner) passed because success and failure were weighed equally. Failure markers are now DECISIVE (a definitive failure marker fails the claim regardless of success text), success markers were narrowed (dropped the generic `\bSUCCESS\b`), and caller-supplied `--success/--failure-pattern` are length-capped + compiled in a try/catch so a bad pattern is a clean usage error, not a crash. (`evidence-gate.mjs`, `smoke-evidence-gate.sh`)
- **intent-guard misclassified questions as tasks.** "does it support offline mode", "should we enable caching" were read as tasks (the imperative check beat the interrogative) and would spin up a worktree. A strong question signal (interrogative lead / trailing `?` / TR particle) now wins over a bare imperative verb; an explicit polite request ("can you split this file") stays a task. (`classify-intent.sh`, `smoke-intent-guard.sh`)
- **consensus block was decorative.** `validate-triage.mjs` validated the v3.1.0 consensus block structurally but never cross-checked it: `unanimous-block` + `approved:true`, `unanimous-pass` + an accepted blocker, and a single-reviewer "unanimous" verdict now all fail validation. (`smoke-phase4-triage.sh`)
- **A malformed `tokens_cached` poisoned the whole tokens call.** `log-metric.sh` now sanitizes a non-integer cached count to 0 before forwarding, so the valid in/out counts still land. (`smoke-agent-log-cost.sh`)

### Security

- **Stopped real maintainer/employer identifiers from shipping in the npm tarball.** The dev-only figma substitution map (a scrub table that by design holds real upstream values), the two personal-data scanners, and two internal planning docs were excluded from the package via negated `files` entries; stray corporate hosts / repo names / a private Jira key in CHANGELOG + docs examples were genericized. The leak gate now scans the published npm tarball (not just the install tree), closing the hole that let these ship in 9.3.0-9.3.2. The repo/package are private, so this was not a public exposure. (`smoke-install-leak-gate.sh`, `.npmignore`, `package.json` files)

### Changed

- README "What's new" refreshed to v9.3.3; em-dashes removed from README and the `MANDATORY` keyword removed from `install/templates/copilot-instructions.md` (project style rules).

## [9.3.2] - 2026-05-30

### Fixed

- **Cost-ledger cache pricing is now wired end-to-end.** v9.3.0 added `cacheReadPerMtok` pricing + a cache-reads line to `render-agent-log-cost.sh`, but nothing fed `tokens_cached` to the tracker, so the feature was dormant. `phase-tracker.sh tokens` now accepts an optional 4th `cached` arg (defaults to 0, fully back-compatible), `log-metric.sh` forwards `tokens_cached=` into it, and the Phase 4 telemetry doc documents passing the host's `cache_read_input_tokens`. Verified end-to-end in `smoke-agent-log-cost.sh`.
- `evidence-gate.mjs` made executable to match its sibling `.mjs` scripts.

### Changed

- README "What's new" refreshed to v9.3.x (was stale at v8.8.1).

## [9.3.1] - 2026-05-30

### Fixed

- **Learnings ledger no longer auto-suppresses rejected BLOCKING findings.** `learnings-ledger.mjs from-triage` previously distilled every rejected finding into a durable "do not re-flag" preference regardless of severity; a single wrong rejection of a blocking issue could permanently silence that class on future runs. Blocking-severity rejections are now skipped (reported as `skippedBlocking`); only lower-severity rejections become durable preferences, and they are recorded at `low` confidence.

### Added

- **`learnings-ledger.mjs forget`** subcommand to remove a bad or stale ledger entry by statement substring and/or kind (the one non-append operation), so a wrong learning can be cleared instead of persisting forever. Enforced by `smoke-learnings-ledger.sh`.

## [9.3.0] - 2026-05-30

### Added

- **Review consensus surfacing (anti-correlation).** Phase 4 triage now records an optional `consensus` block (triage-output schema v3.1.0): `reviewerCount`, a `verdict` (`unanimous-pass` / `unanimous-block` / `split` / `unverified`), and `disagreements[]`. Unanimous agreement among same-base-model reviewers on a judgment-heavy surface (security, auth, concurrency, money, migration) is marked `unverified` and surfaced to the user instead of being trusted as a pass. Disagreements are shown at the Step 4 checkpoint and written to the agent-log "Review Consensus" section. Validated by `validate-triage.mjs` + new fixtures in `smoke-phase4-triage.sh`.
- **Persistent learnings ledger** (`pipeline/scripts/learnings-ledger.mjs`, schema `learnings-ledger.schema.json`). A per-repo, append-only store of durable architectural facts, conventions, and explicitly rejected review preferences, stored next to the triage corpus. A compact `<repo-learnings>` brief is injected into Phase 1 analysis and Phase 4 triage so agents stop re-discovering structure and reviewers stop re-flagging rejected feedback (the most-cited cold-boot-amnesia complaint). Phase 7 distills each run's rejected findings into the ledger. On by default via `prefs.global.learningsLedger`; per-repo isolated. Enforced by `smoke-learnings-ledger.sh`.
- **Default-FAIL evidence gate** (`pipeline/scripts/evidence-gate.mjs`). A build/test/review "passed" claim is only trusted when a substantiating log artifact exists and shows success; the gate fails CLOSED on missing, empty, or contradicting evidence. Wired into Phase 3 (build), Phase 4 Stage 1 gates (build + test), and Phase 6 (commit). Enforced by `smoke-evidence-gate.sh`.
- **Conceptual-vs-edit intent guard** (`pipeline/lib/classify-intent.sh`). A deterministic, language-aware (EN + TR) classifier runs on free-text input at Phase 0; a question is answered in place instead of spinning up a branch/worktree. On by default via `prefs.global.intentGuard`. Enforced by `smoke-intent-guard.sh`.

### Changed

- **Secret pre-commit gate** (`pre-commit-check.sh`) extended beyond pattern matching: high-signal provider-token prefixes (GitHub PAT, Slack, Google API key, Stripe, npm, GitLab), JWT detection, and a Shannon-entropy scan that catches custom/unknown secrets while exempting lockfiles, integrity hashes, source maps, and snapshots.
- **Per-phase cost ledger** (`render-agent-log-cost.sh`) now prices prompt-cache reads at the discounted `cacheReadPerMtok` rate (cost-table schema 1.1.0; backward-compatible, defaults to 0 cached), appends a "Top cost driver" line so the report shows where spend went, and surfaces a cache-reads line when the tracker recorded cache hits.
- Uninstall header and package description refreshed to the current 5-platform set (Cursor / Antigravity / VS Code Copilot Chat), replacing stale Windsurf/Cline references.

### Fixed

- Cursor uninstall left an empty `.cursor/commands/` directory behind, and the `.cursor` parent-empty cleanup ran before orchestration teardown so the parent was never reclaimed. Both now clean up after the orchestration uninstall.

## [9.2.0] - 2026-05-30

### Added

- **Full-pipeline orchestration on three more platforms** (previously knowledge-layer only). Cursor (`.cursor/agents/ma-*.md` subagents + `.cursor/commands/multi-agent.md` + `.cursor/mcp.json`), Antigravity (`.agent/workflows/multi-agent.md` + `.agent/rules/` + `AGENTS.md` + `.agent/mcp_config.json`), and VS Code Copilot Chat (`.github/agents/ma-*.agent.md` + `.github/prompts/multi-agent.prompt.md` + `.vscode/mcp.json`). Each adapter transforms the pipeline personas into the platform's subagent/agent format and registers the dev-toolkit MCP server. Install with `--cursor` / `--antigravity` / `--copilot-chat` (or `--all-tools`).
- **Picker contract** (`refs/picker-contract.md`) + `pipeline/lib/ask-choice.sh`: a cross-platform single-choice abstraction so confirmations degrade gracefully where there is no native `AskUserQuestion` (numbered-menu fallback; `ASK_CHOICE_DEFAULT` for autopilot/CI).
- **Proactive token-budget cap** (`prefs.global.costBudget` + `cost-budget-check.mjs`): prices the phase-tracker accumulators live and warns/halts before spend runs away.
- **Eval harness** expanded from 2 to 7 golden tasks across all stacks and every triage bucket.

### Changed

- **Confirmations are now native pickers** instead of typed keywords (`AskUserQuestion` on Claude Code, degrading per the picker contract elsewhere). Removed the typed `y/N` / `onayla`/`iptal` prompts.
- **Command/skill instruction files are English** throughout (token efficiency + model comprehension); `outputLanguage` still governs all runtime user-facing text.
- Phase 5 (User Test) now runs only in interactive worktree-backed modes (`dev`, `full`); every autopilot/local variant skips it.
- Analysis->plan contract field names aligned across schema, validator, and phase docs; the "no MCP outside analysis" gate made enforceable (telemetry recorded + checked).

### Fixed

- Command-injection vectors in `diff-explain.mjs` and `figma-screenshot.sh`; `review-watch` cursor loss (re-reviewed PRs forever); `diff-risk` / `classify-plan-safety` / `match-skills` logic defects; `write-state` stale-lock deadlock; several pre-existing test failures (mode-dispatch drift, README/install-layout counts, token budgets).

### Removed

- Dead `--windsurf` / `--cline` / `--continue` / `--zed` install flags (the adapters were dropped in 8.5.4; only the advertising lingered).

## [9.1.1] - 2026-05-16

**Patch** - Pipeline-wide humanizer punctuation sweep. 558 files, 5660 character replacements. Pre-existing em-dash / en-dash / ellipsis / curly quotes / section sign codepoints (U+2013, U+2014, U+2026, U+201C, U+201D, U+2018, U+2019, U+00A7) replaced with ASCII equivalents per Locked decision 7 (humanizer punctuation policy is non-negotiable).

### Changed

- 558 pipeline files swept for banned characters. Top changes by file:
  - `pipeline/skills/skills-index.md`: 214 chars
  - `pipeline/commands/multi-agent/channels.md`: 103 chars
  - `pipeline/skills/shared/core/multi-agent/SKILL.md`: 97 chars
  - `pipeline/commands/multi-agent/setup.md`: 79 chars
- Mapping: `U+2014` -> `-`, `U+2013` -> `-`, `U+2026` -> `...`, `U+201C/D` -> `"`, `U+2018/9` -> `'`, `U+00A7` -> `section`.

### Excluded from sweep

- `CHANGELOG.md`: historical version blocks preserved as audit trail (humanizer policy applies to new content, not retroactive history rewrite).
- `pipeline/lib/md2confluence-v3.py`: PUNCT_MAP intentionally uses Unicode escapes (`—` etc) for replacement source; replacing the keys would break the converter.
- `pipeline/scripts/smoke-personal-data.sh`: pattern literals contain U+00A7 references for matching purposes.

### Verified

- Punctuation gate: 0 files with banned characters remaining (was 558 files, 5389 lines).
- Smoke gate `smoke-personal-data.sh`: 22 patterns clean, 0 leaks.
- `bash -n` clean on sampled scripts.
- `python3 -m py_compile` clean on `md2confluence-v3.py`.

### Migration notes

- No behavior change. Pure cosmetic / typographic consistency.
- Downstream consumers reading these docs see ASCII-only prose now. Code blocks, URLs, and front-matter YAML were already ASCII.

---

## [9.1.0] - 2026-05-16

**Minor** - Consolidation release. Locked decision category index (5 groups), Lite mode scoring relaxed from AND to 2/3, legacy v2 analysis soft-skip flag (`MULTI_AGENT_LEGACY_V2_ANALYSIS=allow`), dead helper cleanup, 31-command contract drift fix, broader PII smoke gate, and 6 measurable performance improvements across the hot path.

### Added

- `pipeline/commands/multi-agent/analysis.md` "Locked decisions Index by category": 30 decisions grouped into Governance, Citation and Evidence, Output Format and Structure, Design Source and Pipeline Architecture, UI/Variant/Test Coverage. Browse-friendly navigation; canonical numbering unchanged.
- Lite mode 2/3 scoring (Locked 25): each of three signals (spec lines < 100, figma frames <= 1, repo direct-match >= 8) scores 1 point; `liteModeAuto = (score >= 2)`. Previous AND-threshold (v8.12.0..v9.0.x) forced small features into Full mode when one signal was marginal. Explicit `--lite` / `--full` flags still win over scoring.
- Legacy v2 analysis soft-skip (Locked 30): Phase 2 and Phase 3 Pre-flight degrade `template_version: v2` analysis docs to warning mode when `prefs.global.legacyV2AnalysisAllowed == true` OR env `MULTI_AGENT_LEGACY_V2_ANALYSIS=allow`. Standards binding enforcement and Pass B footnote check drop to warning level; v3-specific section coverage checks skip. Escape hatch removed in v9.2.0.
- `pipeline/scripts/smoke-personal-data.sh`: 7 new patterns covering airline-specific brand literals, page ID ranges, and Keychain alias forms. Now 22 patterns total. Exclude list extended for `confluence-page-ids.example.json` and CHANGELOG historical references.
- `pipeline/skills/figma-ios/figma-to-component/scripts/confluence-page-ids.example.json`: placeholder schema reference file (5 generic entries) replacing the 91-entry corporate page ID inventory which moved to project-local storage.

### Changed

- 9 HIGH severity PII redactions across pipeline + Copilot skills (airline brand names, corporate page IDs, Keychain alias literals, accountId examples). Pipeline source and Copilot mirror aligned.
- `pipeline/commands/multi-agent/refs/cross-cli-contract.md` Section 1: "31 commands" enumeration drift fix - added `delete`, `diff-explain`, `language` to the visible list (they existed as files but were missing from the doc enumeration).
- 5 dead helper functions removed (~70 LOC total): `top_suffix()` from `extract-conventions.sh`, `auth_attempt()` from `fetch-fortify.sh`, `now_ts()` and `download_one()` from `figma-screenshot.sh`, `jq_get()` from `multi-repo-pipeline.sh`. All were defined but never called (inline duplication at the call site).

### Performance

Six measurable improvements on the hot path:

| Fix                                                                                                                                                                                   | Before                                                                    | After                                      | Speedup                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------------------------------------------------- |
| `smoke-personal-data.sh` pattern alternation (single grep vs 22 invocations)                                                                                                          | 3.348s                                                                    | 1.545s                                     | 2.2x                                                                              |
| `smoke-no-token-prompt.sh` multi-`-e` (single grep vs 7x7=49 invocations)                                                                                                             | 0.485s                                                                    | 0.014s                                     | 35x                                                                               |
| `phase-tracker.sh` render batched jq (U+001F separator preserves empty fields)                                                                                                        | ~7 jq calls per phase + ~3 per sub                                        | 1 batch + 1 per active sub/meta            | ~120 subprocess azalma per render                                                 |
| `issue-fetcher.sh` python3 batch (single inline vs 7 separate calls per fetch)                                                                                                        | 0.806s / 3 iter                                                           | 0.136s / 3 iter                            | 5.9x                                                                              |
| `md2confluence-v3.py` HTTP retry wrapper (3-attempt exponential backoff on 5xx / 429) + `ThreadPoolExecutor(max_workers=4)` paralel attachment                                        | sequential N x ~1.5s                                                      | parallel ~max(individual)                  | up to 4x on multi-screenshot pages, plus transient-error resilience               |
| `extract-conventions.sh` env override `EXTRACT_CONV_EXTRA_ROOTS` + auto-add `.gitmodules` paths, bucket timeout 30s -> 10s, `xargs basename` -> `awk -F/ '{print $NF}'` (8 callsites) | scan roots too narrow on monorepos with submodules; per-bucket 30s budget | submodule paths auto-detected, faster fail | resolves "confidence: none" on submodule-heavy repos; ~100-300ms saved per bucket |

### Verified

- `bash -n` clean on 9 modified shell scripts.
- `python3 -m py_compile` clean on `md2confluence-v3.py`.
- Smoke gate `smoke-personal-data.sh`: 22 patterns clean, 0 leaks.
- Smoke gate `smoke-no-mcp-in-dev-phases.sh`: behavior unchanged, mock fixtures pass.
- Pre/post smoke output byte-identical (behavior parity preserved despite faster path).

### Migration notes

- Existing v2 analyses still abort in default mode (v9.0.x behavior unchanged). Set `prefs.global.legacyV2AnalysisAllowed = true` or env `MULTI_AGENT_LEGACY_V2_ANALYSIS=allow` to opt into the soft-skip. Plan to regenerate v3 docs before v9.2.0.
- Lite mode now activates on 2 of 3 signals; existing analyses that previously rendered Full may now render Lite. To force Full, pass `--full` to `/multi-agent:analysis`.
- `cross-cli-contract.md` "31 commands" enumeration now matches reality. Smoke gate behavior unchanged - this was a documentation drift only.

---

## [9.0.0] - 2026-05-16

**Major** - Pipeline-wide design source contract: analysis document is the sole design source for Phase 2 through Phase 7. Figma MCP / REST calls are forbidden outside `/multi-agent:analysis` Phase 1. Phase 2 Planning and Phase 3 Dev gain BLOCKING pre-flight checks that abort the run when `analysis/<feature>-<platform>.md` is missing or below template `v3`. Locked decision 30 codifies the rule; smoke gate `smoke-no-mcp-in-dev-phases.sh` enforces it by reading `state.telemetry.mcpCalls[]` and failing any entry with `phase >= 2`.

This is a major bump because the pre-flight is hard - existing dev mode invocations that previously ran without an analysis document will now abort. The mitigation path is to run `/multi-agent:analysis "<feature>"` first.

### Why

Re-fetching Figma during Phase 2+ duplicates analysis work, burns MCP tokens, splits the design source of truth, and breaks the analysis -> dev contract. The user-facing pain in v8.x was Phase 3 silently calling MCP again, producing variants that drifted from the analysis Section 13.1 concept table. v9.0.0 binds Phase 2+ to the analysis document plus repo Code Connect mappings only.

### Added

- `pipeline/commands/multi-agent/refs/phases/phase-3-dev.md`: new "Phase 3 Pre-flight (BLOCKING, v9.0.0)" section (7 steps): analysis document presence, YAML front-matter parse, evidence digest cache validation, Code Connect mapping lookup, standards binding citation, conventions handoff (Pass B concept-to-realization), MCP forbidden gate.
- `pipeline/commands/multi-agent/refs/phases/phase-2-planning.md`: matching "Phase 2 Pre-flight (BLOCKING, v9.0.0)" section (5 steps): analysis presence, front-matter parse, section coverage check (required sections per Locked 2), task seed from analysis Section 14, MCP forbidden gate.
- `pipeline/rules/figma-pipeline.md`: new "MUST: No MCP outside analysis phase (BLOCKING, pipeline-wide)" section with phase access matrix, halt condition, rationale, and verification gate reference.
- `pipeline/commands/multi-agent/refs/rules.md`: new "Figma Access by Phase (pipeline-wide BLOCKING, v9.0.0)" matrix under existing "Figma Access Tier" section.
- `pipeline/scripts/smoke-no-mcp-in-dev-phases.sh`: smoke gate reading `state.telemetry.mcpCalls[]`. Fails when any entry has `phase >= 2`.
- `pipeline/commands/multi-agent/analysis.md`: Locked decisions 29 (variant usage explicit) and 30 (analysis self-contained, pipeline-wide MCP forbidden). Total Locked count now 30.

### Changed

- `pipeline/commands/multi-agent/refs/phases/phase-3-dev.md`: removed the 80-line legacy "MUST: Figma access 3-tier fallback chain" block. The 3-tier chain is exclusive to Phase 1 of `/multi-agent:analysis`; Phase 3 Dev now reads design context from the analysis document only. About 12 MCP / Figma fetch call sites cleaned up.
- `pipeline/commands/multi-agent/dev-local.md`: drift fix. Phase 4 (Review) references removed; header normalized to "5-phase fast pipeline (no worktree)" covering Phase 0, 3, 5, 6, 7 only.
- `pipeline/commands/multi-agent/refs/phases/modes.md`: Tablo 1 drift fix. Phase 5 (Test) cells now distinguish interactive prompt (normal, local, --dev, --dev-local) from skip (autopilot, local-autopilot, dev-autopilot, dev-local-autopilot).

### Migration notes

- Existing v2 / v8.x analyses are not v3 and will fail the pre-flight `template_version` check. Re-run `/multi-agent:analysis "<feature>"` to regenerate.
- If your dev mode invocation does not have an analysis document yet, run `/multi-agent:analysis` first. The pipeline now treats `/multi-agent:analysis` as a prerequisite for Phase 2+ work.
- Smoke gate runs after every pipeline invocation. CI invocations should add `bash pipeline/scripts/smoke-no-mcp-in-dev-phases.sh` to their post-run checks.

### Verified

- Personal-data smoke: 15 patterns clean, 0 leaks.
- Humanizer punctuation: zero hits in new content.
- `bash -n pipeline/scripts/smoke-no-mcp-in-dev-phases.sh`: zero output.
- Mock state fixtures: gate passes on `phase: 1` MCP entry, fails on `phase: 3` MCP entry.

---

---

Entries for v2.0.0 - v8.13.0 live in [CHANGELOG-archive.md](./CHANGELOG-archive.md) (repo only, not shipped in the npm tarball).
