Skip to content

Section 8: GitHub workflow runs REST API shape (extdeps.github.workflow_runs) - #5691

Merged
briansrls merged 9 commits into
mainfrom
session/tidy-crab-475
Jun 24, 2026
Merged

briansrls merged 9 commits into
mainfrom
session/tidy-crab-475

Conversation

@briansrls

@briansrls briansrls commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds dsl/extdeps/github/workflow_runs.dag: typed shape for the GitHub Actions workflow runs REST API (GET /repos/{owner}/{repo}/actions/runs)
  • Models WorkflowRunStatus (6 variants: Queued/InProgress/Completed/Waiting/Requested/Pending) and WorkflowRunConclusion (8 variants: success through startup_failure)
  • Includes wire contracts (CoproductWireContract + StringVariant { naming: SnakeCase }), parse/label codec fns, WorkflowRun record, WorkflowRunList, and ListForRef service operation
  • Adds dsl/test/claim/github_workflow_runs_witness_test.dag: 26 test fn witnesses covering wire labels, parse, round-trips, and structural data

DESIGN §3 compliance: WorkflowRunConclusion is genuinely distinct from actions.dag's CheckConclusion — workflow runs API has startup_failure (not in Checks), Checks API has stale (not in runs). A dissolve_on marker tracks consolidation when a unified authority becomes available.

Selection rule: GitHub workflow runs REST API is a real external upstream (api.github.com) with no self-API read of the dashboard's own store.

Test plan

  • Manual compile: gunbc compile --source-root dsl --source-root src/v2 → 0 diagnostics, exit 0
  • dsl_compile_clean_gate_passes → true
  • workflow_run_conclusion_roundtrip_all witness → true
  • sample_run_has_success_conclusion witness → true
  • sample_run_list_has_one_run witness → true
  • CI floor gate (auto-runs on push)

🤖 Generated with Claude Code

@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review June 24, 2026 00:10
@gunbai-bot gunbai-bot Bot changed the title Section-8 MANAGER lane - dashboard-on-dag READ-ONLY external-upstream shadows. You ARE a manager: dispatch child workers per slice. SELECTION RULE from neat-boar/#1797: shadow ONLY slices with a REAL EXTERNAL UPSTREAM; if it reads the dashboard's OWN store it is a self-API layer-inversion, DEFER it. Section 8: GitHub workflow runs REST API shape (extdeps.github.workflow_runs) Jun 24, 2026
@briansrls
briansrls merged commit 1f5b43f into main Jun 24, 2026
2 checks passed
@briansrls
briansrls deleted the session/tidy-crab-475 branch June 24, 2026 13:17
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.

1 participant