Skip to content

ref(memory): make private memory user-owned - #1637

Merged
dcramer merged 39 commits into
mainfrom
feat/web-memory-linked-identities
Aug 23, 2026
Merged

dcramer merged 39 commits into
mainfrom
feat/web-memory-linked-identities

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Memory now has two access rules. Public memory is visible everywhere. Private memory belongs to one User and is available through every Identity linked to that User. The Source sets access when Junior stores a memory. The subject only says what the memory is about.

Junior also records the Location where it learned a memory, when known. Location does not grant access and does not affect ranking. Dashboard and REST response shapes do not change. Their existing personal fields still report User-owned private memory.

Migration 0009 maps old personal rows to a User when an Identity link proves ownership. It keeps known public Slack workspace rows. It archives old group-private rows that cannot be assigned safely to one User. Runtime access and ranking do not parse Slack keys, and this change does not add another migration version.

The main review path is scope.ts, viewer.ts, and migration 0009. The old personal access modules are now one smaller User access module. The runtime passes only User and Location ids needed by the plugin. An owned TODO keeps Actor kind separate from this change.

@vercel

vercel Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 23, 2026 1:08am

Request Review

@dcramer
dcramer marked this pull request as ready for review August 20, 2026 19:47
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 20, 2026
Comment thread packages/junior-memory/src/plugin.ts Resolved
Comment thread packages/junior-memory/src/plugin.ts Resolved
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: high PR risk score: high labels Aug 20, 2026
Comment thread packages/junior-memory/src/types.ts Resolved
@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Dashboard visual evidence

Mode: path-selected
Selected: gallery-index, conversations, conversation-detail, conversation-detail-focused

Triggered by:

  • packages/junior-dashboard/e2e/conversations-mobile.spec.ts
  • packages/junior-dashboard/e2e/conversations.spec.ts
  • packages/junior-dashboard/e2e/harness.ts
  • packages/junior-dashboard/package.json
  • packages/junior-dashboard/src/client/conversations/ConversationPage.tsx
  • packages/junior-dashboard/src/client/conversations/ConversationWorkspace.tsx
  • packages/junior-dashboard/src/client/conversations/queries.ts
  • packages/junior-dashboard/src/client/conversations/turnContext.ts

Component gallery index · desktop

Component gallery index · desktop

Conversations · desktop

Conversations · desktop

Conversations · mobile

Conversations · mobile

Conversation detail · desktop

Conversation detail · desktop

Conversation detail · mobile

Conversation detail · mobile

Conversation detail · focused composer · mobile

Conversation detail · focused composer · mobile

Full-page screenshots from the mock dashboard. Not a pixel-diff gate.

Comment thread packages/junior-memory/src/plugin.ts Resolved
Comment thread packages/junior-memory/src/scope.ts Resolved
Comment thread packages/junior-memory/src/tools.ts Resolved
Comment thread packages/junior-memory/src/tools.ts Resolved
Comment thread packages/junior-memory/src/plugin.ts Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b9db2a6. Configure here.

Comment thread packages/junior-memory/src/tools.ts Resolved
@dcramer
dcramer merged commit ff85481 into main Aug 23, 2026
43 checks passed
@dcramer
dcramer deleted the feat/web-memory-linked-identities branch August 23, 2026 02:24
sentry-junior Bot added a commit that referenced this pull request Nov 16, 2026
… function

Reviewers keep removing test-only dependency injection, such as
`(deps.recordPolicyDenied ?? recordSandboxPolicyDenied)(...)` in
#3111, or the optional services in #1637,
#1671, #1695, #1704, and
#3404. policies/interface-design.md already forbids it, but
nothing failed.

`junior/no-service-fallback` rejects `x.y ?? fn`, `x.y || fn`, and
`{ y = fn }` parameter defaults, where `fn` is a camelCase import or a
module-level function. The 14 files that have the pattern today are listed
as exceptions in .oxlintrc.json. Remove an entry when you fix its file.

Co-Authored-By: David Cramer <[email protected]>
dcramer added a commit that referenced this pull request Nov 17, 2026
… function (#3523)

`junior/no-service-fallback` (oxlint) rejects `deps.x ?? fn`, `opts.x ||
fn`, and `{ x = fn }` parameter defaults, where `fn` is a camelCase
import or a module-level function. That is test-only dependency
injection, which `policies/interface-design.md` forbids. Past cases:
#3111, #1637, #1671,
#1695, #1704, #3404,
#2824.

This PR also removes 12 of the 14 fallbacks that exist today.

**Removed. The code calls the real function:**
- `slack/assistant-thread/status-send.ts`: `getSlackClient`.
- `slack/attachment-fetchers.ts`: `downloadPrivateSlackFile`.
- `task-execution/slack-work.ts`: `lookupSlackUser`.
- `tools/publish-image.ts`: `publicBaseUrl`. It reads
`resolveBaseUrl()`.

**Made required. The caller chooses:**
- `plugins/task-runner.ts`, `providers/slack/resume.ts`,
`task-execution/paused-turn.ts`: `sendPluginTask` and `wakePausedTurn`.
`createApp` picks the plugin task queue: Vercel Queue, or the in-process
queue from its `pluginTaskQueue` option. Behavior change: the Slack
webhook services now use that queue too. Before, they always used Vercel
Queue.
- `sandbox/egress/vercel.ts`: `verifyOidc`. The route passes the Vercel
verifier. Evals pass one with the real clock, because they replace
`Date`.
- `egress/credentialed.ts`: `recordAuthRequired`. Sandbox egress stores
a signal. Host plugin tools ask the person to connect.
- `junior-memory/src/embedding.ts`: `columns`. It is the table or a
subquery.
- `pi/request-prefix-attributes.ts`: the `hashJson` replacer.
- `ActivityChart.tsx`: the `formatLabel` function prop is now a `labels`
map. The component always formats.

**Kept as exceptions in `.oxlintrc.json`:**
- `cache-warming/warmup.ts` and `pi/traced-stream.ts` default the model
stream to `streamSimple`. The model stream is the one fake that
`policies/testing.md` allows. The shared model-stream harness gives each
agent run its own fake stream, and a module spy cannot do that per run.
Production never passes another stream, so a required parameter would
only add a restricted import to each composition root and an unused
argument to about 75 calls that mock the agent.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A272ea6eeb1ea4fab7133690568688663 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A272ea6eeb1ea4fab7133690568688663)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A272ea6eeb1ea4fab7133690568688663/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 24479285 Deployed Aug 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant