Skip to content

feat(memory): ship preset procedures recalled like learned ones - #783

Merged
olibaron merged 1 commit into
mainfrom
feat/shipped-procedures
Nov 24, 2026
Merged

olibaron merged 1 commit into
mainfrom
feat/shipped-procedures

Conversation

@olibaron

Copy link
Copy Markdown
Contributor

Summary

  • Shipped procedures. The aeven preset now ships procedures/linkedin-post.md. It is a browser procedure for LinkedIn's post composer, recorded live from drafts (nothing was posted). It covers:
    • removing the link card before adding media, and the selector trap between the card's Dismiss button and the composer's;
    • images and video;
    • Celebration, Event, Job, Poll, Document and scheduled posts;
    • the 3,000-character limit;
    • discard and save-as-draft.
  • Why not a skill. Every skill's description goes into every session's catalog, so skills don't scale. A shipped procedure is recalled only when the turn matches it, the same way a learned procedure is.
  • ctx.memory.ship() / shipped(). tool-capability reads the shippedProcedures directories (new config field), parses each Markdown file with YAML frontmatter (name, description, summary, optional domain), and registers them as an effect.
  • Recall (memory-memos).
    • Shipped procedures are scored beside the owner's learned ones.
    • A user procedure with the same name supersedes a shipped one.
    • One candidate slot is reserved for a shipped procedure, and shipped hits lead the recall block. Before this change, the 16,000-character unjudged budget dropped the shipped hit when a user had many memories.
  • Other memory operations. memory_get answers shipped:<name> ids. edit, forget and status changes decline shipped ids. Settings → Memory lists only the user's own procedures. The learner can offer a shipped procedure for revision, which creates the user's own copy.
  • Send guard (browser-chromium / tool-browser).
    • Plain Enter in a post composer types a line break, so it no longer asks for approval.
    • Cmd/Ctrl+Enter, send and reply composers, and Post/Send clicks still ask.
    • The approval card gets a first row naming the action that triggers the send ("Press Meta+Enter" / "Click “Post”"), in zh, en and es.

Agent Note: .agents/notes/implemented/architecture/2026-11-24-shipped-procedures-recalled-like-learned-ones.md.

Verification

  • Gates: pnpm run check:ci exits 0. Unit tests for the changed packages pass: 34 files, 413 tests. pnpm run build passes.
  • Recall, checked live in dev desktop:
    • A LinkedIn link-plus-image question recalls linkedin-post at line 4 of the recall block.
    • memory_get("shipped:linkedin-post") returns the full procedure, and the answer follows it.
  • Send guard, checked live:
    • In LinkedIn's composer, plain Enter makes no approval card; Cmd+Enter still asks.
    • In synthetic composers, Send and Reply ask; Post with plain Enter doesn't.
  • Not checked live:
    • The learner turning a correction into the user's own copy, which needs a real task.
    • The approval card's new row on screen, which would need a real send approval.

🤖 Generated with Claude Code

The aeven preset ships procedures/linkedin-post.md, a browser procedure
for LinkedIn's composer (link-card removal before media, content types,
limits) recorded live from drafts. tool-capability reads the preset's
procedure files and registers them through ctx.memory.ship(); the
memos provider scores them beside the owner's learned procedures, a
same-named user procedure supersedes a shipped one, and shipped hits
lead the recall block so the unjudged budget cannot drop them.
memory_get answers shipped ids; edit, forget and status changes decline
them; the learner offers them for revision into the user's own copy.

The browser send guard no longer asks for approval when plain Enter
types a line break in a post composer; Cmd/Ctrl+Enter and send
composers still ask, and the approval card names the triggering key or
click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@olibaron olibaron added area/web Browser and Electron graphical interfaces kind/feature Adds or intentionally changes behavior. area/tools skip-ci Merge without starting the CI lanes labels Nov 24, 2026
@olibaron olibaron closed this Nov 24, 2026
@olibaron olibaron reopened this Nov 24, 2026
@olibaron
olibaron merged commit 7f93241 into main Nov 24, 2026
12 of 14 checks passed
@olibaron
olibaron deleted the feat/shipped-procedures branch November 24, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tools area/web Browser and Electron graphical interfaces kind/feature Adds or intentionally changes behavior. skip-ci Merge without starting the CI lanes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant