Repository navigation
Description
Overview
Phase 3 of the GitHub token consolidation. The seven producer→organ refresh steps (4 viz render.yml → PyAutoEyes, 2 profiling pages_dashboard.yml → PyAutoPulse, autolens_inference/inference-summary.yml → PyAutoInsight) are the last readers of PAT_PYAUTOLABS. They move to per-step pyautolabs-bot App tokens and fail loud instead of warn-and-skip, after which phase 4 can delete the PAT.
Plan
-
Mint a
pyautolabs-botApp token immediately before each dispatch, scoped to the one target organ repo withcontents: write. -
Drop the "PAT missing → warn and skip" branch; rewrite the PAT header comments.
-
One PR per repo (7); App credentials are org-level, visibility
all— no per-repo wiring. -
Prove after merge with one dispatch per repo, confirming the organ-side refresh run.
-
Tier: judge — merge mode: human /prm
-
autolens_visualization
-
autogalaxy_visualization
-
autofit_visualization
-
autocti_visualization
-
autolens_profiling
-
autofit_profiling
-
autolens_inference
Detailed implementation plan
Affected Repositories
- autolens_visualization (primary), autogalaxy_visualization, autofit_visualization, autocti_visualization, autolens_profiling, autofit_profiling, autolens_inference
Branch Survey
All seven on main, clean (autolens_profiling: untracked dataset/abell_1201/ only). No worktree claims.
Suggested branch: feature/github-token-p3-dispatchers-app
Implementation Steps
- Viz
.github/workflows/render.yml(×4): addactions/create-github-app-token@v3stepid: app(client-id: ${{ vars.APP_CLIENT_ID }},private-key: ${{ secrets.APP_PRIVATE_KEY }},owner: PyAutoLabs,repositories: PyAutoEyes,permission-contents: write) before the eyes-refresh step;GH_TOKEN: ${{ steps.app.outputs.token }}; delete the-z "$GH_TOKEN"skip; rewrite header comment. - Profiling
.github/workflows/pages_dashboard.yml(×2): same,repositories: PyAutoPulse. autolens_inference/.github/workflows/inference-summary.yml: same,repositories: PyAutoInsight; delete the::error::guard.autofit_inferencehas no such step — untouched.- Validate: YAML parse + actionlint, PR CI read, witness grep empty.
- Post-merge proofs:
gh workflow runrender.yml / pages_dashboard.yml / inference-summary.yml once per repo; confirm organ runs.
Key Files
.github/workflows/render.yml(4 viz repos).github/workflows/pages_dashboard.yml(2 profiling repos).github/workflows/inference-summary.yml(autolens_inference)
Original Prompt
Click to expand starting prompt
GitHub token consolidation phase 3: the seven dashboard dispatchers on the App
Type: release
Target: autolens_visualization
Repos:
- autolens_visualization
- autogalaxy_visualization
- autofit_visualization
- autocti_visualization
- autolens_profiling
- autofit_profiling
- autolens_inference
Difficulty: medium
Unblocked: 2026-10-23 (2b merged — complete/2026/10/github-token-p2b-writers-app.md)
Autonomy: supervised
Priority: high
Status: formalised
Consequence: judge
Parent: draft/release/pyautohands/github_token_and_secret_setup_full_review.md (surveys in_surveys/; phase plan in 03_target_design_and_phases.md); phases 1/2a/2b = complete/2026/10/github-token-p1-hands-app.md, -p2a-readers-app.md, -p2b-writers-app.md
Witness:grep -rn PAT_PYAUTOLABS .github/workflowsis empty in all seven repos (and owner-wide,gh search code PAT_PYAUTOLABS org:PyAutoLabsfinds no workflow reader); no warn-and-skip on a missing credential; one green dispatch per repo whose organ refresh run is visible in PyAutoEyes / PyAutoPulse / PyAutoInsight
Review-minutes: 20
Unattended: never
Issued: 2026-10-23
The last PAT_PYAUTOLABS readers are seven producer→organ refresh steps. Each
sends one repository_dispatch to an organ repo:
autolens_visualization,autogalaxy_visualization,autofit_visualization,
autocti_visualization—.github/workflows/render.yml, step "Tell the
PyAutoEyes dashboard to refresh" →repos/PyAutoLabs/PyAutoEyes/dispatches
(eyes-refresh). Currently warns andexit 0without the PAT.autolens_profiling,autofit_profiling—.github/workflows/pages_dashboard.yml,
step "Tell the PyAutoPulse dashboard to refresh" → PyAutoPulse (pulse-refresh).
Currently warns and skips.autolens_inference—.github/workflows/inference-summary.yml, step
"Refresh PyAutoInsight after successful publication" → PyAutoInsight
(insight-refresh). Already fails loud; just swap the credential.
(autofit_inferencehas no such step — confirm, leave it alone.)
Per step: add a preceding actions/create-github-app-token@v3 step
(client-id: ${{ vars.APP_CLIENT_ID }}, private-key: ${{ secrets.APP_PRIVATE_KEY }},
owner: PyAutoLabs, repositories: <the one organ repo>,
permission-contents: write — what POST /repos/{o}/{r}/dispatches needs), feed its
token output to GH_TOKEN, delete the empty-token warn-and-skip branch (the mint
step fails loudly on its own), and rewrite the header comments that describe the PAT.
APP_CLIENT_ID / APP_PRIVATE_KEY are org-level with visibility all (checked
2026-10-23), so no per-repo secret wiring. One PR per repo.
These are workspace-shaped repos with no library dependency, so no library-first
gate. Watch the known traps: viz lint clones library mains and runs
ruff format --check (memory vizLintMains); profiling build_dashboard --check
(memory profThemeRed) — a workflow-only PR should not touch either, but read the
PR CI rather than assume.
Validation per repo: YAML parse + actionlint (ignore the known client-id false
positive); each repo's own PR CI. Proof: after merge (or on the branch if the
workflow can be dispatched there without publishing anything wrong), one dispatch per
repo whose refresh step succeeds and whose organ-side run appears. A render/publish
dispatch on main is the producer's normal operation, so it is safe; prefer the
cheapest input (e.g. a single-surface render) where the workflow offers one.
After this phase PAT_PYAUTOLABS has no readers; phase 4 deletes it, the three
personal fine-grained PATs and sets the org PAT policy; phase 5 writes
PyAutoMind/policy/github_tokens.md.
Activity
Jammy2211 commentedon Oct 23, 2026
PRs Opened (judge tier, human /prm)
Each adds an
actions/create-github-app-token@v3mint step scoped to the one organ (PyAutoEyes / PyAutoPulse / PyAutoInsight,contents: write) before the refresh dispatch and drops the missing-credential skip. Witness grep forPAT_PYAUTOLABSis empty in all seven repos. Post-merge proof is one dispatch per repo with a visible organ refresh run. Heart YELLOW acknowledged by the human.Jammy2211 commentedon Oct 23, 2026
Shipped
All seven PRs merged 2026-10-23: autolens_visualization#17 (8bdae29), autogalaxy_visualization#6 (a77a3d7), autofit_visualization#5 (eb34427), autocti_visualization#5 (605f660), autolens_profiling#443 (da54dc3), autofit_profiling#7 (0481145), autolens_inference#46 (db90528). PR CI green on every leg.
Post-merge proofs (App mint + dispatch step success, organ-side refresh run visible):
ModuleNotFoundError: No module named 'autonerves'under the released PyPI stack. The previous render (09-29) also failed, so this predates the change. The edit is byte-identical to the three proven viz repos. Follow-up filed as a Mind draft.Witness: no workflow in the org reads
PAT_PYAUTOLABS. Code search hits only a stale index entry for autolens_profiling (main has 0) and a prose line inPyAutoHands/docs/nightly_release_design.md(phase 4/5 cleanup).Next: phase 4 (delete
PAT_PYAUTOLABS+ the three personal fine-grained PATs, org PAT policy), then phase 5 (PyAutoMind/policy/github_tokens.md).