Skip to content

Document admission setup and server-size AIC policies - #71323

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-admission-gate-docs
Oct 23, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/add-admission-gate-docs

Conversation

Copilot AI commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Add admission-gate guidance to Cost Management and route unsupported advanced cost-control requests to it.

  • Enable admission: Document workflow/repository opt-in, recompilation, managed endpoint settings, OIDC authentication, and outage behavior.
  • Configure size-based allowances: Show server-side tier mappings and component budgets. Clarify that size is not an admission request field and allowances replace runtime limits.
  • Define boundaries: Distinguish cooperative admission from hard quotas, reservations, billing settlement, and mid-run cancellation.
  • Route requests: Update workflow-authoring and optimization instructions, including the synchronized CLI skill template.
Copilot AI and others added 2 commits October 23, 2026 03:24
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Document admission gate setup and server-size AIC policies Oct 23, 2026
Copilot AI requested a review from pelikhan October 23, 2026 03:25
@pelikhan
pelikhan marked this pull request as ready for review October 23, 2026 03:41
Copilot AI max review requested due to automatic review settings October 23, 2026 03:41
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · ~6 AIC · ⌖ ~6 AIC · ⊞ 14.8K · ◷

Generated by Ponytail Reviewer for #71323

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · sonnet50 · ~15 AIC · ⌖ ~16 AIC · ◇ ~7 AIC · ⊞ 12.6K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus55 · ~12 AIC · ⌖ ~37 AIC · ◇ ~15 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

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

Review: COMMENT

No actionable blocking issues found in the changed documentation. The admission opt-in, managed-variable setup, OIDC boundaries, allowance semantics, outage behavior, and cooperative-enforcement limits are consistent with the repository specification. Static review only; tests were not run.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

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

Skills-Based Review 🧠

Applied /grill-with-docs and /codebase-design — no actionable issues found; approving.

📋 Review Notes

This is a docs-only PR (84 additions, 0 deletions, 4 files) adding admission-gate guidance to Cost Management and routing advanced-cost-control requests to it. Verified the new content against the source of truth:

  • on.admission: true / aw.json "admission": true opt-in matches pkg/workflow/compiler_admission.go and isAdmissionEnabled.
  • GH_AW_DEFAULT_ADMISSION_URL / _AUDIENCE / _ON_OUTAGE variable names and gh aw env get/update usage match docs/src/content/docs/specs/admission-service-specification.md §2.
  • max_ai_credits / max_ai_credits_threat_detection / max_ai_credits_evals JSON field names, the 1–2147483647 positive-integer constraint, and "replaces rather than adds to the configured limit" semantics all match spec §5 and tie back correctly to the existing max-ai-credits frontmatter field documented just above.
  • The .github/aw/token-optimization.md, .github/skills/agentic-workflows/SKILL.md, and pkg/cli/data/agentic_workflows_skill.md routing paragraph is duplicated verbatim in the checked-in skill file and its embedded go:embed counterpart, which is intentional — TestCheckedInAgenticWorkflowsSkillMatchesGeneratedContent auto-regenerates .github/skills/agentic-workflows/SKILL.md from buildAgenticWorkflowsSkillContent(), so keeping both in sync by hand here is correct and matches the existing pattern for other .github/aw/*.md entries.
  • Admission-authority boundaries (cooperative, not a hard cap; no PATs/App tokens; id-token: write scoped only to admission jobs) are stated consistently with the spec's normative language, avoiding over-promising enforcement.

No incorrect claims, broken cross-references, or inconsistent terminology found. Nothing further to request.

Positive Highlights

  • ✅ Precise alignment between prose, YAML/JSON examples, and the formal admission-service specification
  • ✅ Clear boundary-setting ("cooperative admission, not a hard quota") prevents readers from over-trusting the feature
  • ✅ Table of server-size tiers explicitly labeled as illustrative, avoiding the appearance of a built-in gh-aw policy

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · ~60 AIC · ⌖ ~15 AIC · ⊞ 10.2K
Comment /matt to run again

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.

🟢 Approval recommended

The documentation and routing changes are consistent, with only optional wording improvements remaining.

No open issues 🎉

What changed in this PR

Documents how gh-aw admission integrates with an external policy authority for advanced cost controls, including server-size-based AI Credit allowances.

Changes:

  • Explain admission opt-in, recompilation, managed defaults, authentication, and outage behavior.
  • Show size-tier and component allowances while distinguishing cooperative admission from hard enforcement.
  • Route authoring and optimization requests to the new guidance, keeping the embedded CLI skill synchronized.
File Description
pkg/​cli/​data/​agentic_workflows_skill.md Add cost-control routing to the embedded skill template.
docs/​src/​content/​docs/​reference/​cost-management.md Document admission setup, allowances, and enforcement boundaries.
.github/​skills/​agentic-workflows/​SKILL.md Route advanced cost-control requests to admission guidance.
.github/​aw/​token-optimization.md Link optimization guidance to external admission policies.

Review effort: Max

@pelikhan
pelikhan merged commit 6dd0cbf into main Oct 23, 2026
115 of 130 checks passed
@pelikhan
pelikhan deleted the copilot/add-admission-gate-docs branch October 23, 2026 04:25
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.93.2

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

Labels

None yet

3 participants