chore: sync SAND-WP-0009 State Hub IDs

This commit is contained in:
2026-06-24 12:38:40 +02:00
parent 0fb799fa4e
commit b58191b23e

View File

@@ -9,6 +9,7 @@ owner: codex
topic_slug: custodian
created: "2026-06-24"
updated: "2026-06-24"
state_hub_workstream_id: "59dfa58d-313e-4c06-83af-7e4f4ff95e99"
---
# TTL enforcement and operational hardening
@@ -31,6 +32,7 @@ consumer profiles), SAND-WP-0012 (Packer orchestration)
id: SAND-WP-0009-T01
status: todo
priority: high
state_hub_task_id: "44cee754-2874-40eb-9cb3-168e5bc8dd54"
```
Module `src/sandboxer/lifecycle/ttl.py`: parse profile `ttl.default` / `ttl.max`
@@ -43,6 +45,7 @@ max-cap enforcement.
id: SAND-WP-0009-T02
status: todo
priority: high
state_hub_task_id: "a5a6503c-56a3-4876-8211-e06b9eed6292"
```
Add `expires_at: datetime | None` and optional `ttl: str` on `SandboxStatus`.
@@ -55,6 +58,7 @@ Persist in `SandboxStore`. Emit expiry in State Hub `detail`.
id: SAND-WP-0009-T03
status: todo
priority: high
state_hub_task_id: "ff32a3e5-0bf6-479c-8373-d601588461e7"
```
`SandboxManager.extend_ttl(sandbox_id, duration)` — cap at profile `ttl.max`,
@@ -67,6 +71,7 @@ HTTP: `PATCH /v1/sandboxes/{id}/ttl` with body `{"duration": "2h"}`.
id: SAND-WP-0009-T04
status: todo
priority: high
state_hub_task_id: "ce597f28-a2f3-44ed-8e85-f8bd254bc4ce"
```
CLI `sandboxer expire` — list sandboxes past `expires_at`; dry-run default;
@@ -80,6 +85,7 @@ with existing `reap-stale` docs (host inventory vs TTL are distinct concerns).
id: SAND-WP-0009-T05
status: todo
priority: medium
state_hub_task_id: "9ad34d90-bbc7-4ede-8549-f4291e27ba22"
```
`docs/integrations/activity-core.md`: how a scheduled job invokes
@@ -92,6 +98,7 @@ state; no Temporal code in this repo.
id: SAND-WP-0009-T06
status: todo
priority: medium
state_hub_task_id: "ffde8196-18e3-4762-8cfd-1b69874e51e1"
```
Add `.repo-classification.yaml` (clears State Hub C-24). Update
@@ -105,6 +112,7 @@ run validate if reuse-surface CLI available in environment.
id: SAND-WP-0009-T07
status: todo
priority: medium
state_hub_task_id: "69b192c7-8599-46e7-bb63-8457bfb72a81"
```
Add `POST /v1/sandboxes/{id}/recreate` and TTL endpoints to `api/app.py`.
@@ -116,6 +124,7 @@ Align OpenAPI with CLI surface from SAND-WP-0007.
id: SAND-WP-0009-T08
status: todo
priority: medium
state_hub_task_id: "69d1a23f-b3a3-4aa7-846c-e953f02977f3"
```
`docs/ttl.md` — semantics, extend, expire, profile fields. Update
@@ -129,6 +138,7 @@ intent enforcement (INTENT design principle).
id: SAND-WP-0009-T09
status: todo
priority: high
state_hub_task_id: "0683b09a-0dd9-4880-9bd0-13003e3621a6"
```
`tests/test_ttl.py` (parser, extend cap), manager expire flow with mocked