Skip to content

docs: correct the statements the #143 spike disproved - #211

Merged
mmcky merged 1 commit into
mainfrom
claude/sharp-euler-oddda6
Sep 28, 2026
Merged

mmcky merged 1 commit into
mainfrom
claude/sharp-euler-oddda6

Conversation

@quantecon-services

Copy link
Copy Markdown
Collaborator

Corrects the docs that the #143 spike showed to be wrong, and records what the spike means for the release-gating plan (#138). The spike's evidence is in its findings comment, from canary runs 36378684976 (push), 36378695414 (workflow_dispatch) and 36378719592 (pull_request).

Only docs and a comment change: no action code, and no decisions made.

What changes

preview-netlify/README.md, preview-cloudflare/README.md

  • Security said "A notification is logged when deployment is skipped." That holds only for Dependabot and fork PRs.
  • On any event other than pull_request, both actions skip change detection, the deploy and the PR comment without logging it, and still succeed with an empty deploy-url. The section now says so, and tells callers to check deploy-url.

docs/dev/PLAN.md

  • 0b: "no parameterised-ref design is possible" is wrong. A gate can check out the candidate SHA and call uses: ./actions-repo/<action>, which works in container jobs. With four uses: lines rewritten, it also reaches build-jupyter-cache's sibling chain, which v0-next cannot. The row keeps v0-next and notes what the checkout design does not test: how consumers fetch the actions.
  • 0a: of the reasons the canary cannot be the gate, only Dependabot is repo-level. The image and the @v0 pin are set per workflow; the spike ran candidate code at a pinned digest from the canary. The row now says where the gate lives is open on Spike: settle the two gate-mechanism assumptions before building for them #143, and that the fixture it needs isn't in the canary yet (its cold builds fetch intersphinx inventories).
  • Consumers in production: "A manual dispatch can exercise preview on demand" is wrong: a dispatch skips the preview deploy.
  • 0c: adding triggers is not enough.
    • publish.yml's job-level if: accepts only tag pushes, so a scheduled or dispatched run would skip its only job.
    • A scheduled ci.yml would skip the preview deploy.
  • Disposition table: the Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 row notes the spike's result, and a new Spike: settle the two gate-mechanism assumptions before building for them #143 row says the decision is open.
  • Last updated: a new entry.

docs/dev/TESTING.md, and the header comment in .github/workflows/test-actions.yml

  • Both said pre-release coverage of build-jupyter-cache's sibling chain is impossible "by construction". A nested ./ resolves against the workspace, so rewriting those four uses: lines to local paths before the step runs would cover it. The spike did exactly that in the canary.
  • Both now say that, and that the harness doesn't do it. It would test a patched action.yml.
  • In the workflow file only the comment changes.

CHANGELOG.md

  • Two entries under [Unreleased] → Documentation.

Not in this PR

Checks run locally

  • python3 scripts/generate-docs.py --check passes. The preview READMEs have no generated blocks yet; their chapters come with docs(manual): chapters for the remaining seven actions, and delete QUICK-REFERENCE.md #190.
  • .github/workflows/test-actions.yml still parses. The gate's uses: ./<action> detection counts the same five actions, since comment lines never match its anchored pattern.
  • Every row in PLAN.md's tables still has the same number of cells as its header.
  • Because a workflow file changed, the harness gate will run the full harness rather than skip as docs-only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SUGTRULyyM87pug2MckrXo


Generated by Claude Code

The #143 spike (canary runs 36378684976, 36378695414 and 36378719592)
showed three things the docs said otherwise:

- A gate can check out the candidate and call
  `uses: ./actions-repo/<action>`, which works in container jobs. So
  PLAN 0b's "no parameterised-ref design is possible" is wrong, and of
  0a's reasons the canary cannot be the gate, only Dependabot is
  repo-level.
- On any event other than pull_request, the preview actions skip change
  detection, the deploy and the comment without logging it, and still
  succeed. So a manual dispatch does not exercise the preview deploy
  (PLAN, Consumers in production), and the preview READMEs' "a
  notification is logged when deployment is skipped" holds only for
  Dependabot and fork PRs.
- A nested `./` resolves against the workspace. So build-jupyter-cache's
  sibling chain can be covered before a release by rewriting its nested
  uses: lines, which TESTING.md and the harness header comment called
  impossible.

PLAN 0c, the #135 row and a new #143 row record what this means for the
plan. Whether to re-scope #135 and #136 stays open on #143. The harness
change is to a comment only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SUGTRULyyM87pug2MckrXo

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Several corrected claims depend on the state of the separate canary repository (its publish.yml job-level if:, ci.yml triggers, and cold-build network reads) that cannot be verified from this repository, so final human confirmation is warranted.

Review effort: Balanced
Findings: None

What changed in this PR

This PR corrects several documentation statements that the #143 spike disproved, and records what the spike means for the release-gating plan (#138/#135/#136). It touches only docs and one workflow header comment — no action logic changes. The corrections cover the preview actions' skip-without-logging behaviour on non-pull_request events, and the feasibility of a candidate-checkout gate design (uses: ./actions-repo/<action>) that the earlier docs had called impossible.

Changes:

  • Rewrites the preview READMEs' Security sections to explain that on any non-pull_request event both actions silently skip the deploy/comment and still succeed with an empty deploy-url.
  • Updates PLAN.md items 0a–0c, the canary claim, the disposition table (#135/#143 rows), and Last updated, plus TESTING.md and the test-actions.yml header comment, to reflect that rewriting the four sibling uses: lines to local paths can cover the build-jupyter-cache chain pre-release.
  • Adds two [Unreleased] Documentation entries to CHANGELOG.md.
File Description
preview-netlify/​README.md Corrects Security section: skip-notification only for Dependabot/fork PRs; silent skip with empty deploy-url on other events.
preview-cloudflare/​README.md Same correction, noting both deploy-url and deployment-url are empty.
docs/​dev/​PLAN.md Updates 0a/0b/0c, canary claim, disposition table, and Last updated to record the spike's findings.
docs/​dev/​TESTING.md Corrects the build-jupyter-cache sibling-chain row: coverable via local-path rewrite, not "impossible by construction".
.github/​workflows/​test-actions.yml Header comment mirrors the TESTING.md correction (comment-only).
CHANGELOG.md Two Documentation entries under [Unreleased].

Verification notes: the preview action code confirms the deploy/comment steps are gated on github.event_name == 'pull_request', so non-PR events leave deploy-url/deployment-url empty with no skip-log; the "four uses: lines" claim matches the one setup-environment@v0 and three build-lectures@v0 call sites in build-jupyter-cache/action.yml; PLAN.md tables retain consistent cell counts; the preview READMEs contain no generated-doc markers, so the manual edits won't disturb generate-docs.py. I found no issues to flag.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mmcky
mmcky merged commit 141a6dd into main Sep 28, 2026
26 checks passed
@mmcky
mmcky deleted the claude/sharp-euler-oddda6 branch September 28, 2026 10:30
quantecon-services pushed a commit that referenced this pull request Sep 28, 2026
…chapters

#211 added a paragraph to the preview-netlify and preview-cloudflare
READMEs: on any event other than pull_request, the actions skip change
detection, the deploy and the comment without logging it, and succeed
with empty outputs. This branch turns those READMEs into generated
signposts, so they are regenerated with scripts/generate-docs.py, and the
paragraph's facts move into both chapters' Behaviour sections. The
CHANGELOG and PLAN conflicts were two entries added at the same place:
both are kept, newest first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FeKTxWtkzVMyPbqeSgM2Tb
quantecon-services pushed a commit that referenced this pull request Sep 28, 2026
#214 and this branch each put a new first entry on PLAN's "Last updated"
line. Both are kept, this branch's first since it lands last, followed by
#214's and then #211's. #214's #102 row and this branch's item 10 row do
not overlap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FeKTxWtkzVMyPbqeSgM2Tb
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.

4 participants