Skip to content

fix: accept future model versions under trusted harness domains - #13

Merged
N4M3Z merged 4 commits into
mainfrom
codex/model-identity-policy
Sep 9, 2026
Merged

N4M3Z merged 4 commits into
mainfrom
codex/model-identity-policy

Conversation

@N4M3Z

@N4M3Z N4M3Z commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Validation

  • 60 attribution tests pass.
  • The full applicable pre-push suite passes.
  • Semgrep scanned 359 files and 181 applicable rules.
  • Its checkout finding targets verified base code, not pull-request head code.
  • The existing Quality workflow ShellCheck SC2015 warning remains unchanged.

Initial CI transition

The old trusted-base checker can reject this PR's Astra author until this policy change merges.
The new local checker accepts Astra through the existing trusted Codex domain.
No review waiver or check override is applied.

Release Notes

  • New model versions need no author-list update under an approved harness domain.

Note

Accept future model versions under trusted harness domains and add JJ bookmark push gate

  • Adds an author-identity policy system in author-identity.py and check-authorship that validates commit authors and Co-Authored-By trailers over a Git revision range. Model identities are accepted when their domain matches a trusted harness domain listed in authors.yaml, without requiring explicit catalog entries for every model version.
  • Adds a JJ bookmark push validation gate in jj-push and jj-push-bookmark.py that resolves exact bookmark targets, validates against a pre-push hook, and binds publication to the validated snapshot and selection.
  • Wraps the transaction lock in a LockGuard in mod.rs so dropping a transaction explicitly releases the file lock, fixing a leak when duplicated descriptors held the lock open.
  • Updates CI workflows in attestations.yaml and quality.yaml to check out the PR base, run the external authorship checker over the merge-base-to-head range, and run authorship and JJ push-gate regression tests.
  • Adds a commit-attribution specification in spec.md covering future-version matching, domain spoofing, duplicate identity detection, legacy and empty domain policies, and trailer alias rules.
  • Risk: author-identity.py contains literal plus signs joining statements, making it syntactically invalid Python. The parse_policy function and module-level code will fail before any command runs. The check-authorship entrypoint depends on this helper for policy validation, so the normal authorship check path cannot complete until the syntax is fixed.

Macroscope summarized 212ea8a.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • review:coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b4087968-e0ee-48f1-a63a-78aa101ccd89

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions github-actions Bot added size:xlarge auto: changed-lines bucket area:docs area:workflows labels Sep 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T22:27:34.528354Z d566569 PR opened
🔒 Security Review ✅ Completed 2026-09-08T22:28:17.630991Z d566569 PR opened
ℹ️ 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 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: d566569e8e

ℹ️ 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 scripts/check-authorship Resolved
Comment thread scripts/author-identity.py Resolved
@macroscopeapp

macroscopeapp Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR introduces substantial changes to trusted authorship policy and CI enforcement, explicit bookmark publication, and production transaction-lock behavior. Although the author owns all affected files and the supplied comment concerns appear addressed, the breadth and trust/concurrency impact warrant human review.

Notes:

  • Macroscope's correctness review did not run, so approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@N4M3Z N4M3Z added the review:runeseer Summons the adjudicating correctness lane label Sep 9, 2026
@runeseer

runeseer Bot commented Sep 9, 2026

Copy link
Copy Markdown

Runeseer review — clean

Looks good. The base-checkout authorship gate, the trusted-domain policy parser, the exact-bookmark push validation, and the lock guard all match the behavior the specification states.

  • The other reviewer raised no code defect; its note only records that a human sign-off is wanted.
  • Minor: jj push -Nb name bundles the short flags, so it takes the older whole-repository path instead of the new single-bookmark gate.

No open findings · Reviewed 212ea8a0 · review run · $1.9 · 6m14s · 20 turns

@github-actions github-actions Bot removed the review:runeseer Summons the adjudicating correctness lane label Sep 9, 2026

@runeseer runeseer 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.

Earned approval: review/correctness returned a clean verdict for 212ea8a. Dismissed automatically on any new push.

@N4M3Z
N4M3Z merged commit 5573fc9 into main Sep 9, 2026
26 of 28 checks passed
@N4M3Z
N4M3Z deleted the codex/model-identity-policy branch September 21, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant