Skip to content

feat(rivet-memory): add share-sessions skill - #1244

Closed
philbert440 wants to merge 3 commits into
mainfrom
ss-6-share-sessions
Closed

philbert440 wants to merge 3 commits into
mainfrom
ss-6-share-sessions

Conversation

@philbert440

@philbert440 philbert440 commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Why

Sharing captured sessions takes several MCP tool calls and a hand edit of the review report. Nothing made the agent stop before a bundle left the machine. The share-sessions skill runs the flow end to end and stops at a printed command that the user runs.

What changed

  • integrations/claude-code/rivet-memory/skills/share-sessions/SKILL.md adds the skill. It finds sessions with session_find. The user approves, redacts (exact terms, dropped tool outputs, or both) or denies each one. Then the skill shows the full table and waits for one confirm.
  • Only after that confirm does it call session_sanitize with the per-session decisions and the decision pass. No raw bundle is ever written. Then it walks each flag by number, writes only the Mark lines, runs rh memory sanitize --resolve, and checks for zero open flags with a dry-run session_import.
  • It ends with the rh memory ingest-bundle command for the rivet-team gateway, or with the bundle path to send to a person. It lists the denied sessions. It never sends anything itself, and it never reads flagged text into the captured session.

Scope

Blast radius

The change adds one skill file and no code. The skill starts only on share requests. The MCP tools have no way to send a bundle.

Verification

  • claude plugin validate passes. It shows the same 7 warnings as main, none of them in the new skill.
  • Live: claude -p --plugin-dir <branch> in a throwaway HOME, against rh built from chore(publish): align packages to 0.4.0-beta.2 + fix missing undici deps #123 at 5accc672, with seeded Postgres and a stub decision model. These lanes pass:
    • full flow
    • deny and subset
    • redact a term
    • drop tool outputs
    • change a row before the confirm
    • flag redact
    • decision model down (nothing written)
    • no match
    • asked to push (zero tool calls)
    • team command
    • file for a person
    • natural-language trigger
    • a receiver ingest that shows from phil
  • Perf: a 3-session share takes 46.7, 47.3 and 54.7 s over five turns. The tool calls alone take 5.2 s, so the skill adds 41 to 50 s. The limit is 60 s.

Sharing sessions took four MCP tool calls plus a hand edit of the review
report, and nothing made the agent stop before a bundle left the machine.
The skill chains session_find, session_export, session_sanitize with the
decision pass and a dry-run session_import. It walks every flag with the
user by number, writes only the Mark lines, and runs the resolve. It ends
by printing the ingest-bundle command for the team server, or the bundle
path to send to a person. It never sends anything itself and never reads
flagged text into the captured session.
…ssions

The capture gateway authenticates with a bearer token, not a client
certificate. The config section has url, ca and token.
The share flow changed: no raw bundle is ever written, and a denied
session never leaves the store. session_export is gone from MCP, and
session_sanitize now reads the chosen sessions from the store with a
per-session decision.

The skill now asks the user to approve, redact (exact terms and/or
drop tool outputs) or deny each listed session, shows the full table
and waits for one confirm before it sanitizes. The final summary lists
the denied sessions. Flag session numbers follow the bundle's order,
so the skill no longer guesses a flag's text from the find excerpts.
@philbert440

Copy link
Copy Markdown
Owner Author

Closing: the share-sessions skill now lives in Rivethub/rstack, updated to hand off to the desktop Share screen; #1245 removes the rivetOS copies.

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.

2 participants