Skip to content

Fix/tester start url before context - #229

Open
DavertMik wants to merge 6 commits into
mainfrom
fix/tester-start-url-before-context
Open

DavertMik wants to merge 6 commits into
mainfrom
fix/tester-start-url-before-context

Conversation

@DavertMik

Copy link
Copy Markdown
Contributor

No description provided.

DavertMik and others added 6 commits September 14, 2026 14:46
Extracts src/utils/markdown-query.ts into src/utils/mdq/ as a
publish-ready package: MarkdownDoc + Selection, insert/remove verbs
alongside query, a comment selector, frontmatter handling, JS-value
matchers, and a planned jq-like CLI.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhJNfxLquFknSLJ6V8J9iD
Frontmatter uses yaml's Document API (comment-preserving) rather than a
hand-rolled parser; MarkdownDoc gains append/prepend; leading '.' is
accepted in the CLI grammar; documents a fourth migration breakage class
where MarkdownDoc === string silently stops a guard from firing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhJNfxLquFknSLJ6V8J9iD
11 tasks, 68 steps. Ordering keeps the repo green at every boundary:
port behind a shim first, migrate the 11 write-return-type breaks second,
then add features additively.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhJNfxLquFknSLJ6V8J9iD
A test captured its initial page state while the browser was still on the
page the previous test left open, and only navigated to the start URL
afterwards. Both consumers of that state — the Tester's iteration-1 page
context and Pilot's plan — therefore described the wrong page, and the
loop's `iteration > 1` gate skipped re-injection because it assumed the
start page had already been described.

A run whose scenario was to fill a create form opened with seven ARIA
blocks of the list page behind it and not one mention of the form's
fields, so its first action was a link on that list; Pilot, planning from
the same page, concluded the record already existed and told it not to
create one. The form was never filled.

The branch that already handles this for an error page does exactly the
right thing: visit the start URL, rebuild the initial state, and mark the
page as current so the session does not navigate twice. Drop its
error-page conjunct so it applies whenever the browser is not already on
the start URL. The number of navigations is unchanged — the visit moves
earlier — and the error-page guard that follows now also catches an error
served at the start URL itself.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants