Skip to content

fix(cloud-connection): install-local connects a composed bundle's package-body datasources and judges their names - #34633

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34431-composed-bundle-datasources
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34431-composed-bundle-datasources

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #34431

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:install-local 安装、升级和重启回灌时,数据源(datasources)、对象(objects)和连接器(connectors)改为与样例数据、翻译相同的读法,读到组合包(packages[])每个子包里的声明;安装前的数据源重名检查(2a)也读子包。
  • 为什么改:组合包顶层没有这三类列表。装上返回 200,但子包声明的外部数据源从不注册、不连接,绑在上面的对象无处读写;安装结果里也不列数据源和待配置的凭据;子包数据源与已有数据源重名也不拦。
  • 风险与回滚:低。平铺包、以及仍带顶层合并列表的组合包读法不变,有对照测试钉住。行为变化一处:子包声明了他人已持有的数据源名的组合包,以前装上 200,现在与平铺包一样 409(见 Acceptance notes)。回滚即 revert 本 PR。
  • 先看:packages/cloud-connection/src/marketplace-install-local-plugin.ts 的 declaredDatasources、2a 调用处新增的 try/catch、connectDeclaredDatasources 开头的读取块;再看 marketplace-install-local-composed-top-level-reads.test.ts 末尾两个新 describe。
  • 两分钟验证:pnpm --filter @objectstack/cloud-connection exec vitest run src/marketplace-install-local-composed-top-level-reads.test.ts,预期 16 个用例全绿(其中 8 个新用例)。
  • 需要你做的:无,席位落地。

What changes

On a composed bundle (dist/objectstack.json with packages[], ADR-0130 D4) every package-owned collection sits in the package bodies, and the top level carries none. MarketplaceInstallLocalPlugin read three of them from the top level only:

  1. Datasources (declaredDatasources). This is the one reader for step 2a (findHeldDatasourceName), the 4b′ connect of an install or an upgrade, and the kernel:ready rehydrate (connectDeclaredDatasources). It now reads through resolveStackCollection(artifact, 'datasources'). The map form (keyed by name) is still read at the top level, where a flat bundle may carry it. A package body cannot carry it, because the resolver refuses a body whose datasources is not a list (measured below).
  2. Objects handed to connectPackageDatasources. connectDeclaredDatasources read manifest.objects. It now reads resolveStackCollection(manifest, 'objects').
  3. Connectors (describeInstalledCredentialRefs, the install answer's credentialRefs). The card listed this as code-read only. It reproduced in the same harness, so it is fixed here: resolveStackCollection(converted, 'connectors').

All three now read the way the seed datasets (#34403) and the translations (#34407) already do: the top-level list when the body carries one (a flat bundle, or a composed artifact that still carries its flattened union, read once), otherwise every package body's, in package order.

Step 2a now resolves the package bodies, so a packages the resolver refuses is answered at 2a with that refusal (declaredRefusalAnswer, the reader 2b and 2c″ share): its own 422 and code, and nothing is written. An undeclared throw is still rethrown. connectDeclaredDatasources keeps its contract that it never throws. A read failure there is logged at error and connects nothing. It is not expected, because register resolved the same bytes before this step.

Ownership is unchanged. Every datasource is stamped with the install's manifestId, the id that the ledger entry, the runtime.package-datasources uninstall cleanup and datasourceNameHolder key on.

Cleanup: applySideEffects no longer reads a top-level array i18n as extra translation bundles. In the spec i18n is TranslationConfigSchema (an object), no producer in this repository writes an array there, and the boot path (AppPlugin) never read one.

Changeset: @objectstack/cloud-connection patch.

Tests

The new pins are two top-level describes in the existing harness file packages/cloud-connection/src/marketplace-install-local-composed-top-level-reads.test.ts. That file drives the real POST /api/v1/marketplace/install-local route handler and the kernel:ready rehydrate. Its @objectstack/runtime mock now also carries connectPackageDatasources, which captures the datasource names, object names, owners and the installed flag, and datasourceNameHolder, which answers free unless a case marks a name held. The boot also has an automation service whose credential listing is empty. No existing assertion changed.

  • The composed install hands connectPackageDatasources [erp_db, wms_db] and [crm_account, crm_order], in package order: core first, although the dependent module is listed first in the array. The answer is datasources: [{erp_db, connected}, {wms_db, connected}].
  • The composed bundle and its flat control (the same declarations at the top level) hand the runtime equal lists and answer equal datasources and credentialRefs.
  • An upgrade (2.0.0 → 2.1.0) connects every body's datasources again. A restart's rehydrate does too, from the ledger.
  • credentialRefs names ERP_TOKEN and WMS_TOKEN from the two bodies' connectors.
  • Control: a composed artifact that still carries flattened top-level datasources and objects connects that union once, not once more per package.
  • Step 2a: a held name declared in a package body answers 409 RESOURCE_CONFLICT with details.datasource set. No ledger entry is written and nothing is connected. Control: the flat bundle declaring the same name answers the same.
Red first: base 8dd8192, same test file, plugin as on main

Tests 6 failed | 10 passed (16). The four connect pins received datasources: [] (and objects: []). credentialRefs was undefined. The composed 2a case answered 200 with no datasources field. The flattened-union control and the flat 2a control passed, as did the 8 cases already in the file.

On the way there, an earlier fixture of { name, driver: 'memory' } without config was refused 422 INVALID_ARTIFACT_PACKAGE_ENTRY (manifest.datasources.0.config: expected record): package bodies are parsed by the entry schema. The fixtures carry config: {}.

Ablation, one leg per behaviour (scripts/ablation-replace.mjs, at commit 31e95a8)

The test imports the plugin by relative path (source, not dist/), so no rebuild sits in the loop. Every leg reported the anchor going 1 → 0 and the blob moving off 8405743f5ad9. Every restore reported blob after restore == blob at HEAD (8405743f5ad9) and an empty git diff HEAD.

  • Datasources (return resolveStackCollection(artifact, 'datasources'); → top-level array only): Tests 5 failed | 11 passed (16). Failed: install, composed-vs-flat, upgrade, rehydrate, composed 2a.
  • Objects (resolveStackCollection(manifest, 'objects') → manifest.objects): 4 failed | 12 passed. Failed: install, composed-vs-flat, upgrade, rehydrate.
  • Connectors (resolveStackCollection(converted, 'connectors') → converted.connectors): 2 failed | 14 passed. Failed: composed-vs-flat, credentialRefs.
  • 2a refusal guard (catch body → throw err), run with marketplace-install-local-resolver-refusal-34432.test.ts: 3 failed | 18 passed (21). Both install-local: an artifact the resolver refuses answers 503 "retry once the database answers" instead of the resolver's 422 #34432 422 pins and the isolated refusal pin threw the resolver's error out of the handler. My first attempt at this leg used a replacement that contained its anchor, so the tool refused it (anchor x1 → x1) and ran nothing. I re-ran it with a non-overlapping anchor. The numbers above are from that second run.

After the ablations, the objects declaration was retyped any[] to satisfy tsc (commit eaade30). The ablated line itself is unchanged.

Acceptance notes

  • An input that answered 2xx now refuses (for the seat's Clause-② reading). FROM, measured on base 8dd8192 through the route: a composed bundle whose package body declares a datasource name datasourceNameHolder reports held answered 200. Its datasource was never registered or connected. Code-read, not measured: an object bound to that name would be served by the holder's driver. TO: 409 RESOURCE_CONFLICT, the answer a flat bundle declaring the same name already gets, with nothing written. The claim's Clause-②: no is copied above unchanged. The report puts the reading to the seat with the options: keep no (a runtime gate the door already declares applied to bodies it skipped, no schema acceptance changed) or declare no (narrowing).
  • Step 2a now resolves the packages first. On a runtime without the step-1d code judgements (the harness's mocked runtime), step 2a is now the first step to resolve a composed artifact's packages. The install-local: an artifact the resolver refuses answers 503 "retry once the database answers" instead of the resolver's 422 #34432 pins (422 INVALID_ARTIFACT_PACKAGES / INVALID_ARTIFACT_PACKAGE_ENTRY) therefore get the same bytes from 2a's declaredRefusalAnswer before 2c″ is reached. They pass unchanged. Code-read, not measured: 2c″'s own incoming-side pre-resolution is no longer the step those pins exercise, so an ablation of that guard alone would now stay green on them. 2c″ still owns the installed-copy side.
  • Duplicate names across bodies. These are kept as declared, in package order, and handed to the runtime path, as a flat bundle's same-name pair is (declaredDatasources never deduplicated a flat list). The runtime judges the pair as it does today. No pin was added for it.
  • The map form in a package body is refused by the resolver, measured: INVALID_ARTIFACT_PACKAGE_ENTRY 422, "manifest.datasources: expected array, received object". resolveStackCollection reads a top-level map as no list ([]), so the helper keeps the top-level map branch it had. A flat map-form bundle reads exactly as before.
  • Test placement. The claim's file surface names "one new card-named test file". AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness into that file as a top-level describe, so the pins went into marketplace-install-local-composed-top-level-reads.test.ts, the install-local: composed artifacts read package-owned collections from the top level only (translationsLoaded 0; global-unique gate sees no objects) #34407 harness for this same family.

Verification

Package suite and typecheck

After building the closure (pnpm --filter '@objectstack/cloud-connection^...' build, lock VERDICT command-exit 0), at eaade30:

  • pnpm --filter @objectstack/cloud-connection typecheck: exit 0, both programs. tsconfig.test.json --listFiles includes the harness file.
  • pnpm --filter @objectstack/cloud-connection exec vitest run --maxWorkers=2: Test Files 89 passed (89), Tests 1303 passed (1303), lock VERDICT command-exit 0.
Derived gates at 1edc890 (after merging origin/main ffa6db1)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 3 paths, 71 commands, each run with stdin closed and its exit captured before any pipe. Reconciliation: Run reconciliation — 71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN. All 71 exit 0. check:dual-build-cjs-loads first answered exit 3 (PREREQUISITE NOT MET, no dist/). It was re-run green after a whole-workspace build (turbo run build --filter=!@objectstack/docs --concurrency=2, lock VERDICT command-exit 0): 124 published require entry point(s) across 72 package(s) load.

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:error-code-provenance :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:durability-log-level :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-status-conformance :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:init-service-contract :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:object-def-param-keys :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:optional-error-sink :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:route-envelope :: exit 0
pnpm check:settings-bind-window :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:startup-registry-verdict :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vouch-for-reference-callers :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Full dogfood: not owed, since there is no ! in the title and no (narrowing) arm.


Generated by Claude Code

…undle's package-body datasources

Step 2a, the 4b′ connect (install and upgrade) and the kernel:ready
rehydrate read datasources and objects through resolveStackCollection,
so a composed bundle hands connectPackageDatasources every package
body's datasources and objects in package order, and a body's
datasource name is judged against held names before any write. The
install answer's credentialRefs read every body's connectors the same
way. The dead top-level array i18n read in applySideEffects is removed.

Claude-Session: https://claude.ai/code/session_01ADHkmRXuRn93HphKp7kXEz
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/cloud-connection, touching 7 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via MarketplaceInstallLocalPlugin (symbol, a top-level class))
What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 7 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 082f9c2945260fd9b29951caff1c49f6dccab4ea → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c9aab2fc696f33febd74e011c2d2ffe9142b9f80 — the merge of head 1edc890930f3a50cb7331138404cbba4f8858426 into base 082f9c2945260fd9b29951caff1c49f6dccab4ea, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c9aab2fc696f33febd74e011c2d2ffe9142b9f80 && git checkout c9aab2fc696f33febd74e011c2d2ffe9142b9f80
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 082f9c2945260fd9b29951caff1c49f6dccab4ea 1edc890930f3a50cb7331138404cbba4f8858426 && git checkout -B drift-repro 082f9c2945260fd9b29951caff1c49f6dccab4ea && git merge --no-ff 1edc890930f3a50cb7331138404cbba4f8858426

node scripts/docs-audit/affected-docs.mjs --json 082f9c2945260fd9b29951caff1c49f6dccab4ea

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 082f9c2945260fd9b29951caff1c49f6dccab4ea → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

Clause-② call on the dev's open question (os-dev report, card #34431): Clause-②: no stands (option A).

The one input that moves is a composed bundle whose package body declares a datasource name another holder already owns: 200 with the datasource never connected on main 8dd8192, 409 RESOURCE_CONFLICT with nothing written at this head, the answer a flat bundle with that name already gets. That is step 2a's declared rule (#28143, "a name another holder already owns … is refused here, before any write") applied to the package bodies it skipped: a pull-back to an already declared contract, and a runtime ownership gate, not a change to a published acceptance set. No spec schema or metadata an author writes moves. The body's Acceptance notes carry the FROM measurement.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

Final head for review: 1edc890930f3a50cb7331138404cbba4f8858426 (card #34431, branch claude/issue-34431-composed-bundle-datasources). CI on this head, latest run per check: 35 success, 16 skipped, 0 failed. Clause-②: no (the area's call on the dev's open question: 6938094978), Metadata-protocol: none; no packages/spec/src or governed path, so no L2 is owed. Dev report 6938066474; derived gates 71/71 exit 0. Owed: L1 review. A push after this comment restarts it on the new head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTHGRTjPqZAcBuo9WH

席位核对

L1 first review · ACCEPT · head 1edc890930f3a50cb7331138404cbba4f8858426 (final head 6938564692) · card #34431 · read 2026-11-17T04:43Z

The one moved answer, and why Clause-②: no holds here

On main a composed bundle whose package body declares a datasource name another holder owns answers 200 (measured by the dev on 8dd8192cb, body › Acceptance notes); at this head it answers 409 RESOURCE_CONFLICT with nothing written. An input main admits is now refused, so I checked whether that refusal is new contract or declared contract. It is declared: content/docs/data-modeling/external-datasources.mdx (install-local callout) already publishes "A package declaring a datasource name the runtime already holds is refused 409", with no carve-out for a composed bundle, and a flat bundle gets exactly that today (the flat control pins it). The 200 was step 2a not reading the package bodies, and the install it answered never registered or connected that datasource. That is a declared-but-unenforced gap closed in the implementation, so the area's call 6938094978 (Clause-②: no, option A) stands. This differs from #34531, where the refusal main did not give was declared nowhere.

Checklist (read on GitHub at this head, not from the report)

  • Shape: draft, base main, Fixes #34431 on line 1; no other closing keyword in the body (#34432, #34403, #34407, #28143 carry none). Note: the body has no project-attribution lines above the card line; not an L1 item, the seat may add them on its final pass.
  • Declarations: Clause-②: no, Metadata-protocol: none in the body and the changeset. No authorable key, schema or export moves. @objectstack/cloud-connection is published (private unset); the changeset grades it patch. No Skills-docs: line is owed (no kind, no narrowing arm).
  • File surface: 3 files from get_files: the plugin, the existing install-local: composed artifacts read package-owned collections from the top level only (translationsLoaded 0; global-unique gate sees no objects) #34407 harness test file, the changeset. The pins went into the existing harness as top-level describes instead of a new card-named file, following AGENTS.md's shared-harness placement; accepted.
  • Mechanism, read in the source:
    • declaredDatasources(artifact) keeps the top-level map form, and otherwise reads resolveStackCollection(artifact, 'datasources'): the top-level list when present (read once, the flattened-union control pins no per-package repeat), else each body's in package order. It is the one reader for 2a (findHeldDatasourceName), the 4b′ connect and the rehydrate.
    • 2a now catches a resolver throw and answers it through declaredRefusalAnswer (the 2b / 2c″ reader); an undeclared throw is rethrown.
    • connectDeclaredDatasources reads datasources and objects through the resolver inside a try that logs at error and returns undefined, keeping its never-throws contract.
    • describeInstalledCredentialRefs reads resolveStackCollection(converted, 'connectors').
    • The removed Array.isArray(manifest?.i18n) read: on origin/main no producer writes an array i18n; every other reader treats it as a config object (cli/src/commands/serve.ts, plugin-dev/src/dev-i18n.ts, runtime/src/seed-locale.ts, cli/src/utils/stack-collections.ts). Dead-read removal confirmed.
  • Tests and controls: 8 new cases on the real route handler and rehydrate. The 2a case asserts 409, success: false, code: 'RESOURCE_CONFLICT', details: { datasource: 'wms_db' }, no ledger entry and no connect call; the flat control answers the same. Install, upgrade and rehydrate pins assert the names and objects handed to connectPackageDatasources in package order. Red-first on main 6 of 16; four ablation legs, each restored to the HEAD blob, each red where predicted.
  • Prose checked against the diff: the changeset paragraphs ("read those three from the top level only… answered 200", "Step 2a now judges every package body's datasource names… refused 409 RESOURCE_CONFLICT before any write", "answered at this step with the resolver's own 422", the i18n sentence) match the code and the pins. No docs page needed a change: the external-datasources callout already states the 409.
  • Gates at this head: check-runs on 1edc8909…: 51 runs, 35 success, 16 skipped, 0 failed; Lint & Repo Gates, TypeScript Type Check and Check Changeset are success. Derived round 71/71 exit 0 at this head (body, 34431-gates-ran.txt). No dogfood battery owed (no !, no narrowing arm).

Residuals (code-read, no change asked)

Owed after this

  • L2: not owed. Clause-②: no, Metadata-protocol: none, no narrowing arm, no packages/spec/src/**, no governed path.
  • Landing tier: check-governed-merges.mjs --pr 34633 read here: 0 of 3 paths governed, +267 / −15. Not a declared narrowing (reading above). Ordinary queue landing by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

Landing 1edc890930f3a50cb7331138404cbba4f8858426 (card #34431) on L1 ACCEPT 6938611897 at this head. No L2 owed (Clause-②: no, the area's call 6938094978 that L1 confirmed; no contract or governed path).

probe reading
check-governed-merges.mjs --pr 34633 NOT governed; 0 of 3 paths hit the register; 282 changed lines ≤ 3000
git merge-tree --write-tree of this head against origin/main 518bacadf exit 0; main is 10 first-parent commits past the merge base

No other open PR touches packages/cloud-connection/src/marketplace-install-local*. The two read-only residues in the L1 review (the step-7 credential read after the write; whether #34432's step-2c″ incoming-side pre-resolution still has a pin that reds without it) are with the area: the second is measured on main after this merges, and filed only if it holds. State: ready, auto-merge armed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install-local: a composed bundle's package-body datasources are never connected (connectPackageDatasources gets datasources [] and objects [])

2 participants