MVP alpha.11: Performance baselines and verification gates v0 - #65
Merged
ZebulonRouseFrantzich merged 17 commits intoMay 6, 2026
Conversation
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
…LA runs every pull request. Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
There was a problem hiding this comment.
Pull request overview
This PR adds the first Linux-first performance-contract/gating slice, introduces path-aware formal TLA checking in CI, and tightens runtime attestation/provisioning-posture projection in the trusted Go path. The main review blockers are in performance-gate enforcement and measurement correctness, so the PR is not approval-ready yet.
Changes:
- Adds new CI/formal-check entrypoints and supporting CLI tooling (
tlccheck, perf harness wrappers, shared-Linux perf gate flow). - Introduces performance contract inventory/docs for broker, runner, TUI, gateway/secrets, launcher, dependency/audit, and attestation surfaces.
- Refines trusted runtime evidence handling so attested posture is projected from verified post-handshake evidence instead of launch-time claims alone.
Reviewed changes
Copilot reviewed 183 out of 183 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds dedicated shared-Linux perf lane and formal security-kernel job. |
justfile |
Adds new CI recipes for model-check variants and shared-Linux perf enforcement. |
README.md |
Documents new model-check and CI/perf verification surfaces. |
CONTRIBUTING.md |
Updates contributor workflow guidance around CI/model-check commands. |
formal/tla/security-kernel/README.md |
Documents the new TLC mode split (all, core, replay). |
internal/artifacts/store_runtime_facts.go |
Reconciles authoritative provisioning posture into persisted facts/evidence. |
internal/artifacts/store_runtime_attestation_cache.go |
Tightens cached attestation verification / replay-placeholder handling. |
internal/brokerapi/service_runtime_facts.go |
Projects authoritative runtime posture when reading runtime facts/evidence. |
internal/brokerapi/perf_phase5_gateway.go |
Adds phase-5 gateway/secrets performance measurements. |
internal/perfcontracts/evaluate.go |
Implements contract evaluation against measurements/baselines. |
tools/perfcontracts/README.md |
Adds governance and statistical-policy docs for performance contracts. |
tools/perfcontracts/manifest.json |
Registers the checked-in performance contract/baseline inventory. |
tools/tlccheck/main.go |
Adds CLI mode selection for full/core/replay TLC runs. |
tools/tlccheck/modes.go |
Maps TLC modes to config subsets. |
tools/tlccheck/main_test.go |
Adds coverage for TLC mode selection. |
tools/perfseedwait/main.go |
Adds deterministic fixture seeding mode and trims emitted session summary. |
tools/tuiperf/args.go |
Adds CLI parsing for TUI perf modes and sampling parameters. |
tools/tuiperf/main.go |
Adds the Linux-only TUI perf CLI entrypoint. |
tools/tuiperf/types.go |
Defines TUI perf config/envelope types. |
tools/tuiperf/util.go |
Adds marker wait, fixture seeding, and envelope helpers for TUI perf runs. |
tools/runnerworkflowperf/main.go |
Adds CLI wrapper for runner workflow performance harness output. |
tools/phase5perf/main.go |
Adds CLI wrapper for phase-5 broker/gateway performance harness output. |
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
ZebulonRouseFrantzich
changed the base branch from
main
to
mvp/beta_close_gaps_and_polish
May 6, 2026 03:19
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
Signed-off-by: Zebulon Rouse-Frantzich <zeb@runecode.org>
ZebulonRouseFrantzich
merged commit May 6, 2026
e004e40
into
mvp/beta_close_gaps_and_polish
6 checks passed
ZebulonRouseFrantzich
deleted the
change/performance-baselines-verification-gates-v0
branch
May 6, 2026 21:25
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 pull request introduces significant improvements to the CI workflow, formal model checking, and the handling of runtime evidence and attestation posture in the codebase. The main changes include a new dedicated TLA+ security kernel check in CI, refined logic for authoritative provisioning posture, and expanded documentation and commands for formal model checking. These updates improve the reliability of security checks, clarify posture transitions, and ensure that the system's security model is consistently enforced and well-documented.
CI Workflow and Formal Model Checking Enhancements:
formal-security-kerneljob to the CI workflow (.github/workflows/ci.yml) that automatically determines when to run full or core TLA+ model checks based on the scope of changes in a pull request, preventing unnecessary runs and ensuring coverage for security-critical changes. Also, introduced workflow concurrency controls to avoid duplicate runs. [1] [2]README.md,CONTRIBUTING.md, andformal/tla/security-kernel/README.mdto include new model check commands (just model-check-core,just model-check-replay) and to clarify the CI model checking strategy. [1] [2] [3] [4] [5]Runtime Evidence and Attestation Posture Logic:
internal/artifacts/store_runtime_facts.goand related files. The code now ensures that theattestedprovisioning posture is only projected after secure-session validation, post-handshake evidence collection, and trusted verification, preventing premature or incorrect posture assignment. [1] [2] [3] [4] [5]RuntimeFactsSnapshotandRuntimeEvidenceSnapshotwith authoritative provisioning posture, and to handle lifecycle state updates more robustly, including fallback handling for missing facts. [1] [2]Attestation Verification Handling:
internal/artifacts/store_runtime_attestation_cache.go, ensuring that only valid or specifically marked placeholder records are accepted. [1] [2]Documentation Updates:
README.mdto clarify the security model, including the requirements for projectingattestedposture and the linkage of audit events to persisted evidence, reflecting the improved posture transition logic. [1] [2]These changes collectively strengthen the project's security posture, streamline CI runs, and improve clarity for contributors and reviewers.