Repository navigation
fix(scenarios): ask mode installs a build the unmanaged door refuses UNMANAGED_INSTALL_UNCOPYABLE managed instead - #34911
Conversation
…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
📓 Docs Drift CheckThis PR changes 1 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg L1: ACCEPT · 2026-11-17T16:15ZHead-sha: 18bbea2 席位核对PR shape. Draft, base Scope. Six paths, all inside
No platform path moves: the door, the refusal and its code stay Declaration. Governed / size. Check-runs at 18bbea2, read at about 16:15Z. 48 runs, none failed. The fallback, against the platform.
The record. Error-code provenance. Comparing the code inline, not declaring it as a runner constant, keeps Live proof. travel_expense from the pinned template Must-fixNone. Should-fixNone. Notes
Next: the seat's L2 at TIER_DEFAULT (published-type widening on |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: 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 Gates (check-runs on the head): all 49 runs have finished: 33 success, 16 skipped by their own ① Derived judgmentsPublic surface,
Run-record shape: every template or ask install now writes Behaviour:
Is the install mode unmistakable in a round record? Yes, at the record and scorecard level.
The cross-run
A reader who compares rows or cards in a summary still sees no install-mode label (N1). Live proof (travel_expense, template sha256
② Semver level
Clause-②: yes (widening) — confirmed. It is optional and backward compatible for existing implementers of ③ Boundary flags
Findings
No S item is open, only nits, so this meets the merge standard. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir Landing · area o3-F · 2026-11-17T16:27Z
State change: ready for review + auto-merge (merge queue). Part of #34687; the card stays open for its five-rep round. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir Re-queue · area o3-F · 2026-11-17T17:03Z · head |
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.tsre-exportsapp.tsandorchestrate.ts): the new optional methodAppHarness.installManagedandHttpApp.installManaged; the new optional parametermodeofinstallableManifest; the new exportsfallsBackToManaged,InstalledBuildandInstallAnswer;ModeRun.templatetypedInstalledBuild, which adds the optional fieldsinstallModeandunmanagedRefusalMetadata-protocol: none
维护者速读
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) withinstallMode: 'managed'. Declared optional onAppHarness, so harnesses written before it keep compiling.withInstalledBuildtakesmanagedFallback, set only by ask mode. When the unmanaged door refuses the buildUNMANAGED_INSTALL_UNCOPYABLE(fallsBackToManaged), the same build is installed managed, unchanged:installableManifest(artifact, 'managed')is the unmanaged body minus only theinstallModes: ['unmanaged']the runner adds for the copy, so the door reads the build's owninstallModes(absent means managed). Every fresh copy the Run half boots installs the same way the run's own install landed.ModeRun.template(InstalledBuild) now recordsinstallMode(unmanagedormanaged) on every install, andunmanagedRefusal(status, code, message) when ask mode fell back;installis the answer of the install the mode ran on. The fallback is also listed as an ask finding.Tests
New top-level describe in
test/runner/orchestrate.test.ts(the runner's shared harness file), five cases:UNMANAGED_INSTALL_UNCOPYABLE→ managed install of the same build (body equal to the unmanaged one minusinstallModes,capabilitieskept) → the Run half runs → the record carriesinstallMode: 'managed'andunmanagedRefusal; every fresh copy installs managed and never calls the unmanaged door.INSTALL_MODE_NOT_PERMITTED422,UNMANAGED_INSTALL_WALLED_POSTURE409,PLUGIN_MANIFEST_INVALID400) does not fall back: the managed door is never called, no turn runs.installMode: 'unmanaged'; the managed door is never called.Also:
units.test.tspinsinstallableManifest(art, 'managed'); the existing ask-beside-scratch case now expectsinstallMode: 'unmanaged'.Acceptance notes
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.fallsBackToManaged) rather than declaring it as a runner constant:check:error-code-provenancereads a declared constant as a stamp site of@objectstack/scenarios(the runner stamps nothing;@objectstack/metadata-protocolowns 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)
tsc --noEmit --listFilesincludestest/runner/orchestrate.test.ts(count 1).Ablation (committed fix, mutation through scripts/ablation-replace.mjs; tests import src, no dist leg)
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 HEADempty.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, sha256b7ab31a715d4e83ce35c5075739f2d10b9bf7e8f0bf3b577709ae7d953de8377;--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 underproof-managed/.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) andcheck:dual-build-cjs-loads(reads every package'sdist/; 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