Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ You do not delegate. Return the finished plan to whoever invoked you — the mai
## Process

1. Read the user's request and any referenced plan/story/spec documents. For an epic
story, that is `context/domination/issues/<ID>.md` — and **check the story's
`Blocked by` cell in `context/domination/tracker.md` before planning it.** A
story, that is `context/domination/issues/<ID>.md` (`context/canary/` for `CNRY-*`) — and
**check the story's `Blocked by` cell in its tracker before planning it.** A
non-empty cell means something must land first: say so and propose a different
story rather than planning around the gap. A `(parenthesised)` entry is not a
blocker — it is a shared primitive this story must build as part of its own scope,
Expand Down Expand Up @@ -63,7 +63,7 @@ You do not delegate. Return the finished plan to whoever invoked you — the mai

A plan the main session can hand straight to `tdd-dev`. Include function signatures, file locations, error-handling shape (try-catch + sentinel), JSDoc format, and the specific edge cases to test. A spec with a loop over a span, a log or a list states the target complexity and the bench rows that show it, per [§ Loop cost](../context/coding-standards.md#loop-cost).

**Shape — a spec folder, not one long file.** Write `context/domination/specs/<ID>/index.md`, 150 lines or fewer, starting with frontmatter `story`, `issue`, `status: draft` and `dox: none` (the [plan gate](./skills/plan-story/SKILL.md#6-approve-and-hand-over) reads it; only the owner's approval sets `approved`): scope, signatures, file list, the authority table, and a slice table linking one file per function or slice (`<ID>/<slice>.md`, 200 lines or fewer each). Each worker reads the index plus its own slice, so a slice must stand on its own: its edge cases, expected values and the clauses it implements. Link context files by section; never copy them in.
**Shape — a spec folder, not one long file.** Write `context/domination/specs/<ID>/index.md` (`context/canary/specs/<ID>/index.md` for a `CNRY-*` story), 150 lines or fewer, starting with frontmatter `story`, `issue`, `status: draft` and `dox: none` (the [plan gate](./skills/plan-story/SKILL.md#6-approve-and-hand-over) reads it; only the owner's approval sets `approved`): scope, signatures, file list, the authority table, and a slice table linking one file per function or slice (`<ID>/<slice>.md`, 200 lines or fewer each). Each worker reads the index plus its own slice, so a slice must stand on its own: its edge cases, expected values and the clauses it implements. Link context files by section; never copy them in.

### The Authority table

Expand Down
2 changes: 1 addition & 1 deletion .agents/dox-architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ chooses; the main session then resumes you with the choice and you write the spe

- `pnpm run validate` stays green, including the CI timezone matrix (10 zones × Node 22/24/26 — the `gmt-matrix` job in `.github/workflows/ci.yml`); `apps/dox`
must not perturb `packages/gmt`.
- No changesets unless the work also modifies `packages/gmt`.
- A Dox-only change needs no changeset. Any file the work changes under `packages/` needs one, an empty one when no behaviour changes ([rule](../context/coding-standards.md#changesets)).
- No `octane` or `@octanejs/*` dependency.
- Every tier after Tier 1 stays independently droppable; the docs work with the chat
deleted.
Expand Down
6 changes: 3 additions & 3 deletions .agents/finalizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You are the Finalizer for the `@northguild/gmt` project. You close stories by ha

**Release workflow:** Deep familiarity with `PUBLISHING.md`. This agent's release output is exactly one thing: a well-written `.changeset/*.md` on the feature branch. Versioning and publishing are both `release.yml`'s job — never run `changeset version`, `npm publish`, `changeset publish`, or `gh release create`.

**Epic structure:** `context/domination/tracker.md` contains the story table — build order, the generated `Blocked by` column, `Status`, the GitHub issue number, and `Release`. Per-story specs live in `context/domination/issues/<ID>.md`. `Release` is the owner's: never edit it. When the story you close carries `Cut`, tell the owner it is time to cut a release.
**Epic structure:** `context/domination/tracker.md` contains the story table — build order, the generated `Blocked by` column, `Status`, the GitHub issue number, and `Release`. Per-story specs live in `context/domination/issues/<ID>.md`. `Release` is the owner's: never edit it. A `CNRY-*` story uses `context/canary/` in place of `context/domination/` throughout (tracker, `issues/<ID>.md`, `specs/<ID>/`); its tracker has no `Release` column and its `Blocked by` cell is hand-written. When the story you close carries `Cut`, tell the owner it is time to cut a release.

**Legacy library awareness:** Luxon, date-fns, Moment.js — enough to verify competitive-gap claims during changelog writing.

Expand All @@ -41,9 +41,9 @@ Story closer. Called after `tdd-dev` (and optionally `tester`) complete. Produce

2. **If public API surface changed:** update the TanStack Intent agent skills in `packages/gmt/skills/` (new functions, renamed functions, new options, new domain concept). See `PUBLISHING.md` contributor flow step 2.

3. **Write a `.changeset/*.md` entry** for the story — one-line summary, bump level per the [changeset rule](../context/coding-standards.md#changesets): a new-API story is `minor`, a fix to shipped behaviour is `patch`, a change with no behaviour change needs none. A breaking change is `minor` with a **Breaking changes** migration section (old → new for every affected function); never write `major`, and do not ask the owner before shipping a breaking change. Polish the text with `/changelog`.
3. **Write a `.changeset/*.md` entry** for the story — one-line summary, bump level per the [changeset rule](../context/coding-standards.md#changesets): a new-API story is `minor`, a fix to shipped behaviour is `patch`, a change with no behaviour change gets an empty changeset when any file under `packages/` changed (a README, a test or a comment counts) and none otherwise. A breaking change is `minor` with a **Breaking changes** migration section (old → new for every affected function); never write `major`, and do not ask the owner before shipping a breaking change. Polish the text with `/changelog`.

Then prove it exists: `pnpm changeset:status` exits non-zero when a publishable
Then prove it, on every story, including one whose spec says no changeset: `pnpm changeset:status` exits non-zero when a publishable
package changed and no changeset covers it. A PR without one bumps nothing and ships
nothing, silently — CI runs this on every PR, so a missing entry fails the branch
rather than surfacing at release time.
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/changelog/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ See [references/steps.md](references/steps.md) for the full step-by-step (findin
- **Do not run `changeset:version`** — it bumps versions and consumes every pending changeset. It is a maintainer's deliberate release action, run in a release PR of its own. See [PUBLISHING.md](../../../PUBLISHING.md).
- **Never fabricate function names.** Every export named in the description must exist in `packages/*/src/`. Verify with `grep` if uncertain.
- **One changeset file per affected package group.** If multiple packages are in the same changeset file, the description must cover all of them, or note which packages are unaffected.
- **Internal-only changes** (skills, agent config, test infrastructure, README) do not warrant a changeset entry by themselves. If the changeset exists only because of those, flag it for the user.
- **Internal-only changes** (skills, agent config, test infrastructure, README) get an empty changeset when they touch `packages/`, never a bump. Flag a bump that exists only because of those.
2 changes: 1 addition & 1 deletion .agents/skills/implement/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lines, links slices that exist and stay within 200 lines, and records the Dox de

## 2. Blocked by

Read the story's `Blocked by` cell in `context/domination/tracker.md` (or `context/dox/tracker.md`).
Read the story's `Blocked by` cell in `context/domination/tracker.md` (or `context/dox/tracker.md`, or `context/canary/tracker.md` for `CNRY-*`).
A non-empty cell means something has to land first: say so instead of working around it. A
`(parenthesised)` entry is not a blocker — it is a shared primitive this story builds itself, so
fold it into the work and say so. `pnpm deps:ready` lists what is startable.
Expand Down
7 changes: 4 additions & 3 deletions .agents/skills/pipeline/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ and [§ Git — Only on an Explicit Instruction](../../../AGENTS.md#git--only-on
| --- | --- | --- | --- |
| **A. Story** | A tracker story: realm (`MAR-*`, `CORE-*`, …) or `DOX-*` | [`/plan-story`](../plan-story/SKILL.md) in its own session, then the gate, then `tdd-dev` → (`tester`) → `gmt-reviewer` → (`dox-builder` → `dox-tester`) → `finalizer` | per rule |
| **B. Bug fix** | Incorrect behaviour or a failing test | (`researcher`) → `tdd-dev` → `tester` → `gmt-reviewer` → `finalizer` | `patch` |
| **C. Refactor** | Internals only, no behaviour change | `tdd-dev` → `tester` → `finalizer` (commit message only) | none |
| **D. Documentation** | Docs, READMEs, JSDoc | `finalizer` (documentation steps only) | none |
| **C. Refactor** | Internals only, no behaviour change | `tdd-dev` → `tester` → `finalizer` (commit message only) | empty |
| **D. Documentation** | Docs, READMEs, JSDoc | `finalizer` (documentation steps only) | empty if `packages/` changed |
| **E. Research** | Temporal behaviour, design options | `researcher` only; do not implement unless asked | — |
| **F. Code review** | Review code or a diff | `gmt-reviewer` ([checklist](../../../context/code-review-checklist.md) first) | — |
| **G. Owner's spec, no story** | The owner hands over a complete spec for work with no tracker row | `tdd-dev` → `gmt-reviewer` → `finalizer` | per rule |
Expand Down Expand Up @@ -65,7 +65,8 @@ and one slice), never no spec. Nothing else has a story spec, so nothing else ru

Planning is [`/plan-story`](../plan-story/SKILL.md), in its own session. To implement, read the
story id from the branch (`feature/197-mar-16-…` → `MAR-16`) and load
`context/domination/specs/<ID>/index.md`, plus `context/dox/specs/<id>/index.md` if it exists.
`context/domination/specs/<ID>/index.md` (`context/canary/specs/<ID>/index.md` for `CNRY-*`), plus
`context/dox/specs/<id>/index.md` if it exists.
For a story (category A), run `python3 .agents/skills/plan-story/scripts/plan_gate.py` first. On
`FAIL`, stop and tell the owner to run `/plan-story`; never plan inline.

Expand Down
5 changes: 3 additions & 2 deletions .agents/skills/plan-story/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Planning ends with approved specs on disk. Implementation is a separate, fresh s
- **`MAR-16`:** use it as given.

Find the row: `grep -n '| MAR-16 ' context/domination/tracker.md` (a `DOX-*` id lives in
`context/dox/tracker.md`). Read the row only, not the whole tracker. If no row matches, stop and
`context/dox/tracker.md`, a `CNRY-*` id in `context/canary/tracker.md`). Read the row only, not the whole tracker. If no row matches, stop and
ask the owner which story they mean.

## 2. Gate

- Run `pnpm deps:ready`. If the story is not in the ready list, stop and report its `Blocked by`.
- If the row's `Status` is `Done`, stop and say so.
- If `context/domination/specs/<ID>/index.md` already exists, show its scope and ask the owner
- If `context/domination/specs/<ID>/index.md` (`context/canary/specs/<ID>/` for `CNRY-*`) already exists, show its scope and ask the owner
whether to revise it or start over. Never overwrite a spec silently.

## 3. Route
Expand All @@ -34,6 +34,7 @@ ask the owner which story they mean.
| Realm story (`MAR-*`, `TRAN-*`, `INT-*`, `CORE-*`, …) | 4, then 5 |
| `CORE-*` story that adds no function and whose work is the docs site (`CORE-86` … `CORE-88`) | 4 only, then `dox: none`. The writer is `dox-architect` for `apps/dox` work (`CORE-86`, `CORE-88`) and `architect` for the export step (`CORE-87`); skip 5, there is no tool |
| `DOX-*` story | 5 only (skip the library index input) |
| `CNRY-*` story | 4 only, with every `context/domination/` path read as `context/canary/` (issue file, spec folder). A Dox page the story names is a slice of the same spec; `dox: none` unless it adds a Dox tool, then 5 |

## 4. Library spec — `architect` (Opus)

Expand Down
4 changes: 3 additions & 1 deletion .agents/skills/plan-story/scripts/plan_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
SLICE_LINE_BUDGET = 200
LIB_SPECS = "context/domination/specs"
DOX_SPECS = "context/dox/specs"
CANARY_SPECS = "context/canary/specs"

# <type>/<issue>-<story id>-...; a story id is letters, a dash, then a token holding a digit.
BRANCH_RE = re.compile(r"^[a-z]+/\d+-([a-z]+-[a-z]*\d[a-z0-9]*)(?:-|$)")
Expand Down Expand Up @@ -82,7 +83,8 @@ def check(root: Path, story: str) -> list[str]:
if story.startswith("DOX-"):
found, _ = check_spec(root, root / DOX_SPECS / story.lower() / "index.md", story)
return found
found, fields = check_spec(root, root / LIB_SPECS / story / "index.md", story)
specs = CANARY_SPECS if story.startswith("CNRY-") else LIB_SPECS
found, fields = check_spec(root, root / specs / story / "index.md", story)
if not fields:
return found
dox = fields.get("dox", "")
Expand Down
12 changes: 12 additions & 0 deletions .agents/skills/plan-story/scripts/test_plan_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def problems(root: Path, story: str = "FIX-1") -> list[str]:
[
("feature/197-mar-16-gpstoutc-utctogps", "MAR-16"),
("feature/289-dox-e1c-chat-tools", "DOX-E1C"),
("feature/490-cnry-1-safari-icu", "CNRY-1"),
("fix/12-core-8-range-edges", "CORE-8"),
("feature/304-dox-three-intermodal-tools", None),
("main", None),
Expand Down Expand Up @@ -110,6 +111,17 @@ def test_dox_story_uses_dox_specs_only(tmp_path: Path) -> None:
assert problems(tmp_path, "DOX-E1C") == []


def test_canary_story_uses_canary_specs(tmp_path: Path) -> None:
write(tmp_path, f"{LIB}/index.md", index())
write(tmp_path, f"{LIB}/a.md", "slice\n")
assert any("context/canary/specs/CNRY-1/index.md" in p for p in problems(tmp_path, "CNRY-1"))
write(tmp_path, "context/canary/specs/CNRY-1/index.md", index(dox=""))
write(tmp_path, "context/canary/specs/CNRY-1/a.md", "slice\n")
assert any("no dox decision" in p for p in problems(tmp_path, "CNRY-1"))
write(tmp_path, "context/canary/specs/CNRY-1/index.md", index())
assert problems(tmp_path, "CNRY-1") == []


def test_main_exit_codes(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
assert plan_gate.main(["FIX-1", "--root", str(tmp_path)]) == 1
assert "FAIL" in capsys.readouterr().out
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/pr-desc/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The changeset(s) in `.changeset/` and their bump level, per [coding-standards §
- [ ] Each "What Changed" section has a corresponding entry
- [ ] Type-check passed
- [ ] No secrets committed
- [ ] Changeset present with the correct bump (or none, for no behaviour change)
- [ ] Changeset present with the correct bump (empty for no behaviour change under `packages/`; none for a change outside it)

---

Expand Down
6 changes: 6 additions & 0 deletions .changeset/canary-webkit-macos-leg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
---

No release. Only the canary tooling, the Dox site and an internal README in `@northguild/gmt`
change: the weekly native suite gains a `webkit-macos` leg, and the workaround README names it
among the engines each compat check runs. No public function, output or bundle size changes.
48 changes: 40 additions & 8 deletions .github/workflows/temporal-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ name: Temporal oracle
# have filed in the job summary and files nothing.
#
# The native-suite job runs the whole packages/gmt suite on native Temporal in Node 26,
# Chromium, Firefox and WebKit, one matrix leg each. A failing leg means an untagged failure of either
# Chromium, Firefox, WebKit on Linux and WebKit on macOS (Apple's ICU and time zone data, the data
# Safari uses), one matrix leg each. A failing leg means an untagged failure of either
# kind: a divergence (fails natively, passes on the polyfill in the same runtime) or a host
# failure (fails on both) that no host group covers. The report job files it as an issue, one per
# engine for divergences.
Expand Down Expand Up @@ -122,12 +123,19 @@ jobs:

native-suite:
name: Native Temporal suite (${{ matrix.leg }})
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
leg: [node, chromium, firefox, webkit]
# macos-latest is free because the repository is public. It is a moving label on purpose:
# the webkit-macos leg tests the data Apple ships now, and its engine line names the macOS.
include:
- { leg: node, os: ubuntu-latest }
- { leg: chromium, browser: chromium, os: ubuntu-latest }
- { leg: firefox, browser: firefox, os: ubuntu-latest }
- { leg: webkit, browser: webkit, os: ubuntu-latest }
- { leg: webkit-macos, browser: webkit, os: macos-latest }
steps:
- uses: actions/checkout@v7

Expand All @@ -142,11 +150,24 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile --no-runtime

- name: Install Playwright ${{ matrix.leg }}
- name: Install Playwright ${{ matrix.browser }}
if: matrix.leg != 'node'
env:
LEG: ${{ matrix.leg }}
run: pnpm --filter @gmt/dox exec playwright install --with-deps "$LEG"
BROWSER: ${{ matrix.browser }}
run: |
if [ "$RUNNER_OS" = Linux ]; then
pnpm --filter @gmt/dox exec playwright install --with-deps "$BROWSER"
else
pnpm --filter @gmt/dox exec playwright install "$BROWSER"
fi

# Shows which ICU Playwright's JavaScriptCore links, so each run's log names the data source.
# It never fails the job.
- name: Show the ICU WebKit links
if: runner.os == 'macOS'
run: |
find ~/Library/Caches/ms-playwright -path '*JavaScriptCore.framework/Versions/A/JavaScriptCore' \
-exec otool -L {} \; | grep -iE 'icu|:$' || echo "JavaScriptCore not found or no ICU linked"

- name: Build
if: matrix.leg != 'node'
Expand All @@ -158,14 +179,25 @@ jobs:
env:
LEG: ${{ matrix.leg }}
run: |
avail_mib() { df -Pk "${TMPDIR:-/tmp}" | awk 'NR == 2 { print int($4 / 1024) }'; }
mem_mib() {
if command -v free >/dev/null 2>&1; then
free -m | awk '/^Mem:/ { print $7 }'
else
vm_stat | awk '
/page size of/ { size = $8 }
/^Pages (free|inactive|speculative):/ { gsub(/\./, "", $NF); pages += $NF }
END { print int(pages * size / 1048576) }'
fi
}
if [ "$LEG" != node ]; then
(
while true; do
printf 'resources %s: %s MiB free under %s, %s MiB memory available\n' \
"$(date -u +%H:%M:%S)" \
"$(($(df --output=avail -k "${TMPDIR:-/tmp}" | tail -1) / 1024))" \
"$(avail_mib)" \
"${TMPDIR:-/tmp}" \
"$(free -m | awk '/^Mem:/ { print $7 }')"
"$(mem_mib)"
sleep 15
done
) &
Expand Down
Loading
Loading