Skip to content

fix: treat reading a symbolic ref as history-neutral in the conventions replay - #28

Merged
timmoser merged 1 commit into
mainfrom
fix/conventions-read-only-symbolic-ref
Oct 11, 2026
Merged

timmoser merged 1 commit into
mainfrom
fix/conventions-read-only-symbolic-ref

Conversation

@timmoser

Copy link
Copy Markdown
Member

What

git symbolic-ref <ref> (with options such as --quiet or --short) is classified as neutral in the conventions replay. A second positional argument or -d/--delete, which can move HEAD, still fails closed.

Why

The conventions criterion replays Git commands from the trajectory and fails when it cannot determine history. It treated every symbolic-ref as unknown. A Studio Moser v8 trial on GPT-6.1 Sol ran

git remote -v && git symbolic-ref --quiet refs/remotes/origin/HEAD

before creating style/pricing-card-copy-spacing, committing style: update pricing card copy and spacing and adding Pricing Card Notes.md. The verifier printed conventions: Git history or created files could not be determined and scored 0 for a trial that followed every convention.

Testing

$ uv run pytest -q    → 768 passed

Two new cases: the read form is accepted, the write form still fails closed. Replaying the fixed checker over all 42 recorded convention trials changes exactly one score, the trial above; no published result changes.

Workflow_Criteria.py is an input to the verifier image, so its digest changes for new runs.

🤖 Generated with Claude Code

…ns replay

git symbolic-ref with one ref only reads it, but the replay classed every symbolic-ref as unknown and failed closed. A v8 trial on GPT-6.1 Sol that branched, committed and named its file correctly scored conventions 0 because it first asked what origin/HEAD pointed at. Writing or deleting a ref still fails closed. Replaying all 42 recorded convention trials changes only that one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@timmoser
timmoser merged commit f6126c4 into main Oct 11, 2026
@timmoser
timmoser deleted the fix/conventions-read-only-symbolic-ref branch October 11, 2026 23:05
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