🧪🔒 API Contract, CI Judgment, and Runtime Hardening#1
Merged
AdaInTheLab merged 3 commits intomainfrom Dec 26, 2025
Merged
Conversation
co-authored-by: Lyric <lyric@thehumanpatternlab.com> co-authored-by: Carmel <carmel@thehumanpatternlab.com>
co-authored-by: Lyric <lyric@thehumanpatternlab.com> co-authored-by: Carmel <carmel@thehumanpatternlab.com>
3361929 to
84a91d1
Compare
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.
This is a foundational PR that introduces OpenAPI as a first-class contract for the Lab API, adds CI test enforcement (Carmel Judgment™), and hardens app startup so optional tooling never breaks tests or development.
Yes, it’s a large PR — intentionally. These changes are tightly related and land the system in a stable, coherent state instead of passing through half-wired intermediate steps.
✨ Why this exists
We’re moving toward a clear authoring and delivery pipeline:
Markdown → CLI → API → Admin UI
To support that safely, the API needed:
This PR establishes those boundaries cleanly.
🧩 What changed
API Contract & Docs
/openapi.jsonas an admin-only endpointValidation (Optional, Guarded)
express-openapi-validatorRuntime Hardening
CI (Carmel Judgment 😼)
🧪 Testing notes
🧠 Design decisions (intentional)
🚧 Follow-ups (out of scope here)
Those will now be small, focused PRs thanks to this groundwork.
🐾 Verdict
Carmel has reviewed the tests.
Lyric has verified continuity.
This PR moves the API from “working” to trustworthy.