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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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