Repository navigation
fix(runtime): six door strings say "this system" or drop the noun, not "this environment" (cloud#3002 ruling A) - #24367
Conversation
…op the noun in six door strings The permission-set clone notice says the copy is authored in this system, the console's own wording; the MCP opt-out 404, the share-link 501 and the two webhook-redelivery 501 bodies drop "for this environment". Status codes, error codes and response shapes are unchanged. The platform checklist's MCP clause quotes the new 404 text. Claude-Session: https://claude.ai/code/session_01SYEJqDL3NXxrJRBVqaMu9T Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SYEJqDL3NXxrJRBVqaMu9T Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 26 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 ca951aaaf536c8b8d120271e09a9dcbf6ae9c631 && git checkout ca951aaaf536c8b8d120271e09a9dcbf6ae9c631
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a2a3777bf53855f2e9ca43f1bcfa2623c561a224 89e99ce2a60164dc8fa7bdce539ba3d11fe61072 && git checkout -B drift-repro a2a3777bf53855f2e9ca43f1bcfa2623c561a224 && git merge --no-ff 89e99ce2a60164dc8fa7bdce539ba3d11fe61072
node scripts/docs-audit/affected-docs.mjs --json a2a3777bf53855f2e9ca43f1bcfa2623c561a224
|
席位核对 — REWORK (patch round 1: the four in-lane twins, one comment, one clause)
Accepted as it stands:
Owed in this PR (your open question, answered A, plus two items found in the same read):
Routed, not this PR's:
Before pushing: read this head's checks and fold any red into the same round. Generated by Claude Code |
…und-hook 501s; qualify the MCP-off checklist clause by caller Patch round 1. The approval action-page and inbound automation-hook doors' two 501 refusals each drop the noun exactly as the webhook-redelivery pair does. A share-links comment that quoted the old 501 text verbatim now quotes the new one. The platform checklist's MCP clause names the caller: with the switch off, /mcp/skill answers 404 to any caller and /mcp answers 404 to a signed-in or system caller, while an anonymous /mcp caller is refused 401 first (ADR-0138 D2). The changeset counts ten strings. Claude-Session: https://claude.ai/code/session_01SYEJqDL3NXxrJRBVqaMu9T Co-authored-by: Claude <noreply@anthropic.com>
席位核对ACCEPT ·
Generated by Claude Code |
Fixes #24327
Clause-②: no
Basis: copy only. Every HTTP status, error code and response shape is unchanged; only the human-readable text moves.
What changed
Ten user-facing strings in
packages/runtime/src/domains/now follow objectstack-ai/cloud#3002 ruling A, as the triage comment 6250167038 reads each one: inside the running system, a string names the system the caller is in as "this system", or drops the noun.permission-set-clone.tsPERMISSION_SET_CLONE_NOTICE(the clone door's 200notice)mcp.tshandleMcpRequest(404 whenOS_MCP_SERVER_ENABLED=false)mcp.tshandleMcpSkillRequest(same 404)share-links.ts(501, no share-link service)webhooks.ts(501, no webhooks service)webhooks.ts(501, nohandleRedelivermember)approvals.ts(501, no approvals service)approvals.ts(501, nohandleActionPagemember)automation-hooks.ts(501, no trigger-api service)automation-hooks.ts(501, nohandleInboundHookmember)approvals.ts/automation-hooks.tsstrings were added in patch round 1. Each splits the phrase across a string concatenation (… for this '+'environment …), so a one-linegit grep 'this environment'never saw them.share-links.ts:173-174: a code comment quoted the old 501 text verbatim. Only the quote changes.docs/qa/platform-checklist/areas/ai.json, MCP item, first acceptance clause: it quoted the old 404 body, and since ADR-0138 D2 its "404 … on BOTH" no longer held for an anonymous/mcpcaller. The clause now quotes the new text and names the caller. With the switch off,/mcp/skillanswers 404 to any caller, because the skill is public (http-dispatcher.mcp.test.ts"404s when the MCP surface is opted out", anonymous on purpose)./mcpanswers 404 to a signed-in or system caller. An anonymous/mcpcaller is refused401 UNAUTHENTICATEDbefore the switch is read (http-dispatcher.mcp.test.ts"anonymous → 401 UNAUTHENTICATED with the switch off, not 404"). Only that clause moves..changeset/24327-runtime-this-system-copy.md:patchon@objectstack/runtime.Readers of the changed strings, measured
git grepover the whole tree (packages, content/docs, docs/qa, skills, examples, .changeset) for each string and its fragments:permission-set-clone.test.tsasserts against the exportedPERMISSION_SET_CLONE_NOTICEconstant, never a restated copy, so it moves with the source.webhooks-redeliver.test.ts:162andpackages/qa/http-conformance/src/hono-webhooks-redeliver.conformance.test.ts:327pin status and code (501 NOT_IMPLEMENTED) plus the substrings "no webhooks service is registered" and "does not implement handleRedeliver". Both survive the change.approvals-act.test.ts:204/:212("no approvals service is registered", "does not implement handleActionPage") andautomation-hooks.test.ts:284/:292("no trigger-api service is registered", "does not implement handleInboundHook") pin status and code plus substrings that survive the change.http-dispatcher.mcp.test.tsandmcp-anonymous-first.hono.integration.test.ts(404 RESOURCE_NOT_FOUND), unchanged.content/docs/permissions/permission-sets.mdx:369and:422are prose about the concept, not quotes of the notice. Left unchanged.CHANGELOG.mdentries that quote the old share-link 501 are release-owned history. Left unchanged.Left alone, and why
mcp.tsabout:513("an MCP client listing prompts on this request sees fewer than this environment declares"): alogger.warnoperator log insidewarnIfSkillListIncomplete, not a response body or a client-visible warning.automation-hooks.ts:128, the rest of the no-service 501 ("… compose it on the environment that owns the flow."): this names which deployment to compose the trigger on, a configuration scope, not the system the caller is in. The noun the round asked for ("registered for this environment") is dropped.domain:enginestrings inobjectql,metadata-protocolandplatform-objectsbelong to engine copy: six user-facing strings in objectql, metadata-protocol and platform-objects still say "authored in this environment" — the domain:engine half of #24327 (cloud#3002 ruling A) #24360 and are not touched here.Verification
Patch round 1, head
89e99ce2a(onf4b2a3f78, which mergedorigin/main83dfbc046). All builds and tests went throughscripts/pm/os-verify-lock.sh:turbo run build --filter=!@objectstack/docs --concurrency=2: 76 tasks successful (63 cached).pnpm --filter @objectstack/runtime typecheck: exit 0 (tsc pluscheck:test-typecheck: "27 file(s) / 190 error(s) / 68 pinned signature(s) held").pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2over the nine files that read these doors (approvals-act,automation-hooks,share-links-enforcement-context,domain-floor-anonymous-deny,permission-set-clone,webhooks-redeliver,http-dispatcher.mcp,mcp-anonymous-first.hono.integration,mcp-merged-skill-read): "Test Files 9 passed (9) · Tests 231 passed (231)". A verbose re-run ofapprovals-act+automation-hooksshows their 501 NOT_IMPLEMENTED cases green ("Test Files 2 passed (2) · Tests 32 passed (32)").@objectstack/http-conformancehono-webhooks-redeliverandhono-mcp-anonymous-first: "Test Files 2 passed (2) · Tests 19 passed (19)".localproject on2b3424833: "Test Files 419 passed (419) · Tests 6606 passed | 19 skipped (6625)".test:repois not run locally (CI'sTest Core).Gates (union run after the final commit, head
89e99ce2a; each exit code captured before any pipe):node scripts/pm/dispatch-gates.mjs --commands(no paths) derived 63 commands. All 63 exited 0,check:dual-build-cjs-loadsincluded ("111 published require entry point(s) across 69 package(s) load").--ranreconciliation: "Run reconciliation — 63 derived, 63 run, 0 NOT-MEASURED, 0 UNRUN."packages/runtimesources, all exit 0:check:init-service-contract,check:live-db-isolation,check:optional-error-sink,check:resume-authority-declared,check:runner-env-posture,check:settings-bind-window,check:startup-registry-verdict,check:verify-stand-in,check:wildcard-fallthrough. (check:meta-type-normalizedscanspackages/rest/srconly, so it does not cover these paths.)check-changeset-fixed.mjs,check:authz-resolver,check:error-code-casing,check:filter-alias-parity,check:route-ledger-census. Platform-checklist families:check:platform-checklist("OK — 16 areas, 327 items") andcheck-platform-checklist-watchdog.mjs, both exit 0.pnpm exec eslint --no-inline-configover the six changed.tsfiles: exit 0, no output.No ablation: the change is copy, and per the triage the prose is not pinned.
Acceptance notes
runtime/src/domainsand engine copy: six user-facing strings in objectql, metadata-protocol and platform-objects still say "authored in this environment" — the domain:engine half of #24327 (cloud#3002 ruling A) #24360. It also covers objectui's restated clone notice and console MCP strings.Generated by Claude Code