Repository navigation
Consolidate admission into activation and conclusion jobs - #78818
Conversation
Reuse the existing runners for admission and completion delivery, preserve budget fallback and artifact-first callback ordering, and document the job-wide OIDC tradeoff. Regenerate compiled workflows and update regression coverage and protocol models. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Regenerate four conflicted workflow lock files from the merged sources while preserving admission consolidation, private reusable-workflow metadata loading, and trusted AWF checksum verification. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
💥 [THE END] — Illustrated by Smoke Claude · claude · sonnet46 · ~77 AIC · ⌖ ~7 AIC · ⊞ 1K
Comment /smoke-claude to run again
There was a problem hiding this comment.
🔵 Needs a closer look
The security documentation still describes an endpoint-gated job rather than a gated admission step, obscuring that the runner can start and retain job-wide OIDC token-minting permission when the step is skipped.
No open issues 🎉
What changed in this PR
This PR simplifies gh-aw’s generated workflows by moving admission checks into activation and completion delivery into conclusion, removing separate runners and duplicate setup.
Changes:
- Preserve admission budget outputs and fallback behavior while running checks before author pre-steps.
- Deliver completion data after artifact uploads using local session data, with a two-minute timeout and best-effort handling.
- Update permissions, regression coverage, formal models, documentation, and generated workflows for the accepted job-wide OIDC permission tradeoff.
| File | Description |
|---|---|
| specs/workflow-security/README.md | Updates admission model and callback documentation. |
| specs/workflow-security/check.py | Renames admission mutations and witnesses. |
| specs/workflow-security/ActivationAdmission.tla | Models step-level admission and revised OIDC scope. |
| specs/workflow-security/ActivationAdmission.cfg | Selects renamed model invariants. |
| pkg/workflow/token_broker_test.go | Updates expected admission OIDC permissions. |
| pkg/workflow/task_job_generation_fix_test.go | Removes obsolete admission dependency assertion. |
| pkg/workflow/security_architecture_pm10_formal_test.go | Checks admission within activation. |
| pkg/workflow/repo_config.go | Updates the admission configuration comment. |
| pkg/workflow/notify_comment.go | Adds the callback after uploads and grants OIDC. |
| pkg/workflow/notify_comment_work_queue_test.go | Checks local callback delivery without job outputs. |
| pkg/workflow/notify_comment_conclusion_helpers.go | Removes callback transport outputs. |
| pkg/workflow/compiler_yaml.go | Removes admission skip-safe condition processing. |
| pkg/workflow/compiler_safe_output_jobs.go | Stops creating a separate callback job. |
| pkg/workflow/compiler_jobs.go | Simplifies activation creation and conclusion dependencies. |
| pkg/workflow/compiler_jobs_steps_test.go | Updates step insertion helper calls. |
| pkg/workflow/compiler_job_step_helpers.go | Places author pre-steps after admission. |
| pkg/workflow/compiler_development_test.go | Updates expected conclusion outputs. |
| pkg/workflow/compiler_custom_jobs_test.go | Updates step insertion helper calls. |
| pkg/workflow/compiler_builtin_job_augmentation.go | Updates hook insertion and removes obsolete dependency guards. |
| pkg/workflow/compiler_admission.go | Replaces separate jobs with admission and callback steps. |
| pkg/workflow/compiler_activation_permissions.go | Grants activation OIDC when admission is enabled. |
| pkg/workflow/compiler_activation_job.go | Removes cross-job admission wiring. |
| pkg/workflow/compiler_activation_context.go | Inserts admission after trusted setup. |
| pkg/workflow/call_workflow_permissions.go | Updates an OIDC permission comment. |
| pkg/workflow/agy_engine_test.go | Updates permission and callback expectations. |
| docs/adr/70429-activation-only-oidc-admission-service-runtime.md | Records consolidation and permission tradeoffs. |
| actions/setup/js/conclusion_admission.test.cjs | Stubs filesystem appends in callback tests. |
| actions/setup/js/check_admission.test.cjs | Tests exported admission state and failure behavior. |
| actions/setup/js/check_admission.cjs | Exports admission results for subsequent activation steps. |
| .github/workflows/notion-issue-summary.lock.yml | Regenerates consolidated admission steps. |
| .github/workflows/hippo-embed.lock.yml | Regenerates consolidated admission steps. |
| .github/workflows/firewall.lock.yml | Regenerates consolidated admission steps. |
| .github/workflows/example-permissions-warning.lock.yml | Regenerates consolidated admission steps. |
| .github/workflows/engine-conformance-pi.lock.yml | Updates Pi conformance workflow generation. |
| .github/workflows/engine-conformance-opencode.lock.yml | Updates OpenCode conformance workflow generation. |
| .github/workflows/engine-conformance-mini-swe-agent.lock.yml | Updates mini-SWE-agent conformance workflow generation. |
| .github/workflows/engine-conformance-kiro.lock.yml | Updates Kiro conformance workflow generation. |
| .github/workflows/engine-conformance-goose.lock.yml | Updates Goose conformance workflow generation. |
| .github/workflows/engine-conformance-gemini.lock.yml | Updates Gemini conformance workflow generation. |
| .github/workflows/engine-conformance-factory.lock.yml | Updates Factory conformance workflow generation. |
| .github/workflows/engine-conformance-cursor.lock.yml | Updates Cursor conformance workflow generation. |
| .github/workflows/engine-conformance-crush.lock.yml | Updates Crush conformance workflow generation. |
| .github/workflows/engine-conformance-copilot.lock.yml | Updates Copilot conformance workflow generation. |
| .github/workflows/engine-conformance-codex.lock.yml | Updates Codex conformance workflow generation. |
| .github/workflows/engine-conformance-claude.lock.yml | Updates Claude conformance workflow generation. |
| .github/workflows/engine-conformance-aider.lock.yml | Updates Aider conformance workflow generation. |
| .github/workflows/engine-conformance-agy.lock.yml | Updates Agy conformance workflow generation. |
| .changeset/admission-service-runtime.md | Revises release notes for consolidated execution. |
Review effort: Balanced (adaptive)
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "7b9b775da4bec6e91bb29a0d34c1257ea035d722",
"kind": "requested",
"schema_version": "1",
"state": "7d2e58c6690227645c600e28a5c60d2960df1d70cd78ee1abc4d79eb0a1b64df",
"work": [
"07d6fbc13f25c83de9212794a7a25432d9cf4c17eb4de5ccabd972b915bd583a",
"1cef66da74191f04af56993cdb1a33d7c1828047f17ccf948c4fe23a43c7f7b6",
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"4abda31131600b8ff4d73bd7f3bf534a014465b854fafd42d5113bf9f4d854ee",
"8acb61a077717e3a460018aacdfde96fd489f77606cd36169e2328d9079b75bb"
],
"workflow": "pr-sous-chef"
}
|
…b-consolidation Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Hey @pelikhan 👋 — thanks for this comprehensive refactor! This PR looks great and ready for review. Here's what stands out: ✅ Clear scope — The consolidation of admission, activation, and conclusion jobs is well-defined and logically unified across all 405 changed files. ✅ Thorough validation — You've included extensive test coverage (52 test files touched), detailed regression testing results, and a clear breakdown of the permission tradeoff for ✅ Excellent documentation — The PR body clearly explains the why (removing extra admission runners, duplicate bootstrap) and what (consolidated flow through activation/conclusion), along with the specific permission implications. ✅ Regenerated lock files — The 366 regenerated workflow lock files account for the large diff and are consistent with the core changes. This is well-executed work that maintainers will be able to review efficiently. Great job!
|
|
@copilot remove (deprecate) the admission field in aw.json and always emit these steps |
…b-consolidation # Conflicts: # .github/workflows/daily-awf-spec-compiler-surfacing.lock.yml Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot resolve the merge conflicts on this branch. |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Updated the branch from
Following the updated requirement, 9855b51 keeps |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…b-consolidation Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
The checklist work described in this update remains preserved, including the existing smoke-review fixes. The newest main update is merged without conflicts; admission invariants and syntax checks pass, with the unchanged upstream Cracktro type-check limitation reported separately. |
|
Following this merge update, the latest main update also merged cleanly in |
|
No additional code change was requested by this review. The PR description now accurately documents stable job-wide OIDC permissions, including when admission code is not emitted. |
|
The diagnosis in this CI update still holds: PR-caused admission warnings and checkout regressions are fixed, while the missing-linter failure reproduces on main. No unrelated infrastructure changes or manual CI reruns were made. |
|
Confirmed this correction: deprecated/always-on behavior remains superseded by default-off admission with repository opt-in and functional workflow-local compatibility. PR-caused regressions remain fixed, and the current CI blockers reproduce upstream. |
|
The always-emit request remains superseded by your latest requirement: admission defaults off, repository |
|
For the CI request, the PR-caused admission warning and checkout regressions remain fixed in |
|
The regression fixes in this update remain preserved, but its deprecation and always-emit behavior is superseded. Admission is default-off with repository opt-in and functional |
|
Following this refresh, the newer main update was merged cleanly in |
|
For the merge request, current main was merged cleanly in |
|
Confirmed this configuration summary: repository |
|
The historical fixes in this checklist update remain preserved, including documented |
|
The regenerated-lock resolution described in this update remains intact. The newest main update merged cleanly without new workflow conflicts or a workflow recompilation requirement. |
|
The preserved fixes and documentation described in this update remain intact, including |
|
For this checklist, updated main in |
|
As noted in this update, the contribution review requires no additional code. The latest main update is merged, and the corrected PR description reflects the approved stable OIDC boundary. |
|
For this checklist, merged the newest main update in |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Fixed in |
Combine temporary linter binary/log handling with host-platform build safety, adopt the upstream sub-agent model test structure, and retain router-model edge-case coverage. Incoming audit fixture and Cracktro typing fixes pass targeted validation; admission behavior and permissions are unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |
Summary
Remove the extra admission runners and duplicate bootstrap by running the start-time check inside
activationand completion delivery insideconclusion.continue-on-error.Permission tradeoff
The separate jobs existed to isolate OIDC token-minting capability. This change intentionally grants trusted
activationandconclusionjobs stable job-wideid-token: write, whether admission code is emitted, omitted, or endpoint-gated client steps are skipped. Activation hooks and conclusion actions share that capability. The agent gains no admission OIDC permission; conclusion still rejects author-provided step hooks.Admission code generation is off by default. Repository
aw.jsonwith{"admission":true}enables it; explicit repository{"admission":false}disables it and overrides workflow-localon.admission, which remains supported. This repository opts in through.github/workflows/aw.json.Validation
make fmt,make recompile,make build,make agent-report-progress-no-test, andmake check-workflow-drift.make agent-report-progresswas attempted but is not fully green: its custom-linter target encounters an existing/tmp/gh-aw-lintersoutput conflict. Running those analyzers from a writable scratch path confirms pre-existing diagnostics outside the changed lines. Missing standard lint dependencies were restored and their checks rerun separately.✨ PR Review Safe Output Test - Run 44159186298