test(harness): local playbook verification pack (#1044)#1112
Merged
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
26 tasks
Add a local-only fixture pack and align playbook assertions with oc_assert's contract/evidence input shape so post-merge verification can exercise pass, safe-form, and fail-fast paths without external sites or secrets. Constraint: #1044 must validate the existing playbook runner without adding a second harness or LLM judgement path. Rejected: create a new recipe runner | duplicates the merged #854 playbook surface and would broaden maintenance risk. Confidence: high Scope-risk: narrow Directive: keep playbook verification fixtures local, deterministic, and explicit about oc_assert evidence snapshots. Tested: npm test -- --runTestsByPath tests/cli/playbook/expand.test.ts tests/cli/playbook/parse.test.ts tests/cli/playbook/run.test.ts tests/cli/playbook/live-fixtures.test.ts; npm run build; npm run lint:tier; npm run lint -- --quiet Not-tested: manual browser smoke with a live Chrome instance; documented commands are included for merge-time verification.
fea2fac to
d3a8cb2
Compare
On Windows GH Actions runners, os.tmpdir() can return either the short (C:\Users\RUNNER~1\...) or long (C:\Users\runneradmin\...) form depending on the runner image. path.resolve() in cli/replay.ts is purely lexical and preserves whatever form it received, so when --out happens to be in a different form than what stdout returns, the replay-report test fails on `expect(stdout.trim()).toBe(destPath)`. Wrap mkdtempSync in fs.realpathSync so destPath is always in canonical form. Resolves the Windows-18 build-and-test failure on PR #1112.
shaun0927
added a commit
that referenced
this pull request
May 13, 2026
* Make browser playbooks reproducible evidence Add a local-only fixture pack and align playbook assertions with oc_assert's contract/evidence input shape so post-merge verification can exercise pass, safe-form, and fail-fast paths without external sites or secrets. Constraint: #1044 must validate the existing playbook runner without adding a second harness or LLM judgement path. Rejected: create a new recipe runner | duplicates the merged #854 playbook surface and would broaden maintenance risk. Confidence: high Scope-risk: narrow Directive: keep playbook verification fixtures local, deterministic, and explicit about oc_assert evidence snapshots. Tested: npm test -- --runTestsByPath tests/cli/playbook/expand.test.ts tests/cli/playbook/parse.test.ts tests/cli/playbook/run.test.ts tests/cli/playbook/live-fixtures.test.ts; npm run build; npm run lint:tier; npm run lint -- --quiet Not-tested: manual browser smoke with a live Chrome instance; documented commands are included for merge-time verification. * test(cli/replay): canonicalize tmpDir to fix Windows short-path mismatch On Windows GH Actions runners, os.tmpdir() can return either the short (C:\Users\RUNNER~1\...) or long (C:\Users\runneradmin\...) form depending on the runner image. path.resolve() in cli/replay.ts is purely lexical and preserves whatever form it received, so when --out happens to be in a different form than what stdout returns, the replay-report test fails on `expect(stdout.trim()).toBe(destPath)`. Wrap mkdtempSync in fs.realpathSync so destPath is always in canonical form. Resolves the Windows-18 build-and-test failure on PR #1112.
48 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Progress / Review status
Auto-refreshed 2026-05-13 — owner comments cleaned up to reduce review noise.
test/1044-playbook-live-pack→developd3a8cb2— Make browser playbooks reproducible evidenceOwner comment cleanup: 0 issue + 0 inline review comments deleted. Outstanding feedback from automated/external reviewers above is unchanged.
Summary
Closes #1044.
This PR keeps the #854 playbook runner as the single recipe surface and adds the missing local live-verification pack around it:
tests/fixtures/playbook/site/tests/fixtures/playbook/recipes/docs/recipes/live-verification-playbooks.mdassertexpansion aligned withoc_assert's{ contract, evidence }input shapetabIdreuse inoc playbook runafter a tool returnstabId, so reviewable playbooks do not hard-code ephemeral browser tab IDsDirection / duplication review
tabIdfor later same-tab verbs when the YAML omitstabId; explicittabIdremains authoritative.Success criteria covered
oc_assertcontracts and explicit evidence snapshots.Validation
Automated:
npm test -- --runTestsByPath tests/cli/playbook/expand.test.ts tests/cli/playbook/parse.test.ts tests/cli/playbook/run.test.ts tests/cli/playbook/live-fixtures.test.ts npm run build npm run lint:tier npm run lint -- --quietLive OpenChrome smoke against local fixture server:
Observed summaries:
Intentional failure evidence included:
1oc_assertStep 1 (assert): assert verdict="fail"selector: h1,contains: This Text Is Intentionally Missingtext_preview: Playbook Fixture HomeNon-goals preserved