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
rest: import mappingName and connector pull resolve the mapping by package (ADR-0150 D3; reader before #31700) #32071
area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Epic: ADR-0150 (#31527). This card adds a reader that #31700 needs before it narrows. Found by #31700 step 0 (amendment 6760386575, project file server-seat3/31700-step0.md, measured on main at 48f18b5 with showcase plus com.qa.bare.alpha (namespace alpha) and com.qa.bare.beta (namespace beta), each holding one name). Today the cold boot only warns, so this shape boots on main. Blocks:#31700. Lane:domain:server.
mapping: the import door and the connector pull resolve the mapping by ADR-0150 D3
Today:
The import door POST /data/:object/import with mappingName (rest import-mapping.ts) reads getMetaItem({type:'mapping'}) with no package. Beta's import answers 400 MAPPING_TARGET_MISMATCH because it got alpha's mapping.
The connector pull reads the same way.
The bare GET /meta/mapping/NAME serves the first holder.
Do:
Import: the caller is the package of the target object. An NS_custom or environment object reads with no caller.
Connector pull: the caller is the package of the job or connector that runs it.
Bare read: add mapping to PACKAGE_SCOPED_READ_TYPES.
Rule (D3): a package caller resolves to its own item, then to the one holder in its closure plus sys, and otherwise refuses. A read with no caller takes the environment item, then the one package holder, and otherwise answers 409 RESOURCE_CONFLICT naming every candidate. It never takes the first or last match. The qualified addresses (/meta/:type/:ns/:name, ?package=, _env) reach each holder. Clause-②: the seat declares it. A two-holder read changes from "first holder" to 409, which narrows behaviour for a shape that only boots with a warning. The first-party census is 0, so give it. Pins: two packages and two namespaces with one name: each caller gets its own item, and a read with no caller answers 409 naming both. Ablating the resolver turns the pins red. Epic red-line review before landing.
Claim amendment · #32071 · 2026-11-10T10:12Z · corrects the takeover Claim 6764439957
The takeover claim's File surface:, Serial constraints cleared: and Thread-read: lines were rendered wrong (a shell-quoting slip printed a card number with a trailing digit). They read:
File surface: unchanged from claim 6760547602 and ruling amendment 6760823385 (rest import door, service-automation connector pull, objectql package-scoped-read.ts, tests, dogfood pins, docs, changeset).
Serial constraints cleared: the PACKAGE_SCOPED_READ_TYPES line and its pin are shared with PR #32097 and PR #32098; second to land merges origin/main and keeps every entry. The pull half is serial after PR #32114.
Thread-read: 6763044616
Every other line of that claim stands.
{
"issue": 32071,
"status": "done",
"part": "A (resume: main merge, Skills-docs line, reruns on the merged head)",
"branch": "claude/project-thread-dl8ceq",
"pr": "https://github.com/objectstack-ai/objectstack/pull/32117",
"head": "eae53a298a3cfeba6d2ed2e732aadb60a73af044",
"session": "session_01WGufzhpDMvAM1Pvdqg4Qky",
"premise_still_valid": true,
"summary": "Resumed PR #32117 on its own branch from 48ff7eb7ff (takeover 6764439957). Merged origin/main 45f0f81f (no rebase, no force). One textual conflict, on the PACKAGE_SCOPED_READ_TYPES line of packages/objectql/src/package-scoped-read.ts and its pin in package-scoped-e8-readers.test.ts: every entry kept, api (#32092) then mapping; LATER_TYPES is now ['api', 'mapping'] and both TSDoc paragraphs name both. PR #32097 (picklist) had not landed at the merge, so it has no entry yet. No behaviour change beyond the merge resolution; file surface = the PR's existing 10 files. PR body rewritten through the relay: Skills-docs line is now 'updated here' (head already edits import-mappings.mdx and jobs.mdx), attribution block first, Part of #32071 kept, Verification gains the merged-head section.",
"tests": "On eae53a29 after a full turbo build (exit 0), all under os-verify-lock: objectql package-scoped-e8-readers.test.ts 77 passed; rest import-integration.test.ts 46 passed; service-automation connector-pull.test.ts 32 passed; typecheck objectql, rest, service-automation, dogfood each exit 0; pnpm lint exit 0; dogfood bare-name-one-holder.dogfood.test.ts 9 passed; full dogfood battery exit 0, Test Files 446 passed / 3 skipped (449), Tests 3709 passed / 42 skipped (3751), 28m40s.",
"gates": "dispatch-gates --commands derived 100 families on eae53a29; all 100 exit 0 (run serially under the lock); --ran: 100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. CI on eae53a29 at report time: 38 success, 17 skipped, 0 failed; Check Changeset and PR-body guards re-running after the body edit.",
"mcp_calls": "8, all reads: issue_read x2 (#32071 get, comments), pull_request_read x6 (#32117 get, comments, check runs, status; #32097 get). Plus 2 read-only gh api check-run listings.",
"api_writes": "3: git push of eae53a29 (not REST); relay issue_patch on #32117 (run 42806086231, 11598 bytes sent = stored, identical); this comment via post-stamped.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"files_changed": [
"packages/objectql/src/package-scoped-read.ts (merge resolution)",
"packages/objectql/src/package-scoped-e8-readers.test.ts (merge resolution)"
],
"line_budget": "PR vs main: 10 files, +332 / -10; not governed",
"deviations": [
"The first push was refused by the pre-push hook check:commit-card-trailers (model name in the co-author trailer). The unpublished merge commit was amended to the model-free pair and the card number dropped from its subject, then pushed; nothing published was rewritten.",
"The PR body attribution block now credits Yibo Wang / os-support-ai with this thread's link (the takeover account), replacing os-steve's; the predecessor's session URL stays in the footer.",
"The PR body edit was done by this card thread through the relay, signed with the seat's lane trailer, per the seat's order; os-dev.md leaves PR body rewrites to the seat.",
"subscribe_pr_activity on #32117 failed in this session, so CI is read by polling at each step rather than by events.",
"main has moved since the merge (no conflict per git merge-tree on 7e8b31ce); not merged again. The seat expects one more merge on the read-set line once PR #32097 lands."
]
}
Item 3 asks to update the callerPackageId TSDoc sentence in packages/spec ("exactly as today: the bare name, read as a caller with no package") and its doc pin once the caller-less read follows D3. It is owed by this card's Part B PR, the pull reading by the job's own package. That PR changes what the pull reads, so it is the one that makes the sentence untrue. PR #32117 (Part A) leaves the sentence literally true, so it does not carry the item; its contract reviews (6766076903, and the delta on 24baf39c) agree. Part B's order names it.
PR #32117 (Part of #32071) merged at 2026-11-10T14:43Z as 036a9fbf. mapping is in PACKAGE_SCOPED_READ_TYPES. A bare two-holder mapping name is refused with 409 naming both holders at /meta, at the import door's mappingName and at the connector pull (new reason mapping_name_refused). The exact qualifier reaches each holder or refuses a non-holder. Three contract records PASS, and the epic red-line read PASS. The card stays open: Part B, the pull reading by the job's own package (with carrier item 3), starts now on the same branch as a second PR with Fixes #32071.
Claim amendment · #32071 Part B · step-0 rulings · 2026-11-10T14:58Z
File surface: runtime app-artifact-handlers.ts (scheduleAppArtifactJobs: pass each job's declaring body id), service-automation connector-pull.ts and its plugin wiring (an injected registry resolver for a package caller, like connectorNameResolver), the spec ConnectorSourcePullRequest.callerPackageId TSDoc and its doc pin (carrier item 3); tests, dogfood pins, changeset. Stop on breach.
Thread-read: none
Step 0 (maina2bdaea1, note /mnt/project-files/issue-32071/partB-step0.md): one binder, scheduleAppArtifactJobs, arms pull jobs. Today it passes no package. In a multi-package artifact it arms every job under the top-level manifest.id, while each body's mapping registers under the body's id. Seat rulings:
Q1: pass the per-job declaring body id, derived through resolveArtifactPackageOrder (the codeDefinedDatasourceOwners precedent), never the top-level appId.
Q2: a package caller reads through an injected registry resolver (D3 from the caller: own item, then the one holder in its closure plus sys, else refuse). The protocol's getMetaItem({packageId}) is the D5 exact qualifier, which would refuse a closure holder, so it is not used for this read. A call with no package keeps the protocol read (Part A's behaviour).
Declare FROM → TO, first-party 0 (no example declares a job pull):
own item over a same-named environment item;
two holders including the caller, 409 → own (widening);
D3 (c), a body-A job pulling body-B's mapping with no dependency, pulled → refused outside-closure (narrowing).
D3 (a) is unreachable through the binder (judgeJobPull needs the artifact to declare the mapping); say so.
Carrier item 3: a TSDoc and doc-pin change only, so Metadata-protocol: none, unless the change moves a schema or published shape.
{
"issue": 32071,
"status": "done",
"part": "B (the pull reads the mapping by the job's package); second PR on the pinned branch after PR #32117 merged",
"branch": "claude/project-thread-dl8ceq",
"pr": "https://github.com/objectstack-ai/objectstack/pull/32294",
"head": "a3a3ae8e8",
"session": "session_01WGufzhpDMvAM1Pvdqg4Qky",
"premise_still_valid": true,
"summary": "Per the step-0 rulings (Q1 per-job declaring body, Q2 injected registry resolver). runtime: jobDeclaringPackages(bundle, appId) walks resolveArtifactPackageOrder (body job by identity, a top-level copy by name, residual and single-package jobs = appId), and each pull run sends callerPackageId. service-automation: ConnectorPullOptions.callerPackageId and ConnectorPullDeps.mappingByPackage; mappingNameResolver(ctx) over objectql.registry (resolvePackageScopedName, type mapping), injected by plugin.ts; a package caller reads own -> closure + sys -> refusal (mapping_name_refused, the refusal's own code/status/sentence, before any call or write); no package, or no registry, keeps Part A's protocol read. spec: carrier item 3, the callerPackageId TSDoc no longer says 'exactly as today', and its doc pin moves with it (Metadata-protocol none). Docs: jobs.mdx paragraph Part A wrote is rewritten. Moved answers declared, first-party 0: two holders incl. the caller 409 -> own (widening); D3 (c) refused outside-closure (narrowing, BREAKING); D3 (a) unreachable through the binder, reachable only by a direct pullConnectorSource call naming a package (pinned).",
"tests": "After a full build, under os-verify-lock: service-automation full 3570 passed; runtime full 577 files / 9620 passed (19 skipped); runtime job-pull + jobs 76; spec automation-service.test.ts 20; cloud-connection marketplace-install-local-jobs 17; cli package-install-local-jobs-pull.integration 8. Typecheck runtime, service-automation, spec, dogfood exit 0; pnpm lint exit 0; full dogfood exit 0 (447 passed / 3 skipped files, 3731 / 42 tests). Ablations: binder passes appId -> runtime 1 red; pull ignores callerPackageId -> service-automation 4 red; pull drops the package refusal -> 2 red; spec TSDoc reverted -> spec 1 red; git diff --exit-code HEAD 0 after all.",
"gates": "dispatch-gates --commands derived 116 families on a3a3ae8e; all 116 exit 0; --ran: 116 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. CI not yet read: PR just opened (subscribed).",
"mcp_calls": "1 (subscribe_pr_activity on #32294). Reads of GitHub this round went through read-only gh api.",
"api_writes": "3: git push of a3a3ae8e (not REST); relay pr_create #32294 (run 42856093983, 10627 bytes sent = stored, assignees os-support-ai); this comment via post-stamped.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: docs · packages/objectql/src/package-scoped-read.ts module doc still says the connector pull reads with no package; now true only of a pull that names none · carrier: domain:server#3 (outside the ruled file surface) · not filed"
],
"files_changed": [
".changeset/32071-pull-reads-mapping-by-job-package.md",
"content/docs/automation/jobs.mdx",
"packages/runtime/src/app-artifact-handlers.ts",
"packages/runtime/src/app-artifact-handlers.job-pull.test.ts",
"packages/services/service-automation/src/connector-package-scope.ts",
"packages/services/service-automation/src/connector-pull.ts",
"packages/services/service-automation/src/connector-pull.test.ts",
"packages/services/service-automation/src/plugin.ts",
"packages/spec/src/contracts/automation-service.ts",
"packages/spec/src/contracts/automation-service.test.ts"
],
"line_budget": "10 files, +374 / -44 vs main; not governed",
"deviations": [
"Step 0's fourth move, own item over a same-named environment item, does not move when measured: a runtime row under a package mapping's name is that mapping's ADR-0005 overlay, so both callers get the row. Pinned as a CONTROL and not declared as a move.",
"content/docs/automation/jobs.mdx is outside the ruled file surface; edited because Part A's paragraph ('a pull cannot yet read its own package's mapping') turned false with this change.",
"Forced test change: eight pull-request-shape assertions in app-artifact-handlers.job-pull.test.ts gain callerPackageId: APP_ID.",
"pr_create carried assignees (the claim's Account, os-support-ai) per os-dev.md rule 2; no reviewer request was sent (the seat's at hand-off), unlike the harness default.",
"The branch was pushed once before any Part B commit (a main merge with tree equal to main) to satisfy a stop hook; no PR existed for that push."
]
}
Claim amendment · #32071 Part B · fix-round rulings after the contract review FAIL on PR #32294 · 2026-11-10T16:46Z
File surface: as amended for Part B, plus the module doc of objectql package-scoped-read.ts (prose only, carry from review flag 3). Stop on breach.
Thread-read: none
The contract review of PR #32294 at a3a3ae8e failed with two must-fixes (record on the PR). Seat rulings for the fix round:
Must-fix 2, a residual top-level job: it reads as a caller with no package. A job that no body declares runs under the artifact's top-level id, which has no package row (recordResidualOwner: "not a package"). jobDeclaringPackages sends no callerPackageId for it, so it keeps the protocol read and main's answer. Pin it at the resolver over a real registry, together with the mirror case: a body's job pulling a mapping filed under the residual owner. Report what that mirror case answers. If it moves, declare it FROM → TO with a fix that can actually be applied.
Clause-②: no (narrowing) stands. Move 1, 409 → own item, only undoes Part A's 409, which is unreleased and superseded in the same release (Part A's changeset is still pending). The two optional members on exported types are additive. Add one sentence saying this to the changeset and the PR body.
Ruling 6770706358, fourth bullet ("own item over a same-named environment item"): withdrawn. The review confirmed the dev's measurement: the environment row is the mapping's ADR-0005 overlay. It stays a CONTROL and is not declared.
Docs (should-fix 4): in jobs.mdx, a top-level job no body declares reads with no package. The reach is the transitive closure. "Declare the dependency" is offered only where it applies.
Carry (should-fix 5): fix the stale two-line module doc in objectql package-scoped-read.ts here (surface amended above).
Nits 6–8: fix the stale comments of nit 6. Nits 7 and 8 stay as they are; record them in the os-dev-report.
{
"issue": 32071,
"status": "done",
"part": "B fix round after the contract review FAIL on PR #32294 at a3a3ae8e (the seat's fix-round rulings)",
"branch": "claude/project-thread-dl8ceq",
"pr": "https://github.com/objectstack-ai/objectstack/pull/32294",
"head": "dfc7a7def4b5ce16724cd9b6d2e733c508127b17",
"session": "session_01WGufzhpDMvAM1Pvdqg4Qky",
"premise_still_valid": true,
"summary": "Must-fix 1: mappingNameResolver now gives the answer as the served face gives it on main (#24210, withheld AFTER resolution): resolved to a disabled package holder (own or the one closure holder) -> not-found; an outside-closure refusal naming exactly one holder that is disabled -> not-found; so the pull answers 404 mapping_not_found on the package path as the no-package read does. packageScopedHoldersOf untouched; a disabled holder beside an enabled one in the closure still counts and is refused (CONTROL, #32183's class). Must-fix 2: jobDeclaringPackages answers undefined for a residual top-level job (no package unless a body carries the top-level id), and the binder leaves callerPackageId out of that run, so it keeps the protocol read. Clause-② no (narrowing) stands with the reason sentence in the changeset and PR body. Env overlay stays a CONTROL. Docs: jobs.mdx (residual reads with no package, transitive closure, remedy only where it applies, disabled mapping answered missing), objectql package-scoped-read.ts module doc, nit 6 comments (connector-pull.ts header step 1, mapping_name_refused TSDoc incl. D3 (a), connector-package-scope.ts header).",
"mirror_case": "Measured over a real SchemaRegistry: a body's job (callerPackageId = the body) pulling a mapping filed under the residual owner (top-level id, no package row) is refused 409 RESOURCE_CONFLICT outside-closure naming the top-level id; on main (no package) it pulled. Declared as BREAKING move 3, FROM pulled TO refused, with an applicable fix: move the mapping into the job's package body, or move the job to the top level (pinned: a no-package pull of the top-level mapping is pulled). No dependency can reach a top-level id, so 'declare the dependency' is not offered for it.",
"unmoved_measured": [
"a residual job (no package) pulls a body's mapping and a top-level mapping, as on main (pinned)",
"a disabled package's own mapping, a disabled sole closure holder, a disabled sole holder outside the closure: 404 mapping_not_found on both paths (pinned)",
"a disabled holder beside an enabled one in the closure: 409 mapping_name_refused naming both on both paths (CONTROL)"
],
"tests": "After a full build on dfc7a7de, under os-verify-lock: service-automation full 270 files / 3582 passed; runtime full 577 files / 9621 passed (19 skipped); runtime job-pull + jobs, spec automation-service, cloud-connection marketplace-install-local-jobs, cli package-install-local-jobs-pull.integration each exit 0. Typecheck objectql, runtime, service-automation, spec, dogfood exit 0; pnpm lint exit 0; full dogfood exit 0 (448 passed / 3 skipped files, 3739 / 42 tests). Ablations (restored, git diff --exit-code HEAD 0): 1 binder passes appId -> runtime 2 red; 2 pull ignores callerPackageId -> service-automation 5 red; 3 pull drops the package refusal -> 4 red; 4 spec TSDoc reverted -> spec 1 red; 5 resolver stops withholding a disabled holder -> 3 red; 6 residual job names appId -> runtime 2 red.",
"gates": "dispatch-gates --commands derived 117 families on the merged tree; all 117 exit 0; --ran: 117 run, 0 NOT-MEASURED, exit 0.",
"ci": "Previous head a3a3ae8e: Test Core 3/8 red on one runtime test, seed-tenancy-autonumber-split.integration.test.ts '[wiring] the app-plugin handoff fires on the organization insert itself', a 5000 ms timeout. That path is not in this diff, and the test passes in the local runtime full suite on dfc7a7de. The new head's CI is its rerun; watched.",
"nits_kept_by_ruling": [
"nit 7: a callerPackageId of sys_metadata or __runtime__ is a package to the pull's guard but no package to the resolver, so that no-package read goes through the registry, not the protocol; no binder sends either value",
"nit 8: a D3 refusal is deterministic, yet the run is failed and retryPolicy retries it, as in Part A"
],
"side_effects_noted": [
"own disabled item beside another enabled holder: Part A's no-package 409 vs the package path's 404 (own resolved, then withheld). Part A's 409 is unreleased; nothing released moves."
],
"mcp_calls": "1 (subscribe_pr_activity on #32294, to re-read the PR rules). GitHub reads through read-only gh api.",
"api_writes": "3: git push of dfc7a7de (not REST; remote head = PR head = dfc7a7de); relay issue_patch of the PR #32294 body (run 42874921459, 15051 bytes sent = stored, identical); this comment via post-stamped.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"files_changed_this_round": [
".changeset/32071-pull-reads-mapping-by-job-package.md",
"content/docs/automation/jobs.mdx",
"packages/objectql/src/package-scoped-read.ts",
"packages/runtime/src/app-artifact-handlers.ts",
"packages/runtime/src/app-artifact-handlers.job-pull.test.ts",
"packages/services/service-automation/src/connector-package-scope.ts",
"packages/services/service-automation/src/connector-pull.ts",
"packages/services/service-automation/src/connector-pull.test.ts"
],
"deviations": [
"The withholding is applied after resolution (the protocol face's own pattern), not by filtering holders as listedHoldersView does: filtering would resolve a disabled-beside-enabled closure pair to the enabled one, and the ruling keeps that refusal until #32183. An outside-closure refusal naming one disabled holder is also answered not-found, so that case keeps main's 404."
]
}
PR #32294 (Part B) merged at 2026-11-11T00:42Z as 91d88ec1, after Part A (PR #32117) and PR #32114. A job's connector pull now reads its mapping from the package that declares the job, under ADR-0150 D3:
its own package's mapping first, then the one holder in its declared closure, else the 409 naming every candidate;
a top-level job that no body declares sends no package and keeps the no-package read;
a job name declared by two or more package bodies is refused before any call or write;
a disabled package's mapping is answered as not found.
Reviews: the contract review passed, with delta records through 6782556520 on the landing head 1d77d18f. The epic red-line read passed (6779366860). The landing head carried the merge-queue re-land after TS2300 against #32333 (ACCEPT 6783022423).
The pm:dispatched and pm:blocking labels are removed with this note.
area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Claim amendment · #32071 · 2026-11-10T10:12Z · corrects the takeover Claim 6764439957
The takeover claim's
File surface:,Serial constraints cleared:andThread-read:lines were rendered wrong (a shell-quoting slip printed a card number with a trailing digit). They read:File surface: unchanged from claim 6760547602 and ruling amendment 6760823385 (rest import door, service-automation connector pull, objectql
package-scoped-read.ts, tests, dogfood pins, docs, changeset).Serial constraints cleared: the
PACKAGE_SCOPED_READ_TYPESline and its pin are shared with PR #32097 and PR #32098; second to land mergesorigin/mainand keeps every entry. The pull half is serial after PR #32114.Thread-read: 6763044616
Every other line of that claim stands.
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzhpDMvAM1Pvdqg4Qky
os-dev-report
{ "issue": 32071, "status": "done", "part": "A (resume: main merge, Skills-docs line, reruns on the merged head)", "branch": "claude/project-thread-dl8ceq", "pr": "https://github.com/objectstack-ai/objectstack/pull/32117", "head": "eae53a298a3cfeba6d2ed2e732aadb60a73af044", "session": "session_01WGufzhpDMvAM1Pvdqg4Qky", "premise_still_valid": true, "summary": "Resumed PR #32117 on its own branch from 48ff7eb7ff (takeover 6764439957). Merged origin/main 45f0f81f (no rebase, no force). One textual conflict, on the PACKAGE_SCOPED_READ_TYPES line of packages/objectql/src/package-scoped-read.ts and its pin in package-scoped-e8-readers.test.ts: every entry kept, api (#32092) then mapping; LATER_TYPES is now ['api', 'mapping'] and both TSDoc paragraphs name both. PR #32097 (picklist) had not landed at the merge, so it has no entry yet. No behaviour change beyond the merge resolution; file surface = the PR's existing 10 files. PR body rewritten through the relay: Skills-docs line is now 'updated here' (head already edits import-mappings.mdx and jobs.mdx), attribution block first, Part of #32071 kept, Verification gains the merged-head section.", "tests": "On eae53a29 after a full turbo build (exit 0), all under os-verify-lock: objectql package-scoped-e8-readers.test.ts 77 passed; rest import-integration.test.ts 46 passed; service-automation connector-pull.test.ts 32 passed; typecheck objectql, rest, service-automation, dogfood each exit 0; pnpm lint exit 0; dogfood bare-name-one-holder.dogfood.test.ts 9 passed; full dogfood battery exit 0, Test Files 446 passed / 3 skipped (449), Tests 3709 passed / 42 skipped (3751), 28m40s.", "gates": "dispatch-gates --commands derived 100 families on eae53a29; all 100 exit 0 (run serially under the lock); --ran: 100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. CI on eae53a29 at report time: 38 success, 17 skipped, 0 failed; Check Changeset and PR-body guards re-running after the body edit.", "mcp_calls": "8, all reads: issue_read x2 (#32071 get, comments), pull_request_read x6 (#32117 get, comments, check runs, status; #32097 get). Plus 2 read-only gh api check-run listings.", "api_writes": "3: git push of eae53a29 (not REST); relay issue_patch on #32117 (run 42806086231, 11598 bytes sent = stored, identical); this comment via post-stamped.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "files_changed": [ "packages/objectql/src/package-scoped-read.ts (merge resolution)", "packages/objectql/src/package-scoped-e8-readers.test.ts (merge resolution)" ], "line_budget": "PR vs main: 10 files, +332 / -10; not governed", "deviations": [ "The first push was refused by the pre-push hook check:commit-card-trailers (model name in the co-author trailer). The unpublished merge commit was amended to the model-free pair and the card number dropped from its subject, then pushed; nothing published was rewritten.", "The PR body attribution block now credits Yibo Wang / os-support-ai with this thread's link (the takeover account), replacing os-steve's; the predecessor's session URL stays in the footer.", "The PR body edit was done by this card thread through the relay, signed with the seat's lane trailer, per the seat's order; os-dev.md leaves PR body rewrites to the seat.", "subscribe_pr_activity on #32117 failed in this session, so CI is read by polling at each step rather than by events.", "main has moved since the merge (no conflict per git merge-tree on 7e8b31ce); not merged again. The seat expects one more merge on the read-set line once PR #32097 lands." ] }Stamp: 2026-11-10T11:17Z
Generated by Claude Code
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Seat disposal: carrier note 6763044616 item 3 · 2026-11-10T12:34Z
Item 3 asks to update the
callerPackageIdTSDoc sentence inpackages/spec("exactly as today: the bare name, read as a caller with no package") and its doc pin once the caller-less read follows D3. It is owed by this card's Part B PR, the pull reading by the job's own package. That PR changes what the pull reads, so it is the one that makes the sentence untrue. PR #32117 (Part A) leaves the sentence literally true, so it does not carry the item; its contract reviews (6766076903, and the delta on24baf39c) agree. Part B's order names it.objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Part A landed · 2026-11-10T14:55Z
PR #32117 (
Part of #32071) merged at 2026-11-10T14:43Z as036a9fbf.mappingis inPACKAGE_SCOPED_READ_TYPES. A bare two-holder mapping name is refused with 409 naming both holders at/meta, at the import door'smappingNameand at the connector pull (new reasonmapping_name_refused). The exact qualifier reaches each holder or refuses a non-holder. Three contract records PASS, and the epic red-line read PASS. The card stays open: Part B, the pull reading by the job's own package (with carrier item 3), starts now on the same branch as a second PR withFixes #32071.objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Claim amendment · #32071 Part B · step-0 rulings · 2026-11-10T14:58Z
File surface: runtime
app-artifact-handlers.ts(scheduleAppArtifactJobs: pass each job's declaring body id), service-automationconnector-pull.tsand its plugin wiring (an injected registry resolver for a package caller, likeconnectorNameResolver), the specConnectorSourcePullRequest.callerPackageIdTSDoc and its doc pin (carrier item 3); tests, dogfood pins, changeset. Stop on breach.Thread-read: none
Step 0 (
maina2bdaea1, note/mnt/project-files/issue-32071/partB-step0.md): one binder,scheduleAppArtifactJobs, arms pull jobs. Today it passes no package. In a multi-package artifact it arms every job under the top-levelmanifest.id, while each body's mapping registers under the body's id. Seat rulings:resolveArtifactPackageOrder(thecodeDefinedDatasourceOwnersprecedent), never the top-levelappId.sys, else refuse). The protocol'sgetMetaItem({packageId})is the D5 exact qualifier, which would refuse a closure holder, so it is not used for this read. A call with no package keeps the protocol read (Part A's behaviour).outside-closure(narrowing).judgeJobPullneeds the artifact to declare the mapping); say so.Metadata-protocol: none, unless the change moves a schema or published shape.Merge origin/main into #32072: keep picklist (#32097), mapping (#32117)…
test: the (c) door pins read a type the registry still reads through …
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzhpDMvAM1Pvdqg4Qky
os-dev-report
{ "issue": 32071, "status": "done", "part": "B (the pull reads the mapping by the job's package); second PR on the pinned branch after PR #32117 merged", "branch": "claude/project-thread-dl8ceq", "pr": "https://github.com/objectstack-ai/objectstack/pull/32294", "head": "a3a3ae8e8", "session": "session_01WGufzhpDMvAM1Pvdqg4Qky", "premise_still_valid": true, "summary": "Per the step-0 rulings (Q1 per-job declaring body, Q2 injected registry resolver). runtime: jobDeclaringPackages(bundle, appId) walks resolveArtifactPackageOrder (body job by identity, a top-level copy by name, residual and single-package jobs = appId), and each pull run sends callerPackageId. service-automation: ConnectorPullOptions.callerPackageId and ConnectorPullDeps.mappingByPackage; mappingNameResolver(ctx) over objectql.registry (resolvePackageScopedName, type mapping), injected by plugin.ts; a package caller reads own -> closure + sys -> refusal (mapping_name_refused, the refusal's own code/status/sentence, before any call or write); no package, or no registry, keeps Part A's protocol read. spec: carrier item 3, the callerPackageId TSDoc no longer says 'exactly as today', and its doc pin moves with it (Metadata-protocol none). Docs: jobs.mdx paragraph Part A wrote is rewritten. Moved answers declared, first-party 0: two holders incl. the caller 409 -> own (widening); D3 (c) refused outside-closure (narrowing, BREAKING); D3 (a) unreachable through the binder, reachable only by a direct pullConnectorSource call naming a package (pinned).", "tests": "After a full build, under os-verify-lock: service-automation full 3570 passed; runtime full 577 files / 9620 passed (19 skipped); runtime job-pull + jobs 76; spec automation-service.test.ts 20; cloud-connection marketplace-install-local-jobs 17; cli package-install-local-jobs-pull.integration 8. Typecheck runtime, service-automation, spec, dogfood exit 0; pnpm lint exit 0; full dogfood exit 0 (447 passed / 3 skipped files, 3731 / 42 tests). Ablations: binder passes appId -> runtime 1 red; pull ignores callerPackageId -> service-automation 4 red; pull drops the package refusal -> 2 red; spec TSDoc reverted -> spec 1 red; git diff --exit-code HEAD 0 after all.", "gates": "dispatch-gates --commands derived 116 families on a3a3ae8e; all 116 exit 0; --ran: 116 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. CI not yet read: PR just opened (subscribed).", "mcp_calls": "1 (subscribe_pr_activity on #32294). Reads of GitHub this round went through read-only gh api.", "api_writes": "3: git push of a3a3ae8e (not REST); relay pr_create #32294 (run 42856093983, 10627 bytes sent = stored, assignees os-support-ai); this comment via post-stamped.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: docs · packages/objectql/src/package-scoped-read.ts module doc still says the connector pull reads with no package; now true only of a pull that names none · carrier: domain:server#3 (outside the ruled file surface) · not filed" ], "files_changed": [ ".changeset/32071-pull-reads-mapping-by-job-package.md", "content/docs/automation/jobs.mdx", "packages/runtime/src/app-artifact-handlers.ts", "packages/runtime/src/app-artifact-handlers.job-pull.test.ts", "packages/services/service-automation/src/connector-package-scope.ts", "packages/services/service-automation/src/connector-pull.ts", "packages/services/service-automation/src/connector-pull.test.ts", "packages/services/service-automation/src/plugin.ts", "packages/spec/src/contracts/automation-service.ts", "packages/spec/src/contracts/automation-service.test.ts" ], "line_budget": "10 files, +374 / -44 vs main; not governed", "deviations": [ "Step 0's fourth move, own item over a same-named environment item, does not move when measured: a runtime row under a package mapping's name is that mapping's ADR-0005 overlay, so both callers get the row. Pinned as a CONTROL and not declared as a move.", "content/docs/automation/jobs.mdx is outside the ruled file surface; edited because Part A's paragraph ('a pull cannot yet read its own package's mapping') turned false with this change.", "Forced test change: eight pull-request-shape assertions in app-artifact-handlers.job-pull.test.ts gain callerPackageId: APP_ID.", "pr_create carried assignees (the claim's Account, os-support-ai) per os-dev.md rule 2; no reviewer request was sent (the seat's at hand-off), unlike the harness default.", "The branch was pushed once before any Part B commit (a main merge with tree equal to main) to satisfy a stop hook; no PR existed for that push." ] }Stamp: 2026-11-10T16:36Z
Generated by Claude Code
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Claim amendment · #32071 Part B · fix-round rulings after the contract review FAIL on PR #32294 · 2026-11-10T16:46Z
File surface: as amended for Part B, plus the module doc of objectql
package-scoped-read.ts(prose only, carry from review flag 3). Stop on breach.Thread-read: none
The contract review of PR #32294 at
a3a3ae8efailed with two must-fixes (record on the PR). Seat rulings for the fix round:mapping_not_found(404) on the package-caller path, exactly as the no-package protocol read does onmain. That covers the caller's own disabled item and a disabled closure holder. Withhold it at the pull's resolver, the way plugin-sharing'slistedHoldersViewdoes; do not editpackageScopedHoldersOf, which objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183 changes. Pin both cases. Nothing is declared, because nothing moves. Where a disabled holder sits beside an enabled one in the closure, today's refusal stays until objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183 lands; that is objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183's class.recordResidualOwner: "not a package").jobDeclaringPackagessends nocallerPackageIdfor it, so it keeps the protocol read and main's answer. Pin it at the resolver over a real registry, together with the mirror case: a body's job pulling a mapping filed under the residual owner. Report what that mirror case answers. If it moves, declare it FROM → TO with a fix that can actually be applied.no (narrowing)stands. Move 1, 409 → own item, only undoes Part A's 409, which is unreleased and superseded in the same release (Part A's changeset is still pending). The two optional members on exported types are additive. Add one sentence saying this to the changeset and the PR body.jobs.mdx, a top-level job no body declares reads with no package. The reach is the transitive closure. "Declare the dependency" is offered only where it applies.package-scoped-read.tshere (surface amended above).feat(spec): ConnectorSourcePullRequest carries the caller package (ca…
fix(objectql, rest, service-automation): a mapping name two packages …
fix(rest, service-analytics, objectql, metadata-protocol)!: the datas…
objectstack-fleet commentedon Nov 10, 2026
domain:server#3 · os-support-ai · session_01WGufzhpDMvAM1Pvdqg4Qky
os-dev-report
{ "issue": 32071, "status": "done", "part": "B fix round after the contract review FAIL on PR #32294 at a3a3ae8e (the seat's fix-round rulings)", "branch": "claude/project-thread-dl8ceq", "pr": "https://github.com/objectstack-ai/objectstack/pull/32294", "head": "dfc7a7def4b5ce16724cd9b6d2e733c508127b17", "session": "session_01WGufzhpDMvAM1Pvdqg4Qky", "premise_still_valid": true, "summary": "Must-fix 1: mappingNameResolver now gives the answer as the served face gives it on main (#24210, withheld AFTER resolution): resolved to a disabled package holder (own or the one closure holder) -> not-found; an outside-closure refusal naming exactly one holder that is disabled -> not-found; so the pull answers 404 mapping_not_found on the package path as the no-package read does. packageScopedHoldersOf untouched; a disabled holder beside an enabled one in the closure still counts and is refused (CONTROL, #32183's class). Must-fix 2: jobDeclaringPackages answers undefined for a residual top-level job (no package unless a body carries the top-level id), and the binder leaves callerPackageId out of that run, so it keeps the protocol read. Clause-② no (narrowing) stands with the reason sentence in the changeset and PR body. Env overlay stays a CONTROL. Docs: jobs.mdx (residual reads with no package, transitive closure, remedy only where it applies, disabled mapping answered missing), objectql package-scoped-read.ts module doc, nit 6 comments (connector-pull.ts header step 1, mapping_name_refused TSDoc incl. D3 (a), connector-package-scope.ts header).", "mirror_case": "Measured over a real SchemaRegistry: a body's job (callerPackageId = the body) pulling a mapping filed under the residual owner (top-level id, no package row) is refused 409 RESOURCE_CONFLICT outside-closure naming the top-level id; on main (no package) it pulled. Declared as BREAKING move 3, FROM pulled TO refused, with an applicable fix: move the mapping into the job's package body, or move the job to the top level (pinned: a no-package pull of the top-level mapping is pulled). No dependency can reach a top-level id, so 'declare the dependency' is not offered for it.", "unmoved_measured": [ "a residual job (no package) pulls a body's mapping and a top-level mapping, as on main (pinned)", "a disabled package's own mapping, a disabled sole closure holder, a disabled sole holder outside the closure: 404 mapping_not_found on both paths (pinned)", "a disabled holder beside an enabled one in the closure: 409 mapping_name_refused naming both on both paths (CONTROL)" ], "tests": "After a full build on dfc7a7de, under os-verify-lock: service-automation full 270 files / 3582 passed; runtime full 577 files / 9621 passed (19 skipped); runtime job-pull + jobs, spec automation-service, cloud-connection marketplace-install-local-jobs, cli package-install-local-jobs-pull.integration each exit 0. Typecheck objectql, runtime, service-automation, spec, dogfood exit 0; pnpm lint exit 0; full dogfood exit 0 (448 passed / 3 skipped files, 3739 / 42 tests). Ablations (restored, git diff --exit-code HEAD 0): 1 binder passes appId -> runtime 2 red; 2 pull ignores callerPackageId -> service-automation 5 red; 3 pull drops the package refusal -> 4 red; 4 spec TSDoc reverted -> spec 1 red; 5 resolver stops withholding a disabled holder -> 3 red; 6 residual job names appId -> runtime 2 red.", "gates": "dispatch-gates --commands derived 117 families on the merged tree; all 117 exit 0; --ran: 117 run, 0 NOT-MEASURED, exit 0.", "ci": "Previous head a3a3ae8e: Test Core 3/8 red on one runtime test, seed-tenancy-autonumber-split.integration.test.ts '[wiring] the app-plugin handoff fires on the organization insert itself', a 5000 ms timeout. That path is not in this diff, and the test passes in the local runtime full suite on dfc7a7de. The new head's CI is its rerun; watched.", "nits_kept_by_ruling": [ "nit 7: a callerPackageId of sys_metadata or __runtime__ is a package to the pull's guard but no package to the resolver, so that no-package read goes through the registry, not the protocol; no binder sends either value", "nit 8: a D3 refusal is deterministic, yet the run is failed and retryPolicy retries it, as in Part A" ], "side_effects_noted": [ "own disabled item beside another enabled holder: Part A's no-package 409 vs the package path's 404 (own resolved, then withheld). Part A's 409 is unreleased; nothing released moves." ], "mcp_calls": "1 (subscribe_pr_activity on #32294, to re-read the PR rules). GitHub reads through read-only gh api.", "api_writes": "3: git push of dfc7a7de (not REST; remote head = PR head = dfc7a7de); relay issue_patch of the PR #32294 body (run 42874921459, 15051 bytes sent = stored, identical); this comment via post-stamped.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "files_changed_this_round": [ ".changeset/32071-pull-reads-mapping-by-job-package.md", "content/docs/automation/jobs.mdx", "packages/objectql/src/package-scoped-read.ts", "packages/runtime/src/app-artifact-handlers.ts", "packages/runtime/src/app-artifact-handlers.job-pull.test.ts", "packages/services/service-automation/src/connector-package-scope.ts", "packages/services/service-automation/src/connector-pull.ts", "packages/services/service-automation/src/connector-pull.test.ts" ], "deviations": [ "The withholding is applied after resolution (the protocol face's own pattern), not by filtering holders as listedHoldersView does: filtering would resolve a disabled-beside-enabled closure pair to the enabled one, and the ruling keeps that refusal until #32183. An outside-closure refusal naming one disabled holder is also answered not-found, so that case keeps main's 404." ] }Stamp: 2026-11-10T18:26Z
Generated by Claude Code
objectstack-fleet commentedon Nov 11, 2026
domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena
Landed · 2026-11-11T00:42Z
PR #32294 (Part B) merged at 2026-11-11T00:42Z as
91d88ec1, after Part A (PR #32117) and PR #32114. A job's connector pull now reads its mapping from the package that declares the job, under ADR-0150 D3:Reviews: the contract review passed, with delta records through 6782556520 on the landing head
1d77d18f. The epic red-line read passed (6779366860). The landing head carried the merge-queue re-land after TS2300 against #32333 (ACCEPT 6783022423).The
pm:dispatchedandpm:blockinglabels are removed with this note.test(runtime): the #32071 control meets the two-body name by a fresh …