Skip to content

fix(commit): resolve active model attribution - #22

Open
Amygos wants to merge 2 commits into
mainfrom
fix/commit-model-attribution
Open

Amygos wants to merge 2 commits into
mainfrom
fix/commit-model-attribution

Conversation

@Amygos

@Amygos Amygos commented Oct 2, 2026

Copy link
Copy Markdown
Member

The commit skill could record Codex:GPT-6 when the active model was Codex:GPT-6-Astra. Resolve the model for the current invocation so attribution stays accurate after model switches and skill or agent overrides.

Add lookup guidance for Codex, Claude Code, Pi, and OpenCode. Use a complete display label when available, fall back to the exact model ID, and verify the saved trailer while preserving long identifiers.

How to test

  • Follow the lookup guidance with model switches, Claude overrides, Pi branches, and OpenCode aliases. Check exact-ID fallback and clarification for unavailable or conflicting metadata; the scenario walkthroughs passed.
  • Run the commit and trailer checks in a disposable repository. All 15 cases passed, including long identifiers and rejection of missing, changed, or duplicate trailers.
  • Run Markdown and diff checks (passed). The skill validator still rejects the existing model: sonnet field; the override is preserved.

Generated by Codex:GPT-6-Astra with nethserver-pr

Resolve attribution from the active invocation so generic identities,
defaults, and stale selections cannot replace the model used for a
commit.

Document model lookup for each supported harness and retain exact IDs
when full display labels are unavailable. Verify the saved Assisted-by
trailer while preserving long model identities.

Assisted-by: Codex:GPT-6-Astra
@Amygos Amygos self-assigned this Oct 2, 2026
Keep shared harness and model definitions in SKILL.md to avoid
conflicting copies of the same attribution rules.

Link the reference to those definitions while retaining its guidance
on source precedence and preserving exact model identities.

Assisted-by: Codex:GPT-6-Astra
@Amygos
Amygos marked this pull request as ready for review October 7, 2026 14:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-10-07T14:32:00.263397Z 8366182 Draft marked ready
ℹ️ 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.

@Amygos
Amygos requested a review from Stell0 October 7, 2026 14:31

@gsanchietti gsanchietti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤞

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This approach looks very complex. I'd prefer keeping this SKILL generic and put harness-specific workarounds in local memory. Am I wrong?

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.

4 participants