Add digest-bound role-profile HTTP API and web editor - #12
Merged
Conversation
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 a bounded, digest-bound HTTP API and local web editor for canonical Codex role profiles.
The control plane can now inspect profile state and revision history, run request-time offline preflight, save drafts, and explicitly activate or deactivate exact revisions without weakening the existing session, CSRF, and optimistic-concurrency boundaries.
Closes #2.
Implementation
If-Matchhandling. Missing and stale digests retain the existing428and412semantics.needle.role-profiles/1andneedle.role-profile-error/1response schemas, a 64 KiB request-body limit, and list/history/audit limits of at most 100 records.WorkerProfileprojection. No preflight state is persisted, and activation recomputes preflight immediately before the transition.ModelPolicyeditor as the sole owner of the model ladder.Validation
Risks/limitations
WorkerProfileprojection work only to explicit profile requests; it does not affect the execution hot path or persist additional state.npm cicurrently reports 3 high-severity dependency findings. No automatic audit remediation was applied because it could introduce unrelated or breaking dependency changes;package-lock.jsonis unchanged.Documentation/evidence
docs/CONFIGURATION.mdwith the offline role-profile API/editor boundary.docs/RUNTIME_AND_WEB_CONTROL_PLANE.mdwith endpoints, schemas, bounds, preconditions, and Codex-only capability status.PROJECT_STATUS.mdto distinguish the implemented HTTP/editor slice from the still-pending session binding and lifecycle execution work.web/distfiles, SQLite databases, logs, or live artifacts.AI assistance and human verification
Ownership checklist
PROJECT_STATUS.mdare updated when applicable.