beads/internal/httpapi
CI Bot 4bf7b4baba feat(httpapi): publish addDependencies on the v0 surface
Completes the graph write side: a batch of edges asserted as ONE
transaction, or none of them, over issueops.DependencyEditor.

All-or-nothing is the role's shape rather than a policy choice here.
Edges asserted together describe a graph, and half a graph is a graph
nobody asked for — the cycle a caller was refused for is exactly the
state a partial commit would leave behind. That is batchCreateIssues'
posture (fix the payload, resend unchanged), not BatchCloser's
keep-the-survivors one, and it is proved where a fake role cannot prove
it: a batch whose later edge closes a cycle is read back through a real
`bd serve` against real Dolt and leaves zero edges.

Two frozen codes, both 409, both statements about state the client
cannot see without reading it — the claim's not_claimable situation, so
the claim's answer:

  dependency_cycle covers BOTH never-makes-progress refusals, the plain
  scheduling cycle and the blocking edge against the issue's own
  ancestor or descendant. One code because they have one client
  recovery and no force bypass, and codes are the vocabulary of
  recovery. The typed distinction is not lost: the hierarchy refusal
  additionally carries issue_id, blocker_id and blocker_is_ancestor,
  read from *DependencyHierarchyConflictError inside the refusing
  transaction, and member PRESENCE is the discriminator. The three are
  enough to rebuild the typed error whole, both polarities included,
  which is why the boolean travels through a pointer and is emitted
  when false. Nothing can recover them after the fact — the conflicting
  hierarchy may exist only inside the batch that was rolled back.

  dependency_exists is a pair carrying another type, with
  existing_type and requested_type from
  *DependencyTypeConflictError's fields.

The endpoint refusals PR #5415 typed are mapped to their 400 and named
by finding the refused edge in the request by BOTH endpoints, which is
what DependencyEndpointNotFoundError carries the whole edge for. A
target may legitimately be an `external:` reference or another
repository's id, so only a locally-visible absence refuses; the proxied
test pins both sides of that line.

A self-dependency is refused at the wire edge as a value, not a
conflict: it is invalid whatever the graph holds, and answering it here
is what lets the refusal name the offending edge.
SkipPerEdgeCycleCheck stays unpublished — an unauthenticated surface is
where a default must be the guarded one.

Co-Authored-By: Claude Fable <noreply@anthropic.com>
2026-08-08 00:19:48 +00:00
..
apigen feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
spec feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
batch_create.go feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
batch_create_test.go feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
blocking.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
blocking_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
claim.go feat(httpapi): publish removeDependency on the v0 surface 2026-08-08 00:19:48 +00:00
claim_test.go feat(httpapi): serve reopenIssue over v0 2026-08-07 22:25:42 +00:00
close.go feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
close_test.go feat(httpapi): serve updateIssue over v0 2026-08-07 22:25:47 +00:00
context_test.go feat(serve): bd serve skeleton — lifecycle, mode gate, /healthz, /v0/beads/context (bd-60z) 2026-07-31 10:07:14 +00:00
cursor.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
cycles.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
cycles_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 feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
dependency_edit.go feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
dependency_edit_test.go feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
doc.go feat(issueops): put every issue capability behind one library surface 2026-08-04 12:27:56 -07:00
edges.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
edges_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
get_issue_test.go feat(httpapi): add include_comments and include_dependents to getIssue 2026-08-07 19:36:15 +00:00
handlers.go refactor(context): one snapshot-to-fields projection for both context surfaces 2026-07-31 22:35:09 +00:00
memories.go Put the memory plane behind memoryops, conformance-tested at three backends (#5387) 2026-08-07 03:57:04 -07:00
memories_test.go feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
pinning.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
problem.go feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
problem_test.go feat(httpapi): OpenAPI v0 spec, types-only codegen, and the drift gates (bd-ilb) 2026-07-31 08:37:34 +00:00
query.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
reads.go feat(httpapi): add include_comments and include_dependents to getIssue 2026-08-07 19:36:15 +00:00
reads_test.go fix(defer): auto-wake expired dated defers on ready-front reads and claims (bd-i8qx8) (#5386) 2026-08-07 04:34:38 -07:00
ready_count_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
reopen.go feat(httpapi): serve reopenIssue over v0 2026-08-07 22:25:42 +00:00
reopen_test.go feat(httpapi): serve reopenIssue over v0 2026-08-07 22:25:42 +00:00
roles.go feat(httpapi): serve updateIssue over v0 2026-08-07 22:25:47 +00:00
roles_test.go feat(httpapi): publish removeDependency on the v0 surface 2026-08-08 00:19:48 +00:00
routes.go feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
server.go feat(httpapi): publish removeDependency on the v0 surface 2026-08-08 00:19:48 +00:00
server_test.go feat(httpapi): publish addDependencies on the v0 surface 2026-08-08 00:19:48 +00:00
settings.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
spec_parity_test.go feat(httpapi): serve updateIssue over v0 2026-08-07 22:25:47 +00:00
stats.go Merge branch 'facade/wave-3' into facade/wave-4 2026-08-06 21:39:05 +00:00
stats_test.go Merge branch 'facade/wave-3' into facade/wave-4 2026-08-06 21:39:05 +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 feat(httpapi): serve closeIssue over v0 2026-08-07 22:25:38 +00:00
timed_provider_binding_test.go feat(httpapi): publish removeDependency on the v0 surface 2026-08-08 00:19:48 +00:00
tree.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
tree_test.go Trim this series' comments toward the repo's own density 2026-08-06 08:06:59 +00:00
update.go feat(httpapi): serve updateIssue over v0 2026-08-07 22:25:47 +00:00
update_test.go feat(httpapi): serve updateIssue over v0 2026-08-07 22:25:47 +00:00
wire_bijection_test.go chore(facade): reconcile wave 4's four slices and close the programme 2026-08-06 03:36:58 +00:00