Repository navigation
fix(skills): the sql-analysis table said partial skips the MERGE rules it does not - #697
Merged
Merged
Conversation
…s it does not `mode: partial`'s "Still runs" column listed E004/E005/E010/E011/E012. The AST pass set is larger: `ast_checks` also runs E009, E014 and E015 (analyze.rs:448-450). That omission is not cosmetic — E014 (`updated_at` assigned) and E015 (ON matches the `natural_key`) have no subject other than MERGE, and a MERGE is always partial, so a reader following the table concludes the two rules cannot fire and writes a MERGE without `updated_at`. `make check` then fails on E014. evals.md asserted the same short list, so the eval credited the wrong answer. Stated structurally now — "every AST pass" cannot go stale as codes are added — plus the one real narrowing the table omitted: a partial statement that will not parse even after the rewrite drops to a `SELECT *` regex and a leading-verb check, nothing else. The version matrix in references/ff-analysis.md is now generated from `rust/Cargo.lock`. Hand-written, it had already rotted: it said the rest of the workspace pulls arrow 58 while `rust/Cargo.toml` says 60 and the lock resolves 60.1.0 — and the skill body said 60 two files away, so the skill contradicted itself. The same stale 58 sat in `er-sql-check/Cargo.toml`'s own comments, which is where it was copied from; fixed there too. The generated rows settle the sqlparser question hostilely rather than by assertion. Three majors resolve here, and the one that parses is whichever `datafusion-expr` resolves, because ff-analysis's lib.rs is `pub use datafusion_expr::sqlparser` — not ff-analysis's own direct 0.61, which is the row `cargo tree` shows first. The "exactly one consumer" claim is derived too: `er-sql-check` appearing in that list would falsify the section. Also: the stub table stopped at v0.1.3 while the pin is v0.1.4, which added a `sha256` stub upstream — so the table said unstubbed a function that is stubbed, inviting a two-repo round trip that was already done. Added, with the invariant that a pinned tag absent from the table means the table is behind. Routing both ways, per the standard's step 6: `entity-framework` and `sql-analysis` both carried the E0xx and oracle triggers while neither tail handed those over, and neither named `er-matching` on the golden-governed `dedupe-core` SQL that this skill's own decision table has a row for. Two new eval scenarios: one for selection on an unnamed E003 failure, one for the rewrite step, which had no coverage at all. SKILL.md no longer restates the reference tables wholesale. The stub list it carried had already drifted from the reference's (missing `now`, `sha256`), which is the proof that duplication rots; rewrites.md is named canonical and the body keeps only the three removals where the coupling is load-bearing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…own generator diagnostics.md derives the documented-but-unimplemented set by set-differencing the design doc's table against analyze.rs, so nobody maintains it. SKILL.md then listed E007/E008/E013 by hand in prose, which puts the one list that cannot rot and a copy that can in the same skill. Implementing any of the three would leave the body telling readers to ignore a live rule with nothing going red — the same defect the entity-framework audit found in two other files. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin
force-pushed
the
fix/sql-analysis-partial-and-pins
branch
from
November 6, 2026 05:19
116887a to
455eb75
Compare
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
pushed a commit
that referenced
this pull request
Nov 6, 2026
…dropped for want of 31 characters `description` is capped at 1,024 characters and is a shared append target: closing an overlap means appending a clause to a NEIGHBOUR's description, so unrelated audits all spend the same line. Fifteen of twenty-three descriptions had arrived within 34 characters of the cap with no single author having spent it, and six within nine. The cost was not hypothetical. The `sql-analysis` audit (#697) found that `entity-framework` and `sql-analysis` both carry the E0xx and oracle triggers while neither tail hands them over, decided the clause was needed, and then DROPPED it because `entity-framework` had 31 characters free. That is the one outcome the standard already forbids — docs/agent-skills.md:113 says to shorten that description rather than drop the routing, because an unclosed overlap costs a mis-selected skill at runtime, which is the failure the field exists to prevent. The clause is now in, and `entity-framework` has more headroom than it started with. Thirteen descriptions trimmed on the standard's own rule: cut the **what** clause, never the trigger vocabulary. Every noun, command, filename and error string a person would type is preserved; what went is explanation the body already carries — "and why each is pinned", "rather than by account", "and why it sits there", "the measurements a speed claim needs". Four skills are left alone because they are in open pull requests (#699, #702, #705); the generated table names them rather than leaving it to be rediscovered. The durable half is that generated table. The standard's remedy had been "read the headroom before adding a tail" plus a shell one-liner, which is a step an author can skip — and skipping it is exactly how #697 ended up choosing between a count and a correct routing graph. The threshold is DERIVED rather than chosen: the median routing clause in the collection, so "cannot take another clause" is measured against what a clause actually costs here instead of a number someone picked. 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
pushed a commit
that referenced
this pull request
Nov 6, 2026
…dropped for want of 31 characters `description` is capped at 1,024 characters and is a shared append target: closing an overlap means appending a clause to a NEIGHBOUR's description, so unrelated audits all spend the same line. Fifteen of twenty-three descriptions had arrived within 34 characters of the cap with no single author having spent it, and six within nine. The cost was not hypothetical. The `sql-analysis` audit (#697) found that `entity-framework` and `sql-analysis` both carry the E0xx and oracle triggers while neither tail hands them over, decided the clause was needed, and then DROPPED it because `entity-framework` had 31 characters free. That is the one outcome the standard already forbids — docs/agent-skills.md:113 says to shorten that description rather than drop the routing, because an unclosed overlap costs a mis-selected skill at runtime, which is the failure the field exists to prevent. The clause is now in, and `entity-framework` has more headroom than it started with. Thirteen descriptions trimmed on the standard's own rule: cut the **what** clause, never the trigger vocabulary. Every noun, command, filename and error string a person would type is preserved; what went is explanation the body already carries — "and why each is pinned", "rather than by account", "and why it sits there", "the measurements a speed claim needs". Four skills are left alone because they are in open pull requests (#699, #702, #705); the generated table names them rather than leaving it to be rediscovered. The durable half is that generated table. The standard's remedy had been "read the headroom before adding a tail" plus a shell one-liner, which is a step an author can skip — and skipping it is exactly how #697 ended up choosing between a count and a correct routing graph. The threshold is DERIVED rather than chosen: the median routing clause in the collection, so "cannot take another clause" is measured against what a clause actually costs here instead of a number someone picked. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin
added a commit
that referenced
this pull request
Nov 6, 2026
…dropped for want of 31 characters (#713) * fix(skills): the description budget, and the routing clause an audit dropped for want of 31 characters `description` is capped at 1,024 characters and is a shared append target: closing an overlap means appending a clause to a NEIGHBOUR's description, so unrelated audits all spend the same line. Fifteen of twenty-three descriptions had arrived within 34 characters of the cap with no single author having spent it, and six within nine. The cost was not hypothetical. The `sql-analysis` audit (#697) found that `entity-framework` and `sql-analysis` both carry the E0xx and oracle triggers while neither tail hands them over, decided the clause was needed, and then DROPPED it because `entity-framework` had 31 characters free. That is the one outcome the standard already forbids — docs/agent-skills.md:113 says to shorten that description rather than drop the routing, because an unclosed overlap costs a mis-selected skill at runtime, which is the failure the field exists to prevent. The clause is now in, and `entity-framework` has more headroom than it started with. Thirteen descriptions trimmed on the standard's own rule: cut the **what** clause, never the trigger vocabulary. Every noun, command, filename and error string a person would type is preserved; what went is explanation the body already carries — "and why each is pinned", "rather than by account", "and why it sits there", "the measurements a speed claim needs". Four skills are left alone because they are in open pull requests (#699, #702, #705); the generated table names them rather than leaving it to be rediscovered. The durable half is that generated table. The standard's remedy had been "read the headroom before adding a tail" plus a shell one-liner, which is a step an author can skip — and skipping it is exactly how #697 ended up choosing between a count and a correct routing graph. The threshold is DERIVED rather than chosen: the median routing clause in the collection, so "cannot take another clause" is measured against what a clause actually costs here instead of a number someone picked. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(skills): the derived threshold was measuring whole descriptions, not clauses The clause-length regex was unanchored, so `[^;]*\bfor .*see [a-z0-9-]+` matched from the start of each `;`-delimited segment and swallowed the what clause with it. Of 77 "routing clauses" it found, fifteen were 698-868 characters — entire description prefixes. The reported median was right anyway (59 vs 56 now), because a median ignores outliers. That is luck, not a design, and the whole claim of this block is that the threshold is DERIVED rather than picked — so an extraction that measures the wrong thing undermines the one property worth having, even while printing a plausible number. Anchored on `for`, split on sentence as well as clause boundaries: 76 clauses, 28 to 162 characters, median 56. The splitting moved to awk because BSD and GNU sed disagree about `\n` in a replacement, and this generator runs on both. Found by checking what the extraction actually returned instead of trusting a believable aggregate. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore(skills): regenerate the description-budget block against current main The block this branch introduces is derived from every skill's `description`, so it goes stale whenever any of them changes — and three landed while the branch was open. #706 lengthened `skill-audit` to 1017 characters, which drops its headroom from 17 to 7 and moves it to the top of the table, and `land-pr` shortened, which moves it past `skill-writer`. Regenerated output only; no prose or threshold changed. Worth noting what the refreshed numbers say, since the block exists to be read: `skill-audit` now has 7 characters free against a 56-character median routing clause, so it is the next description that cannot take a tail without being trimmed first. 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Audit of the
sql-analysisskill under/skill-audit, with the findings applied.Four of them were verified against source rather than inferred from the prose.
What was actually wrong
mode: partialunderstated the pass set, in the direction that matters. The"Still runs" column listed
E004, E005, E010, E011, E012.ast_checksalso runsE009, E014 and E015 (
analyze.rs:448-450). E014 (updated_atassigned) andE015 (
ONmatches thenatural_key) have no subject other than MERGE — and aMERGE is always partial, so a reader following the table concludes those two
rules cannot fire, writes a MERGE without
SET updated_at, andmake checkfails on E014.
evals.mdasserted the same short list, so the eval credited thewrong answer. Now stated structurally ("every AST pass"), which cannot go stale
as codes are added, plus the one narrowing the table omitted: a partial statement
that will not parse even after the rewrite drops to a
SELECT *regex and aleading-verb check, nothing else.
The version matrix had already rotted, and the skill contradicted itself. The
reference said the rest of the workspace pulls arrow 58; the body said 60
two files away.
rust/Cargo.tomlsays 60 and the lock resolves60.1.0. The 58was copied from
er-sql-check/Cargo.toml's own comments, which were equallystale — fixed there too, or the next author re-copies it. The matrix is now
generated from
rust/Cargo.lockby a newsql-planner-pinsgenerator.The stub table was behind its own pin. It stopped at
v0.1.3while the pin isv0.1.4, which added asha256stub upstream — so the skill declared unstubbeda function that is stubbed, inviting a two-repository round trip already done.
The not-implemented E-codes were hand-copied past their own generator.
diagnostics.mdderives that set by set difference;SKILL.mdthen listedE007/E008/E013in prose. Implementing any one would leave the body tellingreaders to ignore a live rule with nothing going red.
The generator earns its keep on the sqlparser question
Three sqlparser majors resolve in this graph. The one that parses is whichever
datafusion-exprresolves, because feather-flow'slib.rsispub use datafusion_expr::sqlparser— not ff-analysis's own direct0.61, which isthe row
cargo treeshows first. The skill's original false-premise correctionwas right, and it now says so with derived numbers and names the trap. The
"exactly one consumer" claim is derived as well:
er-sql-checkappearing in thatlist would falsify the section.
Routing, both ways
entity-frameworkandsql-analysisboth carried the E0xx and oracle triggerswhile neither tail handed them over, and neither named
er-matchingon thegolden-governed
dedupe-coreSQL that this skill's own decision table has a rowfor. All three descriptions updated; the first em-dash clause is untouched, so
the generated inventory tables do not move.
Verification
skills-check.sh lint/overrides/checkgreen.docs/frontend-testing.md's rule: flippingrust/Cargo.toml'sarrowpin to61makescheckexit 1 and name the exact row; restoring it returns exit 0.Tested by changing the source, not by hand-editing inside the block, which
proves nothing.
E003 failure (the overlap above), and the rewrite step, which had none.
Findings deliberately not acted on: the "two-repository change" point is
stated twice ~15 lines apart in
references/ff-analysis.md. That is emphasis onthe skill's central claim, and deleting a borderline load-bearing line on an
economy judgment is how an audit does harm.
🤖 Generated with Claude Code