Commit Graph
1163 Commits
Author SHA1 Message Date
martinvladandClaude Opus 5.5 c0b5750a37 fix(console): draw the tui at the default size when the terminal reports 0 columns
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
2026-10-13 08:14:11 -07:00
rUv 1ef67bd934 Merge pull request #4096 from proffesor-for-testing/fix/mods-guard-screens-readme
fix(ruflo-mods): root-delete guard brace/nesting/fork-bomb misses, screen .env miss and false positives, refuse-risky README
2026-10-12 13:35:09 -07:00
randRuFlo 62ec096da4 chore(console): leave the version bump to the next console release (its screen change rides along; main bumps console hourly and the CHANGELOG conflicts every time)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:07:42 -04:00
r b55e480e22 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 16:07:28 -04:00
RuFlo 666d75137c Merge origin/main into pr-4113 (console 0.43.5 above 0.43.4)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:02:36 -04:00
RuFlo 263826b0ef fix(console): hints name the skills pin from PINNED_SKILLS, limits documented; console 0.43.5 (#4113)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 15:42:40 -04:00
r e036655bed Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 15:41:53 -04:00
r aaad3e0cdd Merge origin/main into pr-4113 2026-10-12 15:40:41 -04:00
RuFlo e70b450819 fix(console): a host that names no surface is the terminal; console 0.43.4 (#4111)
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>
2026-10-12 15:40:34 -04:00
r dcf79b15bc Merge origin/main into pr-4112 2026-10-12 15:34:02 -04:00
rUv 1fc40ee12f Merge pull request #4067 from proffesor-for-testing/fix/console-lastresult-expired
fix(console): console_state reports an expired confirm card as lastResult.expired
2026-10-12 12:33:48 -07:00
r 57d25490d6 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-ai-team/CHANGELOG.md
#	plugins/ruflo-console/CHANGELOG.md
#	plugins/ruflo-loop-workers/CHANGELOG.md
2026-10-12 15:21:42 -04:00
rUv d6832d77eb Merge pull request #4043 from ruvnet/fix/loop-worker-skill-12-workers
fix(ruflo-loop-workers): loop-worker skill lists all 12 workers
2026-10-12 12:01:29 -07:00
randRuFlo 601783907e chore(plugins): rebuild the adr/ddd/sparc Codex native bundles for the screen change
CI's all-plugins-smoke runs build-codex-mod-hooks.mjs --check (esbuild 0.25.0) and found the generated
codex-hook.cjs files drifted from the shared screen they bundle. Regenerated with the same esbuild version;
codex-mod-hooks tests 26/26, every all-plugins-smoke workflow step reproduced locally.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 15:00:39 -04:00
martinvladandClaude Opus 5.5 fa03159b48 fix(console): pin the skills CLI the Skills page runs
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
2026-10-12 11:53:17 -07:00
rUv b154f4febf Merge pull request #4110 from ruvnet/batch/ai-team-4
fix(ai-team): isolation, evidence audit, memory timestamps, index race (batch of #3995, #3996, #3997, #4004): 0.3.1
2026-10-12 11:51:31 -07:00
RuFlo d50a74a4b8 Merge origin/main into pr-4067 (console 0.43.3 above 0.43.2)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 14:49:53 -04:00
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 5caaa53a1b chore(console): 0.43.3 for the console_state expired flag (#4067)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:55:22 -04:00
randRuFlo d2a2c98c9c review(#4096): shared-screen references and email verb, plugin version bumps, helpers re-signed
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>
2026-10-12 13:39:02 -04:00
Dragan SpiridonovandRuflo & AQE d89973b4dc fix(console): draw pictures on Claude Code Desktop as Svg, decide by surface
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
2026-10-12 19:38:12 +02:00
r 17adbae0ff Merge origin/main into pr-4067 2026-10-12 13:36:09 -04:00
randRuFlo 5a85751f96 chore(loop-workers): 0.3.5 for the 12-worker skill table (changelog)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:35:56 -04:00
r 469d3b5035 Merge origin/main into loop-worker skill fix
# Conflicts:
#	plugins/ruflo-loop-workers/skills/loop-worker/SKILL.md
2026-10-12 13:35:48 -04: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
randRuFlo ffe7b6f93d chore(ai-team): 0.3.1 for #3995 #3996 #3997 #4004 (changelog)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:34:05 -04:00
r bd70569579 Merge pull request #4004 (rudycelekli) into batch 2026-10-12 13:33:39 -04:00
r 12d36077cd Merge pull request #3997 (rudycelekli) into batch
# Conflicts:
#	plugins/ruflo-ai-team/src/store.mjs
2026-10-12 13:33:39 -04:00
r 3147e0e204 Merge pull request #3996 (rudycelekli) into batch
# Conflicts:
#	plugins/ruflo-ai-team/src/store.mjs
2026-10-12 13:33:29 -04:00
r d1d5733f13 Merge pull request #3995 (rudycelekli) into batch 2026-10-12 13:33:17 -04:00
r 8414251578 Merge remote-tracking branch 'origin/main' into pr-4096 2026-10-12 13:28:20 -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 620651e22a docs(ruflo-mods): refuse-risky refuses nearly every ruflo mod unless it is listed
The README said only ruflo-swarm and ruflo-console (plus ruflo-protector)
need a modTrustAllow entry under modTrust=refuse-risky. In fact almost every
shipped ruflo mod writes its status file ($.fs.write) and most hook tool.call,
and both count as risky: a static scan of the 45 shipped mods judges all 45
risky, 35 of them for those two reasons alone.

Say so, and tell people to build the allow-list from the observe-mode
"ruflo mod trust: ..." lines before switching to refuse-risky.
2026-10-12 15:52:43 +02:00
Dragan Spiridonov da309210ef fix(screens): catch .env exfiltration, stop flagging model token talk and secret references
- 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).
2026-10-12 15:52:43 +02:00
Dragan Spiridonov 747bb5ee1c fix(guard): root-delete guard expands brace lists, judges deep nesting by tokens, catches fork-bomb definitions
The pre-bash guard (mods dangerous-command.ts, both shipped hook-handler.cjs
copies and the helpers-generator fallback) missed:

- brace expansion: `rm -rf {/*,}`, `{/,}*` and `{,/}*` expand to `/*`, which
  GNU rm deletes; `rm -rf /{tmp,}` and `{rm,-rf,/}` were documented limits.
  Unquoted {a,b} lists (nested or glued to text) now become separate words,
  as bash expands them. Quoted or escaped braces, anything inside ${...} and
  {1..3} sequences are left alone. A quoted string with braces is rescanned
  like one with spaces, so `bash -c '{rm,-rf,/}'` is caught.
  Expansion is iterative with a linear group finder: no recursion to
  overflow, no quadratic rescans. Past 4096 words or 1M characters of work,
  an rm in progress fails closed and the list itself is judged by its tokens,
  so an oversized list cannot hide the rm it spells.
- nesting past four `bash -c` levels: only the literal phrase was matched, so
  `rm -fr /`, `rm -rf '/'`, `r"m" -rf /` and `rm --recursive --force /`
  passed at depth 5, and a nested `rm -rf /tmp/x` was refused. The string is
  now judged by its tokens (quote characters dropped first): an rm and a
  possible root operand anywhere in it. Backtick bodies past the bound too.
- fork bombs: only the exact `:(){:|:&};:` spelling was matched. The
  definition itself is now caught in any spacing and under any name,
  including `function f { f|f& }`, wherever the call comes later.
- the short-option checks (/^-[a-z]*r[a-z]*$/) were quadratic on a long
  failing option; they are now linear.

All four copies are derived from one source and stay byte-identical (the two
.cjs files) or annotation-identical (the mod). 42 new table rows; with main's
guard 27 of them fail. A 209-row differential corpus agrees across every copy,
blocks every miss above and changes no other verdict.

helpers.manifest.json is NOT re-signed here (no signing key): until the
maintainer runs `node scripts/sign-helpers.mjs`, as in 1803bd9d7,
__tests__/helper-signing.test.ts ("its hashes match the actual shipped helper
files") fails and helper refresh refuses the new hook-handler.cjs.
2026-10-12 15:52:43 +02: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