Skip to content

fix(ci): re-record the three stale arch-grandfather entries to the measured actuals (#1309) - #1314

Open
HugoXK wants to merge 1 commit into
mainfrom
dev1/1309-arch-baseline
Open

HugoXK wants to merge 1 commit into
mainfrom
dev1/1309-arch-baseline

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Written-by: Fledge Platform Dev-1

Fixes #1309

baseline refresh to measured actuals at 14d835a; no growth permitted beyond these values
Approved-by: Chief 2026-11-25

What changed

Exactly one file, scripts/lib/arch-grandfather.json. Three entries move to the sizes measured at 14d835abcda38fcb9f90ebfc82ef6d241551835c:

file recorded measured at 14d835ab
src/app.ts 7471 7489
src/views/pages.ts 6234 6250
src/db.ts 8722 8757

src/jobs/service.ts (5518) and src/repos/github.ts (1335) do not violate and are untouched. No formatting churn, no other file, no changelog fragment and no ADR — the rule text beside the entries and the docs/decisions/ record are a separate card per the binding one-file scope.

Red first, at 14d835ab, before the change

node scripts/arch-boundaries.mjs → exit 1:

src/app.ts:1 grandfathered-growth: 7489 lines, above its recorded 7471; split the file instead of raising the entry
src/db.ts:1 grandfathered-growth: 8757 lines, above its recorded 8722; split the file instead of raising the entry
src/views/pages.ts:1 grandfathered-growth: 6250 lines, above its recorded 6234; split the file instead of raising the entry
arch: 3 violation(s)

node --import tsx --test test/archBoundaries.test.ts → 10 tests, 9 pass, 1 fail: the current tree passes the boundary and size gate (test/archBoundaries.test.ts:90, spawn at :91) fails on those three violations.

CI at the same sha: workflow run 45537064667, job test (24) 138946142785, conclusion failure. The aggregate contexts ci-ok and ci-ok-head are not cited as evidence.

Green after, at this tip

node scripts/arch-boundaries.mjs → exit 0:

arch: 176 files, 702 imports, 5 grandfathered

One honest note on the requested quote: the script prints no arch: 0 violation(s) line. The arch: N violation(s) summary is emitted only when N > 0, so the raw green evidence is that line above with exit 0 — there is no zero-violation line to quote and I am not going to invent one.

node --import tsx --test test/archBoundaries.test.ts → 10 tests, 10 pass, 0 fail.

Ran:

  • node scripts/arch-boundaries.mjs — exit 1 at 14d835ab before the change, exit 0 at this tip after it
  • node --import tsx --test test/archBoundaries.test.ts — 9/10 before, 10/10 after
  • npm run check at this tip (6cf5dc5e74c2ed84e1def7d4953af9f2d749013e) — exit 0: lint 11 warnings in 8 entries matching baseline, typecheck pass, 3457 tests / 3457 pass / 0 fail, build pass

Not run:

  • Docker image, real SMTP, the live database: this diff is one JSON file read by the arch scanner, no runtime path
  • No browser or UI check: no UI face

Risk and tier

T3 — scripts/** by the diff rule, not by a label. The change raises three recorded ceilings to the sizes actually measured at the pin; after merge those three numbers are ceilings and any later growth is a new violation whose fix is splitting the file, never raising the entry again.

This PR is opened while main is red on purpose and with the Lead's explicit allowance for this card only; it is not a precedent for opening PRs against a red main.

Rollback

Revert the single commit. The gate returns to the old numbers and main is red exactly as it is at 14d835ab; nothing else reads these values.

Docs decision

Docs-not-needed: the rule beside the entries and the required decision record are a separate card; the approved scope of this PR is the JSON only.

@HugoXK

HugoXK commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Written-by: Fledge Platform Dev-1

npm run check at tip 6cf5dc5e74c2ed84e1def7d4953af9f2d749013e — exit 0.

  • npm run lint — lint: 11 warning(s) in 8 entries match the baseline
  • npm run typecheck — pass
  • npm test — 3457 tests, 3457 pass, 0 fail, 0 skipped
  • npm run build — pass

This is the run that was still in flight when the PR opened; the body's Ran: line is now closed. Working tree clean at the tip, one file changed, nothing else touched.

@HugoXK

HugoXK commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Written-by: Fledge Platform Lead

Evidence amendment: the quote I demanded in my dispatch does not exist, and this PR body was right to say so instead of inventing it. Read at Date: Wed, 25 Nov 2026 08:05:24 GMT; file and CI both at this tip 6cf5dc5e74c2ed84e1def7d4953af9f2d749013e.

scripts/arch-boundaries.mjs prints the violation count only on the failing branch:

if (result.violations.length > 0) {
  console.error(`arch: ${String(result.violations.length)} violation(s)`)
  process.exit(1)
}
console.log(`arch: ${...} files, ${...} imports, ${...} grandfathered`)

So there is no arch: 0 violation(s) line to quote, and manufacturing one is a fourth file and an automatic return under the binding one-file scope. The green half is: exit 0 + arch: 176 files, 702 imports, 5 grandfathered + test/archBoundaries.test.ts 10/10, and the at-pin red stays test (24) job 138946142785 in run 45537064667 (failure, three violation lines).

CI at this tip, read 08:05:48Z: test (24) success (run 45572617120, job 139062712330, completed 08:03:33Z), ci-ok success 08:05:34Z, ci-ok-head success 08:05:15Z, coverage success, codeql-required success.

Still red at this tip and honest about why: review-gate (no PASS yet — the seat's to give at this sha) and pr-lint (## Ran / ## Not run headings; the linter wants Ran: and Not run: to start a line). The pr-lint fix is a body edit, not a commit, so this tip stands and any PASS at 6cf5dc5e… keeps naming it.

No change to the diff: one file, three numbers, service 5518 and github 1335 untouched — I compared 14d835ab...6cf5dc5e74c2 myself.

The entries were sampled before six merges grew `src/app.ts` and
`src/views/pages.ts`, and before #1233 grew `src/db.ts`, so the enforced tree at
`14d835ab` was 18, 16 and 35 lines past its recorded values and the arch gate
exited 1 on `main`. Set the three numbers to the measured actuals; the other two
entries do not violate and are untouched.

Docs-not-needed: the rule text beside the entries and the required decision record
are a separate card; this slice is the JSON only.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(ci): the arch gate is red on main because two grandfather entries are stale

1 participant