Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .codex/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ For repo navigation, surface ownership, and PR diff packet guidance, read

| Task Type | Recommended Model |
|-----------|------------------|
| Routine coding, tests, formatting | GPT 5.5 |
| Complex features, architecture | GPT 5.5 |
| Debugging, refactoring | GPT 5.5 |
| Security review | GPT 5.5 |
| Routine coding, tests, formatting | GPT-6 Luna medium |
| Complex features, architecture | GPT-6 Sol high |
| Debugging, refactoring | GPT-6 Sol high |
| Security review | GPT-6 Sol high |

## Skills Discovery

Expand Down
2 changes: 1 addition & 1 deletion .codex/agents/docs-researcher.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
model = "gpt-5.5"
model = "gpt-6-luna"
model_reasoning_effort = "medium"
sandbox_mode = "read-only"

Expand Down
2 changes: 1 addition & 1 deletion .codex/agents/explorer.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
model = "gpt-5.5"
model = "gpt-6-luna"
model_reasoning_effort = "medium"
sandbox_mode = "read-only"

Expand Down
2 changes: 1 addition & 1 deletion .codex/agents/reviewer.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
model = "gpt-5.5"
model = "gpt-6-sol"
model_reasoning_effort = "high"
sandbox_mode = "read-only"

Expand Down
22 changes: 22 additions & 0 deletions tests/codex-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,28 @@ if (
passed++;
else failed++;

if (
test('sample Codex roles route research to GPT-6 Luna and review to GPT-6 Sol', () => {
const expected = {
'explorer.toml': ['gpt-6-luna', 'medium'],
'docs-researcher.toml': ['gpt-6-luna', 'medium'],
'reviewer.toml': ['gpt-6-sol', 'high'],
};
for (const [roleFile, [model, effort]] of Object.entries(expected)) {
const roleConfig = fs.readFileSync(path.join(codexAgentsDir, roleFile), 'utf8');
assert.ok(roleConfig.includes(`model = "${model}"`), `${roleFile}: expected ${model}`);
assert.ok(
roleConfig.includes(`model_reasoning_effort = "${effort}"`),
`${roleFile}: expected ${effort} effort`,
);
}
const guidance = fs.readFileSync(path.join(repoRoot, '.codex', 'AGENTS.md'), 'utf8');
assert.ok(!/GPT 5\.5/.test(guidance), 'Expected model recommendations to be updated');
Comment on lines +124 to +131

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.

P2 Inactive configuration passes

These checks search raw TOML and Markdown text instead of validating active parsed settings and the expected recommendation. Commenting out every role model assignment or placing it in an inert TOML string still passes, and missing or incorrect GPT-4 guidance passes too. This is non-blocking, but it leaves the routing change without meaningful regression protection.

Artifacts

Configuration assertion reproduction script

  • The script creates inactive-setting and incorrect-guidance variants, then runs the current regression test against each variant.

Configuration assertion reproduction output

  • The output shows all four invalid variants passed despite absent parsed model settings or missing and incorrect guidance.

View artifacts

T-Rex Ran code and verified through T-Rex

Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/codex-config.test.js
Line: 124-131

Comment:
**Inactive configuration passes**

These checks search raw TOML and Markdown text instead of validating active parsed settings and the expected recommendation. Commenting out every role model assignment or placing it in an inert TOML string still passes, and missing or incorrect GPT-4 guidance passes too. This is non-blocking, but it leaves the routing change without meaningful regression protection.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

})
)
passed++;
else failed++;

console.log(`\nPassed: ${passed}`);
console.log(`Failed: ${failed}`);
process.exit(failed > 0 ? 1 : 0);