Skip to content

Retro: judge-local stale refusal, grep note, restate-text.py - #353

Merged
Kyu-seok merged 4 commits into
masterfrom
chore/retro-cold-read
Nov 16, 2026
Merged

Kyu-seok merged 4 commits into
masterfrom
chore/retro-cold-read

Conversation

@Kyu-seok

Copy link
Copy Markdown
Owner

Summary

Four changes to the agent environment from the retro on the statement cold-read and #350:

dd4bf775  scripts/judge-local.sh       refuses a database behind this checkout (exit 2), like problem-text.sh and db-sql.sh
b7556696  CLAUDE.md                    grep in Claude Code's Bash is ugrep in the claude binary; killed under memory pressure
acd62ed8  restate-problem step 2       Examples of a Driver that prints a check (DRIVER_PRINTS_ANOTHER_FORM)
8d3bffa2  scripts/restate-text.py      writes a text-only Restatement migration from exact replacements

Evidence

  • Before: judge-local.sh against a database at V1 only printed a WARNING and judged the old cases (exit 0). In Statement cold-read 2026-11: fix 8 problems #350 a | tail hid that warning, and a corrected case was reported ACCEPTED against its old input.
    After: the new judge-local.test.sh cases pass: refused with exit 2, naming both versions and CODEBITE_ALLOW_STALE=1, which still judges.
  • restate-text.test.py has 7 cases: both languages, edits in order, the _ko name, a miss, a double match, $$, and a non-statement column. Run against the real database, it passes db-sql.sh's stale refusal through.
  • run-script-tests.sh and check-doc-references.py pass.

Merge Danger

Door: two-way

Blast Radius: tooling

judge-local.sh <slug> now exits 2 on a stale database where it used to judge it. --cases mode is unchanged.

🤖 Generated with Claude Code

Kyu-seok and others added 4 commits November 16, 2026 23:38
problem-text.sh and db-sql.sh refuse a database missing the checkout's
migrations; judge-local.sh only warned on stderr and judged the cases as
they were, so a piped tail hid the warning and an old case was reported
ACCEPTED. It now shares require_current_db: exit 2, or judge anyway with
CODEBITE_ALLOW_STALE=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In this environment grep is a shell function running the claude binary as
ugrep. On the 8 GB machine it was killed (exit 137) about ten times in one
session, and a dev-branch-servers.sh migrate piped into it died too,
leaving V582 unapplied. /usr/bin/grep and output written to a file worked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 2 asked every Example's Output to be the sample's expected output,
but a Driver that prints a check (VALID, or k then the values) is exempt
through DRIVER_PRINTS_ANOTHER_FORM; that was only found by reading the
test, and #350's ticket proposed the wrong fix for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A text-only Restatement retyped whole columns (description, constraints,
English and Korean) to change a sentence. restate-text.py reads them as
they stand and applies exact old-to-new replacements, refusing one not
found exactly once or bringing in a $$; #350's seven Restatements were
written this way. restate-problem step 3 points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kyu-seok
Kyu-seok merged commit ff54d9d into master Nov 16, 2026
5 checks passed
@Kyu-seok
Kyu-seok deleted the chore/retro-cold-read branch November 16, 2026 14:43
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