Skip to content

Commit 2f3f538

Browse files
committed
Merge branch 'main' into claude/project-thread-flw1js
The merge queue ejected the PR again on the sdui-manifest.sources digest record for types; main's side is taken and the record is re-recorded on the merged tree in the next commit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E5XcbmSeZTDGm5zCYkC9XV
2 parents 195b303 + 222755e commit 2f3f538

70 files changed

Lines changed: 2290 additions & 1105 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/25959-activity-fold.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/types': patch
3+
'@object-ui/plugin-detail': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(plugin-detail): the record activity timeline folds consecutive updates by one actor into one row with a count
8+
9+
Clause-②: yes
10+
Metadata-protocol: none
11+
12+
- **Before.** Every `sys_activity` update was its own feed row. When a flow, a rollup or a seed updated a record repeatedly, the system's rows buried the people's comments: a demo campaign showed thirteen consecutive "System · Updated Campaign …" rows in its discussion feed.
13+
- **Now.** `RecordActivityTimeline` folds a run of adjacent `updated` entries by the same actor (`actor_id`, `null` for the system, and the same display name), each no more than 10 minutes after the one before it, into one row. The row shows the actor, the time of the latest entry, the entry count and the union of the changed fields, by their field labels where the page has the object schema and by machine name otherwise (`Updated Number Sent, Leads, Responses · 13 updates`). A toggle (`aria-expanded`) expands it to every entry.
14+
- **Rendering only.** No entry is dropped or merged in the data, and the panel heading still counts every entry. Create, delete, assign, share, comment, completed and milestone rows never fold, and any of them between two updates ends the run. An entry without a summary still folds and still counts. Field names come from `sys_activity.changed_fields`, never from the recorded values.
15+
- **`FeedItem` (`@object-ui/types`).** Four new optional members, set by `activityRowToFeedItem`: `activityType` (the row's own `sys_activity.type`), `activityKind` (`metadata.kind`, e.g. `'milestone'`), `actorId` and `changedFields`. A host item without them renders as before and never folds.
16+
- **Strings.** `detail.foldedUpdates`, `detail.foldedUpdateCount`, `detail.foldedMoreFields`, `detail.expandFolded` and `detail.collapseFolded`, in all ten packs.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
refactor(plugin-grid): `ObjectGrid`'s host-facing props types and its footer-summary reporter move into sibling modules
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`ObjectGridColumnState`, `ObjectGridFooterSummary` and `ObjectGridExternalPaginationProps` move verbatim out of `ObjectGrid.tsx` into `objectGridProps.ts`, and the renderless `FooterSummaryReport` moves into `objectGridFooterSummaryReport.tsx`. No logic, name or rendered output changes. `ObjectGrid.tsx` re-exports the three types, so every name it exported before is still importable from the same path, and the package entry is unchanged.
11+
12+
Correction to the slice 1 note: the record-source ladder (`getDataConfig`) stayed in `ObjectGrid.tsx`; it moved in neither slice.
13+
14+
What to do: nothing.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
docs(cli): the README says the three code subpaths are ESM
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`@objectstack/cli`'s README now states that `.`, `./console` and `./hook-body` are ES modules: load them with `import`, and from CommonJS with `import()`, or with `require()` only on a Node that loads ES modules synchronously (22.12 and later). No export map or code changes.

‎.github/workflows/check-links.yml‎

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,39 @@ jobs:
6262
# green at all: 1286 root-relative links fail as "Cannot resolve
6363
# root-relative link ... provide a root dir".
6464
#
65-
# ⛔ Do NOT add `docs/adr/**/*.md` here. It looks like the one-line fix
66-
# for #6592 and it is not: measured on the pinned lychee 0.24.2, that
67-
# glob reports 8 broken links today, every one a pre-existing ADR →
68-
# source-tree link whose target moved out of this repo. This job would
69-
# be red on every PR from the moment it merged, which is how an
70-
# advisory lane becomes a lane nobody reads (#6028 landed it
71-
# advisory-first specifically to earn a green streak). `docs/adr/` is
72-
# checked by the `Check ADR cross-links` step below instead, which can
73-
# freeze those 8 on a shrink-only baseline and fail on a NEW one --
74-
# something neither `exclude` nor `.lycheeignore` can express, because
75-
# neither ever tells you an entry stopped being needed.
76-
# `ARCHITECTURE.md` joined this glob in #6867: unlike `docs/adr/**`, it
77-
# carried no pre-existing rot once its 10 dead links + 2 stale path
78-
# references were fixed in the same PR, so -- unlike the ADR directory
79-
# above -- it needs no KNOWN_DEAD_TARGETS-style baseline to land clean.
65+
# ⛔ `docs/adr/` stays OUT of lychee's reach: `'docs/**/*.md'` below
66+
# would sweep it in, so `--exclude-path '^docs/adr/'` takes it back out
67+
# (a regex over the input path as globbed, measured to drop exactly that
68+
# directory on the pinned 0.24.2 while `lychee.toml`'s own `exclude_path`
69+
# entries keep applying -- the CLI flag adds to them, it does not replace
70+
# them). The decision registry has ONE link owner, the `Check ADR
71+
# cross-links` step below, which can freeze a pre-existing break on a
72+
# shrink-only baseline and fail on a NEW one -- something neither
73+
# `exclude` nor `.lycheeignore` can express, because neither ever tells
74+
# you an entry stopped being needed. Checking the same files twice, under
75+
# two rule sets, would put two verdicts on one link.
76+
# `ARCHITECTURE.md` joined this glob in #6867; `docs/**` and the root
77+
# history/governance pages (CHANGELOG, RELEASE_NOTES, CONTRIBUTING,
78+
# ROADMAP, LICENSING, CODE_OF_CONDUCT) joined in #26087, each landing
79+
# clean once its dead links were fixed in the same PR, so none needs a
80+
# KNOWN_DEAD_TARGETS-style baseline.
8081
LYCHEE_ARGS: >-
8182
--offline
8283
--root-dir ${{ github.workspace }}/content
8384
--fallback-extensions mdx,md
8485
--config lychee.toml
86+
--exclude-path '^docs/adr/'
8587
'content/**/*.md'
8688
'content/**/*.mdx'
8789
'README.md'
8890
'ARCHITECTURE.md'
91+
'docs/**/*.md'
92+
'CHANGELOG.md'
93+
'RELEASE_NOTES.md'
94+
'CONTRIBUTING.md'
95+
'ROADMAP.md'
96+
'LICENSING.md'
97+
'CODE_OF_CONDUCT.md'
8998
9099
# ⛔ Pin the lychee binary explicitly rather than inheriting the action's
91100
# default (#8238). Three comments in this file already reason about "the

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ jobs:
281281
- 'tsconfig.json'
282282
- 'tsconfig.base.json'
283283
- 'tsconfig.test.base.json'
284+
- 'vitest.preset.mts'
284285
- '.github/workflows/ci.yml'
285286
# BUILD INPUTS outside every package (#21202): turbo.json itself,
286287
# its `globalDependencies`, and each `$TURBO_ROOT$/…` input of a

‎.github/workflows/governed-surface-guard.yml‎

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ on:
3535
# the addition and it is the point: flipping a governed draft to ready is
3636
# the first move of the exact sequence this guard exists to interrupt, and
3737
# it is not in the default set — without it the warning would not re-fire
38-
# at the one moment a seat most needs to read it.
38+
# at the one moment a seat most needs to read it. That same flip is the
39+
# moment an approver taps merge, and the re-fired run holds this REQUIRED
40+
# context `in_progress` for its whole wall (a direct merge is refused
41+
# meanwhile) — which is why this leg is kept cheap rather than dropped: it
42+
# checks out commits and trees only and installs nothing unless the diff
43+
# needs the generator toolchain (the two checkout steps below).
3944
types: [opened, synchronize, reopened, ready_for_review]
4045
merge_group:
4146

@@ -87,7 +92,10 @@ jobs:
8792
# (n = 288): max 1.1 minutes; 2× is 2.2, and never below 10. 20 + 10 = 30.
8893
timeout-minutes: 30
8994
steps:
95+
# The QUEUE leg's checkout, unchanged: the refusing leg reads the queue
96+
# head with the whole tree on disk.
9097
- name: Checkout repository
98+
if: github.event_name != 'pull_request'
9199
uses: actions/checkout@v7
92100
# CHECKOUT BUDGET: lint.yml's `typecheck-source-gates` sizes it.
93101
timeout-minutes: 20
@@ -100,6 +108,27 @@ jobs:
100108
# than diffing what it happens to have.
101109
fetch-depth: 0
102110

111+
# The EARLY-WARNING leg's checkout: the same full history, without file
112+
# contents. The judgment reads commits and trees only (`merge-base`,
113+
# `log`, `diff-tree --name-only`), and the only files it and the
114+
# self-test open live under `scripts/` and `.github/` — so a blobless
115+
# fetch plus a sparse tree of those two answers byte-identically.
116+
# Measured 2026-10-26 on this repository: a blobless full-history clone
117+
# took 7 s for 105 MiB against 58 s for 956 MiB with contents, and the
118+
# judgment on PR #25965 printed the same bytes on both checkouts. ⛔ Still
119+
# `fetch-depth: 0` — the #9902 reason above holds on this leg too. A diff
120+
# that needs the generator toolchain gets the full tree back below.
121+
- name: Checkout repository (commits and trees only)
122+
if: github.event_name == 'pull_request'
123+
uses: actions/checkout@v7
124+
timeout-minutes: 20
125+
with:
126+
fetch-depth: 0
127+
filter: blob:none
128+
sparse-checkout: |
129+
scripts
130+
.github
131+
103132
# Pinned to the same major and spelling as every other setup-node in this
104133
# repo, and it keeps its literal `node-version` (rather than
105134
# `node-version-file`) for the measured reason the Part-of Closing-Keyword
@@ -167,16 +196,37 @@ jobs:
167196
# verdict stays inside the script — where the exit contract lives — instead
168197
# of becoming an opaque red step nobody can read a governance answer out of.
169198
#
170-
# Both legs install. The `pull_request` leg is a FORECAST of the queue
171-
# verdict ("the merge-queue run of this same check will REFUSE it"), so a
172-
# leg that cannot recompute forecasts a refusal that will not happen — the
173-
# false-alarm direction, which trains seats to hold PRs that need no
174-
# holding. Same diff, same answer, on both legs and at the seat.
199+
# Both legs install WHEREVER THE RECOMPUTE CAN CHANGE THE ANSWER. The
200+
# `pull_request` leg is a FORECAST of the queue verdict ("the merge-queue
201+
# run of this same check will REFUSE it"), so a leg that cannot recompute
202+
# forecasts a refusal that will not happen — the false-alarm direction,
203+
# which trains seats to hold PRs that need no holding. Same diff, same
204+
# answer, on both legs and at the seat. But a diff that touches no
205+
# register path never runs a generator at all, so on that leg the script
206+
# is asked first (`--toolchain-needed`, the same predicate the lift
207+
# consults) and the toolchain is acquired only on `true`. The queue leg
208+
# never asks, so its output stays empty and it always installs; a
209+
# question that fails leaves it empty too, which also installs.
210+
- name: Does this diff need the generator toolchain?
211+
id: toolchain
212+
if: github.event_name == 'pull_request'
213+
continue-on-error: true
214+
run: node scripts/pm/check-governed-queue-guard.mjs --toolchain-needed >> "$GITHUB_OUTPUT"
215+
216+
# The generators read the whole tree, which the sparse checkout above
217+
# left out; the blobs arrive on demand from the partial clone's remote.
218+
- name: Restore the full tree for the generator recompute
219+
if: github.event_name == 'pull_request' && steps.toolchain.outputs.needed != 'false'
220+
continue-on-error: true
221+
run: git sparse-checkout disable
222+
175223
- name: Setup pnpm
224+
if: steps.toolchain.outputs.needed != 'false'
176225
uses: ./.github/actions/setup-pnpm
177226
continue-on-error: true
178227

179228
- name: Get pnpm store directory
229+
if: steps.toolchain.outputs.needed != 'false'
180230
shell: bash
181231
continue-on-error: true
182232
run: |
@@ -185,6 +235,7 @@ jobs:
185235
# Deliberately the same key as lint.yml's: one store, one entry, and this
186236
# job is a cache READER in the steady state rather than a second writer.
187237
- name: Setup pnpm cache
238+
if: steps.toolchain.outputs.needed != 'false'
188239
uses: actions/cache@v6
189240
continue-on-error: true
190241
with:
@@ -194,6 +245,7 @@ jobs:
194245
${{ runner.os }}-pnpm-store-v3-
195246
196247
- name: Install dependencies
248+
if: steps.toolchain.outputs.needed != 'false'
197249
continue-on-error: true
198250
run: pnpm install --frozen-lockfile
199251

‎.github/workflows/lint.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5106,6 +5106,16 @@ jobs:
51065106
continue-on-error: true
51075107
run: pnpm check:type-check-coverage
51085108

5109+
# The workspace ROOT's own program (`tsconfig.json`: `scripts/` and the
5110+
# top-level configs) is outside every package's `typecheck`, so the turbo
5111+
# typecheck never reads it. This step does (#26236), and the coverage gate
5112+
# above requires it once `typecheck:root` exists. The program imports no
5113+
# built `dist/`, so it needs no build. Sub-second to a few seconds.
5114+
- name: Type-check the workspace root program
5115+
id: type-check-the-workspace-root-program
5116+
continue-on-error: true
5117+
run: pnpm typecheck:root
5118+
51095119
# Conformance meta-gate (#4363): `spec/src/data/*-conformance.ts` holds the
51105120
# shared case-sets that exist so the independent drivers answer ONE
51115121
# standard, and three separate changesets claimed a future driver "is held

‎.github/workflows/merge-queue-triage.yml‎

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,19 @@ jobs:
554554
* construction. One deterministic break therefore ejects everyone
555555
* behind it, and the raw victim count measures QUEUE DEPTH.
556556
*
557-
* ⚠️ The test is full-sha equality in the strict direction: one
558-
* victim's base == another victim's head. ⛔ Never a base PREFIX and
559-
* ⛔ never time ordering — both would fuse genuinely independent hits
560-
* into one stack, trading this limb's false positive for a false
561-
* negative, which is strictly worse. The count exists to be true.
557+
* ⚠️ The test is full-sha equality in the strict direction, walked
558+
* base to head: from a victim's base, through every merge_group run
559+
* in `stackEdges` whose head is that sha (green, non-victim groups
560+
* included), until the chain reaches another victim's head. A green
561+
* group between two victims is NOT a break in the stack: its
562+
* affected-only selection may simply never have run the failing
563+
* package, so it carries the broken tree without failing on it.
564+
* Walking only victim-to-victim read one deterministic break as two
565+
* independent hits (#26265). ⛔ Never a base PREFIX and ⛔ never time
566+
* ordering — both would fuse genuinely independent hits into one
567+
* stack, trading this limb's false positive for a false negative,
568+
* which is strictly worse. The count exists to be true. The index is
569+
* data, not git, so the walk keeps a visited set and ends on a loop.
562570
*
563571
* A victim whose runs are not in the index (a run older than the
564572
* window, or a ref that is not a queue ref) is left as its own group:
@@ -582,6 +590,14 @@ jobs:
582590
}
583591
}
584592
593+
// head sha -> the bases of EVERY indexed run that produced it,
594+
// victim or not: the edges the walk below steps back along.
595+
const basesOf = new Map();
596+
for (const e of stackEdges.values()) {
597+
if (!basesOf.has(e.head)) basesOf.set(e.head, new Set());
598+
basesOf.get(e.head).add(e.base);
599+
}
600+
585601
const inherited = new Set();
586602
let unresolved = 0;
587603
for (const [pr, runs] of byPr) {
@@ -590,10 +606,18 @@ jobs:
590606
const e = stackEdges.get(String(id));
591607
if (!e) continue;
592608
resolved = true;
593-
for (const upstream of producers.get(e.base) ?? []) {
594-
if (upstream === pr) continue;
595-
inherited.add(pr);
596-
union(pr, upstream);
609+
const visited = new Set();
610+
const frontier = [e.base];
611+
while (frontier.length > 0) {
612+
const sha = frontier.pop();
613+
if (visited.has(sha)) continue;
614+
visited.add(sha);
615+
for (const upstream of producers.get(sha) ?? []) {
616+
if (upstream === pr) continue;
617+
inherited.add(pr);
618+
union(pr, upstream);
619+
}
620+
for (const b of basesOf.get(sha) ?? []) frontier.push(b);
597621
}
598622
}
599623
if (!resolved) unresolved++;
@@ -839,8 +863,9 @@ jobs:
839863
? [
840864
"⚠️ **Queue depth is not evidence.** The `stack` column is read out of the queue",
841865
'branch names: GitHub builds each queued PR on top of the previous entry, so a',
842-
"build whose BASE commit IS another victim's queue HEAD contains that victim's",
843-
'tree by construction. A single deterministic break therefore ejects every PR',
866+
"build whose BASE chain reaches another victim's queue HEAD (directly, or through",
867+
"green groups queued between them) contains that victim's tree by construction.",
868+
'A single deterministic break therefore ejects every PR',
844869
'behind it, and the raw victim count climbs with QUEUE DEPTH until the owner',
845870
`lands a fix. Start with the ${independent === 1 ? 'root' : 'roots'} above; an `
846871
+ '`inherited` row is a bystander until shown otherwise.',
@@ -867,6 +892,10 @@ jobs:
867892
'opposite diagnoses), decide the cause, and close this issue with the fix or with',
868893
'the reason it is not one.',
869894
'',
895+
'A later queue build that went green on the same `main` is a control only if its',
896+
'affected-only selection ran the failing package; a green group that never selected',
897+
'it carried the same tree without testing it.',
898+
'',
870899
`Last refreshed by queue build [${run.id}](${run.html_url}) (PR #${prNumber}).`,
871900
'',
872901
'---',

‎.github/workflows/scaffold-e2e.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,23 @@ jobs:
248248
# 2. Interactive `skills add …/framework` (no --all) relies on
249249
# metadata.internal hiding — assert repo-root discovery surfaces
250250
# exactly the curated set and nothing internal.
251+
# The curated catalog is every skills/<dir>/ holding a SKILL.md — the
252+
# same tree @objectstack/skills ships whole (packages/skills/scripts/
253+
# sync-catalog.mjs), read the same way as the package-catalog step
254+
# below. ⛔ Never a name glob or an allow-list here: a skill added to
255+
# skills/ would red this step until a governed edit of this file.
256+
# An internal skill placed in skills/ still fails: the CLI hides
257+
# metadata.internal skills, so the installed set (assertion 1) or the
258+
# listed count (assertion 2) falls short of the directory set.
251259
run: |
252260
cd "$RUNNER_TEMP"
253261
node "$GITHUB_WORKSPACE/packages/create-objectstack/bin/create-objectstack.js" skills-probe --skip-install --skip-skills
254262
cd skills-probe
255-
expected=$(cd "$GITHUB_WORKSPACE/skills" && ls -d objectstack-*/ | tr -d '/' | sort)
263+
expected=$(for d in "$GITHUB_WORKSPACE"/skills/*/; do if [ -f "${d}SKILL.md" ]; then basename "$d"; fi; done | sort)
264+
if [ -z "$expected" ]; then
265+
echo "::error::skills/ holds no <skill>/SKILL.md — the curated catalog this step compares against is empty"
266+
exit 1
267+
fi
256268
expected_count=$(echo "$expected" | wc -l | tr -d ' ')
257269
258270
npx -y skills add "$GITHUB_WORKSPACE/skills" --all --copy

0 commit comments

Comments
 (0)