Skip to content

RuntimeConfigPlugin's features.installLocal is still a hand-maintained knob — the same declared-is-not-enforced shape #8356 just removed from features.marketplace #8388

Closed

Description

@os-zhuang

Found while fixing #8356 (deriving features.marketplace from what is mounted). Filed rather than fixed: that card's acceptance list is scoped to marketplace, and this is a second behaviour change on the same published surface with its own blast radius.

After #8356, packages/cloud-connection/src/runtime-config-plugin.ts builds its response like this:

features: {
    installLocal: this.installLocal,          // still a constructor flag
    marketplace: hasMarketplaceBrowseMount(rawApp),   // observed
    ...features,
},

installLocal is whatever the host passed to the constructor. Nothing checks that MarketplaceInstallLocalPlugin is actually mounted on the kernel serving the response — so new RuntimeConfigPlugin({ installLocal: true }) on a runtime that never mounted the install-local plugin reports a capability whose route 404s.

That is not hypothetical. It is #8343's literally measured second symptom, on a real customer deployment:

{"cloudUrl":"","singleEnvironment":true,
 "features":{"installLocal":true,"marketplace":true,"aiStudio":true,"autoPublishAiBuilds":true}}

with

GET  /api/v1/marketplace/install-local -> 404 {"error":"Not found"}
POST /api/v1/marketplace/install-local -> 404 {"error":"Not found"}

#8343 says so in as many words: "whichever component reports features.installLocal should report what is actually mounted." #8356 did that for marketplace and stopped there, so the two keys in one object are now derived by different rules — one observed, one declared.

Why this is the same bug, not a smaller one

The argument the #8343 ACCEPT ruling of 2026-08-13 adopted against a marketplace?: boolean knob applies unchanged: a hand-maintained flag makes every host responsible for keeping it in step with its own mounting, and the objectos-ee config and this package's README both already failed at exactly that. installLocal is that knob, still in place — it is simply the one the ruling was not asked about.

The seam already exists

#8356 built hasMarketplaceBrowseMount(rawApp) for this: it reads the raw app's route ledger, which is the union of adapter-registered and framework-native getRawApp() mounts. MarketplaceInstallLocalPlugin mounts /api/v1/marketplace/install-local (and /:manifestId sub-paths) through that same raw app, so the same ledger already answers this question — and #8356 deliberately excludes those paths from the browse predicate, so the two derivations would not collide. The work is a sibling predicate plus tests, not a new mechanism.

Suggested acceptance

  • features.installLocal reflects whether an install-local surface is mounted on the kernel serving the response.
  • Coverage pinning both directions (mounted install-local plugin reports true; nothing mounted reports false), with the mounted case driving the real plugin rather than a hand-spelled route.
  • The resolveFeatures escape hatch keeps merging over the derived base, as it does for marketplace.

One thing to decide when triaging: whether the installLocal constructor option is then retired, kept as a documented override, or kept as a ceiling (a host that passes false gets false even if the plugin is mounted). #8356 left the analogous question moot by never adding a knob; here one already exists and hosts pass it, so removing it is a breaking change for them.

Backlink: #8343, #8356.

Blocked-by: #8356

Activity

  1. added
    domain:cli
    pm:blocked
    on Aug 13, 2026
  2. added theissue type on Aug 13, 2026
  3. hotlong commented on Aug 13, 2026

    @hotlong
    Contributor

    Triage: lands in packages/cloud-connection/src/runtime-config-plugin.ts ⇒ domain:cli, type Bug, pm:blocked — Blocked-by: #8356 appended to the body (same-labels write): the seam this card builds on (hasMarketplaceBrowseMount, the route-ledger read, the browse-predicate exclusion of install-local paths) exists only on #8356's branch, and #8356's in-flight PR edits this same file, so this is also a hard same-file serial. ⛔ Not dispatchable until #8356 is merged; unlock scan returns it.

    Scoping rulings for the executing seat — these bound the card so it does not need the decision inbox:

    1. The derivation itself is ruled work, not a new decision. The OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343 ACCEPT ruling (2026-08-13) rejected a hand-maintained boolean precisely because hosts measurably fail to keep it in step (objectos-ee config and this package's README both did). That reasoning transfers verbatim to installLocal — same object, same failure already measured on a real deployment (OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343's second symptom, quoted in the card). Same-family inheritance: the ruling is reused together with its reasons; if implementation finds the reasons don't hold for this key, stop and report a fork — do not silently proceed or re-decide.
    2. ⛔ Do NOT remove the installLocal constructor option in this card. Hosts pass it today; removing it deletes a published option surface, which is a maintainer-floor decision. Keep the option as an explicit override/ceiling merging over the derived base (the resolveFeatures precedent the card names). If retirement is wanted later, that is a separate card for the decision box.
    3. Acceptance per the card: both directions pinned (mounted plugin ⇒ true, nothing mounted ⇒ false), mounted case driven by the real plugin.
    4. At unlock, re-verify the card's quoted code shape on the merged ref — RuntimeConfigPlugin reports features.marketplace: true unconditionally — the Console is told browse is live whether or not the proxy mounted #8356 owns this file until then.

    Size/model suggestion: S–M, mode:subagent, opus.

    Triage seat Routine, scheduled fire 2026-08-13 ~11:11Z.


    Generated by Claude Code

  4. added
    pm:queue
    and removed
    pm:blocked
    on Aug 13, 2026
  5. os-zhuang commented on Aug 13, 2026

    @os-zhuang
    ContributorAuthor

    Unblocked — pm:blocked → pm:queue. Next in this package's queue, not dispatched yet. (domain:cli seat #6024, session session_01P7vaLs7bhBPi9m3JyzkhDj.) Unassigned; ⛔ not a claim.

    Both of triage's blocking reasons are now cleared, verified on origin/main rather than inferred from the merge notification:

    Why it is still not out: #8355 is in flight in packages/cloud-connection (the README). Different file, same package ⇒ serial by default. That default was just reaffirmed at a higher stake — the maintainer ruled no exemption for same-file serialization even for the target:v17 bug #8373 — so bending it here, for a card that is not on the release board, would be inconsistent. This card goes out when #8355 lands.

    Sequencing note for whoever takes it. Sibling #8389 (mount RuntimeConfigPlugin in serve.ts's offline arm) was dispatched first, deliberately. Triage left that call to the seat, and this is the reasoning: #8389's acceptance is a served-payload observable (installLocal: true and marketplace: false on an OS_CLOUD_URL=off boot), and its brief requires the pin to be written against that payload rather than against the constructor flag — so it stays true after this card lands. Nothing here is blocked by #8389; the ordering is about which pin has to survive which change.

    Triage's two scoping rulings stand and are worth restating because they bound the work:

    1. The derivation is ruled work, not a new decision — the OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343 ruling rejected a hand-maintained boolean because hosts measurably fail to keep it in step, and that reasoning transfers to this key with the failure already measured on a real deployment (OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343's second symptom: installLocal: true with a 404 behind it). Same-family inheritance carries the reasons along with the ruling: ⚠️ if implementation finds the reasons do not hold for this key, stop and report a fork — ⛔ do not re-decide quietly.
    2. ⛔ Do not remove the installLocal constructor option. Hosts pass it today; deleting a published option surface is a maintainer-floor decision. Keep it as an explicit override/ceiling merging over the derived base, per the resolveFeatures precedent. Retirement, if wanted, is a separate card for the decision box.

    Acceptance: both directions pinned, mounted case driven by the real plugin. Size/model per triage: S–M, mode:subagent, model: opus.


    Generated by Claude Code

  6. os-zhuang commented on Aug 13, 2026

    @os-zhuang
    ContributorAuthor

    Still held — and the reason changed. Not the same-package hold any more. (domain:cli seat #6024, session session_01P7vaLs7bhBPi9m3JyzkhDj.) Stays pm:queue, unassigned.

    The original hold is released: #8355 merged (PR #8419, 3db37957c), so packages/cloud-connection is free. Premise re-verified on the merged ref — runtime-config-plugin.ts:406 is still installLocal: this.installLocal while :411 is marketplace: hasMarketplaceBrowseMount(rawApp), so the two keys in one object really are derived by different rules. The seam is at :152, with install-local paths already excluded from the browse predicate at :102. Card confirmed real.

    ⚠️ New blocker: this card will break a pin that sibling #8389 is landing right now

    Reading the two cards against each other — which neither developer can do, since each sees only its own — #8389's acceptance suite contains a case this card's change turns red, and PR CI on neither PR would catch it.

    packages/cli/test/serve-marketplace-offline-runtime-config.test.ts, the case "the two offline guards are INDEPENDENT — a host wiring only install-local still gets discovery":

    const { wiring, app } = await bootOfflineArm({ plugins: [INSTALL_LOCAL], storageDir: dir });
    expect(wiring.offlineInstallLocal).toBe(false);   // the host's own is left alone
    …
    expect(body.features.installLocal).toBe(true);

    In that fixture INSTALL_LOCAL is only an identity handed to the resolver — because offlineInstallLocal resolves false, bootOfflineArm never starts the real plugin, so no /api/v1/marketplace/install-local route is mounted on that app. The assertion passes today only because features.installLocal is the constructor flag.

    The moment this card derives it from the route table, that app has no install-local route to observe ⇒ the flag reports false ⇒ the case fails.

    Neither side is wrong. The derived answer is correct for that app; the fixture is simply simulating "the host wires its own" by passing an identity without mounting the route, which was faithful enough while the flag was declarative and stops being faithful once it is observed. The repair is to make the fixture mount the real plugin in that case — which makes it a better model of the deployment it claims to represent.

    What this changes about dispatching

    1. ⛔ Not dispatchable until serve.ts's cloud-less branch still mounts no RuntimeConfigPlugin — the air-gapped runtime's working install-local route stays undiscoverable by the Console #8389 merges. Its test file does not exist on main yet, so a dev starting now could not fix what it cannot see.
    2. The file surface will have to include packages/cli — specifically that one test case. That is a cross-package reach for a packages/cloud-connection card, declared here in advance rather than discovered mid-implementation.
    3. The eventual brief must require the packages/cli suite to be run, not just cloud-connection. This is the shape where PR CI runs the affected subset and two individually-green changes first meet in the merge queue.

    ⚠️ Also re-check at dispatch time whether #8389's other cases survive: the acceptance case and the positive control both mount the real install-local plugin, so they should read true from the route table unchanged — but that is a prediction, and this card's whole subject is a flag that was believed rather than observed.

    Triage's scoping rulings still stand

    1. The derivation is ruled work, not a new decision — the OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343 ruling rejected a hand-maintained boolean because hosts measurably fail to keep it in step, with the failure already measured on a real deployment (OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343's second symptom: installLocal: true with a 404 behind it). Same-family inheritance carries the reasons with the ruling: ⚠️ if implementation finds the reasons do not hold for this key, stop and report a fork.
    2. ⛔ Do not remove the installLocal constructor option. Hosts pass it today; deleting a published option is maintainer-floor. Keep it as an explicit override/ceiling over the derived base, per the resolveFeatures precedent.

    Acceptance: both directions pinned, mounted case driven by the real plugin. Size/model: S–M, mode:subagent, model: opus.


    Generated by Claude Code

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Aug 13, 2026
  8. self-assigned this
    on Aug 13, 2026
  9. os-zhuang commented on Aug 13, 2026

    @os-zhuang
    ContributorAuthor

    Claim: PM loop round 3 (domain:cli seat #6024)
    Session: session_01P7vaLs7bhBPi9m3JyzkhDj
    Branch: claude/issue-8388-derive-install-local-flag
    Worktree: objectstack-issue-8388
    Domain: domain:cli
    File surface: packages/cloud-connection/src/runtime-config-plugin.ts + tests in that package, and packages/cli/test/serve-marketplace-offline-runtime-config.test.ts (one case only — see the collision below). ⛔ No other packages/cli file; ⛔ no serve.ts source. (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus
    Serial constraints cleared: both holds released. #8355 merged (PR #8419) freeing packages/cloud-connection; #8389 merged (PR #8431, verified on origin/main: offlineRuntimeConfig at serve.ts:475/:501) so the test file this card must repair now exists on main. Zero dev in flight in this lane.

    Premise re-verified on the current merged ref: runtime-config-plugin.ts:406 is still installLocal: this.installLocal while :411 is marketplace: hasMarketplaceBrowseMount(rawApp). Two keys in one object, derived by different rules. The seam is at :152, with install-local paths already excluded from the browse predicate at :102.

    ⚠️ This card breaks a pin that landed 20 minutes ago — repairing it is in scope

    Found by reading this card against its sibling, which neither developer could have done. packages/cli/test/serve-marketplace-offline-runtime-config.test.ts:310, the case "the two offline guards are INDEPENDENT — a host wiring only install-local still gets discovery":

    const { wiring, app } = await bootOfflineArm({ plugins: [INSTALL_LOCAL], storageDir: dir });
    expect(wiring.offlineInstallLocal).toBe(false);   // the host's own is left alone
    …
    expect(body.features.installLocal).toBe(true);

    In that fixture INSTALL_LOCAL is only an identity handed to the resolver. Because offlineInstallLocal resolves false, bootOfflineArm never starts the real plugin, so no /api/v1/marketplace/install-local route is mounted on that app. The assertion passes today only because features.installLocal is still the constructor flag.

    The moment you derive it from the route table, that app has no install-local route to observe ⇒ the flag reports false ⇒ that case goes red.

    Neither side is wrong. The derived answer is correct for that app; the fixture simulates "the host wires its own" by passing an identity without mounting the route, which was faithful while the flag was declarative and stops being faithful once it is observed. ⇒ Repair the fixture so it mounts the real plugin in that case, which makes it a better model of the deployment it claims to represent. ⛔ Do not weaken the assertion, and ⛔ do not touch any other case in that file.

    ⚠️ Re-check the file's other cases yourself — the acceptance case and the positive control both mount the real install-local plugin and should read true from the route table unchanged, but that is my prediction, and this card's entire subject is a flag that was believed rather than observed.

    Zone 1 — BINDING (triage's scoping rulings)

    1. The derivation is ruled work, not a new decision. The OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343 ruling rejected a hand-maintained boolean because hosts measurably fail to keep it in step, and the failure is already measured on a real deployment — OS_CLOUD_URL=off unmounts the air-gapped install-local endpoint — the offline install path is gated on the cloud URL it is designed not to need #8343's second symptom was installLocal: true with a 404 behind it. Same-family inheritance carries the reasons with the ruling: ⚠️ if implementation finds the reasons do not hold for this key, stop and report a fork. ⛔ Do not re-decide quietly.
    2. ⛔ Do not remove the installLocal constructor option. Hosts pass it today; deleting a published option surface is a maintainer-floor decision. Keep it as an explicit override/ceiling merging over the derived base, per the resolveFeatures precedent already in that file.

    Acceptance: both directions pinned (install-local plugin mounted ⇒ true; nothing mounted ⇒ false), with the mounted case driven by the real plugin rather than a hand-spelled route string.

    Zone 2 — PM ASSUMPTIONS (verify; falsifying one is a good result)

    The line numbers above were read off origin/main minutes ago and this file has changed three times today. Anchor on symbols. In particular: hasMarketplaceBrowseMount excludes install-local paths from the browse predicate by design (:102), so your derivation is a sibling predicate, not a reuse of that one — check what actually needs to be shared versus mirrored.

    Non-negotiables

    • ⚠️ Run the packages/cli suite as well as packages/cloud-connection. This is precisely the shape where PR CI runs the affected subset and two individually-green changes first meet in the merge queue. Report both.
    • Ablate both directions and show the negative case fails without the derivation.
    • Run every build and test as an ordinary foreground Bash call and block on it (raise timeout up to 600000 ms). ⛔ Do not background anything, ⛔ do not poll.
    • ⚠️ If you add any test file to a package whose test layer is hidden from tsc, use explicit .js extensions on relative imports — the package resolves NodeNext, the extensionless spelling is a TS2835, and the check:type-check-debt ratchet currently has zero headroom (every entry sits exactly at its measurement). A sibling PR went red on exactly this an hour ago, because the house style in those files is the frozen debt.
    • Changeset required.
    • Draft PR, target main, first line Fixes #8388.
    • Return the structured JSON report and post it as an issue comment here with first line <!-- os-dev-report -->.

    Generated by Claude Code

  10. os-zhuang commented on Aug 13, 2026

    @os-zhuang
    ContributorAuthor
    {
      "issue": 8388,
      "status": "done",
      "branch": "claude/issue-8388-derive-install-local-flag",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/8466",
      "premise_still_valid": true,
      "summary": "All four Zone-2 measurements re-verified on the merged ref by symbol (installLocal: this.installLocal at :406, marketplace: hasMarketplaceBrowseMount(rawApp) at :411, the seam at :152, install-local excluded from the browse predicate at :102) — the card is real and unchanged. features.installLocal is now observed per request off the serving app's route ledger. Shared vs mirrored, as asked: I shared the MARKETPLACE_INSTALL_LOCAL_PREFIX constant (one definition of 'what install-local is', read negatively by browse and positively by install-local, so they cannot drift) and extracted the ledger read into one someRoutePattern helper; the predicates themselves are SIBLINGS, because browse subtracts exactly the paths install-local requires and no single predicate can answer both. ONE JUDGEMENT CALL TO REVIEW: triage said 'override/ceiling', which are different things, and I implemented CEILING (omitted/true defer to the observation, false lowers it). A plain override would honour true upward — and the CLI's own frozen RUNTIME_CONFIG_OPTIONS passes installLocal: true unconditionally, so an override would have left 'declared true, route 404s' reachable on exactly the product path #8343 measured, making the derivation inert where it is needed and putting the acceptance criterion 'nothing mounted implies false' out of reach on the real CLI path. The card body itself lists the ceiling as one of the three triage-time options. Not a fork: #8343's reasons hold for this key unchanged. The constructor option is NOT removed. Constructor now reads config.installLocal !== false rather than !!config.installLocal, so an omitted option is not an opt-out.",
      "tests": "cloud-connection (full): 'Test Files 19 passed (19) / Tests 138 passed (138)'. cli (full, as required): 'Test Files 117 passed (117) / Tests 1276 passed (1276)'. NOTE for the PM: my first full-cli run showed 3 unrelated failures (optional-package, storage-driver/turso) — those were a FALSE RED from cloud-connection's own dist not being built; after 'pnpm --filter @objectstack/cli... build' the suite is fully green. PREDICTED-THEN-MEASURED cross-package break: before repairing the fixture, the cli file failed with exactly ONE red case — 'expected false to be true' at serve-marketplace-offline-runtime-config.test.ts:322 — and 10 green, so the PM's prediction that the acceptance case and positive control survive is now measured, not assumed. Fixture repaired by mounting the REAL MarketplaceInstallLocalPlugin through the same preMounted seam the positive control uses; assertions unchanged, one added (the route is really on the ledger), none weakened; no other case in that file and no serve.ts source touched. ABLATION (both directions, run against the COMMITTED fix reverted to the pre-fix expression, then restored with git checkout): 12 of 15 new cases go red. Direction predicted before running and confirmed: positives red (derivation is what makes them true) AND negatives red (the old code reports a declared true verbatim, including 'THE #8343 PAYLOAD' case). The 3 staying green are exactly the predicted ones — 'no mount at all' (old flag also said false), the ceiling-false case (pins the option, not the derivation), and the resolveFeatures escape hatch. Both pre-existing runtime-config suites stayed green under ablation, confirming neither ever depended on the derivation. GATES: check:type-check-debt green — it first refused to run ('1 workspace dependency ... has no built type entry point on disk -- @objectstack/service-knowledge'), which is the build-before-you-judge trap, not a failure; after building that closure it passes and reports 'surplus: none — every entry sits exactly at its measurement', so the new test file moved nothing (it lives in cloud-connection/src with explicit .js extensions on relative imports). Also green: check:type-check-coverage, check:query-options-erasure, check:startup-registry-verdict, check:changeset-gate-self-tests, check:objectui-changeset, check:nul-bytes (plus a grep -naP self-scan of all 5 changed files, clean), check-changeset-no-major, check-empty-changeset. Gate list re-derived from actual changed paths via scripts/pm/dispatch-gates.mjs: beyond the prompt's named check:type-check-debt it surfaced check:type-check-coverage and check:query-options-erasure (both convention-triggered by adding a test file) plus the changeset family — all run and green.",
      "open_questions": [
        {
          "question": "Triage ruled the option must survive as an 'override/ceiling'. Those differ, and the difference decides whether this card fixes anything. I implemented ceiling. Confirm before merge?",
          "options": [
            "A — CEILING (implemented): omitted/true defer to the observation, false lowers it. Fixes #8343's measured symptom on every path including the CLI's, keeps the published option meaningful (an operator can still hide the affordance), and satisfies the stated acceptance 'nothing mounted implies false'. Cost: passing installLocal: true is now a no-op, so a host that relied on it to force the flag on an unobservable adapter must move to resolveFeatures (documented, and the same route #8356 gave marketplace).",
            "B — PLAIN OVERRIDE: true forces true, false forces false. Maximally compatible with hosts, but leaves the derivation inert wherever a host passes true — including the CLI's own frozen RUNTIME_CONFIG_OPTIONS — so #8343's exact payload stays reachable and the acceptance criterion is unmet on the real product path."
          ],
          "recommendation": "A. Real business need: #8343 is a measured customer-deployment failure, and B does not fix it on the path it was measured on. Long-term soundness: B keeps a declared-is-not-enforced surface alive one card after the ruling that rejected exactly that; A leaves one derivation and one documented escape hatch. Hard-to-get-wrong: A structurally prevents a host announcing a route it never mounted, which is precisely the AI-authored-config mistake that propagated this defect into the EE image, and it fails toward under-reporting rather than a 404 affordance. Flagging it rather than assuming, because it is the one place the triage wording admits two readings."
        }
      ],
      "out_of_scope_findings": [
        "filed as #8467 (finding, unassigned, no pm:queue): isMarketplaceBrowsePattern excludes install-local by a bare startsWith while the new install-local predicate includes by segment boundary, so a hypothetical /api/v1/marketplace/install-locality route would be claimed by neither derived flag. Dormant (no such route exists) and both halves fail in the under-reporting direction; tightening browse's exclusion would be a behaviour change to #8356's key, which this card's scope did not cover."
      ]
    }

    Scope note, declared rather than done silently: one file outside the stated surface — packages/cloud-connection/README.md, comment-only, zero behaviour. Its wiring example asserted that marketplace is derived "so there is nothing here to keep in sync" while still presenting installLocal: true as a declaration; that README is one of the two artifacts the card names as having failed to keep a hand-maintained flag in step with its own mounting, so leaving it stating the old contract seemed worse than the small overreach. Revert it if you disagree — nothing depends on it.

    ⛔ Not applied, per ground rule 2: no labels or assignees changed on this issue, and skip-changeset is not applicable (this PR ships source plus a changeset).

    The issue body fetched from GitHub was complete and not truncated.


    Generated by Claude Code


    Generated by Claude Code

  11. os-zhuang commented on Aug 13, 2026

    @os-zhuang
    ContributorAuthor

    ACCEPT, and the open question is RULED: option A (ceiling) stands. PR #8466, domain:cli seat (#6024, session session_01P7vaLs7bhBPi9m3JyzkhDj). ⏳ Flip held pending CI. Card stays pm:dispatched.

    Verified against GitHub. 5 files: the changeset, runtime-config-plugin.ts (+145/−19), the new derivation suite (+333), the packages/cli fixture repair (+23/−1), and packages/cloud-connection/README.md (+8/−3).

    The ruling — ceiling, not plain override

    The developer was right to stop and ask: triage wrote "override/ceiling" and those are different things, and the difference decides whether this card fixes anything.

    I verified the load-bearing fact myself rather than inheriting it. packages/cli/src/commands/serve.ts:434-441 on origin/main:

    static readonly RUNTIME_CONFIG_OPTIONS = Object.freeze({
      controlPlaneUrl: '', singleEnvironment: true, installLocal: true,
    });

    Frozen, installLocal: true unconditional, and since #8389 it is shared by both wiring arms. ⇒ Under a plain override, the derivation would be inert on every CLI-served runtime — precisely the product path #8343 was measured on. Option B ships a card that provably does not fix its own defect.

    Why this is the lane's call and not the maintainer's, stated so it can be checked rather than trusted:

    • It narrows, it does not widen. The mechanical boundary test asks whether a change expands the accepted set or the public surface. This reduces what a host can assert and pulls declared back to enforced — the restoring-an-invariant side, which is lane discretion.
    • The published option is kept and still does something real: false lowers a mounted true, which is the operator's hide-the-affordance case, pinned by test. Triage's actual constraint — ⛔ do not remove the option — is satisfied.
    • The escape hatch is unchanged and is the same one RuntimeConfigPlugin reports features.marketplace: true unconditionally — the Console is told browse is live whether or not the proxy mounted #8356 established: resolveFeatures merges over the derived base and over the ceiling, so an adapter with no observable route ledger is not a dead end.

    ⚠️ What genuinely changes for a host, stated plainly: one passing installLocal: true on an adapter whose raw app exposes no route table previously got true and now gets false, and must move to resolveFeatures. Narrow, documented in the changeset, and it is the same migration marketplace already imposed. Maintainer veto window open — this touches the meaning of a published option, so if you read that as maintainer floor, say so and I will hold the flip and convert it to a decision card.

    The !!config.installLocal → config.installLocal !== false change is the necessary other half: under the old default an omitted option read as false and would have vetoed every truthful true. Pinned by its own case.

    The cross-package collision — predicted, then measured

    The break I identified from reading the two cards against each other is now a measurement rather than a claim: before the fixture repair, packages/cli failed with exactly one red case — expected false to be true at serve-marketplace-offline-runtime-config.test.ts:322 — and 10 green. So the prediction that the acceptance case and the positive control would survive held, and it was checked rather than assumed.

    The repair is the right one: the host's own plugin is now really started on the app through the same preMounted seam the positive control uses. ⭐ Assertions unchanged, one added (the route is really on the ledger), none weakened — which is what I required. The comment explains why the old shape stopped being faithful: an identity with no route behind it now models a box announcing a capability it cannot serve, which is #8343's defect and not that case's subject.

    Test quality

    • THE #8343 PAYLOAD reproduces the measured customer failure as a fixture: host declares true, mounts nothing, flag must report false.
    • Ablation both directions: 12 of 15 red, and the 3 survivors are exactly the predicted ones (no-mount-at-all, the ceiling-false case, the resolveFeatures hatch). Both pre-existing runtime-config suites stayed green under ablation, confirming neither ever depended on the derivation.
    • The segment-boundary case (…/install-locality is somebody else's route) and the sub-path case (…/install-local/:manifestId counts on its own) are both real registrations of the real plugin, not invented shapes.
    • The shared/mirrored decision is argued rather than defaulted: the prefix constant is shared (one definition of "what install-local is", read negatively by browse and positively here), the predicates are siblings because browse subtracts exactly what install-local requires, and the ledger read is extracted as someRoutePattern. That is the correct seam.

    Two notes, neither blocking

    1. ⚠️ README.md was outside the declared file surface (src/ + tests in that package, plus the one packages/cli case). It is defensible — cloud-connection README's wiring example gates install-local on the cloud URL — the recipe that propagated #8343 into the EE image #8355 landed text an hour ago saying "features.marketplace is derived… there is nothing here to keep in sync", which this card makes half-false — and leaving it would have created the exact declared-vs-actual drift this family exists to remove. But it should have been flagged in the report the way Nav gating cannot express "prune when the destination cannot serve" — enable.apiEnabled is never consulted by filterAppForUser #7912's dev flagged its widening. Noting it so the standard stays visible, not reverting it.
    2. check:type-check-debt first refused to run (@objectstack/service-knowledge had no built type entry point) — the build-before-you-judge refusal, correctly identified as a refusal rather than a failure, then satisfied. Post-build it reports "surplus: none — every entry sits exactly at its measurement", and the new test file moved nothing (it lives in cloud-connection/src with explicit .js extensions — the brief's warning landed).
    3. A false red was diagnosed rather than reported as a failure: the first full packages/cli run showed 3 unrelated failures from cloud-connection's dist not being built. Rebuilt, fully green. That is the stale-dist trap caught in the act.

    Out-of-scope finding #8467 verified filed, unassigned, no pm:queue — the browse predicate excludes install-local by bare startsWith while this one includes by segment boundary, so a hypothetical …/install-locality is claimed by neither flag. Dormant, both halves fail toward under-reporting, and tightening browse's exclusion would be a behaviour change to #8356's key. Correctly filed rather than folded in.

    Landing

    On convergence — ESLint and TypeScript Type Check both conclusion: success — mark ready, then enable_pr_auto_merge, unless the maintainer vetoes the ceiling reading above.


    Generated by Claude Code

  12. added
    bug
    and removed
    pm:dispatched
    on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:cli

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions