Skip to content

ci: adopt the shared agent contract and standard workflow set - #3039

Merged
yannickmonney merged 7 commits into
mainfrom
chore/template-alignment-contract
Aug 22, 2026
Merged

yannickmonney merged 7 commits into
mainfrom
chore/template-alignment-contract

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

Part 2 of the template alignment (stacked on #3038 — retarget to main after it merges).

  • Agent contract: AGENTS.md + .claude/CLAUDE.md become byte-identical copies of the tale-project/example-project standard. All tale-specific content moves to the new .agents/repo.md (workspace map, setup:clean warning, org-config/tenant-isolation/migration/locale doctrines, skills index, Pencil rule, and the lint debt ledger carried by the nested oxlint configs).
  • Unified CI: lint.yml + test.yml fold into checks.yml with the standard six jobs (format, lint, typecheck, build, test, test-ui) plus tale's extras (knip, migrations, test-browser) below a marked banner. commitlint.yml gains push-range mode; sast.yml drops path filters and gains the no-port self-skip; README badges and every doc naming test.yml now point at checks.yml.
  • Branch protection has no named required checks, so the job renames break nothing (verified via API).

Verification

bunx turbo run build green locally (the new Build lane), YAML parse-checked, full reference sweep for the removed workflow files (badges, docs, code comments, regenerated CLI embeds). The restructured workflows self-test on this PR.

oxfmt 0.44.0 -> 0.64.0, oxlint 1.59.0 -> 1.79.0 (with its required
oxlint-tsgolint 7.0.2001 type-aware engine), turbo 2.9.14 -> 2.10.11 and
commitlint 20.5.0 -> 21.2.2, aligning every tale-project repository on one
toolchain so the shared lint and format configs can be byte-identical.
The root .oxlintrc.json and .oxfmtrc.json are now byte-identical copies of
the tale-project example-project standard: oxfmt's renamed sortImports /
sortTailwindcss keys with a generic ignore list (markdown and YAML leave
formatter scope), and a merged rule set that adds the oxc and promise
plugins plus import/no-cycle while keeping the jsx-a11y wall.

Rules the new engine enforces but the codebase cannot pay down in one
change land as explicit per-workspace relaxations in the nested configs
(React Compiler family, promise/always-return, the platform a11y trio and
its 21 import cycles) — the debt ledger lives in .agents/repo.md.
oxlint 1.79 discovers nested configs everywhere, so the .oxlintrc.json
files inside tools/plop/templates started hard-failing the whole run:
their extends target only exists after generation. They ship as .hbs now
(the add action already strips the suffix on scaffold), which keeps them
out of nested-config discovery without changing what generators emit.
The sites the new rules flag for real: merged template-literal concats,
then() callbacks that now return explicitly, single-use type parameters
inlined in the i18n useT wrappers and useResizeObserver, assertions the
sharper engine proves redundant in sandbox and the ui markdown layer, and
a comment-only convex module deleted outright. The two SSO/dashboard
iframes and the connect-middleware next() call keep their behaviour and
document why with inline disables; data-table's six ColumnMeta assertions
stay because the unaugmented TanStack generic misleads the engine there.
…xfmt 0.64

Mechanical output of the bumped toolchain, two tools in one sweep:
oxlint --type-aware --fix removes the type assertions the tsgolint 7
engine proves unnecessary across the platform workspace, and bun run
format applies oxfmt 0.64 (tailwind class sorting inside cn/cva, import
sorting, package.json key sorting). No hand-written changes ride along.
…o.md

AGENTS.md and .claude/CLAUDE.md become byte-identical copies of the
tale-project example-project standard. Everything tale-specific moves to
the new .agents/repo.md the shared contract points at: the workspace map,
the setup:clean warning, org-config-is-files, tenant isolation, the
migration and locale doctrines, the skills index, the Pencil rule, and
the lint debt ledger the nested oxlint configs carry. The gitignore
re-includes the new file; the Copilot pointer follows.
lint.yml and test.yml fold into one checks.yml with the tale-project
standard six jobs — format, lint, typecheck, build (new to PR CI), test,
test-ui — plus tale's own knip, migrations and browser lanes below the
repo-specific banner. Path filters go away: the standard file is
byte-comparable across repositories and the turbo cache absorbs
unchanged-area runs. commitlint gains the push-range mode, the SAST gate
gains the no-port self-skip, and the README badges plus every doc that
named test.yml now point at checks.yml. Branch protection names no
required checks, so the job renames break nothing.
Base automatically changed from chore/template-alignment to main August 22, 2026 10:13
@yannickmonney
yannickmonney merged commit ccaf64d into main Aug 22, 2026
2 checks passed
@yannickmonney
yannickmonney deleted the chore/template-alignment-contract branch August 22, 2026 10:14
yannickmonney added a commit that referenced this pull request Aug 22, 2026
A local turbo build regenerated three files while PR #3039 was being
assembled and git add -A swept them in: the daemon's dist/runnerd.mjs
(never tracked before — services/*/dist does not glob across the nested
daemon path, now ignored explicitly), plus churn in the generated docs
frontmatter.json and releases-manifest.ts (reverted to their pre-merge
state). The daemon's nested oxlint config re-declares its dist ignore
(extends does not inherit ignorePatterns), and turbo.json gains
globalDependencies on the shared configs so a config change can never
reuse a stale lint cache again — the staleness that masked this on the
PR run.
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.

1 participant