M3b follow-up: align REST tests and version table with policy v5 #51
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "m3b-rest-adapter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the M3b REST adapter slice for #47 (parent issue), including the single remediation pass.
Integration note
The main M3b implementation (REST adapter, typed application seam, D-030,
tests and docs) was committed as
3475da1and integrated intodevelopby theowner together with the operating-policy v5 update (PR #50), producing develop
head
a0d9ca9. This PR carries the follow-up consistency fix and the four narrowreview-blocker remediations on top. No M3c implementation is included.
M3b implementation and remediation
selection, scarcity, provider or simulation semantics
HTTPServer/BaseHTTPRequestHandleronly; fixed127.0.0.1bind,default port 8765, serialized requests, no runtime dependency, no auth/TLS
no chunked bodies and safe 400/500 envelopes
SimulationOverrideApplicationError, translate throughsimulate_from_inputstoApplicationInputError, and return HTTP 400invalid_request; internal/catalog/collector failures remain HTTP 500Hostvalue, either thebare address or the actual bound port, before endpoint dispatch; missing,
duplicate and foreign hosts are rejected without echoing the value, closing
the DNS-rebinding gap in the no-auth loopback boundary
Content-Lengthmagnitude is bounded before integer conversion;pathological digit strings return HTTP 400 without echoing or logging
references are preserved
Parity and validation
application/core results, with CLI delegation unchanged
make check: passeduv run basedpyright: 0 errors / 0 warnings / 0 notesuv run python -m scarcity_router.server --help: passedgit diff --check: passedorigin/developremaineda0d9ca953fduring pushorigin/m3b-rest-adapterand localHEADare7265023a3aorigin/develop..HEADcontains the existing follow-up plus this singleremediation commit; no merge commits
capacity/provider code and MCP remain unchanged
Human merge gate: leave PR #51 open and unmerged.
kilo referenced this pull request2026-10-07 21:47:58 +00:00
kilo referenced this pull request2026-10-10 02:07:29 +00:00