Add bounded read-only lifecycle HTTP API - #33
Merged
Conversation
Punisheroot
marked this pull request as ready for review
August 5, 2026 15:49
JJordan0C
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an authenticated, deterministic, read-only HTTP surface for inspecting the authoritative development lifecycle store.
The new list, detail, and event routes expose bounded safe projections while preserving the existing lifecycle state machine as the single source of truth. Closes #20.
Implementation
GET /api/v1/lifecycleswith canonical change-ID ordering, a default limit of 50, and a hard maximum of 100.GET /api/v1/lifecycles/{change_id}andGET /api/v1/lifecycles/{change_id}/eventsusing the existing session, Host, and Origin security boundary.ORDER BY ... DESC LIMIT 1; no lifecycle route mutates SQLite state.Existing lifecycle transitions, role-profile routes, and frontend behavior are unchanged.
rusqliteis added only as aneedle-appdev-dependency for database-level route fixtures and write-detection assertions.Validation
No provider-backed run or browser run was performed; neither is required by this issue. Cross-platform execution remains delegated to pull-request CI.
Risks/limitations
Documentation/evidence
PROJECT_STATUS.mdto record the bounded authenticated lifecycle HTTP API and its offline evidence.docs/ARCHITECTURE.mdwith the replay-before-projection and safe-DTO boundary.docs/RUNTIME_AND_WEB_CONTROL_PLANE.mdwith routes, schemas, limits, redaction, and read-only behavior.docs/VERIFIED_CHANGES.mdto distinguish the implemented HTTP surface from the still-unwired lifecycle UI and concrete Codex adapters.AI assistance and human verification
Ownership checklist
PROJECT_STATUS.mdare updated when applicable.