diff --git a/docs/dream-cycle/LEDGER.md b/docs/dream-cycle/LEDGER.md index 0272c0b823..41c3059fc3 100644 --- a/docs/dream-cycle/LEDGER.md +++ b/docs/dream-cycle/LEDGER.md @@ -257,5 +257,11 @@ as a first-class, high-priority candidate, not a background note. **Correction (2026-11-01, post-review via PR #4634 comment thread, verified against repo source same session):** the 11-01 row above overstates in-repo reachability. An accepted inbound `trust-change`/`topology-change` message only reaches `inbound-dispatcher.ts`'s generic `eventBus.emit(\`federation:inbound:${message.type}\`, ...)` — per ADR-109's explicit "event emission, not direct callback" design, nothing in this package subscribes to that event itself; acting on it is the integrator's job. `plugin.ts:263`'s separate `federation:trust-change` emission comes from `TrustEvaluator`'s own interaction-scoring callback, not from inbound messages. So the fix closes a real authorization-boundary gap at the gate governing what reaches any integrator-registered listener, not a live, self-contained in-repo privilege escalation. The fix, its 7 tests, and the defense-in-depth property are all unaffected — only the reachability framing in the issue/PR write-up was corrected (not the witnessed gist text, per the 2026-10-16 precedent of recording a correction here rather than re-editing/re-witnessing a prior night's gist). Also noted: PR #4580 (external contributor, open since 10-29) proposes the same write/memory/spawn-floor fix already shipped 10-31 via #4618/#4619 — flagged for a maintainer to close as superseded, not actioned from this session since it isn't this session's PR. **Note (2026-11-10):** confirmed via GitHub MCP tools before tonight's own row: a genuine 5-night run gap 11-03 through 11-07 (no branch/issue/PR for any date, already disclosed by the 11-08/11-09 nights, not re-investigated further). 11-02 (intelligence, #4659/#4660) still OPEN/draft, 8 days, not stale. 11-08 (memory, `LearningBridge` post-consolidation signal-starvation fix, #4884) closed via PR #4910 **CLOSED, not merged**. 11-09 (swarm, `QueenCoordinator` failover/delegation-cap fix, #4902) closed via PR #4908 **MERGED**, plus a follow-on release PR #4927 **MERGED**. Both 11-08 and 11-09 ran with real detailed issues but neither pushed a `dream/*` branch (STEP 20-24 silently skipped or diverged from convention both nights — #4908/#4910 exist as PRs without a matching `dream/2026-11-08-memory`/`dream/2026-11-09-swarm` branch in `git ls-remote`), a distinct gap from the already-tracked "ledger rows only reach main via PR merge" issue; worth a future automation/meta night's attention. Trailing-decided-PR merge rate: 7/9 merged over the last 9 nights with a decision (11-08's #4910 is the one non-merge). **Note (2026-11-11, resolved post-row):** the `dream/2026-11-10-hive-mind` branch (not mentioned by the 2026-11-10 note above) is a disclosed SCAN override: 2026-11-10 was `DEEP=performance, SCAN=security,hive-mind`, and its own issue #4937 explicitly scored the hive-mind-surface `RaftConsensus` legacy `requestVote()` finding (4.9/5) above every performance-DEEP candidate considered (next-best 3.95) and named the 2026-09-24/2026-10-20 override precedent — not an undisclosed deviation. Confirmed via GitHub MCP: issue #4937, PR #4938, **MERGED** 2026-11-10. 11-10's own gist publish was blocked by the auto-mode permission classifier ("Public Data-Sharing Upload" denial, not a `gh`-auth failure — a third distinct cause beyond the usual FALLBACK, also seen 11-08/11-09), full report embedded in #4937 §13 instead. 11-10 did not itself score a prior gist (it scored 11-09's, 10/10, embedded in #4902). Tonight's own STEP 1.2 prior-gist score is still **not scored** below — the fate-check that surfaced the above also produced a real, useful supplementary swarm finding (see issue #4960's own follow-up comment: `RaftConsensus.appendEntries()`'s legacy path still has zero log-contiguity check, directly adjacent to and explicitly deferred by 11-10's own fix — a strong ~4.65/5 candidate for a near-future swarm/hive-mind night) but did not return a clean 11-10-gist score before this row was finalized. +**Backfill note (2026-11-16, STEP 1):** 2026-11-12/13/14 each pushed a real `dream/*` branch with an evaluated, witnessed draft PR (confirmed via `git ls-remote` + PR body, not assumed — see STEP 1 guard against inferring failure from a sparse table), but none appended its ledger row (a real STEP 25 gap, three nights running). Backfilled below from each PR's own evaluation receipt. 2026-11-15 (performance slot) has no `dream/*` branch at all — a genuine skipped night, not backfilled (no evidence to backfill from). + +| 2026-11-12 | intelligence | `SONAManager.triggerLearning()` (`v3/@claude-flow/neural/src/sona-manager.ts`) re-filtered the *entire* trajectory backlog every cycle with no "already learned from" marker, continuing 10-27's own disclosed follow-up. Added `Trajectory.learnedFrom` flag set post-`learn()` success. Post-critique correction: fix removes the O(backlog-size) multiplier on EWC-means growth but leaves a deeper O(cycle-count) unbounded-accumulator cause (in `BalancedMode.accumulateGradient()`) disclosed, not fixed — named top follow-up | #4972 | #4973 | yes | ACCEPT-scoped (post-critique) | 4 new tests, stash-isolated 3/4 fail baseline → 4/4 candidate; full `@claude-flow/neural` suite 152/152 (148+4), 0 regressions; `tsc --noEmit` clean both ways; independent adversarial critique CONFIRMED-WITH-CAVEATS — found and disclosed the deeper unbounded-accumulator growth the original write-up overclaimed as fixed | 4cfe2017... | gist local-only (`dream-gist-2026-11-12.md`), remote publish not attempted this row; not yet merged, 4 days old, not stale | +| 2026-11-13 | memory | `ControllerRegistry.initialize()`'s `INIT_LEVELS` never listed `causalRecall`, so `get('causalRecall')` always returned `null` despite a correct, already-written `createController()` case (same declared-but-unreachable-config shape as 10-28's `.set()` fix). Added `causalRecall` to Level 4 | #4982 | #4983 | yes | ACCEPT (evaluated) | 2 new discriminating tests, stash-isolated baseline fails as predicted → 94/94 candidate; full `@claude-flow/memory` suite 717/718 (1 pre-existing unrelated environmental failure, byte-identical); `tsc --noEmit` clean both ways; independent adversarial critique CONFIRMED-WITH-CAVEATS (1 non-blocking comment-accuracy nit, fixed forward) | 6d7d059d... | gist local-only (`dream-gist-2026-11-13.md`), `gh gist create` blocked by proxy policy (HTTP 403, not a GH-auth failure); not yet merged, 3 days old, not stale | +| 2026-11-14 | swarm | `ByzantineConsensus`/`GossipConsensus` never called `setMaxListeners(0)` despite the identical per-proposal listener-growth pattern `RaftConsensus` already guards against (`raft.ts:60-64`) — real `MaxListenersExceededWarning` under >10 concurrent proposals. Mirrored Raft's existing guard in both constructors | #4988 | #4989 | yes | ACCEPT | 2 new discriminating tests, stash-isolated baseline captures the real warning → 6/6 candidate; full `@claude-flow/swarm` suite 382/382 (380+2), 0 regressions, `tsc --noEmit` clean; independent adversarial critique confirmed no evaluator gaming, re-ran baseline from scratch, 50-concurrent-proposal stress test clean | 0e31d2b1... | gist local-only (`dream-gist-2026-11-14.md`), `gh gist create` blocked by proxy policy (HTTP 403); not yet merged, 2 days old, not stale | | 2026-11-11 | security | `v3/@claude-flow/cli/src/init/settings-risk-scanner.ts`'s `scanAllowRuleForRisk()` (the heuristic `ruflo init --upgrade` runs against a target project's existing `.claude/settings.json`) flagged `permissions.allow` rules pre-approving `bash/sh/python/ruby/perl/curl/wget`+dangerous-words with no per-call confirmation, but had no entry for `node`/`deno`/`bun`/`php` — GTFOBins-documented shell-breakout interpreters in the same tier as the four already covered. This repo's own committed `.claude/settings.json` (lines 14/29) carries a live, unscoped `Bash(node:*)` allow-rule this exact scanner silently passed as clean before tonight; confirmed not a documented design tradeoff (`ruflo init`'s own `generateSettings()` never emits a node-related allow rule by default, so the gap wasn't forced by avoiding a false positive on Ruflo's own output). Fixed via a new `INTERPRETER_WORDS` list feeding only `RISKY_PREAPPROVE_WORDS`, deliberately kept out of `SHELL_EXEC_WORDS` so the separate `scanCommandStringForRisk` (hook command strings, where `node