M1: Implement secure Z.ai quota acquisition #10
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
Z.ai already has provider evidence, redacted fixtures, a normalized pure parser (
scarcity_router/providers/zai.py) and the v1 capacity contract. The missing piece is the production acquisition boundary: reading the existing Kilo credential, making the fixed authenticated HTTPS GET, and feeding the decoded payload to the existing parser.Scope
Implement
scarcity_router/providers/zai_acquisition.py:Constraints
collect_zai_capacity(*, retrieved_at: str, auth_file: Path | None = None) -> CapacitySnapshot; caller-suppliedretrieved_at, optional explicit auth path for deterministic tests/controlled local configuration.auth_required; received-but-unusable success body ->schema_changed; network/DNS/timeout ->unavailable; redirect rejection and other unevidenced HTTP failures ->unknown/telemetry_unknown.One branch, one PR targeting
main; PR left open for human review.kilo referenced this issue2026-10-14 00:27:08 +00:00
kilo referenced this issue2026-10-15 18:49:32 +00:00
kilo referenced this issue2026-10-18 15:49:05 +00:00