Skip to content

Give Persistent Mind a user-actions query tool and an opt-in review task that proposes automations - #5634

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mtj18ixu/agent-d34e0bc9
Sep 1, 2026
Merged

Give Persistent Mind a user-actions query tool and an opt-in review task that proposes automations#5634
atomantic merged 1 commit into
mainfrom
cos/task-mtj18ixu/agent-d34e0bc9

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • Add user-actions.query as a standalone semantic tool in cosToolRegistryreadPortos-gated, scoped agent/mind/ui (agent scope exposes it over Agent Context MCP automatically), limit clamped to 100, source reduced to { route, method }, credential-shaped values scrubbed via new server/lib/secretText.js.
  • Add a deterministic last-24h operator-action snippet to the Persistent Mind turn prompt (persistentMindUserActions.js): counts-by-type + newest 20 summaries, ~1.5k-char cap, omitted entirely when the ledger is empty. No LLM calls.
  • Register user-action-review as an install-wide, on-demand + enabled scheduled task with fileIssues: true, a v1 default prompt, a description blurb, and a generator hook that skips dispatch when the last 7 days of the ledger are empty (userActionReviewHooks.js).
  • Update the readPortos consent text to disclose the operator-action ledger read surface; no new capability flag, no PERSISTENT_MIND_CAPABILITIES_SCHEMA_VERSION bump.
  • Update the INSTALL_WIDE_TASK_TYPES pin and description-parity assertions in taskSchedule.test.js; regenerate the prompt integrity snapshot; barrel + README rows for secretText.js.

Reads the user_action_events ledger shipped in #5594. The review task proposes (files issues / queues CoS tasks) — it cannot PATCH settings or flip a schedule type.

Closes #5595. Part of #5593.

Test plan

  • cd server && npm test — full suite; touched suites (cosToolRegistry, persistentMindUserActions, persistentMindAdapter, taskSchedule, taskTypeHooks, userActionReviewHooks, cosTaskGenerator, secretText, lib/index) all green. Only unrelated sprites/atlas 10s-timeout load flakes appeared in the full run; that suite passes in isolation.
  • cd client && npx vitest run src/components/cos/tabs/schedule — green (schedule UI is server-data-driven; fileIssuesCapable/defaultFileIssues are served for the new type, so no client change needed).
  • Tool tests cover grant/deny (TOOL_CAPABILITY_DENIED), limit clamping at 100, invalid-input rejection, MCP catalog inclusion/exclusion by grant.

…tions (#5595)

Add a user-actions.query semantic tool (readPortos-gated, agent/mind/MCP
scoped, 100-event cap, credential-scrubbed output), a deterministic
last-24h operator-action snippet in the mind's wake prompt, and an
opt-in install-wide user-action-review scheduled task (on-demand,
fileIssues by default) whose generator hook skips silently when the
ledger is empty. Reads the user_action_events ledger shipped in #5594.

Part of #5593.
@atomantic
atomantic merged commit 4ce85e7 into main Sep 1, 2026
7 checks passed
@atomantic
atomantic deleted the cos/task-mtj18ixu/agent-d34e0bc9 branch September 1, 2026 19:30
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.

Give Persistent Mind a user-actions query tool and an opt-in review task that proposes automations

1 participant