Register the Folders API gap (bc3 #12384) and supersede stack-doc-and-smithy
Summary
Registers the Folders API in spec/api-gaps/ (status addressed-in-bc3-pr-12384) and supersedes stack-doc-and-smithy's now-false "Stacks are web-only" classification.
Upstream facts, verified against both repos: bc3 #12384 ("Add public API for personal project folders", dc6cd10714) is on master and touches doc/api/sections/folders.md (the contract of record); the public mirror is live at bc-api #420 (401c8ebcc9). Five routes, flat top-level collection: GET/POST /stacks.json, GET/PUT/DELETE /stacks/{id}.json.
The brief carries the full absorption plan (per AGENTS.md's completeness bar, on the Bookmarks precedent) and the modelling traps that will bite a generator if unstated:
- wire
typeis"Stack", not"Folder"— product renamed, payload didn't; - two output shapes: list returns bare
Folderobjects withbucket_idsand noprojects; get/create/update expandprojects— one shape for all five ops would declare a never-populated field on list; project_ids(input) ≠bucket_ids/projects(output) — three names, one relationship, not a round-tripping field;- delete unpins, it does not trash; create is all-or-nothing (
404, zero writes) on any unreachable id; the unentitled-account 404 is implementation-observed, not documented contract.
stack-doc-and-smithy.md stays in place as the launch-decision record with a superseded banner (it named this successor path itself); README table + notes updated. scripts/validate-api-gaps.sh: 31 entries clean.
Scope
Registration only — no spec/SDK change. Per pin semantics this is exactly what makes the pending pin..HEAD drift item triaged: absorption (FoldersService across six SDKs) lands with the Wave-2 repin PR, tracked by the plan in the brief.
🤖 Authored with agent assistance by @jeremy.
Summary by cubic
Registers the Folders API gap from bc3 #12384, adds five stacks routes and mandates two shapes (not one with optional projects): Folder for lists and FolderWithProjects for singular ops. Supersedes stack-doc-and-smithy’s “web‑only” note; no spec/SDK changes—absorption ships with the Wave‑2 repin.