diff --git a/docs/dream-cycle/LEDGER.md b/docs/dream-cycle/LEDGER.md index 4198608219..0272c0b823 100644 --- a/docs/dream-cycle/LEDGER.md +++ b/docs/dream-cycle/LEDGER.md @@ -256,6 +256,6 @@ as a first-class, high-priority candidate, not a background note. | 2026-11-01 | security | Directly continuing 10-31's own disclosed Recommendation #2: `PolicyEngine.evaluateMessage()`'s `getOperationForMessageType()` had no case for `trust-change`/`topology-change` (the two federation message types that mutate a peer's trust level or the mesh topology itself) — both fell through `default: return 'send'`, the same data-plane floor as ordinary messages, granted from `ATTESTED`, with no `SecurityPolicy`-configurable threshold at all (unlike write/memory/spawn, fixed 10-31). Confirmed live/reachable at both call sites (`federation-coordinator.ts:282` outbound, `plugin.ts:485` inbound via the Ed25519-verified dispatcher); both message types already in `DEFAULT_SECURITY_POLICY.allowedMessageTypes` and `CONSEQUENTIAL_MESSAGE_TYPES`, so not a reachability-gated fix like 10-31's own deferred caveat. Added a dedicated `admin-change` `CAPABILITY_GATES` entry (TRUSTED+) plus a new `minTrustLevelForAdmin` policy field, mirroring the write/memory/spawn shape. SCAN: intelligence (`SONAManager`'s 10-27 EWC Fisher-map fix only wired `BalancedMode`'s snapshot method — edge/real-time/research/batch modes get zero catastrophic-forgetting protection, new finding, deferred), swarm (`TaskOrchestrator.failTask()`'s retry path never calls `agentRegistry.completeTask()`, permanently stranding the owning agent's `currentTask`/status on every retried task — distinct lifecycle-leak bug from 10-14's lookup-table typo in the same file, new finding, deferred) | #4633 | #4634 | yes | ACCEPT | 7 new tests (4 discriminating, 3 controls), stash-isolated baseline fails 4/17 exactly as predicted → candidate 17/17 pass; full `@claude-flow/plugin-agent-federation` suite 684/684 (677+7 new), 0 regressions; `tsc --noEmit` 5 pre-existing unrelated module-resolution errors (isolated-install artifact) byte-identical with/without candidate, 0 errors in changed files; independent adversarial critique (fresh context, independently re-ran stash isolation + full suite, independently confirmed reachability via the Ed25519-verified inbound dispatcher and real peer-registry state on outbound) CONFIRMED core bug + PASS shippability; 2 non-blocking caveats (pre-existing `claim-event`/`agent-handoff` fallthrough, already covered by 10-31's own disclosed allow-list gap; an uncited "Identiverse 2026" editorial source comment, trimmed same session) | 0ecc3499... | 10-26/10-27/10-28 MERGED (3/3 of trailing window with a decision); 10-29/10-30 real branches confirmed, too recent to call; 10-31 #4619 **MERGED** (now HEAD-1 on main, this session's own base). Prior gist (10-31, security) scored 9/10 — first miss on the <1500-word point since a long compliant streak (1541 words); 2+2+2+2+0+1 | **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, pre-row):** `git ls-remote --heads origin "dream/*"` tonight found a `dream/2026-11-10-hive-mind` branch that the 2026-11-10 note above does not mention — "hive-mind" isn't a DEEP surface (it's a SCAN surface under slot 0), so this looks like an undisclosed SCAN-override night (precedent: 2026-09-24, 2026-10-20, both of which DID disclose the override explicitly). A fate-check sub-agent was dispatched to find its issue/PR and confirm whether an override was disclosed there; **it had not returned by the time tonight's own row was written** (not blocked on — STEP 0.6 protects research depth over chasing a supplementary check) — this is logged here rather than fabricated, to be resolved by a future night's STEP 1 if not added as a follow-up comment first. Same reason: tonight's own STEP 1.2 prior-gist score is **not scored** below — the 11-10 gist's content was not located this session (not merged to `main`, no local copy, and the fate-check that would have found its PR hadn't returned). -| 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