A typed /ruflo yes answers only the card shown to the person or the card it names (/ruflo yes <id>); Enter again in the terminal, skills and automate fields answers the card the field raised, by id; a Claude call settles only the card it started.
Co-Authored-By: RuFlo <ruv@ruv.net>
CI builds every v3 package before verifying and gates on the history diff, so
the manifest must be regenerated from a full build, not a source checkout or a
partial build.
Co-Authored-By: RuFlo <ruv@ruv.net>
The earlier built-tree regen marked 101 verified; CI checks out source only, so those
markers regressed. Carry forward the same unattested dist entries as 3.56.3.
Co-Authored-By: RuFlo <ruv@ruv.net>
An unanswered confirm card never expired: the Room showed "155s of 30s",
every later Claude console action was refused as "already waiting", Claude
could not withdraw its own ask, and a late Yes was refused anyway ("the
confirm came more than 30 s after the ask").
- A card is cleared at PENDING_TTL_MS (30 s) by a timer registered in
state.timers (torn down with the controller) or at the next ask/call; one
Events entry, lastResult "expired: ask again", the Room says expired. The
window and gates are unchanged; expiry runs nothing; a later Yes is still
refused.
- ask-withdraw clears only a write-class card Claude raised in its own
direct console_run (origin id recorded at raise); never the person's,
deferred, follow-up, spend, install, network or delete cards; at most
3 withdraws a minute and a 10 s same-label re-ask cooldown.
- A typed /ruflo yes is refused within 3 s of a Claude-raised card or 10 s
of an expiry/withdraw (press the card itself).
- ADR and skills palette hints say which page to open and how many numbers
an entry needs.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
- Text answers (console_state, ask-Claude) no longer carry other projects'
cwd or git branch from session transcripts; group labels use the
placeholder titles already use. A branch name could carry
instruction-shaped text into Claude's context.
- "failed" follows ADR-486 §2.3: raised only after the quiet period; a
permission refusal (Claude Code's exact refusal results) and a Codex
interrupt are not failures; a seen failure is keyed on the error record's
own time, so metadata appends do not re-raise it.
- Timestamps are clamped (<= file mtime, <= now + 5 min); stores with future
stamps or baselines are repaired once on load.
- The 12 MB read budget is one per pass, shared and taken in turns by all
adapters, reserved before each read and charged the bytes read; never-read
files are read first-come first-served, then least recently read, so no
session starves.
- attention.json is rewritten at least every 5 min while the workspace runs,
failed writes back off (30 s to 5 min), and /ruflo-mods marks an old
summary stale.
- "Who is here" lists the main session and active or busy agents first, not
the whole agent store.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
fix(cli,plugins): resolve executed optional modules from the tool's own install (replaces #3954; security review in PR body)
Co-Authored-By: RuFlo <ruv@ruv.net>
Adversarial review of the first commit (a Claude devil's-advocate agent and three
Codex rounds) found inputs main reports that it dropped, a ReDoS, and quadratic paths.
- Command injection is main's rule again (child_process ... exec), tested after
comment stripping, so execSync is reported and no execFile shape is exempt: env,
node -e, python -c, bash.exe, options variables and exec passed as a value were all
bypasses. The execFile callback regex that backtracked catastrophically is gone.
- Carried block comments continue only through comment-looking lines; regex literals
are read as code (bounded to 200 chars); '://' is never a comment. Lines are built
from parts with a 12-char tail, so the stripper is linear.
- SQL placeholders: only param/placeholder names, params/values/args.length, numbers
and loop letters, in value position, outside single- or double-quoted SQL text, in
one left-to-right pass that skips escapes. pageNum, userIdx, req.body.length and
quoted placeholders are reported.
- Spec: 26 tests, including every reviewer input and linear-time checks; each of ten
source mutations fails at least one test.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
`ruflo security scan --depth deep` on a 10-repo checkout reported 10 high findings,
all false: `child_process.execFile` named in comments, numbered pg placeholders
(`$${paramCount}`) as SQL injection, and a Playwright report bundle. Mediums
included "retrieval (" read as eval and istanbul/Playwright assets.
- eval needs a word start; window.eval still matches.
- Command injection is any exec/execSync/execFile use (call, ?.(), .call/.apply/
.bind, ['exec'], passed as a value), except execFile of a literal non-shell
program with a literal argv and no shell or options variable. execSync, which
`exec[^S]` skipped, is now reported.
- A counter-shaped pg placeholder where SQL takes a value, outside SQL quotes, is
not interpolation; quoted or value-shaped `$${...}` still is. The SQL test runs in
linear time.
- Comment text is stripped before matching (strings respected); a block comment
carries only from a line-start opener that closes later.
- istanbul prettify/sorter/block-navigation/lcov-report next to a coverage marker,
and Playwright trace/data next to index.html, are skipped. Folder names are looked
up in a Map.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
Leftovers of #3817/#3822 and #3818/#3823.
Numbers from CLI JSON (#3822). JSON.parse('1e999') is Infinity; a count can
also be negative, fractional or absurd. Bounded where read with data/safe.ts
countOf / ratioOf and a new measureOf (finite, within +-1e12):
- secure.ts scanReader: every severity count and the total are at least
the listed findings, so a summary never reads CLEAN beside a listed
finding. A count or total the tool printed but no reader can trust stays
UNKNOWN (SecFindings.unreadable / isTotalUnknown), with the listed
findings only as its lower bound: "critical ?" / "high ≥2 ?",
"? findings (total unreadable)", COUNTS UNREADABLE. securityBand() is the
one rule for the band (views/bar.ts) and the menu badge (menu-style.ts):
it warns on high/critical ("N+" when anything is unknown) and on any
unknown count or total. Threat confidence via ratioOf, composition score via measureOf.
The verdict-exit judgement (#3934, SCAN_FOUND/countsWith) is unchanged.
- Same class swept in perf.ts, mh-lab.ts (labLines cells, gepa chars,
genome ids, receipts), neural.ts, memory-lines.ts,
data/evolve.ts, data/research.ts and data/cli.ts.
Mission resume (#3823). setPaused takes who resumed. The mission-resume
palette entry built inside Claude's console_run (state.control.viaModel)
resumes as 'model': hand-out counts are kept and an advisor stop-the-line
is not re-opened, so an exhausted task gets no new billed hand-out. The
person's resume (page buttons, palette, a typed /ruflo run) still gives
every task its hand-outs back.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
The statusline now builds shell command lines from HELPER_ROOT (the checkout's
directory, chosen by whoever made it). A directory named p$(...) was expanded
inside the double-quoted command; shell-active paths are now skipped.
The statusline-generator delegation smoke ran the generated helper from tmpdir,
so with CLI resolution moved to the helper root it fell through to the registry's
published CLI (intelligencePct null). It now writes the helper into a throwaway
helper root whose v3/@claude-flow/cli is the repo's built CLI.
Co-Authored-By: RuFlo <ruv@ruv.net>
A home-level helper or a user-level plugin hook serves every opened project.
hook-handler.cjs and statusline.cjs executed a CLI found under the project
(<cwd>/node_modules/{@claude-flow/cli,ruflo}, <cwd>/v3/...), and every npx
fallback ran with the project as cwd, where npx prefers the project's own
install. The plugin shims also resolved `ruflo` through relative PATH
entries, which resolve against the cwd.
- hook-handler.cjs / statusline.cjs (package and repo copies): candidates
are built from the helper's install root; for a project-local helper that
is the project, so its behaviour is unchanged.
- npx fallbacks pass `--prefix <helper root>` (generated hook-handler and
ruflo-hook.cjs too) or, in the plugin shims, `--prefix <plugin data dir or
home>`. The spawned CLI still runs with the project as its cwd.
- ruflo-hook.cjs (all four copies): relative/empty PATH entries are skipped.
Test: helper-cli-resolution-trust.test.ts (11 cases, 10 fail on main);
hook-handler-artifact-parity follows the npx args into cliSpawnArgs().
The signed helpers changed, so the helpers manifest needs re-signing.