Skip to content

Analyse the replayed position on request - #6

Merged
BAKocska merged 7 commits into
mainfrom
feat/replay-analysis
Sep 28, 2026
Merged

BAKocska merged 7 commits into
mainfrom
feat/replay-analysis

Conversation

@BAKocska

@BAKocska BAKocska commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Delivers RM-01.c on top of #4 and #5, and composes it with the replay notes.

  • ? in the replay viewer runs the bounded placement-only analysis (bot.Analyze, the hint's two-second guard) on a copy of the entry on screen, in the background. The panel shows the policy badge, the hole as the engine's choice under a bounded search (never a proven best move), its explanation, up to four candidates with exact/upper/lower/unscored scores, and the completed work with its stop reason; clock and cancellation stops are marked not reproducible. A finished position gets no recommendation. Highlights are drawn only on the analysed entry.
  • Any seek, : jump, leaving (q, esc, ctrl+c) or ? again cancels the search and drops its result; results and ticks are bound to their job, so an old answer never lands on a newer request or a reopened replay. Nothing is written, and it works regardless of the game's hint setting.
  • The analysis lead outranks the record's details when rows are short and has a whole-item status-line form where there is no panel.
  • Composition with notes: footer m mark · e note · ? analyse; ?, m and q typed into the note editor are text; the status line orders jump/note input, notes refusal, analysis, counter, keys; the stale-note replacement gate measures the rows the study block really gets beside an analysis.

Verification

  • Local composed tree (main + this branch): gofmt, vet (also GOOS=windows), 1,364 test/subtest passes with 41 compiled e2e and zero e2e skips; only the three opt-in bot experiments and helper-process entry points skip. Race on the CI package set plus the progress tests.
  • Compiled e2e TestReplayAnalysisFromTheMenu (required on native Windows): menu → finished game → jump → ? → candidates and policy wording → seek clears the result, no files written.
  • Two review rounds plus a composition seam test. All nine analysis mutations and all twelve applicable notes mutations are killed on the composed tree (clone sharing, entry-vs-ply, key binding, cancel on leave, bound mislabelling, candidate cap, stale job identity, tick re-arming, reproducibility; stale-note overwrite beside an analysis).
  • Actual binary smoke in tmux at 120×36, 40×20 and 20×8.

Follow-ups in this PR

  • The first macOS run of this head failed TestReplayAnalysisFromTheMenu: after q the menu marker was captured while the replay footer was still on the bottom row, so a negative check read a torn frame. d9fab78 asserts departures on settled frames in the three new scenarios; no product code changed, and the rerun passed on all eight jobs.
  • 3317f27 updates the README feature table and the landing page for notes, replay analysis and play now.

? runs the bounded placement-only analysis on a copy of the entry on screen and shows its badge, choice, explanation, up to four candidates with their bounds and the completed work. Seeking, leaving or pressing ? again cancels the search and drops its result; the analysis outranks the record's details when rows are short and reaches the status line when there is no panel. Nothing is written.
A four-character hole filled the 20-column status line exactly once the caveat was cut, and the layout then dropped the badge as a cut word. The status fragment is now built from whole items: the caveat goes first, and the hole and badge stay together wherever they fit.
# Conflicts:
#	.github/scripts/test-windows.ps1
#	CHANGELOG.md
#	docs/MANUAL.md
#	internal/app/replay.go
#	internal/cli/game.go
# Conflicts:
#	.github/scripts/test-windows.ps1
#	CHANGELOG.md
#	docs/MANUAL.md
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 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-28T13:56:49.103589Z 67834a7 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.

A positive marker from the next screen can be captured while the previous screen's rows are still being repainted, which made a macOS runner see the replay footer under the menu. The negative checks now read the frame once it has settled.
@BAKocska
BAKocska merged commit 25df068 into main Sep 28, 2026
16 checks passed
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