Skip to content

Consolidate admission into activation and conclusion jobs - #78818

Merged
pelikhan merged 23 commits into
mainfrom
pelikhan/admission-job-consolidation
Nov 18, 2026
Merged

pelikhan merged 23 commits into
mainfrom
pelikhan/admission-job-consolidation

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Remove the extra admission runners and duplicate bootstrap by running the start-time check inside activation and completion delivery inside conclusion.

  • Run admission before activation author pre-steps and daily-credit preparation, preserving validated budget outputs and skipped/ignored-outage fallback.
  • Run the best-effort conclusion callback after artifact upload and its retry, reading the compact session locally and artifact IDs from step outputs. Bound the callback with a two-minute step timeout and continue-on-error.
  • Remove separate-job dependencies, skipped-ancestor handling, and compact-session job-output transport. Update the specification, ADR, model contracts, and regression coverage. Regenerate all 366 workflow lock files, which account for most of the diff.

Permission tradeoff

The separate jobs existed to isolate OIDC token-minting capability. This change intentionally grants trusted activation and conclusion jobs stable job-wide id-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.json with {"admission":true} enables it; explicit repository {"admission":false} disables it and overrides workflow-local on.admission, which remains supported. This repository opts in through .github/workflows/aw.json.

Validation

  • Passed make fmt, make recompile, make build, make agent-report-progress-no-test, and make check-workflow-drift.
  • Passed focused Go regression tests for admission, conclusion, authorization, token brokers, queue handling, reusable workflows, hook ordering, and development mode.
  • Passed 117 admission/conclusion JavaScript tests, eight model/checker contract tests, incremental Go lint, JavaScript typechecking, and changed-file JavaScript lint (one pre-existing warning).
  • make agent-report-progress was attempted but is not fully green: its custom-linter target encounters an existing /tmp/gh-aw-linters output 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.
  • Full TLC model execution remains unverified because Java is unavailable.


✨ PR Review Safe Output Test - Run 44159186298

💥 [THE END] — Illustrated by Smoke Claude · claude · sonnet46 · ~77 AIC · ⌖ ~7 AIC · ⊞ 1K · ◷
Comment /smoke-claude to run again

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>
@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 19:37
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 19:37
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>
Comment thread pkg/workflow/notify_comment.go Resolved

@github-actions github-actions Bot 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.

💥 [THE END] — Illustrated by Smoke Claude · claude · sonnet46 · ~77 AIC · ⌖ ~7 AIC · ⊞ 1K
Comment /smoke-claude to run again

Comment thread .changeset/admission-service-runtime.md Resolved
Comment thread actions/setup/js/check_admission.cjs Resolved

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.

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

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.changeset/admission-service-runtime.md:9): address unresolved feedback - Review comment
  3. Review (actions/setup/js/check_admission.cjs:292): address unresolved feedback - Review comment
  4. Fix failing check build-wasm (FAILURE): Check run.
  5. Fix failing check impacted-go-tests (FAILURE): Check run.
  6. Fix failing check JS Tests (shard 3/8) (FAILURE): Check run.

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"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

gh-aw-bot and others added 2 commits November 17, 2026 20:30
…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>
@github-actions

Copy link
Copy Markdown
Contributor

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 id-token: write. The validation section walks through exactly what passed and what had known limitations (Java unavailable for TLC model execution).

✅ 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!

Generated by ✅ Contribution Check · copilot · routed: haiku55 xhigh · ~18 AIC · ⌖ ~2 AIC · ⊞ 5.4K · ◷

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@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>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts on this branch.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Updated the branch from main in c7debea and regenerated the conflicted lock. The reported Go and JS regressions and WASM build/goldens passed locally at 9855b51. Both linked smoke-review comments already have direct replies. No CI was manually triggered.

@copilot remove (deprecate) the admission field in aw.json and always emit these steps

Following the updated requirement, 9855b51 keeps admission in aw.json and defaults it to enabled. Set "admission": false and recompile to omit both steps and their admission-specific OIDC grants.

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>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Following this merge update, the latest main update also merged cleanly in b4a74159697. Admission invariants and syntax checks pass; Cracktro type checking retains an unchanged upstream error.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

The always-emit request remains superseded by your latest requirement: admission defaults off, repository true enables it, and explicit repository false overrides functional on.admission. This controls emitted code and outputs, not activation/conclusion permissions.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For the CI request, the PR-caused admission warning and checkout regressions remain fixed in 150d9b2553e. The newer Go router-model, JavaScript model-count and missing-linter failures also occur on main, so unrelated infrastructure and assertions were left unchanged.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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 on.admission; the three currently reported CI failures were verified upstream.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Following this refresh, the newer main update was merged cleanly in b4a74159697, preserving all five incoming Cracktro files byte-for-byte. Admission invariants and syntax checks pass; the upstream type-check error remains out of scope, and browser tests were unavailable locally.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For the merge request, current main was merged cleanly in b4a74159697, preserving all five incoming source files exactly. The unchanged upstream Cracktro type-check error was reported rather than fixed outside this PR's scope; no PR merge or manual CI trigger was performed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Confirmed this configuration summary: repository true opts in, explicit false overrides workflow-local admission, and absent settings default off. Tests confirm that the switch changes emitted code and outputs without changing trusted-job permissions.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

The historical fixes in this checklist update remain preserved, including documented GH_AW_ADMISSION_RESULT. Current configuration/OIDC invariants pass, and the earlier macOS prompt-path issue was already verified with canonical TMPDIR.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

The preserved fixes and documentation described in this update remain intact, including GH_AW_ADMISSION_RESULT. Current admission invariants pass; prior canonical-TMPDIR prompt validation remains applicable.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For this checklist, updated main in b4a74159697 while retaining the historical smoke-review and WASM/Go/JS fixes. Admission invariants and syntax checks pass; unchanged upstream CI/type-check failures remain follow-ups, and CI was not manually triggered.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For this checklist, merged the newest main update in b4a74159697 and verified admission invariants, preserving the incoming upstream type-check error without unrelated fixes. The Codex router-model, Linter Miner model-count and missing-linter failures also occur on main, so they need follow-ups rather than changes in this PR or unchanged CI reruns.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Fixed in 6b2ff21. The branch already contained the latest-main merge. Focused Go and JavaScript tests pass, and the custom-linter step now uses a job-scoped binary. The final gate still reports five pre-existing custom-linter findings in other files; CodeQL timed out. No CI was triggered.

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>
@pelikhan
pelikhan merged commit 13bd623 into main Nov 18, 2026
81 checks passed
@pelikhan
pelikhan deleted the pelikhan/admission-job-consolidation branch November 18, 2026 03:48
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

5 participants