Skip to content

Add immutable read-only Sol Terra Luna trial runner - #2749

Merged
stranske merged 9 commits into
mainfrom
codex/model-profile-trial-runner
Jul 10, 2026
Merged

Add immutable read-only Sol Terra Luna trial runner#2749
stranske merged 9 commits into
mainfrom
codex/model-profile-trial-runner

Conversation

@stranske

@stranske stranske commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a Workflows-only, single-arm workflow_dispatch shim backed by an immutable reusable runner
  • register exact Sol/Terra/Luna trial profiles while rejecting lifecycle: trial from ordinary Keepalive/agent execution
  • enforce high reasoning, read-only permissions, one shared capacity mapping, no runtime fallback, and no auxiliary evaluator
  • emit strict quarantine artifacts with replay identity, requested/reported model and reasoning, GitHub run provenance, source SHA plus bounded before/after manifests, and null provider-resolved identity
  • pin Codex CLI 0.144.1 and isolate subscription auth without refresh, commits, pushes, comments, PR actions, or target-checkout code execution after auth

Safety contract

  • the dispatcher and both registries pin the hardened reusable workflow/helper commit 822e323eefba3edb640e0bd9c922caec6fffee65
  • the protected-main dispatcher passes that same SHA as a required runner input; the reusable job verifies it against the target registry before auth
  • expected_source_sha must equal current remote main before auth, and every third-party Action in the trial runner is pinned to a full SHA
  • this PR must merge with a merge commit, not squash/rebase, so the pinned runner remains in main history
  • artifact claims remain instrumentation-only; the local bridge independently authenticates the Actions run/artifact/digest and keeps results quarantined from learning

Verification

  • 19 focused Python contract/workflow/docs tests passed
  • 35 agent-registry/Keepalive Node tests passed, including ordinary trial-profile rejection
  • Ruff, workflow YAML validation, native actionlint, template sync, and strict template completeness passed
  • review findings for mutable Actions, ad-hoc install documentation, registry contract drift, normal Keepalive exposure, target-code execution, provenance, reasoning, and source integrity were addressed
  • git diff --check passed

Copilot AI review requested due to automatic review settings July 10, 2026 15:50
@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 15:50 — with GitHub Actions Inactive
@stranske-keepalive

Copy link
Copy Markdown
Contributor

Workflow source needed

PR #2749 needs either a linked GitHub issue or one valid non-issue Workflow Source before PR metadata automation can manage it safely.

Please do one of:

  • Add <!-- meta:issue:123 --> or a normal Closes #123 / Related to #123 line.
  • Check one Workflow Source option in the PR body.
  • Add a hidden marker such as <!-- workflow-source:local_request -->, <!-- workflow-source:manual_remote -->, <!-- workflow-source:review_followup -->, <!-- workflow-source:sync_campaign -->, or <!-- workflow-source:dependabot -->.
  • Add a workflow source label such as workflow:source-direct-pr, workflow:source-local-request, workflow:source-review-followup, workflow:source-sync, or workflow:no-automation.

Once a valid source is present, this warning will not be reposted.

Comment thread .github/workflows/reusable-model-profile-trial.yml
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 35 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c38f8ff8-239e-461d-ae6a-f2e73f8d90aa

📥 Commits

Reviewing files that changed from the base of the PR and between 16c53af and d20414f.

📒 Files selected for processing (20)
  • .github/agents/registry.yml
  • .github/scripts/__tests__/agent-registry.test.js
  • .github/scripts/__tests__/keepalive-model-profile-contract.test.js
  • .github/scripts/agent_registry.js
  • .github/workflows/README.md
  • .github/workflows/agents-model-profile-trial.yml
  • .github/workflows/reusable-model-profile-trial.yml
  • README.md
  • docs/WORKFLOW_GUIDE.md
  • docs/ci/WORKFLOWS.md
  • docs/ci/WORKFLOW_OUTPUTS.md
  • docs/ci/WORKFLOW_SYSTEM.md
  • scripts/model_profile_trial_contract.py
  • scripts/validate_template_completeness.py
  • scripts/validate_workflow_yaml.py
  • templates/consumer-repo/.github/agents/registry.yml
  • templates/consumer-repo/.github/scripts/agent_registry.js
  • tests/scripts/test_model_profile_trial_contract.py
  • tests/workflows/test_model_profile_trial_workflows.py
  • tests/workflows/test_workflow_naming.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/model-profile-trial-runner

Comment @coderabbitai help to get the list of available commands.

@agents-workflows-bot

agents-workflows-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: d4be96a
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / guard
Required: core tests (3.12): ⏳ pending, core tests (3.13): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 75.60%
Baseline 85.00%
Delta -9.40%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 77
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/ci_failure_triage.py 44.2% 123
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Low Coverage Files (<50.0%)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 77
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/ci_failure_triage.py 44.2% 123
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 15:53 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new “model-profile trial” execution surface to the Workflows automation stack: a Workflows-only manual workflow_dispatch shim that calls an immutable, read-only reusable runner to execute exactly one Sol/Terra/Luna trial arm and emit a strict quarantine artifact.

Changes:

  • Add agents-model-profile-trial.yml (manual shim) plus reusable-model-profile-trial.yml (immutable read-only runner) and a deterministic Python contract helper to validate/emit the quarantine artifact.
  • Extend the agent registry (Workflows + consumer template) with a dedicated model_profile_trial_contract and Sol/Terra/Luna trial execution profiles pinned to a specific reusable-workflow SHA.
  • Add focused tests and documentation updates to keep workflow inventory, naming, and contract guarantees aligned.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/workflows/test_workflow_naming.py Registers display names for the new shim + reusable workflow in the naming inventory test.
tests/workflows/test_model_profile_trial_workflows.py New tests asserting the shim is single-arm + pinned, and the runner stays read-only with strict artifact semantics.
tests/scripts/test_model_profile_trial_contract.py New unit tests for the deterministic contract helper (profile resolution + artifact emission).
templates/consumer-repo/.github/agents/registry.yml Adds trial contract + pins Sol/Terra/Luna execution profiles to the immutable reusable ref.
scripts/validate_workflow_yaml.py Exempts the pinned reusable ref line prefix from line-length checks.
scripts/validate_template_completeness.py Marks agents-model-profile-trial.yml as Workflows-only (excluded from consumer templating checks).
scripts/model_profile_trial_contract.py New deterministic validator/emitter for the read-only trial contract + quarantine artifact schema.
README.md Documents the new reusable and the model-profile canary workflow at a high level.
docs/WORKFLOW_GUIDE.md Adds the new shim + reusable runner to the workflow topology guide and descriptions.
docs/ci/WORKFLOWS.md Documents the new reusable runner and shim in the CI/workflow inventory.
docs/ci/WORKFLOW_SYSTEM.md Updates the system overview/topology tables to include the new workflows.
.github/workflows/reusable-model-profile-trial.yml New reusable workflow implementing the pinned, read-only trial runner and artifact upload.
.github/workflows/README.md Adds the model-profile trial to the workflows-layer overview.
.github/workflows/agents-model-profile-trial.yml New manual workflow_dispatch shim that forwards frozen inputs to the pinned reusable runner.
.github/scripts/tests/agent-registry.test.js Updates registry resolution tests for the new trial runner fields/values.
.github/agents/registry.yml Adds trial contract + pins Sol/Terra/Luna execution profiles to the immutable reusable ref.

Comment thread scripts/model_profile_trial_contract.py
Comment thread .github/workflows/reusable-model-profile-trial.yml Fixed
Comment thread .github/workflows/reusable-model-profile-trial.yml Fixed
Comment thread .github/workflows/reusable-model-profile-trial.yml Fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42f63468e1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/agents-model-profile-trial.yml Outdated
@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 15:59 — with GitHub Actions Inactive
@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 16:13 — with GitHub Actions Inactive
@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 16:15 — with GitHub Actions Inactive
@stranske
stranske merged commit 3a44d06 into main Jul 10, 2026
55 checks passed
@stranske
stranske deleted the codex/model-profile-trial-runner branch July 10, 2026 17:03
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.

3 participants