Skip to content

Add a release-built example workspace - #201

Merged
jbragg merged 10 commits into
mainfrom
example-workspace
Oct 13, 2026
Merged

jbragg merged 10 commits into
mainfrom
example-workspace

Conversation

@gas2own

@gas2own gas2own commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds examples/workspace/, a public example with a Quarto literature review and a separate LaTeX paper sharing one bibliography. Each final release builds the example from that release’s own checkout and published TeX image, so the saved edit demo needs no release pins to bump or cross-repository updater.

The example loads the managed rules, helpers and evidence extension from plugins/asta-tools/skills/workspace/assets/ in the same checkout. A fixed edit in scripts/demo-edits.patch generates real text differences and a highlighted paper PDF. paper-preview.sh now handles workspaces below the Git root, with a regression test for project-relative paths.

After final-tag image promotion and :latest image updates succeed, docker.yml calls the example workflow. Only a passing example build for the newest final release can deploy to Pages. Deployment jobs share one Pages lock and retain pending jobs; an older build cannot overwrite a newer demo or cancel its queued deployment. Build failure preserves any existing site; deployment failure reports the live state as unconfirmed. Both reuse one issue per release tag. Example failures do not block image promotion, which has already completed. The separate, non-required PR check is path-filtered to the example, its workflow/tests and the shared workspace assets.

Deployment requires a repository administrator to enable Pages with source GitHub Actions and configure the github-pages environment with a Tag rule for v* under Selected branches and tags. Pages is currently disabled (has_pages: false); no other workflow publishes this repository’s site. The reusable workspace workflow publishes caller repositories. The example owns this repository’s site root; future publishers must combine their content. The Codespace link remains omitted pending verification of the subfolder preview.

Related PRs

  • PR 165 is closed as stale: its copied-scaffold implementation conflicts with the current managed workspace skill, guide and workflow stub. This example’s release-owned build removes its need for a floating workflow channel. Automatic advancement/protection of the latest Git branch and a floating default for other workspaces are still separate, unimplemented follow-up requirements; this PR does not change either policy.
  • PR 143 and PR 145 remain separate and are not changed or superseded here. Their evidence-popover and citation-link fixes will reach the example through the first release containing them. Both branches include current main at release 0.109.0 and their CI passes. They currently conflict in tests/test_what_changed.py, so whichever merges second needs a rebase; their generator changes merge automatically.
  • PR 160 remains separate and is not changed or superseded here. Its warning-detection fix affects the example’s shared render check; its preview-readiness helper is not used by the example. Its branch includes current main at release 0.109.0 and CI passes.

Review findings addressed

The independent review of b9bf649 found no blocking or should-fix issues and two nits. Both are addressed in b3c9b0a:

  • The home and literature-review pages now link to the existing workspace guide’s PDF/LaTeX section. The fixed edit patch uses the same updated context, and a real patch-application test guards against drift.
  • Failure reporting reuses the exact release-tag issue, appends the latest failed run, and reopens a closed issue on recurring failure. A lookup failure aborts rather than creating a duplicate. Four regressions cover reruns, closed issues, similar titles and lookup failure.

Local validation: 162 focused Python tests, 10 demo-builder tests, repository-wide Ruff formatting/lint and all 26 skill manifests pass. Three reporter regressions reject the previous workflow.

Exact-tree validation passed before push in v0.109.0-tex: patched tree b84e69bc517decf31779e662baa8fc925ffe9e72 matches pushed commit b3c9b0a. The real example render, baseline paper, edited demo, PDF diff and clean tracked checkout all pass.

The image-suite run installs jq to match Ubuntu CI prerequisites and first reproduces two unchanged baseline failures: legacy Git environment handling and latexmk accepting a missing bibliography. Its remaining suite passes with two test functions (three parameterized cases) deselected; that is not an unqualified full-suite pass. Those released-image behaviors are tracked separately. GitHub CI, example build, and slim/TeX image smoke on both architectures pass on b3c9b0a, without the image-suite exclusions. Those checks cover the preceding head. The second independent review found release-deployment concerns; the current fixes and validation are recorded below.

Second review dispositions

The second independent review recommended changes on b3c9b0a. Commit 58502db addresses the verified code issues and documents administrator-owned setup:

  • Environment policy: documented Pages enablement and the v* Tag rule. No settings or permissions were changed. The claimed automatic default-branch-only policy is not universal: GitHub documents that environments created by workflow references have no default protection rules. Tag authorization still needs explicit setup here. GitHub environment defaults.
  • Deployment ordering: a shared pages concurrency group with queue: max retains pending deployments. Inside that lock, a fresh paginated tags API lookup and numeric version sort allow only the newest final tag; older/prerelease tags skip, and unreadable/empty final tags fail closed.
  • Asset coverage: the optional example PR check includes shared workspace assets and its workflow tests.
  • Failure reporting: build and deployment failures get distinct messages. Deployment failure makes no claim about the current site. The existing exact per-tag issue title is retained for rerun deduplication.
  • Site ownership: repository metadata reports Pages disabled, and no other local workflow publishes this repository’s site. The reusable workspace workflow is caller-owned. The README records site-root ownership for future publishers.
  • Example nits: corrected evidence-symlink comments and spacing, removed unused cache/sync/ref-print boilerplate, reused the shared paper targets, and regenerated all patch blob hashes. The real patch test now verifies three-way applicability.
  • Dependency/version checks: PyYAML is already declared in the test extra. Python 3.11 is already the package minimum; the README states that demo-test requirement.

Exact-tree validation in ghcr.io/allenai/asta:v0.109.0-tex passed before push: checksum-verified patch 9b66cbf8acb25293dce67d28b9676ce4d48b451c2eb459989f26f556ba34ae4e, tree eec4b1737b4df18052ca13d78ffa3a64d22bc1c2, identical to 58502db. Python 3.11.2, focused workflow/paper tests, ten demo tests, real Quarto/edited-demo/PDF-diff checks, shared paper build/clean and clean tracked checkout pass. No test exclusions were used for those checks. Full local make ci passes: 1,024 tests passed, 12 optional skips, Ruff formatting/lint and all 26 skill manifests, with executor credentials excluded. Validation used task-local Make 4.3, Node 22.20.0 and writable UV/npm caches, with default test selection and skills@latest. The earlier Node 20/read-only-cache installer failure and interrupted bootstrap run are not counted as passes. Two failure-message regressions reject the reviewed workflow; fifteen workflow tests and ten demo tests pass. The real tags API lookup selects current final tag v0.109.0.

All verified code findings are addressed; Pages setup remains administrator-owned. Native CI, example build and slim/TeX image smoke on both architectures all pass on 58502db.

Latest review disposition and human handoff

The latest whole-PR review raised one prerelease-trigger concern on 58502db. Not applicable to the existing dependency chain; no code change: promote first validates ^v[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$. Other prerelease or malformed tags fail before promotion. RC tags pass that validator but skip latest. The example requires successful latest, which requires successful promote; neither downstream condition overrides failed/skipped dependencies. GitHub documents this propagation through needs. A broad expression at the example job does not bypass the earlier validator.

Verification on the unchanged head: the actual Bash validator was extracted and run for 12 final/RC/other-prerelease/malformed tag cases; the inspected needs/if chain makes only final tags eligible. All 15 existing example-workflow tests pass in a credential-isolated temporary environment. This was local validator execution and workflow inspection, not a new tag push or image promotion. The earlier native CI, example build and both-architecture image checks remain green on this same head. All previous findings retain their recorded dispositions.

The automatic review allowance is exhausted. The cycle ends without a clean decorrelated pass: its final reported concern is rejected with the evidence above, and another unchanged-diff review would add little. No further review was submitted. The settled diff is handed to the recorded human reviewer; a human may choose whether an additional independent round is worthwhile. Administrator-owned Pages enablement and the v* tag rule remain required before live deployment.

Reviewer requested: rodneykinney

Suggested-by: @jbragg

…n subfolder projects

paper-preview.sh built the base paper path from the repo-root worktree
without the project's subdirectory, so What changed lost the paper diff
for workspaces not at the git root.

Suggested-by: @jbragg
@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Automatic CI repair attempt 1 of 2 started for CI.

The builder no longer reads a cached workspace archive, so drop the cache
fixture and mtime check, and replace the missing-cache test with one for
running outside a git checkout.
@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Automatic CI repair attempt 2 of 2 started for Example workspace.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

The CI failure was a formatting error from this PR's own files. That's fixed and pushed to example-workspace, and CI passes on the new head. The separate, non-required Example workspace check still fails, at a later step than before.

What I changed:

  • Format and lint (the CI failure): ruff format failed on examples/workspace/scripts/build-demo.py and refresh-demo.py. The next CI step, ruff check, would also have failed on a lambda assigned to a variable (E731) in examples/workspace/tests/test_demo.py. Both are fixed in af4e976.
  • Stale demo-builder tests: the PR listed three tests that still assumed the old cached-archive layout as remaining work, and they were what failed the Example workspace check. In 50d2b83 I removed the cache fixture and its timestamp check, and replaced the missing-cache test with one for running outside a git checkout. All 9 demo tests pass locally and in that check. The PR description's remaining-work line is updated to match.

What's still failing: the Example workspace check (run 38225204697) now gets through the Quarto render and the LaTeX paper build. It then stops at packaging with ValueError: demo has no PDF diff for paper. The demo needs a highlighted PDF diff of the edited paper, and the preview step didn't produce one: paper-preview.sh wrote "diff": false instead.

I didn't change anything for this one. It needs a run inside the -tex image to debug, and I'd only be guessing from here. My best guess is that the script still detects changed files wrongly when the workspace sits in a subfolder of the repo, but that is unconfirmed. This is the last item before review. The PR stays a draft with rodneykinney recorded as the pending reviewer.

ran via Claude (claude-opus-5-5, high)

git diff reported repo-root paths while LaTeX inputs are project-relative,
so a subfolder project never saw its paper as changed and built no diff.
@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Automatic CI repair stopped after 2 attempts. CI is still failing, and no further automated repair turns will run on this PR; human review is required. Latest failed run.

make render does not run paper-preview.sh, so the release site had no
paper-previews/paper/main.pdf for check-paper.sh to find.
@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

The Example workspace check now passes on #201: run 38226041319 at b9bf649. Two separate problems on the PR branch caused the failure, and I pushed a fix for each:

  • 3143e1f — no paper diff for a workspace in a subfolder. In paper-preview.sh, git diff --name-only returned paths from the repo root (examples/workspace/paper/main.tex), but the LaTeX inputs are relative to the project (paper/main.tex). The names never matched, so the script never saw the paper as edited and skipped latexdiff, which is why the demo check failed with "no PDF diff". Adding --relative fixes it. I also added a regression test that fails without the fix; the paper-preview and what-changed suites pass locally (122 tests).
  • b9bf649 — missing paper PDF for the main site. Once the demo built, check-paper.sh couldn't find _site/paper-previews/paper/main.pdf, because make render doesn't build the paper preview. preview-artifact-check now runs paper-preview.sh without a comparison base before the check. I couldn't run this one locally (no TeX here); it was confirmed only by the passing CI run.

I updated the PR description to match. The PR is still a draft with rodneykinney recorded as the pending reviewer. Neither of the pushes was independently reviewed this run. The remaining step is the independent AI review of the current diff, then requesting the reviewer and marking the PR ready. Enabling Pages with source GitHub Actions is still needed for deploys and requires a repo admin.

ran via Claude (claude-opus-5-5, high)

@jbragg

jbragg commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

@gas2own Two things before this leaves draft:

  1. Run your independent AI review and handle its findings. Hold off on requesting rodneykinney's review for now, so that it reaches him only once it's settled.
  2. In the description, say which of the open PRs Align workspace workflow and assets on a release channel #165, Keep evidence popovers whole on the what-changed diff #143, what-changed: make inline citation links resolve #145 and Keep workspace preview scripts in sync with the scaffold #160 this changes or supersedes, and close or refresh the ones releases since have made stale, so that nobody reviews or merges conflicting changes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-67701ed68373 (2/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Automated review status

  • codex review of b9bf649 (job gas2own-67701ed68373) — findings posted; follow-up on executor dispatch-875a9b3dd1994659 done
  • claude review of b3c9b0a (job gas2own-47ceac5eed53) — findings posted; follow-up on executor dispatch-c1c7dbeff16143a2 done
  • codex review of 58502db (job gas2own-0389fc7f5060) — findings posted; follow-up on executor dispatch-a7165c3d7a224d56 done

Now: automated cycle open — it closes once two different reviewer backends have posted a whole-PR review of the same head (58502db).

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Codex)

Automated review of the PR by a separately invoked Codex reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

None.

P1 (should fix)

None.

P2 (nits)

  • examples/workspace/index.qmd:7 and examples/workspace/lit-review/index.qmd:6 direct readers to a local DEVELOPER.md that this example does not contain. Link to the existing workspace skill guide.
  • .github/workflows/example-workspace.yml:80 creates a new issue on every failed rerun of the same release. Find and update an issue for that tag before creating one.

Recommendation: approve-with-nits

@gas2own

gas2own commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@jbragg Both items are handled on #201: the independent review is running, and the four older PRs are sorted. #201 stays a draft, and rodneykinney has not been requested.

  1. AI review: a Codex review of head b9bf649 is running. The findings will be posted word for word on Add a release-built example workspace #201. A follow-up turn will then fix them, and I'll request rodneykinney only after a reviewer other than the one that raised them comes back clean.
  2. Related PRs: Add a release-built example workspace #201's description now has a "Related open PRs" section.

ran via Claude (claude-opus-5-5, xhigh)

↪ Superseded by the later reply

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-a451c35ed2a5 (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-d56c66a58d7c (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

❌ CI toolchain check FAILED (exit 1) for allenai/asta-plugins@b9bf6492817198c8723abaab4c6ca92483be0a9f

  • Image: ghcr.io/allenai/asta:v0.109.0-tex
  • Failure point: the very first step, applying the candidate patch with git apply --index -. It exited 1 with "does not match index" for these files:
    • .github/workflows/example-workspace.yml
    • examples/workspace/index.qmd
    • examples/workspace/lit-review/index.qmd
    • examples/workspace/scripts/demo-edits.patch
    • examples/workspace/tests/test_demo.py
  • Because of this, the patch was not applied, and make ci, make -C examples/workspace check, make -C examples/workspace preview-artifact-check and the clean-tree check never ran. Nothing was validated either way.
  • The patch is a base64-embedded diff, checked against sha256 562321c4a5f5e61e9f575c831d34d52c0edffb69f520099684ec57f32e9d4caf and expected tree b84e69bc517decf31779e662baa8fc925ffe9e72. The failure came from git apply itself, before the tree check.
  • The patch touches the five files above, plus tests/test_example_workspace_workflow.py (new). Changes include:
    • the release-failure reporting step in the workflow, which would look up an existing issue, reopen it if closed, and comment on it instead of always creating a new one;
    • DEVELOPER.md references replaced with a workspace guide link;
    • a new patch-applies test.

Likely cause (not confirmed): the checkout's working tree had files whose stat info didn't match the index, so --index refused to apply. Re-running after refreshing the index (e.g. git update-index --refresh) or applying on a clean checkout may help; I haven't tried either.

shortened — ask for the full reply

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-e170f631a115 (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

❌ CI toolchain check FAILED (exit 2) for allenai/asta-plugins@b9bf6492817198c8723abaab4c6ca92483be0a9f

  • Image: ghcr.io/allenai/asta:v0.109.0-tex
  • The command applied a candidate patch (sha256 562321c4a5f5e61e9f575c831d34d52c0edffb69f520099684ec57f32e9d4caf, tree b84e69bc517decf31779e662baa8fc925ffe9e72), committed it, then ran make ci, make -C examples/workspace check, make -C examples/workspace preview-artifact-check, and a clean-tree check.
  • The failure came from make ci (make: *** [Makefile:39: test] Error 1): 31 failed, 983 passed, 11 skipped in 177s. The two later make checks and the clean-tree check did not run, since the shell uses set -eu.

Failed tests

  • tests/test_example_workspace_workflow.py (3), part of the candidate patch:
    • test_failed_rerun_updates_the_existing_release_issue
    • test_recurring_failure_reopens_the_release_issue
    • test_similar_issue_title_does_not_capture_another_release
  • tests/test_hooks.py (6):
    • test_approve_asta_files_allows_asta_path
    • test_approve_asta_files_allows_command_on_asta_path
    • test_approve_asta_files_allows_cwd_asta_path
    • test_approve_asta_files_allows_command_on_cwd_asta_path
    • test_approve_asta_bash_allows_asta_cli
    • test_approve_bd_bash_allows_bd
  • tests/test_workspace_overleaf.py::test_git_environment_removes_all_repository_overrides
  • tests/test_workspace_paper_scaffold.py::test_overleaf_named_main_requires_its_own_bibliography[False]
  • tests/test_workspace_workflow.py (20):
    • test_paper_image_pull_retries_without_changing_the_selected_release[0|2|5]
    • test_paper_image_invalid_release_tag_fails_before_pull[v1/x] and [v1.2.3+metadata]
    • test_paper_image_missing_workflow_ref_fails_before_pull
    • test_paper_toolchain_failure_keeps_preview_diagnostic
    • test_preview_wait_*: retries_lookup_from_detached_head, matches_pages_build_to_workflow_deployment, rejects_an_unidentified_pages_update, supports_initial_pages_deployment, preserves_baseline_for_retry, reports_unreadable_pages_api, bounds_pages_poll_and_preserves_baseline
    • test_paper_script_override_selection_and_copy_failures[...]: trac

shortened — ask for the full reply

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-0d6dcb800b0b (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

✅ CI toolchain check passed for allenai/asta-plugins@b9bf6492817198c8723abaab4c6ca92483be0a9f

  • Image: ghcr.io/allenai/asta:v0.109.0-tex
  • Baseline: the two pre-existing failing tests failed as expected (2 failed, exit status 1):
    • tests/test_workspace_overleaf.py::test_git_environment_removes_all_repository_overrides
    • tests/test_workspace_paper_scaffold.py::test_overleaf_named_main_requires_its_own_bibliography[False]
  • Candidate patch: applied after a SHA-256 check (562321c4…9e4caf) and a resulting tree check (b84e69bc517decf31779e662baa8fc925ffe9e72), then committed locally as "Validate candidate example fixes". It touches:
    • .github/workflows/example-workspace.yml: failure reporting now looks up an existing issue by title, reopens it if closed, and comments on it; otherwise it creates a new one.
    • examples/workspace/index.qmd, examples/workspace/lit-review/index.qmd, examples/workspace/scripts/demo-edits.patch: DEVELOPER.md references replaced with a workspace guide link.
    • examples/workspace/tests/test_demo.py: new test that the edit patch applies.
    • tests/test_example_workspace_workflow.py: new tests for the issue reporting logic.
  • Checks run after the patch, all passing:
    • make ci with the two baseline-failing tests deselected
    • make -C examples/workspace check
    • make -C examples/workspace preview-artifact-check
    • clean git status for tracked files
  • The output tail shows the example paper building to build/main.pdf (1 page) and scripts/check-paper.sh running.

The two baseline failures were deselected in make ci, not fixed.

shortened — ask for the full reply

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-47ceac5eed53 (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Fixed both review findings in b3c9b0a: working guide links and duplicate-free release failure reporting. All GitHub checks pass. PR 201 documents the older-PR cleanup: #165 is closed; #143, #145 and #160 remain separate. A second independent review is queued; the PR stays draft and human review remains held.

Decisions needed

  • Before deployment, a repository admin must enable Pages with source GitHub Actions.

shortened — ask for the full reply

ran via Codex (gpt-6.1-sol, high)

↪ ⚠️ Tracking lost — outcome unknown

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Claude)

Automated review of the PR by a separately invoked Claude reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

None.

P1 (should fix)

  • .github/workflows/example-workspace.yml:58-66: deploy runs from a tag ref (refs/tags/vX.Y.Z). The auto-created github-pages environment normally allows only the default branch, so every release deploy would be rejected. That opens a failure issue on each release while the demo is never published. Fix: add a v* tag rule to the environment's deployment policy and document that setup step. Alternatively, deploy from a workflow_dispatch/workflow_run on the default branch.
  • .github/workflows/example-workspace.yml:22-24,56: concurrency is keyed per ref-name, and cancel-in-progress is false for releases. Two releases cut close together can therefore deploy out of order, and an older tag can overwrite a newer demo. Fix: add concurrency: { group: pages, cancel-in-progress: false } on deploy. Also skip deploy when ref-name is not the newest final tag, e.g. compare against git tag --sort=-v:refname | grep -v -- -rc | head -1.
  • .github/workflows/example-workspace.yml:13-16: the PR paths filter omits plugins/asta-tools/skills/workspace/assets/**. The example builds from those assets via workspace.mk:2-4, Makefile:47 and build-demo.py:42, and this PR itself changes paper-preview.sh. Asset regressions will surface only post-release as an issue. Fix: add the assets path to the filter.
  • .github/workflows/example-workspace.yml:69-97: report also fires when deploy fails. In that case the issue body says "failed to build" and "the previous demo is still published", which may be wrong for a partially failed deploy. Fix: branch the message on needs.build.result vs needs.deploy.result.
  • Pages target is a single site per repo. If this repo already publishes Pages from another workflow (e.g. docs), each release now replaces it with the example. Fix: confirm no other Pages consumer exists, or publish into a subpath of the existing site.

P2 (nits)

  • examples/workspace/.gitignore:6-8 and examples/workspace/_quarto.yml:22-23: the comments say the evidence extension is fetched by make workspace-assets and is "not vendored". It is actually a committed symlink (_extensions/evidence), and no workspace-assets target exists. Fix: update both comments.
  • examples/workspace/Makefile:14-25: the whole .asta/cache/workspace.mk / docs.yml branch is dead because workspace.mk is committed. Its error message also points to .github/workflows/docs.yml, which doesn't exist under examples/workspace. Fix: drop the branch or note that it is template boilerplate kept for parity.
  • examples/workspace/Makefile:52-53: print-asta-plugins-ref prints an empty string when the local workspace.mk is used. Fix: remove the target or define a fallback.
  • tests/test_example_workspace_workflow.py:9: adds a yaml (PyYAML) import. Fix: ensure it is in the test dependencies, or use pytest.importorskip("yaml").
  • examples/workspace/tests/test_demo.py:46,108,164,262: parenthesized multi-item with requires Python ≥3.10. Fix: confirm the -tex image's python3 is new enough, or document the requirement.
  • examples/workspace/.gitignore:17-18: stray double blank line.
  • examples/workspace/scripts/demo-edits.patch:15: the index 0d0152b.. line does not match the committed blob (76fd79a). It is harmless for git apply without --3way, but would break any 3-way fallback. Fix: regenerate the patch from the committed sources.

Recommendation: request-changes

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-b99f707dd6e8 (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-a57c827f6c96 (2/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

The deployment fixes passed the TeX-image tests, real demo/PDF-diff build and clean-checkout validation; I recorded the exact-tree results. The existing implementation continuation is still running and owns the push and review handoff. PR 201 remains draft with human review held.

Decisions needed

  • Before deployment, a repository admin must enable Pages with source GitHub Actions and allow v* tags in the github-pages environment.

ran via Codex (gpt-6.1-sol, high)

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the second review in 58502db, on the existing branch.

Finding Disposition
Tag deployment policy Documented administrator setup: Pages source GitHub Actions, and github-pages → Selected branches and tags → Tag v*. No settings changed. The universal default-branch-only premise is unsupported: GitHub documents that workflow-created environments have no default protection rules.
Older release overwrites newer demo Fixed: shared pages deployment lock, queue: max to retain pending deployments, fresh paginated tags lookup inside the lock, numeric final-version selection and conditional deploy. Unreadable/empty final tags fail closed; older tags and prereleases skip.
Shared assets missing from PR filter Fixed: includes workspace assets and workflow tests.
Deployment failure misreported as build failure Fixed: distinct build/deploy failure messages; deployment failure leaves the live state explicitly unconfirmed. Legacy per-tag issue titles remain for deduplication.
Possible collision with another Pages site Checked: repository metadata reports has_pages: false; no other local workflow publishes this repository's site. The reusable workspace workflow is caller-owned. README records site-root ownership for future publishers.
Misleading evidence-extension comments Corrected to describe the committed symlink. The inherited shared rules do provide workspace-assets, but they intentionally skip that symlink.
Dead cache/docs-workflow Makefile branch Removed unused cache/sync boilerplate; example rules use this checkout directly. Duplicate paper recipes were removed in favor of the shared targets, with actual paper build/clean validation.
Empty ref-print target Removed unused target.
PyYAML test dependency Already declared in the test extra; no dependency change needed.
Parenthesized with compatibility Package requires Python 3.11; the released image was verified as Python 3.11.2. README now states the demo-test requirement.
Extra blank line Removed.
Stale demo-patch blob index Regenerated all full blob hashes from committed sources; real patch test now verifies three-way applicability.

Validation: full credential-isolated local make ci passes 1,024 tests with 12 optional skips, Ruff formatting/lint and all 26 skill manifests, using task-local Make 4.3/Node 22.20.0 and writable UV/npm caches. Default test selection and skills@latest were retained. The earlier Node 20/cache bootstrap failures and interrupted run are not passes. Fifteen workflow tests and ten demo tests pass; two message regressions reject the reviewed code.

Before push, v0.109.0-tex applied checksum-verified patch 9b66cbf8acb25293dce67d28b9676ce4d48b451c2eb459989f26f556ba34ae4e and checked tree eec4b1737b4df18052ca13d78ffa3a64d22bc1c2, identical to this commit. Focused workflow/paper tests, real Quarto render, edited demo, highlighted paper PDF diff, paper build/clean and clean tracked checkout all pass. No exclusions were used for those checks. Actual tags API lookup selects current final release v0.109.0.

All verified code findings are addressed. Administrator-owned Pages/tag-policy setup remains open before live deployment. The PR stays draft and human review remains held while the fixed head enters independent re-review.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Started async job gas2own-0389fc7f5060 (1/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Codex)

Automated review of the PR by a separately invoked Codex reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

None.

P1 (should fix)

  • .github/workflows/docker.yml:204 — The condition excludes only -rc. tags, so other prerelease tags can start the example workflow despite the final release requirement. Gate on the same vX.Y.Z format used by the deployment check.

P2 (nits)

None.

Recommendation: request-changes

@gas2own

gas2own commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Addressed the review findings on PR 201, with every disposition recorded. All CI and real TeX demo checks pass. The fresh review raised one prerelease-trigger concern; its follow-up is queued for triage. The PR remains draft and human review remains held.

Decisions needed

  • Before deployment, a repository admin must enable Pages from GitHub Actions and allow v* tags in the github-pages environment.

ran via Codex (gpt-6.1-sol, high)

↪ ⚠️ Tracking lost — outcome unknown

@gas2own
gas2own requested a review from rodneykinney October 12, 2026 19:41
@gas2own
gas2own marked this pull request as ready for review October 12, 2026 19:41
@gas2own

gas2own commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

PR 201 is ready for review, with rodneykinney requested. The latest finding is not applicable: other prereleases fail promotion, while RCs skip the prerequisite latest job. No code change was needed. Twelve tag cases and 15 workflow tests pass; native CI remains green.

The automatic review allowance is exhausted. The cycle ended without a clean independent re-review; I recommend human review now.

Decisions needed

  • Before deployment, an administrator must enable Pages from GitHub Actions and allow v* tags in the github-pages environment.

ran via Codex (gpt-6.1-sol, high) · shortened — ask for the full reply

@jbragg
jbragg merged commit 7b45d1b into main Oct 13, 2026
15 checks passed
@jbragg
jbragg deleted the example-workspace branch October 13, 2026 17:11
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.

3 participants