Skip to content

AF: keep Basalt app-agnostic (scroll owners, FormGrid by its width, dialog dirty, count stores, vocabulary lint) (DECISIONS 265, 266) - #120

Merged
bmjcoding merged 7 commits into
mainfrom
claude/gaps-af-agnostic
Nov 23, 2026
Merged

bmjcoding merged 7 commits into
mainfrom
claude/gaps-af-agnostic

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

What

Batch AF of the CIMIP gaps stream fixes what Sol's agnosticism audit found (DECISIONS 266). The audit confirmed Basalt is still a general system, but found some behaviour and docs shaped around its first app. This PR fixes them.

Behaviour

  • ListBand and BackToTop: both take scroller, an element or a ref (the window by default). The scroll listeners follow the element when it changes.
  • Paging: a press now waits for its page, however late, instead of timing out after 10 seconds. With a filterKey, only that key tells a filter apart.
  • FormGrid: sits in a named container. It is columns only when the window is at least 720 and its own width at least 640.
  • The form dialog:
    • its "entered" check is a structured snapshot, covering selected options, checked state, files and text;
    • DialogContent dirty overrides that check when the app gives it.
  • Remembered counts: rememberCount, rememberedCount and forgetCount take an app store.
    • With no store, a count lives for the page in a browser.
    • On a server with no store, nothing is kept.
  • fillIn: merges plain records only. null means known-empty, and a known value of another kind keeps the stand-in.
  • writingEmpty: new on Input and Textarea, "keep" or "clear".
  • Explainers: a header that doesn't sort can now have one; the th is the opener.

Docs and examples

  • Foundations, the README, source comments and the skill's usage texts are rewritten as general rules.
  • Each part's examples cover at least two unrelated domains.
  • Rounds 51 to 54 each gain a second-domain step.

Guard

  • scripts/check-vocabulary.mjs runs in npm run lint. It fails when CIMIP's nouns reach Basalt's public names, defaults, ARIA labels, classes or tokens.
  • An exception marker cannot excuse an API line.

Tests

  • agnostic.test.mjs: two-domain fixtures, plus ownership checks (no storage writes, no network).

Review

  • Astra (code): 6/10 with eight blocking findings. All are fixed in e7f0b4c8; the lead checked them.
    • count store across server requests;
    • forgetCount on a minimal store;
    • a stale ref scroller;
    • the size handoff over two renders;
    • the dock's offset in a pane header;
    • dialog snapshot collisions;
    • the lint's false positives and false negatives;
    • fillIn against a class type.
  • Polish: the four polish items are fixed too.
  • Pager: measured centred, left unchanged.
  • Pixels: the lead checked them.
  • No council round (DECISIONS 226).
  • Review round: 61.

Checks

  • Tests: passed before the owner paused tests (DECISIONS 271). The counts are in the batch report. The fix pass's tests are written but not run.
  • On the merged tree (origin/main ff637562): build, both typechecks and lint all pass, including the vocabulary lint over B2, B3, B4, B6 and B7's new code. export-sizes.json is re-recorded.
  • Merge fixes:
    • SKILL.md is trimmed back to 12,398 bytes, under its 12,400 cap.
    • Conflicts in foundations, the README's ListBand and BackToTop rows, and rounds.tsx are resolved.

Migration notes (for current users)

  • FormGrid: its new .basalt-form-grid-frame wrapper is now the item in its parent. Move flex, grid-column or width rules from the grid to the frame.
  • rememberCount: without a store it no longer writes localStorage. To keep the old keys, pass () => localStorage to both calls.
  • fillIn and DeepPartial: replace an old null that meant "unknown" with leaving the field out or undefined. Declare a field nullable where empty is a real value.
  • A fixed TableHead's explainer: it now renders. Before, it was silently dropped.

🤖 Generated with Claude Code

bmjcoding and others added 7 commits November 22, 2026 17:37
… rounds, lint, tests)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kill's usage under its caps, round 56 shots checked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-recorded on the merged tree

Tests are written but not run after the rebase: the owner paused test runs (DECISIONS 271).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… round moves to 61

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t on a store without removeItem, the scroller followed per commit, a two-render size change keeps its handoff, Back to top inherits a pane's offset, a structural dialog snapshot, a tighter vocabulary lint, fillIn by kind; README migration; round 61

Tests are written or corrected but not run: the owner paused test runs (DECISIONS 271). Lint and both typechecks pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/foundations.md
#	packages/react/README.md
#	packages/react/test/export-sizes.json
#	tools/review/rounds.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding merged commit 5ad5345 into main Nov 23, 2026
@bmjcoding
bmjcoding deleted the claude/gaps-af-agnostic branch November 23, 2026 00:20
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