Skip to content

fix(runtime): six door strings say "this system" or drop the noun, not "this environment" (cloud#3002 ruling A) - #24367

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-24327-runtime-this-system-copy
Oct 18, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-24327-runtime-this-system-copy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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.

Site Sense (triage) Before After
permission-set-clone.ts PERMISSION_SET_CLONE_NOTICE (the clone door's 200 notice) made here, not from a package "The copy is a new permission set authored in this environment, with no link …" "The copy is a new permission set authored in this system, with no link …"
mcp.ts handleMcpRequest (404 when OS_MCP_SERVER_ENABLED=false) the system the caller is in "MCP server is not enabled for this environment" "MCP server is not enabled"
mcp.ts handleMcpSkillRequest (same 404) the system the caller is in same same
share-links.ts (501, no share-link service) the system the caller is in "Sharing is not configured for this environment" "Sharing is not configured"
webhooks.ts (501, no webhooks service) the system the caller is in "… no webhooks service is registered for this environment. …" "… no webhooks service is registered. …"
webhooks.ts (501, no handleRedeliver member) the system the caller is in "… the webhooks service registered for this environment does not implement handleRedeliver." "… the registered webhooks service does not implement handleRedeliver."
approvals.ts (501, no approvals service) the system the caller is in "Approval action pages are not available: no approvals service is registered for this environment. …" "… no approvals service is registered. …"
approvals.ts (501, no handleActionPage member) the system the caller is in "… the approvals service registered for this environment does not implement handleActionPage." "… the registered approvals service does not implement handleActionPage."
automation-hooks.ts (501, no trigger-api service) the system the caller is in "Inbound automation hooks are not available: no trigger-api service is registered for this environment. …" "… no trigger-api service is registered. …"
automation-hooks.ts (501, no handleInboundHook member) the system the caller is in "… the trigger-api service registered for this environment does not implement handleInboundHook." "… the registered trigger-api service does not implement handleInboundHook."
  • The four approvals.ts / automation-hooks.ts strings were added in patch round 1. Each splits the phrase across a string concatenation (… for this ' + 'environment …), so a one-line git 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 /mcp caller. The clause now quotes the new text and names the caller. With the switch off, /mcp/skill answers 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). /mcp answers 404 to a signed-in or system caller. An anonymous /mcp caller is refused 401 UNAUTHENTICATED before 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: patch on @objectstack/runtime.

Readers of the changed strings, measured

git grep over the whole tree (packages, content/docs, docs/qa, skills, examples, .changeset) for each string and its fragments:

  • permission-set-clone.test.ts asserts against the exported PERMISSION_SET_CLONE_NOTICE constant, never a restated copy, so it moves with the source.
  • webhooks-redeliver.test.ts:162 and packages/qa/http-conformance/src/hono-webhooks-redeliver.conformance.test.ts:327 pin 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") and automation-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.
  • No test pins the MCP 404 or the share-link 501 prose. The MCP 404's status and code are pinned by http-dispatcher.mcp.test.ts and mcp-anonymous-first.hono.integration.test.ts (404 RESOURCE_NOT_FOUND), unchanged.
  • content/docs/permissions/permission-sets.mdx:369 and :422 are prose about the concept, not quotes of the notice. Left unchanged.
  • CHANGELOG.md entries that quote the old share-link 501 are release-owned history. Left unchanged.
  • No i18n catalog or error-message map carries a localized copy of any of these strings.
  • No consumer parses the text. The console shows the clone notice verbatim.

Left alone, and why

Verification

Patch round 1, head 89e99ce2a (on f4b2a3f78, which merged origin/main 83dfbc046). All builds and tests went through scripts/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 plus check:test-typecheck: "27 file(s) / 190 error(s) / 68 pinned signature(s) held").
  • pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2 over 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 of approvals-act + automation-hooks shows their 501 NOT_IMPLEMENTED cases green ("Test Files 2 passed (2) · Tests 32 passed (32)").
  • @objectstack/http-conformance hono-webhooks-redeliver and hono-mcp-anonymous-first: "Test Files 2 passed (2) · Tests 19 passed (19)".
  • From the first round: the full runtime local project on 2b3424833: "Test Files 419 passed (419) · Tests 6606 passed | 19 skipped (6625)". test:repo is not run locally (CI's Test 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-loads included ("111 published require entry point(s) across 69 package(s) load"). --ran reconciliation: "Run reconciliation — 63 derived, 63 run, 0 NOT-MEASURED, 0 UNRUN."
  • Declared wide-population families whose population covers the changed packages/runtime sources, 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-normalized scans packages/rest/src only, so it does not cover these paths.)
  • Artifact-roster families whose roster sits under a changed directory, all exit 0: 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") and check-platform-checklist-watchdog.mjs, both exit 0.
  • pnpm exec eslint --no-inline-config over the six changed .ts files: exit 0, no output.

No ablation: the change is copy, and per the triage the prose is not pinned.

Acceptance notes


Generated by Claude Code

…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>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Oct 18, 2026
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/runtime, 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/permissions/system-context.mdx (via handleMcpRequest (symbol, a top-level function))
What this run could not see
  • the SDK route bridge reached 54 of 206 client-bound route-ledger rows — the other 152 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 152: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 97 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 — 26 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 a2a3777bf53855f2e9ca43f1bcfa2623c561a224 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ca951aaaf536c8b8d120271e09a9dcbf6ae9c631 — the merge of head 89e99ce2a60164dc8fa7bdce539ba3d11fe61072 into base a2a3777bf53855f2e9ca43f1bcfa2623c561a224, 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 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

⚠️ 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 a2a3777bf53855f2e9ca43f1bcfa2623c561a224 → 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

席位核对 — REWORK (patch round 1: the four in-lane twins, one comment, one clause)

domain:cli seat 1 (seat post #6024) · zhuangjianguo · session session_01SYEJqDL3NXxrJRBVqaMu9T · 2026-10-18T16:27Z · on head f4b2a3f78 · #24327 (claim 6251717203, amended in place in this act). This is the seat's own review at the default tier (Clause-②: no, copy only), read against GitHub, not the report.

Accepted as it stands:

  • The six packages/runtime/src/domains strings follow cloud#3002 ruling A as triage read each one. Status codes, error codes and response shapes are unchanged.
  • mcp.ts about :513 is an operator logger.warn, so it is left.
  • No test or docs page quotes a changed string verbatim except ai.json.
  • No i18n catalog carries the strings.
  • Runtime --project local: 419 files / 6606 tests.
  • 29 changed lines.

Owed in this PR (your open question, answered A, plus two items found in the same read):

  1. The four in-lane twins: approvals.ts (about :116–:117, :126–:127) and automation-hooks.ts (about :126–:127, :137–:138). Drop the noun exactly as webhooks.ts now does. Their readers (approvals-act.test.ts, automation-hooks.test.ts) pin substrings that survive; confirm.
  2. share-links.ts about :174: a comment that quotes the 501 text this PR changes, verbatim. Update the quote. Comments are otherwise out of the card's scope.
  3. docs/qa/platform-checklist/areas/ai.json:150:

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对

ACCEPT · domain:cli seat 1 (seat post #6024) · zhuangjianguo · session session_01SYEJqDL3NXxrJRBVqaMu9T · 2026-10-18T17:08Z · on head 89e99ce2a · #24327 (claim 6251717203, amended in place; reports 6252246981 and 6252669331). This is the seat's own review at the default tier (Clause-②: no, copy only), read against GitHub, not the report.

  1. Shape: draft against main, with the first line Fixes #24327 and Clause-②: no. Assignee zhuangjianguo. 8 files, +32 / −16, with a patch changeset on @objectstack/runtime that names the ten strings. Not governed.
  2. The change, read on the diff: ten packages/runtime/src/domains strings follow cloud#3002 ruling A as triage read them.
    • The clone notice says "authored in this system".
    • The MCP 404s, the share-link 501, the webhook-redelivery 501s, and patch round 1's four approvals / inbound-hook 501s drop the noun.
    • Every status code and error code is unchanged.
    • automation-hooks.ts about :128 ("… compose it on the environment that owns the flow") is a configuration scope and stays, as the dev read it.
  3. Readers:
    • The tests pin status and code plus substrings that survive (approvals-act, automation-hooks, webhooks-redeliver, http-dispatcher.mcp, permission-set-clone through the exported constant).
    • share-links.ts's quoting comment is updated.
    • ai.json:150's clause now names the caller, as measured. With the switch off, /mcp/skill (public) answers 404 to any caller. /mcp answers 404 to a signed-in or system caller, and 401 UNAUTHENTICATED to an anonymous one (ADR-0138 D2, fix(runtime): an anonymous /mcp caller is answered 401 ahead of the switch's 404 and the service's 501 #24308). This corrects the seat's own message, which had put /mcp/skill's anonymous caller at 401.
  4. Gates: locally, 63 derived commands exit 0, with 0 NOT-MEASURED. The declared-wide families, check:platform-checklist and the watchdog exit 0, and eslint exits 0. CI on this head completed: 34 success and 6 roster-shaped skips, the five required contexts included. The seat's body edit re-runs Check Changeset and the closure guards, which are read before landing.
  5. PR body: the round-1 corrections were written by the seat from the dev's prepared body, as the dev role file assigns (os-dev.md:64: the dev writes the body once, at pr_create).
  6. Out of scope: platform copy, the rest of cloud#3002 ruling A: about 50 non-comment "this environment" strings outside #24327 and #24360 (cloud-connection, plugin-auth, service-settings, platform-objects, mcp, plugin-security, spec) need the per-string reading #24368 carries the census correction (68 non-comment lines), the strings outside runtime/src/domains and 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 objectui's mirror and console strings.
  7. Landing: ready plus auto-merge through the queue once every check on the current head is success or a roster skip. runtime copy: the permission-set clone notice says "authored in this environment" beside the console's new "this system" — server-side user-facing strings still use the cloud noun (cloud#3002 ruling A) #24327 closes on Fixes.

Generated by Claude Code

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/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants