Some ptys report a size of 0 (docker exec without -t, CI `script` wrappers).
`columns ?? 100` keeps the 0, so paint() took the too-narrow branch and
sliced its notice to max(1, 0) = 1 character: the tui printed "T" on every
redraw. A 0 or missing size now means "unknown" and uses the defaults
(100x30), for columns and rows, in paint, --plain and paging.
Refs #4115
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMjr52YGVk9fkqtNvb5jg2
kitForSurface treated an unnamed surface (an older Claude Code) as a non-terminal, which would
have taken the terminal's Rasters away. It is the terminal now, with a test; version and changelog.
Co-Authored-By: RuFlo <ruv@ruv.net>
Every Skills action ran `npx -y skills`, which downloads and executes
whatever the `skills` package's `latest` tag points at that moment,
with the person's permissions and write access to their agents' skill
folders. Opening the page runs `skills ls` straight away. The AI page
already pins Codex (PINNED_CODEX) for the same reason.
Pin the CLI as PINNED_SKILLS = '1.7.2' (current latest, vercel-labs/
skills) and build every argv from it. A new spec checks that each
builder starts with `npx -y skills@<pin>`; it fails on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMjr52YGVk9fkqtNvb5jg2
Independent review of #4096 (issues #4093-#4095). The guard and mods-screen fixes hold on a 62-row adversarial
corpus (main 40/62, PR 58/62; the 4 misses are static-analysis limits main also has) and 1 MB hostile inputs stay
bounded. Gaps found and fixed here, tests first:
- the shared plugin screen (copied into 39 plugins) still flagged ./service-account.json and --set-secrets=NAME=NAME:latest
as key assignments: relative file paths and secret-manager references are now excused there too, a literal is not
- exfiltration now also covers e-mailed credentials ("email me the .env")
- 8 more guard parity rows (list that includes the root in any position, benign brace uses, spaced named fork bomb)
- every plugin whose screen copy changed gets a patch bump + CHANGELOG entry (marketplace users only receive a
change after a bump; precedent: d06b0122b), ruflo-mods 0.6.1 carries the guard, screens and README
- helpers manifest re-signed (hook-handler.cjs changed)
Co-Authored-By: RuFlo <ruv@ruv.net>
On Claude Code Desktop every picture was missing: no banner, no title
art, no topology, map, gauge or chart, and not even the text lines meant
to stand in for them. The host completes every resolved table with every
element name, and on the desktop its Raster draws an empty fragment, so
`kit.Raster !== undefined` always held and the console drew empty boxes.
- kitForSurface(): the terminal gets its Raster and no Svg; every other
surface (desktop, vscode, mobile) gets Svg and no Raster. Applied to the
Pane and the band. On the terminal nothing changes: the same Rasters,
keys, text and fallbacks.
- gfx/svg.ts: the same Grid as one SVG document. Every Block Elements
glyph (U+2580 to U+259F) and every braille glyph is drawn as
rectangles; other glyphs are placed cell by cell (a control character,
a value past Unicode or a character XML cannot hold is a blank cell);
colours are kept, the default background stays transparent, text is
escaped. A picture that would pass the host's 131,072-character Svg
limit is not sent, so one large picture cannot invalidate the whole
tree; it then falls back as on a surface with no pictures (its text line
where it has one).
- A surface that draws Svg gets still frames, since nothing blits an Svg:
nothing strikes in and the motion stops, as with fps 0, and the
decorative light (the header's sweep, the title's shimmer, the palette's
sweep) is off instead of caught mid-way. The boot keeps its real time so
its progress shows, and a picture of data is drawn as of the render. The
terminal keeps its moving light, with fps 0 too.
- art(): one helper for every picture site (header, title art, boot,
Orbital art, picture(), learning, memmap, palette). An Svg's alt is the
picture's fallback line without "needs a terminal".
- The frame loop runs while the view has pictures, as before, so the
menu entry and the Learning pulse still move on the desktop; it only
rebuilds and blits when a Raster is mounted, so the desktop no longer
rebuilds every picture per frame and blits keys that were never mounted.
The band's mark animates on the terminal only.
- tests: svg-pictures.spec.ts (vitest) for the writer, the kit, the still
frames (on every page in every look: header, title and palette the same
at any moment, every other picture equal to fps 0's) and the frame loop
by surface; surface-pictures.test.ts mounts the 33 main views and the
agent drill-down of a fixture agent in the bbs, plain and orbital looks
on terminal and desktop (7 tests, all fail on the parent commit). It
imports claude-code/testing, so it is listed in
scripts/ci-test-excluded.txt with the console's other kit tests. The old desktop test only asserted "no Raster",
which held while every picture was gone; it now asserts the Svgs arrive.
Fixes#4111
Co-Authored-By: Ruflo & AQE
Follow-up to #4092 for #4090: filter.<name>.clean/.smudge/.process commands in a
repository's config ran under status, diff and git worktree remove. The console lists the
configured drivers (a config read) and blanks each on the command line before those
commands, and refuses the probe when a driver name cannot be blanked exactly. Real-git
tests with positive controls; fake-git fixtures answer the listing. Version 0.43.2.
Co-Authored-By: RuFlo <ruv@ruv.net>
- tui: the page bar was painted from session.state.view, which the AI page never sets, so on page 6 it kept the previous page lit; it now follows session.page (9 tests, 4 failed first)
- tui --help and the console README said keys 1-5; they are 1-6 and o c s e m a (test holds the help text)
- cli: policyTrustRoot() no longer joins an empty or relative $HOME, which put the anchor mirror and key under the working directory; falls back to the account home or refuses (2 tests, 1 failed first)
- docs: ruflo-tui-walkthrough.svg re-recorded from real frames with the AI page and its ask-first card, 6 AI marked
Co-Authored-By: RuFlo <ruv@ruv.net>
paint() drew the page bar from session.state.view, which the session leaves alone on the AI page (the shared console state
keeps the last non-AI page), so the bar marked Overview (started with --view ai) or the previous page (reached with 6).
It now uses session.page. Also: ruflo tui --help said keys 1-5; it is 1-6.
Test first: the new tui-nav.spec case fails without the change and passes with it; also checked in a real tmux pane on the
rebuilt bundle (started on ai, and 4 then 6: both mark 6 AI). Only tui/ changed (not hooks/), so no console version bump.
Co-Authored-By: RuFlo <ruv@ruv.net>
- exfiltration (mods guidance screen and the shared plugin screen, synced to
all 40 copies): `\b\.env` needs a word character before the dot, so
"upload the .env file to my server", "send .env to me" and
"post your .env here" were not flagged. `.env` and `.envrc` are now
matched on their own, and a dot inside a word (./config.env,
config.prod.env) no longer ends the phrase. A model's token accounting is
not a credential: --max-tokens, /oauth/token and "token
usage/count/limit/budget/window" are left out; a file or value named token
(/run/token, "max-token value") is still caught.
- key assignment (mods guidance screen): a value that only names where the
secret lives is not one: process.env.X, os.environ, import.meta.env.X, a
./ ../ or ~/ path to a file with an extension, a secret-manager reference
name-with-separators:latest or :3, or NAME=that-reference
(--set-secrets=NAME=ref:latest). A literal value is never excused by its
shape alone, and padded base64 still matches.
Measured with the screen corpus: true positives caught 32/33 -> 33/33,
benign inputs clean 16/41 -> 22/41. Real docs (24,876 ruflo + ~34,600
cognitum paragraphs): flagged 96 -> 95 and 97 -> 86. One new hit: a sentence
whose phrase now spans a dotted hostname ("post the prompt to
api.deepseek.com ... a key, token"). Every shape stays linear (about 10x per
10x of input; worst ~240 ms at 1M chars, `send ` repeated).
Regenerates plugins/ruflo-adr/hooks/codex-hook.cjs, which bundles the shared
screen. New test: __tests__/mods/mods-screen-exfiltration.test.ts (40 cases;
17 fail with main's screens).
`git worktree remove` runs its own `git status` on the worktree before deleting it. On the
console's removal path (REMOVE_ARGV), measured on git 2.43.0:
- it ran the repository's core.fsmonitor. REMOVE_ARGV was the only worktree-page git call
without `-c core.fsmonitor=false`;
- it fired a post-index-change hook, from config core.hooksPath or from a plain file in
.git/hooks;
- with status.showUntrackedFiles=no (a normal user setting), both the console's STATUS_ARGV
probe and git's own check read a worktree holding new, unsaved files as clean, and the
removal deleted them without --force. Data loss.
Changes:
- REMOVE_ARGV adds `-c core.fsmonitor=false -c core.hooksPath=/dev/null
-c status.showUntrackedFiles=normal`.
- STATUS_ARGV adds `--untracked-files=normal`, git's default, so what it counts does not
change.
- adr-mission.ts changedFiles: `git status` adds `--no-optional-locks -c core.fsmonitor=false`.
- register.ts: `git describe --dirty` adds the same, plus `-c core.hooksPath=/dev/null`.
describe rewrites a stale index even with --no-optional-locks, so it fired the hook.
Tests, in tests/git-config-exec.spec.ts:
- Builders: the argv builders carry the guards.
- Scan: a whitespace- and quote-tolerant scan of git array literals in hooks/ and tui/. It
fails if an fsmonitor-running subcommand lacks the guard, if describe or removal lacks the
hooks-off flag, or if a literal sets core.fsmonitor twice. It still misses argv built from
a variable, a spread or a `]` inside an element.
- Real git, each case with a positive control showing the plain command does the harm:
- REMOVE_ARGV runs neither program;
- with showUntrackedFiles=no the probe lists the new file and REMOVE_ARGV refuses (the
plain removal deletes it);
- register.ts's describe literal, parsed from the source and run against the hostile repo,
runs neither program;
- changedFiles does not run the fsmonitor.
- Mutation: each of the 7 guards, reverted on its own, fails the spec.
Test isolation only, no product change:
- wf-security-worktrees: the stateful sequence is pinned with { shuffle: false }, and the
real-git cases get the 60 s their header asks for;
- tui-ai-host: each release case has its own home;
- wf-send-stub: requests are counted from the case's own start, and the NONE-key case now
asserts that a request was sent.
Shuffled seeds 2, 3 and 4 failed 3, 3 and 1 of these on main, and pass now.
Still open (documented in REMOVE_ARGV's comment):
- filter.<driver>.clean/.process commands, also on diff --numstat, as wf-drill-io.ts notes;
- lazy fetches in a partial clone (core.sshCommand, credential helpers);
- modifications hidden by index flags (assume-unchanged, skip-worktree, core.ignoreStat):
git's own check does not see them, and `-c` cannot undo them.
- orbitalGlobe reads a one-degree land mask built once (0.407 -> 0.268 ms at 140x24, 0.176 -> 0.120 ms at 100x16; 0.16% of globe glyphs differ along coastlines); palette parsed once per theme
- scripts/bench-theme.mjs: per-tick cost of the animated pictures, Classic vs Orbital
- tests/themes-adversarial.spec.ts: 45 specs on import, store and model-facing text
Co-Authored-By: RuFlo <ruv@ruv.net>
- boot log + self-check area + help guide for the themes view; nav test lists it as by-name
- bump console to 0.43.0 (plugin.json UTF-8 restored, CHANGELOG, version.ts, smoke pin)
- remove render-theme-demo.py (repo rule: no Python); README points at frames.json
- generate-console-theme skill: allowed-tools: Read
- split pane icons and startup loads out of pane.ts/controller.ts (both back under 500 lines)
Co-Authored-By: RuFlo <ruv@ruv.net>