Skip to content

ci: move the seven dashboard dispatchers onto the pyautolabs-bot App #16

Closed

Description

@Jammy2211

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-bot App token immediately before each dispatch, scoped to the one target organ repo with contents: 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

  1. Viz .github/workflows/render.yml (×4): add actions/create-github-app-token@v3 step id: 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.
  2. Profiling .github/workflows/pages_dashboard.yml (×2): same, repositories: PyAutoPulse.
  3. autolens_inference/.github/workflows/inference-summary.yml: same, repositories: PyAutoInsight; delete the ::error:: guard. autofit_inference has no such step — untouched.
  4. Validate: YAML parse + actionlint, PR CI read, witness grep empty.
  5. Post-merge proofs: gh workflow run render.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/workflows is empty in all seven repos (and owner-wide, gh search code PAT_PYAUTOLABS org:PyAutoLabs finds 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 and exit 0 without 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_inference has 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

  1. Jammy2211 commented on Oct 23, 2026

    @Jammy2211
    ContributorAuthor
  2. Jammy2211 commented on Oct 23, 2026

    @Jammy2211
    ContributorAuthor

    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):

    • autolens_inference: inference-summary 39996518155 (self-triggered on merge) → PyAutoInsight Dashboard Refresh
    • autolens/autogalaxy/autofit_visualization: render 39996554052 / 39996558589 / 39996563032 → 3 PyAutoEyes eyes-refresh runs, all success
    • autolens/autofit_profiling: pages_dashboard 39996571172 / 39996574531 → 2 PyAutoPulse pulse-refresh runs, all success
    • autocti_visualization: UNPROVEN. render 39996567008 failed in the render step, before the mint step: both producers hit 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 in PyAutoHands/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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions