Sources are always created in the default org #308

Closed
opened 2026-10-27 13:35:47 +00:00 by sam · 0 comments
Owner

Goal

InsertSource persists the acting org (workspace default) instead of always storing the default org, so a non-default org can own its capture sources.

Evidence

The InsertSource statement writes only path, signing and secret; org_id and workspace_id fall to the column defaults. GetSource resolves by path alone, so ownership is invisible.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it.

Stop when

[ ] InsertSource stores the acting org from context and workspace default.
[ ] A regression test inserts a source under a non-default org and reads it back with that ownership.
[ ] task check passes.
Workspace selection UI stays in archie-core-kgxw.11.

Close reason

e7c46d44: fix(sources): store the acting org on source creation (already on HEAD; test TestInsertSourceKeepsActingOrg passes)


Imported from beads archie-core-kgxw.20 · GitHub #1566 · type task · priority P2 · created 2026-10-08 · closed 2026-10-10

## Goal InsertSource persists the acting org (workspace default) instead of always storing the default org, so a non-default org can own its capture sources. ## Evidence The InsertSource statement writes only path, signing and secret; org_id and workspace_id fall to the column defaults. GetSource resolves by path alone, so ownership is invisible. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. ## Stop when [ ] InsertSource stores the acting org from context and workspace default. [ ] A regression test inserts a source under a non-default org and reads it back with that ownership. [ ] task check passes. Workspace selection UI stays in archie-core-kgxw.11. ### Close reason e7c46d44: fix(sources): store the acting org on source creation (already on HEAD; test TestInsertSourceKeepsActingOrg passes) --- _Imported from beads `archie-core-kgxw.20` · GitHub #1566 · type task · priority P2 · created 2026-10-08 · closed 2026-10-10_
sam added the mediumtask labels 2026-10-27 13:35:47 +00:00
sam self-assigned this 2026-10-27 13:35:47 +00:00
sam closed this issue 2026-10-27 13:35:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#308