Skip to content

fix: resolve lifecycle, auth, and health conformance gaps (Phase 2) - #120

Merged
mark-e-deyoung merged 4 commits into
mainfrom
fix/conformance-gaps-phase2
Jul 9, 2026
Merged

fix: resolve lifecycle, auth, and health conformance gaps (Phase 2)#120
mark-e-deyoung merged 4 commits into
mainfrom
fix/conformance-gaps-phase2

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Part of #114

Fixes

Auth: Changed 403 → 401 when API token is missing/invalid

Lifecycle:

  • /lifecycle/status: added status (idle/pending), pending_action, remaining_seconds fields
  • /lifecycle/cancel: new endpoint (returns cancelled or no_pending)
  • /lifecycle/shutdown: added cancel_before, cancel_command, human_present fields; delay validation (reject <0 or >300)

Health:

  • /health/tools: added all_ok field
  • /health/presence: added evidence field

mark-e-deyoung and others added 4 commits July 9, 2026 19:48
- Auth: change 403 to 401 when API token is missing/invalid
- Lifecycle status: add pending_action, remaining_seconds fields
- /lifecycle/cancel: new endpoint (returns cancelled or no_pending)
- /lifecycle/shutdown: add cancel_before, cancel_command, human_present fields
- /health/tools: add all_ok field
- /health/presence: add evidence field

Part of #114 — resolves ~10 more conformance gaps.

Co-Authored-By: Claude <noreply@anthropic.com>
Reject negative delays (422) and delays > 300s (422) per contract spec.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Auth returns 401 (Unauthorized) not 403 (Forbidden) when token is
missing or invalid. Update the corresponding unit test.

Co-Authored-By: Claude <noreply@anthropic.com>
@mark-e-deyoung
mark-e-deyoung merged commit d5c5d1f into main Jul 9, 2026
2 of 3 checks passed
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