Commit Graph
1862 Commits
Author SHA1 Message Date
rUv 1064014273 Merge pull request #4209 from rudycelekli/fix/memory-migrate-honest-20261014
fix(memory): memory_migrate reports what it migrated; force clears the marker that is checked (#4194)
2026-10-19 19:51:35 +01:00
rUv 8c6aeb6650 Merge pull request #4267 from rudycelekli/fix/memory-import-tool-failure
fix(memory): memory import reports the tool error and partial failures instead of crashing
2026-10-19 19:51:24 +01:00
rUv 251e163edc Merge pull request #4273 from proffesor-for-testing/fix/policy-tmp-reap-3164
fix(policy): remove orphaned atomic-write temp files under the policy lock (#3164)
2026-10-19 19:51:10 +01:00
kevin9327 ed98c2341e fix(intelligence): write learned patterns before a one-shot command exits (#4283)
recordTrajectory() saved stats.json synchronously but left the
ReasoningBank save to its 100 ms debounce timer. The one-shot bins call
process.exit(0) as soon as the command resolves, so the timer never
fired: patternsLearned went up while patterns.json was never written.
Flush the bank next to savePersistedStats() so the counter is never
persisted for a pattern that wasn't.
2026-10-19 09:14:27 +09:00
Dragan SpiridonovandRuflo & AQE 547ae87d47 fix(policy): keep temps of live writers and raise the orphan age floor to 10 min
Review found the state.lock invariant has a gap with mixed versions: released
versions before the dead-owner fix take over any lock older than 30 s, even a
live owner's, so a writer suspended mid-write (e.g. a sleeping laptop) could
have its temp removed by a newer holder. Keep a temp while its writer pid is
alive on this host, and until it is 10 minutes old.

Tests: live-writer temps and 5-minute-old temps are kept, verify removes
orphans on its own, and the directory case is named for what it checks.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_011Qe66m38aobVEJGHAbFVzv
2026-10-18 09:55:03 +02:00
Dragan SpiridonovandRuflo & AQE 42011db977 fix(policy): remove orphaned atomic-write temp files under the policy lock (#3164)
A writer killed between creating <file>.<pid>.<uuid>.tmp and renaming it
(SIGKILL from a caller's timeout, OOM) never reaches writeJsonAtomic's
cleanup, so a full-size copy of state.json or ledger-anchors.json stays in
the policy directory forever. On a mature ledger each copy is ~250 MB; one
host had 13 of them (1.9 GB).

Every writer of state.json, ledger-anchors.json, state.anchor.json and
ledger-anchor-head.json holds the project's state.lock, so a transaction
or verify that holds the lock removes temp files of exactly those names.
Only regular files that match <name>.<pid>.<uuid>.tmp and are at least 60 s
old are removed; symlinks, directories, fresh temps and other files' temps
are left alone, and a failure never fails the caller.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_011Qe66m38aobVEJGHAbFVzv
2026-10-18 09:48:36 +02:00
Rudy CelekliandClaude Sonnet 5.5 94fd5734ba fix(memory): memory import reports the tool error and partial failures instead of crashing
memory_import returns { error } for a missing or invalid file and
{ success: false, error, imported } when some writes fail. The CLI read
result.imported unconditionally, so a bad file printed "Imported from
undefined" and then died on a TypeError, and a partial import was reported
as a success. Check the result before printing, mirroring memory export.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-18 00:55:26 -04:00
Dragan Spiridonov f18ff4c427 fix(policy): authenticate retained ledgers and stream full audits with fenced writers (#4216)
* fix(policy): preserve authenticated ledger receipts across crash recovery

* Register operator policy ledger limits in environment precedence audit

* test(policy): assert bounded retention work instead of shared-runner latency
2026-10-17 23:10:58 +01:00
961ab6c879 fix(cli): honor the no-update startup opt-out (#4251)
Co-authored-by: shuaiyafei <16618929+shuaiyafei@users.noreply.github.com>
Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-17 17:54:13 +01:00
他们都不玩了andshuaiyafei 64d00f4ab2 fix(cli): honor no-color before rendering help and version (#4248)
Co-authored-by: shuaiyafei <16618929+shuaiyafei@users.noreply.github.com>
2026-10-17 16:35:41 +01:00
kevin e733bda318 fix(daemon): report the running daemon's TTL in daemon status (#4238) (#4241)
daemon status printed config.ttlMs of the default-config WorkerDaemon it
builds in the status process, so a background daemon started with
--ttl 0 showed 'TTL: 12h (self-shutdown)'. Read ttlMs from
daemon-state.json when the background daemon is running, as is already
done for aiWorkersEnabled and for daemon status --all.
2026-10-17 16:35:34 +01:00
bbansandbbans ca31fc52be feat(doctor): add versioned JSON health check output (#4228)
Co-authored-by: bbans <252185257+bryanbans@users.noreply.github.com>
2026-10-17 16:35:30 +01:00
xjh bd92ac5b4c fix(intelligence): forward trajectories using the ruvllm contract (#4222)
Map outcomes and steps to the fields consumed by ruvllm pattern extraction. Add coverage for success, failure, and partial trajectories.

Refs #4199 (part A).
2026-10-17 16:35:22 +01:00
xjh f04ce8df1c fix(init): stop granting blanket execution of project helpers (#4221)
Remove the broad project helper Bash permission from generated settings while preserving hook configuration and existing user permissions.

Fixes #4205
2026-10-17 16:35:17 +01:00
rUvandr 37dd507c7a fix: bump @metaharness/darwin pin from ~0.10.2 to ~0.12.0 (#3219) (#4252)
* fix: bump @metaharness/darwin pin from ~0.10.2 to ~0.12.0 (#3219)

npm published 0.11.0 and 0.12.0 after the last pin bump, leaving the
optionalDependencies range, MH_DARWIN_PIN, and the plugin helper's
DARWIN_PIN_VERSION all stale. scripts/check-metaharness-pins.mjs now
reports clean (was: STALE), and the metaharness-pin-drift CI gate,
which runs on every PR touching these files, was failing repo-wide
as a result.

Verified: check-metaharness-pins.mjs exits 0; plugin test-pin-alignment.mjs
(12/12) and test-no-tool-time-npx.mjs (26/26) pass against the new pin.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix: update v3/pnpm-lock.yaml for the @metaharness/darwin ~0.12.0 bump

Minimal surgical patch (specifier/version + the resolution block's
version/integrity), not a full pnpm regen — a full `pnpm install
--no-frozen-lockfile` here also drags in unrelated transitive bumps
(ruvector 0.2.27->0.2.41, vite 7.3.0->8.3.4, etc.) that don't belong
in a pin-drift fix. Verified with `pnpm install --frozen-lockfile`.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-17 16:35:08 +01:00
Rudy Mizrahi Celekli f429ccac53 fix: serialize learning stats read-merge-write transactions (#4240) 2026-10-17 14:59:04 +01:00
Wu Shuwen d25f333421 fix(neural): report unchanged persisted quantization storage (#4224) 2026-10-17 14:58:50 +01:00
Wu Shuwen 422e61cf03 fix(init): omit unimplemented generated hooks (#4200) (#4213)
* fix(init): omit unimplemented generated hooks (#4200)

* test(init): match quoted hook commands

* test(init): reject quoted no-op hook commands
2026-10-17 14:58:40 +01:00
Rudy Mizrahi CelekliandClaude Sonnet 5.5 f4604a0f54 fix(memory): refresh Claude memories across project and worktree roots (#4210)
* fix(memory): memory_import_claude re-imports edited files and says why one failed (#4197)

The section writes did not pass upsert, so any key already in the store was
rejected and the catch only counted skipped++, returning success:false with no
reason. Upsert like memory_store, and list the first errors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(memory): resolve Claude import roots across Git worktrees

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:58:05 +01:00
Rudy CelekliandClaude Sonnet 5.5 cfb0ed8c9e fix(memory): memory_migrate reports what it migrated and force clears the checked marker (#4194)
The handler returned the legacy store's entry count as 'migrated' even when the
marker made ensureInitialized skip everything, and force deleted a marker path
(.swarm) that hasLegacyStore never reads. Record migrated/total in the marker,
report them, say so when the marker blocks a run, and clear the real marker.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 19:07:57 -04:00
randRuFlo 0e9ccec084 Merge main into perf/mcp-memory-on-core; ruflo-core 0.2.11 (0.2.10 shipped)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 11:25:50 -04:00
rUv 934bf0b192 Merge pull request #3988 from socrates6969/feat/learning-pipeline
fix(learning): persist trajectory counts across processes; daemon jobs feed learning
2026-10-14 08:25:37 -07:00
randRuFlo 0aaff49bcb fix(cli): neural data dir resolves through getProjectCwd (env-var precedence audit)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 10:25:25 -04:00
randRuFlo fca96f9fc0 Merge main into perf/mcp-memory-on-core
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 10:24:16 -04:00
randRuFlo 9f5f933791 Merge main into fix/core-session-paths; ruflo-core 0.2.10 (0.2.9 shipped)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 10:23:47 -04:00
r 5f44eec2a0 Merge remote-tracking branch 'origin/main' into c4188x 2026-10-14 09:50:11 -04:00
rUv bb0a46b77b Merge pull request #4182 from ruvnet/feat/tui-pictures-looks-motion
feat(tui): ruflo tui draws the console's pictures, looks and motion (console 0.44.0)
2026-10-14 06:50:04 -07:00
rUv 966589ec8f Merge pull request #4187 from ruvnet/fix/aidefence-learn-miss-autopilot-load-4147-4146
fix(aidefence,autopilot): learn missed threats (#4147) and load autopilot learning (#4146)
2026-10-14 06:28:17 -07:00
rUv d4f7af9983 Merge pull request #4185 from ruvnet/fix/sona-neighbour-reinforcement-4134
fix(sona): reinforce the nearest existing pattern for near-identical tasks (#4134)
2026-10-14 06:10:39 -07:00
rUv 7359862715 Merge pull request #4184 from ruvnet/fix/memory-search-threshold-4129
fix(memory): calibrated default search threshold and near-miss hints (#4129)
2026-10-14 06:09:26 -07:00
randRuFlo 16e33df5ec Merge main into feat/tui-pictures-looks-motion (keep console 0.44.0 over 0.43.7)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 09:06:40 -04:00
rUv 2ec9c05104 Merge pull request #4181 from ruvnet/g3/skills-contracts
fix: skills, plugin contracts and ruvector/neural/kg surfaces (#4126 #4133 #4135 #4149 #4156 #4157 #4158 #4159 #4161)
2026-10-14 05:25:24 -07:00
rUv 9c62e91e9e Merge pull request #4179 from ruvnet/fix/3979-wasm-optional-patterns-metric
fix(cli): clear 'not installed' message for @ruvector/rvagent-wasm; count only new patterns (#3979)
2026-10-14 05:18:16 -07:00
rUv efa3011614 Merge pull request #4178 from ruvnet/g1/core-hooks
fix(core,cli): record failed tool outcomes, run hooks from the project root, keep telemetry off the tool path
2026-10-14 05:11:05 -07:00
rUv b9a9ffb398 Merge pull request #4186 from ruvnet/fix/memory-export-both-stores-4148
fix(memory): memory_export reads the CLI store as well as the AgentDB store (#4148)
2026-10-14 04:59:15 -07:00
randRuFlo b076720667 Merge main into feat/tui-pictures-looks-motion (keep console 0.44.0, add 0.43.6 entry)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 07:55:44 -04:00
rUv 7035c12a2c Merge pull request #4163 from rudycelekli/fix/ruflo-reviewer-role-claims-4123
docs(analyze): describe reviewer role suggestions accurately
2026-10-14 04:51:36 -07:00
rUv 1de58659e6 Merge pull request #4167 from rudycelekli/fix/agent-health-measured-20261013
fix(agent): derive health from observed execution outcomes
2026-10-14 04:50:58 -07:00
rUv 2862d70e8c Merge pull request #4165 from rudycelekli/fix/ruflo-diff-content-4122
fix(analyze): classify actual diff content and commit subjects
2026-10-14 04:45:48 -07:00
rUv e346a93d6e Merge pull request #4164 from rudycelekli/fix/workflow-fail-closed-20261013
fix(workflow): fail closed on invalid gates and unsupported steps
2026-10-14 04:42:52 -07:00
randRuFlo 2e12025f18 fix(cli): keep @ruvector/rvagent-wasm out of optionalDependencies (guard #2561); test the not-installed message without module mocking
The bloat guard no-cli-optdep-bloat-2561 deliberately forbids this package in the CLI's
optionalDependencies, so the packaging half of #3979 item 1 is dropped: the clear
'not installed, install with npm i ...' message stays. The message mapping is now an exported
function tested directly (the CI run showed the mock-factory error wrapping dropped the error
code), covering code-carrying, code-less wrapper and unrelated-package errors. package.json and
pnpm-lock.yaml return to main's.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 06:32:09 -04:00
r 1377b17c1c Merge origin/main into fix/3979 2026-10-14 06:31:45 -04:00
randRuFlo e7c29326d4 feat(tui): every console view opens in ruflo tui, with a menu, a go prompt, Back and opt-in mouse (ADR-489 phase 5)
- tui/parity.ts: a recorded decision for each of the console's views
  (same / partial / equivalent / claude-only); tests/tui-parity.spec.ts fails
  when a view in VIEWS has no decision or no row in ADR-489
- 0 opens the main menu (its keys open entries), : or / goes to a page by
  name, Esc/Backspace is Back, --view takes any page; the console terminal
  opens the AI page and the Room says on one screen that it needs Claude Code
- terminal renderer: a Box's width is honoured (the board's two groups side by
  side) and the board's entry labels are drawn (they were blank)
- --mouse (opt-in, SGR): click a page chip, wheel scrolls; off by default,
  switched off on exit, report bytes ignored without the flag
- CLI: --view validates against the loaded bundle's page list, --mouse flag

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 06:09:23 -04:00
rUv f09fd67d6a Merge pull request #4155 from martinvlad/fix/agentdb-bridge-creates-swarm-dir
fix(memory): create the AgentDB directory before the bridge opens it (#4132)
2026-10-14 02:47:35 -07:00
randRuFlo db2d737ffe fix(sona): reinforce the nearest existing pattern for near-identical tasks and report distance to the routing gate (#4134)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:46:38 -04:00
randRuFlo b3d1ec2df4 fix(memory): memory_export reads the CLI store as well as the AgentDB store (#4148)
Merges both stores by namespace+key (newest updatedAt wins), reports per-store
counts, and warns instead of silently exporting a partial set.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:46:38 -04:00
randRuFlo 1e8d37e03a feat(tui): ruflo tui draws the console's pictures, looks and motion (console 0.44.0, ADR-489 phase 4)
The standalone terminal UI now leads each page with the same title art and
pictures the console draws, as coloured cells (Raster in the terminal kit),
in the console's looks (Classic BBS default, Orbital, plain), moving at
--fps with only the changed rows redrawn.

- tui/ansi.ts: Raster; control/escape/invisible/wide code points become
  spaces, malformed or oversized cells draw nothing
- looks: --look, t key; --boot; --fps, --no-anim, --no-pictures
- focus reporting pauses the animation clock; NO_COLOR, dumb terminals,
  and widths under 44 fall back to the words
- guide: flags, looks, the t key; corrects the confirm-card sentence
- ADR-489: phase 4 recorded, parity table skeleton
- README/guide SVGs regenerated from real frames (leak-checked)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:44:48 -04:00
randRuFlo c49665ce2b fix(autopilot): load agentic-flow autopilot-learning past its exports map (#4146)
The bare subpath import threw ERR_PACKAGE_PATH_NOT_EXPORTED and the catch
swallowed it. Resolve the package root via its exported entry and import by
file URL; autopilot_learn now reports the real load error.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:43:41 -04:00
randRuFlo 26abe0b5a7 fix(aidefence): aidefence_learn can record a missed threat (#4147)
A false negative gave learnFromDetection no threat to store yet returned
success. Record a hash of the normalised input as a known miss, flag it in
scan/is_safe, and report learned:0 honestly when nothing was learned.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:42:51 -04:00
randRuFlo 497bf91db4 fix(cli,ruflo-ruvector): embeddings_hyperbolic distance refuses off-ball points; skill stops claiming norm encodes depth (#4159)
Verified: convert gives every unit-norm input tanh(0.5)=0.4621171572, and
distance on unit-norm/off-ball points was acosh of a NaN or huge value that
serialised to null with success:true. Distance now uses the curvature-correct
formula and returns success:false outside the ball.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:37:35 -04:00