b3490da54f256080f5925f3ef68faee2f9257a34
1476 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b3490da54f |
Merge remote-tracking branch 'gh/main'
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
|
||
|
|
57be9144d1 |
Merge pull request #151 from fiddlerwoaroof/fix/6uva-script-cursor
fix(cli): a script's command is built against the cursor it will run against (improvise-6uva) |
||
|
|
f7573bff27 |
Merge pull request #144 from fiddlerwoaroof/fix/gjat-sequence-fold
test(navigation): a sequence folds in order; the old law was a tautology (improvise-gjat) |
||
|
|
b855faf3c5 |
fix(cli): an explicit coordinate still beats the cursor (improvise-6uva)
Found by the ChatGPT Codex review of PR #151 at head
|
||
|
|
810398e4a4 |
docs(kb): the TUI composed-row rule, and a trap in our own remote topology
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
PRs #145/#149. New gotcha 50: `fill_line` takes a `Keeps` because the three rows sharing a line disagree about which side yields, and the one key table on screen is the one derived from the keymap — with the import wizard as the deliberate inverse, since its derived line comes from the mode keymap while the real keys are per-step. AGENTS.md gains the remote trap, and it is the orchestrator's fault: briefs said "merge `main`", and because `origin`/`gitea` take `main` directly while GitHub gets branches, `origin/main` runs ahead of `gh/main`. An agent doing the habitual thing pulled four unmerged commits — another PR's whole diff — into a branch based on `gh/main`. Nothing in CI can see it; the result compiles and passes. Codex caught it. The window is transient, which makes it worse: the hazard is absent exactly when you would think to check. Closes improvise-t14d, improvise-rr8n and improvise-vgp4 — the last stale-open, fixed by |
||
|
|
78a7bbf4f9 |
Merge pull request #149 from fiddlerwoaroof/fix/rr8n-one-hint-table
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(tui): one key table on screen, and it is the derived one (improvise-rr8n) |
||
|
|
84c73e8739 |
Merge pull request #145 from fiddlerwoaroof/fix/t14d-title-bar-escape-hatch
fix(tui): the title bar's escape hatch outranks the document name (improvise-t14d) |
||
|
|
64bcb821da |
fix(cli): a script's command is built against the cursor it will run against (improvise-6uva)
`improvise cmd` and `improvise script` resolved every command through
`CmdRegistry::parse` — the pure arm, which builds `CursorState::default()`: row
0, col 0, and a grid of zero rows and zero columns. The interactive arm, which
builds `CursorState::from_ctx(ctx)`, was never reached from a script. So every
`Move` and `enter-advance` snapshotted a zeroed cursor at PARSE time, clamped to
(0, 0) and emitted `SetSelected(0, 0)` — worse than a no-op, since it RESETS the
cursor. Nothing could position it, so every cursor-reading command was pinned to
the origin.
Reproduced at
|
||
|
|
6e10bb3afa |
Merge pull request #142 from fiddlerwoaroof/docs/kb-session-facts
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
docs(kb): the session's rulings, deferrals and doctrine |
||
|
|
915d0fefeb |
fix(tui): one key table on screen, and it is the derived one (improvise-rr8n)
Two hand-written key tables were drawn BESIDE derived ones, in a different notation, and one of them was false. The tile bar's non-TileSelect hint read " Ctrl+^v<-> to move tiles" while Ctrl-Left/Right/Up/Down are bound in Normal to enter-tile-select -- pressing one ENTERS tile mode and moves nothing. It was the only persistent on-screen documentation of those keys, and it spelt Ctrl+ where key_label, and therefore every derived hint and help row, spells Ctrl-. The fix DELETES both of the tile bar's hints rather than rewriting one, which departs from the ticket's acceptance criteria and does so on the ticket's own evidence. rr8n proposed rewriting the string and suppressing the STATUS BAR's hint in TileSelect. But the derived status line is a strict superset of the tile bar's literal -- it carries Space, h/l and Tab, which the tile bar's omits, as the ticket's own finding 2 records -- and it cannot go stale, being read off the keymap. Suppressing it would have deleted information and kept the table that had just been shown to rot. In Normal the derived line already says T:tiles, so only the Ctrl-arrow spelling is lost, and it was never documented correctly. The wizard goes the other way and there the ticket is right. Its overlay draws correct per-step hints; the status bar drew one static line under it, wrong on four of eight steps, including telling the user Esc cancels on Done where Esc goes BACK. That line is derived too, but from the wrong input -- the wizard's real keys are resolved per step inside HandleWizardKey. So draw_status suppresses its hint fallback for that one mode. The rule, stated in context/code/tui.md: keep whichever table is derived from the thing it describes. Five tests. Four faults injected, each caught by a distinct test; the sharpest is suppressing the hint fallback unconditionally, which passes both tests aimed at the suppression and is caught only by the counterweight asserting TileSelect still advertises its keys. Two things that let the false hint survive are recorded: every_hint_key_resolves_in_its_mode cannot see a literal in a widget, and the widget's own characterization test renders at 80 columns, where the hint does not fit and is never drawn. Evidence: context/test-evidence/tui.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
6bd6cb5771 |
fix(tui): the title bar's escape hatch outranks the document name (improvise-t14d)
`fill_line` composed the title bar's two segments by concatenating them and letting ratatui clip. ratatui clips the RIGHT, and the right segment is " ?:help :q quit " -- the only thing on screen telling a stuck user how to get help or get out. The left segment is decoration whose length is unbounded, so the affordance was the first thing sacrificed: measured through a TestBackend, a document named "Quarterly Regional Sales Analysis" stored as quarterly-regional-sales-2026.improv loses ":q quit" at 100 columns. Two smaller faults in the same three lines. The padding was `left.len()` -- BYTES -- and the title's own format string spells a "·", two bytes and one cell, so every document's right segment sat one cell in from the edge it is anchored to, before any non-ASCII name made it worse. And there was no truncation at all, so the failure was a mid-token clip of "?:" rather than a graceful drop. `Keeps` makes the priority a per-call-site decision rather than a global rule, because it genuinely differs: the title bar keeps the RIGHT (the hatch outranks the name), while `minibuffer_line` and `draw_status` keep the LEFT, which is what they already did -- there the left is the user's own typing plus the cursor, or the status message, and right priority would let a long message eat the text being edited. Truncation goes through ui::text::truncate, so widths are display cells throughout and an overflow is an ellipsis. Five tests, each rendered through a real TestBackend because the loss happens in ratatui's clip and a helper's return value cannot see it. Three faults injected, each caught by a distinct test; the reasoning and the injections are in context/test-evidence/tui.md and context/code/tui.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
755e3477c5 |
docs(kb): drill decomposition, aggregate scope, and a closed ticket read as open
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
PRs #140/#141. Gotcha 27 gains the one home for what a virtual view must BE
(`view::{records_spine,records_steps,drill_steps}` as data; `cmd/grid.rs::
steps_into_active_view` as the TUI's translation). Gotcha 44 gains the
finding: `RecordHash` is document-scoped and `AggregateHash` is layout-scoped
and cannot be otherwise, so `App::resolve_aggregate` answers only where the
host stands — that, not ADR 001 layer 2, is what blocks browser drill.
Gotcha 29 described improvise-lltt as an open gap. It is CLOSED, and verified
so: every view-scoped `ModelCommand` carries `view: String` and `model_effects`
maps it to `ViewTarget::Named`. A closed ticket cited as an open gap is the
mirror of a dead ID — it reads as a promise that work remains.
improvise-gd28 closed by REMOVING its dependency on improvise-7b8v rather than
forcing past it: the dependency encoded the premise #141 disproved. Files
improvise-t0ma, improvise-obtu, improvise-t219.
kb_consistent: TRUE, 788 facts. Dead-ID audit: 360 ids, all resolve.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH
|
||
|
|
0bd8097261 | Merge remote-tracking branch 'gh/main' | ||
|
|
7400421af8 |
Merge pull request #141 from fiddlerwoaroof/feat/gd28-aggregate-scoping
test(project): browser drill is blocked by surrogate scope, not ADR 001 layer 2 (improvise-gd28) |
||
|
|
db6593b1b2 |
docs(kb): gotcha 40 was stale in three sentences (improvise-ilvl)
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
The replay audit found `layout_version` documented as bumping "per `ModelChange::LayoutGeometry` effect". It does not: `observe_reshape` diffs `view_shapes` before and after the batch and bumps only where a view's shape actually moved, so an idempotent `set-axis` bumps nothing. The source comment at `apply_effects` has said so since improvise-pdvm; the repo map was the stale copy, and it said the opposite in three sibling sentences — the parenthetical, the "both tiers are read off the `EffectKind`" claim, and the "bumps inside the loop" claim, which is also false (it runs once, after). The observed form subsumes the gotcha 21 argument rather than restating it: an aborted batch moved no shape, so there is nothing to not-claim. Also files improvise-6uva (P1) and improvise-up8g, and records the audit on improvise-ilvl. kb_consistent: TRUE, 783 facts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
f176719fdb |
Merge main into feat/gd28-aggregate-scoping
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
71f05675da |
test(navigation): a sequence folds in order; the old law was a tautology (improvise-gjat)
`law_sequence_associativity` asserted `effects_debug((a ++ b) ++ c)` equals `effects_debug(a ++ (b ++ c))` — the associativity of `Vec::extend`, true for any deterministic `execute`, and never applying an effect. No command behaviour could move it. `doctrine(fold_tests_must_test_order_not_the_axiom)` names exactly this shape. Replaced with the property production relies on: a `Binding::Sequence` flattens into one effect vec (gotcha 21), the batch folds onto the `App` in order, and each `Move` composed against the same ctx emits an absolute `SetSelected` — so the moves do not compose and the last write wins. Four orderings are asserted, two of which land somewhere the others do not. Two injected faults, each leaving the old assertion passing and failing the new one: `Move::execute` skipping a move that moves nothing (old ok, new left: (0, 1) right: (0, 0)), and `App::apply_effects` folding in reverse (old ok, new left: (1, 0) right: (0, 0)). The second is why the batch is flattened rather than applied per command — a first version applied each separately and could not see it. Evidence: context/test-evidence/command.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
3be1653385 |
docs(kb): the session's rulings, deferrals and doctrine
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
Records the campaign's accumulated facts: the Pages-tracks-main ruling, the reserve-space-do-not-fit-it rule behind the header stability work, the decimals-by-default decision and its grammar placement, and the doctrine learned from this session's failures — a ready ticket may already be fixed, a prose count is checked by no one, a clean merge is not a tested merge. kb_consistent: TRUE. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
2ccf2e5e2c |
Merge pull request #140 from fiddlerwoaroof/feat/gd28-drill-decompose
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
refactor(view): a virtual view's shape is model-side data, not an effect list (improvise-gd28) |
||
|
|
19ba09fc8b |
fix(test): make the session load-bearing, not the view NAME (review)
The first version of this test had the exact defect it was written to expose. It derived the grid from a hard-coded `grid_in(&app, "Other", WHOLE)`, so the session, the switch and `apply_checked` could ALL be deleted and every assertion still passed. It proved a grid built for a NAME where its own name claims a grid a SESSION WAS SHOWN -- a check adjacent to the one it means, which design-principles S7 calls this repo's characteristic defect. The view is now read off `sessions.get(id).view().active_view`, asserted to have moved, and asserted to differ from the host's; the grid is derived from that and from the session's own viewport. Injected fault: delete the `apply_checked` line -- the test now fails with `left: "Default" right: "Other"`, which it could not do before. Found by the ChatGPT Codex review on the PR, which was right about this for the same reason it was right about the two predicates on #140. 1700 passed, 0 failed, 7 ignored. --check-evidence unchanged at 824/302. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
c14ab052a5 |
test(project): browser drill is blocked by surrogate SCOPE, not by ADR 001 layer 2 (improvise-gd28)
improvise-gd28 records browser drill as blocked on the addressed command form, because `ApplyAndClearDrill` is session-local and unaddressable. That argument is about the COMMIT path. Entering a drill commits nothing, and after the view-stack work already on this ticket a browser has `<` -- so what is missing is only the step that builds `_Drill`. Every command that step needs is already on the wire and already unaddressed: `CreateView`, `SetAxis` and `SetPageSelection` each NAME their view (improvise-lltt), and `SwitchView` is view-half and per-client. What a browser cannot supply is the operand. It holds `CellId::Aggregate(AggregateHash)`, an opaque u128, so it cannot compose the filter coordinates itself -- ADR 002 working as designed, and it points at the host resolving the surrogate. `App::resolve_aggregate` does exactly that and is tested. This test shows it answers only where the HOST stands. A `RecordHash` falls back to `DataStore`'s maintained index and resolves against the document, which is why a connected client's `SetCell` works from any view; an `AggregateHash` has no such index and cannot have one, since an aggregate has no existence outside the layout deriving it. So it is layout-scoped, and that layout is built from the host's active view -- which since improvise-jytm is not the client's. The test seats a session on a view the host is not on, takes a surrogate out of the grid `grid_in` derives FOR THAT SESSION, and shows the host answering `None` to an identity it had just projected. The control is what makes it discriminating: the same surrogate resolves once the host is moved onto that view, so the failure is the host's view rather than the surrogate. Without it a blanket `None` would pass. What this rules OUT is the useful part. It is not ADR 001 layer 2: a drill's mutation is addressed to no one session -- it configures the shared `_Drill` view exactly as `CreateView`/`SetAxis` already do -- and only its operand's resolution is session-scoped. It is not improvise-fdk1 either: `edit_or_drill` declines records-mode editing out loud before reaching a cell, so a browser cannot edit inside a drill grid at all, no coordinate rename is reachable, and no second staging scheme is created. The remaining work is one seam, and the cheap shape is the one every other view-scoped variant already uses: let the command name its view and resolve against a layout derived for that name. No behaviour changes here. 1699 -> 1700 tests, the one added. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
ab227cdef6 |
fix(view): restore the two predicates a mis-targeted rival-revert corrupted
Both faults were injected on purpose to show the extracted functions are on
the live path, and the revert of the second one replaced the WRONG occurrence:
`str.replace(".is_measure()", ".is_index_or_dim()", 1)` hit the first match in
the file, which is `drill_constraint`'s pre-existing predicate at line 78, and
left `records_steps`' injected one at line 137 in place. So the commit carried
two faults where it had shown one:
- `drill_constraint` stopped recognising a formula targeting `_Measure`, so the
derived measure stayed in the constraint and `matching_cells` returned no
source rows -- the defect `drill_into_formula_cell_returns_data_records`
exists to catch.
- `records_steps` put `_Index` and `_Dim` on Row and Column and then overwrote
both with `Axis::None`, while never aggregating `_Measure` away, so entering
records mode lost its spine entirely.
Found by the ChatGPT Codex review on the PR, reading the diff, and both of its
findings were exactly right.
The process failure is the part worth recording: after reverting the rivals I
re-ran clippy, fmt, --check-evidence, the node suites, the eight-crate wasm
gate and Playwright, and every one of them passed over the broken logic. The
one gate that could see it -- `cargo test --workspace` -- was measured BEFORE
the injections and never again, so the PR body's "identical, 1699 passed"
was a figure that was checkable and false. An injected fault is not reverted
until the full suite has been re-run; the targeted test passing again only
shows the targeted fault is gone.
Re-measured after this commit, on the orchestrator's machine: 1699 passed, 0
failed, 7 ignored over 38 binaries -- identical to the base at `a9cad15`, which
is what this PR claims and now actually has.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH
|
||
|
|
fe8d5404e2 |
refactor(view): a virtual view's shape is model-side data, not an effect list (improvise-gd28)
`DrillIntoCell::execute` and the records-mode command each spelled out what
their view must be as a run of `effect::SetAxis { view: ViewTarget::Active }`
pushes, interleaving the model question ("what is this view") with the UI
question ("how does a TUI keypress get there"). The two spellings shared the
`_Index`/`_Dim` spine and nothing kept them in agreement.
`view::layout` now answers the first question as data: `records_spine()`,
`records_steps(model)` and `drill_steps(key, none_cats)`, each a `Vec<ViewStep>`
of `Axis`/`PageSelection` assignments naming no effect, no `App` and no front
end. `cmd/grid.rs::steps_into_active_view` is the whole of the second question
for this front end -- a browser composing `ModelCommand`s against `_Drill` will
answer it differently without touching core.
`drill_constraint`/`drill_snapshot` were already model-side and are untouched;
core.md S8 records why their order cannot be derived a second time. `DrillState`
deliberately does not move: it holds an `Rc` and its `pending_edits` are
uncommitted writes belonging to whoever staged them, so it stays on `App` where
gotcha 30's session-local-residue tag puts it.
Behaviour is unchanged and no test expectation moved, which is the strongest
evidence a pure separation can produce. Measured on the orchestrator's machine,
before and after:
cargo test --workspace 1699 passed, 0 failed, 7 ignored over 38 binaries
node web/tests 56 tests over 6 files
node web/tests/bundle 4 tests over 1 file
playwright (harness) 68 passed, 4 skipped
--check-evidence 823 entries, 301 citing tests, 83 prose headings
Two rivals injected against the extracted functions, to show they are on the
live path rather than a parallel copy: `drill_steps` emitting `Axis::Page`
instead of `Axis::Filter` fails `drilling_fixes_its_coordinates_on_filter_not_page`,
and `records_steps` filtering on `is_measure()` instead of `is_index_or_dim()`
fails `save_with_unfinished_record_is_readable`.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH
|
||
|
|
a9cad15827 |
Merge pull request #137 from fiddlerwoaroof/fix/f9qf-pin-the-shell
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(scripts): one shell and one environment for every checker (improvise-f9qf) |
||
|
|
1ae2d2e75a |
Merge pull request #139 from fiddlerwoaroof/fix/k844-importance-overflow
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(gp-tree): a share of a large importance overflowed f32 twice over (improvise-k844) |
||
|
|
a14955cfb4 |
docs(tooling): the seventh sh-override is a TOML array, which no shebang gate can see
Reasoning: context/code/tooling.md section 5. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
f52c2df0c7 |
fix(dist): the extra-artifacts build honours its script's shebang (improvise-f9qf)
`build = ["sh", "scripts/build-web-release.sh"]` overrides the shebang the same way the old local gate did, so the script ran under dash on the release runner while declaring bash. It is the seventh such site and the only one outside a shell file; scripts/checkers.sh cannot see a TOML array, so this one is fixed by reading rather than by a gate. The script is mode 100755, so dropping the `sh` runs it through its own `#!/usr/bin/env bash`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
327a76bb58 |
Merge pull request #138 from fiddlerwoaroof/fix/tg27-narrow-window
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(web): a narrow window must not widen the document (improvise-tg27) |
||
|
|
48a1fa31db |
docs(gp): the reason k844 was deferred was wrong, and the correction is the point
context/code/gp.md §7 said reordering importance_ranking's arithmetic "moves the bit patterns misclass_rate_and_importance_are_bit_for_bit_what_they_were pins", and filed the fix on that cost. It does not. That test pins permutation_importance's RAW scores; importance_ranking consumes them afterwards, so no path it witnesses runs through the share. Measured on the commit that actually fixes k844: tests/scoring_known_answers.rs is byte-identical and not one literal moved. A cost predicted from a test's name rather than from what it calls is how a one-line fix stays filed. The wrong prediction is kept and corrected in place rather than deleted, because that is the part a future reader needs — the fact was stated in two sections and changing it is a grep, not an edit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
b39b3fbcb5 | Merge remote-tracking branch 'origin/main' into fix/k844-importance-overflow | ||
|
|
bbfdf992cd |
fix(gp-tree): a share of a large importance overflowed f32 twice over (improvise-k844)
`importance_ranking` computed `100.0 * imp[j] / total` in f32, which associates
left: a lone importance above 3.4e36 overflowed on the multiply, before the
divide that would have brought it back into range, and the feature carrying all
of the importance was reported as `inf%`.
Dividing first — the fix the ticket's title proposes — is not enough, and that
is the half worth recording. `total` overflows too: several large importances
sum past f32::MAX, and the reassociated version then divides by `inf` and
reports a serene 0% for every feature, where the original reported NaN%. That is
improvise-pv3g's `cv_regress` shape again: an overflow that corrupts a reported
number with no panic to announce it.
So the sum and the ratio move to f64 — no sum of finite f32s can overflow it —
and only the resulting share, bounded by 100 and therefore always finite, is
narrowed back. The arithmetic stops being able to produce a non-finite share
rather than a call site checking for one afterwards; `fit_csv`'s existing clamp
stays as the bar-length bound it also is. The one remaining guard,
`!total.is_finite()`, answers only an importance that arrives non-finite: an
infinite total apportions nothing, so the ranking is empty rather than NaN.
Reachable end to end: both callers score importance in the target's own units,
so an importance is an MSE difference and grows as the square of the target.
That leaves a live window between pv3g's `standardize` refusal and this
overflow, and `a_large_measures_importance_shares_reach_the_report_finite` sits
inside it — before the fix, `fit_measure` reported `[("Cost", inf)]`.
The scoring bit patterns in tests/scoring_known_answers.rs are unchanged, which
is the evidence the fix is confined to the non-finite path: `importance_ranking`
is not on any path that file pins. gp-tree still prints nothing.
Evidence in context/test-evidence/gp.md; the argument in context/code/gp.md §8.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH
|
||
|
|
76f69ce671 |
Merge branch 'main' of github.com:fiddlerwoaroof/improvise into fix/tg27-narrow-window
# Conflicts: # context/test-evidence/clients.md |
||
|
|
eefd992538 |
Merge pull request #136 from fiddlerwoaroof/fix/nxah-rollback
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(protocol): a refused frame is put back by the fold that made it (improvise-nxah) |
||
|
|
c8d715346f |
fix(web): a narrow window must not widen the document (improvise-tg27)
The report was "a narrow window clips grid columns without usable horizontal
scroll", and the ticket suspected a flex `min-width: auto` trap swallowing
`#grid`'s overflow. It was not that: `#grid` has `overflow: auto`, which
already zeroes a flex item's automatic minimum. What could not shrink was the
app bar.
Measured at
|
||
|
|
2151fe0759 | Merge gh/main into fix/f9qf-pin-the-shell | ||
|
|
253b84b2da |
fix(protocol): a refused frame is put back by the fold that made it (improvise-nxah)
`Client::key` folds a locally-resolved batch before sending it, so the page redraws on the keystroke. A refusal left those folds in place: measured against a real `Host`, a refused commit left the client one row down with its edit buffer cleared while the host's mirror of that same client was still at the origin holding the user's typing. What rolls back is `ViewState` — the thing the fold produces — never a cache. A `Command::Model` is a no-op in `reduce_view`, so the optimistic fold never touched the caches, and the bug report's own evidence (`page_coords`) cannot diverge this way: it moves only under `Projection::Grid`. What diverges is the mode, cursor, status and buffers that ride along with the model command. The rollback needed a positive acknowledgement first, which the protocol did not have: with only `Rejected` on the wire, a client holding two frames in flight cannot tell which one an answer addresses. `ServerFrame::Accepted` closes that — emitted once per accepted mutating frame, last, after everything the frame produced — the same shape as the basis-publication gap ADR 001 originally left. Two existing facts make the rule usable rather than a convention: only `Command::Model` can be refused, so a frame carrying none is answered by neither and needs no entry; and `Rejection::refused_an_edit` already separates the two `Save` refusals, so a failed write cannot consume the answer owed to an edit. A refusal drops one frame and replays the rest, because a single saved snapshot is unsound under pipelining — it would discard a later frame the host applied. This does not do improvise-3al1's force, and it does not contradict it: the 2026-09-21 wave recorded the two tickets as contradictory on the ground that a rollback would wipe the staged typing. It does the opposite — the typing frames carry no model command, are never refused, and have already settled, so rolling back the commit restores the buffer to the typing. Asserted, not inferred. Reasoning: context/code/clients.md, context/code/protocol.md §4. Evidence: context/test-evidence/clients.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
42ec30df57 |
Merge pull request #135 from fiddlerwoaroof/fix/0ygd-tab-new-measure
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(command): naming a measure inserts a column, so Tab must not advance (improvise-0ygd) |
||
|
|
cb6866b2c6 |
fix(scripts): one shell and one environment for every checker (improvise-f9qf)
`scripts/pr-reviews-test.sh` passed 19/19 locally and 2/19 in CI on the same commit, because a multi-assignment `local` is not left-to-right on bash 5 while macOS's bash 3.2 tolerates it. The obvious half of the fix is pinning the shell. The half that decides the design is not. .envrc DOES already put a nix bash 5.3.15 on PATH, which is CI's semantics -- and it is not enough. `pkgs.mkShell` exports `name`, `out`, `outputs`, `system`, `shell`, `builder`, `stdenv`, `phases` and about twenty more generically-named variables that CI does not have, so a script reading one by accident under `set -u` is SILENT in the dev shell and fatal in CI. That is exactly what happened: the broken clause read `$name`, and in the dev shell `$name` was `nix-shell-env`. Measured at 051f541^ on one machine: macOS /bin/bash 3.2 19 passed, 0 failed direnv exec . ./scripts/pr-reviews-test.sh 19 passed, 0 failed the same, with `name` unset 2 passed, 17 failed Two reasons for green, one of them the correct interpreter. A dev shell is a third environment, not a reproduction of CI. A nix shebang was measured and declined, on availability rather than speed: warm, `nix shell nixpkgs#bash --command true` is 61.8ms against an ambient 5.1ms, and `nix-shell -p bash --run true` -- the manpage form -- is 675.2ms, 132x, inside git's merge machinery for beads-merge-driver.sh. But only the `kb` job installs nix; build, test, wasm, js, harness-lint and browser have none, so a nix shebang needs an installer step on three more jobs to reach a bash those runners already ship. zsh is not a shebang change and the runner does not have it either. Both declined in context/code/tooling.md section 5. What lands instead pins interpreter and environment together, in one place: scripts/checkers.sh is the one entry point for every check_the_checker, used verbatim by CI and by the local gate. It pins a bash >= 5 (ambient first, nix only when the ambient one is older, exit 3 when neither), scrubs the environment to an allowlist, and refuses any shell shebang in scripts/ that is not `#!/usr/bin/env bash`. The pinned bash goes on the front of PATH so inner invocations get it too -- which is where the fault actually lived. The second undetected split is closed with it: the four `#!/bin/sh` and one `#!/usr/bin/env sh` scripts are now bash, and the six places that ran a script through an explicit `sh` -- overriding the callee's own shebang, which is the same disease -- now invoke it directly. Verification, injected against the real script: restoring pr-reviews' multi-assignment `local` leaves `sh scripts/pr-reviews-test.sh` at 22/22 and `direnv exec . ./scripts/pr-reviews-test.sh` at 22/22, while `./scripts/checkers.sh pr-reviews` reports 2 passed, 20 failed, exit 1 -- matching the 2/19 CI actually reported. scripts/checkers-test.sh is twelve cases, each injecting rather than asserting; the pair that carries it runs one fixture both ways, so the `set -u` case is a test of the runner and not of `set -u`. The old local gate was `for t in scripts/*-test.sh; do sh "$t"; done`, which overrides every shebang with /bin/sh -- so it ran every suite under bash 3.2 in sh-mode regardless of what the file said. It is replaced by `./scripts/checkers.sh`. Workspace suite unchanged at 1689 passing over 38 binaries. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
d5201d984b |
fix(command): naming a measure inserts a column, so Tab must not advance (improvise-0ygd)
Typing a name into the trailing `+` column of a records grid and pressing Tab created the measure and then threw the user across the grid: it added a record row nobody asked for and parked the cursor at (row + 1, 0), leaving the column the commit had just made unreachable. Enter on the same cell was correct. The cause is a stale index, not an abort and not an ordering. `AdvanceDir::Right` reads `at_bottom_right` off `CursorState::col_count`, the PRE-commit column count — `apply_effects` rebuilds the layout only after the whole batch (gotcha 23). A `+measure` commit inserts its column at the cursor's own index and pushes the `+` one to the right, exactly as `+cat` does, so after the commit the cursor is no longer at the right edge. `context/code/command.md` argued the opposite in prose: that the measure `+` has no column to its right for an index to shift into, and that both advances are already special-cased at the bottom-right edge. The first is false — the column that shifts is `+measure` itself — and the second names the bug rather than a safeguard. That paragraph is corrected here. `inserts_a_column` therefore covers both creating columns, and takes the value, because an empty name creates nothing: `created_name` is now the one home of that rule, read by `add_measure`, `add_category` and the predicate. Splitting on the buffer rather than the column is what keeps bulk entry, whose Tab-at-the-bottom- right path is reachable only from `+measure` — it is always the rightmost column — by tabbing onto the `+` with nothing typed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
22ab58f652 |
Merge pull request #133 from fiddlerwoaroof/fix/pr-reviews-inline
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(scripts): pr-reviews reads all three review surfaces |
||
|
|
a799e244af |
Merge pull request #134 from fiddlerwoaroof/fix/jz6w-keyoutcome-frame
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix(protocol): a key can ask its host to save (improvise-jz6w) |
||
|
|
051f54111b |
fix(scripts): a local is not left-to-right on bash 5, and --paginate emits one array per page
Both found by ChatGPT Codex on PR #133, both invisible on macOS, both arriving as exit 2 with no output -- jq's answer to an invalid --argjson, so a shell fault at the top of the script wears jq's exit code. `local n="$1" name="$2" f="$DIR/$n.$name.json"` creates every name before running the assignments on bash 5, so $n is unbound in the third clause and set -u kills the shell. The dead command substitution then hands --argjson an empty string. Works on macOS bash 3.2: the suite passed 19/19 locally and 2/19 in CI on the same commit. Each local now gets its own statement. `gh api --paginate` emits one JSON array PER PAGE, so a comment thread past the page size is several concatenated documents that --argjson rejects the same way. Both fetch paths now flatten through one pages_to_array (`jq -s 'add // []'`), which is a no-op on a single page. The fixture path shares that helper, which is the only reason a fixture can test it: a fixture holding a single array would exercise a shape the live fetch never produces. Three cases added, and removing the helper from the fixture path fails exactly those three, the wait case with the live exit-2 signature. Suite is 22 cases. No PR in this repo has yet had enough inline comments to reach a second page, so nothing but the test will see that one before a user does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
7e6cac0885 |
fix(protocol): a key can ask its host to save (improvise-jz6w)
`ClientFrame::Save` landed with improvise-368h and `Host::handle` has answered it ever since, but `KeyOutcome` was `Local | Upstream | Ignored`, so no resolver could say "send this frame". `save` therefore sat on `the_command_names_that_still_need_the_host_are_these`, resolved to `Upstream`, and `Host::handle` answers `Upstream` with an empty vec — gotcha 47's black hole. An implemented server feature that no key could reach. `KeyOutcome::Request(Request)` closes it, with `Request::Save` the one member and `Request::frame` the one mapping to an envelope. The variant carries a narrow enum rather than a whole `ClientFrame` on purpose: a resolver handing out arbitrary frames could compose a `Viewport` (the page's fact, not the keymap's) or a `Commands` batch, which would be indistinguishable on the wire from a `Local` while skipping the local fold `Local`'s contract requires. `requested` is checked first in `step`, so no name is in two lists, and a request cannot travel inside a `Binding::Sequence` — a sequence is one frame. `save` leaves the host-needed list in the same commit, as gotcha 47 requires. The guard is end to end, in `browser_round_trip.rs`: Ctrl-S on a real `Client` yields `ClientFrame::Save`, and a real `Host` over a real `App` writes the document to storage. Two half-tests that never meet is exactly what left this gap open. Reasoning in `context/code/clients.md`; evidence and the injected rivals in `context/test-evidence/clients.md`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
0e10af005a |
docs(pr-review): a commit_id is per-comment, not per-review
Found by dogfooding the new script on PR #122, the PR that prompted it. One review submitted between 19:48 and 19:53 carries five inline comments: three name |
||
|
|
a47310d50f |
fix(scripts): pr-reviews reads all three review surfaces (improvise-xgra)
It printed review BODIES only and was blind to inline review comments -- the surface a human reviewer is most likely to use. On PR #122 the user reviewed with the body "Generally good, added comments inline." and five substantive rulings underneath it; pr-reviews printed the one-liner, and an agent reported the PR as awaiting review while the answers sat on it. pulls/{n}/comments and issues/{n}/comments join pulls/{n}/reviews, all three interleaved in time order, each inline comment carrying its path and line (falling back to original_line, which is what an outdated comment has left). The exit contract is unchanged: 0 means something exists against the current head, 1 means the wait elapsed, 4 is usage. An inline comment at the head now satisfies --wait -- it carries a commit_id and is exactly the case that failed. An issue-level comment does not: it names no commit and so makes no claim about which tree was read. The usage's exit-code warning is widened from "do not pipe into head/tail" to the real rule: nothing may follow the script in the same `;` list either, because a trailing `echo "exit=$?"` makes the status the echo's. scripts/pr-reviews-test.sh is the check_the_checker, fixture-driven and needing no network, wired into CI's kb job beside pr-watch-test.sh and release-preflight-test.sh. Five faults were injected and watched to fail; context/test-evidence/tooling.md records which case caught each. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
d672985b07 |
Merge pull request #132 from fiddlerwoaroof/docs/adr-004-rgb-ruling
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
|
||
|
|
85c273952f |
docs(adr): keep the Rgb arm — the user ruled on the one choice left open
"Keep full color support in themes" (review on
|
||
|
|
56632430db | Merge pull request #122 from fiddlerwoaroof/docs/adr-004-faces | ||
|
|
6a4c7dcd8e |
docs(adr): ADR 004 accepted — the user answered all five open questions
Status proposed -> accepted. Each answer is folded into the clauses and recorded verbatim in a new "What the user decided" section, with what it settled and where it now lives. The questions are kept: a decision whose alternatives have been deleted reads as though it was never in doubt. Two answers changed the decision rather than confirming it. REVERSE IS IN, AND MY OBJECTION TO IT WAS WRONG (Q3). The draft excluded it because "CSS, Swift and Qt would have to compute it, which makes resolution stateful". The user asked whether a class overriding custom properties could do it. It can, and working it through shows the objection was mistaken: the swap happens in the RENDERER, after resolution, reading the face's own two custom properties crossed — a re-reference, not a computation — so `resolve` stays context-free and clause 3 is untouched. The `Default` case, which is the one that would have broken it, is covered by the var() fallback. No reversed palette is needed, and neither is `--accent-ink`: a hardcoded ink token makes the same assertion about the surface that `fg(Color::Black)` does, one layer up. Swift and Qt swap two values they already hold. The portable set is six, and the twelve hand-rolled `fg(Black).bg(accent)` sites stop asserting the ink is black — a latent light-terminal bug. THE FORMAT IS JSON, AND THE DEFERRAL DISSOLVED RATHER THAN BEING MET (Q5). It was deferred on the condition that improvise grows a configuration story. Download-edit-upload is not a config file: no search path, no precedence, no absent-file policy — it is an export/import pair, the shape export_csv already has. So the larger question stays unmade. JSON costs no new dependency (serde_json is already in every crate but improvise-protocol, where it is optional); the types derive serde in the protocol and the serde_json call happens at the front ends, keeping the bundle footprint unchanged. "Editable by hand" constrains the shape: face names as keys, stable ordering, no surrogate keys. And a published face name is a compatibility surface — stated as a cost, not only a benefit. The other three. Q1 (the item-add/category-add split is an accident) is the one flagged as expensive and went the cheap way: no face name encodes it, and the default theme makes them agree — which is clause 8's ONE DECLARED EXCEPTION to the reproduces-today-exactly property, written down because the migration's whole safety argument is that it changes nothing. Q2 decomposes the thirteen DarkGray modes into five faces derived from distinctions AppMode already draws (minibuffer/panel/is_editing), with the three splits that could not be justified named rather than guessed; the user's "probably" is respected, since thirteen faces would have been a transcription. Q4 makes the second slot table optional, and a terminal mostly ignores a two-table theme because it HAS the user's palette — the tables are the browser's substitute for one. Detection declined: verified that crossterm 0.29 has OSC 52 but no OSC 11 background query. Kept deliberately: every rejected alternative; the palette-relative-vs- absolute clause Codex improved; and the honest statement that the protection is a property of the shipped theme rather than of the type. The user has not ruled on dropping `Rgb`, so it is now listed as a live open choice. Gotcha 48 applied to myself, since this touched five sections: grepped every claim before changing it, which caught "Seven clauses", the stale `--accent-ink` alternative, and two headings I had wrapped across lines. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH |
||
|
|
9d2bdd39e6 |
Merge pull request #131 from fiddlerwoaroof/fix/cli-honesty
CI / Build all bundles (push) Has been cancelled
CI / Test and lint (host) (push) Has been cancelled
CI / wasm32 check (browser bundle crates) (push) Has been cancelled
CI / Browser JS unit tests (node --test) (push) Has been cancelled
CI / Knowledge base consistency (push) Has been cancelled
CI / Lint the harness crate (push) Has been cancelled
CI / Browser harness (OPFS contract + shell) (push) Has been cancelled
CI / Deploy to GitHub Pages (push) Has been cancelled
fix: the headless CLI was silent whether it worked or not, and the refusal named the wrong command |