Commit Graph
1125 Commits
Author SHA1 Message Date
rUv eaa2ebf2bd Merge pull request #4092 from proffesor-for-testing/fix/console-worktree-remove-fsmonitor
fix(console): worktree removal runs no fsmonitor or hooks and keeps untracked files
2026-10-12 11:49:30 -07:00
rUv 900e7d4bdd Merge pull request #4078 from nicholas-ruest/fix/cost-tracker-silent-write-failure-3227
fix(cost-tracker): log Stop-hook telemetry write failures instead of discarding them
2026-10-12 11:41:26 -07:00
RuFlo 241d7a9438 fix(console): worktree removal, status and diff no longer run a repository's filter drivers (console 0.43.2)
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>
2026-10-12 13:35:47 -04:00
randRuFlo db5f339451 chore(cost-tracker): 0.28.2 for #3227 failure log (changelog)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:34:53 -04:00
r f79e41be40 Merge origin/main into pr-4092 2026-10-12 13:28:20 -04:00
rUv 5594951d9b Merge pull request #4106 from ruvnet/fix/tui-pagebar-help-policytrust
fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative (console 0.43.1)
2026-10-12 10:20:02 -07:00
randRuFlo 29714a9e4a fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative to cwd (console 0.43.1)
- 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>
2026-10-12 12:55:08 -04:00
randRuFlo e6dbed3bf6 fix(tui): the AI page highlights 6 AI in the page bar, not the page before it
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>
2026-10-12 12:09:31 -04:00
RuFlo b4cbd4be9f review(#4097): CI test ratchet exclusion, coverage report size cap and count clamping, sparc 0.3.5 / testgen 0.3.3, sanitize receipts
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 11:15:50 -04:00
rUv 6fe5706dfb fix: correct coverage reporting and plugin workflow contracts
Fixes #4082, #4083, #4084, #4085, #4086, #4087, #4088.

Validated on ruOS with 68 focused tests, both plugin smoke suites,
strict coverage reader type checking, and source checksums.
2026-10-12 07:40:46 -07:00
Dragan Spiridonov a62c6e6ee9 fix(console): worktree removal stops running the repo's fsmonitor and hooks, and keeps untracked files
`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.
2026-10-12 15:38:36 +02:00
RuFlo d7605d24af fix(console): Orbital wide header says RUFLO, not RUVNET
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 08:38:16 -04:00
RuFlo 6c79bcab76 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:45:37 -04:00
RuFlo 79f2199367 perf(console): land mask for the Orbital globe, theme bench, adversarial theme specs
- 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>
2026-10-11 23:45:27 -04:00
rUv edee18c62e perf(console): exclude inactive SVG frames from rendering 2026-10-11 20:28:28 -07:00
rUv 8c3192c306 fix(console): replay header entrance motion on demo navigation 2026-10-11 20:26:40 -07:00
rUv ddadeaae6c fix(console): draw missing SVG icons and align animated glyph cells 2026-10-11 20:26:39 -07:00
RuFlo dc38c094ae chore(console): port the SVG demo exporter from Python to Node
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:25:09 -04:00
r 2b3dc7f7d4 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:24:41 -04:00
RuFlo dc4a519a2a fix(console): Theme Studio boot line, help guide, by-name nav, 0.43.0, no Python, files under 500 lines
- 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>
2026-10-11 23:24:30 -04:00
rUv b23b053d63 feat(console): export theme workflow as native animated SVG vectors 2026-10-11 20:19:04 -07:00
rUv 3fb35a5a0f test(console): add reproducible theme workflow demo and video export 2026-10-11 20:13:12 -07:00
rUv ad5a2ef65d feat(console): add six persistent bundled color presets 2026-10-11 20:07:48 -07:00
rUv 454d3a8bcb fix(console): retain animated Ruflo branding across Orbital pages and resize 2026-10-11 19:54:59 -07:00
rUv f8c4de3634 test(console): verify Theme Studio navigation through the full console shell 2026-10-11 19:35:31 -07:00
rUv beb40deafc feat(console): focus Theme Studio editors beside responsive live previews 2026-10-11 19:28:21 -07:00
rUv 8213cfa1db feat(console): add Theme Studio and Claude/Codex animated preset skill 2026-10-11 19:19:59 -07:00
rUv 1e25990f8f fix(console): adapt Orbital motion to narrow and short pane allocations 2026-10-11 19:11:47 -07:00
rUv c33916a07f feat(console): animate vector graph and orchestration stages 2026-10-11 19:10:07 -07:00
rUv bfcbfc2acf feat(console): add icon based perspective swarm motion and live topology depth 2026-10-11 19:05:59 -07:00
rUv 38da0805a8 feat(console): stage boot reveal and animate Swarm Control routing motif 2026-10-11 19:03:58 -07:00
rUv a43f0baa27 feat(console): choreograph Orbital logo radar and verification motion 2026-10-11 19:00:50 -07:00
rUv 2fbc8dab6f feat(console): animate actual module integrity checks in Orbital boot 2026-10-11 18:59:14 -07:00
rUv 655c747d65 style(console): refine globe coastlines lighting and orbital arc 2026-10-11 18:57:24 -07:00
rUv 9e64f5fbeb feat(console): add tilted globe lighting and sparse starfield 2026-10-11 18:55:42 -07:00
rUv 4310bc52a8 style(console): match original logo to Orbital palette 2026-10-11 18:54:26 -07:00
rUv 5fdb43462a style(console): reuse original BBS logo renderer in Orbital intro 2026-10-11 18:53:11 -07:00
rUv 181a7ad59f style(console): add shaded micro-block RUFLO lettering with depth 2026-10-11 18:51:49 -07:00
rUv fd07f3b479 style(console): use solid block RUFLO wordmark 2026-10-11 18:50:33 -07:00
rUv 58f215db21 feat(console): brand Orbital intro with animated RUFLO wordmark 2026-10-11 18:48:34 -07:00
rUv d13740908f feat(console): animate Orbital headers and ASCII globe intro 2026-10-11 18:46:30 -07:00
rUv 75f3043a11 feat(console): add optional orbital telemetry theme 2026-10-11 18:32:55 -07:00
randRuFlo b870a57f85 fix(tui): compare the pinned Codex version by string, not a built regex (CodeQL js/incomplete-sanitization)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 17:28:41 -04:00
Nicholas RuestandRuFlo 0316a4d3f2 fix(cost-tracker): log Stop-hook telemetry write failures instead of discarding them (#3227)
The Stop hook is right to never block a turn, but it also never said
anything when a write failed — those are two independent decisions that
were conflated into one. track.mjs's persistToMemory() already computed a
real, useful failure reason on a failed `memory store` call, but
TRACK_QUIET=1 (always set by the Stop hook) made main() return before that
reason was ever printed anywhere, discarding it unconditionally for every
failure mode — WAL refusal, schema drift, permissions, a future backend
change — identically and invisibly. Separately, ruflo-hook.cjs (the actual
registered cross-platform Stop-hook shim) ran track.mjs with stdio:'ignore'
and never inspected spawnSync's own result, so a crash/timeout/non-zero
exit in track.mjs itself was equally invisible.

Added _diagnostic-log.cjs: a shared, best-effort logFailure() that appends
one JSON line (ts, source, reason, sessionId) to
~/.claude-flow/logs/cost-tracker-failures.log — a home-relative path
consistent with the existing ~/.claude-flow convention used elsewhere
(global-ai-budget.ts). Capped at 512KB, rotated to the most recent 200
lines rather than left to grow unboundedly. Every operation is wrapped in
try/catch, including a call made with no argument or a null/undefined one
(destructuring happens inside the try, not in the parameter list) — the
module's whole reason for existing is to never throw, since it sits behind
the single most load-bearing invariant in this issue: the Stop hook must
still exit 0 no matter what, even if the diagnostic log write itself fails.

track.mjs now logs a real persistToMemory() failure before the
TRACK_QUIET-gated return that used to discard it; TRACK_DRY_RUN's
intentional placeholder is never logged as a failure. ruflo-hook.cjs now
inspects spawnSync's result and logs a spawn error, non-zero exit, or
signal; still calls done() unconditionally regardless.

21 new tests cover: a real failure logging correctly even under
TRACK_QUIET=1 (the actual bug condition, not just the easy unset case),
dry-run never logging, ruflo-hook.cjs's own spawn-failure layer, the
never-block invariant surviving an unwritable log directory, cap/rotation
truncating correctly, and logFailure's null/undefined argument safety.
Verified end-to-end against this machine's real local ruflo CLI in
addition to the hermetic fixtures. Full plugin smoke suite (64 checks)
passes with no regressions.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 17:05:51 -04:00
randRuFlo 9cf03b3ab9 ci(tui): build the TUI bundle for the e2e matrix with an esbuild installed on its own (RUFLO_ESBUILD_DIR)
A root npm install crashes in arborist on this workspace; the tui leg only needs esbuild. build-tui.mjs looks in the repo first, then in RUFLO_ESBUILD_DIR.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 17:04:46 -04:00
randRuFlo 7718a142b4 feat(tui): the AI page: ask Codex (read-only, pinned) or OpenRouter, each question after a card (ADR-489 phase 3)
Page 6. Reuses harness.send and the conversation bridge's sendTo, not a second harness. Host.spawn runs only the pinned Codex 0.162.0
release (never current or PATH), read-only, from a fixed argument allow-list; Host.httpSend sends only https POST to openrouter.ai or a
convoTargets host, never follows a redirect, and a key is read by variable name and never drawn. Enter shows a card of exactly what would be
sent; a lone y answers it only while it was drawn in full (#3983); spend cap from the provider-reported cost. e2e host matrix gets a tui leg
(keyless in CI, live gated). Not in this PR: the workspace-write toggle.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 16:54:16 -04:00
randRuFlo ba6f9273a3 feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, and no Claude-only chrome (ADR-489 phase 2)
Five pages (Overview, Cost, Swarm, Events, Missions) with keys 1-5 / o c s e m / Tab / Shift-Tab, a page bar, a key line that
shortens with the width, clear-and-redraw on resize, a position bar under 60 columns and a notice under 40. Room is left out on
purpose (a message box and Claude sessions this host does not have).

state.isStandalone is the capability flag: on this host the shared chrome is not drawn (no tab bar, footer buttons, Launch,
Ask Claude, Claude control card); a button nobody can press is not drawn, a state chip and a section title are. Missions reads
the ADR-406 record only. Under Claude Code nothing changes. Console 0.42.7.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 16:24:56 -04:00
rUv 228d578173 Merge pull request #4072 from ruvnet/fix/memory-purge-native-4057-hooklog-4056
fix(memory,hooks): keep on-disk format on sql.js write-back (#4057); command-recording off switch, redaction, expired-row cleanup (#4056)
2026-10-11 12:40:18 -07:00
rUv f9732f1c81 Merge pull request #4073 from ruvnet/feat/mods-hardening-toast
feat(mods): doctor repairs that repair, --strict, atomic install, startup self-check (mods 0.6.0) + toast spike
2026-10-11 12:25:06 -07:00
randRuFlo 65398f5f83 feat(mods): startup self-check toast, doctor/install addenda, spike of the engine's toast text (0.6.0)
- ruflo-mods 0.6.0: selfCheck option (default on): one toast per session when an enabled ruflo plugin is missing from the marketplace clone with no cached install, fixed text with the repair; read-only, fail-open
- smoke: /ruflo-mods stays an alias of /ruflo mods; the self-check cannot write or echo repository text
- ADR-477 addendum: what Claude Code 2.1.289 draws for icons, SGR, OSC 8, OSC 0, bidi, CR (icons only; no colour; one slot)
- ADR-404 addendum: doctor/install hardening and the self-check

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 14:11:03 -04:00