Skip to content

fix(skills): landing-page pointed a new page at the wrong routes list - #682

Merged
athvin merged 1 commit into
mainfrom
fix/landing-page-skill-audit
Nov 6, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/landing-page-skill-audit

Conversation

@athvin

@athvin athvin commented Nov 6, 2026

Copy link
Copy Markdown
Owner

An audit of the landing-page skill under docs/agent-skills.md, reported through /skill-audit. Four findings the mechanical gate cannot see; all four applied here.

The one that would have caused a wrong edit

Trap 2 ended: "Both come from MARKETING_PUBLIC_PATHS in src/lib/site/routes.ts, which the proxy spreads in — add a page there and all three consumers follow."

The nearest antecedent is the public list, and a page added there is reachable but absent from the sitemap and the nav — src/app/sitemap.ts:22 and the nav read MARKETING_PATHS, which MARKETING_PUBLIC_PATHS spreads. Only /robots.txt and /sitemap.xml are literal entries in the public one. The skill's own "adding a page" workflow named MARKETING_PATHS correctly, so the body contradicted itself across two sections — and the traps section is the half a session reads while editing.

The other three

Lens Finding
routing The description named three of its four frontend neighbours. frontend-data-ui already routes to landing-page; the return tail was missing, so "add a stat row to the proof section" was a one-way collision.
evals No scenario asserted selection — the signal docs/agent-skills.md step 10 calls the one that actually measures a skill. Every scenario now records which skills loaded; 4 and 6 name the neighbour most likely to win and what its answer would miss.
economy The off-Linux ignoreSnapshots false green was restated here, while frontend-testing's description claims the false-green traps. Pinned to that skill instead of keeping a second copy that can drift.

Trimming two phrases was not cosmetic: adding the routing tail pushed the description to 1,029 chars and the gate failed it at the 1,024 cap.

Verification

Every claim was checked against the source rather than inferred — src/lib/site/routes.ts, src/proxy.ts:88, src/app/sitemap.ts:22, tests/functional/a11y.spec.ts, playwright.config.ts:24, frontend/package.json:60.

make skills-check passes and regen reports no drift. The inventory tables in CLAUDE.md and docs/agent-skills.md are untouched, because the first em-dash clause — the part the generator clips — did not move. No backend gate was run: this touches nothing outside .claude/**, which is the case the detect job exists for.

One finding was deliberately not applied: SKILL.md dates the ensureStatic trap as "Next 16.4's", a version in prose against [email protected]. It is ranked LOW and borderline — the version dates a measured behaviour, and dropping it would leave the claim undated if Next changes cacheComponents.

🤖 Generated with Claude Code

An audit of the `landing-page` skill under `docs/agent-skills.md` found four
things the mechanical gate cannot see.

The one that would have caused a wrong edit: trap 2 ended "Both come from
`MARKETING_PUBLIC_PATHS` ... add a page there and all three consumers follow".
The nearest antecedent is the public list, and a page added there is reachable
but absent from the sitemap and the nav — `src/app/sitemap.ts` and the nav read
`MARKETING_PATHS`, which `MARKETING_PUBLIC_PATHS` spreads. Only the two
metadata routes are literal entries in the public one. The skill's own "adding
a page" workflow had it right, so the body contradicted itself across two
sections, and the traps section is the half a session reads while editing.

The other three:

- The description named three of its four frontend neighbours.
  `frontend-data-ui` already routes to `landing-page`; the return tail was
  missing, so a prompt about a stat or table on a marketing section had a
  one-way collision. Two phrases were tightened to stay inside the 1,024-char
  cap, which this edit first broke at 1,029.
- No eval asserted *selection* — the signal `docs/agent-skills.md` step 10
  calls the one that actually measures a skill. This surface sits in a family
  of four cross-routing frontend skills, so the live failure is an adjacent
  skill answering alone, correctly about its own half. Every scenario now
  records which skills loaded, and 4 and 6 name the neighbour most likely to
  win (`frontend-design-system`, `frontend-bff`) and what its answer would
  miss.
- The off-Linux `ignoreSnapshots` false green was restated here while
  `frontend-testing`'s description claims the false-green traps. Pinned to that
  skill rather than carrying a second copy that can drift.

Verified against the source rather than from resemblance:
`src/lib/site/routes.ts`, `src/proxy.ts:88`, `src/app/sitemap.ts:22`,
`tests/functional/a11y.spec.ts`, `playwright.config.ts:24`.

`make skills-check` passes and regen reports no drift; the inventory tables are
untouched because the first em-dash clause did not move. No backend gate: this
touches nothing but `.claude/**`, which is the case `detect` exists for.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin
athvin merged commit a3584cb into main Nov 6, 2026
33 checks passed
athvin added a commit that referenced this pull request Nov 6, 2026
… render one

An audit of the skill against the tree found four cardinality claims written
as absences, which is the shape that rots least visibly — an absence reads as
a convention rather than as inventory, so nobody re-checks it:

  "the **only** virtualized surface"        still true
  "**no** loading.tsx anywhere"             still true
  "the **only** useSearchParams"            still true
  "there is **no** `<table>`"               false by 23 components

The last one was actively misleading: a session building the webhook list or
the members table would hand-roll an absolutely-positioned grid-of-rows, which
is what virtualization costs, and lose the row and column semantics the axe
gate this very skill tells you to register in is measuring.

So all four are now derived. `dense-surface-facts` reads the `useVirtualizer`
and `useSearchParams` call sites, the route-level boundary files under
`frontend/src/app`, and the `<table>` count, and the prose links to the block
instead of asserting the number. Both hook greps drop doc-comment lines, which
is load-bearing rather than tidy: `column-table.tsx` names `useVirtualizer` in
a comment explaining why it is deliberately not virtualized, and the landing
page names `useSearchParams()` in a comment about `force-static` — counting
either would make the derived list lie in the same direction as the prose it
replaced.

Also fixed, each verified against the source rather than inferred:

- `screens.md` said an unauthenticated route "cannot be added without also
  making the login step conditional". That change has already been made:
  `a11y.spec.ts` carries an `anonymous?: boolean` per entry and `/` is swept
  through it. The stale sentence told a session to decline the four public
  routes the generated gap list right below it names.
- `useOrgEntityType(org)` is `useOrgEntityType(org, ds)` since datasets landed.
- The chart section offered `bg-foreground` against `bg-foreground/70` as a
  channel; the one existing chart spends neither — both polarities are
  `bg-foreground/70` and side-of-axis plus a signed number carry it. Said so,
  because "copy the precedent" and "use two tones" were not the same
  instruction.
- The form heuristic was restated three sentences after the body says
  `dataviz`'s form heuristic is one of the parts that survives here. Deferred
  to it and kept only the two house shapes.
- Dropped a generic skeleton-vs-spinner restatement of the table row above it,
  and `@tanstack/react-table` from a chart scenario's must-not list, where a
  table library was a category error.
- Paths are `frontend/`-prefixed throughout, so a path emitted from the skill
  resolves from the repo root.

A seventh eval scenario covers the regression that started this: a short table
on a settings page must be a `<table>`, not a copy of the virtualized browser.

`docs/agent-skills.md` gains the generator row and the rule the audit
generalizes — a zero and a one are counts too.

The one finding not fixed here is the one-way routing tail from
`landing-page` to this skill, which #682 closed upstream while this was open.

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
athvin pushed a commit that referenced this pull request Nov 6, 2026
…skill said it did

The body claimed "a new issue **or pull request** lands on the board by itself"
and that "a merged pull request moves its own card". Both are false here, and
the skill had flagged the second as the one worth confirming by watching a
single merge, because its failure is silent. The audit PR was that merge, and it
confirmed the opposite of what was written.

Verified, not inferred: every item on the board reads back as an `Issue`, and
four pull requests merged in one sitting — #682, #683, #684, #697 — produced no
card at all. So "Auto-add to project" is filtered to issues. The filter itself
is unreadable, since `ProjectV2Workflow` exposes only `name` and `enabled`, so
the bullet now carries the probe that establishes the shape instead of asserting
it.

What this changes for a session following the skill:

- `item-add` on a pull request URL is no longer "safe, just redundant" — it adds
  a card the conventions do not want. The Writing table row no longer offers a
  pull request as a thing to add.
- "Pull request merged" acts on the **linked issue's** card. A pull request that
  closes nothing moves nothing, so a merge-bus batch of such pull requests
  leaves the board untouched — the opposite of the "duplicated work" warning
  that was there before.
- The Status value the automation writes is still unconfirmed. That claim is now
  scoped to what the API will actually confirm, and says to watch one *linked*
  merge.

Verified: probed `content.type` across every item on the live board, and checked
each of the four merged pull requests for a card by number.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin added a commit that referenced this pull request Nov 6, 2026
…queue flagged the backlog, and Done is confirmed (#702)

* fix(skills): the board triage queue reported the backlog as a defect

Running the recipe against the live board is what exposed this. "Find cards the
automations left half-filled" selected `.priority == null or .estimate == null`,
and most of what came back was correctly-triaged work: cards carrying an
estimate and no priority.

That is not a half-filled card. The skill body records that there is no P3 and
that the lowest-ranked epics carry no priority at all rather than a notional P2
— the absence of a priority *is* the backlog, and it is load-bearing. So the
`.priority == null` term reported the convention as a defect, which is the same
mistake the `.size == null` term made before the audit fixed it: keying a queue
on a field whose emptiness is meaningful.

Two more classes were coming back for the same reason. Cards with `Status`
`Done` dominated the estimate-less rows — a shipped card is not triage work —
and the `[aw] … failed` gh-aw issues, which the body already notes are not
work, were in every result.

The queue is now `.estimate == null` among open, non-`[aw]` cards, and each
filter is documented with the class it removes, so a later edit does not add the
terms back. Against the live board it returns nothing, which is the correct
answer and matches the reconcile recipe directly above it.

Verified: ran both predicates against the board. The old one returns dozens of
rows, none of them actually half-filled; the new one returns none.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(skills): a pull request never gets a card on this board, and the skill said it did

The body claimed "a new issue **or pull request** lands on the board by itself"
and that "a merged pull request moves its own card". Both are false here, and
the skill had flagged the second as the one worth confirming by watching a
single merge, because its failure is silent. The audit PR was that merge, and it
confirmed the opposite of what was written.

Verified, not inferred: every item on the board reads back as an `Issue`, and
four pull requests merged in one sitting — #682, #683, #684, #697 — produced no
card at all. So "Auto-add to project" is filtered to issues. The filter itself
is unreadable, since `ProjectV2Workflow` exposes only `name` and `enabled`, so
the bullet now carries the probe that establishes the shape instead of asserting
it.

What this changes for a session following the skill:

- `item-add` on a pull request URL is no longer "safe, just redundant" — it adds
  a card the conventions do not want. The Writing table row no longer offers a
  pull request as a thing to add.
- "Pull request merged" acts on the **linked issue's** card. A pull request that
  closes nothing moves nothing, so a merge-bus batch of such pull requests
  leaves the board untouched — the opposite of the "duplicated work" warning
  that was there before.
- The Status value the automation writes is still unconfirmed. That claim is now
  scoped to what the API will actually confirm, and says to watch one *linked*
  merge.

Verified: probed `content.type` across every item on the live board, and checked
each of the four merged pull requests for a card by number.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(skills): two board eval scenarios asked about a card that cannot exist

Both scenarios turned on a pull request having a card. It does not, as the
companion commit establishes, so neither was scoreable: a session doing the
right thing would report "#488 is not on the board" and fail a must that
expected it to read a Status.

Scenario 2 ("Move its card to Done") now requires rejecting the premise and
establishing which issue the pull request closed, with separate expectations for
the closes-an-issue and closes-nothing cases. Scenario 7 is the one this audit
added, and it had the same defect — it is now explicitly a false-premise test,
where correcting the premise is the behaviour being measured rather than
reporting the absence.

Both gained a must-not against `item-add`, which is the plausible wrong move:
adding the pull request to the board does make the question answerable as asked,
and leaves a card the conventions do not want.

Scenarios 1 and 8 were re-checked against the live board rather than assumed —
the `[aw] … failed` cards scenario 1 expects are present, and the `In progress`
column scenario 8 probes is populated, so both still test what they claim.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(skills): two routing tails offered a pull request a card it cannot have

`land-pr` and `ci-and-supply-chain` both ended "for the board card see
project-board". In `land-pr` especially — a skill whose whole subject is driving
one pull request — "the board card" reads as *this pull request's* card, and
there is no such thing: every item on that board is an issue.

Both now name what actually exists. `ci-and-supply-chain` had six characters of
headroom under the gated 1,024-char description cap, so "board card" became
"issue card" — a same-length substitution needing no other trimming, which is
what made this safe to do without reflowing a neighbour's description while
other sessions are editing the same line. `land-pr` had room to be explicit:
"the card of the issue it closes".

The routing is unchanged in both directions; this only fixes what the tail
promises on arrival.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* feat(skills): the board's Done-writing automations are confirmed, and the route is readable

The skill said which Status value the merge automation writes was unconfirmed,
because `ProjectV2Workflow` exposes only `name` and `enabled`, and left it at
"watch one linked merge". That was the right scope for what the board API
offers, and the wrong place to look: the evidence is on the issue, not the
board.

**The value is `Done`.** Two merged pull requests that closed an issue — #603
closing #589, #591 closing #586 — each left that issue's card on `Done`, with
the close landing about two seconds behind the merge.

*Which* automation wrote it cannot be separated, and that is now stated rather
than left open: a merged closing pull request also closes the issue, so "Pull
request merged" and "Item closed" both fire on the same event. The effect is
identical either way, so the ambiguity costs nothing operationally.

What does pay off is that the route is attributable after the fact.
`ClosedEvent.closer.__typename` on the issue distinguishes all three ways a card
reaches `Done`:

- `PullRequest` — a merged pull request referenced it
- `ProjectV2` — the board closed it via "Auto-close issue", i.e. someone set Done
- absent on a CLOSED issue — closed directly; "Item closed" still set Done

The `ProjectV2` row is independent corroboration of the existing
`Status` → `Done` → issue-closed bullet, which until now rested on one
observation plus timing. The board is on record as the actor.

Verified: ran the embedded snippet verbatim against #589 (`PullRequest`) and
#566 (`ProjectV2`), and checked both cards read `Done`. Body is 360 lines,
inside the 500 cap.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(skills): eval 3 required the model to hedge a consequence the body calls verified

Scenario 3 was written while `Status` → `Done` closing the issue was still a
suspicion, and never revisited after it was observed. It required the model to
"say the blast radius is unconfirmed" and not to "claim with confidence either
that it *will* or *will not* close the issues" — against a body that has said
"Verified, not inferred" for as long as the bullet has existed.

So the scenario graded the right answer as a failure, and it passed only because
nobody ran it against the body.

It now requires stating the close as established, and splits the two questions
that were conflated: the *effect* is verified, while the workflow
*configuration* is still unreadable, which makes "which automation fired" the
open part rather than "whether issues close". A third must-not rejects citing
the unreadable config as grounds for not answering — it reads as caution while
withholding the fact that decides the question.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
athvin added a commit that referenced this pull request Nov 6, 2026
…THS (#715)

* fix(frontend): the marketing nav was never a consumer of MARKETING_PATHS

`routes.ts` called itself the "single source of truth for three consumers":
the proxy, the sitemap, and "the marketing nav itself". The third does not
exist. Nothing under `src/components/marketing/` imports either list —
`marketing-header.tsx` carries a wordmark link to `/` and one CTA to
PORTAL_ENTRY_PATH, and the footer only the CTA. The real consumers are two.

The cost is a silent failure in the likeliest edit this surface gets. Following
the documented "adding a page" recipe, a new `/pricing` is added to
MARKETING_PATHS, becomes reachable through the proxy and appears in the
sitemap — and is linked from nowhere on the site, because no nav derives from
that list. The recipe reads as complete, and `make frontend` passes.

Corrected at all five sites, and each now states the obligation rather than
just dropping the count:

- `routes.ts`, the MARKETING_PATHS doc comment: two consumers, plus why the nav
  is deliberately not one (a plain row at every width is what keeps the mobile
  DOM a subset of the desktop one, which the desktop-only axe sweep rests on)
  and that the link is a separate manual edit.
- `routes.ts`, the file header: it said the proxy spreads MARKETING_PATHS. The
  proxy spreads MARKETING_PUBLIC_PATHS, which is the superset. Same confusion
  between the two lists that #682 fixed in the skill, one file over.
- `landing-page/SKILL.md` trap 2 and the "adding a page" workflow.
- `landing-page/evals.md` scenario 1, which now requires the answer to name the
  manual header link and calls an answer that stops at MARKETING_PATHS
  incomplete.

Found by the post-merge consistency pass on #682, which had restated the false
claim while fixing the neighbouring one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* test(frontend): pin the spread the proxy depends on, which nothing asserted

`tests/unit/site-routes.test.ts` opens by claiming each assertion "pins a
property something else depends on". The property the proxy actually depends
on — that MARKETING_PUBLIC_PATHS contains every MARKETING_PATHS entry, since
PUBLIC_PATHS *is* that list — was the one nothing pinned.

The failure mode is a refactor rather than a typo: rewriting
MARKETING_PUBLIC_PATHS as a literal and dropping the `...MARKETING_PATHS`
spread keeps today's single page public by coincidence, and every future
marketing page is served a 307 to /login while the sitemap advertises it.

Mutation-tested rather than assumed. With the spread dropped, this is the only
case that fails:

    × keeps every marketing path inside the public list
      AssertionError: expected [ '/robots.txt', '/sitemap.xml' ] to include '/'
    Tests  1 failed | 6 passed (7)

Six pre-existing assertions stayed green against a tree where the landing page
itself would have redirected to login — which is what makes this an accidental
pass rather than a thin one. Spread restored: 7 passed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

2 participants