Skip to content

Commit dbd9e9f

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-otcr21
2 parents 69f08e7 + cdd4eea commit dbd9e9f

22 files changed

Lines changed: 1204 additions & 231 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
---
4+
5+
fix(plugin-audit): an activity entry for an update that moves no `trackHistory` field names the fields that changed
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The record Discussion feed wrote `Updated <object> "<label>"` for every update that fired no milestone and changed no `trackHistory` field, so a record a roll-up, flow or seed updates repeatedly showed a run of identical entries with nothing to tell them apart. That entry now names the changed fields by label, in declaration order: `Updated Campaign "CPG-0001": Number Sent, Responses, and Leads`. Values are still rendered only for `trackHistory` fields; an untracked field's value never reaches the text.
11+
12+
At most five fields are named and the rest counted (`…, and 3 more`), and fewer are named when the text would exceed the `maxLength` declared on `sys_activity.summary`. Each named or counted field is recorded as a source of the summary, so a reader not served one of those fields is served the entry without its summary, as for a tracked-change entry. Two message keys are added to the plugin's en, zh-CN, ja-JP and es-ES bundles, `messages.activityUpdatedFields` and `messages.activityMoreFields`. A locale bundle that defines `messages.activityUpdated` but not `messages.activityUpdatedFields` keeps its field-less sentence.

‎.github/workflows/ci.yml‎

Lines changed: 332 additions & 78 deletions
Large diffs are not rendered by default.

‎.github/workflows/codeql.yml‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: CodeQL Security Analysis
22

33
# Deliberately NOT on pull_request: the analysis took ~4½ runner-minutes per
4-
# PR sync, and everything a PR introduces is analyzed on main within minutes
5-
# of the merge anyway (multi-agent merge cadence). Alerts surface on main's
6-
# runs + the weekly deep pass instead of blocking/occupying PR runners.
7-
# If branch protection ever required the "Analyze (javascript)" check, that
8-
# requirement must be dropped along with this trigger.
4+
# PR sync. If branch protection ever required the "Analyze (javascript)" check,
5+
# that requirement must be dropped along with this trigger.
6+
#
7+
# DAILY, not on every push to main (#25771, maintainer ruling Q6 = C). The push
8+
# trigger ran 100 analyses in 25.9 h, 86 of them cancelled by the next merge,
9+
# and each one competed with PR and merge-queue runners. One daily run of
10+
# `main` analyzes everything that landed the day before; the Monday deep pass
11+
# it replaces ran the same query suite, so it folds into the daily one.
12+
# `workflow_dispatch` re-analyzes `main` on demand, e.g. after landing a fix.
913
on:
10-
push:
11-
branches:
12-
- main
1314
schedule:
14-
# Run at 02:00 UTC every Monday
15-
- cron: '0 2 * * 1'
15+
# 02:00 UTC every day
16+
- cron: '0 2 * * *'
17+
workflow_dispatch:
1618

17-
# A superseded analysis of an outdated commit has no value — cancel it. A newer
18-
# main push cancels only an in-flight main analysis (the newer commit still
19-
# gets analyzed).
19+
# A superseded analysis of an outdated commit has no value — cancel it. An
20+
# on-demand run cancels an in-flight analysis of the same ref (the newer
21+
# `main` head still gets analyzed).
2022
concurrency:
2123
group: codeql-${{ github.workflow }}-${{ github.ref }}
2224
cancel-in-progress: true

‎.github/workflows/docs-deploy.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ on:
5757
# snapshot owns :07 of 02, 08, 14 and 20. Of the six six-hour sets, only
5858
# 0/6/12/18 and 1/7/13/19 have hours with nothing scheduled after :00; the
5959
# first is taken because its :00 neighbours are short (release.yml's
60-
# version-pr refresh, the hourly ci/lint runs), while 07:00 starts the
61-
# showcase smoke. The MINUTE is off the top of the hour for the reason every
60+
# version-pr refresh, the ci/lint full runs), while 07:00 starts the
61+
# showcase smoke. Since #25771 those ci/lint runs are 4-hourly
62+
# (00/04/08/12/16/20 :00), so they now meet this set only at 00 and 12 and
63+
# 06/18 lose that neighbour; the choice still holds and nothing moved. The MINUTE is off the top of the hour for the reason every
6264
# patrol here gives: scheduled runs queue behind everyone else's :00 cron.
6365
#
6466
# This job spends almost nothing of the per-repository GITHUB_TOKEN budget

‎.github/workflows/lint.yml‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ on:
2525
# queue builds or the queue stalls. This workflow has no PR-only steps, so
2626
# the trigger alone is enough.
2727
merge_group:
28-
# ── THE HOURLY FULL RUN (#16467), the half this file owns ────────────────
29-
# The card's ruling is that the hourly run covers BOTH required-context
28+
# ── THE SCHEDULED FULL RUN (#16467), the half this file owns ─────────────
29+
# Every 4 hours since #25771 (maintainer ruling Q6 = C), the same cadence as
30+
# ci.yml's half and for the reason stated there; no step changed.
31+
# The card's ruling is that the scheduled run covers BOTH required-context
3032
# files, not just ci.yml, and the reason is measured rather than symmetric:
3133
# the push-on-`main` run of THIS workflow is the only post-merge full-battery
3234
# run of the families `scripts/ci/select-gate-families.sh` scopes away on
@@ -44,7 +46,7 @@ on:
4446
#
4547
# ⛔ A NEW TRIGGER KEY, not a widening of `push:`; see ci.yml's `on:` block.
4648
schedule:
47-
- cron: '0 * * * *'
49+
- cron: '0 */4 * * *'
4850
workflow_dispatch:
4951

5052
# ── MEASURED 2026-08-25 (#12211) — a NEGATIVE result, recorded so it is not
@@ -95,7 +97,7 @@ on:
9597
#
9698
# ⭐ `github.event_name` is in the key for the reason ci.yml's concurrency block
9799
# states in full (#16467): `schedule` and `workflow_dispatch` both fall through
98-
# to `refs/heads/main`, so without it an on-demand run cancels the hourly one.
100+
# to `refs/heads/main`, so without it an on-demand run cancels the scheduled one.
99101
# `scripts/ci/scheduled-full-run.mjs --check-concurrency` evaluates THIS
100102
# expression too and reds if two pushes, or a push and a schedule run, share a
101103
# group, or if two schedule, dispatch or same-PR runs stop sharing one.
@@ -3514,8 +3516,8 @@ jobs:
35143516
run: pnpm check:select-shard-packages
35153517

35163518
# Rationale: `scripts/ci/scheduled-full-run.mjs` header (#16467).
3517-
- name: Hourly full run self-test and concurrency gate
3518-
id: hourly-full-run-self-test-and-concurrency
3519+
- name: Scheduled full run self-test and concurrency gate
3520+
id: scheduled-full-run-self-test-and-concurrency
35193521
continue-on-error: true
35203522
run: |
35213523
node scripts/ci/scheduled-full-run.mjs --self-test
@@ -4426,7 +4428,7 @@ jobs:
44264428
# only a name that DISAPPEARS can turn a live declaration dead, which is
44274429
# a structural change the selector already runs everything for. A group
44284430
# confined to product source, tests, docs or changesets skips it here and
4429-
# pays for it on `push` to main and on the hourly run.
4431+
# pays for it on `push` to main and on the 4-hourly run.
44304432
- name: A declared gate population reaches the tree
44314433
id: a-declared-gate-population-reaches-the-tree
44324434
continue-on-error: true
@@ -4542,7 +4544,7 @@ jobs:
45424544
# ROOT_DIR_WATCH_HINTS declaration, held against the root it really walks
45434545
# by its own self-test — so a group that changes no file under scripts/
45444546
# (and no root configuration) skips it. The selection step at the top of
4545-
# this job decides that, `push` on main and the hourly run keep it
4547+
# this job decides that, `push` on main and the 4-hourly run keep it
45464548
# unconditional, and the ruling that authorizes moving a tooling
45474549
# self-test off the PR path is quoted in the selector's header.
45484550
- name: scripts/ entry guards go through one predicate
@@ -4693,7 +4695,7 @@ jobs:
46934695
# anyway, and the trade is explicit rather than reasoned away: it imports
46944696
# the same derivation as the dispatch-gates and watch-hint literal steps, so its inputs are the
46954697
# workflow tree and the gate sources, and on a group touching neither the
4696-
# gap does move — to `push` on main and the hourly full run, which keep
4698+
# gap does move — to `push` on main and the 4-hourly full run, which keep
46974699
# the whole battery. Gate weakening is a maintainer floor; the sentence
46984700
# that authorizes this one is quoted in the selector's header.
46994701
- name: PM bare-root worklist self-test
@@ -4747,7 +4749,7 @@ jobs:
47474749
# `scripts/**/*.mjs`, `scripts/**/*.mts` and `scripts/**/*.sh`, and the
47484750
# rest of its read-set is the workflow tree and `.github/actions` it
47494751
# discovers the runnable self-tests from — so a group touching none of
4750-
# those skips it here and runs it on `push` to main and on the hourly
4752+
# those skips it here and runs it on `push` to main and on the 4-hourly
47514753
# full run.
47524754
- name: Self-test workflow-command gate
47534755
id: self-test-workflow-command-gate
@@ -4913,13 +4915,13 @@ jobs:
49134915
# three-file `packages/spec` diff, and ruling #208 on #19491 (R4) took
49144916
# those whole-tree reads off the PR path on the maintainer's sentence,
49154917
# quoted in the selector's header. ⛔ A defect in that wider set can now
4916-
# first appear on `main`; the push-on-main and hourly full runs are what
4918+
# first appear on `main`; the push-on-main and 4-hourly full runs are what
49174919
# bound it, and widening the skip further is again a maintainer call.
49184920
#
49194921
# ⚠️ Since #22991 the battery is TIERED by event, inside the gate rather
49204922
# than here: on `pull_request` and `merge_group` `pnpm check:pm-dispatch-gates`
49214923
# runs the fast tier; on `schedule`, `push` and any other event it runs
4922-
# both. Every case still runs at least hourly on the full run, and a
4924+
# both. Every case still runs at least every 4 hours on the full run, and a
49234925
# slow-tier red is a red on `main`. The step below is unchanged; the
49244926
# decision and its argument live in `scripts/pm/check-dispatch-gates.mjs`.
49254927
#

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ jobs:
15071507
full-battery:
15081508
name: Full battery green at the version commit
15091509
# A PR or queue build carries ci.yml's FAST SET since #22998; the dogfood
1510-
# and temporal legs run only on main's push, hourly and
1510+
# and temporal legs run only on main's push, 4-hourly schedule and
15111511
# dispatch runs. So "tested before a release" is read HERE, as a gate: the
15121512
# newest completed `schedule` or `push` runs of `CI` and `Lint & Type
15131513
# Check` whose head is the version commit or a first-parent ancestor of it

‎.github/workflows/scheduled-full-run-card.yml‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Scheduled Full Run Card
22

3-
# The reader for the hourly full run (#16467).
3+
# The reader for the scheduled full run (#16467; every 4 hours since #25771).
44
#
55
# ══════════════════════════════════════════════════════════════════════════════
66
# WHY THIS EXISTS: A RED SCHEDULED RUN HAD NOBODY LOOKING AT IT.
77
# ══════════════════════════════════════════════════════════════════════════════
88
#
99
# Since #16467 a `push` to `main` computes the Test Core package set with
1010
# `--affected`, and `scripts/ci/select-gate-families.sh` already scopes several
11-
# `Lint & Repo Gates` families away on merge groups. The hourly `schedule` run
11+
# `Lint & Repo Gates` families away on merge groups. The scheduled `schedule` run
1212
# of `CI` and `Lint & Type Check` is therefore the ONLY run that exercises the
1313
# whole battery on `main`.
1414
#
@@ -30,11 +30,13 @@ name: Scheduled Full Run Card
3030
# `scripts/ci/scheduled-full-run.mjs`, driven offline by its `--self-test`. That
3131
# is deliberate: a de-dup rule exercised only by the live workflow gets its
3232
# first real test on the night it files its second duplicate, and this one fires
33-
# hourly.
33+
# six times a day.
3434
#
3535
# IDENTITY a fixed title prefix per workflow —
36-
# `hourly full run: red on main (CI)` — plus a PLAIN-TEXT body
37-
# marker. ⛔ Never an HTML comment: this platform's body sanitizer
36+
# `4-hourly full run: red on main (CI)` — plus a PLAIN-TEXT body
37+
# marker. The hourly spellings an older card carries
38+
# (`hourly full run: red on main (CI)`, #25438) are still matched
39+
# (`CADENCE_PREDECESSORS`), so a cadence change never orphans it. ⛔ Never an HTML comment: this platform's body sanitizer
3840
# is measured to eat short angle-bracket fragments, and a de-dup
3941
# key that can be swallowed files a duplicate an hour.
4042
# DE-DUP scan OPEN issues for that prefix or that marker, bounded pages;
@@ -101,14 +103,14 @@ concurrency:
101103

102104
jobs:
103105
file:
104-
name: File or refresh the hourly full run card
106+
name: File or refresh the scheduled full run card
105107
# ⭐ THREE guards, and each one is load-bearing.
106108
#
107109
# event == 'schedule' — a push, PR or merge_group run of these workflows
108110
# is read by branch protection and by merge-queue-triage.yml. Filing on
109111
# those would mint a card for every red PR in the repo.
110112
# conclusion in (failure, timed_out) — NOT `!= 'success'`. `cancelled`
111-
# and `skipped` are not reds: a cancelled hourly run measured nothing,
113+
# and `skipped` are not reds: a cancelled scheduled run measured nothing,
112114
# and a card saying "main is red" on the strength of a run that did not
113115
# finish is a false statement that costs somebody an investigation.
114116
# head_branch == 'main' — belt and braces. A scheduled run can only be on
@@ -181,7 +183,7 @@ jobs:
181183
});
182184
const hit = previous.data.workflow_runs?.[0];
183185
if (hit) previousGreen = { run_id: hit.id, head_sha: hit.head_sha };
184-
else rangeNote = 'No previous GREEN `schedule` run of this workflow is in the API window — either this is the first one, or every hourly run in the window was red.';
186+
else rangeNote = 'No previous GREEN `schedule` run of this workflow is in the API window — either this is the first one, or every scheduled run in the window was red.';
185187
} catch (error) {
186188
rangeNote = `The previous-green lookup failed (${error.message}).`;
187189
}
@@ -272,13 +274,13 @@ jobs:
272274
core.info(`${outcome.action} ${identity.marker} card #${outcome.number} (${body.length} chars)`);
273275
if (outcome.block) core.info(`block: ${outcome.blockSummary}`);
274276
const moved = outcome.block === 'expired' ? ' (every blocker closed: pm:blocked moved to pm:queue)' : '';
275-
core.notice(`${run.name} is red on the hourly full run — card #${outcome.number} ${outcome.action}${moved}.`);
277+
core.notice(`${run.name} is red on the scheduled full run — card #${outcome.number} ${outcome.action}${moved}.`);
276278
core.setOutput('action', outcome.action);
277279
core.setOutput('number', String(outcome.number));
278280
279281
- name: Publish the verdict to the run summary
280282
# always(): when the step above threw — a refused scan, a rate limit —
281-
# the run must still say what it was reacting to, or the red hourly run
283+
# the run must still say what it was reacting to, or the red scheduled run
282284
# is invisible in both places at once.
283285
if: always()
284286
env:
@@ -289,7 +291,7 @@ jobs:
289291
WATCHED_CONCLUSION: ${{ github.event.workflow_run.conclusion }}
290292
run: |
291293
{
292-
echo "### Hourly full run: \`$WATCHED\` concluded \`$WATCHED_CONCLUSION\` on \`main\`"
294+
echo "### Scheduled full run: \`$WATCHED\` concluded \`$WATCHED_CONCLUSION\` on \`main\`"
293295
echo
294296
echo "- Run: $WATCHED_URL"
295297
if [ -n "${CARD_ACTION:-}" ]; then

0 commit comments

Comments
 (0)