Skip to content

feat(runtime): validate T002 operational source and protection binding - #51

Merged
brettheap merged 4 commits into
mainfrom
017-operational-source-protection
Nov 12, 2026
Merged

brettheap merged 4 commits into
mainfrom
017-operational-source-protection

Conversation

@brettheap

@brettheap brettheap commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Add feature 017 T002 preflight for operator-owned runtime configuration. It refuses missing/extra/duplicate/pending/floating inputs, worker-selected URLs or trust, changed source/dependency/composition bindings, mismatched launch/run claims, changed protection/reviewer/bypass settings and expired or regressing readback. External canonical approval is independent of candidate input. The returned selection is deeply immutable and short-lived.

Factory-owned grammar candidate: opensoft/openXfactory#1308 at 7d99face8934f39fcccc4d9e4d0cf4b068d67ab6. Existing neutral APIs, offline verifier/proof gate, source-only consumer lock, dependency locks, pins and workflows are unchanged. Issuer #50 landed as 75b88eaad84d4e302d27700bb50b761b95167f2e before this work.

The trusted embedding supplies the independently selected approval, authenticated bounded readback callback/principal and clock. This parser does not acquire provider evidence or construct services. Python classes and synthetic callbacks do not prove deployed authentication, source measurement, complete provider-rule projection or administrative isolation. Later composition must repeat preflight and enforce the returned deadline. T004-T015 and codeXfactory's separate runtime/human gate remain pending. The initial narrow protection model and 60-second readback limit require source review before runtime use.

Validation: 727 local tests passed, including 158 new T002 cases, seven selected owning-source integrations and the unchanged issuer suite, with zero failures/errors/skips. Both pin verifiers, syntax, plain/strict validators and all five canonical pinned OpenSpec items pass. Signed real-RSA vectors change each expected launch claim independently. The local expert panel found no actionable issue. An initial test invocation placed its temporary root outside TMPDIR; the corrected full run passes without changing a sandbox rule or production code. Owned temporary key/state roots were removed and no attributable test/helper processes remain.

Tested source/tests at d8c166acc2961f349680e779311543eec0258d43 are unchanged by the receipt-only follow-up. JUnit SHA-256: 66f443784ad97fd8d3a527e2162a55347763310952ebbb23aee10ce3940c248e. At published head 864a2d19fda189174d97a5f6d89dba1d8393261b, all runnable hosted checks pass. Hosted pytest passed 724 with three existing shallow-history skips; dedicated full-history carve and neutrality/pruning suites passed 84 and 60 respectively. The neutrality comparison is IDENTICAL. Sonar quality gate is OK with zero open issues verified through the issue API. Codex review was explicitly requested again but quota-refused; it remains unverified. No protected setup/dispatch or live qualification occurred. Feedback remains deferred; neither historical blocked write was replayed.

Hosted quality follow-up addresses five maintainability findings with shared ref prefixes, ASCII-restricted decimal syntax and cleaner exception-test setup. Security/static review found no semantic regression. No waivers or exclusions were added. Hosted results are verified at 864a2d19fda189174d97a5f6d89dba1d8393261b.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 16 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Validate canonical operator configuration against independent approval, fresh readback, and launch/source/protection bindings before returning an immutable, deadline-bound selection.

  • scripts/workload_factory_binding_runtime/config.py L1-237

Documentation

Record T002 commissioning, implementation scope, verification results, and the remaining limits on runtime qualification.

  • AGENTS.md L20-23
  • specs/017-protected-runtime-qualification/analysis.md L3, L22-23, L30-38
  • specs/017-protected-runtime-qualification/contracts/runtime-embedding.md L28-39
  • specs/017-protected-runtime-qualification/evidence.md L183-259
  • specs/017-protected-runtime-qualification/operational-inputs.md L7
  • specs/017-protected-runtime-qualification/plan.md L5, L18-22
  • specs/017-protected-runtime-qualification/quickstart.md L17-18, L58-80
  • specs/017-protected-runtime-qualification/spec.md L5, L14-17
  • specs/017-protected-runtime-qualification/tasks.md L3-5, L13-21

Tests

Exercise rejection paths, independent readback and expiry, immutable results, and integration of approved launch claims with the existing verifier.

  • tests/runtime_binding/test_config.py L1-318

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T21:09:52.606133Z
We couldn’t complete this review. Comment @codex review to try again.
864a2d1 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit b2beb54 into main Nov 12, 2026
11 checks passed
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.

1 participant