You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Decision] next codemod splits for the large hot files, in order, and whether to name a shrink-only line ceiling (hot-file card F) #33949
Filing gate ③: maintainer-directed. On 2026-11-15 the maintainer chose 「今天改规则,并立全部 6 张卡」 on the hot-file serialization decision card (consequence as shown: 取消 protocol.ts 独占、关闭 #25467 和 #24586;卡 A 到 F 交各车道立卡,大 PR 和上限门禁仍逐个等您批准). Measurements: the hot-file analysis report (project artifact), re-runnable on request. Cross-lane rule (2026-11-15): no live seat in the owning lane, so domain:server seat 5 files and builds it; the owning lane is notified.
Card F: decision for the maintainer
Which large files get the next codemod splits (the protocol.ts codemod precedent: #29998, #30687, #30954, #31177), in this proposed order:
packages/objectql/src/registry.ts
metadata-manager.ts
mcp-http-tools.ts
auth-manager.ts + auth-plugin.ts
service-automation engine.ts + plugin.ts
action-execution.ts
marketplace-install-local-plugin.ts
spec stack.zod.ts
And whether the maintainer names a shrink-only line ceiling for these files (a new gate needs the maintainer's naming).
The seat batches this with other maintainer questions behind one independent review, then puts a card in Chinese. No dev before the ruling.
stack.zod.ts, which is a published contract: bring it back for its own approval before starting.
Each split is generated by script against fresh main right before it is queued. The original file stays as a forwarding entry, so public exports are unchanged. A split waits for any open PR touching that file to merge first. Add approval-service.ts (10,697 lines) to the next round.
2. Line ceiling: yes, narrow form only.
It applies only to files already split, at their post-split line count plus a small margin.
Going over is an error that tells the author to put new code in a new module.
Raising a ceiling needs the maintainer's ruling.
Files not yet split get no ceiling, at most a warning.
Grade. p3 → p2. The splits cut merge-queue conflicts and per-seat token cost, both live constraints this week. Each split PR is large and keeps its own maintainer approval, as the hot-file ruling set.
Claim: area S4 (lease E1), #33751 §2 area-lease mode, p2 in a free slot (the slot's previous PR waits on a person)
Session: session_01QsR2jTkZnXtRhuEiiyidvJ
Account: zhuangjianguo
Branch: claude/area-E1-33949-ceiling (PR 1), then claude/area-E1-33949-registry (PR 2)
Worktree: objectstack-e1-33949
Domain: domain:server
Seat: domain:server#5
File surface: PR 1 (ruling item 2, the narrow ceiling): scripts/check-facade-delegation-only.mjs + scripts/facade-delegation-registry.json (a per-file line ceiling on files already in facade form, post-split count plus a small margin; over = error that tells the author to put new code in a new module; raising it needs a maintainer ruling) and the gate's self-test fixtures. No new script, no new workflow, no package.json chain change unless the existing chain cannot carry it (then stop and ask). PR 2 (ruling item 1, split 1 of 8): packages/objectql/src/registry.ts split by codemod into facet modules under packages/objectql/src/ with registry.ts kept as the forwarding entry (public exports unchanged), a codemod script under scripts/ beside codemod-split-*.mjs, the registry json entry and its ceiling, the objectql changeset. Splits 2 to 8 are later PRs on this card, one at a time after the previous merges; stack.zod.ts comes back to the maintainer before it starts.
Container & model: L, mode:subagent, model: default judgment tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 6897467376
Premise: holds. Measured on origin/main 63db724: registry.ts 12,438 lines; facade-delegation-registry.json lists protocol.ts, objectql engine.ts (three classes) and sql-driver.ts, none with a line ceiling.
Serial constraints cleared: the ruling's own rule binds PR 2: the split is regenerated by script against fresh main right before it is queued, and waits for every open PR touching registry.ts to merge first (the dev measures the open-PR overlap at build time and again before queue). PR 2 is over 3,000 lines, so it takes the Tier H four-piece and waits for the maintainer's approval; its slot frees while it waits. PR 1 touches no file another open S4 PR holds.
Pre-claim lane: domain:server area S4 (E1). The card was filed by server seat 5 for this area; the gate script is gate-class under the anchoring rule, kept in lane under the 13:53Z rule (analysed card, clear fix, no other lane claimed it).
Pre-claim deps: ruled 6897467376 (「都同意」, needs-user-decision cleared); no Blocked-by; #33937 binds split 2 (auth), not this claim's PRs.
Prior rulings read: 6897467376 (split order, forwarding entry, regenerate against fresh main, wait for open PRs on the file, narrow ceiling, approval-service.ts next round, p2); the hot-file decision 「今天改规则,并立全部 6 张卡」 (large PRs and ceiling gates each go to the maintainer); ruling 6624258595 on #29465 item 3 and 6624345766 item 3 (facade form, delegation-only gate, exceptions list); the protocol.ts codemod precedent #29998, #30687, #30954, #31177; pm-dispatch "新增门禁默认否" (satisfied: the maintainer named the ceiling).
{
"issue": 33949,
"status": "done",
"branch": "claude/area-E1-33949-ceiling (PR 1) · claude/area-E1-33949-registry (PR 2)",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34103 (PR 1, head cfb690a278) · https://github.com/objectstack-ai/objectstack/pull/34285 (PR 2, head 59508583bf)",
"prs": [
{
"pr": "https://github.com/objectstack-ai/objectstack/pull/34103",
"branch": "claude/area-E1-33949-ceiling",
"head": "cfb690a278",
"what": "ruling item 2: line ceiling in check:facade-delegation-only + ceilings rows (protocol.ts 11605/11705, engine.ts 6754/6854, sql-driver.ts 9971/10071 at 63db7240aa; CEILING_MARGIN 100)",
"draft": true,
"labels": [
"skip-changeset"
],
"checks": "49 check-runs on cfb690a278: 26 success, 23 skipped, 0 failure"
},
{
"pr": "https://github.com/objectstack-ai/objectstack/pull/34285",
"branch": "claude/area-E1-33949-registry",
"head": "59508583bf",
"what": "ruling item 1, split 1 of 8: registry.ts 12,548 -> 6,326 lines by scripts/codemod-split-registry.mjs, 13 modules, exports unchanged (68 names, 55 value / 13 type)",
"draft": true,
"labels": [],
"checks": "in_progress at report time: 18 in_progress, 5 skipped, 0 failure"
}
],
"session": "session_01QsR2jTkZnXtRhuEiiyidvJ",
"premise_still_valid": true,
"summary": "PR 1 (#34103) adds the narrow line ceiling of ruling item 2 to the existing check:facade-delegation-only gate and registry: one ceilings row per registered facade file, maxLines = measured count + CEILING_MARGIN 100, over-ceiling is an error telling the author to use a new module and that raising is MAINTAINER-ONLY by ruling; unsplit files carry none. PR 2 (#34285) is split 1 of 8: scripts/codemod-split-registry.mjs (pass 1 of the engine codemod re-targeted at SchemaRegistry, plus an exports-equality proof) splits packages/objectql/src/registry.ts into 13 modules with registry.ts kept as the forwarding entry; 200/215 methods and 127/161 top-level declarations move, proved byte-identical, exports proved equal. #34156 merged at 01:46Z while PR 2 was being verified, so PR 2 was regenerated on 98a4449f87 (the main #34156 landed) before opening; it now waits for #34224. Side order: PR #34147 regenerated against main and pushed (pr34147_regen).",
"tests": "PR 2 on 59508583bf: pnpm --filter @objectstack/objectql test -> Test Files 598 passed (598), Tests 13280 passed (13280), lock VERDICT command-exit 0. Closure build runtime^... + cli^... 63/63 tasks; turbo typecheck objectql + 11 direct dependents 75/75 successful. Dependents' tests on 3683e1eb53/537121403d (pre-regeneration): turbo 84/86 tasks, the 2 red were harness-caused (cli: OS_TEST_TIERS=unit is not a legal tier value; runtime: 2 files failed at load, @objectstack/observability had no dist) and re-ran green after the closure build: runtime 2/2 files 6/6 tests, cli --project unit 423/423 files 6010/6010 tests. codemod --self-test: 74 cases in 7 batteries pass. --verify --base origin/main (98a4449f87): byte-identity 200/200 bodies + 127/127 declarations identical, registry.ts 12548 -> 6326; exports-equality equal (68 names + 10 generated). federated-injected-column-readers.test.ts 1/1 file 5/5 tests. Ablation (scripts/ablation-replace.mjs, restore blob == HEAD eb7cc556a0b3, git diff HEAD empty): disabling the lever check reds 'a new export outside the lever-(a) statement fails'; disabling the missing-export check reds 'a base export the split no longer exports fails'. PR 1 (cfb690a278): self-test 44 batteries; ablations C1/C3/C4/C5 each red then restored (readings in the PR body).",
"gates": "PR 2 local on 59508583bf: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands -> 93 families, each run with the exit captured before any pipe, all exit 0; --ran reconciliation: '93 run, 0 NOT-MEASURED'. Among them check:facade-delegation-only (registry.ts SchemaRegistry: 256 members, 207 delegations, 34 fields, 15 named exceptions), check:adr-symbol-anchors (3630 anchors resolve), check:registry-log-declared, check:rest-log-declared, check:dual-build-cjs-loads (123 entries load), check:lean-entry-closure, check:pm-dispatch-gates fast tier 2217 cases. check-platform-checklist --changed-from origin/main: OK, 0 lost. PR body gated before pr_create: check-changeset-no-major --event, check-adr-0087-registration, check-closing-keyword-parity --body, check-partof-closing-keyword: all exit 0. CI on 59508583bf: in_progress (18 in_progress, 5 skipped, 0 failure at 03:59Z). PR 1 CI on cfb690a278: 26 success, 23 skipped, 0 failure. pnpm lint not run locally for PR 2 (repo-wide scan, CI-owned).",
"line_budget": {
"skills": "n/a, no skills/** touched",
"facade_ceilings_main": {
"packages/metadata-protocol/src/protocol.ts": "11605/11705",
"packages/objectql/src/engine.ts": "6754/6854",
"packages/drivers/driver-sql/src/sql-driver.ts": "9971/10071"
},
"registry_ts_after_split": "6326 lines; ceiling row deferred (see deviations), would be baseLines 6326 / maxLines 6426 at the regeneration commit"
},
"files_changed": {
"pr1": [
"scripts/check-facade-delegation-only.mjs",
"scripts/facade-delegation-registry.json"
],
"pr2": [
".changeset/33949-registry-split.md",
"scripts/codemod-split-registry.mjs",
"scripts/facade-delegation-registry.json",
"scripts/check-facade-delegation-only.mjs",
"packages/objectql/src/registry.ts",
"packages/objectql/src/registry-apps.ts",
"packages/objectql/src/registry-bare-names.ts",
"packages/objectql/src/registry-facet-hosts.ts",
"packages/objectql/src/registry-items.ts",
"packages/objectql/src/registry-namespaces-and-claims.ts",
"packages/objectql/src/registry-object-registration.ts",
"packages/objectql/src/registry-package-addressing.ts",
"packages/objectql/src/registry-packages.ts",
"packages/objectql/src/registry-picklists.ts",
"packages/objectql/src/registry-platform-global.ts",
"packages/objectql/src/registry-restore.ts",
"packages/objectql/src/registry-storage.ts",
"packages/objectql/src/registry-top-level.ts",
"packages/objectql/src/federated-injected-column-readers.test.ts"
],
"pr34147": [
"content/docs/references/index.mdx (regenerated, plus the merge of origin/main)"
]
},
"registry_ts_open_pr_overlap": [
{
"pr": 34224,
"branch": "claude/area-E1b-32780",
"draft": true,
"change": "+31/-2",
"measured": "2026-11-16T03:58Z over 68 open PRs",
"note": "PR 2 waits for it, then is regenerated with node scripts/codemod-split-registry.mjs --write on fresh main"
},
{
"pr": 34156,
"change": "+73/-7",
"note": "merged 01:46Z; PR 2 already regenerated on 98a4449f87 which contains it"
},
{
"pr": 34036,
"change": "+45/-1",
"note": "merged 19:50Z; inside the split"
}
],
"facade_open_pr_overlap_vs_pr1_ceilings": "at 00:52Z: protocol.ts #34169 +11/-2, #34147 +20/-0, #33885 +11/-2; engine.ts #34043 +17/-7, #33652 +16/-1; all well inside the 100-line margin",
"rerun_command": "node scripts/codemod-split-registry.mjs --write (on a branch cut from fresh origin/main with registry.ts unsplit); --verify --base REF re-proves a split on disk",
"pr34147_regen": {
"branch": "claude/area-E1-33308",
"old_head": "8ed07410cd",
"new_head": "624b7ff393",
"steps": "git fetch origin main; bash scripts/pm/os-regen-merge.sh: step 1 merge commit 5c47ec74a7 (origin/main 98a4449f87), step 2 took main's side of index.mdx/protocol.mdx, step 3 commit refused by the os-regen hook as designed (2 artifacts stale); regenerated with pnpm --filter @objectstack/spec gen:schema && gen:docs (merge already committed, not in MERGE state), committed 624b7ff393 (hook: both current, marker cleared). Pushed to claude/area-E1-33308 only; no body edits, queue actions or comments.",
"readings": "spec repo project scripts/root-index.test.ts: 1/1 file, 20/20 tests (VERDICT command-exit 0); pnpm --filter @objectstack/spec build && check:generated: 'All 14 generated artifacts are up to date' (VERDICT command-exit 0; the first try without the build red only on api-surface because dist was stale); dogfood closure build + test/history-diff-two-holders-33308.dogfood.test.ts: 1/1 file, 9/9 tests (VERDICT command-exit 0). CI on 624b7ff393: 58 success, 10 skipped, 0 failure.",
"patch_id": "non-generated files (12, the os-regen-unrouted ones): git diff origin/main...HEAD | git patch-id --stable = e97b7a9cd143 before (base b4eea88505) and e97b7a9cd143 after (base 98a4449f87): identical. Same 20-file list. Generated files: 7 of 8 per-file patch-ids identical; only content/docs/references/index.mdx differs (the PR's +1 schema now lands on main's 1663 instead of 1662: total 1664, API 494). main later moved to b8456ebd4a (hook.zod.ts, no new exports, no reference change)."
},
"deviations": [
"PR 2 used a second worktree /home/claude/objectstack-e1-33949-registry (the dispatch named one worktree; two PRs on two branches need two).",
"PR 2 edits packages/objectql/src/federated-injected-column-readers.test.ts, outside the claim's file surface: 5 READERS keys follow their function to its new file (FILE#FUNCTION :: column). No assertion changed. The split cannot land without it, because the test reads by path.",
"PR 2 carries no ceilings row for registry.ts: the ceilings list exists only in PR 1 (#34103, not merged). Whichever lands second must add {file: registry.ts, baseLines: count at the regeneration commit, maxLines: +100, ruling 6897467376}, or #34103's gate reds. Expect textual conflicts between the two on scripts/facade-delegation-registry.json and DECLARED_WATCH_HINTS.",
"PR 2 dependents' tests were not re-run on the final head 59508583bf after the regeneration on #34156. Typecheck was re-run there (75/75). The tests ran on the pre-regeneration heads. This is a declared narrowing; CI runs the full set.",
"The first dependents run set OS_TEST_TIERS=unit, which is not a legal value. cli was re-run with --project unit and the env unset.",
"PR 2 regenerated twice after the claim: on 86350e125d (after #34036) and on 98a4449f87 (after #34156).",
"pnpm lint was not run locally for PR 2. It is repo-wide and CI-owned.",
"The 15 exception rows in scripts/facade-delegation-registry.json cite #33949 as their card. They are first-pass stays, as on engine.ts."
],
"dogfood_battery": "n/a: no ! in either PR title and no (narrowing) arm (Clause-②: no). The #34147 order ran only its named pin, 9/9.",
"mcp_calls": "0",
"api_writes": "4 — (1) PR 1 pr_create via fleet-write relay (POST repos/objectstack-ai/objectstack/dispatches -> #34103, labels skip-changeset); (2) PR 2 pr_create via fleet-write relay (POST repos/objectstack-ai/objectstack/dispatches, run 43801288430 -> #34285, read-back 12219 bytes identical, no assignees, no labels); (3) this os-dev-report comment on #33949 via scripts/pm/post-stamped.mjs; git pushes (claude/area-E1-33949-ceiling, claude/area-E1-33949-registry, claude/area-E1-33308) are not REST writes. Reads used gh api GETs only.",
"open_questions": [
{
"question": "Should the 15 first-pass stays in registry.ts (rows citing #33949) get their own members-pass card, as engine.ts did, or stay as permanent exceptions?",
"options": [
"A: the seat files a members-pass card as a sub-issue of #33949. It names the 15 members by stay reason: bare-this 8; inferred-return-type 2; constructor, computed name, parameter-shadows and 2 stub-keeps 1 each. The rows are re-pointed at it.",
"B: keep the rows on #33949 as they are and retire them when the eight splits are done."
],
"recommendation": "A. Long-term soundness: the facade gate's exceptions stay traceable to a card that will move them, as with engine.ts, so they do not become permanent. Guarding against AI mistakes: a named card keeps an agent from reading the 15 rows as precedent for adding more stays. Real business need: no runtime effect either way. Startup focus: one card, no new gate. B leaves the rows pointing at a card whose deliverable is the eight splits, not these members."
},
{
"question": "In which order should #34103 (ceiling) and #34285 (split 1) land, given that whichever lands second must add the registry.ts ceiling row?",
"options": [
"A: #34103 first (it is CI-green now); #34285 then waits for #34224, is regenerated, and adds its ceiling row in that regeneration.",
"B: #34285 first, then #34103 is rebased to add the registry.ts row."
],
"recommendation": "A. Long-term soundness: the ceiling exists before the facade it bounds, so split 1 is born under it. Guarding against AI mistakes: the regeneration seat measures baseLines on the same tree it adds them to. Real business need: neither changes runtime. Startup focus: A needs no extra PR round, because #34285 must be regenerated after #34224 anyway."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: lint.yml's comment above the facade-delegation-only step describes the delegation rule only, not the ceiling (workflow out of bounds; the script header is the authority)."
]
}
Request: review · PR #34103 · area S4 (E1) · Part of #33949 (ruling item 2, the line ceiling) · head cfb690a (green: 26 success, 23 expected skip, none failed; declared final)
Ordinary ACCEPT read (L1) per review-checklist.md. No contract face: Clause-②: no, Metadata-protocol: none, skip-changeset, no spec or governed path. Files: scripts/check-facade-delegation-only.mjs and scripts/facade-delegation-registry.json.
What it adds: ruling 6897467376 item 2. The existing check:facade-delegation-only gate gains a ceiling: one row per registered facade file, with maxLines = measured + CEILING_MARGIN 100. Going over the ceiling is an error that names the maintainer-only raise. This narrows an existing gate; it is not a new gate.
Remaining, in the ruled order (record 6897467376), one at a time, each generated by script against fresh main right before it is queued, under the 08:31Z rule (record 6911407209: no split script committed; net growth broken down per file in the PR body):
2. auth-manager + auth-plugin (its precondition, fix(auth)!: the environment-access gate on /oauth2/authorize judges every client the request names #33937, is closed)
3. service-automation engine + plugin
4. action-execution.ts
5. mcp-http-tools.ts
6. marketplace install-local plugin
7. metadata-manager.ts
8. stack.zod.ts: a published contract, to come back for its own approval before starting.
Release: area o1-D takes no further splits (the card is p2; the lane's intake rule is p1 or blocking-p1 only). This stroke clears pm:dispatched and lease:o1-D, unassigns os-project-manager and adds pm:queue; the next seat to pick it up starts at split 2.
Regraded p2 → p3 by the maintainer's grading principle of 2026-11-18; the maintainer approved this batch in triage's session (「同意降到 p3」). Downgraded only: the card stays open.
The principle, in order:
What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
Data loss or a permission breach in normal use stays first.
Details and rare configurations are improved over time.
Internal items are frozen.
New features default to p2, p3 when out of focus.
Why this card: internal code tidy-up: the next codemod splits of large hot files and a line ceiling; no user effect (frozen).
Closed 2026-11-22T06:47Z as not planned. With cards D and E (#33945, #33946) closed, the ordering decision this card puts to the maintainer has nothing left to order. A future split that pays for itself can be filed on its own measurement.
Ruling: the maintainer (Steedos), 2026-11-22T06:42Z, verbatim 「同意」, on seat 7's close list for the queued area:fleet cards (p3 work with no user effect is closed, per the 2026-11-15 standard 「用户无感的 p3 直接关」).
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Ruled: split order and a narrow ceiling ·
needs-user-decisioncleared →pm:queue· p2 · 2026-11-15T16:15ZThe maintainer ruled on the triage thread on 2026-11-15 (「都同意」) after an independent analysis, as set out below.
Measured on origin/main
bc6b7ffd45, last 14 days (2,504 merges repo-wide).registry.ts: 12,438 lines (was 7,610), 60 changes, 8 yesterday. It is now larger thanprotocol.ts(11,616).action-execution.ts: 6,629 lines, 41 changes.mcp-http-tools.ts: 3,893 lines (was 1,653), 53 changes.metadata-manager.ts: 4,947 lines, 31 changes.stack.zod.ts: 9,469 lines, 29 changes.protocol.tswent from 30,019 to 11,616 lines and objectql engine from 22,736 to 6,754, butprotocol.tsregrew 190 lines in 5 days.1. Order (one at a time; the next opens only after the previous merges):
registry.tsaction-execution.tsmcp-http-tools.tsmetadata-manager.tsstack.zod.ts, which is a published contract: bring it back for its own approval before starting.Each split is generated by script against fresh main right before it is queued. The original file stays as a forwarding entry, so public exports are unchanged. A split waits for any open PR touching that file to merge first. Add
approval-service.ts(10,697 lines) to the next round.2. Line ceiling: yes, narrow form only.
Grade. p3 → p2. The splits cut merge-queue conflicts and per-seat token cost, both live constraints this week. Each split PR is large and keeps its own maintainer approval, as the hot-file ruling set.
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Claim: area S4 (lease E1), #33751 §2 area-lease mode, p2 in a free slot (the slot's previous PR waits on a person)
Session:
session_01QsR2jTkZnXtRhuEiiyidvJAccount:
zhuangjianguoBranch:
claude/area-E1-33949-ceiling(PR 1), thenclaude/area-E1-33949-registry(PR 2)Worktree:
objectstack-e1-33949Domain:
domain:serverSeat:
domain:server#5File surface: PR 1 (ruling item 2, the narrow ceiling):
scripts/check-facade-delegation-only.mjs+scripts/facade-delegation-registry.json(a per-file line ceiling on files already in facade form, post-split count plus a small margin; over = error that tells the author to put new code in a new module; raising it needs a maintainer ruling) and the gate's self-test fixtures. No new script, no new workflow, no package.json chain change unless the existing chain cannot carry it (then stop and ask). PR 2 (ruling item 1, split 1 of 8):packages/objectql/src/registry.tssplit by codemod into facet modules underpackages/objectql/src/withregistry.tskept as the forwarding entry (public exports unchanged), a codemod script underscripts/besidecodemod-split-*.mjs, the registry json entry and its ceiling, the objectql changeset. Splits 2 to 8 are later PRs on this card, one at a time after the previous merges;stack.zod.tscomes back to the maintainer before it starts.Container & model:
L,mode:subagent,model: default judgment tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 6897467376
Premise: holds. Measured on origin/main 63db724:
registry.ts12,438 lines;facade-delegation-registry.jsonlists protocol.ts, objectql engine.ts (three classes) and sql-driver.ts, none with a line ceiling.Serial constraints cleared: the ruling's own rule binds PR 2: the split is regenerated by script against fresh main right before it is queued, and waits for every open PR touching
registry.tsto merge first (the dev measures the open-PR overlap at build time and again before queue). PR 2 is over 3,000 lines, so it takes the Tier H four-piece and waits for the maintainer's approval; its slot frees while it waits. PR 1 touches no file another open S4 PR holds.Pre-claim lane: domain:server area S4 (E1). The card was filed by server seat 5 for this area; the gate script is gate-class under the anchoring rule, kept in lane under the 13:53Z rule (analysed card, clear fix, no other lane claimed it).
Pre-claim deps: ruled 6897467376 (「都同意」, needs-user-decision cleared); no Blocked-by; #33937 binds split 2 (auth), not this claim's PRs.
Prior rulings read: 6897467376 (split order, forwarding entry, regenerate against fresh main, wait for open PRs on the file, narrow ceiling,
approval-service.tsnext round, p2); the hot-file decision 「今天改规则,并立全部 6 张卡」 (large PRs and ceiling gates each go to the maintainer); ruling 6624258595 on #29465 item 3 and 6624345766 item 3 (facade form, delegation-only gate, exceptions list); the protocol.ts codemod precedent #29998, #30687, #30954, #31177; pm-dispatch "新增门禁默认否" (satisfied: the maintainer named the ceiling).feat(scripts): codemod-split-registry, the registry.ts split as a re-…
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
os-dev-report
{ "issue": 33949, "status": "done", "branch": "claude/area-E1-33949-ceiling (PR 1) · claude/area-E1-33949-registry (PR 2)", "pr": "https://github.com/objectstack-ai/objectstack/pull/34103 (PR 1, head cfb690a278) · https://github.com/objectstack-ai/objectstack/pull/34285 (PR 2, head 59508583bf)", "prs": [ { "pr": "https://github.com/objectstack-ai/objectstack/pull/34103", "branch": "claude/area-E1-33949-ceiling", "head": "cfb690a278", "what": "ruling item 2: line ceiling in check:facade-delegation-only + ceilings rows (protocol.ts 11605/11705, engine.ts 6754/6854, sql-driver.ts 9971/10071 at 63db7240aa; CEILING_MARGIN 100)", "draft": true, "labels": [ "skip-changeset" ], "checks": "49 check-runs on cfb690a278: 26 success, 23 skipped, 0 failure" }, { "pr": "https://github.com/objectstack-ai/objectstack/pull/34285", "branch": "claude/area-E1-33949-registry", "head": "59508583bf", "what": "ruling item 1, split 1 of 8: registry.ts 12,548 -> 6,326 lines by scripts/codemod-split-registry.mjs, 13 modules, exports unchanged (68 names, 55 value / 13 type)", "draft": true, "labels": [], "checks": "in_progress at report time: 18 in_progress, 5 skipped, 0 failure" } ], "session": "session_01QsR2jTkZnXtRhuEiiyidvJ", "premise_still_valid": true, "summary": "PR 1 (#34103) adds the narrow line ceiling of ruling item 2 to the existing check:facade-delegation-only gate and registry: one ceilings row per registered facade file, maxLines = measured count + CEILING_MARGIN 100, over-ceiling is an error telling the author to use a new module and that raising is MAINTAINER-ONLY by ruling; unsplit files carry none. PR 2 (#34285) is split 1 of 8: scripts/codemod-split-registry.mjs (pass 1 of the engine codemod re-targeted at SchemaRegistry, plus an exports-equality proof) splits packages/objectql/src/registry.ts into 13 modules with registry.ts kept as the forwarding entry; 200/215 methods and 127/161 top-level declarations move, proved byte-identical, exports proved equal. #34156 merged at 01:46Z while PR 2 was being verified, so PR 2 was regenerated on 98a4449f87 (the main #34156 landed) before opening; it now waits for #34224. Side order: PR #34147 regenerated against main and pushed (pr34147_regen).", "tests": "PR 2 on 59508583bf: pnpm --filter @objectstack/objectql test -> Test Files 598 passed (598), Tests 13280 passed (13280), lock VERDICT command-exit 0. Closure build runtime^... + cli^... 63/63 tasks; turbo typecheck objectql + 11 direct dependents 75/75 successful. Dependents' tests on 3683e1eb53/537121403d (pre-regeneration): turbo 84/86 tasks, the 2 red were harness-caused (cli: OS_TEST_TIERS=unit is not a legal tier value; runtime: 2 files failed at load, @objectstack/observability had no dist) and re-ran green after the closure build: runtime 2/2 files 6/6 tests, cli --project unit 423/423 files 6010/6010 tests. codemod --self-test: 74 cases in 7 batteries pass. --verify --base origin/main (98a4449f87): byte-identity 200/200 bodies + 127/127 declarations identical, registry.ts 12548 -> 6326; exports-equality equal (68 names + 10 generated). federated-injected-column-readers.test.ts 1/1 file 5/5 tests. Ablation (scripts/ablation-replace.mjs, restore blob == HEAD eb7cc556a0b3, git diff HEAD empty): disabling the lever check reds 'a new export outside the lever-(a) statement fails'; disabling the missing-export check reds 'a base export the split no longer exports fails'. PR 1 (cfb690a278): self-test 44 batteries; ablations C1/C3/C4/C5 each red then restored (readings in the PR body).", "gates": "PR 2 local on 59508583bf: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands -> 93 families, each run with the exit captured before any pipe, all exit 0; --ran reconciliation: '93 run, 0 NOT-MEASURED'. Among them check:facade-delegation-only (registry.ts SchemaRegistry: 256 members, 207 delegations, 34 fields, 15 named exceptions), check:adr-symbol-anchors (3630 anchors resolve), check:registry-log-declared, check:rest-log-declared, check:dual-build-cjs-loads (123 entries load), check:lean-entry-closure, check:pm-dispatch-gates fast tier 2217 cases. check-platform-checklist --changed-from origin/main: OK, 0 lost. PR body gated before pr_create: check-changeset-no-major --event, check-adr-0087-registration, check-closing-keyword-parity --body, check-partof-closing-keyword: all exit 0. CI on 59508583bf: in_progress (18 in_progress, 5 skipped, 0 failure at 03:59Z). PR 1 CI on cfb690a278: 26 success, 23 skipped, 0 failure. pnpm lint not run locally for PR 2 (repo-wide scan, CI-owned).", "line_budget": { "skills": "n/a, no skills/** touched", "facade_ceilings_main": { "packages/metadata-protocol/src/protocol.ts": "11605/11705", "packages/objectql/src/engine.ts": "6754/6854", "packages/drivers/driver-sql/src/sql-driver.ts": "9971/10071" }, "registry_ts_after_split": "6326 lines; ceiling row deferred (see deviations), would be baseLines 6326 / maxLines 6426 at the regeneration commit" }, "files_changed": { "pr1": [ "scripts/check-facade-delegation-only.mjs", "scripts/facade-delegation-registry.json" ], "pr2": [ ".changeset/33949-registry-split.md", "scripts/codemod-split-registry.mjs", "scripts/facade-delegation-registry.json", "scripts/check-facade-delegation-only.mjs", "packages/objectql/src/registry.ts", "packages/objectql/src/registry-apps.ts", "packages/objectql/src/registry-bare-names.ts", "packages/objectql/src/registry-facet-hosts.ts", "packages/objectql/src/registry-items.ts", "packages/objectql/src/registry-namespaces-and-claims.ts", "packages/objectql/src/registry-object-registration.ts", "packages/objectql/src/registry-package-addressing.ts", "packages/objectql/src/registry-packages.ts", "packages/objectql/src/registry-picklists.ts", "packages/objectql/src/registry-platform-global.ts", "packages/objectql/src/registry-restore.ts", "packages/objectql/src/registry-storage.ts", "packages/objectql/src/registry-top-level.ts", "packages/objectql/src/federated-injected-column-readers.test.ts" ], "pr34147": [ "content/docs/references/index.mdx (regenerated, plus the merge of origin/main)" ] }, "registry_ts_open_pr_overlap": [ { "pr": 34224, "branch": "claude/area-E1b-32780", "draft": true, "change": "+31/-2", "measured": "2026-11-16T03:58Z over 68 open PRs", "note": "PR 2 waits for it, then is regenerated with node scripts/codemod-split-registry.mjs --write on fresh main" }, { "pr": 34156, "change": "+73/-7", "note": "merged 01:46Z; PR 2 already regenerated on 98a4449f87 which contains it" }, { "pr": 34036, "change": "+45/-1", "note": "merged 19:50Z; inside the split" } ], "facade_open_pr_overlap_vs_pr1_ceilings": "at 00:52Z: protocol.ts #34169 +11/-2, #34147 +20/-0, #33885 +11/-2; engine.ts #34043 +17/-7, #33652 +16/-1; all well inside the 100-line margin", "rerun_command": "node scripts/codemod-split-registry.mjs --write (on a branch cut from fresh origin/main with registry.ts unsplit); --verify --base REF re-proves a split on disk", "pr34147_regen": { "branch": "claude/area-E1-33308", "old_head": "8ed07410cd", "new_head": "624b7ff393", "steps": "git fetch origin main; bash scripts/pm/os-regen-merge.sh: step 1 merge commit 5c47ec74a7 (origin/main 98a4449f87), step 2 took main's side of index.mdx/protocol.mdx, step 3 commit refused by the os-regen hook as designed (2 artifacts stale); regenerated with pnpm --filter @objectstack/spec gen:schema && gen:docs (merge already committed, not in MERGE state), committed 624b7ff393 (hook: both current, marker cleared). Pushed to claude/area-E1-33308 only; no body edits, queue actions or comments.", "readings": "spec repo project scripts/root-index.test.ts: 1/1 file, 20/20 tests (VERDICT command-exit 0); pnpm --filter @objectstack/spec build && check:generated: 'All 14 generated artifacts are up to date' (VERDICT command-exit 0; the first try without the build red only on api-surface because dist was stale); dogfood closure build + test/history-diff-two-holders-33308.dogfood.test.ts: 1/1 file, 9/9 tests (VERDICT command-exit 0). CI on 624b7ff393: 58 success, 10 skipped, 0 failure.", "patch_id": "non-generated files (12, the os-regen-unrouted ones): git diff origin/main...HEAD | git patch-id --stable = e97b7a9cd143 before (base b4eea88505) and e97b7a9cd143 after (base 98a4449f87): identical. Same 20-file list. Generated files: 7 of 8 per-file patch-ids identical; only content/docs/references/index.mdx differs (the PR's +1 schema now lands on main's 1663 instead of 1662: total 1664, API 494). main later moved to b8456ebd4a (hook.zod.ts, no new exports, no reference change)." }, "deviations": [ "PR 2 used a second worktree /home/claude/objectstack-e1-33949-registry (the dispatch named one worktree; two PRs on two branches need two).", "PR 2 edits packages/objectql/src/federated-injected-column-readers.test.ts, outside the claim's file surface: 5 READERS keys follow their function to its new file (FILE#FUNCTION :: column). No assertion changed. The split cannot land without it, because the test reads by path.", "PR 2 carries no ceilings row for registry.ts: the ceilings list exists only in PR 1 (#34103, not merged). Whichever lands second must add {file: registry.ts, baseLines: count at the regeneration commit, maxLines: +100, ruling 6897467376}, or #34103's gate reds. Expect textual conflicts between the two on scripts/facade-delegation-registry.json and DECLARED_WATCH_HINTS.", "PR 2 dependents' tests were not re-run on the final head 59508583bf after the regeneration on #34156. Typecheck was re-run there (75/75). The tests ran on the pre-regeneration heads. This is a declared narrowing; CI runs the full set.", "The first dependents run set OS_TEST_TIERS=unit, which is not a legal value. cli was re-run with --project unit and the env unset.", "PR 2 regenerated twice after the claim: on 86350e125d (after #34036) and on 98a4449f87 (after #34156).", "pnpm lint was not run locally for PR 2. It is repo-wide and CI-owned.", "The 15 exception rows in scripts/facade-delegation-registry.json cite #33949 as their card. They are first-pass stays, as on engine.ts." ], "dogfood_battery": "n/a: no ! in either PR title and no (narrowing) arm (Clause-②: no). The #34147 order ran only its named pin, 9/9.", "mcp_calls": "0", "api_writes": "4 — (1) PR 1 pr_create via fleet-write relay (POST repos/objectstack-ai/objectstack/dispatches -> #34103, labels skip-changeset); (2) PR 2 pr_create via fleet-write relay (POST repos/objectstack-ai/objectstack/dispatches, run 43801288430 -> #34285, read-back 12219 bytes identical, no assignees, no labels); (3) this os-dev-report comment on #33949 via scripts/pm/post-stamped.mjs; git pushes (claude/area-E1-33949-ceiling, claude/area-E1-33949-registry, claude/area-E1-33308) are not REST writes. Reads used gh api GETs only.", "open_questions": [ { "question": "Should the 15 first-pass stays in registry.ts (rows citing #33949) get their own members-pass card, as engine.ts did, or stay as permanent exceptions?", "options": [ "A: the seat files a members-pass card as a sub-issue of #33949. It names the 15 members by stay reason: bare-this 8; inferred-return-type 2; constructor, computed name, parameter-shadows and 2 stub-keeps 1 each. The rows are re-pointed at it.", "B: keep the rows on #33949 as they are and retire them when the eight splits are done." ], "recommendation": "A. Long-term soundness: the facade gate's exceptions stay traceable to a card that will move them, as with engine.ts, so they do not become permanent. Guarding against AI mistakes: a named card keeps an agent from reading the 15 rows as precedent for adding more stays. Real business need: no runtime effect either way. Startup focus: one card, no new gate. B leaves the rows pointing at a card whose deliverable is the eight splits, not these members." }, { "question": "In which order should #34103 (ceiling) and #34285 (split 1) land, given that whichever lands second must add the registry.ts ceiling row?", "options": [ "A: #34103 first (it is CI-green now); #34285 then waits for #34224, is regenerated, and adds its ceiling row in that regeneration.", "B: #34285 first, then #34103 is rebased to add the registry.ts row." ], "recommendation": "A. Long-term soundness: the ceiling exists before the facade it bounds, so split 1 is born under it. Guarding against AI mistakes: the regeneration seat measures baseLines on the same tree it adds them to. Real business need: neither changes runtime. Startup focus: A needs no extra PR round, because #34285 must be regenerated after #34224 anyway." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: lint.yml's comment above the facade-delegation-only step describes the delegation rule only, not the ceiling (workflow out of bounds; the script header is the authority)." ] }Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Request: review · PR #34103 · area S4 (E1) · Part of #33949 (ruling item 2, the line ceiling) · head cfb690a (green: 26 success, 23 expected skip, none failed; declared final)
Ordinary ACCEPT read (L1) per review-checklist.md. No contract face:
Clause-②: no,Metadata-protocol: none,skip-changeset, no spec or governed path. Files:scripts/check-facade-delegation-only.mjsandscripts/facade-delegation-registry.json.check:facade-delegation-onlygate gains a ceiling: one row per registered facade file, withmaxLines= measured +CEILING_MARGIN100. Going over the ceiling is an error that names the maintainer-only raise. This narrows an existing gate; it is not a new gate.registry.tsceiling row in that regeneration.6 remaining items
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft
Delivery note · #33949 · area o1-D · 2026-11-16T13:48Z
registry.ts, PR refactor(objectql): split registry.ts into section modules by codemod (split 1 of 8), a move with the public exports unchanged #34285 merged (merge commit60803879aa5de5a61f50cb0fd9723db70be9707a) under the maintainer's approval; the shrink-only ceiling for already-split files landed earlier with PR feat(gates): a line ceiling on every file already in facade form #34103. Both PRs werePart of #33949, so the card stays open.2. auth-manager + auth-plugin (its precondition, fix(auth)!: the environment-access gate on /oauth2/authorize judges every client the request names #33937, is closed)
3. service-automation engine + plugin
4.
action-execution.ts5.
mcp-http-tools.ts6. marketplace install-local plugin
7.
metadata-manager.ts8.
stack.zod.ts: a published contract, to come back for its own approval before starting.pm:dispatchedandlease:o1-D, unassignsos-project-managerand addspm:queue; the next seat to pick it up starts at split 2.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p2 → p3 by the maintainer's grading principle of 2026-11-18; the maintainer approved this batch in triage's session (「同意降到 p3」). Downgraded only: the card stays open.
The principle, in order:
Why this card: internal code tidy-up: the next codemod splits of large hot files and a line ceiling; no user effect (frozen).
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC
Closed 2026-11-22T06:47Z as not planned. With cards D and E (#33945, #33946) closed, the ordering decision this card puts to the maintainer has nothing left to order. A future split that pays for itself can be filed on its own measurement.
Ruling: the maintainer (Steedos), 2026-11-22T06:42Z, verbatim 「同意」, on seat 7's close list for the queued area:fleet cards (p3 work with no user effect is closed, per the 2026-11-15 standard 「用户无感的 p3 直接关」).