beads/internal/workapi
Julian Knutsen 4e8b017fd4
Put the memory plane behind memoryops, conformance-tested at three backends (#5387)
The memory commands get the treatment the sixteen issue commands got in #5378:
a role interface in a leaf package, conformance-tested at all three backends,
with the CLI routes and the HTTP handlers as thin callers over one
implementation.

memoryops is its own namespace rather than an addition to issueops. The two
planes share a config table and nothing else; a memory whose key shadows a
settings name is still a memory, and that separation is now the role's,
pinned by its contract, rather than a filter each caller reapplies.

Closes an unauthenticated disclosure found on the way: memory content was
served in cleartext on GET /v0/beads/config, and reachable through two more
doors — `bd config show` and `bd info --json`, the latter republished into
agent transcripts by MCP get_schema_info. Enumeration is now filtered at the
shared seam (workapi.FilterSettingsEnumeration); `bd config show` is left
alone deliberately, since an operator asks for it by name.

Two wire contracts were settled after the review council, recorded in full on
the PR: the search parameter is spelled `search` rather than `q`, because
issues:query already publishes `q` as a boolean expression and one surface
must not spell two questions one name; and getMemory keeps its 404, because
the status reports the distinction the front door already reports and
`bd recall` exits 1 on a miss where `bd config get` exits 0.
2026-08-07 03:57:04 -07:00
..
storecounter Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
storequerier Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
storereader feat(list): put bd list behind Reader.List and the new BlockingAnnotator role (bd-5k21g) 2026-08-06 02:56:57 +00:00
storereadycounter Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
storestats Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
storeversionreconciler Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
storeworkspaceconfig Put the memory plane behind memoryops, conformance-tested at three backends (#5387) 2026-08-07 03:57:04 -07:00
testdata feat(list): put bd list's row cap and counts hydration on ListRequest (bd-b34o7) 2026-08-05 16:36:31 +00:00
bootstrap.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
bootstrap_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
count.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
count_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
delete.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
delete_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
detail.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
detail_test.go test(workapi): make the hard-error test pin the short-circuit, unexport isNotFound (bd-hc1) 2026-07-31 08:21:06 +00:00
doc.go refactor(show): share issue-detail assembly and normalize not-found (bd-hc1) 2026-07-31 07:58:46 +00:00
list.go feat(list): put bd list's row cap and counts hydration on ListRequest (bd-b34o7) 2026-08-05 16:36:31 +00:00
list_golden_test.go feat(list): put bd list's row cap and counts hydration on ListRequest (bd-b34o7) 2026-08-05 16:36:31 +00:00
list_status_test.go refactor(list): route both bd list paths through internal/workapi and delete list_filter.go (bd-fv4) 2026-07-31 06:01:48 +00:00
metadata.go fix(workapi): refuse an invalid metadata key where the builders can name it 2026-07-31 18:37:25 +00:00
page.go docs(workapi): say where the shared epilogue stops, and what limit 0 does 2026-07-31 23:35:16 +00:00
page_test.go docs(workapi): say where the shared epilogue stops, and what limit 0 does 2026-07-31 23:35:16 +00:00
query.go Merge branch 'facade/wave-3' into facade/wave-4 2026-08-06 21:39:05 +00:00
query_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
race_detector_off_test.go feat(issueops): put bd purge and bd prune behind the Sweeper role (bd-pn231) 2026-08-05 16:40:26 +00:00
race_detector_on_test.go feat(issueops): put bd purge and bd prune behind the Sweeper role (bd-pn231) 2026-08-05 16:40:26 +00:00
ready.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
ready_count_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
ready_golden_test.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
ready_test.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
sort.go refactor(workapi): one execution epilogue for every list and ready read 2026-07-31 22:27:01 +00:00
stats.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
stats_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
sweep.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
sweep_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
versionreconcile.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
versionreconcile_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
workspaceconfig.go Put the memory plane behind memoryops, conformance-tested at three backends (#5387) 2026-08-07 03:57:04 -07:00
workspaceconfig_test.go Put the memory plane behind memoryops, conformance-tested at three backends (#5387) 2026-08-07 03:57:04 -07:00