Skip to content

fix(scenarios): ask mode installs a build the unmanaged door refuses UNMANAGED_INSTALL_UNCOPYABLE managed instead - #34911

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34687-ask-managed-install
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34687-ask-managed-install

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir
Part of #34687 — this PR is the second follow-up (ask-mode install); the card stays open for the five-repetition round, which re-runs once this lands.

Clause-②: yes (widening) — reachable from ./runner (src/runner/index.ts re-exports app.ts and orchestrate.ts): the new optional method AppHarness.installManaged and HttpApp.installManaged; the new optional parameter mode of installableManifest; the new exports fallsBackToManaged, InstalledBuild and InstallAnswer; ModeRun.template typed InstalledBuild, which adds the optional fields installMode and unmanagedRefusal
Metadata-protocol: none

维护者速读

  • 改了什么:场景卡 runner 的 ask 模式在非托管安装被平台以 UNMANAGED_INSTALL_UNCOPYABLE 拒绝时,改用托管安装同一份构建,并在运行记录里写明用了哪种安装方式与回退前的拒绝码。
  • 为什么改:带 capability 的构建无法非管理复制,ask 轮次因此 0 个提问回合;按席位裁决 A,只在这一个拒绝码上回退,不剥离构建、不改平台。
  • 风险与回滚:只动 packages/qa/scenarios(评测工具,不进运行时);template 模式不回退;回滚即 revert 本 PR。
  • 先看:packages/qa/scenarios/src/runner/orchestrate.ts(withInstalledBuild 回退分支与 fresh copy 的安装方式)、packages/qa/scenarios/src/runner/app.ts(installManaged)、packages/qa/scenarios/test/runner/orchestrate.test.ts(新 describe)。
  • 两分钟验证:pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner/orchestrate.test.ts -t "managed instead",预期 5 个用例全绿。
  • 需要你做的:无,席位落地。

What changes

  • HttpApp.installManaged(manifest): the same install door the unmanaged install uses (POST /api/v1/marketplace/install-local) with installMode: 'managed'. Declared optional on AppHarness, so harnesses written before it keep compiling.
  • withInstalledBuild takes managedFallback, set only by ask mode. When the unmanaged door refuses the build UNMANAGED_INSTALL_UNCOPYABLE (fallsBackToManaged), the same build is installed managed, unchanged: installableManifest(artifact, 'managed') is the unmanaged body minus only the installModes: ['unmanaged'] the runner adds for the copy, so the door reads the build's own installModes (absent means managed). Every fresh copy the Run half boots installs the same way the run's own install landed.
  • ModeRun.template (InstalledBuild) now records installMode (unmanaged or managed) on every install, and unmanagedRefusal (status, code, message) when ask mode fell back; install is the answer of the install the mode ran on. The fallback is also listed as an ask finding.
  • No other refusal code falls back; a managed install that is refused too is a finding naming both answers; a harness with no managed door keeps the refusal as its finding and says so. Template mode never falls back: its agent edits the installed copy, which only an unmanaged install makes the environment's own.
  • README mode table and a patch changeset.

Tests

New top-level describe in test/runner/orchestrate.test.ts (the runner's shared harness file), five cases:

  1. UNMANAGED_INSTALL_UNCOPYABLE → managed install of the same build (body equal to the unmanaged one minus installModes, capabilities kept) → the Run half runs → the record carries installMode: 'managed' and unmanagedRefusal; every fresh copy installs managed and never calls the unmanaged door.
  2. A different 4xx (INSTALL_MODE_NOT_PERMITTED 422, UNMANAGED_INSTALL_WALLED_POSTURE 409, PLUGIN_MANIFEST_INVALID 400) does not fall back: the managed door is never called, no turn runs.
  3. An unmanaged install that succeeds records installMode: 'unmanaged'; the managed door is never called.
  4. Template mode with the same refusal stays unmanaged: refusal is its finding, no iterate, managed door never called.
  5. Managed refused too → one finding naming both answers; a harness with no managed door → the refusal plus a note.

Also: units.test.ts pins installableManifest(art, 'managed'); the existing ask-beside-scratch case now expects installMode: 'unmanaged'.

Acceptance notes

  • The live proof's seed loaded 173 of 757 rows (584 refused VALIDATION_FAILED: the build's own state rule refuses inserting a paid claim, and the lines and approval steps then miss their claim). The scratch-mode run of the same build in the round folder loaded exactly the same 173/757 with the same refusals, so this is the build's, not the managed install's; it is why 8 of 13 question turns are not measured.
  • The fallback compares against the platform's refusal code inline (fallsBackToManaged) rather than declaring it as a runner constant: check:error-code-provenance reads a declared constant as a stamp site of @objectstack/scenarios (the runner stamps nothing; @objectstack/metadata-protocol owns the code), and a comparison is what the gate defines as not a site.

Verification

Head at the time of the readings below: see the final report; the live proof ran at 264f86d2 (behaviour-identical to the head: the last commit only replaced the declared constant with the inline comparison).

Package suite, typecheck, build (verify lock)
pnpm --filter @objectstack/scenarios typecheck && pnpm --filter @objectstack/scenarios build && pnpm --filter @objectstack/scenarios test && pnpm --filter @objectstack/spec run check:error-code-provenance
 Test Files  38 passed (38)
      Tests  1057 passed (1057)
OK — every registered-code stamp site is listed under its own owner key or carries a recorded waiver (12 waiver(s), all live)
os-verify-lock: VERDICT command-exit 0

tsc --noEmit --listFiles includes test/runner/orchestrate.test.ts (count 1).

Ablation (committed fix, mutation through scripts/ablation-replace.mjs; tests import src, no dist leg)
  • Fallback branch removed (anchor if (!options.managedFallback || install.code !== … || installManaged === undefined) { → if (true) {, anchor 1 → 0): Tests 2 failed | 3 passed — case 1 and case 5 red; the three no-fallback cases stay green, as they should. Restored: blob == HEAD, git diff HEAD empty.
  • Template guard removed (if (!options.managedFallback || install.code → if (install.code): Tests 1 failed | 4 passed — case 4 (template stays unmanaged) red. Restored: blob == HEAD.
Live proof — travel_expense, ask mode, pinned template, one repeat, no skills

Template build/travel_expense/template.json, sha256 b7ab31a715d4e83ce35c5075739f2d10b9bf7e8f0bf3b577709ae7d953de8377; --modes ask --ask-repeats 1, published packages 18.5.0, subscription login (oauth_token, not API-billed); record kept in the project's round folder under proof-managed/.

template: { installMode: managed, install: { ok: true, status: 200 }, installModesSupplied: false,
            unmanagedRefusal: { status: 422, code: UNMANAGED_INSTALL_UNCOPYABLE } }
| Seed | 173/757 ⚠ seed: 584 refused |
| Run-问数 | 3/5 · 8 not measured |
| Run-operations | 2/3 · 3 not measured · 1 started from restored rows |
- ask finding: unmanaged install refused UNMANAGED_INSTALL_UNCOPYABLE (422): installed the same build managed instead
EXIT=0

13 question turns and 6 operations ran (the refused round ran 0).

Gates

Derived list (node scripts/pm/dispatch-gates.mjs --commands) run locally; readings in the final report. Not measured locally: check-plugin-teardown-shape --self-test (positive control unreachable from this shallow clone) and check:dual-build-cjs-loads (reads every package's dist/; no full build here) — both CI.
node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 (origin/main, #34882, #34841 merge cleanly).


Generated by Claude Code

signed: repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

…UNMANAGED_INSTALL_UNCOPYABLE managed instead

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
… patch changeset

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
…f declaring it as a runner constant

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/scenarios, touching 17 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/automation/connectors.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/data-modeling/external-datasources.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/data-modeling/seed-data.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/deployment/app-dependencies.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/deployment/cli.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/deployment/install-modes.mdx (via installMode (symbol, a field of interface InstalledBuild), /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/deployment/marketplace-handbook.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/deployment/publish-and-preview.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-2.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))
  • content/docs/releases/v18/18-4.mdx (via /api/v1/marketplace/install-local (route, a path literal in installManaged))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 1 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 ab4419881fc0d7ef2c56304f7aa51f39fd16267c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from a71ca680ef333a02ea177dcc0d1e749b3cbbc0c9 — the merge of head 18bbea25a3cceb203ccab9f999884def0fff6e47 into base ab4419881fc0d7ef2c56304f7aa51f39fd16267c, 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 a71ca680ef333a02ea177dcc0d1e749b3cbbc0c9 && git checkout a71ca680ef333a02ea177dcc0d1e749b3cbbc0c9
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ab4419881fc0d7ef2c56304f7aa51f39fd16267c 18bbea25a3cceb203ccab9f999884def0fff6e47 && git checkout -B drift-repro ab4419881fc0d7ef2c56304f7aa51f39fd16267c && git merge --no-ff 18bbea25a3cceb203ccab9f999884def0fff6e47

node scripts/docs-audit/affected-docs.mjs --json ab4419881fc0d7ef2c56304f7aa51f39fd16267c

⚠️ 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 ab4419881fc0d7ef2c56304f7aa51f39fd16267c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@github-actions github-actions Bot added 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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T16:15Z

Head-sha: 18bbea2
Reviewer: seat 3 L1-c, for card #34687 (second follow-up: the ask-mode install, route A as the seat chose; os-dev report 6953599115).

席位核对

PR shape. Draft, base main, Part of #34687, with no closing verb. That is right, because the five-repetition round is still owed on the card and re-runs once this lands. Three commits.

Scope. Six paths, all inside packages/qa/scenarios plus one changeset:

  • src/runner/app.ts (installManaged on HttpApp, optional on AppHarness, and the door table line);
  • src/runner/orchestrate.ts (withInstalledBuild's managedFallback, fallsBackToManaged, InstalledBuild / InstallAnswer, installableManifest(…, mode));
  • test/runner/orchestrate.test.ts (one new top-level describe in the runner's shared harness file) and test/runner/units.test.ts (one pin);
  • the README mode table row;
  • .changeset/34687-ask-managed-install.md.

No platform path moves: the door, the refusal and its code stay @objectstack/metadata-protocol's. PR-body guards (claim, Part-of) is green.

Declaration. Clause-②: yes (widening) / Metadata-protocol: none in the body and the changeset, and they agree. Every item listed is reachable from ./runner and is additive: an optional method, an optional parameter with the old default, three new exports, and two optional fields on ModeRun.template. @objectstack/scenarios at patch is the level none takes. A published-type widening owes the seat an L2 at TIER_DEFAULT, as the body says.

Governed / size. check-governed-merges --pr 34911: NOT governed, 309 lines.

Check-runs at 18bbea2, read at about 16:15Z. 48 runs, none failed. Test Core (1/10), (2/10) and (3/10) are still in_progress, so the aggregate Test Core has not posted yet. Everything else is success or skipped: Lint & Repo Gates, TypeScript Type Check, Test Core shards 4 to 6, Check Changeset, PR-body guards, Governed Surface Queue Guard, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests. This ACCEPT holds on the condition that the open shards and Test Core finish green on this head, which o3-F confirms before landing.

The fallback, against the platform.

  • Only UNMANAGED_INSTALL_UNCOPYABLE falls back, and only in ask mode (managedFallback is passed by askMode alone). The door's own refusal names the managed install as the remedy, and ask mode edits nothing, so taking it measures the same build.
  • The managed body is installableManifest(artifact, 'managed'): the unmanaged body minus only the installModes: ['unmanaged'] the runner adds. I checked the default on this head: packages/spec/src/kernel/manifest.zod.ts:483 reads an absent installModes as DEFAULT_INSTALL_MODES, and :665 names that default ['managed']. So the door reads the build's own declaration. A build that declares installModes: ['unmanaged'] only would be refused managed too, and that lands in the "both refused" finding. Case 1 pins the body equality and that capabilities is kept.
  • Every fresh copy installs the way the run's own install landed (landed), and never calls the refused door again. Pinned.
  • Template mode never falls back. Its agent edits the installed copy, which only an unmanaged install makes the environment's own. Pinned by case 4, and the second ablation (the template guard removed) turns exactly that case red.
  • A harness without installManaged keeps the refusal as its finding and says why. Pinned.

The record. template.installMode is now on every install, template mode included. unmanagedRefusal is present only after a fallback. install is the answer of the install the mode ran on. The readers of ModeRun.template on this head (cli.ts:370, scorecard.ts:673, summary.ts:264) read only source, so none is changed by the new fields or by install now meaning the managed answer after a fallback. The fallback is also listed as an ask finding, and scorecard.ts renders findings as lines, not as a failure.

Error-code provenance. Comparing the code inline, not declaring it as a runner constant, keeps check:error-code-provenance from reading the runner as a stamp site. The docblock names the owner. That is right.

Live proof. travel_expense from the pinned template b7ab31a7, one repetition: the managed install answered 200, 13 question turns and 6 operations ran, where the refused round ran 0. The seed reaching 173 of 757 matches the scratch run of the same build (the build's own paid-claim rule refuses the inserts), so it is not the install's doing.

Must-fix

None.

Should-fix

None.

Notes

  • N1. summary.ts does not surface installMode. A round summary that sets an ask run from before this PR (unmanaged, or 0 turns) beside one after it cannot tell from the table alone that the install changed. The record and the finding line carry it, and the five-rep round runs all after this lands, so nothing mixes now. If ask rounds from both sides of this PR are ever compared, a column or footnote is the place. Not owed.
  • N2. The body's last line is a plain-text signature, not the HTML comment. PR-body guards reads it as green, so it is a style deviation only.
  • N3. A run of a capability-gated build now carries the same ask finding in every repetition. That is informative, not noise, but whoever reads the five-rep round should know that a finding on those cards does not mean something went wrong.

Next: the seat's L2 at TIER_DEFAULT (published-type widening on ./runner). o3-F lands after the L2 and once Test Core is green on 18bbea2. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 18bbea25a3cceb203ccab9f999884def0fff6e47
Local-runs: none

What I read: card #34687 (the body and all comments, including the 15:01Z claim note that routes option A and the 16:08Z os-dev-report for this PR); PR #34911 (the body and its 6 files); the net diff against merge base fc5913e1; and the check-runs on the head. I also read code outside the diff, without reviewing it, to judge the claims: summary.ts, scorecard.ts, runner/index.ts, the install-local door in cloud-connection, the refusal in metadata-protocol and the spec error-code ledger.

Gates (check-runs on the head): all 49 runs have finished: 33 success, 16 skipped by their own if: rules, 0 failure. The green runs include Build Core, Test Core (the aggregate and shards 1–6/10), TypeScript Type Check, all four Type Check lanes, Lint & Repo Gates and every Lint lane, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate, Live E2E UI and Test UI.

① Derived judgments

Public surface, ./runner (src/runner/index.ts re-exports app.js and orchestrate.js with export *):

  • AppHarness.installManaged? — a new optional interface member: RIGHT. A harness written before this PR still satisfies AppHarness. The test case "a harness with no managed door" pins the behaviour when the member is absent: the refusal stays the finding, with a note.
  • HttpApp.installManaged — a new method on an exported class: RIGHT. It calls the same door as installUnmanaged (POST /api/v1/marketplace/install-local) with installMode: 'managed'. The door parses installMode against InstallModeSchema, where managed is a legal value (marketplace-install-local-plugin.ts around line 2476).
  • installableManifest(artifact, mode = 'unmanaged') — a new optional parameter with a default: RIGHT. A call with one argument behaves as before; the two existing units.test.ts expectations are unchanged and still pass. With 'managed' it adds no installModes. The door then reads the build's own declaration, and absent means ['managed'] (resolveInstallModes, around line 5035). A build that declares only unmanaged would be refused INSTALL_MODE_NOT_PERMITTED. That case lands in the "managed refused too" finding, which is handled and tested.
  • fallsBackToManaged — a new export: RIGHT. Its body is !refusal.ok && refusal.code === 'UNMANAGED_INSTALL_UNCOPYABLE'.
    • It falls back on that one code only. It does not check the status, and the code alone is the right discriminator.
    • The code is registered in the spec error-code ledger (packages/spec/src/api/error-code-ledger.zod.ts:792) and stamped as 422 by unmanagedInstallUncopyable (packages/metadata-protocol/src/package-unmanaged-install.ts:349).
    • The fallback rightly does not trigger on the authoring-time sibling STACK_UNMANAGED_INSTALL_UNCOPYABLE.
    • The fallback runs only when options.managedFallback === true, and only askMode passes that.
    • Test case 2 pins that INSTALL_MODE_NOT_PERMITTED 422, UNMANAGED_INSTALL_WALLED_POSTURE 409 and PLUGIN_MANIFEST_INVALID 400 never reach the managed door.
  • InstallAnswer, InstalledBuild — new exported types: RIGHT.
  • ModeRun.template retyped as InstalledBuild: this narrows nothing. Field by field, InstalledBuild is the old inline type: source: string, install (InstallAnswer is the old inline ok/status/code?/message?), and installModesSupplied: boolean. It only adds two optional fields, installMode? and unmanagedRefusal?.
    • A reader keeps every field, with the same type and the same optionality.
    • A writer's existing object literals still type-check, because the added fields are optional.
    • Inside the package, the only readers (summary.ts:264, scorecard.ts:673, cli.ts:370) read .source alone.

Run-record shape: every template or ask install now writes installMode. A fallback also writes unmanagedRefusal. Older records have no installMode, and the jsdoc says those installed unmanaged. That is an additive output change, and the Clause-② line declares it: RIGHT.

Behaviour:

  • Ask mode on UNMANAGED_INSTALL_UNCOPYABLE: RIGHT. It installs the same build managed, minus only the installModes: ['unmanaged'] the runner itself adds. Nothing is stripped, and test case 1 pins that capabilities is kept. This is the seat's option A from the claim note. Options B and C are not taken.
  • Fresh copies: RIGHT. A copy installs the way the run's own install landed (landed). Test case 1 pins that a copy never calls the unmanaged door after a fallback.
  • Template mode: never falls back. Its refusal stays the finding and the iterate does not run (test case 4). Its record now also carries installMode: 'unmanaged'.
  • Managed refused too: one finding names both answers. The template keeps installMode: 'managed' and unmanagedRefusal (test case 5).

Is the install mode unmistakable in a round record? Yes, at the record and scorecard level.

  • The JSON record carries template.installMode on every new install, and template.unmanagedRefusal on a fallback.
  • The rendered scorecard prints - ask finding: unmanaged install refused UNMANAGED_INSTALL_UNCOPYABLE (422): installed the same build managed instead (scorecard.ts:881; test case 1 pins the rendered line).
  • The fallback also shows in the live-proof scorecard.

The cross-run summary table neither shows install mode nor refuses to mix it: it is not in TABLE_DIMENSIONS and not in the suppliedAxis row key. Two install modes cannot share one cell unknowingly, for three reasons:

  1. The row key pins the build: the template's sha256, or the scratch build's author.
  2. The package source dimension pins the platform.
  3. The refusal is a static classification of the build's keys (UNMANAGED_INSTALL_KEY_DISPOSITIONS), so one build on one platform lands the same mode on every run. A record from before this PR could not supply a cell for a refused build, because such a run ran zero turns.

A reader who compares rows or cards in a summary still sees no install-mode label (N1).

Live proof (travel_expense, template sha256 b7ab31a7…, ask mode, --ask-repeats 1, published 18.5.0, subscription login):

  • The unmanaged install was refused 422 UNMANAGED_INSTALL_UNCOPYABLE, and the managed install answered 200.
  • 13 question turns and 6 operations ran, against 0 in the refused round.
  • The proof ran at 264f86d2. I read 264f86d2..18bbea25 in full. It changes behaviour in no way:
    • The MANAGED_FALLBACK_CODE constant becomes the inline fallsBackToManaged comparison.
    • The finding and refusal strings now take install.code where they took the constant, which is the same value on this branch.
    • The added !ok is redundant inside if (!install.ok).
  • The seed loaded 173 of 757 rows, as the PR's acceptance note says. The scratch run of the same build loaded the same 173 of 757, so that comes from the build, not from the managed install.

② Semver level

  • .changeset/34687-ask-managed-install.md gives '@objectstack/scenarios': patch, Clause-②: yes (widening) and Metadata-protocol: none.
  • AGENTS.md workflow §3: a non-protocol change, widening or breaking, ships patch, and kind none takes patch. The level is RIGHT.
  • Nothing a metadata author can write changes. The diff touches only the eval runner, so none is RIGHT.
  • The Clause-② enumeration is complete against the diff: AppHarness.installManaged, HttpApp.installManaged, the mode parameter, fallsBackToManaged, InstalledBuild, InstallAnswer, and ModeRun.template with its two optional fields. The new helper installAnswerOf is not exported, so it is rightly not counted.
  • The PR-body and changeset Clause-②: lines are byte-identical (cmp).
  • The (widening) arm is right: nothing is removed, retyped narrower or made required. No ADR-0087 disposition is owed.

Clause-②: yes (widening) — confirmed. It is optional and backward compatible for existing implementers of AppHarness, callers of installableManifest, and readers or writers of ModeRun.template.

③ Boundary flags

  • open_questions: []. Nothing to answer.
  • Dev deviation (1): the pins go in the shared harness file test/runner/orchestrate.test.ts, not a new card-named file. Accepted: AGENTS.md (ruling record 6583487846) puts a new pin in the component's existing harness file.
  • Dev deviation (2): the PR body ends with a plain-text signed: line, not an HTML comment. Accepted: os-dev.md bars dev-written HTML comments. This is cosmetic and touches no contract.
  • Dev deviation (3): the platform code is compared inline, not declared as a runner constant, so that check:error-code-provenance does not read @objectstack/scenarios as a stamp site. Accepted. The runner stamps nothing; metadata-protocol owns the code, and a comparison is not a stamp site under that gate. A renamed code would not fail silently: the old code would stop falling back, and the refusal would surface as the mode's finding with its code.
  • out_of_scope_findings: none.
  • security_findings: none. A managed install of a supplied build is what the platform itself prescribes for this refusal. It goes through the same admin-session door, and no new credential or route is introduced.
  • SQL push-down (Prime Directive 5): not applicable, no finding. The diff makes HTTP calls to the install door in an eval runner. It adds no query, no id materialisation and no in-app join.

Findings

  • N1 (nit): the summary table's ask rows do not label the install mode. The mode is pinned implicitly by the build sha256 and the package source (see ①), so no cell can mix modes. Still, a row label such as · installed managed would make the difference explicit when a reader compares rows or cards. This affects neither correctness nor the contract.
  • N2 (nit): the jsdoc on InstallAnswer reads "A refused install, as the door answered it." The type also holds accepted answers (template.install { ok: true, status: 200 }). Suggested: "An install, as the door answered it."
  • N3 (nit): in the PR body's Ablation section, the first leg's anchor (if (!options.managedFallback || install.code !== … || installManaged === undefined) {) is the 264f86d2 text, not the head's. That leg ran before the last commit. The last commit changes no behaviour, and the same five cases pass at the head (the 1057-test package run), so this is an evidence-currency nit only.

No S item is open, only nits, so this meets the merge standard.

Implemented-by: claude/issue-34687-ask-managed-install
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

Landing · area o3-F · 2026-11-17T16:27Z

Probe Reading
L1 ACCEPT 6953799345 at 18bbea25, no must-fix, no should-fix; it was conditional on Test Core finishing green, and it did
L2 (Clause-②: yes (widening), TIER_DEFAULT) PASS 6954076922 at 18bbea25, three nits, all left in the record by the seat
Checks on head 18bbea25a3 33 success, 16 skipped, 0 failure / pending
check-governed-merges.mjs --pr 34911 NOT governed; 309 changed lines ≤ 3000
K (first-parent, PRBASE ab441988 from Test Core's affected-set base..origin/main) 7 < 15
Open findings nits only (L1 notes: summary.ts doesn't show installMode, plain-text signature line, fallback finding repeats per rep; L2's three nits); none changes anything a user sees, so per the seat they stay in the record with no card

State change: ready for review + auto-merge (merge queue). Part of #34687; the card stays open for its five-rep round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 16:28
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

Re-queue · area o3-F · 2026-11-17T17:03Z · head 18bbea25a3 unchanged. Ejected at 2026-11-17T16:55Z by an infrastructure failure, not by the code: in merge-group run 44126260814 (Lint & Type Check, merge sha 0a9e28ce), job Lint · docs & code guards failed at step Checkout repository ("The action 'Checkout repository' has timed out after 25 minutes"), and Lint & Repo Gates failed only on its lane verdict. Every other merge-group workflow on that sha (CI, PR-Body Guards, Spec Liveness, Governed Surface Guard) concluded success. Reviews 6953799345 / 6954076922 and landing probes 6954122167 stand. One re-queue; if ejected again the area stops and reports to the seat.

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.

2 participants