Skip to content

docs: DELETE /v1/slide/facts in api.md; control.md's stale native refusal dropped - #2341

Merged
ashhart merged 3 commits into
mainfrom
lead/docs-api-1106
Nov 7, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/docs-api-1106

Conversation

@ashhart

@ashhart ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Two docs fixes from a check of docs/api.md and docs/control.md against the server's routes (routes.zig) and serve's flags (cli.zig):

  • docs/api.md's Living Weights route table gains DELETE /v1/slide/facts. It's served (routes.zig:47 to slide_forget_many.zig): 1 to 256 distinct learned fact IDs in one transaction, the whole selection validated before any cut, and an optional reason. living-weights.md already documents it.
  • docs/control.md drops a stale clause saying the native binary refuses --spill-gib and --vision. The native server serves --spill-gib, and it serves --vision for the models vision.md lists.

The rest of the check matched:

  • all 19 rows of the route table;
  • the scope tables;
  • the public exceptions;
  • --dashboard's gating of /stats and /dashboard;
  • the admission ranges;
  • the learned-state and spill defaults and paths;
  • the API key sources.

Thirteen native serve flags are parsed but not documented anywhere. They're for a follow-up. Docs only.

@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

/atc exchange 3e34ce65de7c22c26b88a90580f22156c1c53ddcb5322ed631d222731bd399f9

The native binary serves both today: zig/src/server/cli.zig:117 parses
--spill-gib (.native = served("--spill-gib")) and zig/src/server/cli.zig:467
parses --vision; zig/src/native/metal.zig:24 and zig/src/native/cuda.zig:37
list --spill-gib among the flags their backends serve; docs/api.md:816
documents --spill-gib and docs/api.md:908 documents --vision natively.
The sentence predates that and claimed the native binary refuses both.
The route is served (zig/src/server/routes.zig:47 dispatches it to
zig/src/server/slide_forget_many.zig:64-89) and documented in
docs/living-weights.md:288-305, but the table here listed only its four
siblings. Row facts from code: ids must be 1 to 256 distinct learned
fact IDs (zig/src/server/slide_forget_many.zig:24-37, error text at :81);
the whole selection is validated before any cut (:76 validates before
:82 opens the stream); the optional reason reaches the delete (:87);
one transaction, graph links never add another fact (:1).
@ashhart
ashhart force-pushed the lead/docs-api-1106 branch from 7aa732a to 2987a73 Compare November 7, 2026 01:02
@ashhart
ashhart merged commit c251209 into main Nov 7, 2026
8 of 11 checks passed
@ashhart
ashhart deleted the lead/docs-api-1106 branch November 10, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant