Skip to content

Pass the permanent opt-in by name through HostService - #82

Merged
czpython merged 1 commit into
mainfrom
claude/jovial-brahmagupta-64b7be
Oct 22, 2026
Merged

czpython merged 1 commit into
mainfrom
claude/jovial-brahmagupta-64b7be

Conversation

@czpython

@czpython czpython commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

POST /hosts is the only place that reads the wire. An explicit expires_at: null becomes permanent=True; expires_at carries the caller's instant, or None for the default lease.

HostService.get_or_create_host, create_host and _try_claim_pool_host take both by name. The lease is still stamped where it was: on the pool claim, replacing the warm-pool TTL, and after provisioning, replacing the safety TTL. VMProvider.lease_end still caps it. The ... sentinel, the EllipsisType union and the isinstance checks are gone.

The wire contract is unchanged: omitted means the default lease, null means a permanent host.

The touched tests read as the end state: truthiness asserts, pytest.raises, and comments trimmed to the why.

@czpython
czpython force-pushed the claude/jovial-brahmagupta-64b7be branch from 9a60fd1 to 94309e2 Compare October 22, 2026 14:40
The route reads the wire once: an explicit null becomes permanent=True,
and expires_at carries the caller's instant or None for the default
lease. The service stamps the lease where it did before, without an
ellipsis sentinel or an isinstance check.

The touched tests read as the end state: truthiness asserts,
pytest.raises, and comments trimmed to the why.
@czpython
czpython force-pushed the claude/jovial-brahmagupta-64b7be branch from 94309e2 to 3dae614 Compare October 22, 2026 15:09
@czpython
czpython merged commit a7d2125 into main Oct 22, 2026
6 checks passed
@czpython
czpython deleted the claude/jovial-brahmagupta-64b7be branch October 22, 2026 15:17
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