Skip to content

feat(spec)!: action locations say what an action acts on - #37929

Merged
os-zhuang merged 10 commits into
mainfrom
claude/project-thread-rswxk0
Nov 28, 2026
Merged

os-zhuang merged 10 commits into
mainfrom
claude/project-thread-rswxk0

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Part of #36495

What changes

An action's locations now say what the action acts on, not the part of the page it sits in. ACTION_LOCATIONS is list, record, record_page, record_row, record_related, record_section. The page-part words list_toolbar, list_item, record_header and record_more are retired.

  • record is new: the action acts on one record, so it is drawn on the record page's header and in each list row's menu.
  • The record header's ⋯ fold, which record_more used to say, is the action's component: 'action:menu'.
  • Which actions are buttons and in what order stays the object's actionLayout.

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37895

A replacement with a registered conversion, so yes (narrowing) as on main's precedents (.changeset/pre/37086-define-metadata-form-rename.md, .changeset/pre/37304-knowledge-source-governed-type.md). Narrowed: the four retired words are refused wherever a location is read. Widened in the same change:

  • the four newly accepted values list, record, record_page and record_row, at the same positions;
  • the new @object-ui/types export actionFoldedIntoMenu;
  • eight new @object-ui/i18n Studio keys for the location labels (en, zh), replacing the eight keys of the retired words.

ADR-0087 conversion action-locations-acted-on (lossless)

FROM → TO. Each action is drawn in exactly the places it was drawn before:

  • list_toolbar → list
  • list_item → record_row
  • record_header / record_more → record_page
  • record_header or record_more beside list_item → record
  • record_more without record_header → record_page + component: 'action:menu'
  • A component's single location (record:quick_actions, action:group, action:bar) is mapped the same way.

The conversion is retired from the load path from day one, as every protocol-19 entry is. An old word is refused at authoring, and the refusal names the word to write instead. Stored items, built artifacts and os migrate meta --from 18 replay the conversion. It leaves a TODO and changes nothing in four cases that have no lossless rewrite:

  • a record_more-only action that is also on list_toolbar, without component: 'action:menu' already (with it, the rewrite is lossless); there are 0 in this repo
  • an action at record_header with an authored component: 'action:menu': the header folded it into its ⋯ while a record:quick_actions bar at record_header drew it as a button, and record_page has one state for both; 0 in objectstack and HotCRM. Pinned in packages/spec/src/conversions/action-locations-acted-on.test.ts; removing the TODO turns 3 of its cases red
  • a component whose location is record_more
  • an action:group at record_header with a record_more-only member

A site left as stored keeps its old word, which a protocol-19 runtime matches to no surface: that action or block is drawn nowhere until it is rewritten by hand.

The semantic entry action-locations-page-parts-retired carries the step into the protocol-19 upgrade guide.

Readers

  • @object-ui/types:
    • actionRendersAt reads record as covering record_page and record_row.
    • The new actionFoldedIntoMenu tells whether an action is folded into the ⋯.
    • arrangedHeaderActions pins and unpins through component.
  • page:header sends every folded action to its ⋯. Every other record_page action takes the inline budget.
  • record:quick_actions at record_page leaves folded actions out.
  • The related list reads record as a row action.
  • The record-scoped checks in core and runtime (isRecordScopedAction, requiresRecord) accept record.
  • Studio:
    • The action inspector and the record:quick_actions location dropdown offer record.
    • The action preview draws the fold as "record_page · ⋯".
  • Lint: the record-page header, related-list and action-layout rules read the new words. The related-list hint now groups locations that draw the same thing, which keeps the one-line fix under 200 characters.
  • Declarations under packages/**, examples/** and ui/**, plus content/docs/**, use the new words. The generated references, sdui.manifest.json and the component reference pages are regenerated.

Not moved

Size

421 files, +2478/−1631 (4109 changed lines). This is over 3000, so it is a class (c) landing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qic11optJUat6U8X67jY

Keeps both protocol-19 step sentences in registry.ts.template, moves the
new main declarations and the liveness evidence to the acted-on words,
and regenerates the references.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 10 package(s): @objectstack/cli, @objectstack/lint, @objectstack/metadata-protocol, @objectstack/platform-objects, @objectstack/plugin-approvals, @objectstack/downstream-contract, @objectstack/scenarios, @objectstack/runtime, @objectstack/service-datasource, @objectstack/spec, touching 81 documentable anchor(s). ⚠️ 7 changed file(s) yielded no anchor (packages/lint/src/validate-null-guards.ts, packages/spec/liveness/action.json, packages/spec/liveness/object.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

39 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d.

⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 7 changed file(s) yielded no anchor (packages/lint/src/validate-null-guards.ts, packages/spec/liveness/action.json, packages/spec/liveness/object.json, …) — pages documenting those are invisible to this run
  • 13 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 191 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 8d34c4404f951410083a6caebd6ad8003ea3423d → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d

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

…n location labels

The action inspector's location options are now Record · page and rows /
Record · page; the action preview draws its ⋯ frame for a folded record
page action, so the ⋯ wording is pinned on a folded fixture.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 0ada605 · 2026-11-27T20:06Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (narrowing face: the action locations vocabulary in @objectstack/spec goes from page parts to what an action acts on, with the ADR-0087 conversion action-locations-acted-on, its semantic entry, and the readers in @object-ui/types, core, runtime, lint and Studio), and posts its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef
Local-runs: none
Scope: packages/spec/src/conversions/entries/19/action-locations-acted-on.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/data/object-action-layout.ts, packages/spec/src/kernel/public-auth-features.ts, packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/studio/plugin.zod.ts, packages/spec/src/ui/action-declarative-update.ts, packages/spec/src/ui/action.zod.ts, packages/spec/src/ui/component.zod.ts, packages/spec/src/ui/dashboard.zod.ts, packages/spec/src/ui/page.zod.ts + the other 391 paths of the diff outside content/docs/** and .changeset/** (narrowing floor: packages/**, ui/**, examples/**, scripts/sdui-manifest.record.json, sdui.manifest.json), the readers read in full: ui/packages/types/src/ui-action.ts, ui/packages/core/src/actions/ActionEngine.ts, ui/packages/core/src/actions/serverActionHandler.ts, ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/renderers/action/action-bar.tsx, ui/packages/plugin-detail/src/renderers/record-quick-actions.tsx, ui/packages/plugin-detail/src/renderers/relatedListActions.ts, ui/packages/plugin-detail/src/DetailView.tsx, ui/packages/layout/src/PageHeader.tsx, ui/packages/app-shell/src/views/RelatedRecordActionsBridge.tsx, ui/packages/app-shell/src/views/DeclaredActionsBar.tsx, ui/packages/app-shell/src/views/objectViewListRenderer.tsx, ui/packages/app-shell/src/layout/designModeHeaderPinsModel.ts, ui/packages/app-shell/src/views/metadata-admin/previews/ActionPreview.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts, packages/runtime/src/action-execution.ts, packages/lint/src/validate-record-page-header.ts, packages/lint/src/validate-action-name-refs.ts, packages/lint/src/validate-object-action-layout.ts. Read outside the diff, not reviewed: packages/spec/src/conversions/apply.ts, packages/spec/src/conversions/stored.ts, packages/metadata-core/src/artifact-forward-conversion.ts, .changeset/config.json, .changeset/pre.json, skills/objectstack-ui/rules/actions.md, docs/qa/**, and every reader above at the merge base cb3f8b95.

① Derived judgments

Inputs: card #36495 with its five comments, PR #37929 body and file list, the net diff cb3f8b95...0ada6058 (420 files, +2322/−1631), and the 70 check-runs on the head (61 success, 9 skipped, 0 failed).

  • The tap. It is on the card as comment 7213827153 (recorded 08:42Z, ruling letter A 「照卡上这套」 at 08:40Z on 2026-11-27), beside 7213534162 (start now, before 19.0.0 GA). It is the seat's record of the maintainer's tap, not a comment in the maintainer's own hand.
  • Enum equals the card's set: right. ACTION_LOCATIONS at the head is exactly list, record, record_page, record_row, record_related, record_section. No extra word, none missing. list_toolbar, list_item, record_header, record_more are gone from the enum and each is refused by the enum's own error map with its replacement (action.zod.ts; pinned in action.test.ts and retired-key-removal-version.pin.test.ts).
  • Conversion table equals the card's: right. rewriteLocations and convertAction implement the five card rows word for word. The component single-location mapping and the three TODO cases are additions the card does not state; they stay inside the ruling.
  • Accept set, narrowed: right. Four values refused on action.locations, on the row locations of action:button, action:icon and group or menu members, and on the location of record:quick_actions and action:group. Metadata-protocol: narrowed is the right kind (narrowed over added).
  • Accept set, widened: declared wrong. Four values are newly accepted at the same positions (list, record, record_page, record_row). See S2.
  • Public surface, @object-ui/types. ACTION_LOCATIONS and ActionLocation change members (breaking); actionFoldedIntoMenu is a new export (widening); arrangedHeaderActions no longer writes locations (behaviour). @object-ui/core re-exports the same constant and type and getActionsForLocation takes the new type. Named in the changeset: right, except the Clause-② line (S2).
  • Published language packs. @object-ui/i18n studio packs (en, zh) drop eight …location.* keys and add eight. Not named in the changeset as a key change (S2).
  • Readers. actionRendersAt answers record_page and record_row for record: right. isRecordScopedAction (core) and requiresRecord (runtime) keep their exact sets, respelled: right; record_related stays outside core's set and record_section outside runtime's, as on main.

② Semver level

  • @objectstack/spec major and @object-ui/types major are right. .changeset/pre.json is in pre mode (tag next), every package is at 19.0.0-next.1, and all published packages sit in one fixed group, so the release stays on the 19 prerelease line.
  • Every publishable package the diff touches is in the changeset (25 names; @objectstack/dogfood and @objectstack/downstream-contract are private). The ADR-0087 marker and the FROM → TO block are present; Check Changeset is green.
  • The per-package levels below major are changelog placement only inside the fixed group. Two are loose (N5).
  • Clause-②: no (narrowing) is not true as written. See S2.

③ Boundary flags

  • open_questions in the os-dev report (7227149591) is empty. Its six deviations are answered: (1) the skills split is carried by skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895, see N6; (2) class (c) size is the seat's call and Check PR Size is green; (3) docs/qa is not only prose, see N7; (4) the warming imports in 23 tests and (5) the registry.ts.template merge are fine; (6) majors confirmed in ②.
  • security_findings: none agrees with the diff: no permission or capability gate changes; every gate comment that moved is a respelling.
  • SQL push-down: the diff adds no query, id materialisation or in-app join. No finding.
  • PR author is objectstack-fleet[bot].

④ Design judgment

The narrowing itself holds: it is a respelling with a migration, not a capability taken away. A grep for each retired word over packages/, ui/ and examples/ at the head, outside migrations, conversions and CHANGELOG files, leaves only comments and the two pin tests. No consumer reads a retired word. Source is refused at parse with the replacement; stored rows (applyConversionsToStoredItem) and built artifacts (floor 19.0.0 opens the major step; floor at or below 18.6.0 opens it by retiredAfter) replay the conversion.

Break attempts that held, main readers against head readers:

  • record_header + list_item to record: the header surfaces (page:header on the record page, side preview and phone bar, the design-mode pin rows, MetadataTypeActions) and the row surfaces (grid and list row menus, related-list rows in a parent, the inbox inline decisions) all go through actionRendersAt at the head. Same places.
  • record_related: record does not cover it and need not. A list_item action already drew on related-list rows on main (ROW_LOCATIONS_IN_RECORD), and record_header + record_related becomes record_page + record_related, not record.
  • record_more-only to record_page + component: 'action:menu': main's header folded on isMoreOnly or on the component; the head folds on the component alone. Replacing an authored component is lossless: row menus, related lists, DeclaredActionsBar and record:quick_actions never read an object action's component, and the header reads only action:menu.
  • record_header + record_more to record_page with no component: a button before and after.
  • arrangedHeaderActions: pinned lifts the fold, unpinned sets it; same split as main's location rewrite.
  • The three TODO cases are truly not expressible per item: the list toolbar reads the fold too; no word draws only folded actions; a group member has no component.

S1 (should-fix) — A fourth non-lossless case is converted silently. On main record:quick_actions at record_header (also its default location, and PageHeader's actions prop) drew every action whose locations included record_header, whatever its component (ActionEngine.getActionsForLocation was a plain includes). At the head the bar at record_page leaves out every action with component: 'action:menu' (record-quick-actions.tsx). So an action authored locations: ['record_header'] with component: 'action:menu' was a button in that bar on main and is absent from it at the head; no notice, no TODO. The cause is structural: main had two states (header word plus menu component: in the bar; record_more-only: not in the bar) and the head has one. The mirror case exists for an action:bar at record_page fed business actions: a former record_more-only action now appears in its overflow (no in-repo feeder passes business actions there). Census: zero authored component: 'action:menu' declarations in objectstack and in HotCRM. Fix either way: the conversion reports a TODO for an action that carries record_header and an authored component: 'action:menu', or the changeset and the semantic entry name the exception and the maintainer accepts it, since the card says every action shows exactly where it shows today.

S2 (should-fix) — Clause-②: no (narrowing) under-declares. The diff also widens: four newly accepted enum values, the new @object-ui/types export actionFoldedIntoMenu, and eight new published @object-ui/i18n keys. House precedent on main declares a replacement with a registered conversion as yes (narrowing) (.changeset/pre/37086-define-metadata-form-rename.md, .changeset/pre/37304-knowledge-source-governed-type.md) and keeps no (narrowing) for pure retirements (37712-agent-model-provider-retired.md). The line belongs as Clause-②: yes (narrowing) with the widened members named, in the changeset, the PR body and a corrected claim line. Prose faces only; no code moves, and the tier this review ran at already covers it.

N1 (nit) — At rest, two TODO shapes draw nothing on a 19 runtime until rewritten by hand: an action left as ['list_toolbar', 'record_more'] matches no reader, and a record:quick_actions left at location: 'record_more' finds no action. The read seam reports no TODO; only os migrate meta does. The changeset and the semantic entry say "left as stored" but not that consequence. Say it in the prose.

N2 (nit) — The toolbar TODO also fires when the action already carries component: 'action:menu', where ['list', 'record_page'] with the component is lossless.

N3 (nit) — Studio's record:quick_actions dropdown now offers record. A bar at record reads the exact word: it draws only actions that declare record, not record_page ones, and does not apply the fold filter that record_page applies. Follow-up card.

N4 (nit) — Wording. The enum refusal on a block's location: 'record_more' prescribes record_page, which the conversion itself says is not equivalent. The record_section advice in action.zod.ts and page.zod.ts changed from "adds record_more" (the fold) to "adds record_page" (a header button unless the component is also set). The semantic entry's comment says two sites are left as stored; its text says three.

N5 (nit) — Changeset prose. "The packages listed as patch change comments, test fixtures or authoring copy only" is not true for @objectstack/plugin-approvals and @objectstack/service-datasource (shipped declarations) or @object-ui/layout (a runtime literal). @object-ui/core, @object-ui/components and @object-ui/react carry the breaking type through re-exports and parameters at minor or patch; moot in the fixed group.

N6 (nit) — Out of scope, skills/**: safe for this landing with one condition. After the merge, skills/objectstack-ui/rules/actions.md (the locations table and the actionLayout paragraph), rules/record-page.md:40, skills/objectstack-formula/SKILL.md:139 and two eval files still teach refused words; the eval must_contain at views-apps-actions-pages.json:30 requires record_header. Both skill gates are green on the head, so no checked example or served JSON fence carries one. @objectstack/skills is in the fixed group, so a next cut between this merge and #37895 PR 2 ships skills that teach words the same version refuses; the refusal names the replacement, so an agent recovers in one round. Condition: #37895 PR 2 lands before the next prerelease cut.

N7 (nit) — Out of scope, HotCRM and docs/qa/**. HotCRM is safe: it pins @objectstack/spec 18.6.0, its five record_more declarations are all convertible, and it has no TODO shape. docs/qa is not only prose: both recorded builds (order_to_cash.json as well as travel_expense.json) carry old words and declare engines.protocol: ^19, which the artifact door replays through the major step; but the checklist's scratch bodies sent to the save door (studio-authoring.json:5372, records-forms.json:7273) will now be refused, and the install-local recipe at records-forms.json:77 carries no protocol floor (not verified whether it replays). No follow-up card is named for these; file one.

N8 (nit) — Body staleness. The PR body still says two derived gates are red until #37895 PR 1 lands; PR 1 (#37947) is on main and both gates are green on this head. The size line reads 417 files, +2308/−1624; the head is 420 files, +2322/−1631. The body names only travel_expense.json among the recorded builds.

Implemented-by: claude/project-thread-rswxk0
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above (7227370865) was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #37929 @ 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef (card #36495)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36495: its body and EVERY comment (rulings and earlier records included)
· PR #37929: its body, its file list, and the net diff against main at cb3f8b9538d167460d3a67c5201a1e6315e936e2
· the check-runs on 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (content/docs/**, .changeset/**), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37929/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T20:19Z

L1 REWORK at 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef (L1-a for the seat). The isolated CONTRACT_REVIEW_TIER record 7227370865 is a PASS (claim 7227191836; filled brief beside it). It has no must-fix, but it has two should-fix findings, and each owes a delta of its fix before ACCEPT. Everything else holds:

  • the shipped enum is exactly the card's set, per the tap 「照卡上这套」 recorded at 7213827153;
  • the five conversion rows are word for word;
  • no reader in packages/, ui/ or examples/ still reads a retired word;
  • stored rows and built artifacts replay the conversion;
  • all 25 touched publishable packages are in the changeset;
  • CI is 61 success, 9 skipped, 0 failed;
  • the dogfood battery is pinned to 0ada6058 in report 7227149591 (4144 passed, 0 failed).

Owed before ACCEPT.

  • S1 (should-fix): a fourth case that is not lossless is converted silently. On main, record:quick_actions at record_header drew every action whose locations included record_header, whatever its component. At the head, the bar at record_page drops every component: 'action:menu' action. So locations: ['record_header'] with an authored component: 'action:menu' was a button in that bar and now is not, with no TODO. The census is zero in objectstack and HotCRM. Either fix closes it:

    • (a) the conversion reports a TODO for record_header plus an authored component: 'action:menu', with a pin; or
    • (b) the changeset and the semantic entry name the exception, and the seat takes it to the maintainer, because the card promises that every action shows exactly where it shows today.

    (a) moves code and needs a new green head. (b) is prose plus a ruling.

  • S2 (should-fix): the Clause-②: line under-declares. The diff also widens: four newly accepted values (list, record, record_page, record_row), the new @object-ui/types export actionFoldedIntoMenu, and eight new @object-ui/i18n keys. Main's precedent for a replacement with a registered conversion is Clause-②: yes (narrowing) (.changeset/pre/37086-…, .changeset/pre/37304-…), with no (narrowing) reserved for pure retirements. Write it as yes (narrowing) with the widened members named, in the changeset, the PR body and a corrected claim line. This is a prose-only change.

Nits worth taking in the same push (prose faces only, unless you choose otherwise):

  • N1: say that the two left-as-stored TODO shapes draw nothing on a 19 runtime until rewritten.
  • N4: the wording of the record_more block refusal, the record_section advice, and the two-vs-three count in the semantic entry.
  • N5: the changeset's "patch packages change comments only" is untrue for plugin-approvals, service-datasource and @object-ui/layout.
  • N8: the body's stale "two gates red" paragraph, the size line (420 files, +2322/−1631), and naming order_to_cash.json next to travel_expense.json.

Follow-ups for the seat (not this PR).

Each needs a card.

After the fix. If S1 goes by (a), I want a new green head, a same-reviewer delta on it, and the dogfood battery re-pinned to that head. If S1 goes by (b) and S2 is prose only, the head may still move for the changeset. Any new head owes the delta and a re-pinned dogfood reading. Tier H on landing (narrowing, class (c) size).

…thored fold

An action at `record_header` with `component: 'action:menu'` was folded into
the record page header's ⋯ menu and drawn as a button by a
`record:quick_actions` bar at `record_header`. At `record_page` the fold is one
state for the whole page, so the conversion now leaves it as stored with a
TODO, pinned with an ablation. A ⋯-only toolbar action that already carries
`action:menu` is rewritten losslessly instead of reported.

The changeset declares `Clause-②: yes (narrowing)` with the widened members,
and the semantic entry, the location refusal and the `record_section` advice
say what a site left as stored draws and how the fold is kept.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46088736643 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (4/10) — 失败步骤: Run this shard's tests

    @objectstack/service-knowledge:test:  FAIL  src/__tests__/knowledge-settings-contribution.test.ts > embedderSettings: false keeps the embedder section off the ai page > the knowledge page, its test bu
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 20 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

2026-11-28T01:04Z · @os-zhuang 本 PR 在合并队列 build 46088736643 掉出,原因是 Test Core 4/10 里 @objectstack/service-knowledge 的 src/__tests__/knowledge-settings-contribution.test.ts。与本 PR 无关:

head 没动,还是 a0d5b84,就是你 00:35Z 入队的那个。本 PR 超过 3000 行,入队要你亲手做,所以席位不替你重排。请把同一个 head 再入一次队。

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46090930212 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (4/10) — 失败步骤: Run this shard's tests

    @objectstack/service-knowledge:test:  FAIL  src/__tests__/knowledge-settings-contribution.test.ts > embedderSettings: false keeps the embedder section off the ai page > the knowledge page, its test bu
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 32 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 58b513a Nov 28, 2026
80 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-rswxk0 branch November 28, 2026 01:41
os-tesla pushed a commit that referenced this pull request Nov 28, 2026
Conflicts with #37929 (action locations say what an action acts on)
resolved toward this PR's retirement of `ask_ai`:
- conversions/registry.ts keeps both protocol-19 entries at order 3
  (action-locations-acted-on, then action-type-ask-ai-removed, by id);
- the pin test keeps both JOIN rows, one action.zod import;
- dashboard.zod.ts keeps the `ask_ai` header refusal removed;
- the showcase's AskAboutTaskAction, and the four ask_ai test files #37929
  re-spelled (action-ask-ai, dashboard-header-ask-ai-37142,
  ActionRunner.askAi-37142, RelatedList.toolbarAskAi-37142), stay deleted.

Claude-Session: https://claude.ai/code/session_01L9qibzCKZkVMWDVKhZVdRK
Co-authored-by: Claude <noreply@anthropic.com>
os-tesla pushed a commit that referenced this pull request Nov 28, 2026
… new location words

The merged tree's reference pages, regenerated. The conversion fixture and
the changeset's FROM row spell `locations` in #37929's words
(`record_page`, `record_row`), since the page-part words are refused now.

Claude-Session: https://claude.ai/code/session_01L9qibzCKZkVMWDVKhZVdRK
Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:data protocol:ui size/xl 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.

3 participants