Repository navigation
Description
repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu
Filed on the maintainer's word: split card 2 of the large-file plan.
Filing gate: ③ maintainer-directed. Source: maintainer (Warren, os-warren), os-warren's fleet project thread, 2026-11-30T01:18:13Z 「同意,立卡」 and 2026-11-30T01:18:26Z 「按照 fable的方案」, approving the large-file plan of an isolated fable analysis (measured on origin/main f5da514; prior rulings 6624258595 on #29465 and 6897467376 on #33949: a split file carries a facade ceiling, an unsplit file none, "at most a warning"; #33949 closed 11-22 with "a future split that pays for itself can be filed on its own measurement").
Grading: area:workflow · Task (no behaviour change) · Suggested-grade: p2 · reach: every approvals card · evidence: packages/plugins/plugin-approvals/src/approval-service.ts 12,429 lines at f5da514 (176 members), +2,948 in 30 days, 19 commits in the last week; open PRs #38497 (+1,432) and #38634 (+1,247) both add to it; named "next round" in ruling 6897467376.
Blocked-by: #38497, #38634
维护者速读
- 问题:审批服务一个文件 1.2 万行,一个月涨了近 3,000 行,手上两个 PR 还各加 1,200 多行,审批相关的卡都挤在这一个文件。
- 做什么:等这两个 PR 合并后,按职责拆成几个模块,只搬代码、不改行为,单独一个 PR。
- 要你做什么:拆分 PR 超过 3,000 行时需您批准。
Ask
- First the ~2,300 lines of top-level helpers ahead of the class (refusals, row mapping, SLA) to leaf modules.
- Then the class bodies by concern: request lifecycle, notification, read redaction (the dev proposes the cut and names).
ApprovalServicekeeps its public surface and delegates. Move-only: no renamed public member, no behaviour change, no new package export. - Register the facade in
scripts/facade-delegation-registry.json: afacadesrow and aceilingsrow (post-split count,CEILING_MARGIN100); a state-owning member that stays gets anexceptionsrow with its reason. - One PR (or one per step if over 3,000 lines changed). Start from main after the blockers merge; land before another card opens a PR on the file.
Acceptance
- The PR body maps each moved member or helper to its new file; net growth past a pure move is itemised per file.
- Every plugin-approvals test and the approval pins elsewhere pass unchanged; the package's public declaration is unchanged.
scripts/check-facade-delegation-only.mjsis green with the new rows;approval-service.tsfalls well below 2,000 lines.
Not here
- Any fix or feature.
packages/spec/src/contracts/approval-service.ts(the contract) is untouched.
Activity
objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: lands in
packages/plugins/plugin-approvals/src/approval-service.tsand new concern modules, move-only · area:workflow · domain:services · Task · p2 · pm:blocked · size L (one PR, move-only).Rationale: split card 2 of the large-file plan, maintainer-directed (「同意,立卡」「按照 fable的方案」, 2026-11-30T01:18Z, quoted in the body). A refactor is a Task; it takes p2 because every approvals card queues on this one file. It waits on the body's
Blocked-by:line (PRs #38497 and #38634, which both add to the file). Routed to the area:workflow lane. Answers knock 7266133804.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Seat note · 2026-12-01T11:33Z · ⛔ not a claim; state and labels unchanged.
Both blockers (#38497, #38634) are closed, so this card is about to re-enter the queue. Its acceptance has the same contradiction the sibling split #38667 hit: "the package's public declaration is unchanged" and "
approval-service.tsfalls well below 2,000 lines" cannot both hold under the facade form (on #38667 the public signatures and docblocks alone keptengine.tsat 7,735 lines; that forced ruling 7305055957).Measured now:
approval-service.tsis 15,275 lines (the card says 12,429) with 190private/protectedmembers. The two landed sibling move-only splits grew their package source past a pure move: #38889 (automation) +2,642 net, PR #38700 (knowledge) +1,785 net, mostly doubled signatures and docblocks and the facet host blocks.The maintainer has since ruled on #38667 (7309703845) that the automation engine's published declaration is not a customer contract, and filed the target state (state moved into its modules, no host scaffolding) as #38905. Whether this card keeps its move-only facade form or goes straight to the state-owning form is being put to the maintainer by this seat; the seat will not dispatch it under the current acceptance until that answer is recorded here.
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-01T11:57Z · on the seat note 7309820070 (this card's acceptance holds the same contradiction as #38667's).
The maintainer, in seat repo:objectstack@os-justin's session, verbatim: 「38665 直接做成目标形态」.
Ruling — this card goes straight to the state-owning form; the move-only facade form is not built. It replaces the card's ask and acceptance as follows:
ApprovalService's state moves into the modules that own it; each module receives its few dependencies in its constructor;approval-service.tsbecomes the composition root and keeps one-line delegations for its public methods. No facet host blocks, no signature or docblock written twice (one copy, on the module or on the public method). Thescripts/facade-delegation-registry.jsonfacade and exception rows are not owed (the file is not a facade); the file's line ceiling, if one is owed, is the measured end size.IApprovalService(packages/spec/src/contracts/approval-service.ts) and the service registered asapprovalsbehave and type-check unchanged; the public methods the shipped skills document (e.g.ApprovalService.decide()) keep their signatures. Byte-identity of the published.d.tsis not required: private members and docblock placement may change (same reasoning as the ruling 7309703845 on 拆分 service-automation engine.ts(12,298 行)为职责模块,只搬不改 #38667 — customers author metadata and reach the service through its spec interface).Part of #38665(the last oneFixes), each with behaviour tests for the paths it moves; every plugin-approvals test and the approval pins elsewhere pass.approval-service.tsfalls well below 2,000 lines" as a fixed number; and, for this file, the not-planned closure of refactor: move shared state out of the protocol.ts and engine.ts facades into state-owning facets, so the hot bodies left on the class can become delegations (ruling 6624345766) #30020 (state-owning facets as a standalone programme) — the maintainer's words here order it.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim: PM loop round 1
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Account:
os-justinBranch:
claude/issue-38665-approval-service-modulesWorktree:
objectstack-issue-38665Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/plugins/plugin-approvals/src/approval-service.ts,packages/plugins/plugin-approvals/src/(reason: the state-owning modules the ruling 7310432861 orders; each PR names its new files in its body),scripts/query-options-erasure-baseline.json(reason: PR 0b retires this file's grandfathered row), the source-keyed pins and anchors the step-1 map §5 names —packages/core/src/security/second-object-read-exposure.pin.test.ts,scripts/adr-anchors/packages__plugins__plugin-approvals__src__approval-service.ts.json,docs/qa/platform-checklist/areas/approvals.json,packages/spec/liveness/(reason: they key on this file's path and method names; widened in place after the step-1 map) (stop on breach; explain in the report)Container & model:
L,mode:cloud,model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier; the cluster cut is a design judgement),effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7310432861
Premise: holds (origin/main ac97540, 2026-12-01T11:58Z:
approval-service.ts15,275 lines, 190private/protectedmembers;IApprovalServiceatpackages/spec/src/contracts/approval-service.ts:1107; blockers #38497 and #38634 closed)Serial constraints cleared: no in-flight claim names
approval-service.ts(check-handover --inflight, 2026-12-01T11:58Z); open PR #38871 touches onlyflow-route.integration.test.tsin this package. Step 1 (the state-ownership map) is the seat's, posted here before any dev is dispatched. Landing: each cluster PR by its own size; a PR over 3000 changed lines is Tier H.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Step 1 · state-ownership map and cluster plan · 2026-12-01T12:17Z · ordered by the ruling 7310432861; measured read-only on origin/main ac97540 by an at-tier analysis subagent (TypeScript compiler API over the file; test counts are regex). The full map follows the seat's review.
维护者速读
approval-service.ts,需要排在后面。Seat review (verdict: the plan is sound; three changes)
Spot-checked:
scripts/query-options-erasure-baseline.jsonexempts 10 sites in this file (line 38); 9 test sites override a method on the instance ((svc as any).x = …, grep over the package's*.test.ts). Both hold.approval-service.tsthe composition root with its 38 public delegations. That is the ruling's form; no fork.Part of #38665, the lastFixes. Each is dispatched only after the previous one merges (all touchapproval-service.ts).Out of scope, recorded: the durable shared state (
sys_approval_requestwritten at 17 sites in 15 methods across 4 modules, 8 of them read-modify-write onnode_config_json) gets no single owner from a move; that is a behaviour change for its own card if wanted.attachTenancyPostureandactionLinkUrlhave 0 callers and 0 tests (map §6): a retirement question for triage, not this card.Hot file: while this series runs, a card that edits
approval-service.tsqueues behind the PR in flight (Blocked-by:that PR), per the area lease's split rule.ApprovalService state map and split plan (#38665)
Target:
packages/plugins/plugin-approvals/src/approval-service.tsatorigin/mainac97540(working tree file is byte-identical to
origin/main, checked withcmp).Read-only analysis; nothing in the repo was edited.
How it was measured. TypeScript compiler API (
ts.createSourceFile, TypeScript 6.0.2 from/opt/node22/lib/node_modules) over the file: everythis.<name>inside the class is classified asfield read / assignment / container mutation (
.set/.delete/.add/.push…) / method call / methodreference, attributed to the enclosing class member (closures included). No
const self = thisalias and no
this[...]dynamic access exist (0 and 0), so the AST count is complete for the class.this.engine.<op>('<object>', …)calls and their payload keys were extracted the same way.Test and caller references were measured by regex/grep (marked where so).
Not run: tests,
tsc,eslint(this checkout has nonode_modules). Git churn is notmeasurable here (shallow clone, 3 commits). Scripts and raw output are in
/tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/tools/(
ast.json,ast2.json,callgraph.txt,rep1.txt,clusters.json,tests.json).0. Headline: the premise needs one correction
The class holds almost no in-memory state, so "cluster by state ownership" does not decide the cut.
attach*setter)this.<field>read sites outside the constructorengine(165),logger(118),automation(55) orclock(24)this.<method>call/reference sitesCompare with the engine.ts attempt (105 state reads + 138 method callbacks): here the state reads
that would need a host are 10, but the method coupling is larger. Under the 8-module cut below,
204 of the 404 intra-class call sites (plus 5 static calls) cross a module boundary, through 74
distinct methods. A facade-with-host form would therefore leave ~209 callbacks, worse than
engine.ts. The state-owning form is still viable, because the module graph is acyclic (section 3),
so every one of those 209 sites becomes a direct call on a constructor-injected lower module and no
module ever calls back into the service. What is not achievable is "a few narrow dependencies" for
the top layer: the door methods (
openNodeRequest,decide,recall, …) are orchestration andneed 6 lower modules through 54 methods at 152 call sites.
The state that really is shared is durable: the
sys_approval_requestrow (17 write sites in 15methods across 4 modules). Section 3 covers it.
1. State inventory
Line = declaration line. R/W = sites outside the constructor (AST). "Methods" lists every writer,
and every reader when there are few; the full per-method list for
engine/logger/clockis intools/rep1.txt.1a. Mutable state (5 fields)
strandScanCursorstring | null= nullinspectStrandedRequests(11619)inspectStrandedRequests(11613)reconcileScanCursorstring | null= nullreconcileMarkedApprovals(12424)reconcileMarkedApprovals(12418)sweepClockScheduledboolean= falsenoteSweepClockScheduled(3319), called by the plugin at approvals-plugin.ts:557judgeOpening(7098)schemaReadVerdictsWeakMap<object, Promise<boolean>>authorizeSchemaRead(.set, 15211)authorizeSchemaRead(15208)platformAdminStandingsWeakMap<object, Map<string, Promise<boolean>>>platformAdminStanding(.set, 3815)platformAdminStanding(3808)Module-level mutable state in the same file:
REQUEST_VISIBILITY(2965) andSLOT_LABELS(2991),both
WeakMap<ApprovalService, …>written once per instance in the constructor (3127, 3130) andread by the exported
requestVisibilitySourceOf/slotLabelSourceOf.1b. Late-bound collaborators (constructor option, replaceable through a public setter)
automationApprovalResumeSurface?attachAutomation3302messagingApprovalMessagingSurface?attachMessaging3324notifyonlytenancyPosture() => string | undefinedattachTenancyPosture3183orgScopeDeps3280,organizationWallStands3582,recipientContext13360fieldVisibilityFieldVisibilitySource?attachFieldVisibility3192servedFields3246,subjectNamesFor13316,freeTextMayMatchSnapshot13695objectReadAdmissionObjectReadAdmissionSource?attachObjectReadAdmission3203 only (not a constructor option)admittedTargetObjects1c. Collaborators fixed in the constructor (never reassigned)
engineApprovalEngine(readonly)clockApprovalClock(readonly)loggerApprovalServiceOptions['logger'](readonly)publicBaseUrlstring(not readonly, but only the ctor assigns it, 3091)notify,actionLinkUrl,approvalsInboxLinkgetConsoleUrlConsolePageComposer?(readonly)notify,approvalsInboxLinkmessageTranslator() => ValidationMessageTranslator | undefineduserFacingRefusali18nServiceSource() => ReaderLabelI18n | undefineduserFacingRefusal,readerLabelspositionLabelSource(name) => Promise<string | undefined>notePositionLabelsownershipQueues() => ApproverQueueSource | undefinedqueueSourceworkCalendar() => Pick<IWorkCalendarService,'addWorkingHours'> | undefinedslaDeadlinerecordReaderVisibleObjectsReadonlySet<string>(readonly)recordReaderTierOnrecordOrgResolverRecordOrganizationResolver(readonly; built in ctor 3080, memoizes per object)attributedMirrorContext×2,openNodeRequestBody7787pendingApproverReadsPendingApproverReadGrantSource(readonly; built in ctor 3081 with closures overisOverrideActor,callerAccountEmail)pendingApproverReadGrantsStatic constants:
SERVED_TEXT_SCOPE_CAP= 5_000 (13775, used byservedTextArms),APPROVER_INDEX_CAP= 10_000 (13953, used byorganizationAdministrators,approverRequestIds,visibleRequestIds,addRecordReaderVisibleIds).1d. Field reads per proposed module (read sites;
/W= writes outside the constructor)engineloggerclockautomationtenancyPosturefieldVisibilityi18nServiceSourcerecordOrgResolver2. Clustering
Because 1a is trivial, the modules below are cut on (a) the call graph, so that the module graph is
a DAG, and (b) which durable rows a module writes. Eight top-level modules; the maintainer asked
for 3–7. Merging
actorsintodirectorygives 7, but they share no state and no call, so I keptthem apart. Line counts: "span" = class lines including the doc comment above each member;
"prelude" = top-level helpers referenced by that module alone (transitively) that move with it.
ApprovalActors(approval-actors.ts)attachTenancyPostureApproverDirectory(approver-directory.ts)ApprovalRuns(approval-runs.ts)attachAutomationApprovalDisplay+ notifier (approval-display.ts,approval-notifier.ts)localizeActionRows,attachFieldVisibility,attachObjectReadAdmission,attachMessaging,actionLinkUrlApprovalRequestReader(approval-request-reader.ts,approval-visibility.ts)listRequests,countRequests,getRequest,getRecordLock,getRecordLocks,listActions,authorizeFileRead,authorizeSchemaRead,rebuildApproverIndex,pendingApproverReadGrantsApprovalJudge(status-mirror.ts,approval-judge.ts)noteSweepClockScheduledapproval-opening.ts,approval-decisions.ts,approval-tokens.ts,approval-escalation.ts)openNodeRequest,decideNode,decide,recall,sendBack,resubmit,reassign,remind,requestInfo,comment,issueActionTokens,peekActionToken,redeemActionToken,handleActionPage,runEscalationsApprovalRecovery(approval-recovery.ts)inspectStrandedRequests,continueRestoredRun,reconcileMarkedApprovals,releaseDeadRunRequests,cancelForDeletedRecordLeft on the composition root: the constructor (140 lines today), the two
WeakMapregistrations,and 38 one-line delegations. Shared by two or more modules and not owned by any: 1,149 prelude
lines in 41 declarations (
SYSTEM_CTX,uid,parseJson,actingUserId,recordedActor,stampOf,rowFromRequest,pendingSlateOf,RUN_STATUS_LIVENESS,ApprovalResumeSurface, …).Module 1 — ApprovalActors (who the caller is)
platformAdminStandings(cache). Collaborators:engine,tenancyPosture,workCalendar,logger.isOverrideActor3493,organizationWallStands3581,resolveActor3674,callerHasEmail3715,callerAccountEmail3726,excludedSubmitterSlots3746,submitterSlots3762,actingCaller3777,platformAdminStanding3805,takenSlot3844,attachTenancyPosture3182; plus the SLA clockslaDeadline11388 andprojectWorkingTimeDue11427 (a 43-line leaf read by reader, opening and escalation; it can equally be its own function module).resolveActor×8,takenSlot×5,isOverrideActor×9 across modules,actingCaller×6); 37 inbound call sites through 10 methods.Module 2 — ApproverDirectory (who a slot expands to)
engine,clock,logger,tenancyPosture,ownershipQueues.expandTeamUsers4562,teamIsProvablyOutsideOrg,readTeamRow,dropMembersProvablyOutsideOrg,businessUnitOrgScope,businessUnitMemberScope,expandBusinessUnitUsers4832,businessUnitIsLive,queueSource,expandQueueUsers,expandPositionUsers5180,organizationAdministrators5231,expandMembershipTierUsers,readHoldersToCompletion,readRowsToCompletion,lookupManager5395,managerIsProvablyOutsideOrg,reassignTargetRefusal10839.expandApprovers3895,warnPlatformSlotNotOpened,resolveApproverSpec4029,warnExpansionFailed,resolveExpressionApprovers4350,applyOooDelegation5484,namesNoAccount,lookupActiveDelegation5577,orgScopeDeps3277,directoryOrgFor3289.expandApprovers(4, fromopenNodeRequestBodyanddecideNode),organizationAdministrators(3),reassignTargetRefusal(3),expandPositionUsers(3),businessUnitIsLive(1),readTeamRow(1).Module 3 — ApprovalRuns (the automation gateway)
automationslot (31 of its 55 read sites). Writes the strand journal intosys_approval_request.node_config_json(journalStrandedContinuation11801).attachAutomation3301,flowPackageOf5051,requestFlowSlot5075,requestFlow5109,requestFlowKey5125,stepRunsInArmedBody4986,serviceResume8894, staticsresumeCodeOf/resumeStatusOf/resumeRefusalOf/recognisedRefusal/parentStrandReport8928–9008,assertRunResumable9090,missingRunCapability9155,resumeRecordedOutcome9237,journalStrandedContinuation11790,batchAboveItem9816,resumeBatchOfRecalledItem9851,cancelRunsOfVoidedRequest10128,voidedRunChain10184,assertReviseEdge10513,expectedPauseNode12056,runHasEnded14956,ranArmedBody14974.Module 4 — ApprovalDisplay and ApprovalNotifier
fieldVisibilityandobjectReadAdmissionslots. Collaborators:engine,logger,i18nServiceSource,positionLabelSource,tenancyPosture.servedSubjectFields3219,servedFields3238,redactPayloads3267,resolveDisplayField12835, staticstitleCandidates/pickTitle/titleAsServed,resolveUserNames12880,readUserNames,slotLabels12937,slateLabels,actionRow12990,resolveLookupFields13047,servesPayloadDisplayTarget13085,admittedTargetObjects13120,resolveFieldLabels,resolveSubjectDisplays,titlesAsServed,objectLabelOf13261,subjectNamesFor13293,recipientContext,enrichRows13402,readerLabels14404,localizeActionRows15042,notePositionLabels15122,attachFieldVisibility,attachObjectReadAdmission.messagingslot,publicBaseUrl,getConsoleUrl. Methods:notify3339,attachMessaging3323,actionLinkUrl10967,approvalsInboxLink11157,notifyDecisionOutcome9491. Calls display at 2 sites (subjectNamesFor,objectLabelOf).actionRow×20 andnotify×17.Module 5 — ApprovalRequestReader (read side, visibility, approver index)
schemaReadVerdicts(cache),recordReaderVisibleObjects,pendingApproverReads. Sole writer ofsys_approval_approver(syncApproverIndex13550/13553,rebuildApproverIndex13611/13623).syncApproverIndex13535,rebuildApproverIndex13566,approverRequestIds13970,approverIndexWhere,participantProbes14026,visibleRequestIds14106,addRecordReaderVisibleIds,recordReaderTierOn,applyVisibility,requestRowForCaller14566,refuseUnreadableRequest14613,authorizeSchemaRead15205,servesAnyRequest15240,pendingApproverReadGrants3177.freeTextMayMatchSnapshot,buildRequestWhere13709,servedTextArms,recordsTitledWith,listRequests14320,countRequests14415,readBackRequest14476,getRecordLocks14519,getRequest14545,getRecordLock14664,loadRequest14681,loadPendingRow3448,assertLatestForRun10555,attachDecisionProgress,attachViewers,attachFlowSteps,attachFlowRoute,listActions14978,authorizeFileRead15155.isOverrideActor×4,actingCaller×4,projectWorkingTimeDue×2), display (11 methods, 17 sites:enrichRows,readerLabels,servedSubjectFields,redactPayloads,resolveUserNames,localizeActionRows,objectLabelOf,servedFields,resolveDisplayField, 2 statics), runs (requestFlow,runHasEnded).readBackRequest×10,syncApproverIndex×11,loadPendingRow×6,refuseUnreadableRequest×3,assertLatestForRun×3,getRequest,visibleRequestIds,approverRequestIds.Module 6 — ApprovalJudge (status mirror, run reading, verdict, opening check)
sweepClockScheduled; shares therecordOrgResolverinstance with opening. Sole writer of the subject record's status field (mirrorStatusField5735). Writes marks onsys_approval_request(keepRunsRead6536,abandonApproval6661,clearMarks6865,noteLaterStepNotOpened6987,voidRefusedOpening7208) and 3 timeline rows.mirrorStatusField5701,closesOnApprovalOutcome,holdsBackDecision,reportRefusedMirror7239,mirroredStatusValue,closedValuesOf,abandonedValueOnClosingField,approvalWroteHeldValue,attributedMirrorContext,hasTimelineLine); run reading (readCarryingRun6088,laterStepNotOpenedOn,waitingRun,readApprovalRun,placeApprovalRun,keepRunsRead,runsReadAtOpening); verdict (judgeApprovalAfterDoor5845,abandonApproval6653,cancelStoppedRun,reportFlowNotContinued,clearMarks,clearEarlierMarks,refuseAbandonedContinuation,deciderOf,noteLaterStepNotOpened); opening check (judgeOpening7025,openingRootFlow,openingCalleeFlow,isFirstRequestOfApproval,voidRefusedOpening), plusnoteSweepClockScheduled3318.actionRow×3, notifiernotify×3, directoryorganizationAdministrators×2, runsvoidedRunChain,flowPackageOf, readersyncApproverIndex.judgeApprovalAfterDoor×11,mirrorStatusField×7,clearMarks×3,clearEarlierMarks×3,holdsBackDecision×2, and 7 used once by opening/recovery.Module 7 — Doors (use cases)
sys_approval_requestinsert (8161), 7 of its updates, 15sys_approval_actioninserts, bothsys_approval_tokenwrites (11001, 11070).openNodeRequest7638,openNodeRequestBody7725 (665 lines, the largest method),loadLiveRecord7584,snapshotRecord12817,platformAdminApproverRefusal5003,namesPlatformAdminApprover4969.isApprovalSatisfied8399,assertDecisionOutputsMatchDeclarations8444,decisionOutputValueRefusal8522,decideNode8562,assertAttachmentsUploadedByCaller9026,decide9340,decideAndResume9368;recall9585,userFacingRefusal3612,sendBack10240,resubmit10413;reassign10580,assertReassignTargetResolves,assertReassignTargetIsNotSubmitter,remind10875,requestInfo11208,comment11248.issueActionTokens10983,resolveActionToken,peekActionToken,redeemActionToken11063,handleActionPage11122,personForTokenSlot.runEscalations11306,escalateRequest12672.actionRow×15,notify×14,slateLabels×4, …), reader 30 (readBackRequest×10,syncApproverIndex×8,loadPendingRow×6, …), judge 24 (judgeApprovalAfterDoor×8,mirrorStatusField×6, …), actors 23, runs 22, directory 13. Exact list intools/clusters.json.redeemActionToken → decide,escalateRequest → decideAndResume).Module 8 — ApprovalRecovery (sweeps and repair)
strandScanCursor,reconcileScanCursor. Writessys_approval_requestat 12514 (endApprovalOfDeletedRecord), 12644 (abandonForDeadRun), 10031 (cancelForDeletedRecord) and 2 timeline rows.inspectStrandedRequests11569,resolveRecordedContinuation11851,continueRestoredRun12198,reconcileMarkedApprovals12395,recordIsGone,endApprovalOfDeletedRecord,endApprovalsOfDeletedRecord,releaseDeadRunRequests12570,abandonForDeadRun12627,cancelForDeletedRecord9971.judgeApprovalAfterDoor×3,clearMarks×3,refuseAbandonedContinuation,mirrorStatusField,clearEarlierMarks), reader (assertLatestForRun,syncApproverIndex×2), runs (expectedPauseNode,resumeRecordedOutcome,cancelRunsOfVoidedRequest), display (actionRow×2). Nothing depends on it.3. Cross-cluster hot spots
3a. In-memory fields read by several modules
automation(late-bound; the plugin attaches it at approvals-plugin.ts:750, afterregisterServiceat :483)readCarryingRun6101,placeApprovalRun6378,runsReadAtOpening6573/6596,cancelStoppedRun6783/6797,judgeOpening7095/7096,openingRootFlow7125,openingCalleeFlow7152), recovery 12 (inspectStrandedRequests×6,continueRestoredRun×4,releaseDeadRunRequests×2), doors 1 (recall9705), reader 1 (attachFlowSteps14833)attach(surface),get()), written only byattachAutomation.ApprovalRunsgets the slot; judge, recovery and reader get the read-only thunk() => ApprovalResumeSurface | undefined, the same shape six collaborators already have (workCalendar,ownershipQueues, …). Each consumer keeps its owntypeof x?.getRun !== 'function'test, so the move is textual.recall's one site becomesruns.cancelRun(runId, reason). Narrower typing is possible per module: judge usesgetRun,suspensionOf,cancelRun,getActionDescriptor,getFlow,getRunFlow,getFlowSlot(s),flowSlotKey; recovery useshasSuspendedRun,getRun,inspectConsumedSuspension,suspensionOf; reader usesgetFlow.tenancyPostureattachTenancyPosturehas 0 callers anywhere in the repo (grep over ts/tsx/md/mdx). Either keep it and use the same slot pattern, or the maintainer rules it removable and the constructor thunk is passed to the three modules directly.fieldVisibilityfreeTextMayMatchSnapshot13695)freeTextMayMatchSnapshot(21 lines, one caller:buildRequestWhere) into display so it has a single reader module, or exposedisplay.fieldVisibility().i18nServiceSourceuserFacingRefusal3632), display 1 (readerLabels14407)recordOrgResolverengine,logger,clock{ engine, clock, logger }object passed to every constructor.The five mutable fields in 1a are not hot spots: each has one owner and no outside reader, except
sweepClockScheduled, whose writer is a public method the plugin calls and whose only reader isjudgeOpening; it lives with the opening check and the facade'snoteSweepClockScheduled()delegates to it.
3b. Durable state written by several modules (the real shared state)
sys_approval_requestopenNodeRequestBody8161 insert;decideNode8816, 8846;recall9661;sendBack10294, 10347;reassign10682;escalateRequest12743), judge 5 (6536, 6661, 6865, 6987, 7208), recovery 3 (10031, 12514, 12644), runs 1 (11801)sys_approval_actionactionRowsys_approval_approversyncApproverIndex,rebuildApproverIndex); 11syncApproverIndexcall sites from doors 8, recovery 2, judge 1sys_approval_tokenmirrorStatusField, 7 callers in 3 modules)By column, the request row splits into two groups that do not follow module lines:
status,pending_approvers,pending_approver_labels,completed_at,cancel_reason): 10 sites in 8 methods across judge (voidRefusedOpening), doors(
decideNode×2,recall,sendBack×2,reassign,escalateRequest) and recovery(
cancelForDeletedRecord,abandonForDeadRun). All eight, and the insertingopenNodeRequestBody, then callsyncApproverIndex.node_config_json(run-read marks, abandoned mark, later-step note, strand journal, decisionoutputs):
keepRunsRead,abandonApproval,noteLaterStepNotOpened,journalStrandedContinuation,endApprovalOfDeletedRecord, plus conditional spreads indecideNode(8816, 8846) andreassign(10682): 8 sites in 4 modules (judge 3, doors 3, runs 1,recovery 1), each a read-modify-write of one JSON column.
unjudged_sinceis written at 3 sitesin 2 modules (
clearMarks6865;decideNode8848,sendBack10297).Proposal: the move PRs leave these writes where they are (each module keeps calling
engine.update).Giving the row one owner (
RequestStore.writeSlate(row, patch)that also syncs the index, andpatchNodeConfig(id, fn)) is a behaviour change with its own concurrency questions and belongs in alater card. Until then no module can truthfully be said to own the request row.
3c. Cycles
Measured on the 8-module cut and on the 20-unit PR order: 0 mutual module pairs, 0 forward call
sites in topological order. Four placements are what keep it acyclic; a cut by method theme would
create each of these cycles:
namesNoAccount → reassignTargetRefusal → expandPositionUsers:reassignTargetRefusal(10839)sits among the reassign code but must live in the directory, or directory ↔ doors is a cycle.
resumeRecordedOutcome → journalStrandedContinuationandcontinueRestoredRun → resumeRecordedOutcome:journalStrandedContinuation(11790) andexpectedPauseNode(12056) sitamong the recovery code but must live in runs, or runs ↔ recovery is a cycle.
cancelForDeletedRecord → endApprovalsOfDeletedRecordandreconcileMarkedApprovals → endApprovalOfDeletedRecord:cancelForDeletedRecord(9971) goes to recovery, so doors andrecovery stay independent siblings.
loadPendingRow(3448) andassertLatestForRun(10555) go to the reader;escalateRequest → decideAndResumeandredeemActionToken → decideput escalation and tokens above decisions.4. Construction order and lifecycle
Constructor-only injection is enough; no setter injection between modules is needed.
Lifecycle:
setInterval/setTimeout/subscription and nostart/stopin approval-service.ts (grep: 0 hits). The plugin owns it:start()builds theservice (approvals-plugin.ts:279), calls
attachFieldVisibility(:372),attachObjectReadAdmission(:398),attachMessaging(:496),attachAutomation(:750);destroy()(:779) cancels the job and unbinds hooks. None of that changes.ESCALATION_JOB_NAME, everyESCALATION_SCAN_INTERVAL_MS= 5 min, plus one bootrun): approvals-plugin.ts:528–552 calls
runEscalations,releaseDeadRunRequests,inspectStrandedRequests,reconcileMarkedApprovalsunderPromise.allSettled, thennoteSweepClockScheduled(:557). After the split the four legs land in escalation (1) andrecovery (3); they already run concurrently with each other and with user doors, so the split
adds no new interleaving.
repeat, never a miss", 3029–3033). A second
ApprovalRecoveryinstance would restart the walk;the root must build exactly one.
platformAdminStandingsandschemaReadVerdictsareWeakMaps keyed by the requestcontext object, so they need no invalidation and no teardown; they hold a per-request memo only
if every caller reaches the same module instance (one
ApprovalActors, one visibility module).recordOrgResolvermemoizes for the service's lifetime.PendingApproverReadGrantSourcememoizes per context and engine write epoch.
automationandmessagingmay be absent for the whole life of the service(no automation engine, no messaging service); every module must keep reading the slot at call
time, never capture its value in a constructor.
5. PR order
"Moved" = class span plus exclusive prelude helpers. A move shows in a diff as −N/+N, so the
changed-line count is about twice "moved", plus the rewiring of call sites (
this.x(→this.<module>.x() listed as "sites". Only 6 of 20 units stay under 1,000 changed lines countedthat way; 15 of 20 stay under 1,000 moved lines. Order is topological: each unit calls only units
above it in the table (measured, 0 forward sites), so no unit ever calls back into the service.
Two prerequisites, no method moves:
(1,163 lines:
SYSTEM_CTX,uid,parseJson,actingUserId,recordedActor,stampOf,rowFromRequest,pendingSlateOf,RUN_STATUS_LIVENESS,ApprovalResumeSurface, …) into one ortwo leaf files; approval-service.ts re-exports the exported ones (besides
ApprovalService, filesin the package import 24 other names from it, e.g.
SLA_ACTOR_ID,RUN_STATUS_LIVENESS,ApprovalNodeAutoOutcome; index.ts re-exports 12 types). Over 1,000 lines;split by topic (rows and actors / run liveness and strand types) if the limit is firm.
scripts/query-options-erasure-baseline.json:38grandfathers 10 erasure sites for this file, and the ratchet fails on any file added to the
baseline (check-query-options-erasure-ratchet.mjs:268–276). Moving a counted site into a new file
goes red. Either type those sites first or get a ruling. My AST heuristic located 3 of them
(
lookupManager5397,lookupActiveDelegation5585,loadLiveRecord7586); the other 7 are notlocated (eslint not runnable here).
approval-actors.tsresolveActor:6033,actingCaller:6103/:6355; spiesisOverrideActor:5663), approval-actor-impersonation, admin-exemption-retired, agent-account-not-an-administrator.integration, platform-admin-approver-34218, approval-positions-name-authority, approval-tenant-positions-name-authority, exclude-submitter.integration, approval-service-sla-calendar-clock (SLA)platformAdminStanding; the per-context memo is not pinned as far as grep shows.attachTenancyPosture: 0 tests, 0 callersapprover-holders.tsreassignTargetRefusal,readRowsToCompletion,dropMembersProvablyOutsideOrgnever named; reached through doors onlyapprover-resolver.tsresolveApproverSpec,resolveExpressionApprovers), ooo-delegation-organization, sys-approval-delegation-*.test, approver-org-scope, no-approver-note, submitter-exclusion-note, admin-rescue-named-slate.integrationapproval-runs.tsexpectedPauseNode,flowPackageOf,requestFlowKey:894–897), approval-reconciler-37767.integration (overridesresumeRecordedOutcome:556)voidedRunChain,cancelRunsOfVoidedRequest,batchAboveItem,missingRunCapabilitynever named in a testapproval-display.tsresolveLookupFields/enrichRowsdirectly), lookup-target-title-reader-fls.integration, lookup-target-title-row-access.integration, approval-payload-masked-field, approval-payload-redaction, actor-lookups-hold-ids.integrationlocalizeActionRows: no direct test call (reached vialistActionsand the plugin middleware; not verified)approval-notifier.tsactionLinkUrl: 0 tests, 0 callersapproval-visibility.tsparticipantProbes,isOverrideActor,servesAnyRequest; callsvisibleRequestIds), request-read-gate.integration, request-child-read-gate.integration, request-read-waiting-on-caller.integration, record-reader-visibility, record-reader-opt-in.integration, pending-approver-read-grant.integration, sys-approval-request-viewer.conformancesyncApproverIndexnever named in a testapproval-request-reader.tsgetRequest×81,listRequests×43,listActions×29,countRequests×14), record-lock-read.integration (getRecordLock×38,getRecordLocks×21), approval-free-text-scope, approval-inbox-search-display-text.integration, flow-route.integration, sys-approval-request-attached-on-readattachDecisionProgress,attachFlowRoutenever namedstatus-mirror.tsapproval-run-reading.tsRunsReadprelude helpers (runsReadAfter,keptAsEnded, …) have no unit test; not verified whether another file covers themapproval-judge.tsjudgeApprovalAfterDooron the instance, :203–205 and :264–266), approval-closed-states-37766.integration, approval-outcome-when-over-37767.integrationjudgeApprovalAfterDooris named in any testapproval-opening-gate.tsnoteSweepClockScheduledapproval-recovery.tsinspectStrandedRequests×43, cursor :854), stranded-run-repairability, restored-approval-continuation (continueRestoredRun×26; callsresolveRecordedContinuation:556–583), stranded-resubmit-second-door (:361, :379)reconcileMarkedApprovals×98, cursor and limit :484–529), approval-service.test.ts (releaseDeadRunRequests×13), record-delete-cancel.integration, action-locale-data-door.integrationcancelForDeletedRecord: 4 direct calls in 2 files; its hook path (lifecycle-hooks.ts) not verifiedapproval-opening.tsopenNodeRequest(435 calls): approval-service.test.ts ×294, approval-node, approval-node-degradation, team-member-org-screen, team-approver-org-screen, exclude-submitter.integration, admin-rescue-named-slate.integration, approval-snapshot-credential-maskapproval-decisions.tsdecideNode×126,decide×27), approval-override-audit, approval-actor-impersonation, approval-reject-wording-35021, decision-attachments-uploaded-by-caller.integration, platform-admin-approver-34218sendBack×26,resubmit×18,recall×9), recall-refusal-user-copy (×13), recall-strand-discriminator, batch-item-recall-resumes-batch, restored-approval-continuationreassign×39,remind×14,comment×14,requestInfo×7), exclude-submitter.integration, approval-override-audit, reminder-action-link-at-rest.integration, actor-lookups-hold-ids.integrationrequestInfois the thinnest: 12 calls in 6 filesapproval-tokens.tsissueActionTokens×26,handleActionPage×25), approval-token-internal-hash.integration, sys-approval-token-generic-door.integration, subject-title-reader-fls.integrationapproval-escalation.tsrunEscalations×17), approval-service.test.ts (×18), platform-admin-approver-34218, plugin-shutdown-cancels-escalation-jobTest counts are regex counts of
.method(in the 142*.test.tsfiles of the package (95 of themname
ApprovalService; 53,630 test lines; approval-service.test.ts alone is 7,406). They showwhich files exercise a path, not line coverage. 114 of the 165 private methods are never named in
any test file, so a regression in one shows up only as a failing door test.
After PR 20 the facade should be the constructor, two
WeakMapregistrations and 38 delegations;my estimate is 600–800 lines (not measured).
Each move PR also has to update, in the same PR:
approver-address-readers.test.ts(READERS :90–101 and SLOT_SITES keysapproval-service.ts · <method> · <text>; 21 references) for PRs 1, 3, 5, 7, 8, 11, 16, 17, 18, 19;packages/core/src/security/second-object-read-exposure.pin.test.ts:182–187(file path,servesPayloadDisplayTarget, and the literalthis.servesPayloadDisplayTarget() for PR 5;text-field-html-outlets.pin.test.ts:75(census of files touching HTML) for PR 19;scripts/adr-anchors/packages__plugins__plugin-approvals__src__approval-service.ts.json(ADR-0157 and ADR-0042 must stay referenced in the anchored file; the invariant text names
ApprovalService.slaDeadline) for PRs 1 and 20.test files, about 47 sites (regex): 9 instance overrides, 3
vi.spyOn, the rest direct calls.approval-service.ts#<method>: 20 indocs/qa/platform-checklist/areas/approvals.json, 3 in packages/spec/liveness/*.json. Whether a
gate validates them was not verified.
6. Risks, and what contradicts the premise
fields, 10 sites, no field shared between modules. The scaffolding risk in this class is method
coupling: 209 cross-module call sites over 74 methods. A facade-with-host form would be worse
here than on engine.ts. The state-owning form works because the graph is a DAG, and only if PRs
land in topological order.
directory, runs, display have none; reader 3; judge 4; recovery 4. The door units need 6 modules
through 54 methods at 152 sites (
recall/sendBack/resubmitalone: 50 sites). That is thehonest shape of an orchestration layer; narrowing it would mean redesigning the lower modules'
interfaces, which is not a move.
the class is comments that must travel with the code. Counting both sides of a move, 6 of 20
units fit in 1,000 changed lines; counting moved lines, 15 of 20. The five over are PRs 3, 4, 8,
10, 13 (1,049–1,078 each) and PR 0a (1,163).
to
sys_approval_requestin 4 modules, 8 of them read-modify-write onnode_config_json.(svc as any).judgeApprovalAfterDoor = …(approval-hold-37767.integration.test.ts:203, approval-reconciler-37767.integration.test.ts:264),
(svc as any).organizationAdministrators = …(reconciler :395, :551;status-mirror-closing-field-refusal :185),
(svc as any).resumeRecordedOutcome = …(reconciler:556) and the three
vi.spyOn(svc as any, …)in approval-service.test.ts :5655–5685 interceptinternal calls. After a move the assignment still succeeds and intercepts nothing, so a test can
keep passing for the wrong reason. Each must be re-pointed at the owning module in the PR that
moves the method, and that PR should show the test failing when the seam is removed.
new baseline files outright (PR 0b).
automationormessagingin its constructor would seeundefinedforever, because the plugin attaches bothafter constructing the service. 36 test files call
attachAutomationafter construction, sothis would fail loudly, but only for paths those tests reach.
ApprovalService.resolveLookupFields/ApprovalService.enrichRows(13059, 13091, 13139) andlookup-field-reference-carrier.test.ts:78 asserts one; keep the strings verbatim. The file has
390
{@link …}tags; those pointing at moved members will dangle (no gate found; not verified).attachTenancyPosture,actionLinkUrl(grep over ts/tsx/md/mdx). They are public on an exported class, so they stay as delegations
unless the maintainer rules otherwise.
decideNode,openNodeRequest,issueActionTokensand 19other public methods are outside
IApprovalService(16 members) but are called by the plugin,approval-node.ts,lifecycle-hooks.ts, plugin-sharing, service-storage or tests; all 38 publicmethods must remain.
node_modules), so "pure move keeps tests green" isan inference from the AST, not a result. Churn on this file and overlap with open PRs could not
be measured (shallow clone); a 15k-line file split across 22 PRs will conflict with any
concurrent change to it, so the window should be short and announced.
refactor(plugin-approvals): type approval-service query-options sites…
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Seat note · 2026-12-01T12:59Z · acknowledging triage's notice 7311900364 (maintainer Warren, 2026-12-01T12:51Z, 「全部同意」 on 「拆分一类的优化任务排在其他 p1 p2 后面,除非严重影响车队效率,需要立刻分拆的」; skill text #38912). This split does not qualify for the exception.
approval-service.tsqueues behind this series). It is the other way round: cards that touch this file — 37767 后续:审批读取的 fan-out 判断与引擎注释收尾(N14–N17、N23、stopOf) #38691 and 审批运行读取先查内存记录:过期的暂停记录可能让已完成的审批被判为放弃 #38674 among them — go first and are not parked on this claim's file surface; each PR of this series rebases after them.approval-service.ts; the seat checks the overlap at L1 and holds or rebases it.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 38665, "status": "done", "branch": "claude/issue-38665-approval-service-modules", "pr": "https://github.com/objectstack-ai/objectstack/pull/38921", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "PR 0b (draft #38921, Part of #38665, no method moves). The baseline row claimed 10 sites but the ratchet itself measured 4 on origin/main ac97540f75 ('erasure count fell 10 -> 4'); a single-rule ESLint pass with the grandfathering lifted located them: lookupManager 5397, lookupActiveDelegation 5585, loadLiveRecord 7586 (`} as any)` -> `} satisfies EngineQueryOptions)`) and the request-list query 14370 (`const findOpts: any` -> `const findOpts: EngineQueryOptions`). All four bags type-check unchanged against EngineQueryOptions, so no key mismatch and no behaviour question; the approval-service.ts row is removed from scripts/query-options-erasure-baseline.json (not lowered), so the file is now under pnpm lint's rule and later module files start at zero. Head 16186f6967, 3 commits.", "tests": "HEAD 16186f6967. `pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2` under os-verify-lock: VERDICT command-exit 0; 'Test Files 142 passed (142)', 'Tests 2256 passed (2256)'. Typing-only, no tested behaviour changed: no new test, no ablation. Reverse verification: planted `direction: 'desc'` in the lookupManager bag and in the list query's orderBy -> `tsc --noEmit` exit 2 with two TS2353 at approval-service.ts(5398) and (14359) ('direction' does not exist in type ...); restored with `git restore --source=HEAD --staged --worktree`, porcelain empty. Published-output check: package built from base and head sources -> index.js/index.mjs/index.d.ts/index.d.mts byte-identical, only index.js.map/index.mjs.map differ (embedded source text); dist is in files[] so a patch changeset is owed (not skip-changeset).", "gates": "Local, on HEAD 16186f6967, exit captured before any pipe: `pnpm --filter @objectstack/plugin-approvals typecheck` exit 0 (VERDICT command-exit 0; check:test-typecheck OK); `pnpm check:query-options-erasure` exit 0 ('25 unswept non-test site(s) in 11 file(s), none new'; 'baseline key set verified against ac97540: no files added'); `npx eslint --no-inline-config packages/plugins/plugin-approvals/src/approval-service.ts` exit 0, 0 problems; dependency closure `pnpm turbo run build --filter='@objectstack/plugin-approvals^...' --concurrency=2` exit 0 (40/40 tasks). `node scripts/pm/dispatch-gates.mjs --ran FILE --repo objectstack-ai/objectstack` exit 0: 'Run reconciliation - 76 derived, 74 run, 2 NOT-MEASURED, 0 UNRUN'. The 74 all exit 0. NOT MEASURED: `pnpm check:dual-build-cjs-loads` exit 3 and `pnpm check:i18n` exit 3, both PREREQUISITE NOT MET (full workspace build absent; only the plugin-approvals closure was built) -> CI Lint & Repo Gates. check:platform-checklist not owed (no export renamed or deleted). PR check-runs: not yet read at report time (CI convergence is the seat's).", "mcp_calls": "0", "api_writes": "3 REST writes via the fleet-write relay: POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/38921/assignees (os-justin), one pr_create stroke, read-back 'identical'; POST /repos/objectstack-ai/objectstack/issues/38665/comments (this os-dev-report via post-stamped.mjs). Plus git push (not REST): the branch probe and 3 commit pushes.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none - noted, not filed: scripts/query-options-erasure-baseline.json keeps a row for packages/runtime/src/http-dispatcher.ts at 1 although the ratchet reads it clean ('baselined file is clean/gone (was 1)'); headroom for one new erasure until `--update` drops it; outside this claim's file surface, left untouched; in PR Acceptance notes." ], "deviations": "(1) The order said 10 sites; there were 4 (ratchet measurement) - all typed, row removed. (2) One gate loop was auto-moved to the background by the harness at its 600s cap; stopped at once with TaskStop and re-run in foreground chunks, the two ratchets and check:comment-mask-corpus (213.8s) re-run singly - all exit 0. (3) Baseline row removed by hand rather than `--update`, because --update would also drop the http-dispatcher.ts row outside the file surface.", "files_changed": [ "packages/plugins/plugin-approvals/src/approval-service.ts (+5/-5)", "scripts/query-options-erasure-baseline.json (-1)", ".changeset/38665-approval-query-options-typed.md (new, patch, @objectstack/plugin-approvals)" ], "line_budget": "21 changed lines (+15/-6) across 3 files, under the 3000 threshold and the ruling's ~1,000 per PR", "worktree": "objectstack-issue-38665 removed after the PR opened (node_modules deleted, git worktree remove exit 0); work lives on origin/claude/issue-38665-approval-service-modules @ 16186f6967" }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Series ledger · 2026-12-01T14:10Z · PR 0b landed: PR #38921 merged (
Part of #38665; L1 ACCEPT 7313079240). Fouranyerasures typed, the file's row is out of the query-options baseline, so later module files start at zero.Claim stood down here:
pm:dispatched→pm:queue, assignee cleared, no dev in flight. By the maintainer's split ruling (relayed in 7311900364), this series ranks after the other p1/p2 cards; it is re-claimed for PR 0a (shared prelude primitives) when the seat's pick reaches it, and each later PR follows the step-1 comment's order. Nothing is lost: the ruling 7310432861, the map and the PR grouping on this card stand, and the branch name in the claim is reused per PR as each new claim states. Checked now: no open p1/p2 card namespackages/plugins/plugin-approvals/src/approval-service.tsin its body (#38691 names automation files; #37770 names the spec contractapproval-service.ts, not this file).refactor(plugin-approvals): type approval-service query-options sites…
docs(pm-dispatch): acceptance lines checked to hold together; split c…
docs(pm-dispatch): a split card targets the state-owning form; a surf…
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: re-read 2026-12-03T14:33Z at os-bill's request on mailbox #39280. area:workflow · domain:server · Task · p2 · pm:queue, grade unchanged.
Blocked-by: #38497, #38634no longer holds:approval-service.tsare not coming.The split proceeds on main as it stands. The series ledger (PR 0b, refactor(plugin-approvals): type approval-service query-options sites (PR 0b of #38665) #38921 merged) is the starting point.
Grade: area:workflow · Task · p2 · every approvals card · measured (12,429 lines at f5da514).