Skip to content

docs(sdk): the project skills say how a field shows the look's invalid state - #691

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/621-skills-aria-invalid
Oct 15, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/621-skills-aria-invalid

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

The tier 1 constraints in patchy-loop told patches to "keep validation with reportValidity()". reportValidity() never sets aria-invalid, and a company look styles invalid fields by aria-invalid="true". A patch that followed the skill never showed its company's invalid state.

patchy-look now says that the look styles invalid fields by aria-invalid="true" and disabled ones by disabled, and that reportValidity() sets no aria-invalid. It says a failing field gets aria-invalid="true" until its value changes, and that bare :invalid isn't the hook. The tier 1 line still has reportValidity() check fields and points at patchy-look. No code changed.

What I verified

  • Chromium 153 (Playwright), Patchy look.css inlined. On an empty required input, :invalid already matches at load. After input.reportValidity() or form.reportValidity() (both return false), and after a click on a type="button" in the form, aria-invalid is still absent and :user-invalid still doesn't match. Setting aria-invalid="true" turns the border to --look-danger (rgb(180, 34, 15)), and disabled gives a dashed muted border. :user-invalid matched only after an edit and a blur.
  • Generation, for real. I ran pnpm dev up brightline, then patchy refresh in the tier 1 kudos repo through the environment's CLI. I ran it once with main's skill text in packages/sdk/skills and once with this branch's. The second refresh listed patchy-look and patchy-loop as changed, and the repo's copies gained exactly the new lines. That repo's look.css (the Patchy look) styles [aria-invalid="true"] and :disabled fields.
  • Suites on the rebased commit. SdkApi.test.ts (generation, and the packed-release tests), initProject.test.ts, skillLock.test.ts and cliRepoRecovery.test.ts pass. cliRepoBuild.test.ts's company-look publish test timed out at 30s when run beside other suites, and passed in 18s on its own. An earlier full local pnpm verify got through format, lint, typecheck and synth before a restart killed it; its test stage only timed out under load. CI is the gate.

Surfaces

  • Project skills served by generation: applied. Generation reads packages/sdk/skills on every request, so there's nothing to regenerate.
  • Tests pinning skill text: none pin the edited lines. SdkApi.test.ts checks the skills' presence, their markers and the injected look; skillLock.test.ts covers the global skill, which this PR doesn't touch.
  • Wire contract, CLI and global skill, dev loop, vocabulary, migrations, served pages, reverse states, repo layout: not applicable.

Closes #621

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

GPT 6.1 Sol (xhigh) reviewed this. It found nothing high or medium. Its four low/nit findings:

  1. Low: "its bubble shows on one field and fades" overstates the spec. Fixed: I dropped the clause. "reportValidity() sets no aria-invalid" carries the point.
  2. Low: the fixture looks under packages/core/fixtures/looks don't style invalid or disabled fields. Dismissed: fix(core): the fixture looks mishandle checkboxes and field states, and the capture reference says nothing about them #588 owns the fixture looks and the capture reference, and this issue rules them out of scope.
  3. Low: the init starter (packages/patchy/src/initProject.ts) calls form.reportValidity() without setting aria-invalid. Dismissed for this PR: fix(sdk): a field that fails reportValidity() never shows the company look's invalid state #621 is a skill-text change with no code change. Aligning the starter is a separate code change.
  4. Nit: condense the text and make it declarative. Partly taken: the text is now three sentences. I kept the instruction ("give a field that fails … aria-invalid="true"") because the patch has to set the attribute itself. A declarative "a failing field has aria-invalid" could read as something the browser or Patchy does.

Sol found no contradictions elsewhere in the project skills, no analogies to other products, and no test that pins the wording.

@github-actions github-actions Bot added area:server Touches the server area area:docs Touches the docs area size:s Under 100 changed lines labels Oct 15, 2026
…d state

The tier 1 constraint told patches to keep validation with reportValidity(),
which never sets aria-invalid, the attribute the company look styles invalid
fields by. patchy-look now says the look styles aria-invalid="true" and
disabled fields, that reportValidity() sets no aria-invalid, that a failing
field gets aria-invalid="true" until its value changes, and that bare :invalid
isn't the hook. The tier 1 line points there.

Closes #621

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/621-skills-aria-invalid branch from d8d312c to fb2dcbd Compare October 15, 2026 20:05
@allisonmahmood
allisonmahmood merged commit fba5914 into main Oct 15, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/621-skills-aria-invalid branch October 15, 2026 20:14
allisonmahmood added a commit that referenced this pull request Oct 16, 2026
…u when they fail (#720)

Release 13's What's new entry, written from `c9b8fc4`, ahead of
deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs
and patch repos installed before this deploy are told to upgrade.

| Change | PRs |
| --- | --- |
| New: Home puts the patches you use first | #713, #716, #719 |
| New: Every patch in one list | #715 |
| Improved: Each patch's page leads with Open | #717 |
| New: See when your tools are failing | #718 |
| Fixed: Everyone has a name | #687 |
| Improved: Your company's look is easier to get right | #697, #696,
#703, #688 |
| Improved: Forms follow your look's error states | #691, #692 |
| Improved: Clearer answers when a publish goes wrong | #686, #685, #689
|
| Fixed: Your agent's Patchy commands are steadier | #695, #704, #680,
#681 |
| Behind the scenes: stricter checks on static pages and tools' database
requests; malformed requests are logged | #682, #693, #683 |
| Behind the scenes: usage numbers count every publish, sharing change
and restore | #698, #699, #700, #690 |
| Test and tooling only, no line | #705, #702, #701, #694, #684, #607 |

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Touches the docs area area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(sdk): a field that fails reportValidity() never shows the company look's invalid state

1 participant