Skip to content

tracking: close the open OpenAPI compiler and IR issues, in order #1918

Open

Description

@OmarAlJarrah

Goal

Every open issue about how an OpenAPI document compiles into the IR, and every open issue about the IR, its checkers and its passes, is closed by a merged change, with a probe that shows it fixed on main. The work lands as a small number of large pull requests, each one mechanism family, built so that the code is simpler to change afterwards than it is now.

Once this closes, an emitter can be written against the IR the golden spec compiles to without asking which spelling of a construct happened to lower correctly.

Problem

There are 152 such issues open, and they are not independent. Counted on 2026-11-14 at main @e1692560b:

gh issue list --state open --limit 1000 --json number,title --jq '[.[]|select((.title|test(
  "^(openapi[:+]|compilers/openapi:|ir:|irverify[:+]|irfacts:|irtest:|pass:|tracking:)"))
  or .number==425 or .number==432)]|length'    # → 152

Fixing them one pull request each has been tried: 28 merged pull requests over two days left eleven new issues behind, one of them P0 (#1907). Four things went wrong that a plan can prevent:

  • Pull requests in neighbouring areas settled shared questions apart (a field's meaning, a code, an option), and the disagreements were silent defects no test caught until both were built.
  • Every pull request that changed the IR claimed the same IRVersion, so each merge broke the rest.
  • Pull requests in one package conflicted with each other again and again.
  • Issues found during the work were left for later rather than routed to the change that owned their mechanism.

This issue is the plan and the state of that work. It is written so that someone with no memory of how it was drawn up can pick it up from "Start here".

Decisions already made by the maintainer (2026-11-14)

  1. fix(compilers/openapi)!: keep an undeclared explode unset #1784 and fix(compilers/openapi): read a JSON source as JSON #1497 are taken over by this work. Each is brought up to main, reviewed and merged.
  2. Design decisions are made by the architect of each area, decide whether issues included, and stand without sign-off. Each is recorded where the maintainer can overturn it later.
  3. The orchestrator merges a pull request that meets "Done" below with nothing in doubt. One with a doubt is left open with a comment saying what the doubt is.
  4. An issue shown already fixed may be closed, with the evidence as its closing comment.
  5. openapi: a bound beside a reference declaring no type lands in Constraints its target's type cannot take #1907 lands first, as a pull request of its own.
  6. Haiku clerks run at low effort. Every other role runs at its default.
  7. compilers/openapi: measure libopenapi against the current parser #248 is parked, and with it openapi: decode a document on the caller's goroutine, not one per node #1259 and openapi: the parser library's model can be built only by its own concurrent decoder #1469, which cannot be settled without its measurement.
  8. Agents may push branches, open draft pull requests and file issues without asking each time.
  9. harness: the order oracle never swaps allOf branches, so a branch-order verdict passes it #1666 is brought in and done before the schema work is designed.
  10. Validation and diagnostics issues are in scope. Token cost is a requirement, not a nicety: the least that loses no quality. Issues found along the way are part of the plan.
  11. Issues about GraphQL or about gRPC and Protocol Buffers are outside this work, whichever package their title names. One found along the way is filed and ranked, and left. A check that runs over every validation or pass, a GraphQL one among them, is not such an issue.
  12. pass: promote mutually-exclusive parameter groups to one parameter typed by a union #988 is resolved in operation-inference, by a design the maintainer asked to be rethought (2026-11-14): a choice among an operation's parameters is metadata over the untouched parameter list (Operation.ParamChoices), promoted from the extension by policy. The pull request closes it.
  13. Pace (2026-11-14): nine agents at a time, five writing; an agent lints the packages it touched before pushing; the narrowing rule for review fixes starts at round two, and a finding only in a pull request's body does not reopen a round. schema-composition's design still waits for bounds-beside-reference and order-oracle to merge.
  14. Larger pull requests (2026-11-14): each lane's later pull request is folded into its first as further slices: discriminators into schema-composition, use-sites into operation-inference, documents and overlay into source-reading, pass-validations into ir-contract. A folded part is designed now, against its lane's settled design and the branch as it stands, and no longer waits for the part before it to enter review. An implementer builds every slice that is not a foundation in one task where the slices share packages, or in parallel on side branches where their files are apart, joined by one merge. A foundation slice is still checked before anything is built on it; the whole pull request is still verified, structure-checked and reviewed to a clean round before it merges. Issues routed to a lane's follow-up join that lane's pull request while it is open.
  15. Nits after the second round (2026-11-14): from round three a review fixes issues only; each nit is recorded on tracking: nits recorded by reviews of the pull requests of #1918 #1944, which one cleanup pull request takes when the others have merged. A false statement where a reader will act on it, and a test that does not test its name, are issues and are fixed at any round.
  16. Finish what is open, then stop (2026-11-14): the work ends with the three pull requests open on that date, feat!: infer more of an operation and read what each use writes #1937 (operation-inference with use-sites), feat!: tighten the IR contract and check what a source says #1938 (ir-contract with pass-validations) and fix!: read sources, references and overlays by their standards #1940 (source-reading with documents and overlay), each carrying the parts decision 14 folded into it. No pull request is opened after them: schema-composition, whose design is settled and whose first part's tests are written, stays on a local branch and is not opened; diagnostics, the lane follow-ups, the nits pull request of tracking: nits recorded by reviews of the pull requests of #1918 #1944 and the closing sweep are not started. When the three have merged, this issue is updated with the progress made and with what the work taught about how to run the rest.
  17. Issues found along the way are placed (2026-11-15): the maintainer left it to the orchestrator to put the issues this work filed into the plan. Every open one now has a row under "Pull requests": eleven in schema-composition, by its settled design, and the rest in nine small pull requests grouped by mechanism, where the plan had one follow-up per lane. The grouping follows what the three folded pull requests showed, that review cost grows faster than the diff ("What the work taught"); decision 14's folds stand for schema-composition and nothing else is folded. The grouping is the orchestrator's and may be overturned, and an architect may move an issue between two of these rows at design time, saying why. Decision 16 still holds: none of it starts until the maintainer says so.

Start here

You are the orchestrator. Run on Fable; every other role is an agent you start, on the model its row in "Roles" names.

  1. Read this issue whole, then CLAUDE.md.
  2. Find the state. In order: the Progress list at the foot of this issue and its comments; gh pr list against the branch names in "Pull requests"; the working directory (below). Then reconcile three lists against the log: agents still running, worktrees, free disk.
  3. If there is no ledger, begin at "Phase 0". Otherwise continue from the first unticked line of Progress.
  4. Keep the state current in this body, not in a comment (.claude/skills/morphic-planning-work/references/large-changes.md#tracker-state-in-its-body): tick Progress when a pull request merges, and at the end of each wave add a dated state section under Progress saying what merged, what was filed, and what changed in the plan. Before the state changes, each lesson under "What the work taught" names the rule or issue that holds it (.claude/skills/morphic-curating-skills/references/recorded-lessons.md#recorded-lesson-goes-to-the-skills). If the plan itself changes, edit this issue's body; the body is always the current plan.

The working directory is outside the tree (the maintainer's is .git/morphic-sweep/). It holds ledger.tsv, log.md, designs/, briefs/ and the shared inputs. Earlier designs for several areas are in its designs/, written before 28 pull requests merged: input, never truth. If the directory is missing, create it; nothing in the plan depends on its old contents.

What the orchestrator never does: implement, review line by line, read a diff or a transcript. It reads reports and contract headers, routes, and merges.

Roles

A step goes to the cheapest model that cannot get it wrong in a way a later step would miss.

Role Model Does Never does
Orchestrator Fable Holds the ledger, the lanes and the train; runs gate G2; merges Implements, reviews, reads a diff
Architect Fable Re-probes its area, finds each mechanism, makes every decision, writes the design Commits
Structure pass Fable Judges where the built code departs from the design, and the shape of the diff Line-level review
Design red team Opus Tries to break a design by probe and by the standards' text before it is built Rewrites the design
Implementer Opus Lowering, IR shape, binder, reader: anything with judgement in it Changes a decision or an expectation
Reviewer Opus, fresh each round Reviews by morphic-reviewing-prs and fixes what it finds Reviews a head it wrote on
Security reviewer Opus Lane L: what a remote or hostile document can make the compiler read, request or keep
Train merger Opus Brings a finished pull request up to main and takes its IRVersion Changes behaviour
Test author, then verifier Sonnet Writes a slice's tests from the design before the code exists; afterwards plants each defect, runs the differential, measures Reads the implementation first; rules on a result
Mechanical implementer Sonnet Table-shaped work a design has settled: renames, checks from a table, promotion rows, doc entries, CI fixes for lint, coverage and doc caps Decides anything
Clerk Haiku, low effort Runs a reproduction and quotes what came out; tracker searches; greps; CI status and log extracts; citation sweeps Judges, edits, files

The model is passed explicitly on every agent started, since an agent's default may be the orchestrator's own.

Tests are written by someone other than the implementer because a test its author also made pass agrees with the code by construction. Written from the design first, it can disagree.

Pull requests

Seven new ones and the two taken over (five were folded into their lane's pull request on 2026-11-14: decision 14). Together they close 145 issues: the 144 in the rows the plan began with (#1666 among them, from outside the count above) and the tracker #1643. Eleven more rows, from composed-members down, were added on 2026-11-15 for the issues found along the way (decision 17).

Name Branch Issues Implementer Red team
explode (#1784) fix/openapi-undeclared-explode 627 review and merge only no
json-source (#1497) fix/openapi-json-decode 900 review and merge only no
bounds-beside-reference fix/openapi-bounds-beside-reference 1907 Opus yes
order-oracle test/harness-order-allof-branches 1666 (merged); reopened for 2340 2343 Opus no
schema-composition fix/openapi-schema-composition 2209 2133 2086 2084 2083 2073 2324 2067 2113 2213 2125 2057 2072 2118 2119 2122 2126 2127 2128 2092 2065 2064 2066 2091 2070 2100 2325 2210 2107 2039 2062 2116 2117 2048 2049 2082 2056 2058 2042 2326 2101 2108 2115 2110 2111 2104 2105 2106 2112 2089 2054 2047 2046 1859 2121 2120 2109 2090 1906 1903 1967 2327 1908 1895 2004 2043 1888 2103 1883 1904 1570 2208 1671 1857 1889 1894 1901 2005 2040 2041 1866 2099 2123 1992 1921 1931 2124 1851 2332 1950 1993 1994 1995 2337 1863 1798 1806 1829 1844 1807 1828 1008 2006 2051 2052 2060 2102 2313 2316 2328 2184 2202 2183 2186 2191 2203 2207 2212 (plus #2211 tracker; detail selection (#2184 and siblings) conditional on #2185) Opus, in slices yes
operation-inference feat/openapi-operation-inference 1815 1816 1827 1841 1842 1723 1876 1668 1873 1799 1847 1460 1823 988 887 396 1870 1805 1321 823 1911 1029 1101 1221 1872 849 1662 1663 1871 1853 1052 1837 649 1869 1791 1316 Opus for the readers; Sonnet for vocabulary and promotion rows yes
source-reading fix/openapi-source-reading 1767 1769 1880 1368 1793 1571 1284 1324 1877 1108 1078 1079 1033 880 1796 1429 571 1499 1075 863 1051 1297 1885 1886 1372 1652 1896 1860 1884 1910 937 1834 1835 1836 Opus; Sonnet wires the overlay compliance suite yes; the compliance suite is the overlay's adversary
ir-contract fix/ir-contract-and-checks 1527 1528 678 1624 1523 859 1138 1150 1152 1155 1267 1190 860 590 1832 575 1250 1261 1218 792 817 642 643 1300 1412 1418 1546 1421 Opus for identity and walks; Sonnet for checks, pins and the pass validations yes, identity and walks only
diagnostics refactor/diagnostic-codes 1845 1843 1802 1801 1664 1129 1573 1862 692 739 Sonnet for the code sweep; Opus for locations (#692, #739) no
fetch-limits fix/engine-fetch-limits 1036 1943 1947 1969 2023 2031 Opus, with the security reviewer on the whole guard yes
binding-follow-up fix/openapi-binding-followup 1958 1968 (1967 moved into schema-composition) Opus no
scalar-reading fix/openapi-scalar-reading 1975 1976 1973 1974 (1950 moved into schema-composition) Opus yes
overlay-cost perf/openapi-overlay-cost 1959 1960 Opus; the verifier measures both shapes no
shared-node-findings fix/openapi-shared-node-findings 1970 1971 1972 1945 Opus no
operation-cost perf/openapi-operation-reads 1955 1965 Opus; the verifier measures both shapes no
operation-follow-up fix/openapi-operation-followup 1956 1961 2038 Opus no
ir-follow-up fix/ir-followup 1957 1949 1952 1954 2069 2178 2192 2329 2333 2341 Opus for the findings bound (#1957); Sonnet for the rest no
nits chore/review-nits 1944 Sonnet no
notes — (in flight in #2187 and #2194) 2150 2071 2188 2189 2193 2195 2196 2197 2199 2200 2061 other contributor no
composition-follow-up fix/openapi-composition-followup 2330 2331 2338 2339 2334 2335 2336 2342 2344 2345 Opus no
skills chore/skills-gaps, then chore/skills-gaps-2301-2372 (#2379) 1930 1948 1962 1963 1964 1966 (merged); 2346 2347 2348 2349 2350 2351 2352 in #2379, with every other skills: issue filed up to #2407 Sonnet, by morphic-curating-skills no

Issues found along the way (state on 2026-11-15). 53 were filed. Eight joined the pull request that was open in their lane and closed with it: #1929 and #1935 with #1938; #1925, #1928, #1934, #1941, #1942 and #1946 with #1940. Eleven are in schema-composition's design and its row above. The other 33 that are open each have a row of their own now, grouped by the mechanism they share and not by the pull request that found them: each is a limit a merged pull request stated, a decision it left, or a defect that predates it. Two older issues join them: #1857, which schema-composition's design leaves out, and #1036, whose choice #1940 left open. None of the eleven new rows is designed. Outside every row: #1953 (decision 11). On 2026-11-16 #1977 filed four limits it states, routed by mechanism: #1992, a minted model's ID naming the branch written last, beside #1921 in schema-composition; #1993, #1994 and #1995, bounds of the member settlement #1977 builds, in composed-members.

The lists were sorted from issue text, not from probes. Phase 0 re-probes every one, so expect a few to move, split or close early; the ledger, not this table, is then the truth. #1643 tracks steps in schema-composition and pass-validations and closes when the last of them does.

decide whether issues, settled by the architect of their pull request: #1906, #1883, #1992 (schema-composition), #1663, #1791 (use-sites), #1880 (source-reading), #1624, #1523, #1155 (ir-contract), #1973 (scalar-reading), #1945 (shared-node-findings), #1956 (operation-follow-up), #1949 (ir-follow-up).

Lanes and order

One writing pull request per lane at a time; all of them land through one merge train.

Lane Works mostly in Order
S schema, merge, annotation, union and discriminator lowering bounds-beside-reference, then schema-composition, then discriminators, then composed-members
O operation, pagination, promotion, parameters, content, reference objects operation-inference, then use-sites, then operation-cost, then operation-follow-up
L load, bind, resolve, engine/reader json-source, then source-reading, then documents, then overlay, then fetch-limits, binding-follow-up, scalar-reading, overlay-cost, shared-node-findings
I ir, irverify, irfacts, irtest, pass ir-contract, then pass-validations, then ir-follow-up
H internal/harness order-oracle

Then, alone, with every lane idle: diagnostics. After it, nits and skills, which touch what every lane wrote.

shared-node-findings changes where lowering places a kept entry for #1945 (lane O), so it lands when lane O is idle (#1950 moved into schema-composition).

  • bounds-beside-reference is first of everything, since it is P0. It needs only its own rows of the ledger, not the whole of Phase 0.
  • order-oracle lands before schema-composition is designed. The order oracle does not swap allOf branches today, and schema-composition is about what allOf branches lower to. What the widened oracle finds on the corpus is filed and routed by "Issues found along the way", most of it into schema-composition's design.
  • diagnostics is designed first and landed last. Its scheme (one severity per code, a code per kind of finding) is fixed in Phase 0 so every other pull request writes new reports to it. The sweep of existing codes touches every package, so it lands when nothing else is open.
  • explode merges before use-sites starts; json-source before source-reading. If json-source is not merged when Phase 0 ends, lane L starts with documents.

The lane table says where a lane mostly works. Ownership is by file, because the issues were sorted by theme and some reach across (#1853 and #1220 sit in lane O and name schema and lowering):

  • A design's file map lists every file it changes. G2 refuses a design whose files overlap those of a pull request in flight, bar the cases below.
  • A file two lanes need is changed by the pull request that owns its mechanism; the other lands after it, as an entry in the train's order. A package every lane reads (diag, budget, ids, nodeview, lowering, provenance) is changed only where the design says why no narrower place will do.
  • ir/ and pass/ belong to lane I, with one exception: a pull request in another lane adds the field the contract memo gave it, with its irverify check and its docs/ir text, and the pass check that belongs to its mechanism. Nothing else.
  • Files every pull request appends to (the lowering specification, the version files, the census and names goldens, a conformance matrix.md, the harness's known findings) will conflict, and are resolved at the train.

Cost rules

Measured on an earlier review here (#1532): the orchestrating context cost three times all the agents it started, most of it re-reading itself; every agent pays a fixed cost to load the rules and the code around its files; and review rounds did not converge unaided. So, largest lever first:

  1. The orchestrator stays small. It reads reports of at most 300 words and each design's contract header of at most 60 lines (decisions, fields, codes, options, files, must-land-after). All state is in the ledger, the log and this issue, so each wave can start in a fresh context.
  2. Fewer agents, not smaller ones. A role joins a pull request only where the table gives it one. No memo per decision: the architect already reading the area decides. A reviewer fixes its own findings; independence comes from the next round being fresh.
  3. Every changed line gets one full first read. A foundation slice (one that later slices build on, marked in the design) is reviewed when it finishes. Round one of the whole review reads only the slices not yet read, and how the slices meet. A later round reads what changed since and what reads it, nothing else.
  4. Mechanical checks run before a reader does. Plants, the differential and the clerk's greps are inputs to the reviewer, so a round is not spent finding what a grep finds.
  5. An agent reads what its role needs. A design carries a file map (file, symbol, line range) per slice; an implementer gets its slice's section and the contract header, not the whole design. Each role's brief names the skills it loads; a clerk loads none.
  6. Nothing waits inside a live context. An agent that needs CI or a long run reports and ends; a clerk reads the result. No agent rebuilds what Phase 0 built once. An agent is resumed only within the hour; after that a fresh one starts from the last report.
  7. Work that is not needed is not done. An issue shown fixed is closed, not designed. The red team runs only where the table says. The closing scan is mechanical first, read only at its hits.
  8. Measured, not assumed. After the first wave, cost per pull request by role, counted from the transcripts by unique message, each kind of token priced apart. The role that cost most for the fewest confirmed findings is cut back or moved to a cheaper model for the next wave.

Kept at full strength, because cutting them is where quality would go: the Fable design, tests written apart from the code, a planted defect per test, the differential against main, fresh reviews until one finds nothing, the security pass in lane L, the structure pass.

No process makes work perfect. What this one guarantees is narrower and checkable: every claim is tested by something that did not produce it.

Phase 0: ground truth

Nothing is designed before this is done, bar bounds-beside-reference.

  1. Shared inputs, first of all and built once into the working directory: a main binary, the golden spec (CLAUDE.md, "Priority", says how to fetch it) with its revision recorded, so every number quoted later names it, its compiled IR and diagnostics, the list of specs under testdata/, and the path of the maintainer's corpus of real-world documents, which is read in place and never copied into the tree.

  2. Ledger. From a fresh snapshot of the tracker; an issue opened since this plan was written is routed by "Issues found along the way". Clerks, ten issues each, run every issue's own reproduction on the main binary and return, per issue, what came out, quoted: reproduces as written, output differs, or no reproduction in the body. A clerk's row is a lead, not a verdict; the architect of each area re-probes its own rows. ledger.tsv holds: issue, state, pull request, slice, who found it, and its acceptance probe (spec, command, expected output), rerun on main after the merge. The architect writes that probe, since the expected output is a decision, and G2 refuses a design holding an issue without one.

    An issue is closed as already fixed only when the architect confirms it on main and names the commit that fixed it, by the probe failing on that commit's parent.

  3. Contract memo. One architect, two outputs.

    An architect who later finds the memo wrong amends the memo. No design departs from it alone.

  4. Role briefs written into the working directory from "Role briefs" below, with the paths of the shared inputs filled in.

  5. Second writers. Before a lane starts: no other open pull request touches its files, and no other worktree holds its branch.

  6. The two taken over. Each of fix(compilers/openapi)!: keep an undeclared explode unset #1784 and fix(compilers/openapi): read a JSON source as JSON #1497 was opened by another contributor on a branch in this repository. Before the first push, a comment on the pull request says the work is being finished here. A train merger brings it up to main (both conflict today); then it enters the pipeline at "Review", read against its own body in place of a design. fix(compilers/openapi): read a JSON source as JSON #1497 gets the structure pass; fix(compilers/openapi)!: keep an undeclared explode unset #1784 is small enough to go without.

The pipeline every pull request runs

Design

  • One architect per pull request, in a read-only worktree. It says what is deleted or folded together as well as what is added: a design that adds a second reader of one thing, or a helper with one caller, is not accepted.
  • It cuts the pull request into slices of four to eight issues sharing one mechanism, each a run of commits that builds and passes, each with its file map, its test matrix, and one planted defect per row of the matrix.
  • G1, red team, where the table says. One agent, 60 tool calls, tries to make the design give a wrong result: a spec it mishandles, a standard's text it misreads, a site of the mechanism it missed, a cap in internal/archtest it would break. The architect answers each finding in the design.
  • G2, sibling check, by the orchestrator, on contract headers only: one name, one meaning and one owner for every field, code, option and file across the open designs and the contract memo; every issue has its acceptance probe; every "must land after" becomes an entry in the train and a blocked-by relation on the issues. A red-team finding the architect rejects is settled here.
  • Decisions stand as the architect made them. Each goes into the design, is lifted into the pull request's body under a Decisions heading, and is stated in the documents the change edits, so the maintainer can read them in one place and overturn one with a new issue.

Build: slice by slice, one branch, one worktree

  1. The test author writes the slice's matrix from the design alone: the spec fixtures, and tests through the package's public face asserting the facts the design names (this field of this node, this code at this pointer, in both declaration orders). It writes no golden.
  2. A fresh implementer builds until the matrix passes. Its first input is the previous slice's report. It may fix what stops a test compiling (a name, a signature) and lists each such fix; it may not change an expectation or a decision. Where one is wrong on real input, it stops on that point, records the probe and the smallest correction, and reports it. It writes the unit tests of the internals it adds, and regenerates the goldens.
  3. The test author, resumed as verifier:
    • plants each named defect, the implementer's unit tests included, and returns plant, test, red or green;
    • runs the differential over testdata/, the golden spec and the real-world corpus, main against the branch, the IR and the diagnostics as a multiset, marking each differing line as one the design predicted or not;
    • measures each cost shape the design names;
    • where the slice changes code more than one goroutine runs, runs go test -race -count=1 over each package it touches. The gate runs no race detector, so nothing else would.
  4. A foundation slice is reviewed now. Others wait for the whole review.

A golden is generated from the code, so it agrees with the code by construction. It is evidence only once a reviewer has read its diff against the IR the design expected.

The pull request opens as a draft when slice one is pushed, so CI runs on every slice. A pushed branch is never rewritten. When CI is red, a clerk extracts the failing lines: a lint, coverage or doc-cap failure goes to a mechanical implementer, a failing test to the slice's implementer.

Review

  • G6, structure, first, because a structural change is the dearest one to make late: the departures from the design and the shape of the diff, nothing line by line.
  • G5. A fresh reviewer per round, by cost rule 3. The first two rounds fix every issue: and nit:. From round three a round fixes each issue: and records each nit: on tracking: nits recorded by reviews of the pull requests of #1918 #1944, and the review ends at the first round from the second on that returns no issue:. Not a nit, so fixed at any round: a false statement in a normative document, a diagnostic's message, a doc comment's claim or the pull request's body, and a test that does not assert what its name says. From round two a fix narrows a claim, states a limit or deletes, before it adds anything. A finding that sits only in the pull request's body is fixed there, by that reviewer, and does not make the round unclean. A round whose findings all sit in the previous round's fixes goes to the orchestrator, which decides what to simplify rather than starting another round.
  • Security pass for lane L, before G5's last round.
  • Any commit after a clean round reopens the review for that commit and what reads it: a security fix, a CI fix, a merge of main that had conflicts.
  • Clerk checks: every acceptance probe rerun on the final head; nothing in added lines, commit messages or the pull request's body says how the work was produced; the title's length with its number; links and lowering-specification citations resolve; no attribution lines.
  • CI is the gate. An agent runs locally only what CI cannot (probes, plants, differentials, measurements, the race run above) and a lint of the packages it touched before a push.

Done

A pull request is done when:

  • a G5 round has returned no issue: on the head that will merge (and no nit: if it is the first or second round), and G6 stands;
  • CI is green on that head;
  • every issue it closes has a green acceptance probe on that head;
  • every line of the differential is one the design predicted, or is explained in the body;
  • each limitation is stated in the code and in the body;
  • every defect it turned up outside its mechanism is filed, ranked and routed.

"Nothing in doubt", for the merge: all six hold, no departure from the design is unjudged, and no agent's report on it ends with something it could not check. Anything short of that is left open with a comment naming the doubt.

The merge train

  • One queue across the lanes. A pull request joins when it is done.
  • At the head of the queue a train merger, in the pull request's worktree: merges main in; takes the next IRVersion (no branch picks its own before this); checks the generations table and the version history for a version listed twice; checks that git diff origin/main is exactly the pull request's own change; reruns the differential if a pull request sharing its files merged since its review; waits for CI on that head. A merge with conflicts outside the files every pull request appends to gets a scoped review round first.
  • The orchestrator then squash-merges, by decision 3 above. The subject is the pull request's title as GitHub holds it, never typed, checked to be 72 characters or fewer with its number; the body is the pull request's link.
  • After each merge a clerk reruns the closed issues' acceptance probes on main, confirms each is closed, and sweeps what cites them. A probe that fails reopens its issue. tracking: allOf lowerings that give wrong or lossy IR, in order #1643 is closed by the clerk when its last step closes.
  • A failure of the nightly race run on main is a regression: routed as one, below.

Issues found along the way

New issues are part of the plan, not what is left after it.

Where they come from. No agent is sent hunting. The pipeline's own steps find them: the red team, a line of the differential the design did not predict, a reviewer, the security pass, the widened order oracle, an acceptance probe failing after a merge. The one active search is the closing sweep.

Filing. By CLAUDE.md's "Filing issues", after a clerk's search of the tracker, closed issues and issues citing the pull request included. ## Cause names the rule or symbol, and Related: names the pull request it was found in; the orchestrator routes on those two without re-reading the issue. An unfiled defect that hits the golden spec is filed P0.

Routing, first rule that applies:

The new issue Goes to
is a site of a mechanism a pull request in flight is fixing that pull request, as a row of the slice's matrix written by the test author, with its planted defect; if it needs a decision, the architect is resumed for that point only
belongs to a pull request not yet designed that pull request's rows in the ledger
belongs to a pull request still building, in another mechanism a further slice, added to its design by the architect
is a regression this work caused, or P0 or P1, in something already merged a fix of its own, ahead of the lane's pull request in the train
is anything else in something already merged the lane's follow-up pull request
is outside the scope (GraphQL, gRPC and Protocol Buffers included), or is a flaw in a skill an agent used filed and ranked, and left

A defect in another mechanism is never fixed in the pull request that happened to find it. Routing moves it to the owner of its mechanism; it does not widen the finder.

Signal. Three or more new issues in one merged pull request's own mechanism means its design missed the mechanism, not three sites of it. The architect re-reads it before the follow-up is designed.

When the work is finished. Not when the listed pull requests have merged. It is finished when the ledger holds no open issue in scope but those under "Out of scope", and a closing sweep files nothing new in scope: the harness oracles over testdata/ and the real-world corpus, the JSON Schema Test Suite for each draft, and main against main as Phase 0 found it on the golden spec, every differing line traced to a merged pull request. What the sweep does file goes once more through the lanes' follow-ups. A second sweep that still finds defects in scope goes to the maintainer with the count, rather than round again.

Limits

  • At most nine agents at a time, at most five of them writing (one per lane). Clerks are not counted, but at most four run at once.
  • The orchestrator makes each worktree at the right base; an agent is pinned to one path, checks HEAD first and stops if it is wrong. One writer per branch.
  • Agents the orchestrator can message and resume, started in the background; not a fixed script, which can do neither.
  • Every brief carries a tool-call budget. No agent waits on another process or starts an agent.
  • A stalled agent is replaced from the ledger and its last report, not resumed blind.
  • Builds share one Go cache; a finished lane's worktree is removed; free disk is checked before a wave starts and before any long run.
  • The disk can fill, and has: four lanes building, planting and compiling the golden spec grow the Go build cache by tens of gigabytes. When it does, builds fail with no space left on device and agents report failures that are not defects. Then: stop starting agents; remove orphaned go-build* directories under $TMPDIR first; if that is not enough, run go clean -cache once no build or plant run is in flight, since it invalidates every running one; rebuild the shared binaries; and treat any failure reported in that window as unproven until it is rerun.
  • At each wave's end, what it taught goes into the role briefs. A lesson that should outlast this work goes into the repository's skills as a small pull request of its own, outside the lanes.

When to stop and ask the maintainer

The leave given above is wide, and these are outside it. On any of them the lane stops, a comment on this issue says why, and the other lanes carry on:

  • a decision that would change one of the numbered invariants in CLAUDE.md, or the meaning of a field an emitter document already reads in a way that document cannot follow;
  • anything that cannot be undone: rewriting a pushed branch, deleting a branch or closing a pull request this work did not open, reverting something on main;
  • a pull request that is done by the list but in doubt;
  • a second closing sweep that still files defects in scope;
  • a change to the scope, the parked issues or the decisions above;
  • anything this plan does not cover and a wrong guess would be costly to reverse.

Order of work

Every pull request runs the whole pipeline, follow-ups and urgent fixes included; a fix of one issue is a design of one slice.

  • Close: the closing sweep, and a duplication and cross-reference scan of compilers/openapi, ir and pass for what parallel work built twice. A cleanup pull request only if it finds something.

Role briefs

Each is the whole prompt for its role, after the common rules and the names of its worktree, its pull request and its inputs.

Common rules, in every brief

  • Start every command with cd <your worktree> &&. Never touch another worktree or the main checkout. Check HEAD is the commit you were given; if not, stop and say so.
  • Read CLAUDE.md at the root. Load only the skills your brief names. A skill is a claim to check: say in your report where one was wrong or missing.
  • Verify by executing: compile the input and read the IR and the whole diagnostic list. A count or an every/never claim comes with the command that derives it.
  • Nothing you write in the repository or on GitHub says how the work was produced: no design document, brief, slice, probe label, tool, model or assistant, and no attribution line. Lift what you need into the repository's own plain register.
  • Never force-push, rebase or amend a pushed branch, push to main, merge or close a pull request, or delete a branch. New commits, pushed as a fast-forward, are the only way a branch changes.
  • Put nothing private on GitHub or in the tree: no local path, and no name of the corpus of real-world documents, which is cited only as counts.
  • A defect outside your task is filed, not fixed: search the tracker first, closed issues included.
  • Run locally only what CI cannot, with one exception: before a push, lint the packages you touched (golangci-lint run over those paths) and fix what it reports. Never run the whole gate. Start no agent. Wait on nothing.
  • Stop at your budget and report what you have. Your report is your final message, in plain text, within its word limit; it ends with what you did not check.

Architect (Fable; skills: morphic-openapi-compiler or morphic-changing-the-ir for the area, morphic-designing-code, morphic-verifying-changes; 150 tool calls)

Design one pull request that closes the issues named. For each issue: reproduce it on main with a minimal spec, find the root cause by file and symbol, and sweep every site of the mechanism. An issue's Direction is a draft; where several issues are one mechanism, design the one fix. Decide every open question, decide whether issues included, on correctness for a consumer on real input first, then the invariants, the standards' own text, what the emitter design can read without guessing, order-independence and bounded cost; measure each premise on the golden spec and testdata/; say what you rejected and why. Design the simplest correct structure in the repository's style, name what is deleted or folded together, and check it against internal/archtest's rules and caps. Keep to the contract memo, or amend the memo. Write the design to the path given: a contract header of at most 60 lines (decisions, fields, codes, options, every file changed, must-land-after), then per slice its issues, its file map, its order of commits, its test matrix with one planted defect per row, the lines of the differential it predicts, the cost shapes to measure, and each issue's acceptance probe. You commit nothing. Report in 300 words: the decisions, a line each; issues ruled out and why; issues filed.

Design red team (Opus; skills as the architect's; 60 tool calls)

A design is at the path given. Make it give a wrong result. Write specs it mishandles and compile them on main to show what a correct result must be; check each standard it quotes against the standard's text; find a site of each mechanism it missed; find a layering rule or cap it would break; find where it disagrees with the contract memo. Do not redesign. Report in 400 words: each finding with its spec, the design's answer and the right one, ranked must or should.

Test author (Sonnet; skill: morphic-verifying-changes; 80 tool calls)

Write the tests of one slice from the design alone, before its code exists. For each row of the matrix: the spec fixture, and a test through the package's public face asserting the facts the row names, in both declaration orders where the row says order matters. Write no golden and read no implementation. Compile each fixture with the main binary to confirm it is the document you meant, valid where the row says valid. A test may fail to compile against names the design declares and the tree does not have yet. Commit, do not push. Report in 200 words: the tests by matrix row, and any row you could not express and why.

Implementer (Opus; skills: the area's, morphic-designing-code, morphic-verifying-changes, morphic-shipping-prs; 250 tool calls)

Build one slice of a settled design. Read the contract header, your slice's section and the previous slice's report. Follow the order of commits; each builds and passes. Make the slice's tests pass. You may fix what stops a test compiling and must list each such fix; you may not change an expectation or a decision. If one is wrong on real input, stop on that point, record the spec, the observed and the expected result and the smallest correction, and report it first. Add unit tests for the internals you add, regenerate the goldens, and update the documents the design names. Before pushing: gofmt -l, a build, and go vet ./... after any change to an exported signature. Push as new commits; on slice one, open the pull request as a draft with a title and body by morphic-shipping-prs. Report in 300 words: what was built; every departure from the design and why; every compile-only fix to a test; what the next slice needs to know.

Verifier (Sonnet, the test author resumed; skills: morphic-verifying-changes, morphic-measuring-performance where a cost shape is named; 120 tool calls)

For the slice just built, in a throwaway copy of the worktree: plant each defect the matrix names, and one per unit test the implementer added, and record plant, test, red or green. Build the branch's binary once and run the differential against main's over testdata/, the golden spec and the real-world corpus, comparing the IR and the diagnostics as a multiset; mark each differing line as one the design predicted or not. Measure each cost shape the design names. Where the slice changes code more than one goroutine runs, run go test -race -count=1 over each package it touches. Print facts; rule on nothing. Report in 300 words, the tables first.

Structure pass (Fable; skills: morphic-designing-code, morphic-changing-the-ir where the IR moved; 60 tool calls)

A pull request was built from the design at the path given. Judge two things only. Each point where the code departs from the design: does the departure stand, or what must it be. And the shape of the diff: package boundaries, what each new type guards, whether anything has two readers or a seam with no user, what a later reader must know to change it. No line-level review. Report in 400 words: one block per point, stands or change, each change concrete enough to implement and ranked must or should.

Reviewer (Opus, fresh each round; skills: morphic-reviewing-prs and every skill its angles name; 200 tool calls)

Review the range given, on the tree as it will merge. You have the design (for a pull request taken over, its own body), the pull request, the verifier's tables and the structure pass's verdicts, and none of the author's reasoning. First: did the code build the design, row by row of the matrix; is each departure right on real input; is the design wrong on real input anywhere. Read each golden's diff against the IR the design expected. Then everything the review skill asks. In round one read every line of your range; in a later round, what changed since the last and what reads it. Disprove each of your findings before you keep it, then fix what survives as new commits and push; from round three, fix each issue: and record each nit: as one comment on #1944 (file and line at your head, what is wrong, the change that fixes it) without fixing it. From round two, a fix narrows, states a limit or deletes before it adds. A finding only in the pull request's body is fixed there and does not make the round unclean. Report in 300 words: the head you read; each issue: and nit: with its fix; whether the round was clean; what you did not reach.

Security reviewer (Opus; skill: morphic-openapi-compiler; 80 tool calls)

This change touches how documents are read. With external references allowed and with them refused, probe what a remote or hostile document can make the compiler do: read a local file, request a private address, follow an identifier or a mapping value where it would refuse a $ref, keep content past a budget, or leave content hidden behind an alias or an overlay action. Compare each probe with main. Fix what you confirm as new commits, each with a test that reddens without it. Report in 300 words: each probe, main's result, the branch's result.

Train merger (Opus; skills: morphic-shipping-prs, morphic-changing-the-ir where a version moves; 60 tool calls)

Bring this pull request up to main by merging, never rebasing. Where it changes the IR's shape or meaning, take the next IRVersion after main's: keep main's rows and entries exactly, append this pull request's, and check no version is listed twice in the generations table or the version history. Check that git diff origin/main adds and removes exactly what the pull request's own change did before the merge. Push. Report in 200 words: the conflicts and how each was resolved, the version taken, and whether any conflict lay outside the version files, the lowering specification, the goldens and the harness's known findings.

Mechanical implementer (Sonnet; skills: morphic-checking-style, morphic-shipping-prs; 100 tool calls)

Apply a settled table: the design gives every site and what it becomes. Change nothing the table does not name, and decide nothing. A site that does not fit the table is reported, not solved. Push as new commits. Report in 200 words: sites changed, sites that did not fit.

Clerk (Haiku, low effort; no skills; 40 tool calls, 60 for a ledger batch)

Do exactly the task given and return what you saw, quoted. Do not judge, edit or file. The tasks are: run an issue's own reproduction with the binary given and quote the output and the exit code; search the tracker for a symbol or construct, open and closed; grep added lines, commit messages and a pull request's body for a list of words; measure a title's length with its number; read a CI run's status and quote its failing lines; rerun an acceptance probe; list what cites a closed issue.

Progress

State on 2026-11-15: the work stops here (decision 16)

main is at 5e35309 (IRVersion 0.68.0). The three pull requests decision 16 named have merged, so nothing below is started until the maintainer says so. No agent is running and no pull request of this work is open.

Pull request Parts Merged as Closes
#1784 explode 8cdc7a8 (0.65.0) #627
#1497 json-source c8fb18b #900
#1927 bounds-beside-reference 14ecaa3 (0.66.0) #1907
#1926 order-oracle 819f916 #1666
#1938 ir-contract, pass-validations 939c367 (0.67.0), after five review rounds 29 issues, listed in its body
#1937 operation-inference, use-sites 55e4dab (0.68.0), after six review rounds 36 issues, listed in its body; #988 among them, by decision 12
#1940 source-reading, documents, overlay 5e35309 (no IR change), after seven review rounds 37 issues, listed in its body

Seven pull requests closed 106 issues, and six more were closed as already fixed, each with the probe failing on the fixing commit's parent in its closing comment: #1767, #1877, #678, #1220, #425, #1297. Every issue a pull request closed had its own reproduction run on main and on the merging head; for #1940 the reproductions were run again on the final head. The golden spec compiles with --verify at exit 0 on each new main, and its IR is byte-identical before and after #1940.

What is not done is kept current under the state on 2026-11-28 below.

Design decisions the architects made, each recorded in its pull request's body where the maintainer can overturn it:

State on 2026-11-16

#1977 (fix/openapi-bound-beside-value-set) merged on 2026-11-16 as 9562ea4 (IRVersion 0.69.0). It closed the P0s #1920 and #1924, schema-composition's first slice, and #1951, composed-members' P0: a bound written beside a union gets one home, and every declaration of a member a model's composition decides more than once is folded. The other issues of both rows stay open in them. The four limits it states and filed, #1992 to #1995, are routed above.

State on 2026-11-28 (schema-composition build start)

Starting unified schema-composition build on fix/openapi-schema-composition at 4a7a384c9: #1950, #1967, and composed-members (#1857, #1993, #1994, #1995) moved into schema-composition; #2211, #2067 (P0), and #2107 (P0) placed in schema-composition; #1857 re-ranked P3 -> P2; notes (#2150, #2071, #2188, #2189, #2193, #2195..#2200, #2061) and composition-follow-up added; order-oracle and skills reopened for newly filed follow-up and skills issues; #2038, #2023, #2031, #2069, #2178, #2192 placed in existing follow-up rows; #2302/#2303 routed to #2214; #2156 left for maintainer.

State on 2026-11-28 (prior snapshot)

main is at 84957a2 (IRVersion 0.73.0). No pull request of this work is open and no agent of it is running. Decision 16 still holds: nothing below starts until the maintainer says so.

Merged since 2026-11-16, closing issues of the rows above (each issue's closing event names its pull request):

Pull request Merged as Closes in this plan
#1977 9562ea4 (0.69.0) #1920, #1924 (schema-composition); #1951 (composed-members)
#1996, under #1991 80340b7 (0.70.0) #1932, #1933, #1939, #1390, #1919, #1936, #1922, #1923, #1067, #1855, #1874, #1568 (schema-composition)
#2098, under #1991 512f3ee (0.71.0) #1856 (schema-composition)
#2293 629acc2 #1930, #1948, #1962, #1963, #1964, #1966 (the skills row, whole)

The acceptance probes of these 22 issues were not rerun on main for this update.

schema-composition is not ready to build. #1991's work, #1996 and #2098, lowered a schema from one statement and closed 13 of the row's issues by a model the design of 2026-11-14 does not have. What stands of that design:

  • designs/schema-composition.md, in the working directory, was written against 819f916 (IRVersion 0.66.0) and the golden spec @8b1a4518. Since that base, compilers/openapi/internal/schema and merge changed in 226 files, +35,085/−16,029 (git diff --shortstat 819f9160b 84957a206 -- compilers/openapi/internal/schema compilers/openapi/internal/merge). It is input to a new design, not a design to build.
  • fix/openapi-schema-composition @8db577432, in the working directory's wt/schema-composition, clean and never pushed, holds nine commits on 819f916: eight of tests and one partial fix of the fold's ties. git merge-tree --write-tree 84957a206 8db577432 conflicts in 16 files, in merge, schema/model.go, internal/harness and ir/provenance.go; the fold of redeclared members landed in fix!: home union bounds and fold redeclared composition members #1977, from another branch.
  • ledger.tsv and its probes date from 2026-11-15, before those merges.

Its 26 open issues: #1863 (P1); #1921, #1931, #1866, #1894, #1889, #1671, #1851, #1908, #1888, #1901, #1906, #1859, #1904, #1883, #1798, #1806, #1829, #1992 (P3); #1895, #1570, #1903, #1008, #1844, #1807, #1828 (P4). Before it is built, each is re-probed on main, and one already fixed is closed with the probe failing on the fixing commit's parent; the design is written against main as its recorded base (.claude/skills/morphic-planning-work/references/large-changes.md#design-against-its-base); and what of the branch's tests still applies is decided then.

Open schema-lowering issues filed after this plan's rows were drawn are in no row, #2107 (P0, filed 2026-11-18) and #2108 (P1) among them. Whether any joins schema-composition is the maintainer's call: decision 17 placed only the issues this work filed.

What is not done, in the order "Order of work" gives (waves 4 to 7), each a row under "Pull requests":

  1. schema-composition, with discriminators and composed-members: unified build on fix/openapi-schema-composition covering schema-composition, composed-members (openapi: an allOf field one branch declares null alone merges to the other's type #1857, openapi: a hierarchy composing a redeclaring model at every level costs time quadratic in its depth #1993, openapi: a type read through more than 64 alias scalars is decided as though the chain ended there #1994, openapi: two models composing each other can settle one member to two types #1995), openapi: a multipleOf judge reads literals of any length #1950, openapi: an expanded $dynamicRef reads no null from its target #1967, discriminator (ir: a discriminator has no home for a route a consumer reads and never writes #1863, openapi: discriminator inference reads nothing of a mapping naming some variants #1798, openapi: a discriminator beside a kept union routing to its own base moves to Unmodeled #1806, openapi: a variant in another document is routed by its name only where the mapping is nil #1829, pass: a variant a union's mapping routes no tag to passes validation #1844, pass: a closed variant that declares no tag property passes validation #1807, pass: name-collision says two variants naming one type differ by ID #1828, openapi: discriminator settlements each walk a shared hierarchy, so the compile goes superlinear #1008, openapi: a discriminator mapping value naming nothing draws no report in a schema kept verbatim or in a nested encoding #2006, pass: decide whether a discriminator mapping to a schema that does not compose its model is refused #2051, openapi: a discriminator on an inline allOf entry is kept verbatim where beside the allOf it is typed #2052, openapi: decide whether a component written as a $ref to a discriminated schema is tagged by its name #2060, openapi: a discriminator kept whole beside a union that collapses to a reference keeps its extension twice #2102, ir: a model below two discriminated ancestors carries one DiscriminatorValue, so one discriminator's route to it has no home #2313, docs/emitters: decide the order recognition tries a polymorphic base's variants in #2316), and composition issues listed in the row above (with detail selection (openapi: decide which borrowed detail a folded member keeps where no declaration writes one #2184 and siblings) conditional on fix(compilers/openapi): keep a written detail over a lent one #2185 merging to main), plus composition-follow-up (ir: a bound of a value's wire text has no typed home #2330, openapi: statement.Schema.find answers -1 for none #2331, ir: decide whether a closure over members its own schema object does not declare has an exact spelling #2338, ir: decide whether a format or a content keyword beside a referenced scalar keeps the reference typed where it selects another primitive or names a second encoding #2339, openapi: discriminator inference reads the first variant's layout order, so reordering a schema's properties changes the inferred property #2334, ir: decide how a discriminator routes to a schema that composes its model only as a mixin #2335, openapi: seven walks read a source $ref chain only to a fixed hop count, so a longer valid chain is decided as cut #2336, openapi: decide whether enum: [] at 3.0 is refused #2342, openapi: decide whether union-null-variant lifts a $ref branch to a null-alone schema #2344, openapi: decide whether a const, an enum, a dynamic or recursive reference, a keyword beside a $ref, or an entry landing on nothing or on false reads as stating a type #2345).
  2. Beside those two, in the other lanes: fetch-limits (engine: a network read has no time bound #1036, openapi: a document read through a redirect is named and based at the URL requested, not the one that answered #1943, engine: through an HTTP proxy the address a fetched document's reference reaches is judged by nobody #1947, engine: a name resolving to several address spaces is answered by the order of asking #1969: the limits the address rule states), operation-cost (openapi: reading n members of a body composing m models walks it n times #1955, openapi: a chain of parameter aliases each used costs time quadratic in its length #1965) and ir-follow-up (irverify+pass: a walk at its limit draws findings by the million #1957, pass: decide whether a content's and a message's examples are held to their type #1949, irverify: let a caller cancel Verify #1952, lint: hold who builds an ir.ParamChoice to readers of declared parameters #1954); then binding-follow-up (openapi: a refused $id still roots the dialect its schema is judged in #1958, openapi: an expanded $dynamicRef reads no null from its target #1967, openapi: a cancelled binding lands every dynamic reference before it stops #1968) and operation-follow-up (openapi: decide whether a use a colon, parenthesis or dash opens names a replacement #1956, openapi: a compile declares every qualified ID space of each document it reads, used or not #1961). None is designed.
  3. Then, in lane L one at a time: scalar-reading (openapi: an 0o or 0x integer past 64 bits is read as a string or refused #1975, openapi: a scalar tagged !!int that the model cannot hold fails the compile with a Go error #1976, openapi: decide whether a numeric bound written as a string is a type error #1973, openapi: a mapping key under a tag outside the JSON schema ruleset draws no finding #1974, openapi: a multipleOf judge reads literals of any length #1950: how a tagged or based number is read), overlay-cost (openapi: an overlay at the node budget's edge recounts the tree at every action #1959, openapi: nested descendant segments hold path links in proportion to their steps #1960) and shared-node-findings (openapi: an overlay's copy of a shared node repeats the source's finding at each copy #1970, openapi: a list repeated in a path item an alias mounts twice is reported at each mount #1971, openapi: a key written twice in a mapping a << merges in place draws no warning #1972, openapi: decide whether a kept entry for a key merged through << is placed where the key is written #1945: one finding for a node several places mount).
  4. diagnostics (refactor/diagnostic-codes, 10 issues): designed in Phase 0 and not built; main has moved since, so that design is input to the next one. It touches every package, so it lands with nothing else open.
  5. nits (tracking: nits recorded by reviews of the pull requests of #1918 #1944), one cleanup pull request.
  6. The cost measurement after wave 1, never made; a rerun on main of the acceptance probes of the 22 issues closed since 2026-11-16; and the closing sweep with its duplication scan.

Outside this work by decision 11: #1953.

What the work taught about how to run the rest

Each of these was learned by doing the opposite here. Where one changes a rule of the pipeline above, the rule to change is named. Each now names the skill rule that holds it, merged in #2298, or #2297 where that issue kept a lesson about roles, agents or the orchestrator out of the skills.

Size and shape of a pull request

The review itself

  • Round one assigns every changed line to a range, by file. One package (schema) fell between two ranges and surfaced only from a "not reached" list. Derive the ranges from git diff --stat, and have the orchestrator check their union is the diff. Superseded by .claude/skills/morphic-reviewing-prs/references/readers.md#no-split-by-file, which stands (skills: keep what large multi-issue changes taught where the next one reads it #2297): no round divides its files between readers.
  • A reviewer loads every angle's skill, and says which it loaded. Rounds that loaded only the review skill missed what the IR, style and test angles hold. Held by .claude/skills/morphic-reviewing-prs/references/readers.md#round-names-loaded-skills.
  • The specification is reviewed by probing each statement, in round one. A reviewer limited to the documents, compiling one input per statement, found 13 false statements in docs/compilers/openapi.md at round three of fix!: read sources, references and overlays by their standards #1940; code reviewers reading the same entries had passed them. Held by .claude/skills/morphic-reviewing-prs/references/claims-and-process.md#normative-sentence-probed.
  • Tests are read as a job of their own. A reader asking only "does this test assert its name", with a cap on plants, fixed six tests that asserted something else; the reviewers of the production code had not read them line by line. Held by .claude/skills/morphic-verifying-changes/references/assertions-and-reach.md#assertion-targets-what-the-name-names.
  • A read-only agent runs every closed issue's reproduction and the whole differential, beside round one. It found an issue the pull request claimed to close and did not (openapi: let the caller map an identifier's URL to a local location #1051), which no reviewer had probed. Held by .claude/skills/morphic-shipping-prs/references/closing-issues.md#closing-issue-reproduction-reruns; which agent runs it is a role, kept out of the skills (skills: keep what large multi-issue changes taught where the next one reads it #2297).
  • A mechanism that reading misses twice is closed by a generated sweep, in the tree. Registry keys (feat!: tighten the IR contract and check what a source says #1938), promotion targets (feat!: infer more of an operation and read what each use writes #1937), what an overlay may erase of a source's errors, the readers of $ref, and the YAML 1.1 number comparison (fix!: read sources, references and overlays by their standards #1940) were each ended by a sweep with a control (revert the fix: rows redden), never by another reading. Held by .claude/skills/morphic-reviewing-prs/references/later-rounds.md#mechanism-found-twice-gets-a-sweep.
  • Each "not reached" list is the next round's scope. A round ends by saying nothing in its range was left unchecked, or by the exact list. None is accepted as done. Held by .claude/skills/morphic-reviewing-prs/references/rounds.md#review-ends-with-nothing-left.
  • When a late round's only finding is one commit in one corner, the orchestrator closes it inline. Rounds four to seven of fix!: read sources, references and overlays by their standards #1940 each found one defect in the same corner. The maintainer's instruction (2026-11-15) was that the orchestrator then owns the fix and its review itself, with its own probes, instead of starting another agent round. This replaces "what the orchestrator never does" for that case only. An orchestrator's rule, kept out of the skills (skills: keep what large multi-issue changes taught where the next one reads it #2297).

Code that guards a boundary

  • It gets one reading as a whole, by one reviewer, after its last design change. Four defects in a row were found in the address guard by point reviews while it was being written; the review that read it whole found three more and one that needed a decision; and that decision (two statements per read) was itself the source of the next defect, found when the result was read whole again. Held by .claude/skills/morphic-reviewing-prs/references/robustness.md#boundary-guard-read-whole.
  • A recorded open choice is not settled inside another change. A timeout was added because a brief asked for it, against the design and against engine: a network read has no time bound #1036; it was taken out and noted there. Held by .claude/skills/morphic-shipping-prs/references/commits-and-prs.md#follow-recorded-decisions.

Agents

  • Name the number. Asked for "at least sixty" plants, a verifier made 343 and a 49 GB build cache. A brief states the cap, and asks for green plants ranked by whether an input tells the plant from the code. Held by .claude/skills/morphic-planning-work/references/large-changes.md#handoff-points-at-the-design.
  • A builder's "Breaking: none" and "not checked" are claims to probe, and a design is wrong on real input more often than a builder departs from it: three fixtures and one rule of fix!: read sources, references and overlays by their standards #1940's design could not pass as written. Held by .claude/skills/morphic-planning-work/references/large-changes.md#handoff-points-at-the-design and .claude/skills/morphic-planning-work/references/large-changes.md#decisions-made-before-the-build.
  • An agent's report is saved by the orchestrator when the agent wrote none, and a long-running agent is checked by its tree, its scratch files and its commits, never by its transcript. Held for a review round's report by .claude/skills/morphic-reviewing-prs/references/later-rounds.md#keep-each-rounds-report; how an agent is checked is a role, kept out of the skills (skills: keep what large multi-issue changes taught where the next one reads it #2297).
  • Private build caches fill the disk: trimmed on a timer, deleted when their agent reports. Held by .claude/skills/morphic-verifying-changes/references/mutation.md#mutant-run-owns-its-cache.

The orchestrator's own checks

  • CI's verdict is read, not assumed. Coverage was red on two pushed heads of fix!: read sources, references and overlays by their standards #1940 while the checks read "pending" at the moment of looking; and a watch piped through another command reports that command's exit code. After each push: one separate read of the checks when they have finished. Held by .claude/skills/morphic-reviewing-prs/references/rounds.md#gate-run-by-workflow and .claude/skills/morphic-reviewing-prs/references/rounds.md#unfinished-run-leaves-its-cell-unreached.
  • A pull request's body is read whole at each deciding round. Round four of fix!: read sources, references and overlays by their standards #1940 found four false sentences in a body many hands had edited; figures measured against different bases had been mixed. One line per measurement, naming both revisions; and a bot's footer is dropped by a rewrite. Held by .claude/skills/morphic-reviewing-prs/references/later-rounds.md#narrowed-round-reads-the-fixes, .claude/skills/morphic-verifying-changes/references/claims.md#figure-names-its-conditions for figures and .claude/skills/morphic-shipping-prs/references/commits-and-prs.md#edit-pr-body-from-live-copy for a rewrite.
  • git status before every merge commit. It caught a stray file a broken command chain of the orchestrator's own had written into a worktree. Held by .claude/skills/morphic-shipping-prs/references/commits-and-prs.md#commit-only-what-you-meant.
  • Plants are restored and commits name their paths. A reviewer's uncommitted plant was once flagged as a defect of the branch. Held by .claude/skills/morphic-verifying-changes/references/mutation.md#plant-in-a-throwaway-worktree.

Out of scope

Related: #1643

Priority: P0, the tier of its highest open steps, #2067 and #2107 (rule 4/5) once #2211, #2067 and #2107 sit in schema-composition.

Activity

  1. added
    type:chore
    priority:P0
    on Nov 14, 2026
  2. self-assigned this
    on Nov 14, 2026
  3. OmarAlJarrah commented on Nov 14, 2026

    @OmarAlJarrah
    MemberAuthor

    Wave 0 is done

    Merged

    Pull request Closes On main as
    #1784 #627 8cdc7a8 (IRVersion 0.65.0)
    #1497 #900 c8fb18b
    #1927 #1907 (P0) 14ecaa3 (IRVersion 0.66.0)
    #1926 #1666 819f916

    Each closed issue's acceptance probe was rerun on main after its merge and is green. Phase 0 is done: the shared inputs, the ledger (every issue's own reproduction run once), the contract memo and the role briefs.

    Closed as already fixed, each with the probe failing on the fixing commit's parent in its closing comment: #1767 (#1900, #1497), #1877 (#1900), #678 (#1351, #1336, #1354).

    Filed along the way, and where each went

    #1920 and #1924 are what the new sequence-order oracle and the review of #1927 found on the golden spec; they are to be the first slice of schema-composition.

    What changed in the plan (the body above is current)

    • Decision 11: issues about GraphQL or gRPC and Protocol Buffers are outside this work.
    • Decision 12: pass: promote mutually-exclusive parameter groups to one parameter typed by a union #988 is resolved in operation-inference, as metadata over the untouched parameter list (Operation.ParamChoices), not declined.
    • Decision 13: nine agents at a time, five writing; an agent lints the packages it touched before pushing; the narrowing rule for review fixes starts at round two.
    • Decision 14: each lane's later pull request is folded into its first, so seven pull requests where there were twelve, and a folded part is designed now, not when the part before it enters review.

    What the wave taught, now in the role briefs

    • A plant rebuilds every importer of the planted package, so a plant runs one package's one test; an agent planting many defects uses a build cache of its own, deleted when it reports. The shared cache filled the disk twice.
    • A red is a test's assertion failing, never a build error: a cache trim made a build fail mid-run once.
    • No agent stops a process by pattern or waits in a shell loop on another process: both left hung or killed shells behind.
    • Review rounds on test(harness): add an oracle swapping allOf and required order #1926 and fix(compilers/openapi)!: read bounds by the types a schema names #1927 each found real defects in code an earlier round had read (a false finding, a missed finding and a verdict that changed between runs in the oracle; three sites of unbudgeted work in the bound reader). In both, the round that ended it was the one asked to settle the mechanism, with a measurement, instead of looking for the next site.

    In flight: operation-inference (#1937), source-reading (#1940) and ir-contract (#1938) each have a foundation built and checked, with later slices building on side branches. schema-composition, now with discriminators, is designed next.

  4. added
    priority:P1
    and removed
    priority:P0
    on Nov 28, 2026
  5. OmarAlJarrah commented on Nov 28, 2026

    @OmarAlJarrah
    MemberAuthor

    Re-ranked from P0 to P1. The P0s this tracker held are closed: #1907 by #1927, and #1920, #1924 and #1951 by #1977. Its highest open step is now #1863 (P1, rule 5). Read from each open issue's labels in the body's rows on 2026-11-28: one P1, two P2 (#1843, #1845), no P0. The body's Priority line and its state on 2026-11-28 carry the rest.

  6. OmarAlJarrah commented on Nov 28, 2026

    @OmarAlJarrah
    MemberAuthor

    Re-ranking from priority:P1 to priority:P0: #2211 (blocking P0 via #2067 and #2107) is now tracked in the schema-composition row of this plan alongside #2067 and #2107, so the tracker's highest open step is P0 again.

  7. added
    priority:P0
    and removed
    priority:P1
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:P0type:chore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions