Skip to content

ARIA: cap sa_moltbook run summaries in reflect prompt (3 most recent, 150 chars)#351

Open
holoduke wants to merge 3 commits into
mainfrom
aria/cap-moltbook-summaries-reflect
Open

ARIA: cap sa_moltbook run summaries in reflect prompt (3 most recent, 150 chars)#351
holoduke wants to merge 3 commits into
mainfrom
aria/cap-moltbook-summaries-reflect

Conversation

@holoduke

Copy link
Copy Markdown
Owner

What

In buildCommitmentsBlock() (backend/brain-prompt.ts), cap the sa_moltbook sub-agent run summaries shown in the commitment-review block to the 3 most recent (was all ~10) and reduce each summary's truncation from 300 → 150 chars.

Why

These summaries are explicitly context-only / non-actionable (labeled as "NOT personal commitments" per commit 75a8129). Listing all of them at 300 chars every reflect wastes ~3KB of prompt space without changing any decision. Fewer/shorter entries lose no decision-relevant signal while reclaiming reflect-prompt context budget on every cycle.

Continues the standing prompt-noise-reduction drift direction (newsletter-sender filter, sa_moltbook commitment skip).

Change

  • Slice recentMoltbookActivity to the first 3 entries (most recent — history is newest-first) before rendering.
  • .slice(0, 300).slice(0, 150).
  • Non-actionable labeling unchanged. No behavior change beyond display volume.

Backend npx tsc --noEmit passes.

🤖 Generated with Claude Code

ARIA and others added 3 commits May 20, 2026 22:06
Drift audit 2026-05-20 flagged that the "Active threads" section of the
working-memory prompt was being polluted by promotional/automated streams
(currently the AutoScout24 "Nieuwe matches voor je Zoekopdracht" newsletter
was the *only* active thread shown). Real signal-to-noise on that section
had dropped to 0%.

Defense in depth:
- working-memory.ts: introduce isNewsletterParticipant() and reject new
  threads whose sender/chat matches noreply / no-reply / notifications. /
  newsletter / savedsearches / mailings. / updates@ / bounce, or known
  one-way notification domains (autoscout24, schoolkassa, rdw, anwb
  notifications). Also sweep any pre-existing newsletter threads on every
  update tick — fixes the currently-stuck AutoScout24 entry.
- brain-prompt.ts: filter active threads at render time using the same
  helper, so even if a newsletter slips past the write-time guard via
  another path, the prompt stays clean.

Intent-summary: Newsletter and automation senders were being promoted to "active conversation threads" in the working-memory prompt, crowding out real conversations Gillis is in.
Intent-tokens: newsletter, noise, active-threads, prompt-pollution, working-memory, automation-sender, filter

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…agent run summaries

The reflect-tick commitment-review surface was mining intra-run scratch
text from sa_moltbook sub-agent run summaries/details (e.g. "I'll reply
to the 6 highest-signal comments", "let me write a helper that handles
verification") and surfacing them as personal commitments needing
follow-through. Those phrases were sub-agent self-narration about
actions it already executed within that same run — not promises to a
human channel.

Fix in buildCommitmentsBlock (backend/brain-prompt.ts): the Moltbook
activity coming from getRecentMoltbookActivity() is sourced entirely
from sub-agent run summary/details fields, so stop running
extractAndClassifyCommitments() over it. Still show the activity for
context, but explicitly label the section as "already executed, NOT
personal commitments" and add an action-line note telling reflect not
to treat those phrases as promises.

extractAndClassifyCommitments() is still applied to
recentOutgoingActivity (whatsapp DMs, email, brain messages to human
channels), where the audience is actually a human and commitment
language is meaningful.

Intent-summary: phantom commitments were being surfaced from sub-agent intra-run narrative text because the commitment extractor did not distinguish sub-agent task transcripts from real human-channel messages.
Intent-tokens: subagent, commitment, attribution, phantom, moltbook, transcript, narration

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…, 150 chars

The commitment-review block in buildCommitmentsBlock() listed all ~10
sa_moltbook sub-agent run summaries at 300 chars each. These are
explicitly context-only / non-actionable (per 75a8129), so the full
list wastes ~3KB of reflect-prompt budget every cycle without changing
any decision. Slice to the 3 most recent entries and truncate each to
150 chars. Non-actionable labeling is unchanged; display volume only.

Intent-summary: Non-actionable sub-agent run summaries flooded the reflect prompt, crowding out decision-relevant context with redundant noise.
Intent-tokens: prompt, noise, truncation, moltbook, reflect, context, verbosity

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant