diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 4510b09..78cb682 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "full-github", - "version": "0.2.1", + "version": "0.3.0", "description": "Source-backed GitHub capability discovery and execution for Codex, including repository, organization and enterprise workflows.", "author": { "name": "ThinkHome", diff --git a/.github/DISCUSSION_TEMPLATE/ideas.yml b/.github/DISCUSSION_TEMPLATE/ideas.yml new file mode 100644 index 0000000..17de8b0 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/ideas.yml @@ -0,0 +1,22 @@ +title: "[Idea] " +labels: [enhancement] +body: + - type: textarea + id: outcome + attributes: + label: Desired user outcome + description: Explain the workflow and the configuration choices it needs. + validations: + required: true + - type: textarea + id: current + attributes: + label: Current behavior and proposed change + description: Include existing capability or option IDs when known. + validations: + required: true + - type: textarea + id: evidence + attributes: + label: Sources and acceptance evidence + description: Link official documentation or a community incident and describe how the result can be verified. diff --git a/.github/DISCUSSION_TEMPLATE/q-a.yml b/.github/DISCUSSION_TEMPLATE/q-a.yml new file mode 100644 index 0000000..80bebb1 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/q-a.yml @@ -0,0 +1,20 @@ +title: "[Question] " +labels: [question] +body: + - type: textarea + id: goal + attributes: + label: What are you trying to do? + description: Include the GitHub feature, desired result and current behavior. + validations: + required: true + - type: input + id: environment + attributes: + label: Plugin version and GitHub host + description: Include Codex/gh versions when the question concerns execution. + - type: textarea + id: evidence + attributes: + label: Redacted evidence + description: Include operation IDs, public links or sanitized errors. Remove credentials and private payloads. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..f5e2333 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: true +contact_links: + - name: Questions and usage + url: https://github.com/thinkhome-org/full-github/discussions/categories/q-a + about: Ask questions with the feature, desired result and redacted evidence. + - name: Proposals and configuration decisions + url: https://github.com/thinkhome-org/full-github/discussions/categories/ideas + about: Discuss the workflow and its exact configuration choices. + - name: Private security report + url: https://github.com/thinkhome-org/full-github/security/advisories/new + about: Report vulnerabilities without publishing secrets or private payloads. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9f4d10f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,51 @@ +name: Release +on: + push: + tags: ['v*'] +permissions: + contents: read +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + fetch-depth: 0 + - run: git merge-base --is-ancestor HEAD origin/main + - run: python3 -m unittest discover -s tests -v + - run: python3 scripts/validate.py + - run: python3 scripts/render_catalog.py --check + - run: python3 scripts/package_release.py --tag "$GITHUB_REF_NAME" --output dist + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: plugin-release + path: dist/* + include-hidden-files: true + retention-days: 30 + publish: + needs: build + runs-on: ubuntu-latest + environment: + name: release + url: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }} + permissions: + contents: write + id-token: write + attestations: write + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: plugin-release + path: dist + - run: sha256sum --check *.sha256 + working-directory: dist + - uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a + with: + subject-path: dist/*.zip + - run: python3 scripts/publish_release.py --repo "$GITHUB_REPOSITORY" --tag "$GITHUB_REF_NAME" dist/* + env: + GH_TOKEN: ${{ github.token }} diff --git a/.gitignore b/.gitignore index 7a60b85..c0a2ff5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ __pycache__/ *.pyc + +/dist/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..659f4fc --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +## 0.3.0 — 2026-11-15 + +- Preserve and inspect the complete official REST schema, including nested constraints and source-backed errata. +- Add concrete configuration decisions for every capability, with official sources and separately qualified community incidents. +- Add collection completeness checks and a persistent append-only execution journal with separate read-back verification. +- Add community discussion forms, a pinned welcome channel and explicit human-review/history workflows. +- Build tagged releases through GitHub Actions with validated hidden manifests, checksums, provenance attestations and resumable draft publication. + +## 0.2.1 — 2026-11-15 + +Preserve caller-selected release asset MIME types. + +## 0.2.0 — 2026-11-15 + +Add the source-backed capability inventory, REST/GraphQL operation discovery, expanded repository/organization/Project probes and domain runbooks. Correct binary download handling and administrative array filters. + +## 0.1.0 — 2026-11-15 + +Create the initial native Codex plugin, read-only snapshot, repository workflow, public Wiki and Project. Exercise issue-to-PR delivery and publication. + +[Release history](https://github.com/thinkhome-org/full-github/releases) preserves published assets and notes. Individual changes and review evidence are linked from their pull requests. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..6d39b1f --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,7 @@ +# Community participation + +Use respectful, specific feedback. Explain the observed behavior and desired outcome. Preserve the context of other people's contributions and acknowledge corrections through the relevant issue, discussion or review. + +Keep credentials, private repository data and personal information out of public reports. Report security vulnerabilities through the private channel in SECURITY.md. Use GitHub's reporting controls for abusive content. + +Maintainers use GitHub's moderation tools when needed to protect participants and remove exposed private information. Decisions should retain an appropriate explanation and follow the [GitHub Community Guidelines](https://docs.github.com/en/site-policy/github-terms/github-community-guidelines). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5e60eff..173affe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,3 +3,14 @@ Open an issue describing the workflow and expected GitHub result. Link changes through a branch and PR. Run python3 -m unittest discover -s tests -v and python3 scripts/validate.py and python3 scripts/render_catalog.py --check before submitting. Preserve existing repository content and distinguish unavailable API reads from missing configuration. Changes to setup behavior need evidence for repeat execution, partial failures and custom existing content. Never put credentials in fixtures or reports. + + +## Configuration changes + +Identify the capability and option group. Read the complete nested schema and current official source. Add or update decision rules, defaults, applicability, verification and relevant community incident context. Every capability needs option coverage, and CI checks this mapping. + +## History and interaction + +Use Q&A for questions and Ideas for proposals. Keep source discussion links in accepted Issues/PRs. Preserve review comments and explain superseding choices. Follow CODE_OF_CONDUCT.md and keep private data out of public reports. + +Changes to execution, pagination, history or publication need regression coverage for the specific failure. Verify failed/retried operations and preservation of prior evidence. Release changes must keep committed hidden manifests, checksums, prerelease status and existing asset bytes intact. diff --git a/GITHUB.md b/GITHUB.md index ecd5a6d..2d2a12f 100644 --- a/GITHUB.md +++ b/GITHUB.md @@ -29,3 +29,24 @@ Project https://github.com/orgs/thinkhome-org/projects/5 uses Status options Tod ## Capability inventory Keep all 261 capability families and complete API directories current. Each release records source dates, retired endpoints, operation counts and live validation separately. Use scripts/operations.py for exact REST routes and GraphQL input discovery. Registry generation and catalog rendering must remain reproducible. + + +## Configuration decisions and history + +Before changing a feature, read its option group and complete nested schema. Preserve provider defaults separately from this project's chosen policy. Keep the rationale, source dates, affected people and read-back evidence linked from the issue or PR. Record superseding decisions in docs/DECISIONS.md without rewriting earlier reasoning. + +Use --context for executor calls and record verify-event after actual read-back. Unknown/interrupted calls require reconciliation before retry. GitHub timelines, review threads, Wiki Git history, immutable published asset bytes and CHANGELOG retain the native history. The local SQLite journal covers this executor's attempts and verification references. + +## Human participation + +Q&A Discussions handle questions; Ideas handles proposals; issue forms handle reproducible defects; PR review threads handle code/configuration review. Discussion 10 is the pinned entry point. Preserve authors, comments and source links during transfers/conversions. Required human approvals must come from eligible actual reviewers. A local event or automated self-review cannot replace one. + +## Tagged publication + +Push the matching v-prefixed tag only after checks pass and the reviewed source is on main. The Release workflow builds the ZIP, verifies hidden manifests, passes it as a workflow artifact, creates a provenance attestation and publishes through a resumable draft. + +Existing asset bytes and human-added assets are preserved. A mismatch blocks publication and requires investigation. RC tags remain prereleases. Download the final ZIP/checksum and run gh attestation verify against this repository before declaring a release verified. + +The release environment permits matching v* tags. Build verifies the tagged commit belongs to main history. The publish job checks transferred checksums before attestation and publication; it does not require a fabricated human reviewer in this single-maintainer setup. + +This repository enables native release immutability. Future published tags/assets are frozen, and corrections are issued as a new release. diff --git a/README.md b/README.md index 2a91c80..e9d04e7 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,27 @@ A native Codex plugin for discovering, configuring and using GitHub throughout a project's life. Published by ThinkHome. +## Configuration, history and people + +Use the [configuration decisions](docs/CONFIGURATION.md) to choose settings inside each feature. Every catalog capability maps to concrete options, provider defaults, project-specific decision rules, sources and verification. The full official REST schema is bundled with nested properties, enums, defaults, required fields, limits and response definitions. + +```sh +python3 scripts/operations.py options review +python3 scripts/operations.py option project-event-workflows +python3 scripts/operations.py schema repos/update --section requestBody --pointer /content/application~1json/schema/properties/allow_squash_merge +python3 scripts/operations.py collect issues/list-labels-for-repo --params '{"owner":"thinkhome-org","repo":"full-github","per_page":5}' +python3 scripts/operations.py history --limit 100 +``` + +Page-based collection verifies continuation and totals and keeps received evidence on failure. It detects incomplete search results and avoids assuming the server honored the requested page size. + +REST execution records append-only local attempt/result events with host and target metadata. Add --context with an issue/PR/discussion link. Read back the actual state, then record verify-event with its evidence. Payloads and header values are excluded. See the [history guide](skills/full-github/references/history-interaction.md). + +People can use [Q&A](https://github.com/thinkhome-org/full-github/discussions/categories/q-a), [Ideas](https://github.com/thinkhome-org/full-github/discussions/categories/ideas), issue forms and PR reviews. The [pinned welcome discussion](https://github.com/thinkhome-org/full-github/discussions/10) explains participation. See [community workflow](docs/COMMUNITY.md), [changelog](CHANGELOG.md) and [recorded decisions](docs/DECISIONS.md). + ## Coverage -The 2026-11-15 inventory contains **261 capability families**, **1,281 published REST operations**, **32 GraphQL queries**, **285 GraphQL mutations** and **1,881 GraphQL types**. Deprecated and retired operations are identified separately. Eighteen confirmed retired operations are blocked by the REST executor. +The 2026-11-15 inventory contains **261 capability families**, **1,281 published REST operations**, **32 GraphQL queries**, **285 GraphQL mutations** and **1,881 GraphQL types**. The configuration layer contains 451 concrete option decisions across 82 groups. Deprecated and retired operations are identified separately. Eighteen confirmed retired operations are blocked by the REST executor. - Repository content, Git, Issues, owner issue fields, sub-issues/dependencies, PR stacks, Agent Merge, reviews, rulesets and merge queues. - Projects fields/options, table/board/roadmap views, view CRUD, workflows, status updates, templates and Insights. @@ -52,7 +70,7 @@ python3 scripts/operations.py type UpdateProjectV2ViewInput python3 scripts/audit.py thinkhome-org/full-github --organization --project 5 ``` -REST call executes the selected operation using the current gh identity, including writes. Use describe to inspect the method, parameters and official documentation. Supply request bodies through --body-file and preview with --dry-run. GraphQL operations use native gh api graphql with structured variables. +REST call executes the selected operation using the current gh identity, including writes, and records local execution history by default. Use describe to inspect the method, parameters and official documentation. Supply request bodies through --body-file and preview with --dry-run. GraphQL operations use native gh api graphql with structured variables. The expanded audit performs repository/organization probes and paginated Project reads. Failed reads remain unknown. It inspects classic branch protection separately from rulesets. Feature-specific object inspection and UI verification complete the coverage ledger. @@ -66,6 +84,8 @@ python3 scripts/validate.py python3 scripts/render_catalog.py --check ``` +Tagged releases are built and published by GitHub Actions, with hidden-manifest validation, SHA-256 checksums and GitHub provenance attestations. Verify downloaded ZIPs using gh attestation verify --repo thinkhome-org/full-github PATH. + The source-backed inventory and executable API routes cover a wider surface than the live mutation tests. Plan, credentials, organization policies and host versions determine which operations can execute. The registries identify deprecated and known retired routes. See the verification record for tested operations and unresolved access gates. ## License diff --git a/docs/COMMUNITY.md b/docs/COMMUNITY.md new file mode 100644 index 0000000..8bf89b2 --- /dev/null +++ b/docs/COMMUNITY.md @@ -0,0 +1,17 @@ +# Working with people + +Start with the [pinned welcome discussion](https://github.com/thinkhome-org/full-github/discussions/10). + +| Need | Channel | Record | +| --- | --- | --- | +| Installation or workflow question | Q&A Discussions | Goal, version/host when relevant, sanitized evidence and accepted answer | +| Proposal or unclear configuration choice | Ideas Discussions | Intended outcome, options/tradeoffs, sources and recorded decision | +| Reproducible defect | Issue form | Expected/actual behavior, reproduction and verification | +| Code/configuration change | Linked pull request | Before/desired state, tests, source/history links and review conversation | +| Security vulnerability | Private reporting | Confidential evidence and coordinated disclosure | + +Accepted work is linked to an issue, milestone and Project item. Preserve its original discussion and any review history. A later decision should explain why it supersedes the earlier choice. + +Codex-assisted maintenance is identified in the welcome discussion. Real human approvals, reactions and answers come from their actual authors. Single-maintainer workflows do not pretend to have independent peer approval. Required reviews and environment approvals must be completed by eligible people through GitHub. + +Use the [history guide](../skills/full-github/references/history-interaction.md), [configuration decisions](CONFIGURATION.md) and [contribution guide](../CONTRIBUTING.md). Share only sanitized execution metadata. The local journal records CLI attempts and verification references; authenticated GitHub records retain the native actor, review and publication history. diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md new file mode 100644 index 0000000..51644d2 --- /dev/null +++ b/docs/CONFIGURATION.md @@ -0,0 +1,2364 @@ +# Configuration decisions + +Reviewed 2026-11-15. 82 decision groups contain 451 concrete configuration choices covering every catalog capability. + +Choose settings from the project's actual requirements, observed state, access policy and host version. Record the selected value, rationale, owner, historical evidence and read-back verification. Preserve existing custom settings and identities. + +Official documentation establishes current supported behavior. Community links provide incident history and practical pitfalls. Check their date and current applicability before applying a workaround. Full REST schemas and GraphQL input types provide the nested API constraints alongside these decisions. + +## Repository identity, defaults and collaboration surfaces + +Group ID repository-collaboration-settings. + +Capabilities repository-lifecycle, repository-branches, repository-autolinks, repository-community. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| visibility / private | public, private, internal where eligible | Preserve observed visibility; assess access and discoverability before a requested change, never make a private project public as routine setup. | Re-read visibility and intended reader access; inspect fork implications before changing. | +| default_branch | existing branch name | Retain the current branch unless migration is required; discover branch names before configuring CI, templates or closing links. | Read repository default_branch, ref SHA and PR bases after any authorized rename. | +| has_issues / has_projects / has_wiki / has_discussions | independent booleans | Enable the surfaces the project will actively use; enabling a repository Projects tab does not create or configure an owner Project. | Read each flag and follow the actual tab and linked owner Project. | +| description / homepage / topics | text, HTTPS URL, topic list | Use concise purpose and a working primary documentation URL; preserve unrelated topics and owner-defined metadata. | Read metadata and open rendered links; check topic replacement semantics before writing. | +| autolinks.key_prefix / url_template / is_alphanumeric | tracker prefix, URL with , boolean | Add only for a real external tracker; choose a non-colliding prefix and correct numeric versus alphanumeric matching. | Read rule IDs and test a harmless rendered example without sending a comment. | +| archived / disabled | repository lifecycle flags | Archive only when work truly ends; do not archive to represent a finished milestone or Project. | Re-read flags, open work and expected read-only behavior; record unarchive recovery path. | + +### Pitfalls + +- Repository flag defaults vary with creation path and owner settings; never infer actual configuration from product availability. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/repos) +- [Official sources 2](https://docs.github.com/en/rest/repos/autolinks) + +## Source changes, history and repository derivation + +Group ID source-and-history-policy. + +Capabilities repository-content, repository-git-objects, repository-history, repository-lfs-submodules, repository-templates, repository-forks, repository-commit-comments. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| content.ref / expected sha | immutable commit SHA, branch, tag; update blob SHA | Read immutable refs for evidence; use Git for multi-file work and expected old SHAs for API writes. | Inspect resulting commit tree and parents plus changed-file list; reconcile timeout before retry. | +| ref.force / git push strategy | non-force, force-with-lease when explicitly justified | Preserve human commits; default to non-force updates, compare remote head and use a lease only for authorized history rewrite. | Fetch and compare old/new ref OIDs; stop if remote changed unexpectedly. | +| merge history | merge commit, squash, rebase | Follow repository policy; merge preserves branch commits, squash gives one logical commit, rebase rewrites commit identities. | Match resulting base-branch commit and PR merge metadata; keep issue/PR links as decision history. | +| template.include_all_branches / fork.default_branch_only | boolean choices | Template copies start a separate history; forks preserve an upstream relationship. Choose based on contribution versus new-project intent. | Inspect parent/source or is_template relationship and compare expected branches/files. | +| LFS / submodule checkout | pointer versus object, pinned SHA, recursive checkout | Fetch only required objects and pinned submodules; never treat an LFS pointer or gitlink as tested source content. | Verify actual object bytes, submodule OIDs and executable/symlink modes. | +| comment anchor | commit SHA, file path, valid line | Commit comments discuss a specific historical revision; use a PR review thread for an actionable PR finding. | Read returned comment ID, commit_id and line metadata; retain URL when following up. | + +### Pitfalls + +- A Git clone does not contain issues, review conversations, Project configuration or Wiki history. Separate evidence stores are needed for those records. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/contents) +- [Official sources 2](https://docs.github.com/en/rest/git/refs) +- [Official sources 3](https://docs.github.com/en/pull-requests/reference/pull-request-merges) + +## Who receives review and when + +Group ID codeowner-routing. + +Capabilities repository-codeowners, pr-review-requests. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| CODEOWNERS location / matching order | .github/CODEOWNERS, root CODEOWNERS, docs/CODEOWNERS; last matching pattern | Use one authoritative file on the PR base branch, broad ownership first and narrow overrides later; list multiple owners together. | Read actual base-branch file, query CODEOWNERS errors and map representative changed paths. | +| owner eligibility | user with write, visible team with explicit write | Reuse real maintainers; do not invent a reviewer or broaden team visibility/access to make routing work. | Verify team visibility and repository role; inspect requests on a matching ready PR. | +| requested_reviewers / requested_teams | user logins, organization team slugs | Request the smallest relevant set; requests notify people, so repository setup alone is not authority to send them. | Read outstanding review requests and submitted reviews separately; a removed request may mean review completed. | +| draft to ready | draft, ready for review | Keep incomplete work draft; move ready when description, diff and checks support review. CODEOWNERS automatic requests happen on readiness. | Re-read isDraft and automatic requests; explain review scope in the authorized PR description. | +| require_code_owner_reviews | false, true through branch policy | Routing alone never enforces approval; enable enforcement where actual independent owners exist and repository rules call for it. | Read effective protection/ruleset plus PR reviewDecision; avoid self-approval deadlock. | + +### Pitfalls + +- The author cannot approve their own PR. A single-maintainer repository may deliberately require zero peer approvals while retaining routing and required checks. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) +- [Official sources 2](https://docs.github.com/en/rest/pulls/review-requests) + +## Issue chooser and PR template routing + +Group ID issue-intake-routing. + +Capabilities issue-forms-templates, pr-templates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| chooser.blank_issues_enabled / contact_links | true, false; name/url/about entries | Keep an accessible path for unusual reports; route support and private vulnerabilities to actual staffed destinations. | Render chooser as intended contributor; open every contact URL without submitting. | +| form.name / description / title | unique chooser name, purpose text, optional title prefix | Separate reproducible defects from proposals only when triage differs; avoid prefixes duplicating structured type. | Open every template on default branch and check readable chooser order and defaults. | +| form.labels / assignees / type | existing labels, assignable users, existing owner issue type | Reuse taxonomy; default assignees only when maintainers accept that responsibility; labels must already exist. | Check available labels/types/assignees and inspect a permitted representative result. | +| form.projects | OWNER/NUMBER list | For external reporters prefer Project auto-add because template project insertion needs the submitter's write access to that Project. | Verify with relevant contributor permission context; do not use maintainer success as outsider proof. | +| PR template selection | .github/pull_request_template.md, PULL_REQUEST_TEMPLATE/name.md and template query | Use concise purpose/validation/risk prompts; multiple templates need an actual selection link/process, not an assumed automatic chooser. | Open new-PR draft composer and test the intended template URL without posting. | +| inheritance / placement | repository templates, owner .github defaults | Inventory inherited files before adding duplicates; default-branch placement controls normal chooser availability. | Compare effective chooser and local/owner file sources, including casing and extension. | + +### Pitfalls + +- Issue forms become editable Markdown; required form controls are intake aids, not permanent structured-field enforcement. Issue forms are not PR forms. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms) +- [Official sources 2](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) + +## Nested form controls and validation + +Group ID form-controls. + +Capabilities issue-forms-templates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| body[].type / id | markdown, input, textarea, dropdown, checkboxes, upload; unique alphanumeric/-/_ IDs | Pick the control matching the answer; use stable unique IDs for supported prefills and future maintenance. | Validate schema and render each control on the target host; require a non-markdown control. | +| input.attributes | label, description, placeholder, value; validations.required | Require actionable minimum information, not optional diagnostics; placeholders are examples, values are submitted defaults. | Clear required inputs in preview and inspect validation behavior without posting. | +| textarea.attributes | label, description, placeholder, value, render; validations.required | Use render for literal logs/code only; omit it when Markdown editing or attachment affordances are needed. | Check code-fence output and attachment/Markdown behavior in composer. | +| dropdown.attributes | options[], multiple true/false, default index; validations.required | Default only when the common choice is safe; use no default when choosing version/platform must be deliberate. | Check unique options, index bounds, single versus multiple selection and empty validation. | +| checkboxes.attributes.options[] | label, required true/false | Require only a meaningful acknowledgement; individual required flags differ from an optional checklist. | Test unchecked required item and check rendered links and separate labels. | +| markdown / upload | markdown.value, upload label/description/required where supported | Markdown guidance is not submitted content; keep critical reporting requirements in actual controls. Upload only needed files with privacy guidance. | Preview target schema support; inspect attachment expectations and avoid requesting secrets. | + +### Pitfalls + +- Do not invent regex validators, conditional controls or arbitrary client logic; unsupported YAML keys can prevent the form appearing. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema) +- [Official sources 2](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms) + +## Types, labels, owners and milestone planning + +Group ID issue-taxonomy. + +Capabilities issue-metadata, issue-assignees, issue-milestones, issue-types, issue-types-owner. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| issue.type / owner definition | enabled type ID, null; name/description/color/is_enabled | Prefer the owner's existing Bug/Task/Feature equivalents; types describe work kind rather than transient status. Owner edits affect other repositories. | List owner and repository types, then read the issue's assigned type ID. | +| labels[] / label color-description | names and IDs, six-digit color, explanatory description | Labels serve useful cross-cutting queries; preserve customized names/colors and add/remove narrowly instead of replacing all. | Compare before/after label ID sets and rendered descriptions; check saved filters still match renamed labels. | +| assignees[] | eligible user logins, empty list | Assign a responsible person only when the task or project convention authorizes it; assignment does not mean acceptance. | Check assignability then re-read the exact assignee set; do not confuse PR reviewer and assignee. | +| milestone.title / description / due_on / state | repository milestone, ISO8601 date, open/closed | Use milestones for real releases/deadlines, not arbitrary duplicates of Project iterations; dates are targets. | Read milestone counters and all included open/closed issues and PRs; closing milestone does not close work. | +| metadata mutation mode | add, remove, replace | Use delta mutations for focused edits; reserve replace for an explicitly reconciled full desired set. | Re-read concurrent metadata before write and confirm unrelated labels/assignees remain. | + +### Pitfalls + +- Do not create a new taxonomy each run or use a label named Feature as proof native issue type is configured. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/labels) +- [Official sources 2](https://docs.github.com/en/rest/issues/assignees) +- [Official sources 3](https://docs.github.com/en/rest/issues/milestones) +- [Official sources 4](https://docs.github.com/en/rest/orgs/issue-types) + +## Shared issue definitions and Project-local fields + +Group ID shared-issue-fields. + +Capabilities issue-fields, issue-field-values, projects-issue-fields, projects-multiselect. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| field scope / applicability | owner issue field, Project field; same-owner issues only | Put reusable facts on the issue; Project issue-field cells are empty for PRs, draft items and issues from other owners. | Read owner definition, issue sidebar and Project column as intended audience; missing applicability is not missing data. | +| visibility / API enum | Restricted/Public in UI, restricted/all in REST, deprecated organization_members_only | Retain restricted default for nonpublic planning facts; public/internal Projects expose only Public issue fields. Changing to Restricted removes the field from those Projects. | Read exact API visibility and inspect viewer/sidebar/timeline/Project behavior; do not change visibility merely to display a column. | +| pin to types / field limits | selected issue type IDs, Issues without a type, no pins; current 25 owner fields/100 select options/10 pins per type/50 total Project fields | Pin relevant fields so creation/view surfaces show them automatically; unpinned fields remain available through Add field and Projects. Limits differ from Project single-select options. | Read pin mapping for typed and untyped issues and count all system/issue/local Project fields; verify target-host limits before creating. | +| data_type / typed value | text, number, date, single_select, multi_select where supported | Select type from actual schema; use date for dates and number for arithmetic, not formatted strings. | Inspect supported owner and Project types separately; round-trip one permitted value of the selected type. | +| select options | stable ID, name, description, color; default where supported | Reuse IDs; rename in place when supported, never recreate populated options just to reorder or recolor. | Export affected values before change and compare option IDs and representative assignments afterward. | +| issue field values operation | add, set, delete; typed scalar or option IDs | Preserve unrelated values and distinguish adding multi-select members from replacing the selected set. | Read all current issue-field-values and compare exact changed field and option IDs. | +| intake population | sidebar, API, Actions, supported Project column | Do not promise template or URL prefill of native issue fields; those are currently unsupported in the consulted product guide. | Verify creation path then read the issue fields, not Markdown text that happens to have the same heading. | + +### Pitfalls + +- A community preview announcement is not proof of API type support or entitlement. Inspect the exact host schema and actual rendered field. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-and-managing-issue-fields) +- [Official sources 2](https://docs.github.com/en/rest/issues/issue-field-values) +- [Official sources 3](https://docs.github.com/en/rest/orgs/issue-fields) +- [Official sources 4](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-issue-fields) +- [Official sources 5](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/202760) + +## Completion, hierarchy, blockers and identity + +Group ID issue-state-and-relations. + +Capabilities issue-lifecycle, issue-subissues, issue-dependencies, issue-related, issue-transfer-pin-duplicate, issue-linked-branches, issue-planning-status. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| state / state_reason | open, closed; completed, not_planned, reopened where accepted | Close completed only with acceptance evidence; not-planned needs a decision reason; reopen the original issue for the same unfinished work. | Read state/state_reason and timeline; closing is not deployment verification. | +| parent / child order | issue database IDs, parent relationship, ordered sub-issues | Use one parent for decomposition, preserve child identity and ordering; avoid manufacturing hierarchy for unrelated work. | Read parent and child sides, all pages and final sibling order; current product limits are 100 children and eight levels. | +| blocked_by / blocking | directed native issue dependencies | Record A blocked by B when B must finish first; parenthood and a mention do not establish dependency. | Query both directions and verify no self/cyclic/duplicate relationship accepted by the host. | +| related / duplicate | related edge, duplicate_of, mark/unmark duplicate | Link peers as related; point duplicates to the canonical issue and retain the reporter's reproduction details there by reference. | Read canonical URLs and relationship timeline; do not delete duplicate history. | +| transfer / pin | destination repository, pinned/unpinned | Transfer only after access/ownership consequences are understood; use pins for durable current entry points, not every issue. | Follow old URL, read new repository/number/ID, metadata and relationship preservation. | +| linkedBranch.repositoryId / name / oid | chosen repository, branch name, base commit | Start from observed default/base SHA unless task needs a release branch; link existing work before creating duplicate branches. | Read actual ref OID and issue linkedBranches; link does not substitute for a closing PR. | +| planning status | discovered status ID, duplicate reference where supported | Preview planning statuses may transition issue state; use only after discovering viewerCanSetStatus and available statuses. | Read status plus open/closed state and duplicate target; do not equate it to Project Status. | + +### Pitfalls + +- Removal of a hierarchy/dependency edge is not deletion of either issue. Native relationships need actual API/UI evidence, not a checklist in the body. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/issues) +- [Official sources 2](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues) +- [Official sources 3](https://docs.github.com/en/rest/issues/issue-dependencies) +- [Official sources 4](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-a-branch-for-an-issue) + +## Human conversation and durable evidence + +Group ID timeline-and-conversation-preservation. + +Capabilities issue-comments, issue-timeline, issue-artifacts, repository-history. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| read model | issue body, paginated comments, timeline events, reviews and threads | Read all relevant streams before replying; issue body and last few visible comments omit decisions, force pushes, transfers and prior review outcomes. | Independently paginate nested connections; reconcile IDs/timestamps and retrieve referenced objects. | +| edit versus append | correct current body, new progress/decision comment, retain superseded links | Edit the canonical description to reflect current scope; append material decisions and corrections when authorized so reasoning remains chronological. | Compare prior content and edit history where available; retain earlier evidence URLs and authorship. | +| comment/reply location | issue conversation, PR summary, review thread reply, Discussion answer | Reply in the thread containing the question; distinguish implemented fix, justified disagreement, unresolved question and deferred follow-up. | Read thread root/reply IDs and resulting thread state; never claim a pending review was delivered. | +| notifications / mentions | direct mention, team mention, no mention; user subscription | Mention only relevant people when an authorized message needs their attention; do not silently change watch/subscription settings. | Inspect recipient and final posted location; API success is not proof the user read the message. | +| attachments / artifacts | canonical ID, immutable URL/ref, access-restricted resource | Preserve attachment identity and permissions; reference existing logs/files instead of re-uploading private content publicly. | Verify readable content with permitted audience and identify expiry; attachment presence is not content validation. | +| recovery after ambiguous write | reconcile by ID/body/context, retry missing write only | Avoid duplicate posts after timeouts; inspect recent author/timestamp/body and relationship events before retry. | Capture canonical ID/URL and distinguish already-applied from unapplied writes. | + +### Pitfalls + +- Git history is not conversation history; activity feeds are not complete audit logs. Loading an old thread in UI may collapse large portions. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/timeline) +- [Official sources 2](https://docs.github.com/en/rest/issues/comments) +- [Official sources 3](https://docs.github.com/en/graphql/reference/users#usercontentedit) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/5119) +- [Community reports 2](https://github.com/orgs/community/discussions/33551) + +## PR intent, comparison base and connected work + +Group ID pr-creation-and-linking. + +Capabilities pr-lifecycle, pr-linking, pr-templates, pr-stacks, pr-archival. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| head / base / draft | owner:branch, repository base branch, boolean | Discover existing PR before creating; choose correct target release/default branch and draft state from readiness. | Read head repo/ref/SHA, base ref/SHA and isDraft; inspect full diff against merge base. | +| title / body / maintainer_can_modify | current problem and result, validation and limits, boolean | Describe final scope and evidence; allow fork-maintainer edits only when contributor intent and repository trust permit. | Re-read rendered description and fork edit permission; retain rationale and linked decisions. | +| closing keyword / manual development link | closes/fixes/resolves #N, OWNER/REPO#N, manual same-repo link | Use closing intent only for fully satisfied issues targeting default branch; use plain references for partial work or release-target PRs. | Check development links before merge, issue state and timeline after merge; commit-only closing may omit PR sidebar linkage. | +| base retarget / branch rewrite | new base, merge update, rebase update | Recheck scope before retargeting; changing base can remove visible commits and make inline comments outdated. Preserve decision URLs and communicate material scope changes in authorized flow. | Compare old/new base/head SHAs, diff, review freshness and unresolved/outdated threads. | +| native stack / archival | detected stack relationship, archive/unarchive | Use native stack support only where available; archive is distinct from close, branch deletion and Project archive. | Read actual stack/base relationships or archived/state fields and timeline; do not simulate support with text and label it configured. | + +### Pitfalls + +- A PR references the live head branch; pushing after review changes the material under review. Closing without merge does not mean delivered. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/pulls/pulls) +- [Official sources 2](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue) +- [Official sources 3](https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/changing-the-base-branch-of-a-pull-request) + +## Review decisions, anchors, pending state and resolution + +Group ID review-submission-and-threads. + +Capabilities pr-reviews, pr-review-comments, pr-file-view-state. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| review.commit_id / event | observed head SHA; omitted event=PENDING, COMMENT, APPROVE, REQUEST_CHANGES | Bind evidence to the reviewed head. Draft/pending reviews are private; submit only the intended decision and explain actionable findings. | Read review ID, commit_id, state, submitted_at and comments; author cannot approve own PR. | +| inline anchor | commit_id, path, line/side, start_line/start_side, subject_type line/file | Anchor to an actual diff on the observed SHA; prefer current line/side coordinates, not deprecated positional guessing. | Re-read comment diff_hunk, original/current line and commit IDs; wrong anchor requires correction, not silent relocation. | +| reply and suggestion | in_reply_to root ID, suggestion block, batched application | Preserve original conversation; inspect suggestions as code, batch related accepted edits and verify new commits. | Read replies and resulting branch SHA; rerun affected checks after applying suggestions. | +| viewed files / diff settings | mark/unmark viewed, unified/split, ignore whitespace | Viewed is personal progress, not approval; inspect whitespace when meaningful and unmark changed files requiring another pass. | Read viewerViewedState as same viewer and current path/head; record what was actually reviewed. | +| thread.resolve / reopen | resolved, unresolved, outdated | Resolve after code/evidence addresses the finding or recorded agreement; outdated merely means anchor drift, not fixed. | Read isResolved/isOutdated and implementing commit or linked follow-up; preserve unresolved material objections. | +| dismissal.message / restrictions | required rationale, eligible actor | Dismiss only invalidated/unavailable-reviewer feedback with an explicit reason and policy authority; do not erase dissent to unblock merge. | Read dismissed review state and timeline rationale plus remaining effective review requirements. | + +### Pitfalls + +- Review comments, issue-style PR comments and commit comments are different stores. Never respond to only the summary while missing inline threads. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/pulls/reviews) +- [Official sources 2](https://docs.github.com/en/rest/pulls/comments) +- [Official sources 3](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/reviewing-proposed-changes-in-a-pull-request) +- [Official sources 4](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/dismissing-a-pull-request-review) + +## Merge settings and asynchronous delivery + +Group ID merge-options-and-delivery. + +Capabilities pr-merge, pr-auto-merge, pr-merge-queue, pr-update-revert-cleanup, pr-agent-merge. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| allow_merge_commit / allow_squash_merge / allow_rebase_merge | independent booleans | Follow existing history policy and effective branch rules; retain squash-only delivery where the repository policy requires it. Avoid introducing several methods without a reason. | Read repository flags and allowed methods in effective rules; inspect actual resulting commit topology. | +| squash_merge_commit_title / message | PR_TITLE or COMMIT_OR_PR_TITLE; PR_BODY or COMMIT_MESSAGES or BLANK | Prefer stable PR title plus reviewed useful body for a one-change PR; inspect generated message for accidental skip directives or sensitive diagnostics. | Preview final message and read resulting commit; verify expected CI ran on the merged SHA. | +| merge_commit_title / message | PR_TITLE or MERGE_MESSAGE; PR_BODY or PR_TITLE or BLANK | If merge commits are enabled, choose a useful durable description without dumping transient logs. | Read supported enum payload and final commit message; no configuration claim from preview alone. | +| merge.sha / merge_method | exact reviewed head SHA, merge/squash/rebase | Guard the merge against concurrent head changes; do not override required checks, outstanding review or queue to satisfy a local plan. | Re-read current head and gate state, then resulting merged flag, merge_commit_sha and base ref. | +| auto-merge / queue entry | enabled/disabled, selected allowed merge method, queued state | Enable only for reviewed intent and qualifying rules; enqueue/enable is pending work, not completion. | Poll meaningful state changes until merge/failure or handoff; inspect queue removal reason and merged commit checks. | +| update_branch.expected_head_sha / delete_branch_on_merge / revert | expected head guard, boolean, revert PR | Update only after inspecting divergence; delete truly merged disposable branches, retain long-lived branches. Revert through a tracked PR rather than history rewrite. | Confirm head after update, branch absent only when intended, and revert result against merged commit. | + +### Pitfalls + +- Squash of a reused long-lived branch can replay prior commits in later PRs; start a fresh branch. Agent-merge eligibility must be checked separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests) +- [Official sources 2](https://docs.github.com/en/pull-requests/reference/pull-request-merges) +- [Official sources 3](https://docs.github.com/en/rest/pulls/pulls) +- [Official sources 4](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/179965) + +## Project scope, access and item identity + +Group ID project-identity-access. + +Capabilities projects-lifecycle, projects-access, projects-items. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| owner / number / node ID | organization Project, user Project, stable project ID | Reuse an existing matching Project; store owner/number/URL and node ID, never treat repository Projects flag as owner Project setup. | Read Project owner/ID/title/closed/public and linked repository list. | +| visibility / base permission / explicit collaborators | public/private, none/read/write/admin where available, users/teams | Choose least privilege for the real audience; repository access and Project access are separate. Draft titles and custom data can expose information. | Read base/explicit grants and inspect as intended reader; do not broaden repo access to make a Project readable. | +| item content type / IDs | Issue, PullRequest, DraftIssue; item ID distinct from content ID | Keep tracked work as native issues/PRs; draft ideas are appropriate before a repository is selected. Reuse existing item for content ID. | Paginate items and match content node ID/URL, including archived entries. | +| draft conversion | destination repository, issue metadata | Convert when the work has a responsible repository; preserve draft body, relevant fields and links, and check access before conversion. | Read returned issue URL and item content type/field values; do not create a second item for the same work. | +| item reorder / archive / delete | relative item order, archived flag, remove from Project | Use archive for recoverable history; deletion removes membership/field data, not the underlying issue. | Compare item IDs and saved values; restore archive when needed and verify representative fields. | + +### Pitfalls + +- Successful item-add is not proof that every view will show it: filters, archives, pagination, permissions or a service incident can hide the item. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-visibility-of-your-projects) +- [Official sources 3](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/193194) + +## Project field configuration and value integrity + +Group ID project-field-schema. + +Capabilities projects-fields, projects-field-values, projects-issue-fields, projects-multiselect. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| field data type / semantic scope | text, number, date, single select, iteration, supported multi-select, built-in issue fields | Reuse built-in title/assignee/type/milestone and shared issue facts; create local fields only for Project-specific planning. | Inventory field IDs/types and example values; distinguish issue fields from similar-name local fields. | +| Status options / order / default | discovered IDs; e.g. Todo/In Progress/Done; optional default | Retain established names/IDs and explicitly define completion. Default to intake/Todo only if all newly added work is truly queued. | Read options/default and a newly added versus existing item; default changes must not silently rewrite old work. | +| select label / description / color | option ID, label, meaning, available color enum | Give ambiguous statuses a usable entry/exit definition; preserve IDs across cosmetic changes. Colors supplement text, never replace meaning. | Compare option IDs before/after, sampled assignments and UI descriptions; inspect schema before option-list replacement. | +| field mutation payload | typed text/number/date/singleSelectOptionId/iterationId, supported multi-select values | Send exactly the relevant value member using discovered IDs; clearing a field is a separate intentional action. | Read the changed field value and verify unrelated values remain; preserve zero versus unset. | +| field deletion / option removal | keep, migrate, delete with affected-value inventory | Migrate populated values before any authorized deletion; export mapping because recreating the same name may not recover identity. | Compare all affected item values and saved-view/filter/workflow references; never prove safety using only one empty item. | + +### Pitfalls + +- Current single-select guide documents at most 50 options and an optional default for newly added items; target API/UI default support still requires discovery. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-single-select-fields) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-text-and-number-fields) +- [Official sources 3](https://docs.github.com/en/graphql/reference/projects) + +## Iteration schedules and rollover + +Group ID project-iterations. + +Capabilities projects-iterations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| iteration configuration | start date, duration number, days/weeks | Match the actual team's planning cadence and timezone assumptions; do not auto-create indefinite schedules. | Read configuration plus automatically created iterations and exact IDs/dates. | +| iteration instance | title, startDate, duration, completed/active iteration ID | Preserve completed iteration identity and assignments; amend future dates deliberately rather than shifting historical interpretation. | Compare old/new date ranges and representative assigned work. | +| breaks | insertion point, break date range | Reflect actual holidays/pauses; inspect generated dates after insertion rather than assuming later schedule is unchanged. | Re-read all affected intervals and check no unintended overlap or shifted promised dates. | +| rollover | selected unfinished items, target iteration ID, preserve completed assignments | Move only unfinished selected work when agreed; keep prior commitment context in authorized update/history instead of silently rewriting all scope. | Compare item IDs/status and previous/target iteration assignments, including nonselected completed work. | + +### Pitfalls + +- An iteration field initially creates three iterations; a break initially follows the prior duration. Product defaults are starting data, not a planning decision. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-iteration-fields) + +## View identity, shared configuration and safe filters + +Group ID project-saved-views. + +Capabilities projects-views, projects-layout, projects-filters. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| view name / layout / position | table, board, roadmap; saved view ID/order | Name views by the decision they support, e.g. Intake, Active work, Release roadmap; set default/first useful view for readers. | Read every saved view and reload shared URL, including ordering and unsaved-change indicators. | +| filter scope | repo/is/reason/assignee/label/type and custom field qualifiers supported in view | Store exact query, not a prose claim; include explicit repo/type/state where needed and quote multiword names. | Check representative included/excluded items and zero-value/unassigned cases; a filter is not an access boundary. | +| number/date/iteration comparison | > >= < <=, ranges, @current/@next where supported | Use date/iteration semantics of this surface, not issue-search syntax; check boundary and timezone behavior with known values. | Inspect edge dates and missing values; compare returned content IDs to expected fixtures/current known items. | +| view save / duplicate / reset / delete | saved shared changes, duplicate, discard unsaved, remove view | Save intended shared configuration explicitly; use a duplicate for experimentation and do not delete a view with active shared links casually. | Reopen as reader/new session and check persistent configuration and old navigation links. | +| API versus UI | current REST view endpoints, GraphQL view mutations, UI advanced controls | Discover actual supported request fields; REST creation and GraphQL view CRUD exist, so avoid blanket UI-only claims. | Read saved configuration through supported surface; use rendered verification for unsupported controls. | + +### Pitfalls + +- Auto-add and auto-archive have narrower filter grammars than views. A valid view query cannot be copied blindly into automation. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/managing-your-views) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects) +- [Official sources 3](https://docs.github.com/en/rest/projects/views) + +## Table and board nested controls + +Group ID project-layout-controls. + +Capabilities projects-layout, projects-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| visible fields / column order / card fields | selected field IDs, ordering, shown/hidden fields | Show owner, status and the facts needed for this view; hide unused noise while preserving stored data. | Reload saved view and inspect expected header/card fields and order. | +| board column field / visible columns / limits | single-select or iteration field, displayed values, column limit where offered | Use Status for execution, iteration for planning; hide columns only with an alternate way to find excluded work. Column limits are planning signals, not enforcement. | Verify field ID and value-to-column mapping; inspect hidden/no-value work and displayed limits. | +| group by / vertical_group_by | supported field, no grouping | Group by responsible person, parent or priority for a real triage question; dragging across groups can edit underlying fields. | Read fields after an authorized drag and verify parent/assignee effects rather than assuming presentation-only movement. | +| slice by | supported field, no slicing | Use for fast per-team/repository focus; title/reviewers/linked PRs are not supported slice fields in current guide. | Check slice plus saved filter intersection and clear selection to recover full view. | +| sort primary/secondary / direction | field IDs, ascending/descending, no sorting | Use priority/date order when that drives work, manual order for explicit ranking; sorted boards disallow manual ordering within columns. | Read saved sorting and known equal-value tie examples; distinguish drag-to-column mutation from reorder. | +| field sums | count, selected numeric fields | Sum only compatible measures; points are estimates and mixed currencies/units must not be combined. | Recompute a representative group from actual item values and compare displayed aggregate. | + +### Pitfalls + +- Grouping a multi-assignee issue can show it in several groups; avoid interpreting row/card counts as unique work without checking IDs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-table-layout) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout) + +## Roadmap dates, markers and time windows + +Group ID project-roadmap-controls. + +Capabilities projects-layout, projects-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Date fields.Start date / Target date | chosen date or iteration field IDs | Bind to explicit planning fields, not guessed names; distinguish planned dates from actual completion evidence. | Read both mappings and compare bar boundaries to item values; inspect undated work separately. | +| Markers | iterations, milestone dates, item dates | Display only useful commitment/reference markers to avoid implying every date is a release deadline. | Inspect labels and actual source milestone/date values. | +| Zoom | Month, Quarter, Year | Choose the smallest window supporting the planning decision; preserve a useful shared overview. | Reload view and inspect expected time window and clipped/offscreen work. | +| roadmap drag / resize | changes start/target dates or selected iteration | Treat dragging as a real scheduling mutation; avoid accidental date changes during inspection. | Read changed field values and affected automation afterward; restore exact original values on accidental edit. | +| group / slice / sort / sums | supported fields and order, none | Apply the same data-integrity rules as other layouts; maintain access to ungrouped/undated items through a table view. | Compare item IDs across roadmap and table to explain omissions without inventing missing work. | + +### Pitfalls + +- A visually complete roadmap can exclude undated items; never equate visible bars with all project scope. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-roadmap-layout) + +## Event-driven Status transitions and issue closure + +Group ID project-event-workflows. + +Capabilities projects-workflows, projects-field-values. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| workflow enabled / target field-option | per-workflow enabled flag, discovered Status option ID | Inventory every built-in event workflow before manual reconciliation; retain behavior only when transition matches the project's definition. | Read workflow trigger/enabled/target and verify a permitted representative transition. | +| item added → Status | disabled, intake/Todo option | Default new work to intake if untriaged; do not overwrite imported/customized existing work as a setup side effect. | Observe new item value, existing populated item and applicable field default together. | +| issue/PR closed → Done | enabled default, disabled, alternative supported option | Closed-not-planned is not successful delivery; decide whether one Done column intentionally includes cancellation or needs separate reporting. | Check reason and resulting Status for completed and not-planned examples; correct mismatches without reopening rejected work. | +| PR merged → Done | enabled default, disabled, supported option | Merge may be completion for library work, but deployed systems may still require QA/release. Define that boundary explicitly. | Read merged commit, item Status and downstream release/deployment evidence separately. | +| Status change → issue state | disabled, close issue on configured transition where supported | Enable only when board transitions truly authorize closing the issue; avoid circular/competing automation. | Read issue state/reason and both directions of workflow behavior; identify unexpected loops or last-writer wins. | +| reopen / ready / review-related events | discovered host workflows | Inventory actual available triggers and decide each applicability rather than assume all event workflows exist everywhere. | Read current workflow list/schema/UI and verify exact resulting option IDs after relevant event. | + +### Pitfalls + +- Initialization enables closed→Done and merged→Done. A successful Status write can be immediately changed by another workflow; verify after automation settles. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations) + +## Auto-add filters, backfill and execution identity + +Group ID project-auto-add. + +Capabilities projects-auto-add, projects-actions. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| auto-add.repository / filter | per-repository selector, is/label/reason/assignee/no subset | Scope to intended repository and item kind; exclude automation noise deliberately. Validate native grammar independently of view query. | Read enabled workflow and exact filter; inspect a matching and a nonmatching permitted item. | +| filter values / negation | is:open/closed/merged/draft/issue/pr, label names, reason, assignee, no:label/assignee/reason | Use supported values and negation (no does not support negation); quote labels. Do not invent arbitrary custom-field auto-add filters. | Preview/save and confirm actual matching content IDs; compare available grammar with current official guide. | +| workflow count / duplicate | plan-dependent 1/5/20 limits currently documented, unique filters | Reuse existing workflows; Free has one, Pro/Team five, Enterprise twenty in current guide. Record plan gate rather than adding a token workaround silently. | Read actual count and entitlement; verify each repository selector and duplicate filter. | +| existing backlog | explicit paginated backfill, future matching creates/updates | Enabling auto-add does not backfill existing matches; reconcile backlog as a separate authorized operation preserving item values. | List source issues/PRs, compare content IDs to active/archive membership and add only missing items. | +| custom Action identity | installation token or authorized user credential, least Project/repository permissions | Repository GITHUB_TOKEN generally cannot stand in for owner Project write access; prefer a scoped App only when native workflow is insufficient. | Inspect workflow/token permissions without exposing secrets; verify membership and typed field values after execution. | + +### Pitfalls + +- Creating a dummy issue to test automation sends real notifications and is not a read-only check; use existing evidence or an explicitly authorized representative fixture. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions) + +## Retention filters, existing matches and restoration + +Group ID project-auto-archive. + +Capabilities projects-auto-archive, projects-items. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| auto-archive.enabled / filter | disabled, enabled; is/reason/updated only | Prefer disabled until retention criteria are agreed; custom Status is not supported in this automation grammar. | Read exact saved filter and enabled state; enumerate matching existing items before enable. | +| retention clock | updated relative-date expression supported by current surface | Do not call last-updated age closed-age; comments/labels/assignees/milestones/field changes can reset update time. | Test known boundary examples in this automation surface; record literal filter rather than translating comparator from memory. | +| existing matches | immediately eligible after enable, potentially delayed processing | Inventory affected IDs/values first; unlike auto-add, auto-archive also processes old matching items. | Compare before/after active and archive IDs and counts until processing settles. | +| archive versus capacity | recoverable archive, Project membership deletion | Archive keeps custom data and supports restore but still counts toward current 50,000 combined item limit. Deletion needs a separate retention decision. | Read archive entries and restored values; verify underlying issue remains unchanged. | +| recovery | disable workflow, restore selected archived item IDs | Stop faulty automation first, restore exact affected items and values, then correct filter before re-enabling. | Re-read saved filter and representative restored fields; inspect re-archival to detect remaining bad criteria. | + +### Pitfalls + +- Historical Community reports describe invalid filters partly executing; do not present that old bug as current. Validate native grammar and preserve a restoration inventory. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/archiving-items-from-your-project) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/36466) +- [Community reports 2](https://github.com/orgs/community/discussions/17085) + +## Charts, historical interpretation and project health + +Group ID project-insights-and-updates. + +Capabilities projects-insights, projects-updates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| chart filter / layout / X-axis / group | supported chart types, selected category field, Time for historical chart, group or None | Name the actual decision and denominator; chart filters are their own saved configuration, not inherited proof from an open view. | Open saved chart and compare included content IDs/known sample; verify reader access. | +| Y-axis / numeric field | count, sum, average, minimum, maximum; selected numeric field | Count unique work or aggregate compatible numeric units; never equate estimate sums with actual labor or outcome value. | Recompute sample groups including missing/zero values and inspect saved aggregate and field mapping. | +| historical chart state / retention | Time axis; Open/Completed/Closed pull requests/Not planned | Historical charts track native issue/PR states, not arbitrary local Status history. Insights does not track archived or deleted items, so retention affects reporting. | Compare known state transitions and active/archive membership; do not report archive-filtered history as all-time delivery. | +| status update.status | ON_TRACK, AT_RISK, OFF_TRACK, INACTIVE, COMPLETE | Set overall project health from evidence, separately from issue open/closed and item Status; meaningful bad news must remain visible. | Read saved update ID/status and chronological update history. | +| status update.startDate / targetDate / body | dates, Markdown message, prior values as form defaults | Include reason, evidence and next decision; inspect inherited previous dates rather than republish stale commitments. Append meaningful updates, edit only corrections. | Read resulting dates/body and prior entries; templates cannot receive updates and subscriptions can notify readers. | + +### Pitfalls + +- Chart controls may require UI even when field/view APIs exist. Do not claim chart configuration from project item listing or API capability indexing. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/configuring-charts) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/about-insights-for-projects) +- [Official sources 3](https://docs.github.com/en/issues/planning-and-tracking-with-projects/sharing-project-updates) +- [Official sources 4](https://docs.github.com/en/graphql/reference/projects) + +## Template/copy fidelity and initial conditions + +Group ID project-copy-template. + +Capabilities projects-templates, projects-lifecycle, projects-access, projects-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| copy owner / title / draft selection | organization/user owner, new title, copy draft issues checkbox | Choose destination deliberately and copy example drafts only when useful; inspect template contents for confidential planning text. | Read new owner/title/ID and copied draft bodies/values. | +| copied configuration | views, custom fields, draft field values, workflows except auto-add, insights | Treat copied settings as a starting point, not desired final state; inherited automation can immediately affect new work. | Compare each copied component and field-option mappings independently with source snapshot. | +| not copied | original issue/PR items, collaborators, team/repository links, auto-add workflows | Recreate only applicable omitted relationships and intake workflow under authorized access scope; backfill existing work separately. | Read membership, grants, links and enabled auto-add on destination; source configuration proves nothing about destination completion. | +| organization template / recommendations | mark/unmark template, recommended template list | Curate only usable templates with documented fields and workflow expectations; avoid promoting an unverified personal experiment. | Read template status and organization recommendation visibility as intended member. | + +### Pitfalls + +- Copied field/option IDs are destination identities; never apply source item/field IDs to the new Project by name alone. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-project-templates-in-your-organization) + +## Discussion purposes, category formats and intake + +Group ID discussion-categories-and-forms. + +Capabilities discussions-lifecycle, discussions-organization. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| repository versus organization source | repository Discussions, designated organization source repository | Keep repo-specific support near code; organization-wide discussions need explicit source-repository governance and access review. | Read enabled surface, source repository and moderator roles; inspect audience before publishing. | +| category.name / emoji / description / format | open-ended, Q&A, announcement, Polls where offered | Use Q&A for answerable support, open-ended for design, announcement for maintainer-origin updates. Inspect current Polls control rather than treating docs prose inconsistencies as universal support. | Read category IDs and actual format/answerability; announcement posting has stricter permissions than replies. | +| section membership / category rename/delete | one section per category, rename in place, Delete & Move target | Reuse category IDs; preserve navigation and discussion history. Deleting a category moves discussions to a chosen existing category. | Compare IDs/format and counts, destination and old shared links; inspect forms after slug changes. | +| category form path / top-level schema | .github/DISCUSSION_TEMPLATE/.yml; body/labels/title | Match category slug exactly; use supported controls, not issue-form assignee/projects/type top-level keys. | Open actual category composer on default branch and validate required/non-Markdown fields without posting. | +| labels / pins | existing repository labels, global/category pins; four per scope | Pin actionable entry points with a moderator/response owner; avoid a duplicate label taxonomy. | Read pin location, appearance and rendered routing links; global pins and category pins are distinct. | +| category movement / poll intake | recategorize eligible discussion, Polls category cannot move to/from | Select a valid format before intake; do not promise migration of a normal topic into a poll by changing category. | Read current category/format and eligible destinations; preserve original topic links. | + +### Pitfalls + +- Enabling Discussions creates a surface, not a staffed support process. Define who monitors unanswered questions and how decisions become tracked work. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions) +- [Official sources 2](https://docs.github.com/en/discussions/managing-discussions-for-your-community/syntax-for-discussion-category-forms) +- [Official sources 3](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/about-discussions) +- [Official sources 4](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions) + +## Answers, polls, conversions and moderation history + +Group ID discussion-response-and-moderation. + +Capabilities discussions-lifecycle, discussions-answers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| answer selection | mark answer, unmark, Q&A eligible comment | Mark a correct reusable solution with supporting explanation; an accepted answer is not proof a linked implementation shipped. | Read answer ID/body/author and category answerability; retain unresolved follow-up. | +| reply hierarchy / poll vote | replyToId, pollOptionId; viewerCanVote/viewerHasVoted | Respond to the right question; inspect existing viewer vote and options. Voting is personal participation, not setup. | Read reply parent and viewer vote state/counts; never cast a vote merely to test a feature. | +| poll content | discussion title/body, question, at least two options in Polls composer | Choose clear distinct options and explain how feedback informs a decision; do not invent supported close dates, anonymity or binding voting rules. | Preview composer and read poll question/options/order after an authorized creation; creation API support needs its own discovery. | +| lock / close / reason / allow reactions | lock/unlock, close/reopen, reason supported by host, reaction toggle | Prefer explanation and narrow moderation; lock restricts interaction while preserving content. Do not silence technical disagreement. | Read locked/closed/reason and rendered notice; confirm permitted moderators and reactions separately. | +| issue → discussion conversion | category ID, original issue and resulting discussion IDs | Use only when conversation rather than committed work is appropriate; explain routing when messaging is authorized and snapshot original history first. | Read both objects, canonical links, authors, all comment/reaction pages and issue closure/lock behavior; reconcile timeout before retry. | +| create issue from discussion | linked new issue in responsible repository | Track accepted actionable work while retaining the discussion decision trail; do not assume participants/subscriptions or every metadata field move. | Read both cross-links and preserve original authors and decision context. | +| transfer discussion | eligible same-owner destination repository or organization source repo | Destination creation permission is required; private-to-public and announcement transfers are unsupported. Review audience before any allowed transfer. | Read destination repository/category/access and retained comments/links; reconcile original and returned discussion IDs. | +| minimize / delete | classification and restore, irreversible deletion | Use least destructive appropriate moderation with reason; deletion is not a substitute for marking superseded information. | Read minimized state or exact deleted ID and preserve required moderation rationale without redistributing sensitive content. | + +### Pitfalls + +- Community conversion threads contain conflicting claims and historical incidents. Current official conversion flow exists; do not repeat a claim that conversion is universally unavailable. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/discussions/managing-discussions-for-your-community/moderating-discussions) +- [Official sources 2](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) +- [Official sources 3](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions) +- [Official sources 4](https://docs.github.com/en/graphql/reference/discussions) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/152627) +- [Community reports 2](https://github.com/orgs/community/discussions/3197) +- [Community reports 3](https://github.com/orgs/community/discussions/2952) + +## Wiki content, publication, permissions and discoverability + +Group ID wiki-publication-history. + +Capabilities wiki-pages, wiki-navigation. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| enabled / editing audience | has_wiki, collaborators-only, public editing on eligible public repos | Default to repository writers for project policy/docs; public editing is a governance choice, not a completeness requirement. | Read repository flag and actual Wiki access control; public/private visibility follows repository audience. | +| source repository / publication ref | OWNER/REPO.wiki.git, actual wiki branch and SHA | Clone/fetch Wiki separately; preserve other contributors' commits and compare source wiki/ files before publishing. | Compare remote before/after commit SHA and rendered pages; source files alone are not proof of publication. | +| page title / filename / markup | supported file extension, stable page slug, relative links | Keep page naming stable and explicit; avoid filesystem case collisions and check renamed-page backlinks. | Render pages and follow links on GitHub, inspect separate Wiki Git log and page history. | +| navigation | Home, _Sidebar., _Footer. | Provide install/use/config/troubleshooting navigation based on actual project scope; footer can carry source/version context. | Open every navigation destination, heading anchor and asset as intended reader. | +| change message / correction / recovery | meaningful commit, revert commit, merge remote changes | Record what changed and why; recover with a new corrective commit rather than force-overwrite others' Wiki work. | Read remote ancestry and page revision, compare preserved unrelated pages and restored content. | +| indexing / size constraints | search-engine eligibility, current soft file limit | Do not promise search-engine discovery for a small Wiki; current guide requires 500 stars and restricted public editing, with soft 5,000-file limit. | Inspect actual audience/search behavior; consider Pages only if indexing or size is an actual requirement. | + +### Pitfalls + +- A main-repository pull request does not review/enforce separate Wiki pushes automatically; document the publication check and do not conflate branches. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis) +- [Official sources 2](https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages) +- [Official sources 3](https://docs.github.com/en/communities/documenting-your-project-with-wikis/creating-a-footer-or-sidebar-for-your-wiki) +- [Official sources 4](https://docs.github.com/en/communities/documenting-your-project-with-wikis/viewing-a-wikis-history-of-changes) + +## Search surfaces, query semantics and completeness + +Group ID search-and-discovery. + +Capabilities search-cross-github, search-code, search-issues-prs, issue-saved-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| code search surface | browser Code Search, REST legacy code search, local rg/git grep | Choose syntax for the actual engine; browser Boolean/regex/symbol features do not imply equivalent REST support. Use local Git for exact nondefault-revision inspection. | Record engine, repository and revision; retrieve matched file at immutable SHA before acting. | +| modern code query | repo/org/user, path/language/symbol/content, quoted strings, /regex/, AND/OR/NOT | Scope narrowly and escape literals correctly; a bare term can match path or content. Inspect actual engine limits before assuming exhaustive indexing. | Reproduce match locally at known revision and inspect excluded files/ref; empty search is not absence proof. | +| issue/PR query | is:issue/is:pr, state/reason, author/assignee, review/review-requested, linked, dates | Use explicit type and repository scope, native review qualifiers for review queues and dates for bounded investigations. | Retrieve every consequential issue/PR by ID and paginate authoritative collection for completeness. | +| Discussion query | repo/org, in:title/body/comments, category, is:answered/unanswered where supported, dates | Search existing answers/decisions before creating a new topic; category and issue-search grammars differ. | Open original discussion, current answer and full relevant replies; check date of claim and superseding staff response. | +| REST search result limits | per_page/page, incomplete_results, capped result windows | Treat results as indexed discovery; split disjoint date/repository ranges and reconcile total counts when cap or incompleteness appears. | Inspect incomplete_results and available pages, deduplicate IDs; use owning lists/GraphQL/Git if a full inventory is required. | +| saved queries / issue views | name/query, personal versus shared saved surface | Save useful triage/review queries with explicit audience; a personal saved search is not a shared Project view. | Reload as same viewer, inspect exact query and validate known expected item membership. | + +### Pitfalls + +- Masked private objects, indexing lag, engine-specific limits and search caps mean zero results cannot establish absence or permission. Never use obsolete legacy limits as modern Code Search limits. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax) +- [Official sources 2](https://docs.github.com/en/search-github/searching-on-github/searching-code) +- [Official sources 3](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests) +- [Official sources 4](https://docs.github.com/en/search-github/searching-on-github/searching-discussions) +- [Official sources 5](https://docs.github.com/en/rest/search/search) + +## Ruleset scope, bypass and evaluation evidence + +Group ID ruleset-targets-and-insights. + +Capabilities repository-rulesets, ruleset-insights. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| target / conditions | branch, tag, push; ref_name include/exclude; repository targeting at owner scope | Inspect inherited rules and select exact intended ref patterns, including default-branch symbolic selectors when supported; exclusion can silently remove protection. | Read ruleset IDs/source/enforcement plus effective rules for a representative matching and excluded ref. | +| enforcement | disabled, active, evaluate on eligible Enterprise plans | Disabled protects nothing; evaluate observes without blocking and needs a plan check. Preview broad new policy in evaluate where available before enforcement. | Read saved mode and rule-suite results; do not report evaluate as protected. | +| bypass_actors.actor_type / actor_id / bypass_mode | eligible role/team/App IDs; always, pull_request, exempt where supported | Preserve existing authorized exceptions and choose the narrowest useful mode; exempt does not run rules or create a bypass audit entry. | Read actor identity/mode and confirm no accidental broad role exception or App removal. | +| rule suite filters | ref, actor_name, rule_suite_result, time_period; pass/fail/bypass | Inspect operational failures and bypass use, not merely policy JSON. Check current endpoint filter enums and retention before querying. | Read suite ID, actor, ref, evaluation time and per-rule result; distinguish evaluate failures from blocked writes. | +| ruleset history / import-export | ruleset ID/version, export JSON, reviewed imported settings | Preserve baseline/version and review imported selectors/actor IDs; source owner IDs do not automatically mean destination identities. | Compare saved ruleset history, exact imported payload and effective target rules; revert with a corrective version. | + +### Pitfalls + +- Multiple rulesets can apply together with classic protection. A clear ruleset read does not prove the actor had no bypass or that another inherited rule did not apply. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/rules) +- [Official sources 2](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository) + +## Effective review/check requirements and compatible merge behavior + +Group ID branch-and-merge-gates. + +Capabilities branch-protection, repository-merge-policy. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| required_pull_request_reviews | required_approving_review_count, dismiss_stale_reviews, require_code_owner_reviews, require_last_push_approval | Choose actual independent reviewer availability; stale/last-push rules must match team workflow. Zero peer approval may be intentional with required checks. | Read effective rules and representative current-head review states; inspect reviewer eligibility and outstanding changes requests. | +| review dismissal / bypass restrictions | dismissal_restrictions, bypass_pull_request_allowances, users/teams/apps | Retain narrowly justified emergency routes; never add the running agent as bypass to complete setup. | Compare actor IDs and enabled restrictions, and inspect subsequent dismissal/bypass evidence. | +| required_status_checks | strict, checks context/app_id, legacy contexts | Bind stable check names to expected Apps where supported; strict requires up-to-date branch, queue needs merge_group CI support. | Compare rules to actual check-run names/App IDs on PR and merge-group SHAs; skipped or pending is not passing. | +| enforce_admins / restrictions | admin enforcement boolean, allowed users/teams/apps, block_creations where supported | Decide administrator policy deliberately; push allowlists are not equivalent to review bypass. Preserve existing emergency ownership. | Read protection and ruleset bypass together; verify effective actor rights without making a disruptive test push. | +| history / signatures / deletion | require_linear_history, required_signatures, allow_force_pushes, allow_deletions, lock_branch | Match legitimate release workflow and retain no-force/no-delete for protected history unless specifically justified. Locked branches and fork-sync settings need separate intent. | Read all flags and branch status; verify merge methods remain compatible with linear history. | +| conversation/deployment/security gates | required_conversation_resolution, required deployments, required code/secret/quality rules where supported | Require gates only when their producer/workflow exists and can complete; determine exact environment/tool thresholds from the schema and project policy. | Read named environments/tool thresholds and current-head gate results; do not disable failing gates as recovery. | +| repository merge flags | allow_merge_commit/squash/rebase, allow_auto_merge, allow_update_branch, delete_branch_on_merge | Keep methods compatible with effective rules; auto-update visibility is not auto-merge or branch freshness. Clean only disposable merged heads. | Read repository flags and PR merge box/effective rule methods; inspect final merge topology and branch cleanup. | +| merge queue parameters | check timeout, minimum/maximum group size, grouping strategy, merge method where offered | Use only when contention justifies it; inspect current host schema for exact names/enums and ensure queue check triggers exist. | Read queue rule payload and representative merge_group results, queue removal reasons and merged SHA. | + +### Pitfalls + +- Classic protection update endpoints can replace nested objects and clear omitted policy. Snapshot and merge intended changes; one protected-branch endpoint cannot establish full ruleset enforcement. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/branches/branch-protection) +- [Official sources 2](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets) +- [Official sources 3](https://docs.github.com/en/rest/repos/repos) + +## Personal watch choices, inbox triage and feed limitations + +Group ID notification-and-activity-state. + +Capabilities notifications-watch, notifications-inbox, activity-events. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| repository subscription | subscribed, ignored, custom event selection through supported UI | Preserve user preference; watch only requested event categories and distinguish ignored from simply not subscribed. Stars bookmark rather than subscribe. | Read subscription as same user plus UI custom categories; subscribers_count differs from legacy watchers_count/stargazers_count. | +| watcher list restrictions | admin/collaborator-only listing, deprecated user watched-repo endpoint | Current docs describe July 2026 restrictions and deprecated endpoint empty responses; do not infer nobody watches from an empty legacy list. | Check endpoint status/auth identity and direct repository subscription state. | +| inbox query | all, participating, since, before, repository, reason; UI custom filters | Choose smallest needed read window and paginate; inspect reason such as mention/review_request/assign rather than treating all notifications equally. | Read thread ID/subject/reason/unread/last_read_at and canonical owning object. | +| triage operation | read/unread, done, saved, unsubscribe | Read acknowledges visibility; done hides completed notifications, save retains attention, unsubscribe changes future delivery. Apply only explicitly intended selected threads. | Re-read selected thread and UI saved/done state; compare unaffected threads, and reconcile ambiguous writes before retry. | +| retention / subscription recovery | done retained five months, saved indefinitely, resubscribe | Inbox is not permanent project history; unsaving old notifications can make them disappear. Unsubscribe can be superseded by later mention or review request. | Preserve canonical issue/PR URLs for durable context and verify subscription after authorized recovery. | +| authentication / polling | classic PAT notifications/repo scopes per current notification docs, Last-Modified/ETag, X-Poll-Interval | Do not assume fine-grained/App tokens support notification endpoints. Respect server polling interval and conditional requests. | Inspect authentication compatibility and 304 semantics without exposing credentials; permission failure remains unknown state. | +| activity feed window | up to 300 events, past 30 days, latency 30 seconds to six hours | Use feeds for discovery, not real-time completion or complete audit history. Prefer owning issue/PR/commit state for consequential facts. | Record event ID/time and owning object evidence; honor ETag and X-Poll-Interval. | + +### Pitfalls + +- Personal inbox Done is unrelated to issue closure or Project Done; never complete work by clearing its notification. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/activity/watching) +- [Official sources 2](https://docs.github.com/en/rest/activity/notifications) +- [Official sources 3](https://docs.github.com/en/rest/activity/events) +- [Official sources 4](https://docs.github.com/en/subscriptions-and-notifications/how-tos/viewing-and-triaging-notifications/managing-notifications-from-your-inbox) + +## Reusable drafts, reversible hiding and temporary interaction limits + +Group ID community-personal-replies-and-moderation. + +Capabilities community-saved-replies, community-comment-minimization, community-interaction-limits. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| saved reply title / body / selection | personal title, Markdown body, create/edit/delete, insert and customize | Store generic accurate routing text and customize to the actual report; inserting a draft does not authorize sending. Current documented cap is 100 replies. | Reload personal reply settings and preview inserted draft; do not post a test reply. | +| minimizeComment.subjectId / classifier | ABUSE, OFF_TOPIC, OUTDATED, RESOLVED, DUPLICATE, SPAM | Pick a justified classification and preserve the discussion; disagreement or inconvenient findings are not abuse. Check actor/type eligibility first. | Read viewerCanMinimize/isMinimized/minimizedReason plus original comment link and rendered visibility. | +| unminimize / deletion distinction | restore hidden comment, delete separately authorized content | Use restoration when hiding was mistaken; minimized content still exists and cannot be treated as erased sensitive data. | Read restored state and inspect full thread; handle actual secret exposure through the applicable security process. | +| interaction scope / inheritance | repository, organization public repositories, user-owned public repositories | Choose the narrowest incident scope and inspect inherited limits before overriding; broad owner controls affect uninvolved contributors. | Read effective repo and owner restrictions and record actor, scope and expiry. | +| interaction limit / expiry | existing_users, contributors_only, collaborators_only; one_day/three_days/one_week/one_month/six_months | Prefer the shortest effective restriction consistent with authorized moderation; do not silently block ordinary reporters for routine setup. | Read limit and expires_at from owning endpoint and inspect class semantics; never validate by posting disruption. | +| remove / expire / blocked users | remove temporary limit, automatic expiry, separate account blocking | Restore normal participation after incident and keep rationale; removing a repository limit does not remove an inherited owner restriction. | Re-read repo/owner limit state and separate block lists where authorized; distinguish expired from inaccessible. | + +### Pitfalls + +- No stable saved-reply CRUD API is established here; inspect current UI. Comment minimization, conversation lock, interaction limit and account blocking are separate controls. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/about-saved-replies) +- [Official sources 2](https://docs.github.com/en/graphql/reference/issues) +- [Official sources 3](https://docs.github.com/en/rest/interactions/repos) +- [Official sources 4](https://docs.github.com/en/rest/interactions/orgs) +- [Official sources 5](https://docs.github.com/en/rest/interactions/user) + +## Personal availability, bookmarks, featured work and following + +Group ID profile-personal-presence. + +Capabilities profile-status, profile-star-lists, profile-content-pins, profile-follow-organizations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| status content / scope | emoji, message, organizationId or public null | Preserve user wording and audience; avoid publishing private project details as status. Organization-scoped status is not an organization announcement. | Read emoji/message/organization and inspect rendering as intended audience. | +| status availability / expiration | limitedAvailability boolean, expiresAt timestamp, clear status | Set busy only for requested availability; use intended timezone converted to exact expiry rather than leave a temporary absence indefinitely. | Read indicatesLimitedAvailability/expiresAt and verify removal/expiry; personal status is unrelated to work-item Status. | +| star list name / description / membership | create/update/delete list, repository membership IDs, starring independently | Keep bookmark organization separate from follow/watch; preserve unrelated list memberships in updateUserListsForItem replacement operations. | Read list ID/content and repository star state separately; list deletion is not repository deletion. | +| profile README / pins | USER/USER README, up to six repositories/gists combined, pin order | Publish only user-approved profile content and intended public featured work; use valid account-named repository for README. | Read immutable README commit and public rendered profile/pin order; preserve existing selections. | +| contribution/profile visibility | public/private profile, private contribution display, achievements/activity options where offered | Treat as personal privacy choice; anonymized private activity is not permission to reveal private repository names. | Inspect profile as owner and public viewer; verify current UI rather than assume profile REST edits cover these settings. | +| organization following | follow/unfollow org, viewerIsFollowing | Follow only requested organizations; preview feature supplies public activity, not membership or repository access. | Read following relation as same viewer and inspect dashboard; no requirement to generate activity for a test. | + +### Pitfalls + +- Personal starring, following, availability and profile changes can reveal preferences and should not be silently bundled with a repository audit. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/graphql/reference/users) +- [Official sources 2](https://docs.github.com/en/account-and-profile/concepts/personal-profile) +- [Official sources 3](https://docs.github.com/en/account-and-profile/how-tos/profile-customization/pinning-items-to-your-profile) +- [Official sources 4](https://docs.github.com/en/get-started/exploring-projects-on-github/following-organizations) + +## Sponsors identity, eligibility and public listing + +Group ID sponsors-listing-onboarding. + +Capabilities sponsors-listing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| listing identity | authenticated personal account, sponsorableLogin organization | Select the actual beneficiary, authority and supported region/fiscal-host route; do not create an organization listing for a similarly named repository owner by assumption. | Read listing/account IDs, owner/admin role and enrollment/approval state. | +| profile fields / featured opt-in | bio, introduction, featured work, matching/featured preferences where eligible | Prepare accurate public purpose and benefits; owner decides marketing consent and funding language. | Read rendered listing and saved preferences; unpublished/draft differs from publicly approved listing. | +| onboarding personal/legal fields | residence, billing/tax/provider verification, fiscal-host details | Let account owner handle required legal/banking attestations and credentials; never infer those from GitHub profile geography or commit email. | Report exact outstanding setup gate without exposing tax/bank data; listing mutation alone is not completed onboarding. | +| publication / funding link | approved listing, draft setup, FUNDING.yml sponsor button | Add funding links only to real intended supported beneficiaries; distinguish external funding URLs from an active GitHub Sponsors listing. | Open public listing and repository sponsor target as intended reader; retain owner decision about platform selection. | + +### Pitfalls + +- Enrollment/profile setup does not authorize a payment, bank change, tier publication or newsletter. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account) +- [Official sources 2](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-organization) +- [Official sources 3](https://docs.github.com/en/graphql/reference/sponsors) + +## Amounts, recurrence, publication and benefit access + +Group ID sponsors-tier-configuration. + +Capabilities sponsors-tiers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| amount / recurrence | amount in US dollars, isRecurring boolean, documented API range 1–12000 | Choose explicitly approved price and monthly versus one-time meaning; never confuse dollars with cents or interpret isRecurring as an arbitrary billing scheduler. | Read amount/currency/recurrence from returned tier and actual checkout; current API schema defines valid range. | +| description / welcome message | public perks, post-payment instructions | Promise only deliverable benefits, avoid private credentials in broad welcome text, and document entitlement expectations. | Preview public and purchaser-facing text and check instructions/links. | +| publish / retire | draft by default in createSponsorsTier, publish true/false, retire tier | Review concrete tier before publication. Published prices cannot be edited; retire and create a new tier for a new price. | Read published/retired state and remaining active sponsorships; retirement does not cancel existing sponsors. | +| repository benefit | organization-owned private repository ID/name, no repository benefit | Adding a benefit grants read-only access to sponsors and requires explicit access authorization; do not attach source or customer data accidentally. | Verify exact repository owner/visibility and tier benefit, plus current entitlement policy without creating a paid test sponsorship. | +| tier limits | up to ten published one-time, up to ten published monthly | Reuse meaningful existing offers rather than create redundant tiers; keep retired options visible in historical reporting. | Count active published tiers by recurrence and inspect retired-tier subscribers separately. | + +### Pitfalls + +- Existing sponsors can remain on a retired tier. Do not delete/replace historical tier identity to make the public price list look tidy. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers) +- [Official sources 2](https://docs.github.com/en/graphql/reference/sponsors) + +## Payer intent, bulk partial outcomes and sponsorship privacy + +Group ID sponsors-commitments-and-preferences. + +Capabilities sponsors-transactions, sponsors-preferences. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sponsorship payer / beneficiary / tier | sponsorId/login, sponsorableId/login, tierId or allowed custom amount | Resolve exact accounts and a current valid offer; do not charge a personal account when organization funding was intended. | Read account/tier IDs and current sponsorship before mutation; checkout fees/tax/payment details require current verification. | +| one-time / recurring commitment | approved amount, recurrence, payment/renewal state | Repository setup and recommendation do not authorize spending. Match the explicitly requested commitment and inspect immediate/prorated effects before submission. | Read resulting amount, recurrence, payer, beneficiary and active/pending status; financial mutation timeout requires reconcile-before-retry. | +| bulk sponsorship results | per-beneficiary input, individual success/error results | Treat batch as potentially partial, never all-or-nothing; preserve successful commitments and retry only missing authorized ones. | Read every beneficiary relationship and error individually, compare total approved versus committed amounts. | +| change / cancel | upgrade, downgrade, cancelSponsorship, retired tier retained | Apply requested effective change with current billing semantics; cancellation does not prove refund or immediate entitlement end. | Read resulting tier/state and billing effective date; preserve history of previous commitments. | +| privacy / email preferences | PUBLIC, PRIVATE where current schema supports, receive email updates boolean | Make public identity and update consent deliberate personal choices; private sponsorship does not mean beneficiary sees no information. | Read actual sponsorship preference fields and public appearance; never publish identity merely to test visibility. | +| connected platform | Patreon linkage or documented connected sponsorability preference | Connect only an explicitly selected owned account and inspect permission scope; linkage does not create a paid sponsorship. | Read linkage/preference state and retain external-provider limitations; do not claim payment from a connected badge. | + +### Pitfalls + +- Current billing/provider terms are changeable. Read the actual checkout/account flow before any authorized commitment and keep sensitive financial data out of public issues. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/graphql/reference/sponsors) +- [Official sources 2](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/about-sponsorships-fees-and-taxes) +- [Official sources 3](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship) + +## Sponsor history, exports and referral metadata + +Group ID sponsors-reporting-and-campaigns. + +Capabilities sponsors-analytics. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sponsor filters / activity window | active or retired tiers, date range, new/change/cancellation activity | Separate active sponsors, past sponsors, payments and payouts; distinguish cumulative commitment from settled receipts. | Read account/timezone/date/currency and reconcile paginated source rows to displayed totals. | +| export format / date / delivery | CSV, JSON, supported date window and delivery destination | Export only requested scope to intended private destination; initiating emailed export is an external delivery action requiring authorization. | Verify requested export fields/window, actual received file and row totals; record pending versus completed export. | +| referral metadata syntax | metadata_KEY=value; alphanumeric/dash/underscore; at most ten pairs | Use non-sensitive short campaign codes, never email addresses or secret identifiers in public URLs. Whitespace/invalid characters can produce 404. | Check resulting URL and export metadata key after permitted transaction; keys truncate at 25 chars and values at 100 per current guide. | +| lifetime / revenue interpretation | authorized lifetime value, currency, transaction/payment status | Use financial definitions explicitly; sponsorship totals and estimated next payout are not recognized revenue or a tax report. | Reconcile refunds/fees/date window with account dashboard and payout receipts when applicable. | + +### Pitfalls + +- Export access does not authorize publishing sponsor identities or payment details in a public Wiki/Project. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/viewing-your-sponsors-and-sponsorships) +- [Official sources 2](https://docs.github.com/en/graphql/reference/sponsors) + +## Recipient scope, sender identity and publish boundary + +Group ID sponsors-newsletters-and-delivery. + +Capabilities sponsors-newsletters. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| recipients | opted-in sponsors, all eligible tiers, selected tier IDs | Match requested audience and current opt-in; do not bypass consent with copied sponsor email lists. | Read selected tier recipients and current eligibility before publish; distinguish tier names from stable IDs. | +| subject / body / sender | draft subject/message, personal primary email or noreply based on privacy, organization noreply | Prepare concrete reviewed content and working links; note personal sender exposure when email privacy is off. | Preview sender/subject/body/links and target account in dashboard without sending test mail. | +| draft versus Publish | unsent draft, published email update | Publish sends mail and needs an explicit messaging instruction; repository release/setup authority alone is insufficient. | Read publication/sent history and exact target scope; absence of send evidence must remain draft/unknown. | +| ambiguous delivery recovery | inspect newsletter history first, avoid duplicate Publish | A timeout can occur after sending; do not retry the broadcast before reconciling history and timestamps. | Capture update ID, publication time and recipient tier scope; report uncertainty rather than claim all recipients received/read mail. | + +### Pitfalls + +- Published/sent means provider acceptance/history, not proof every recipient received or read the message. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors) + +## Banking boundaries, estimated payouts and fundraising targets + +Group ID sponsors-payouts-and-goals. + +Capabilities sponsors-payouts, sponsors-goals. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| payout account / status | past payout, estimated next payout, holds/provider state | Read correct beneficiary/provider and distinguish estimated, pending and paid; never equate incoming sponsorship with completed payout. | Match amount/date/currency and account history to actual receipt where available. | +| bank/fiscal-host management | supported Stripe Connect flow, fiscal-host support route | Owner handles bank/legal verification; fiscal-host accounts cannot directly edit payout information through the same control. Never paste bank/tax data into repository logs. | Inspect provider/account gate and resulting secure status only; record support handoff as unresolved. | +| receipt export | PDF payout receipts for supported Stripe Connect accounts | Export only required receipt to the authorized private destination; respect provider-specific availability. | Open actual receipt and match account/payout amount/date; dashboard display alone is not exported file evidence. | +| goal type / target / description | Number of monthly sponsors, Sponsorships a month, one active goal | Select an owner-approved measurable target and explain funded work accurately; avoid implying contribution guarantees. | Read live goal type/target/text and public progress; only one simultaneous goal is supported in current guide. | +| goal edit / remove / share | update target/text, remove goal, copy/embed link | Preserve rationale for target changes and publish/share externally only when requested; progress is not recognized revenue. | Re-read public goal after update/removal and inspect embed destination; do not send promotion as setup. | + +### Pitfalls + +- Payout management is provider/account work, not repository administration. Do not claim settled revenue, tax treatment or completed banking verification from GraphQL metadata. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-payouts-from-github-sponsors) +- [Official sources 2](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-goal) + +## Workflow triggers and typed inputs + +Group ID workflow-events. + +Capabilities actions-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| on / types | push, pull_request, pull_request_target, merge_group, schedule, workflow_dispatch, repository_dispatch, workflow_run, workflow_call, release; event-specific activity types | Choose the event whose code/ref and trust model match the job. Add merge_group when required checks serve a merge queue. | Exercise intended event; record event, actor, head_sha and workflow revision. | +| branches / tags / paths | positive/negative glob lists; branches-ignore/tags-ignore/paths-ignore alternatives | Protect required checks against path-filter skips; order negative patterns deliberately; branch and path filters combine. | Test included/excluded branch and file combinations; inspect check state. | +| schedule | POSIX cron; UTC; default-branch workflow | Use for tolerable delays, with manual recovery; scheduling is not a precise timer. | Compare scheduled event timestamp, branch and actual start. | +| workflow_dispatch.inputs | boolean, choice, environment, number, string; required/default/options | Validate enum and deployment target; environment input selects a value but does not gate a job without environment. | Run default and explicit input values; reject invalid target in job. | +| workflow_run | requested, in_progress, completed; workflows and branches | Treat upstream code/artifacts as untrusted; privileged follow-up must verify origin and SHA. | Read originating run ID, repository, event, conclusion, SHA and artifact provenance. | +| GITHUB_TOKEN event recursion | Most token-generated events do not launch another workflow; dispatch exceptions exist | Use explicit dispatch for intended chaining, with bounded recursion; do not broaden credentials just to trigger CI. | Match downstream run to dispatch; confirm no duplicate loop. | + +### Project applicability + +Existing validation CI needs PR and default-branch coverage. Event expansion needs a concrete repository operation. + +### History and human interaction + +Keep trigger edits in reviewed commits; retain event payload metadata without secrets and explain maintainer-triggered runs. + +### Recovery + +Inspect event/ref/filters first; dispatch or rerun the exact intended revision only after correcting cause. + +### Pitfalls + +- A required workflow skipped by filters can leave a required check pending. +- pull_request_target operates in privileged base context; never checkout and execute untrusted PR code there. +- Schedule delays and dropped scheduling events require observability. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow) + +## Jobs, matrices, conditions and run history + +Group ID workflow-execution. + +Capabilities actions-workflows, actions-runs, actions-job-logs. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| needs / if | DAG dependencies; success(), failure(), cancelled(), always(); expressions | Use explicit terminal handling. Reserve always() for bounded cleanup; avoid making cancellation ineffective. | Inspect skipped and failed upstream cases plus cancellation. | +| strategy | matrix axes/include/exclude, fail-fast, max-parallel | Test supported platforms; fail-fast false retains all diagnostics at higher cost. | Inspect complete matrix job set and all conclusions. | +| step execution | run/uses, id, with, env, shell, working-directory, outputs, defaults | Pass untrusted strings through environment or typed inputs rather than shell interpolation. | Read exact workflow SHA, command results and produced outputs. | +| timeouts / tolerated failures | job and step timeout-minutes; continue-on-error; retry in command/action | Bound resource use; do not mark safety or release validation optional. | Force representative failure; ensure required job fails and cleanup completes. | +| services / containers | image, credentials, env, volumes, ports, options; supported runner OS | Use when integration tests require services; pin trusted images and isolate credentials. | Health-check service and inspect exact image digest. | +| attempt operations | rerun all, failed jobs, one job, debug logging, cancel/force-cancel; delete logs/run | Rerun after diagnosis. Capture current attempt; debug logs increase disclosure risk. | Record run ID, attempt, job IDs, SHA, conclusion and redacted log URL. | + +### Project applicability + +Keep the existing small validation workflow unless real platform differences justify a matrix. + +### History and human interaction + +Preserve previous attempts and reviewer explanation; canceled or deleted logs are not proof of an earlier success. + +### Recovery + +Read the current attempt before retrying; cancel normally first; force-cancel only after identifying stuck run and external side effects. + +### Pitfalls + +- A maintainer investigation of discussion #206259 attributed apparent queue blocking to other group jobs and always() preventing cancellation; initial bug claims were incomplete. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) +- [Official sources 2](https://docs.github.com/en/rest/actions/workflow-runs) +- [Official sources 3](https://docs.github.com/en/rest/actions/workflow-jobs) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/206259) + +## Actions availability, allowed code and token defaults + +Group ID actions-policy. + +Capabilities actions-permissions, actions-policies, actions-fork-retention. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Actions enabled scope | disabled, all eligible repositories, selected repositories; inherited org/enterprise constraints | Read inheritance before changing repository settings. | Read all controlling scopes and repository eligibility. | +| allowed actions/reusable workflows | all, local-only, selected; GitHub-owned, verified Marketplace, explicit patterns; SHA-pinning policy where supported | Pin reviewed actions; allow only required external automation. | Read selected-action patterns and inspect each uses reference. | +| default_workflow_permissions | read or write; per-workflow/per-job permission map | Keep repository default read; grant needed write permissions only in responsible job. | Inspect setup log effective GITHUB_TOKEN permissions. | +| token permission map | actions, artifact-metadata, attestations, checks, contents, deployments, discussions, id-token, issues, models, packages, pages, pull-requests, security-events, statuses; supported read/write/none values | Once any permission is specified, unspecified permissions become none; metadata/scopes and availability differ. | Compare permissions to each operation schema and actual run grants. | +| PR creation / approval by Actions | allow or deny workflow PR creation/approval | Creation may help automation; automated approval is not independent review and must not satisfy a human governance intent. | Read can_approve_pull_request_reviews and inspect actor of resulting review. | +| fork policy | first-time/first-time-with-new-account/all external contributor approval; private-fork run/read-token/write-token/secrets options | Run contributions without secrets/write token; approval authorizes code execution and consumes resources. | Read fork policy plus run approval actor and effective token. | +| policy objects and retention | schema-defined action policy rules; artifact/log days bounded by parent policy | Inspect current rule schema and inherited maximums; retain enough release evidence without storing sensitive logs. | Read policy IDs/rules and expiry dates on actual run/artifact. | + +### Project applicability + +Repository rules require read-only CI. Do not enable write or fork secrets merely for fuller coverage. + +### History and human interaction + +Record who approved contributed code, which SHA was inspected and whether a later update needs review again. + +### Recovery + +Revert an allowlist through reviewed policy change; preserve run evidence before lowering retention or deleting logs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/actions/permissions) +- [Official sources 2](https://docs.github.com/en/rest/actions/policies) +- [Official sources 3](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) + +## Reusable workflows, actions and templates + +Group ID reusable-contract. + +Capabilities actions-reusable. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sharing and reference | same-repo path; owner/repo workflow@SHA/tag/branch; private/internal sharing | Prefer exact reviewed SHA; access/allowed-actions policies must permit every nested workflow. | Read referenced_workflows SHAs and effective access policy. | +| workflow_call contract | boolean/number/string inputs, required/default; explicit secrets; outputs mapped job to workflow | Treat inputs/outputs as an API; avoid stringly typed booleans. | Run caller with omitted/default/explicit values and check outputs. | +| secret forwarding | named secrets or inherit for supported org/enterprise relationship; forwarding at every nested hop | Forward only required names; inheritance is wider. Current docs require passing environment secrets as well. | Fail safely when required secret is empty without printing it. | +| environment scope | environment on called job; same-name environment secret wins | Caller cannot put environment on a reusable-workflow call job. Pass environment identifier as input and bind it inside called workflow. | Observe called job gate and selected environment; verify secret presence only. | +| env and outputs | caller env is not general callee env; job/workflow outputs; reusable matrix output semantics | Pass configuration explicitly; use artifacts for files. | Assert outputs on representative matrix and nested caller. | +| nesting / permissions / concurrency | supported host nesting limit; accessible chain; permissions can only remain or decrease; caller/callee group IDs | Avoid same concurrency key accidentally canceling caller; inspect current host limits rather than hard-code historical limits. | Execute complete chain and inspect grants/group. | +| action forms and templates | composite steps, JavaScript runtime, Docker action; organization workflow-templates metadata | Use a template for copied starting files; reusable workflow for centrally maintained behavior. | Check action.yml inputs/runtime and actual consumer run. | + +### Project applicability + +Use only if repeated workflows merit a shared contract; small single-repo CI does not need a new abstraction. + +### History and human interaction + +Version contract changes, review all callers and record actual called SHA rather than mutable tag only. + +### Recovery + +Pin consumer to prior known SHA; restore compatible input/output contract and test caller before broader rollout. + +### Pitfalls + +- Issue #4453 reports empty environment secrets without forwarding; current official documentation explicitly requires passing or inherit. required:true checks passing, not non-empty value. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations) +- [Official sources 3](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax) + +### Community reports + +- [Community reports 1](https://github.com/actions/runner/issues/4453) + +## Variables, credentials and precedence + +Group ID configuration-secrets. + +Capabilities actions-variables, actions-secrets, security-dependabot-secrets. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| scope / selected repositories | organization all/private/selected; repository; environment; Actions versus Dependabot secret stores | Place credentials in narrowest necessary scope; variables are public-to-readers configuration. | Read names/metadata and selected repository IDs. | +| same-name precedence | environment over repository over organization; runtime availability/context restrictions | Avoid collisions; check when the job evaluates variables versus when environment values are available. | Inspect effective non-sensitive variable and secret-presence check in bound job. | +| write protocol | scope public key plus encrypted_value; gh secret via stdin/secure file | Never put secret in arguments, source or issue; encrypted API field is not a retrieval path. | Read updated_at/name; exercise minimal authorized operation. | +| fork / Dependabot / reusable contexts | secrets withheld for untrusted fork runs; Dependabot uses its dedicated store; explicit reusable forwarding | Do not duplicate broad credentials to fix a context error. | Read event actor and correct credential store; negative test unauthorized use. | +| rotation / expiry / redaction | provider revoke/reissue, key owner/expiry metadata outside secret value; add-mask for derived values | Rotate at provider; log masking is best effort, not access control. | Confirm old credential rejection and new credential operation without outputting either. | + +### Project applicability + +Validation should need no repository secret. Dependabot private registries need separate credentials only if present. + +### History and human interaction + +Record credential purpose, owner, consumer and rotation date; never plaintext values in historical evidence. + +### Recovery + +Revoke exposed credential first; replace narrow secret and rerun safely; remove/redact logs separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/variables) +- [Official sources 3](https://docs.github.com/en/rest/actions/secrets) +- [Official sources 4](https://docs.github.com/en/rest/dependabot/secrets) + +## Concurrency and queue policy + +Group ID concurrency-queues. + +Capabilities actions-concurrency. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| group | workflow/job scope; expression; repository-wide case-insensitive group name | Include workflow/ref for isolated CI; use environment-specific shared key for deployment serialization. | Read evaluated group and all related pending/running jobs. | +| queue | single default; max permits up to 100 pending | Use single for latest-state jobs; max when every item matters and host supports it. | Queue a bounded test and inspect pending replacements/overflow. | +| cancel-in-progress | false/default; true; allowed expression | Cancel stale CI; avoid interrupting releases or migrations. queue:max plus true is invalid. | Read old run conclusion and ensure side effects stopped. | +| ordering | FIFO by entering concurrency wait, not original dispatch time; no universal dispatch ordering guarantee | Do not use queue as a transactional ledger; record intended sequence separately if needed. | Compare queue-entry and execution history with expected deployment revisions. | + +### Project applicability + +CI can cancel outdated branch checks; release and Wiki publication must preserve sequence and existing content. + +### History and human interaction + +Attach cancellation reason to run history and preserve prior attempt IDs; an operator retry does not establish queue order. + +### Recovery + +Inspect every workflow sharing the key and always() conditions before calling a queue bug; check runner availability and status incident history. + +### Pitfalls + +- 2021–2025 complaints about a single pending slot do not describe current queue:max behavior; maintainer announced shipping April 17, 2026. +- The control-concurrency page contains broad examples implying unconditional cancellation; use its explicit queue/cancel policy definitions. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency) +- [Official sources 2](https://docs.github.com/en/rest/actions/concurrency-groups) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/5435) +- [Community reports 2](https://github.com/orgs/community/discussions/12835) +- [Community reports 3](https://github.com/orgs/community/discussions/206259) + +## Workflow artifact contents and lifecycle + +Group ID artifacts. + +Capabilities actions-artifacts. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| upload contract | name, path/globs/exclusions, if-no-files-found warn/error/ignore, retention-days | Require expected files; choose unique artifact name per matrix job. | Download exact artifact ID and inspect archive manifest. | +| hidden and file metadata | include-hidden-files false by default; ZIP changes permission fidelity; tar when metadata matters | Include required dotfiles explicitly after excluding credentials; tar executable-sensitive bundles. | Check .codex-plugin files and executable bits in extracted release bundle. | +| compression / overwrite | compression-level supported range; overwrite false default; upload version semantics | Favor low compression for precompressed assets; overwrite deletes old artifact identity. | Record artifact ID, digest, size and expiration after upload. | +| download selection | ID/name/pattern, merge-multiple, path; repository/run/token for cross-run access | Bind release input to trusted run and SHA, never latest name alone. | Verify source run, digest and expected file allowlist. | +| host and action compatibility | supported major/runtime/backend; GHES support differs from GitHub.com | Read current action README and installed runner minimum; do not blindly copy a dot-com major. | Run on target host and inspect resulting artifact/download. | + +### Project applicability + +Inspect installable plugin archive before release; preservation of hidden plugin metadata is essential. + +### History and human interaction + +Keep archive manifest, digest and trusted producing SHA with release evidence; retention expiry must not erase sole evidence. + +### Recovery + +Rebuild from same reviewed SHA, compare contents and digest, issue new version for published immutable mistakes. + +### Pitfalls + +- Hidden-file default change broke explicit dotfile upload use cases; plugin archives can silently lose .codex-plugin if blindly uploaded. +- Artifact download is untrusted data until origin and contents are verified. + +### Official sources + +- [Official sources 1](https://github.com/actions/upload-artifact) +- [Official sources 2](https://github.com/actions/download-artifact) +- [Official sources 3](https://docs.github.com/en/rest/actions/artifacts) + +### Community reports + +- [Community reports 1](https://github.com/actions/upload-artifact/issues/602) + +## Cache keys, access and budgets + +Group ID cache. + +Capabilities actions-caches. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| lookup identity | path, key, restore-keys, OS/architecture/lockfile/toolchain salts; cache-version/ref scope | Do not mix incompatible binaries; restore prefixes trade hit rate for stale input risk. | Inspect exact key/ref/version and restored build behavior. | +| restore controls | lookup-only, fail-on-cache-miss, enableCrossOsArchive, supported restore/save actions | Fail on miss only when cache existence is an actual requirement; cache is ordinarily optional. | Test empty cache and prefix fallback; verify reproducible cold build. | +| write/eviction | immutable key entry; new key for changed content; retention/storage policies | Avoid secrets and release-only evidence; monitor eviction and thrashing. | Read usage, last_accessed_at, size and configured inherited limits. | +| trust boundary | fork/base/default-branch read visibility and write scope; workflow cache access restrictions | Treat cache as untrusted executable input; separate privileged/untrusted scopes. | Verify trust-specific keys/access plus authorized clean-cache build. | + +### Project applicability + +Small Python stdlib validation does not justify a cache unless measured runtime benefit exists. + +### History and human interaction + +Keep cache purge reason and old keys in issue/run evidence, never cache credential contents. + +### Recovery + +Delete only identified poisoned/stale keys; rerun cold, then change salt to prevent accidental reuse. + +### Official sources + +- [Official sources 1](https://github.com/actions/cache) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching) +- [Official sources 3](https://docs.github.com/en/rest/actions/cache) + +## Hosted, self-hosted and larger runner configuration + +Group ID runners. + +Capabilities actions-self-hosted-runners, actions-runner-groups, actions-hosted-runners. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| runs-on selection | hosted image/architecture/size; self-hosted label intersection; group plus labels | Use smallest suitable hosted runner; image labels can roll, so record actual image version. | Inspect job runner_name/group/labels/OS and setup image version. | +| self-hosted registration | repository/org scope; short-lived registration/removal tokens; JIT config; ephemeral flag | Use disposable isolated machines for untrusted work; registration is not host hardening. | Run benign job, confirm isolation and disposal/cleanup. | +| group access | all/selected repositories; public repo option; selected workflows/revisions; inherited org/enterprise policy | Restrict trusted runner group to known workflows and repos. | Read group repository IDs and allowed workflow refs; test excluded workflow refusal. | +| host lifecycle | runner version/update policy, online/busy, labels, proxy, workspace cleanup; ARC scale sets | Patch runner and images; bound queue and jobs; autoscaling requires separate infrastructure. | Check runner health and clean job-to-job environment. | +| larger runner settings | machine type/image/size/max parallelism, runner group, static IP/private networking where eligible | Enable only for a demonstrated workload and approved billing/network access. | Read saved runner config, network reachability and billed usage. | + +### Project applicability + +No current need for paid or self-hosted capacity in this plugin repository. + +### History and human interaction + +Capture operator registration/removal and host ownership, preserving relevant job logs before disposal. + +### Recovery + +Quarantine suspect runner, revoke credentials, replace image; never assume workspace deletion undoes compromise. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/runners/github-hosted-runners) +- [Official sources 2](https://docs.github.com/en/actions/reference/runners/self-hosted-runners) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/manage-access) +- [Official sources 4](https://docs.github.com/en/rest/actions/hosted-runners) + +## OIDC claims and cloud trust + +Group ID oidc. + +Capabilities actions-oidc. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| issuance permission | id-token:write only on authenticating job | Token issuance grants no cloud resource permission by itself. | Inspect effective job permission and provider exchange result. | +| trust conditions | issuer, audience, repository identity, ref/environment, job_workflow_ref; provider-supported claims | Scope provider trust to exact owner/repo/workflow/target; avoid broad wildcard repo trust. | Inspect redacted claims and denied wrong-ref/target exchange. | +| subject template | repo use_default; org/repo include_claim_keys; supported custom properties | Stage cloud trust migration before changing sub format; org template requires correct repo adoption. | Read template and compare actual non-sensitive sub/claim values. | +| reusable workflow identity | caller repository context versus called job_workflow_ref; accessible trust claims | Require reviewed reusable workflow identity where provider supports it. | Inspect caller/callee SHAs and successful narrow provider action. | +| environment interaction | environment-based subject replaces ref-based shape; branch rules are separate gate | Configure both cloud subject and GitHub deployment branch policy. | Negative-test disallowed ref and unapproved environment job. | + +### Project applicability + +No cloud deploy target currently exists; do not create one to exercise OIDC. + +### History and human interaction + +Record cloud role/trust policy revision and migration review, never JWT contents. + +### Recovery + +Restore previous subject template or compatible provider trust; revoke exposed long-lived credentials separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/security/oidc) +- [Official sources 2](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows) +- [Official sources 3](https://docs.github.com/en/rest/actions/oidc) + +## Environment protection and approvals + +Group ID environment-approvals. + +Capabilities deploy-environments, deploy-approval. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| required reviewers | eligible users/teams; one eligible approval suffices; prevent self-review; plan restrictions | Do not describe reviewer list as unanimous approval. Independent approval requires another eligible human. | Read reviewer IDs, prevent_self_review and actual approval actor. | +| wait timer | documented minute range; non-billable waiting; product/visibility gates | Use only for purposeful rollout delay; it does not inspect health. | Read wait duration and timestamps before job starts. | +| deployment branch policy | all; protected branches; selected branch/tag patterns | Gate deployment ref separately from repository branch protection; test tags explicitly. | Read protected_branches/custom_branch_policies and every branch/tag rule. | +| administrator bypass | allow/deny supported protection bypass setting | Keep bypass decision explicit and auditable; automation must not bypass its own gate. | Read saved option plus bypass actor/comment when used. | +| custom protection rules | installed GitHub App rules; enabled rules bounded by current platform limit | Verify app permission, external approval/health decision and failure handling. | Read rule integration IDs and actual requested/approved/rejected record. | +| environment configuration | name, URL, secrets, variables; create explicitly before referencing | A misspelled environment may be created without intended safeguards; exact name matters. | Read environment ID and settings before allowing workflow run. | +| approval operations | pending deployments approve/reject with comment; workflow gate differs from PR approval | Read artifact/SHA and change context before approval; never impersonate reviewer or weaken policy. | Record deployment IDs, reviewer, decision, comment and run continuation. | + +### Project applicability + +A single maintainer cannot manufacture independent peer approval. No deployable service exists; preserve zero required PR approvals as repository policy. + +### History and human interaction + +PR review, fork workflow execution approval and environment approval are distinct histories; record each real actor/decision. + +### Recovery + +Reject unsafe pending deployment, correct exact environment/ref and rerun; do not remove protection to unblock automation. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments) +- [Official sources 2](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments) +- [Official sources 4](https://docs.github.com/en/rest/deployments/environments) + +## Deployment records, statuses and rollback + +Group ID deployment-records. + +Capabilities deploy-records. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| deployment request | ref, task, payload, environment, description, auto_merge, required_contexts, transient_environment, production_environment | Bind immutable SHA and required checks; deployment API is a record/request, not deployment engine. | Read record ID, sha, environment and exact request parameters. | +| status transitions | queued, pending, in_progress, success, failure, error, inactive; log_url, environment_url, auto_inactive | Report actual engine state and measured health. | Read ordered statuses and independently test application version/health. | +| cleanup/rollback | mark inactive; delete eligible deployment; external rollback to prior immutable artifact | Preserve operational trail; deactivate previews when removed. | Compare served SHA/digest before/after and status history. | + +### Project applicability + +Only create deployment records for an actual deployment; source/plugin release alone is not an application deployment. + +### History and human interaction + +Store approver, release artifact digest and rollback reason in deployment/linked issue history. + +### Recovery + +Deploy prior verified artifact with a new explicit rollback record; a green API status does not restore service. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/deployments/deployments) +- [Official sources 2](https://docs.github.com/en/rest/deployments/statuses) + +## Security products, inheritance and enforcement + +Group ID security-enablement. + +Capabilities security-enablement, security-configurations, security-overview. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| product switches | dependency graph/submission; Dependabot alerts/security updates; Code Security; Secret Protection; private vulnerability reporting | Evaluate eligibility and actual need separately; security policy prose is not scanning enablement. | Read effective repository security_and_analysis and product-specific status. | +| configuration association | org/enterprise configuration ID; selected/all/new-repository defaults; enforcement | Preserve inherited policy; inspect asynchronous association failures and product entitlements. | Read configuration, repository association/application state and effective setting. | +| enforced controls | enabled/disabled/not-set where schema supports; enforcement mode; delegated dismissal/bypass | Validate current schema per field rather than applying one enum blindly. | Read exact serialized config plus repository lock state. | +| coverage/risk | repository filters, missing coverage, exclusions, alert severity/age; eligible plan | Report unknown/unavailable separately from clean or disabled. | Reconcile visible repo counts and excluded/failed scans with ledger. | + +### Project applicability + +Public plugin can use eligible free controls; do not activate a paid organizational product or change license policy without authorization. + +### History and human interaction + +Retain setting changes, application status, responsible security owner and policy exception explanation. + +### Recovery + +Correct failed association or incompatible config; preserve evidence before detaching and never silently relax enforcement. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/code-security/configurations) +- [Official sources 2](https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/create-custom-configuration) +- [Official sources 3](https://docs.github.com/en/code-security/getting-started/github-security-features) + +## CodeQL, SARIF, Autofix and code quality + +Group ID code-scanning. + +Capabilities security-codeql, security-code-alerts, security-ai-autofix, security-code-quality. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| setup mode | default or advanced; language selection; query suite; supported runner | Choose default for supported uncomplicated builds; advanced for custom build/query needs. | Verify actual language database and completed analysis at intended SHA. | +| advanced options | matrix languages, build-mode none/autobuild/manual, paths/paths-ignore, queries/packs/model packs, config-file, category, schedule | Match build mode to language; path excludes can create blind spots. Keep category stable per analysis variant. | Read workflow/config at analyzed SHA and analysis category/language coverage. | +| blocking controls | security/quality severities, rule/tool selection, ruleset thresholds where supported | Pick actionable severity gates and require actual scan completion; empty upload is not clean coverage. | Inspect PR check result and corresponding alerts/instances. | +| SARIF upload | tool/category, commit_sha, ref, analysis_key, compressed payload; processing status | Validate SARIF and bind result to exact commit/ref; poll until processed. | Read sarif processing result and analysis commit/tool/category. | +| alert lifecycle | open/fixed/dismissed; allowed dismissal reason/comment; delegated review | Dismiss with evidence; reopen when premise fails. Deleting analysis is not remediation. | Read state, dismissing actor/time/reason and latest instance. | +| Autofix / AI Scan | available product switch; supported alert request; proposed patch/commit | Review generated diff and test before committing; do not equate generated fix with validated fix. | Rerun affected tests/scanner and inspect resolved finding. | +| variant databases / code quality | CodeQL database downloads/variant target scope; quality setup/findings supported schema | Use only for concrete cross-repository query/quality need; permissions differ from code scanning. | Read variant completion per repo and quality findings at target revision. | + +### Project applicability + +Analyze actual Python/scripts and workflow languages supported by selected tool; do not claim Markdown guidance has executable-language CodeQL coverage. + +### History and human interaction + +Preserve alert number, instance, reviewer rationale and scan SHA; approvals for dismissal remain separate from fix review. + +### Recovery + +Fix build/query/upload cause; rescan same intended revision; reopen unsupported dismissals and revert unsafe Autofix commit. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options) +- [Official sources 2](https://docs.github.com/en/rest/code-scanning/code-scanning) +- [Official sources 3](https://docs.github.com/en/rest/code-quality/code-quality) +- [Official sources 4](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal) + +## Dependency graph, review, submission and SBOM + +Group ID dependency-inventory. + +Capabilities security-dependency-graph, security-sbom, security-global-advisories. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| inventory sources | supported manifests/lockfiles, automatic or explicit dependency submission; detector/job identity | Resolve build dependencies where manifests are insufficient; do not fabricate runtime dependencies. | Match graph snapshot detector and SHA to lockfile/build resolution. | +| dependency-review policy | base/head diff; fail-on-severity, allowed/denied licenses, scope, allowlisted advisories/packages; supported action options | Use narrow documented exceptions with owner/expiry; license policy requires owner decision. | Inspect newly introduced vulnerable/license entries and check failure. | +| SBOM | SPDX export; async report UUID where supported; snapshot date and included scopes | Treat as inventory snapshot bounded by graph completeness. | Parse SPDX and compare package counts/versions to manifests and submission. | +| advisory matching | GHSA/CVE, ecosystem/name, affected/fixed range, withdrawn/reviewed status | Match precise version and ecosystem; absence of advisory is not safety proof. | Read advisory update time, withdrawn state and installed resolved version. | + +### Project applicability + +No new runtime dependency is authorized. Track action dependencies and required tooling; owner has not selected project license. + +### History and human interaction + +Keep dated SBOM/diff, dependency exception reviewer and changed lockfiles with PR evidence. + +### Recovery + +Submit corrected snapshot and regenerate SBOM; fix affected version or record bounded reviewed exception. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/dependency-graph/dependency-review) +- [Official sources 2](https://docs.github.com/en/rest/dependency-graph/dependency-submission) +- [Official sources 3](https://docs.github.com/en/rest/dependency-graph/sboms) +- [Official sources 4](https://docs.github.com/en/rest/security-advisories/global-advisories) +- [Official sources 5](https://github.com/actions/dependency-review-action) + +## Dependabot schedules, update strategy and runtime + +Group ID dependabot. + +Capabilities security-dependabot-alerts, security-dependabot-version, security-dependabot-runtime. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| update discovery | version:2; package-ecosystem; directory/directories; exclude-paths where supported | Configure every existing ecosystem, avoiding overlapping directory entries. | Inspect default-branch config and real job detected manifests. | +| schedule | daily/weekly/monthly/quarterly/semiannually/yearly/cron where current schema supports; day/time/timezone/cronjob | Choose workload-appropriate cadence; timezone explicit when needed. | Read actual scheduled job timestamps. | +| selection/strategy | allow; ignore dependency/version/update-types; versioning-strategy; target-branch; vendor; ecosystem-specific options | Review exclusions carefully: ignored vulnerable versions can block remediation. | Compare generated diff and job skipped-dependency reason. | +| groups | patterns/exclude-patterns, dependency-type, update-types, applies-to version-updates/security-updates; multi-ecosystem-groups | Use separate security/version intent; grouping failures need real job inspection. | Inspect generated PR members and applicable group. | +| cooldown | default-days; semver-major/minor/patch-days; include/exclude; default 3 days | Current 2026 default delays version updates even with no cooldown block; security updates are exempt. | Compare release publication, cooldown and PR creation time. | +| PR management | open-pull-requests-limit, labels, assignees, milestone, commit-message, branch separator, rebase-strategy; supported options per ecosystem | Preserve existing repository taxonomy; keep limits low enough for maintainable review. | Inspect generated PR metadata and rebase behavior. | +| registry/code execution | registries credential type/URL; selected registries; insecure-external-code-execution allow/deny | Allow external execution only for necessary reviewed ecosystem resolution; narrow registry credentials. | Read redacted registry resolution logs and execution settings. | +| runtime / repository access | standard/labeled runner, labels/group; org private-dependency repository allowlist/default access | Use labeled runner only on eligible repo; do not expand private repo access to fix typo. | Read effective runner settings and successful dependency resolution. | +| alerts/security PRs | severity/ecosystem/package/scope/state/EPSS filters; auto-triage rules and delegated dismissal if eligible | Prioritize real risk; dismissal requires reason and does not patch. | Read alert after merged fix and confirm installed version/checks. | + +### Project applicability + +Existing policy explicitly wants GitHub Actions updates. Add other ecosystems only if manifests exist. + +### History and human interaction + +Respond to supported @dependabot commands after reading bot status; human review remains required under repo rules, and bot actor restrictions affect secrets. + +### Recovery + +Read update log before rebase/recreate; remove obsolete ignore, fix registry access narrowly, rerun supported job and verify generated PR. + +### Pitfalls + +- Maintainer announcement July 14, 2026 confirms 3-day default version cooldown; older explanations assuming immediate version PRs are stale. +- Issue #16319 reports grouping failure in a particular non-root npm case; it is a reproduction lead, not proof all grouping is broken. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference) +- [Official sources 2](https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/optimizing-pr-creation-version-updates) +- [Official sources 3](https://docs.github.com/en/rest/dependabot/alerts) +- [Official sources 4](https://docs.github.com/en/rest/dependabot/runner-settings) +- [Official sources 5](https://docs.github.com/en/rest/dependabot/repository-access) + +### Community reports + +- [Community reports 1](https://github.com/dependabot/dependabot-core/discussions/15582) +- [Community reports 2](https://github.com/dependabot/dependabot-core/issues/16319) + +## Secret detection, push protection and exceptions + +Group ID secret-scanning. + +Capabilities security-secret-alerts, security-push-protection, security-custom-patterns. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| detection options | provider patterns, non-provider/generic/AI detection where eligible; validity checks; extended metadata | Enable supported useful detection; validity/metadata may contact provider and have product gates. | Read settings and scan history/coverage, not alert count alone. | +| push protection | repository protection versus personal protection; supported pattern participation | Do not mistake personal block for repository policy; repository scanning remains separate. | Read repository setting and safe documented test result. | +| custom patterns | name, secret regex, before/after context, additional match requirements; dry-run/publish; push protection | Use safe synthetic examples and negative corpus; dry-run before publishing noisy pattern. | Record pattern ID/version and positive/negative results. | +| bypass governance | test/false-positive/fix-later reasons where offered; delegated reviewers, expiry/review path | Never bypass a valid live credential; fix/revoke instead. Independent reviewer decision stays with reviewer. | Read request, actor, comment, expiry and resulting alert. | +| alert state | open/resolved; revoked, false_positive, used_in_tests, wont_fix or current schema reasons; location/history | Revoke with provider first; resolving UI alert does not revoke token or erase history. | Check provider revocation and read alert location/resolution metadata. | +| dismissal governance | direct or delegated dismissal; role eligibility; notification/review state | Confirm reviewer coverage before enforcing; preserve rationale even for test secrets. | Read request/outcome, reviewer and reopened state if rejected. | + +### Project applicability + +Useful for public repo; synthetic tests must not leak live values. Security setting read may itself contain secret values; redact outputs. + +### History and human interaction + +Retain private alert IDs, discovery/rotation timestamps and reviewed exception reasons; do not copy secret strings into public issues. + +### Recovery + +Revoke at provider, replace consumers and scan history; history rewriting is separate consequential work and does not invalidate copied credentials. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning) +- [Official sources 2](https://docs.github.com/en/rest/secret-scanning/secret-scanning) +- [Official sources 3](https://docs.github.com/en/rest/secret-scanning/push-protection) +- [Official sources 4](https://docs.github.com/en/rest/secret-scanning/custom-patterns) +- [Official sources 5](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal) + +## Confidential reports, advisory publication and campaigns + +Group ID security-coordination. + +Capabilities security-advisories, security-campaigns. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| reporting policy | SECURITY.md supported versions/contact; private vulnerability reporting enabled/disabled | Provide confidential route and realistic response ownership. | Inspect rendered policy and actual reporting availability. | +| advisory content | draft/published/withdrawn, severity/CVSS/CWE, vulnerable ranges/patched versions, references, credit, CVE request | Keep report private until fix/disclosure agreement; verify affected ranges. | Read advisory state/collaborators and clean install of patched release. | +| collaboration | report triage, comments, invited collaborators, temporary private fix fork | Grant only necessary confidential access and retain reporter coordination. | Read actual collaborator identities and private fork/review history. | +| campaign setup | selected code alerts, repositories, managers/teams, contact, deadline; draft UI versus published API; optional generated issues | Use for multi-repository remediation requiring tracking; preserve private finding visibility. | Read published campaign scope/counts and corresponding resolved alerts. | +| publication / withdrawal | explicit publish/CVE disclosure; withdrawal constraints; notification effects | Publication is irreversible disclosure; prepare exact reviewed advisory/fix before authorized publish. | Read public GHSA/CVE and release timestamps; verify issue scope. | + +### Project applicability + +Confidential reporting is useful; campaigns require actual alert program and owner eligibility, not a placeholder. + +### History and human interaction + +Preserve reporter credits, embargo agreement, fix review and disclosure decision privately; public release notes must respect agreed timing. + +### Recovery + +Correct advisory affected ranges/notes and notify existing recipients; never claim withdrawal removes already disclosed information. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/security-advisories/repository-advisories) +- [Official sources 2](https://docs.github.com/en/rest/campaigns/campaigns) + +## Drafts, generated notes, assets and immutability + +Group ID release-lifecycle. + +Capabilities releases-lifecycle, releases-assets, releases-immutable. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| release identity | tag_name, target_commitish for new tag, name, draft, prerelease, make_latest | Existing tag determines commit; target_commitish does not move it. Match plugin manifest version to v-tag. | Resolve tag object/commit, release ID and version file. | +| notes | body; generated notes; previous tag/configuration; categories/exclusions; discussion category where eligible | Review generated changelog; include install commands, validation evidence and limits. | Read rendered notes and linked issues/PRs against intended range. | +| asset upload | binary content type, filename/label; draft upload URL; per-asset ID/digest/size | Build deterministic installable archive, inspect hidden files and allowlist before attaching. | Download attached bytes and compare SHA-256/archive manifest. | +| immutability | repo/org policy; new release behavior; immutable flag | Create draft, attach every asset, then publish. Published assets/tag become locked; notes/title/latest/prerelease remain editable. | Read immutable flag, tag SHA, asset digest and release attestation. | +| publication/recovery | draft update versus publish; prerelease/stable; delete constraints; corrective next version | Do not publish from merely prepared source; irreversible distribution needs existing release authorization. | Read published_at, exact asset bytes, install from release and latest pointer. | + +### Project applicability + +Core delivery path: plugin version, v-tag, installation docs and validation evidence must agree. Immutability prevents patching published archive. + +### History and human interaction + +Record release preparer/reviewer/publisher, reviewed tag SHA and prior release comparison. Discussion and release notes carry human feedback/history. + +### Recovery + +For immutable wrong asset/tag, publish a new corrected version; editable notes cannot change locked bytes. Never force-move tag as an assumed recovery. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/releases/releases) +- [Official sources 2](https://docs.github.com/en/rest/releases/assets) +- [Official sources 3](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) +- [Official sources 4](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases) + +## Provenance, SBOM and linked artifact records + +Group ID attestations. + +Capabilities attestations-provenance, attestations-linked-artifacts. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| statement type | build provenance or SBOM attestation; artifact digest/name; supported registry publication | Attest exact distributed bytes; provenance says how/where built, not absence of bugs. | Verify subject digest and trusted repository/workflow identity. | +| workflow grants | id-token:write, attestations:write; contents/read and packages/write only when needed | Isolate attestation in trusted release job; eligibility varies with visibility/plan. | Inspect effective permissions and successful verify output. | +| verification constraints | trusted owner/repo/workflow, predicate type, signer identity, source ref/commit; offline/bundle modes where supported | Do not accept any valid GitHub signature; require intended producer. | Run gh attestation verify against downloaded exact asset and identity policy. | +| linked artifacts | storage metadata and artifact association using current endpoint schema | Distinguish storage record/link from uploaded file and signed attestation. | Read link identity, digest and referenced object existence. | + +### Project applicability + +Consider for installable release artifact when trusted workflow builds it; record unavailable eligibility instead of assuming. + +### History and human interaction + +Keep verifier command/policy/output and producing workflow SHA with release record; release attestation and custom build provenance are distinct. + +### Recovery + +Rebuild/re-attest correct bytes in trusted workflow; revoke trust in compromised producer and publish corrective version. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds) +- [Official sources 2](https://docs.github.com/en/rest/repos/attestations) +- [Official sources 3](https://docs.github.com/en/rest/orgs/artifact-metadata) + +## Registries, package ACL and trusted publishing + +Group ID packages. + +Capabilities packages-metadata, packages-registry, packages-access, packages-trusted-publishing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| registry/form | OCI/GHCR, npm, NuGet, RubyGems granular; Maven/Gradle repository-scoped; host support | Choose only ecosystem actually distributed; REST metadata does not publish package bytes. | Install/pull exact version/digest from clean intended consumer. | +| authentication | GITHUB_TOKEN packages:read/write in workflow; supported classic PAT scopes for registry; registry-specific OIDC/trusted publishing | Prefer short-lived workflow credential; trusted-publishing support is registry-specific, not universal. | Verify exact registry trust configuration and authenticated clean install. | +| link and inheritance | repository link, inherited repository permissions, automatic inheritance org policy; explicit user/team ACL | Linked repo alone may not grant workflow access if ACL inheritance differs. | Read package settings/inheritance and intended principal access. | +| Actions access | selected repository access to granular package; separate Codespaces access | Grant only consumer/producer repos; token scope alone cannot override package ACL. | Test authorized workflow and excluded repo denial. | +| visibility | private/internal/public where supported; public transitions can be restricted/irreversible | Do not infer public package from public source repository. | Read package visibility and anonymous pull when intended. | +| versions/delete/restore | immutable consumer digest, tags, version metadata; package/version deletion; restoration eligibility/window | Do not delete versions still used; inspect downloads and restoration constraints first. | Read version ID and digest; restore and reinstall when authorized. | +| external trusted publisher | owner/repository/workflow/environment binding; OIDC permission and registry policy | For npm or other external registry, distinguish that registry from GitHub Packages. Verify registry official docs. | Perform registry-specific dry-run or publish only with release authorization; read resulting provenance. | + +### Project applicability + +GITHUB.md explicitly says no separate package artifact requirement. Plugin marketplace/source releases currently satisfy distribution; do not publish artificial package. + +### History and human interaction + +Retain package/version IDs, producer SHA, ACL reviewers and deprecation notices; preserve consumer compatibility. + +### Recovery + +Correct package ACL/link narrowly; rotate exposed tokens; publish corrected immutable version/digest instead of relying on mutable tags. + +### Pitfalls + +- Community reports show packages:write token permission alone did not fix missing package inheritance/Actions access; inspect both. +- Classic PAT restrictions and SSO can block registry auth despite scope. Do not respond by granting broader scopes blindly. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages) +- [Official sources 2](https://docs.github.com/en/packages/learn-github-packages/publishing-a-package) +- [Official sources 3](https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package) +- [Official sources 4](https://docs.npmjs.com/trusted-publishers/) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/32184) +- [Community reports 2](https://github.com/orgs/community/discussions/57809) + +## Pages source, DNS, TLS and publication + +Group ID pages. + +Capabilities pages-settings, pages-builds. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| build_type / source | legacy branch path root/docs or workflow; branch; custom workflow upload/deploy | Use source matching actual site generator; branch commits using GITHUB_TOKEN do not trigger branch Pages build. | Read Pages configuration and actual successful build/deployment SHA. | +| workflow grants / target | contents:read, pages:write, id-token:write; github-pages environment and artifact | Scope deployment permissions to job and keep environment protections. | Read uploaded Pages artifact, deployment status and environment. | +| custom domain | CNAME, DNS A/AAAA/CNAME records, domain verification, protected domain ownership | Verify domain before linking and remove stale DNS when disabling. | Read DNS health, ownership record and served hostname. | +| HTTPS | certificate provisioning and https_enforced when available | Wait for valid certificate before enforcing; inspect mixed content. | Verify HTTPS chain/hostname and HTTP redirect. | +| visibility / path | project site base path, public/private enterprise entitlement; repository visibility differs | Do not publish private source content without intended audience decision. | Fetch as intended anonymous/authenticated user and inspect base-path assets. | +| build/history/recovery | branch build/request; workflow Pages deployment status/cancel; external health | A successful build does not prove correct public content. | Fetch expected marker/version, navigation/assets and custom-domain redirect. | + +### Project applicability + +No site requirement exists in GITHUB.md; keep Pages not-applicable until useful published site is requested. + +### History and human interaction + +Record domain owner authorization, workflow approval and deployed SHA; preserve previous successful deployment for rollback. + +### Recovery + +Redeploy prior verified site revision; correct source/base path/DNS, then recheck served bytes and TLS; deleting Pages alone leaves dangerous stale DNS. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) +- [Official sources 2](https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages) +- [Official sources 3](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages) +- [Official sources 4](https://docs.github.com/en/rest/pages/pages) + +## Required check identity and review integration + +Group ID checks-statuses. + +Capabilities checks-runs, checks-suites, checks-commit-statuses. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| check run | name, head_sha, status/conclusion, started/completed timestamps, output/annotations, details_url; app identity | Stable unique names per required check; attach to exact tested SHA. | Read check name, app ID, head_sha and actual command evidence. | +| check suite | automatic creation preferences, rerequest, suite status | Suite success does not replace individual required checks; some writes are App-only. | Read suite and associated run conclusions. | +| commit status | context, state pending/success/failure/error, target_url, description | Keep context distinct from check-run names to avoid ambiguous requirement matching. | Read combined and individual statuses on intended SHA. | +| protection binding | required context/app, strict branch freshness, merge_group coverage; skipped/neutral semantics | Read rulesets and classic protection; require checks that actually test code. | Observe PR required check evaluation after latest push and merge-queue test commit. | + +### Project applicability + +Existing three validation commands remain authoritative. Peer approval count zero is deliberate single-maintainer policy. + +### History and human interaction + +Keep reviewer comments, check rerequest actor, force-push/stale-review history and final merge SHA; green unrelated SHA is insufficient. + +### Recovery + +Fix missing event/name/app permission and rerun actual required check; never spoof status or remove protection to merge. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/checks/runs) +- [Official sources 2](https://docs.github.com/en/rest/checks/suites) +- [Official sources 3](https://docs.github.com/en/rest/commits/statuses) +- [Official sources 4](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) + +## Agentic workflows and constrained output + +Group ID agentic-workflows. + +Capabilities actions-agentic-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| definition / compilation | Markdown instructions plus frontmatter; generated workflow; gh aw compile | Review generated YAML after instruction change and keep compiled artifact synchronized. | Compile and compare source/generated diff; inspect actual workflow SHA. | +| engine / credentials | supported Copilot/Codex/Claude/Gemini engine; engine-specific secret and billing | Choose only an authorized available engine and narrow authentication. | Check engine initialization and approved usage budget without exposing keys. | +| guardrails | read-only runtime, firewall/network, tools, explicit safe-outputs and threat-detection gates | Allow only requested outputs; proposed issue/comment/PR is still external action requiring existing authorization. | Inspect generated downstream write job permissions and resulting object IDs. | +| review / triggers | schedule/dispatch/events; allowed actors; human-reviewed PR outputs | Treat repository text as untrusted prompt input; retain human review before merge/deploy. | Exercise controlled input and inspect output safety/review history. | + +### Project applicability + +Optional automation needs concrete recurring task, engine eligibility and authorized outputs; ordinary deterministic validation is sufficient now. + +### History and human interaction + +Retain prompts/config revisions, generated proposals, human acceptance/rejection and exact downstream writes; do not call model output an independent approval. + +### Recovery + +Disable affected workflow, stop pending writes and revoke compromised credentials; fix prompt/tool policy and inspect all emitted changes before reenable. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows) +- [Official sources 2](https://docs.github.com/en/actions/tutorials/develop-agentic-workflows-in-github-actions) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/agents/about-github-agentic-workflows) + +## Organization member privileges and effective access + +Group ID organization-access-defaults. + +Capabilities admin-organization-profile, admin-organization-policy-settings, admin-organization-members, admin-outside-collaborators. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Base repository permission | none \| read \| write \| admin; REST documented default read | Recommend none for private least-privilege organizations, then explicit teams; preserve existing grants. Internal repositories remain readable to enterprise members. | Read default_repository_permission and test effective access of a representative ordinary member. | +| Member repository creation | members_can_create_public_repositories/private_repositories/internal_repositories: boolean per visibility | Use separate visibility controls; enterprise may prohibit internal/public creation. Do not send closing-down members_allowed_repository_creation_type. | Read each flag and inherited enterprise constraint. | +| Member administrative powers | members_can_delete_repositories; members_can_change_repo_visibility; members_can_invite_outside_collaborators; members_can_create_teams; members_can_delete_issues: booleans | Choose each separately; broad repository admin authority does not authorize destructive actions in this session. | Read flags plus actual repository administrators; record inherited restrictions. | +| Public identity versus billing contact | name/company/blog/location/public email/description versus billing_email | Publish only owner-approved contact data; billing address stays private. | Inspect public profile signed out and billing contact through owner-only settings. | +| Invitation and membership | invitation pending/failed; organization role member/admin; member visibility private/public | Invite exact login/email and chosen role; wait for acceptance and required identity setup. Never infer full membership from public members. | Read invitations and authenticated membership; verify access after acceptance. | +| Outside collaborator conversion/removal | organization member versus outside collaborator; repository role per grant | Inventory team access and owned responsibilities first; explicit offboarding scope includes deploy keys/App access, not just user removal. | Read remaining direct/team/base grants and outstanding invitations after change. | + +### Pitfalls + +- REST response examples are not tenant defaults. Base changes affect existing members too; private forks require separate inspection. +- A lower direct grant cannot subtract higher base/team/custom-role access. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/orgs) +- [Official sources 2](https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/setting-base-permissions-for-an-organization) +- [Official sources 3](https://docs.github.com/en/rest/orgs/members) +- [Official sources 4](https://docs.github.com/en/rest/orgs/outside-collaborators) + +## Nested teams and delegated roles + +Group ID teams-roles. + +Capabilities admin-teams, admin-team-members, admin-team-idp-sync, admin-team-external-groups, admin-organization-role-assignments, admin-organization-custom-roles, admin-organization-custom-role-definitions, admin-enterprise-role-assignments, admin-organization-security-managers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Team privacy | secret \| closed; new non-nested REST default secret, child default closed | Set explicitly: closed for discoverable normal teams; secret cannot have parent/children. | Read privacy and parent for every team, including secret teams through owner identity. | +| Hierarchy and identity | parent_team_id or parent_team_slug; ID takes precedence | Keep existing team IDs; resolve current slug after rename; verify inherited repository grants. | Read parent/children and effective repository access for child member. | +| Mention notifications | notifications_enabled \| notifications_disabled; default enabled | Disable only intentionally; CODEOWNERS/team mentions must reach responsible humans. | Read notification_setting; ask intended maintainers to verify receipt during authorized collaboration. | +| Team member authority | member \| maintainer; pending invitation versus active membership | Maintainer is team administration, not organization owner. Team creator becomes maintainer automatically. IdP-synced membership is changed at IdP. | Read team membership role/state and synchronization mapping. | +| Repository roles | read/triage/write/maintain/admin in UI; pull/push map to read/write in team REST; custom role name/ID | Assign the least role needed; check combined base/direct/team/custom permissions. | Read permission sources and a representative allowed/denied operation. | +| Custom role definition | base repository role plus additional permission identifiers; organization role permissions from fine-grained-permission discovery | Discover currently allowed identifiers, dependencies and plan; do not hard-code an old permission list. Separate definition from user/team assignment. | Read role definitions, assigned users/teams and inherited permissions before deleting or replacing a role. | +| Security manager migration | organization roles assignment; legacy security-managers routes retiring | Use current organization role discovery; preserve historical role-change evidence and existing assignments. | Read replacement role and exact affected users/teams; record unsupported legacy endpoint response. | + +### Pitfalls + +- Secret-team names can appear in mention text. A successful visible-team list does not prove no secret team exists. +- Do not remove a role as a shortcut to reconciling assignments; recover original role and grants first. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/teams/teams) +- [Official sources 2](https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles) +- [Official sources 4](https://docs.github.com/en/rest/orgs/organization-roles) +- [Official sources 5](https://docs.github.com/en/rest/orgs/security-managers) + +## SSO, provisioning, 2FA and account recovery + +Group ID identity-recovery. + +Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-organization-scim, admin-enterprise-scim, admin-enterprise-credentials. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Organization SAML connection | Sign on URL; Issuer; public certificate; enabled versus required | Configure/test first, authenticate owner at least once, preserve offline recovery codes; only then enforce. | Test IdP login and inspect list of members GitHub proposes removing before confirmation. | +| Enterprise SAML inheritance | enterprise enforced versus organization configuration | Enterprise enforcement overrides organization SAML; assess every organization and service credential before rollout. | Verify effective connection and representative member login across affected organizations. | +| Provisioning model | ordinary account invitations; organization SCIM; Enterprise Managed Users SCIM | Identify model before changing users. IdP governs managed-user lifecycle; ordinary local invitation is not an EMU substitute. | Read external identity, active state and group/team mapping with correct host API. | +| Authentication assurance | 2FA required yes/no; allowed 2FA methods per actual host policy; passkeys/security keys/recovery methods | Inventory impacted users and service accounts, notify humans, retain independent recovery methods; enforcement requires access-impact authorization. | Read requirement and member compliance; verify owners retain a tested recovery route. | +| Verified/approved domains | DNS verification record; verified domain; notification-domain restriction where available | Verify DNS ownership before restricting notifications; record DNS lifecycle owner. | Read verification and send destinations; do not confuse verified domain with automatic SSO provisioning. | +| Offboarding and recovery | suspend/deprovision; remove membership; revoke SSO credential; revoke token; delete account are distinct | Record actor/subject IDs, teams, grants and recovery constraints; choose reversible suspension when it meets request. | Check effective denial and preserved records; use documented recovery rather than recreating identity blindly. | + +### Pitfalls + +- Enforcing organization SAML can remove members who have not authenticated with IdP. Downloading recovery codes into logs exposes recovery access. +- SCIM deprovisioning, IdP group deletion and GitHub membership removal are different effects; verify all required layers. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enabling-and-testing-saml-single-sign-on-for-your-organization) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enforcing-saml-single-sign-on-for-your-organization) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-iam/using-saml-for-enterprise-iam/configuring-saml-single-sign-on-for-your-enterprise) +- [Official sources 4](https://docs.github.com/en/rest/scim) + +## PAT and OAuth lifecycle + +Group ID tokens-oauth. + +Capabilities admin-organization-token-governance, admin-enterprise-token-inventory, admin-oauth-app-authorizations, admin-credential-revocation. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| PAT family and resource owner | fine-grained \| classic; one resource owner for fine-grained; all versus selected repositories | Prefer fine-grained when endpoint supports it, or installation App for long-lived automation. Check unsupported workflows before choosing token. | Inspect token family, owner, selected repositories and endpoint-specific permission without showing token. | +| Fine-grained approval | Require administrator approval (documented default) \| Do not require administrator approval | Keep approval unless owner explicitly chooses otherwise; owners own requests auto-approve. Pending tokens only read public resources. | Read pending requests, requested access/expiry and final request state; requester confirms operation after approval. | +| Classic access policy | allow versus restrict classic PAT access, separate from fine-grained approval | An approval rule does not control classic PATs; choose both policies and inherited enterprise restrictions. | Read both token-family policies and existing token inventory. | +| Maximum token lifetime | organization/enterprise configured maximum per token family; token expiration date | Use finite lifetime appropriate to workflow and rotation owner; read actual allowed range from current host rather than inventing universal default. | Check expiry and rotation reminder; verify replacement works before revoking old token. | +| Request decision API | action approve \| deny; optional reason max1024; GitHub App user/installation tokens only | Human reviews requested repositories and permissions; organization App token needs Personal access token requests write. PAT cannot approve itself through this API. | Read request ID/state; preserve reason and actor; requester gets notification. | +| OAuth app governance | authorized user grant; organization OAuth restrictions; approved/requested App access | Separate user authorization from organization approval and SSO authorization. Never assume OAuth install is GitHub App install. | Read app owner/client identity, scopes, organization authorization and last-use evidence. | +| Revocation | revoke organization access; revoke authorization; delete secret; emergency credential revocation | Record consequence and affected automation; revoke exposed credential and rotate consumers. Revocation cannot recover original secret. | Verify old credential fails and new scoped credential succeeds without logging either. | + +### Pitfalls + +- 403/404 may be SSO/resource-selection/approval restrictions, not absent repository. Changing token scope cannot add rights the token owner lacks. +- Do not paste credentials into issue reports, approval reasons, URLs or diagnostic artifacts. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) +- [Official sources 2](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization) +- [Official sources 3](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/managing-requests-for-personal-access-tokens-in-your-organization) +- [Official sources 4](https://docs.github.com/en/rest/orgs/personal-access-tokens) +- [Official sources 5](https://docs.github.com/en/rest/apps/oauth-applications) + +## App registration versus installation + +Group ID app-registration. + +Capabilities admin-github-apps, admin-github-app-installations, admin-enterprise-app-installations, admin-marketplace. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Registration owner/distribution | personal or organization owner; Only on this account \| Any account | Keep internal app private unless broader distribution requested. | Read App ID/slug/owner and installation availability. | +| User authorization flow | up to10 callback URLs; expiring user tokens selected by default; request OAuth during installation; device flow optional | Enable only needed flow; keep expiry. Setup URL cannot coexist with requesting user OAuth during installation. | Test exact redirect and expiration/refresh path without exposing secrets. | +| Post-install configuration | Setup URL; Redirect on update boolean | Use for required onboarding; installation repository selection changes can re-trigger setup. | Verify existing installation update preserves completed human configuration. | +| Permission/event selection | No access \| Read-only \| Read & write as offered; repository/organization/account permissions; events constrained by permissions | Choose endpoint minimum; expanded permissions require installation approval. | Compare requested registration permissions to currently approved installation permissions. | +| Installation repository scope | All repositories \| Only select repositories; installation ID; suspended state | Select only necessary repositories; registration, user consent and installation are separate. | Read installation repository list and mint a scoped token only for authorized operation. | +| Private keys and token lifecycle | App JWT; installation token; user token; private-key rotation | Store keys securely; install token may narrow approved permissions/repos. Rotate by adding replacement, verifying, then removing old key. | Verify App identity and token expiry/permissions; do not print PEM/JWT/token. | + +### Pitfalls + +- Uninstalling an external-property App removes its external custom properties; preserve values first. +- App permission change is not proof all existing installations accepted the expansion. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app) +- [Official sources 2](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party) +- [Official sources 3](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation) + +## Webhook security and delivery recovery + +Group ID webhook-delivery. + +Capabilities admin-organization-webhooks, admin-github-app-webhooks. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Delivery configuration | active true/false; config.url HTTPS; content_type json/form; insecure_ssl 0/1; secret stored separately | Use HTTPS, verification enabled (0) and high-entropy secret; subscribe only needed events. | Read redacted configuration and selected events; validate signature on receiver. | +| Receiver behavior | X-GitHub-Event plus action; X-GitHub-Delivery; 2XX within10seconds | Durably enqueue, acknowledge quickly, process idempotently; unknown action is not assumed safe. | Inspect receipt, signature failure, queue processing and resulting business object. | +| Delivery recovery | ping; deliveries; delivery detail; redeliver attempt | Inspect failures before replay; replay same GUID must not duplicate side effects. | Read redelivery result and downstream state; POST acceptance alone is incomplete. | +| Retry credentials/runtime | organization/App/repository webhook permissions; installed runtime/module support | Use scope-correct credentials; GITHUB_TOKEN cannot redeliver repository webhooks. Validate sample runtime imports before deployment. | Run bounded redelivery test; check response status and error paths. | +| History and secret rotation | original delivery GUID plus attempt IDs/statuses; old/new verifier secret transition | Retain payload metadata only under approved data policy; coordinate producer/receiver rotation. | Verify latest signature and queue state, preserve original failed delivery and retry evidence. | + +### Pitfalls + +- OAuth-created hooks can be inaccessible to another credential type. Secret plaintext is not recoverable from readback. +- Community #126156 reports a stale CommonJS Octokit sample failing ERR_REQUIRE_ESM; current App guide uses .mjs. Verify installed package/runtime, do not cargo-cult old snippet. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks) +- [Official sources 2](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-repository-webhook) +- [Official sources 3](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-github-app-webhook) +- [Official sources 4](https://docs.github.com/en/rest/orgs/webhooks) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/126156) + +## Audit history and incident evidence preservation + +Group ID audit-history. + +Capabilities admin-organization-audit-and-sso, admin-enterprise-audit, admin-organization-api-insights, admin-activity-events, admin-personal-data-export. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Read channel/time window | UI; JSON/CSV export; REST; stream; explicit created/date filters | UI default shows3months; enterprise web events180days and Git events7days. Export early; event channel determines completeness. | Record earliest/latest timestamps, filters, pages and counts for each channel. | +| Git versus API event evidence | Git clone/fetch/push; API requests; web-origin operations; SSO responses | Git REST events exclude some web/API initiated effects; do not equate Git event inventory with all mutations. | Correlate request IDs, actor/subject IDs, repository IDs and object timelines. | +| Streaming configuration | destination; active/paused; API request events opt-in; source IP disclosure; available Copilot agent events preview | Use enterprise stream for future retention; decide sensitive IP/log access and destination permissions with owner. | Verify receiver ingestion, last event time, health notifications and queryable retained sample. | +| Continuity and deduplication | at-least-once delivery;7day pause buffer; destination-specific acceptance window | Keep event IDs and deduplicate; repair misconfiguration within6days. Datadog can reject events older than18hours. | Monitor gaps and resume cursor; do not claim backfill predating stream enablement. | +| Preservation artifact | raw read-only export; capture timestamp/host/API version/filter; checksum; restricted storage; separate analysis | Preserve original evidence and write an additive change ledger; record renamed/deleted actor IDs. Export before destructive account/policy changes. | Verify archive readability and checksums; test incident-responder access without publishing private logs. | +| Account export | requested/in-progress/completed; expiring download link; revoke download link | Treat point-in-time personal metadata export separately from repository backup and audit stream. | Inspect completed archive structure privately and verify requested revocation. | + +### Pitfalls + +- An empty event slice can be retention, filter, permission or channel loss. GitHub Support does not preserve incident logs for you. +- API usage statistics, public Events and repository traffic are not substitutes for retained security audit evidence. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/accessing-the-audit-log-for-your-enterprise) +- [Official sources 2](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise) +- [Official sources 4](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/requesting-an-archive-of-your-personal-accounts-data) + +## Billing budgets, attribution and hard stops + +Group ID billing-budget-options. + +Capabilities admin-billing-budgets, admin-billing-usage, admin-billing-cost-centers, admin-billing-usage-reports, admin-enterprise-licensing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Budget subject | budget_scope organization/repository/multi_user_customer/user; enterprise/cost_center on their supported scope endpoints | Match payer and subject; do not create a duplicate budget before reading existing overlapping controls. | Read budget IDs, scopes, product/SKU and payer; reconcile pages against total_count/has_next_page. | +| Pricing selector | BundlePricing + ai_credits; ProductPricing + product; SkuPricing + SKU | Use live supported billing schema, not retired product assumptions. | Read chosen selector and resulting budget; export actual SKU usage. | +| Amount/enforcement | budget_amount integer; prevent_further_usage boolean; user/universal must true | Set authorized cap; ordinary budget UI hard stop is off by default, alerts alone do not cap spend. | Read enforcement and applicable remaining capacity; never disable cap merely to clear an error. | +| User budget payload | user login required for user scope; budget_entity_name empty allowed; optional future expires_at YYYY-MM-DD | Explicit user field is required even where generated schema omits it. User budgets always stop usage. | Read subject/expiry and test affected user policy without incurring unauthorized charges. | +| Alerting | budget_alerting.will_alert; alert_recipients logins; user-scope alerting unavailable | Route supported alerts to responsible humans; distinguish budget notice from product-access or seat request. | Read alert recipients and supported scope; verify delivery through authorized process. | +| Cost center inclusion | usage counts toward enterprise by default; exclusion optional | Exclude only with approved independent spending authority; keep a cost-center cap. | Reconcile organization/user membership and exported attribution against invoice/usage. | +| Recovery from blocked usage | reset cycle; paid usage policy; user limit; organizational/cost-center/enterprise limit; account entitlement | Identify limiting layer first; request budget increase from budget owner or wait for reset. | Read all applicable controls and report exact failed endpoint/policy; use UI when API is unhealthy. | + +### Pitfalls + +- Community #166810 suggests disabling stop usage; this can permit uncapped charges and is not a safe default. Current official budget order/AI credits supersede old premium-only advice. +- Community #206489 reports organization budgets 400 with user-scoped budgets; unconfirmed globally. Preserve error and use UI, do not report zero budgets or delete seats as a workaround. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/billing/budgets) +- [Official sources 2](https://docs.github.com/en/copilot/concepts/billing-and-usage/organizations-and-enterprises/budgets) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/manage-and-track-spending/manage-company-spending) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/166810) +- [Community reports 2](https://github.com/orgs/community/discussions/206489) +- [Community reports 3](https://github.com/orgs/community/discussions/173899) + +## Copilot seats, nested policy and client governance + +Group ID copilot-governance. + +Capabilities admin-copilot-seats, admin-copilot-usage-metrics, admin-copilot-agent-policy, admin-enterprise-ai-controls, admin-mcp-and-custom-agent-policy. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Access assignment | selected users/teams versus broader membership; organization seat versus enterprise-assigned access | Start with authorized pilot; identify payer and approval owner. A seat is not a feature policy or budget. | Read assigned seats/access and active entitlement for target human. | +| Enterprise enforcement | Enabled; Disabled; Let organizations decide/No policy; selected organizations where offered | Read inherited policy first; organization cannot override enterprise enforcement. | Inspect effective policy for each target organization and user. | +| Unconfigured defaults | separate default availability policies for GA features and GA models; enterprise-assigned user fallback policy | Choose future-feature/model defaults explicitly; do not invent one universal default for every product. | Read both defaults and explicit per-feature/model overrides. | +| Multiple license conflicts | same-enterprise usually least restrictive; cross-enterprise usually most restrictive; feature-specific exceptions | Evaluate paying org and exact conflict matrix: metrics/public-code privacy/non-GitHub semantic indexing differ. | Test target identity effective feature access, not only one organization settings page. | +| Separate feature/client switches | GitHub.com; CLI; Copilot app; cloud agent; review; model availability; preview; feedback; MCP in Copilot | Configure each applicable switch; Copilot MCP policy does not govern GitHub MCP in third-party hosts. | Read policy supported-surface matrix and verify actual client behavior. | +| Cloud-agent organization targeting | enabled everywhere/disabled/organization-delegated/selected organizations; selected IDs or organization properties | Property-based selection is evaluated at configuration time, not continuously on later property edits. | Re-read enabled org list after property changes; reconcile intentionally. | +| Human lifecycle and cost | access request; owner approval; onboarding; usage review; inactivity/offboarding | Give users instructions, responsible support contact and budget limit; usage metrics are not a productivity ranking. | Verify activation and failed access, record approved removal and effective date without deleting review history. | + +### Pitfalls + +- A toggle read is not a seat, model entitlement, client setting or billing verification. +- Do not assume organization policy applies to personal users merely accessing an organization repository; policy descriptions define audience. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/concepts/enterprise/policies) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/enterprise-administrators/policy-conflicts) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies) +- [Official sources 4](https://docs.github.com/en/copilot/concepts/enterprise/agent-management) +- [Official sources 5](https://docs.github.com/en/rest/copilot/copilot-user-management) + +## Content exclusion, review and local agent controls + +Group ID copilot-exclusions. + +Capabilities admin-copilot-content-exclusions, admin-copilot-code-review, admin-copilot-cli-customization, admin-copilot-sdk. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository exclusion syntax | YAML list of path patterns; /scripts/** versus /scripts/*; case-insensitive fnmatch | Use patterns scoped to actual sensitive files; preserve inherited exclusions. | Test excluded file and nonexcluded control file for inline/chat/review behavior. | +| Organization/enterprise patterns | repository URL/name mapping to path list; wildcard repository key for filesystem-wide paths | Match intended clone URL and seat audience; enterprise and org scopes differ. | Inspect merged effective policies and actual resolved repository. | +| Propagation and supported clients | up to30minutes IDE propagation; reload client to refresh; current canonical support matrix | Recheck current canonical docs and installed client: older enterprise docs may still say CLI/agents unsupported. | Reload VS Code or restart supported IDE then test actual target client. | +| Exclusion boundary | guardrail; indirect access, symlinks, remote filesystems, third-party MCP exceptions | Use OS/tool permissions for hard boundaries; content exclusion cannot guarantee every access path. | Inspect tool permissions and avoid sensitive-file access in verification. | +| CLI/SDK execution | instructions/agents/skills/plugins/hooks/MCP/LSP; allowed tools/paths; permission handler; model/provider | Read installed runtime schema; installation of config does not authorize arbitrary hooks or tools. | Bounded session verifies loaded customizations, cancellation, error handling, cleanup and permission prompt. | + +### Pitfalls + +- Content exclusion is not a secret store or filesystem sandbox. Changing model/provider may change data handling and costs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot) +- [Official sources 2](https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/content-exclusion) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/overview) +- [Official sources 4](https://docs.github.com/en/copilot/get-started/sdk-quickstart) + +## Codespaces policies and secrets + +Group ID codespaces-options. + +Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codespaces-organization-access, admin-codespaces-organization-secrets, admin-codespaces-repository-secrets, admin-codespaces-user-secrets, admin-devcontainers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Idle timeout | default30minutes; personal timeout plus org maximum; shortest applicable wins | Set maximum acceptable inactivity for organization-paid codespaces; terminal output can keep one active. | Read policy scope and inspect effective timeout after start/restart. | +| Policy targeting | All repositories \| Selected repositories; organization-paid codespaces only | Do not claim policy restricts personally paid codespaces. Maximum codespaces per user constraint is organization-wide. | Verify payer, targeted IDs and existing codespace next-start behavior. | +| Retention and lifecycle | default30days retention; stop/start/rebuild/delete; machine selection from available list | Save uncommitted work before destructive deletion/rebuild; stopping compute does not remove storage charges. | Read state, machine and storage; verify committed backup before deletion. | +| Additional constraints | allowed machine types; base-image restrictions; forwarded-port visibility; max codespaces per user | Configure individual constraints from real eligible plan UI; preserve intended developer functionality. | Create only an authorized bounded sample; verify restrictions and failure message. | +| Secret scope | organization all/private/selected repositories; repository; user selected repositories; encrypted value | Use narrowest scope and current public key; never log plaintext; explicitly grant needed additional repository access. | List names/scope and test authorized consumer; readback cannot reveal encrypted secret. | + +### Pitfalls + +- Deletion does not erase storage already accrued in the current billing cycle. Shared forwarded ports and terminal traffic can defeat expected idle savings. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/codespaces/troubleshooting/troubleshooting-included-usage) +- [Official sources 3](https://docs.github.com/en/rest/codespaces/organization-secrets) +- [Official sources 4](https://docs.github.com/en/rest/codespaces/codespaces) + +## Custom properties, issue types and shared fields + +Group ID classification-schema. + +Capabilities admin-organization-properties, admin-enterprise-properties, admin-enterprise-organization-properties, admin-organization-issue-types, admin-organization-issue-fields. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository property schema | string/single_select/multi_select/true_false; required/default/allowed_values/values_editable_by as offered | Read existing schema and consumers first; preserve property names and values. | Read schema and values for new and existing customized repositories. | +| External property registration | installation_id; display_name1..15alphanumeric immutable; App-only namespace | Confirm installation permission and lifecycle owner; unregister/uninstall can destroy App-owned values. | Read registration as owner (installation token only sees itself); export values before uninstall. | +| Issue type | name; is_enabled boolean; description; gray/blue/green/yellow/orange/red/pink/purple/null color | Reuse type ID; disable obsolete type before deleting when preservation matters. | Read definitions and representative issue assignments. | +| Shared issue field datatype | text/date/single_select/multi_select/number | Choose native semantics; select types require options; not the same object as Project-only field. | Read field ID/type and issue values; test visibility with intended collaborator. | +| Shared field visibility/options | restricted \| all; organization_members_only deprecated; select option name/description/color/priority | Explicit restricted recommended for private metadata; all exposes to anyone able to see issue. Preserve option IDs during update. | Read effective visibility and existing values; check host visibility-feature support. | + +### Pitfalls + +- API docs currently default visibility to deprecated organization_members_only; explicitly use restricted on supported versions. +- Schema deletion/recreation can break ruleset targeting, reporting and historical issue field values. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/custom-properties) +- [Official sources 2](https://docs.github.com/en/rest/orgs/issue-types) +- [Official sources 3](https://docs.github.com/en/rest/orgs/issue-fields) +- [Official sources 4](https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization) + +## Personal identity, notifications and human action + +Group ID personal-human-workflow. + +Capabilities admin-account-profile, admin-account-emails, admin-account-keys, admin-account-gpg-keys, admin-account-ssh-signing-keys, admin-account-security-and-billing-ui, admin-notifications, admin-repository-watches, admin-account-blocking, admin-organization-blocking. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Email/privacy | primary/verified/public email; keep email private; block pushes exposing private email | Preserve verified recovery address; choose noreply Git identity when privacy requested. | Inspect public commit/profile and private verification state; never publish recovery address. | +| Key purpose | SSH authentication key versus SSH signing key versus GPG key; read-only/write deploy key separate | Keep purpose explicit; public key fingerprint identifies key, not private credential. | Read purpose/fingerprint and verify bounded auth or signature; inspect deploy-key grants on offboarding. | +| Recovery | passkeys/security keys/TOTP/recovery codes; active sessions; password reauthentication | Require human control of second factors and backup recovery; never save recovery material in shared docs. | Owner verifies independent recovery route; revoke only explicitly targeted session/credential. | +| Repository watch | Participating/@mentions; All activity; Ignore; Custom event types | Use releases/security/review signals needed by actual maintainer; automatically participating subscription can add noise. | Read subscription and intended event categories; intended human verifies notifications. | +| Delivery channels | On GitHub; email; Mobile; participating/watching categories; default/per-org verified email; working hours | Keep actionable maintainer notices; personal settings require account owner context. | Check inbox/email settings and representative received notification; a sent mention is not proof of delivery. | +| Moderation | block/unblock; organization block differs from personal block; interaction limits | Preserve abuse evidence privately; specify affected relationships and access before blocking. | Read current block/limit and verify intended scope; avoid unnecessary duplicate contact. | + +### Pitfalls + +- Email replies can create public comments. Notification privacy and contributor consent still matter. +- Removing a user does not revoke a deploy key whose private key they retained. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/subscriptions-and-notifications/get-started/configuring-notifications) +- [Official sources 2](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) +- [Official sources 3](https://docs.github.com/en/authentication/managing-commit-signature-verification) +- [Official sources 4](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa) +- [Official sources 5](https://docs.github.com/en/rest/users/blocking) + +## Host-specific enterprise lifecycle and support + +Group ID enterprise-host-lifecycle. + +Capabilities admin-enterprise-accounts, admin-enterprise-organization-lifecycle, admin-enterprise-data-residency, admin-enterprise-server-admin, admin-github-connect, admin-organization-migrations, admin-user-migrations, admin-enterprise-importer, admin-support-entitlements, admin-support-tickets, admin-source-imports. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Hosting and identity | github.com \| tenant.ghe.com \| GHES version; ordinary identities versus managed users | Choose actual API/SSH host and product/version docs before credentials or network policy. | Read host /meta, enterprise identity and version; do not apply github.com IP/fingerprint snapshot blindly. | +| Organization lifecycle | create; invite existing; transfer; migration importer; pending acceptance | EMU cannot import an ordinary organization via simple enterprise invite; cross-host moves need supported migration. | Read destination ownership, inherited policy, billing and member access after completion. | +| Migration plan | source/export; destination; locks; import status; warnings; user attribution; redirect behavior | Preserve source and export; map humans and permissions; rehearse recovery before destructive cutover. | Inspect final migration log, counts, links and sampled historical issues/PR authors/files. | +| GHES administration | backup/restore; maintenance; upgrade; replica/HA; license; support bundle; GitHub Connect | Use instance version runbook and verified backups; repo admin is not appliance administrator. | Verify backup restore readiness, instance health/version and product connectivity after approved change. | +| Support interaction | entitlement; intended enterprise account; new/existing ticket; attachment; reply; status | Prepare redacted reproduction and preserve case history; submission/reply contacts another party and needs explicit instruction. | Read actual ticket ID/submitted content/status; form preparation alone is not submission. | + +### Pitfalls + +- Migration/API success does not prove review history, actor attribution or every product artifact migrated. +- Support attachments can have unauthenticated URLs; redact before upload. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/feature-overview-for-github-enterprise-cloud-with-data-residency) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise) +- [Official sources 3](https://docs.github.com/en/migrations/using-github-enterprise-importer) +- [Official sources 4](https://docs.github.com/en/enterprise-server@latest/admin) +- [Official sources 5](https://docs.github.com/en/enterprise-cloud@latest/support/contacting-github-support/creating-a-support-ticket) + +## Organization rules and hosted networking + +Group ID rules-network. + +Capabilities admin-organization-rulesets, admin-organization-rule-suites, admin-enterprise-rulesets, admin-organization-network-configurations, admin-enterprise-network-configurations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Ruleset nested scope | target branch/tag/push where supported; enforcement disabled/active/evaluate; repository/ref include/exclude conditions; bypass actors/modes | Preserve target conditions and bypass IDs; evaluate mode measures without enforcement. Detail rule parameters in delivery-security reference. | Read each ruleset, inherited sources and rule suites for sample pushes; list alone proves little. | +| Network configuration | name1..100 letters/numbers/._-; compute_service none/actions; exactly one network_settings_ids entry | Use provisioned network resource and proper compute attachment; a configuration alone attaches no runner. | Read network setting and attached runner group plus actual connectivity. | +| Failover network | failover_network_settings_ids exactly one when configured; failover_network_enabled boolean | Choose failover only with independently tested connectivity and owner-approved network policy. | Read failover configuration; bounded connectivity/failover test and rollback route. | + +### Pitfalls + +- Push, branch and tag rules have different plan gates. Network API response examples showing multiple IDs conflict with current exactly-one request rule; current parameter constraint wins. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/rules) +- [Official sources 2](https://docs.github.com/en/rest/orgs/rule-suites) +- [Official sources 3](https://docs.github.com/en/rest/orgs/network-configurations) +- [Official sources 4](https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/network-configurations) + +## Agent automation, task execution and human handoff + +Group ID agent-automation-options. + +Capabilities admin-agent-automations, admin-agent-tasks, admin-agent-secrets, admin-agent-variables, admin-copilot-cloud-agent-sessions, admin-copilot-team-customizations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Automation ownership | type personal/shared; enabled; require_actor_write_permission; continuous_history | Personal belongs to creator; shared is repository-readable and writer-manageable. Read repository allow-automations policy. | Read repository scope, creator and permitted actors; user-global list omits others shared automations. | +| Schedule and event triggers | cadence hourly/daily/weekly; hour_utc0..23; day_of_week0..6; minute_utc0/15/30/45 (omit with hourly); query/labels/workflow filters | Default daily/weekly midnight UTC, weekly Monday; choose explicitly with timezone conversion. | Read trigger fields and next/actual run time; preserve prior run history. | +| Trigger authority | write_scope trigger/repository; allow_copilot_triggers false default | Scheduled write_scope has no effect: scheduled runs can change entire repo. Keep Copilot-trigger loops disabled unless explicitly reviewed. | Read effective scope/policy; test trigger actor and targeted object. | +| Task request | prompt; model from current plan list; custom_agent filename stem; create_pull_request false default; base_ref/head_ref | Prompt must describe authorized work. Existing head_ref can receive commits; inspect branch/PR before start. | Read task/session/artifact and resulting diff; starting task is not completion. | +| Task states/history | queued/in_progress/completed/failed/idle/waiting_for_user/timed_out/cancelled; is_archived false default | Include archived records in history inventory; waiting_for_user needs actual human answer. | Read final state/output/errors and linked PR; retain original failed attempt before retry. | +| Secrets/variables/team customization | secret encryption key/value and repository visibility; plain variables; prompt/tool configuration | Never put secret in variable or prompt; preserve custom agents/tools and follow actual endpoint scope. | Read names/selection and bounded consumer output; no plaintext secret readback. | + +### Pitfalls + +- Public-preview surfaces change. App installation tokens support shared automations but not ordinary agent-task start/list; choose endpoint-specific authentication. +- No retry may silently create another billable task or duplicate PR; reread task/artifacts first. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/agent-automations/agent-automations) +- [Official sources 2](https://docs.github.com/en/rest/agent-tasks/agent-tasks) +- [Official sources 3](https://docs.github.com/en/rest/agents/secrets) +- [Official sources 4](https://docs.github.com/en/rest/agents/variables) +- [Official sources 5](https://docs.github.com/en/rest/copilot/copilot-cloud-agent-management) +- [Official sources 6](https://docs.github.com/en/rest/copilot/copilot-team-customizations) + +## Copilot Spaces and private registry access + +Group ID spaces-registry. + +Capabilities admin-copilot-spaces, admin-copilot-space-collaborators, admin-copilot-space-resources, admin-private-registries. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Space default access | base_role no_access(default)/reader/writer/admin; name/description/general_instructions | Keep no_access until audience approved; discover direct collaborators separately. | Read default/direct roles and test intended audience. | +| Space resource types | repository/github_file/free_text/github_issue/github_pull_request/media_content/uploaded_text_file; type-specific metadata | Preserve resource IDs and private context; fine-grained/user tokens need every referenced repository. | Read resource details; list can omit whole Spaces with inaccessible resources, so incomplete list remains unknown. | +| Registry access | visibility all/private/selected; selected_repository_ids only with selected; replaces_base false default | Select repositories and decide whether public-registry fallback is acceptable. | Read visibility, selected IDs and successful bounded dependency resolution. | +| Registry authentication | token(default)/username_password/oidc_azure/oidc_aws/oidc_jfrog/oidc_cloudsmith/oidc_gcp/anonymous | Token/password require encrypted_value/key_id; OIDC omit them; anonymous also omits username. Use provider-specific fields from current schema. | Read redacted auth config and external trust mapping; verify authorized resolution, not secret plaintext. | +| Provider-specific identity | Azure tenant_id/client_id; AWS region/account/role/domain/domain_owner; JFrog provider/audience; Cloudsmith namespace/service_slug/audience; GCP workload_identity_provider/service_account | Grant narrow external trust; GCP service_account optional for direct WIF. Cloudsmith api_host defaults api.cloudsmith.io. | Verify actual issuer/audience/subject and repository binding with external administrator. | + +### Pitfalls + +- Space sharing and source repository access are distinct; do not widen source access to make inventory look complete. +- Credential rotation and trust-provider setup require both GitHub and registry-side verification. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/copilot-spaces/copilot-spaces) +- [Official sources 2](https://docs.github.com/en/rest/copilot-spaces/collaborators) +- [Official sources 3](https://docs.github.com/en/rest/copilot-spaces/resources) +- [Official sources 4](https://docs.github.com/en/rest/private-registries/organization-configurations) + +## Organization defaults, repository history and storage + +Group ID repository-community-lifecycle. + +Capabilities admin-community-defaults, admin-organization-profile-content, admin-repository-lifecycle-admin, admin-repository-insights, admin-git-lfs, admin-archive-program, admin-github-models-retired. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Community defaults/profile | public .github defaults; repository-specific overrides; .github/profile/README.md and member profile where supported | Reuse organization defaults without overwriting repository custom documents; distinguish public/member audience. | Inspect rendered repository community profile and org profile with correct identity. | +| Repository lifecycle | visibility public/private/internal; archived; owner/name/default branch; delete versus archive | Check fork network, billing, actions/pages and collaborator consequences. Preserve history and transferable objects before move/delete. | Read metadata and history/redirect/access after change; archive is read-only, not backup. | +| LFS configuration | .gitattributes tracked patterns; LFS object store; pointers; quota/billing; migration rewritten history | Track only required files; git clone/mirror without LFS object fetch is insufficient backup. History rewrite requires coordinated human cutover. | Fetch/check LFS objects; verify fresh checkout and collaborators migration instructions. | +| Insights/preservation | traffic/clones/views; contributors/stats async response; Preserve this repository on/off | Capture ephemeral metric window before expiry. Archive Program opt-out only affects future preservation. | Read completed statistics and preservation setting; never equate UI archival, source export and long-term program. | +| Retired Models workflow | historical GitHub Models integration/configuration; retired endpoints | Preserve source/cost history, discover supported replacement only when requested; no new deployment against retired service. | Check endpoint retirement notice and installed integration; mark unavailable with dated evidence. | + +### Pitfalls + +- No repository deletion or history rewrite is implied by full setup. A metadata snapshot cannot restore repository/LFS/product history. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file) +- [Official sources 2](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile) +- [Official sources 3](https://docs.github.com/en/rest/repos/repos) +- [Official sources 4](https://docs.github.com/en/rest/metrics) +- [Official sources 5](https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage) +- [Official sources 6](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/opting-into-or-out-of-the-github-archive-program-for-your-public-repository) +- [Official sources 7](https://docs.github.com/en/github-models) + +## Human-facing sharing, Classroom and Spark + +Group ID human-social-education. + +Capabilities admin-account-following, admin-account-social-links, admin-gists, admin-gist-comments, admin-repository-stars, admin-activity-feeds, admin-classroom, admin-github-spark. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Social profile and subscriptions | follow/unfollow; social account URLs; star/unstar; public/private authenticated feeds | Only change owner-requested preferences; feed URLs can embed sensitive tokens. | Read actual relationship/profile/feed scope without logging private feed URLs. | +| Gist publication/history | public true/false on creation; description/files; file rename/delete; revisions/forks/comments | Secret gist is unlisted, not access-controlled private storage; never put secrets there. Preserve revision before edits. | Read visibility/files/history and comment IDs; inspect audience before publishing. | +| Classroom assignment | classroom/assignment ID; individual/group; accepted assignment repositories; students/teams; grades | Use teacher authority and preserve student privacy; acceptance and grading are separate human actions. | Read actual assignment, accepted repositories and grades with correct classroom scope. | +| Spark publishing/data | private/organization/all-GitHub-users where eligible; shared app data read-only/write; preview versus published version | Publication and data-write audience need explicit scope; managed users cannot publish to all GitHub users. | Read publication URL/version/audience and verify authorized viewer/data operation. | + +### Pitfalls + +- Commenting, following and invitations affect other humans. Read-only discovery is not permission to contact or publish. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/users/followers) +- [Official sources 2](https://docs.github.com/en/rest/users/social-accounts) +- [Official sources 3](https://docs.github.com/en/rest/gists/gists) +- [Official sources 4](https://docs.github.com/en/rest/gists/comments) +- [Official sources 5](https://docs.github.com/en/rest/activity/starring) +- [Official sources 6](https://docs.github.com/en/rest/activity/feeds) +- [Official sources 7](https://docs.github.com/en/rest/classroom/classroom) +- [Official sources 8](https://docs.github.com/en/copilot/tutorials/spark/your-first-spark) + +## Platform diagnostics and templates + +Group ID platform-diagnostics. + +Capabilities admin-platform-meta, admin-platform-rate-limits, admin-platform-license-catalog, admin-platform-gitignore-templates, admin-platform-emojis, admin-platform-markdown-rendering. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Host metadata | GET /meta; API versions; SSH fingerprints; IP/domain lists | Use real host metadata and documented exceptions; avoid rewriting firewall from partial snapshot. | Verify host identity and freshness before applying any external network change. | +| Quota and retry | core/search/GraphQL resource budgets; x-ratelimit-*; retry-after; GraphQL cost/reset | Obey primary and secondary throttles; positive core remaining does not rule out secondary limit. | Record failed request/status/headers; retry under documented delay and verify object state first. | +| Catalog templates | SPDX license ID; detected license file; gitignore template name; emoji shortcode | Owner chooses license; preserve custom ignore rules; catalog discovery does not authorize relicensing. | Read actual committed license; git check-ignore plus tracked-file inspection; verify chosen shortcode. | +| Markdown rendering | mode markdown/gfm; repository context; raw rendering endpoint | Context changes issue/user link resolution; rendering POST does not publish comment or file. | Inspect returned HTML and context-sensitive links in intended renderer. | + +### Pitfalls + +- A successful render or catalog lookup proves only that lookup. It is not evidence of repository configuration or publication. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/meta) +- [Official sources 2](https://docs.github.com/en/rest/rate-limit) +- [Official sources 3](https://docs.github.com/en/rest/licenses) +- [Official sources 4](https://docs.github.com/en/rest/gitignore) +- [Official sources 5](https://docs.github.com/en/rest/emojis) +- [Official sources 6](https://docs.github.com/en/rest/markdown) + diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md new file mode 100644 index 0000000..014fa55 --- /dev/null +++ b/docs/DECISIONS.md @@ -0,0 +1,31 @@ +# Decision history + +## 2026-11-15 — Native Codex execution + +Full GitHub uses a native skill and existing gh/Git interfaces. GitHub remains the owner of repository, planning, review and publication records. The plugin's discovery and execution helpers expose operation details while preserving host authentication and permissions. + +## 2026-11-15 — Complete source and configuration depth + +The initial compact endpoint index contained body field hints and could not answer nested configuration questions. Version 0.3 preserves the complete official OpenAPI snapshot and maps every capability to option decisions. Generated schemas are supplemented by explicit errata and current official documentation. + +Community discussions inform historical incidents and recovery checks. A workaround is applied only after its relevance to the current host/version is verified. Older forum statements about Projects APIs, concurrency and other changing behavior retain their historical context. + +## 2026-11-15 — History and verification + +The execution journal appends started/result/verification events in local private state. It excludes payloads, header values and response bodies. A CLI success is recorded separately from read-back evidence and human approval. Interrupted or ambiguous outcomes remain visible and are reconciled before retries. + +GitHub's native actor/timeline/audit records remain authoritative for account actions. The local journal is not a tamper-evident audit service. Retention and export decisions follow the organization's actual requirements. + +## 2026-11-15 — People and publication + +Questions, proposals, defects and code review use their native GitHub conversations. Preserve earlier comments and link accepted proposals into actionable work. Existing single-maintainer policy remains explicit; independent human approvals are requested through actual review controls where required. + +Tagged publication uses read-only build permissions and a separate scoped publication job. The release is published after asset-byte verification and provenance generation. Partial drafts resume without overwriting existing assets; incompatible published state fails visibly. + +## Open owner decision + +Original plugin content awaits a project license choice. Third-party OpenAPI licensing is preserved in NOTICE.md. Account/organization permissions and subscription entitlements are evaluated on the target host without silently broadening access or committing spending. + +## 2026-11-15 — Preserve published release identity + +Repository release immutability is enabled for future publications. The native GitHub policy freezes published release tags and asset identities and produces release-level verification evidence. Corrections use a new version instead of replacing published bytes. Draft publication remains resumable; existing historical releases retain their recorded original state. This choice implements the project requirement to preserve history. diff --git a/docs/VERIFICATION.md b/docs/VERIFICATION.md index 06e9595..8910a27 100644 --- a/docs/VERIFICATION.md +++ b/docs/VERIFICATION.md @@ -1,5 +1,27 @@ # Verification record +## Version 0.3.0 + +The configuration layer now maps every catalog capability to concrete choices and proof requirements. The full original OpenAPI document is preserved and validated against its recorded source digest. Nested references, defaults, enums, required fields, cardinality and response schemas are inspectable. Known current-documentation corrections are attached to operation descriptions. + +Three domain research agents inspected official documentation and community incidents. The consolidated decision groups retain source distinctions and historical interpretation. CI rejects capabilities without mapped concrete option rules. + +### Runtime and regression evidence + +- 49 tests cover prior behavior plus full-schema integrity, nested reference traversal, per-capability option coverage, raw evidence retention, capped/absent-Link pagination, incomplete search, local concurrent history writers, privacy boundaries, committed hidden manifests, partial-draft retry and prerelease classification. +- A live page-based read requested 101 items from kubernetes/kubernetes and received pages of 100, 100, 16 and 0 items. The collector retained all 216 labels and exhausted continuation instead of treating the first capped response as complete. +- Actual issue mutation preserved its identity and existing labels, read back the resulting type/labels and appended a separate verification reference to local history. +- A public welcome Discussion was created and its pinned state verified in the GitHub UI. Question/proposal forms route real human participation into the correct native conversations. +- Independent runtime review found four defects in collection/publication edge cases. Regression tests now cover page-size caps, incomplete_results, raw-page preservation and RC prerelease state. +- Native repository release immutability was enabled and read back for future publications. +- The release environment was created and its v* tag policy read back. Tagged publication checks main ancestry and transferred checksums and uses a separate scoped GitHub Actions job, validated hidden manifests, SHA-256 checksums, provenance generation and byte-verified resumable drafts. Final release verification includes downloading the published artifact and gh attestation verify. + +### Evidence boundaries + +The local journal records executor attempts and caller-supplied read-back claims. It excludes bodies/header values and does not replace authenticated GitHub actors, audit records or required human approvals. No independent human approval is fabricated in the single-maintainer project. + +The full schema and option decisions describe supported configurations and current source evidence. Actual entitlement, effective access and tenant-specific mutations still depend on the target host and credentials. Preserved historical failures below remain visible. + ## Version 0.2.1 Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-github and organization Project 5. diff --git a/scripts/execution_history.py b/scripts/execution_history.py new file mode 100644 index 0000000..836859c --- /dev/null +++ b/scripts/execution_history.py @@ -0,0 +1,66 @@ +"""Append-only local execution records without request bodies, headers or responses.""" +from datetime import datetime, timezone +import json +import os +from pathlib import Path +import sqlite3 +from urllib.parse import urlsplit +import uuid + +STATE = Path(os.environ.get("CODEX_HOME", Path.home() / ".codex")) / "full-github" +DATABASE = STATE / "history.sqlite3" +TARGET_KEYS = {"owner", "repo", "org", "enterprise", "issue_number", "pull_number", "project_number", "release_id", "asset_id", "run_id", "job_id"} + + +def validate_reference(reference): + if not reference: + return + url = urlsplit(reference) + if url.scheme != "https" or not url.hostname or url.username or url.password or url.query: + raise ValueError("History context/evidence must be an HTTPS link without credentials or query parameters") + + +def append_event(run_id, kind, details): + DATABASE.parent.mkdir(parents=True, exist_ok=True, mode=0o700) + with sqlite3.connect(DATABASE, timeout=30) as database: + database.execute("CREATE TABLE IF NOT EXISTS events (sequence INTEGER PRIMARY KEY, run_id TEXT NOT NULL, time TEXT NOT NULL, kind TEXT NOT NULL, details TEXT NOT NULL)") + database.execute("INSERT INTO events(run_id,time,kind,details) VALUES(?,?,?,?)", + (run_id, datetime.now(timezone.utc).isoformat(), kind, json.dumps(details, sort_keys=True))) + os.chmod(DATABASE, 0o600) + + +def start(operation_id, operation, parameters, context=""): + validate_reference(context) + run_id = str(uuid.uuid4()) + targets = {key: value for key, value in parameters.items() if key in TARGET_KEYS} + host = urlsplit(operation.get("server", "")).hostname or os.environ.get("GH_HOST", "github.com") + append_event(run_id, "started", {"operation": operation_id, "method": operation["method"], "host": host, "target": targets, "context": context}) + return run_id + + +def finish(run_id, returncode): + kind = "command_succeeded" if returncode == 0 else "outcome_unknown" + append_event(run_id, kind, {"exit_code": returncode}) + + +def read_events(limit=100): + if limit < 0: + raise ValueError("History limit must be nonnegative; 0 returns all events") + if not DATABASE.exists(): + return [] + with sqlite3.connect(DATABASE.resolve().as_uri() + "?mode=ro", uri=True, timeout=30) as database: + rows = database.execute("SELECT sequence,run_id,time,kind,details FROM events ORDER BY sequence DESC LIMIT ?", (limit or -1,)).fetchall() + return [{"sequence": row[0], "run_id": row[1], "time": row[2], "kind": row[3], "details": json.loads(row[4])} for row in rows] + + +def verify(run_id, outcome, evidence): + validate_reference(evidence) + if not evidence: + raise ValueError("Verification requires an evidence link") + if not DATABASE.exists(): + raise ValueError("Execution run not found") + with sqlite3.connect(DATABASE.resolve().as_uri() + "?mode=ro", uri=True, timeout=30) as database: + exists = database.execute("SELECT 1 FROM events WHERE run_id=? AND kind='started'", (run_id,)).fetchone() + if not exists: + raise ValueError("Execution run not found") + append_event(run_id, "verification_recorded", {"outcome": outcome, "evidence": evidence}) diff --git a/scripts/operations.py b/scripts/operations.py index a9c1fa1..4356bb5 100644 --- a/scripts/operations.py +++ b/scripts/operations.py @@ -1,11 +1,14 @@ """Discover GitHub operations and execute documented REST operations through gh.""" import argparse import json +import gzip from pathlib import Path import re import subprocess import sys +import sqlite3 from urllib.parse import quote, urlencode +import execution_history DATA = Path(__file__).resolve().parents[1] / "skills/full-github/data" @@ -15,6 +18,122 @@ def load_catalog(graphql=False): return json.loads((DATA / filename).read_text()) +def json_pointer(document, pointer): + if pointer in ("", "#"): + return document + pointer = pointer.removeprefix("#") + if not pointer.startswith("/"): + raise ValueError("Use a JSON pointer beginning with / or #/") + current = document + for token in pointer[1:].split("/"): + token = token.replace("~1", "/").replace("~0", "~") + current = current[int(token)] if isinstance(current, list) else current[token] + return current + + +def inspect_schema(operation, section="operation", pointer=""): + with gzip.open(DATA / "rest-schema.json.gz", "rt") as source: + spec = json.load(source) + value = spec["paths"][operation["path"]][operation["method"].lower()] + if section == "document": + value = spec + elif section != "operation": + value = value[section] + def dereference(current): + seen = set() + while isinstance(current, dict) and "$ref" in current: + reference = current["$ref"] + if reference in seen: + raise ValueError("Cyclic schema reference") + seen.add(reference) + current = json_pointer(spec, reference) + return current + pointer = pointer.removeprefix("#") + if pointer and not pointer.startswith("/"): + raise ValueError("Use a JSON pointer beginning with / or #/") + for token in pointer[1:].split("/") if pointer else []: + token = token.replace("~1", "/").replace("~0", "~") + value = dereference(value) + value = value[int(token)] if isinstance(value, list) else value[token] + return dereference(value) + + +def collection_items(page, pointer=""): + if pointer: + items = json_pointer(page, pointer) + elif isinstance(page, list): + items = page + elif isinstance(page, dict): + arrays = [value for value in page.values() if isinstance(value, list)] + if len(arrays) != 1: + raise ValueError("Select the collection using --items-pointer") + items = arrays[0] + else: + raise ValueError("Response does not contain a collection") + if not isinstance(items, list): + raise ValueError("Collection pointer must identify an array") + return items + + +def collect_pages(operation, parameters, pointer="", headers=(), run=subprocess.run): + if operation["method"] != "GET" or "application/json" not in operation.get("response_media_types", []): + raise ValueError("collect requires a JSON GET operation") + definitions = {p["name"]: p for p in operation["parameters"]} + if not {"page", "per_page"} <= definitions.keys(): + raise ValueError("This operation uses a different pagination protocol; inspect its schema and use native pagination") + if parameters.get("page", 1) != 1: + raise ValueError("A complete collection starts at page 1; use call for an individual page") + page_size = parameters.get("per_page", definitions["per_page"]["schema"].get("default", 30)) + if not isinstance(page_size, int) or isinstance(page_size, bool) or page_size < 1: + raise ValueError("per_page must be a positive integer") + report = {"complete": False, "pages": [], "item_count": 0, "per_page": page_size} + seen_pages = set() + page_number = 1 + expected_total = None + while True: + params = dict(parameters, page=page_number, per_page=page_size) + command = build_request(operation, params, extra_headers=headers) + command = [part for part in command if part not in ("--paginate", "--slurp")] + try: + response = run(command, capture_output=True, text=True, timeout=60) + if response.returncode: + report["error"] = response.stderr.strip() or f"GitHub CLI exited {response.returncode}" + return report + page = json.loads(response.stdout) + report["pages"].append(page) + items = collection_items(page, pointer) + except (ValueError, KeyError, IndexError, OSError, subprocess.TimeoutExpired) as error: + report["error"] = str(error) + return report + fingerprint = json.dumps(items, sort_keys=True) + if items and fingerprint in seen_pages: + report["error"] = "Pagination made no progress; the server repeated a page" + return report + seen_pages.add(fingerprint) + report["item_count"] += len(items) + if isinstance(page, dict) and page.get("incomplete_results") is True: + report["error"] = "GitHub reported incomplete search results; narrow the query and reconcile each scope" + return report + if isinstance(page, dict) and isinstance(page.get("total_count"), int): + if expected_total is not None and expected_total != page["total_count"]: + report["error"] = "Collection total changed during pagination; reconcile against a stable scope" + return report + expected_total = page["total_count"] + report["expected_total"] = expected_total + has_next = page.get("has_next_page") if isinstance(page, dict) else None + finished = has_next is False or (has_next is None and (not items or expected_total == report["item_count"])) + if finished: + if expected_total is not None and report["item_count"] != expected_total: + report["error"] = "Collected item count does not match total_count" + else: + report["complete"] = True + return report + if not items: + report["error"] = "Server claims a next page but returned no items" + return report + page_number += 1 + + def build_request(operation, parameters, body=None, extra_headers=()): """Build argv without shell evaluation, keeping path and query inputs distinct.""" if not isinstance(parameters, dict): @@ -102,15 +221,64 @@ def main(): features.add_argument("term", nargs="?", default="") feature = commands.add_parser("capability", help="Show a feature's operations, limitations and verification") feature.add_argument("name") + option_groups = commands.add_parser("options", help="Find nested configuration choices and decision rules") + option_groups.add_argument("term", nargs="?", default="") + option_group = commands.add_parser("option", help="Inspect one configuration group or a named option") + option_group.add_argument("group") + option_group.add_argument("--name", help="Filter options by name") schema = commands.add_parser("type", help="Inspect a GraphQL input, enum or result type") schema.add_argument("name") + rest_schema = commands.add_parser("schema", help="Inspect the full official REST schema, including nested options and constraints") + rest_schema.add_argument("operation") + rest_schema.add_argument("--section", choices=["operation", "parameters", "requestBody", "responses", "document"], default="operation") + rest_schema.add_argument("--pointer", default="", help="JSON pointer within the selected section; references are resolved") call = commands.add_parser("call", help="Execute one REST operation using current gh authentication") call.add_argument("operation") call.add_argument("--params", default="{}", help="JSON path, query and header parameters") call.add_argument("--body-file", type=Path, help="Request body file, sent unchanged, including binary bodies") call.add_argument("--dry-run", action="store_true", help="Print argv and body presence without executing") call.add_argument("--header", action="append", default=[], help="Additional request header, such as Accept or If-Match") + call.add_argument("--context", default="", help="GitHub issue/PR/discussion URL explaining the operation") + call.add_argument("--no-history", action="store_true", help="Execute without local history, for explicitly ephemeral inspection") + collect = commands.add_parser("collect", help="Collect page-based JSON data even when Link headers are missing") + collect.add_argument("operation") + collect.add_argument("--params", default="{}") + collect.add_argument("--items-pointer", default="", help="JSON pointer to the array when the response contains multiple arrays") + collect.add_argument("--header", action="append", default=[]) + collect.add_argument("--context", default="") + collect.add_argument("--no-history", action="store_true") + history = commands.add_parser("history", help="Read the local append-only execution history") + history.add_argument("--limit", type=int, default=100, help="Recent event count; 0 returns all events") + verify = commands.add_parser("verify-event", help="Append a read-back verification reference to a recorded execution") + verify.add_argument("run_id") + verify.add_argument("--outcome", choices=["matched", "mismatch", "unknown"], required=True) + verify.add_argument("--evidence", required=True) args = parser.parse_args() + if args.command in ("history", "verify-event"): + try: + if args.command == "history": + print(json.dumps(execution_history.read_events(args.limit), indent=2)) + else: + execution_history.verify(args.run_id, args.outcome, args.evidence) + return 0 + except (ValueError, OSError, sqlite3.Error) as error: + parser.error(str(error)) + if args.command in ("options", "option"): + groups = json.loads((DATA / "configuration-options.json").read_text())["groups"] + if args.command == "options": + for group in groups: + if args.term.lower() in json.dumps(group).lower(): + print(f"{group['id']}\t{group.get('title', '')}\t{len(group['options'])} decisions") + return 0 + for group in groups: + if group["id"] == args.group: + if args.name: + group = dict(group, options=[option for option in group["options"] if args.name.lower() in option["name"].lower()]) + if not group["options"]: + parser.error("No matching option name") + print(json.dumps(group, indent=2)) + return 0 + parser.error("Unknown option group") if args.command in ("capabilities", "capability"): entries = json.loads((DATA / "capabilities.json").read_text())["capabilities"] if args.command == "capabilities": @@ -143,23 +311,60 @@ def main(): if args.operation not in operations: parser.error("Unknown operation. Use search to discover operation IDs.") operation = operations[args.operation] + if args.command == "schema": + try: + print(json.dumps(inspect_schema(operation, args.section, args.pointer), indent=2)) + return 0 + except (KeyError, ValueError, IndexError) as error: + parser.error(f"Schema location unavailable: {error}") if args.command == "describe": + notes = json.loads((DATA / "api-errata.json").read_text()).get(args.operation) + if notes: + operation = dict(operation, operational_notes=notes) print(json.dumps(operation, indent=2)) return 0 try: if operation.get("unavailable"): raise ValueError("Unavailable operation: " + operation["unavailable"]["reason"]) parameters = json.loads(args.params) + if not isinstance(parameters, dict): + raise ValueError("Parameters must be a JSON object") + if args.command == "collect": + def perform(): + report = collect_pages(operation, parameters, args.items_pointer, args.header) + print(json.dumps(report, indent=2)) + return 0 if report["complete"] else 1 + return execute_recorded(args, operation, parameters, perform) body = args.body_file.read_bytes() if args.body_file else None command = build_request(operation, parameters, body, args.header) if args.dry_run: - print(json.dumps({"argv": command, "body_bytes": len(body) if body is not None else None}, indent=2)) + preview = list(command) + for index, argument in enumerate(preview): + if index and preview[index - 1] == "-H": + name = argument.partition(":")[0].lower() + if name in ("authorization", "proxy-authorization", "cookie") or any(part in name for part in ("secret", "token", "api-key")): + preview[index] = argument.partition(":")[0] + ": [redacted]" + print(json.dumps({"argv": preview, "body_bytes": len(body) if body is not None else None}, indent=2)) return 0 - return subprocess.run(command, input=body).returncode - except (ValueError, OSError) as error: + return execute_recorded(args, operation, parameters, lambda: subprocess.run(command, input=body).returncode) + except (ValueError, OSError, sqlite3.Error) as error: print(str(error), file=sys.stderr) return 2 +def execute_recorded(args, operation, parameters, perform): + if args.no_history: + return perform() + run_id = execution_history.start(args.operation, operation, parameters, args.context) + print(f"Execution history {run_id}", file=sys.stderr) + try: + returncode = perform() + except BaseException: + execution_history.finish(run_id, None) + raise + execution_history.finish(run_id, returncode) + return returncode + + if __name__ == "__main__": sys.exit(main()) diff --git a/scripts/package_release.py b/scripts/package_release.py new file mode 100644 index 0000000..1626ee5 --- /dev/null +++ b/scripts/package_release.py @@ -0,0 +1,40 @@ +"""Package committed plugin files, including hidden manifests, for a matching tag.""" +import argparse +import hashlib +import json +from pathlib import Path +import re +import subprocess +import tempfile +import zipfile + + +def package(root, output, tag): + if not re.fullmatch(r"v\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?", tag): + raise ValueError("Expected a v-prefixed release version") + output.mkdir(parents=True, exist_ok=True) + filename = f"full-github-{tag[1:]}.zip" + with tempfile.TemporaryDirectory(dir=output) as temporary: + archive = Path(temporary) / filename + subprocess.run(["git", "archive", "--format=zip", "--prefix=full-github/", "-o", str(archive.resolve()), "HEAD"], cwd=root, check=True) + with zipfile.ZipFile(archive) as zipped: + if zipped.testzip() is not None: + raise ValueError("Invalid ZIP payload") + manifest = json.loads(zipped.read("full-github/.codex-plugin/plugin.json")) + if manifest["version"] != tag[1:]: + raise ValueError("Tag does not match the committed plugin version") + for required in (".agents/plugins/marketplace.json", "skills/full-github/SKILL.md", "NOTICE.md"): + zipped.getinfo("full-github/" + required) + destination = output / filename + archive.replace(destination) + checksum = hashlib.sha256(destination.read_bytes()).hexdigest() + (output / (filename + ".sha256")).write_text(checksum + " " + filename + "\n") + return destination + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--tag", required=True) + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args() + print(package(Path(__file__).resolve().parents[1], args.output.resolve(), args.tag)) diff --git a/scripts/publish_release.py b/scripts/publish_release.py new file mode 100644 index 0000000..7631c3a --- /dev/null +++ b/scripts/publish_release.py @@ -0,0 +1,66 @@ +"""Resume a draft release and publish only after asset bytes match local artifacts.""" +import argparse +import hashlib +import json +from pathlib import Path +import re +import subprocess +import tempfile + + +def publish(repo, tag, assets, run=subprocess.run): + if ( + not re.fullmatch(r"[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+", repo) + or any(part in (".", "..") for part in repo.split("/")) + or not re.fullmatch(r"v\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?", tag) + ): + raise ValueError("Invalid repository or release tag") + if not assets or any(not path.is_file() for path in assets): + raise ValueError("Every release asset must exist before publication") + if len({path.name for path in assets}) != len(assets): + raise ValueError("Release asset names must be unique") + prerelease = "-" in tag + + def gh(*arguments, check=True): + return run(["gh", *arguments, "--repo", repo], capture_output=True, text=True, check=check) + + response = gh("release", "view", tag, "--json", "isDraft,isPrerelease,assets,url", check=False) + if response.returncode: + if "release not found" not in response.stderr.lower(): + raise RuntimeError(response.stderr) + flags = ["--draft", "--verify-tag", "--generate-notes", "--title", "Full GitHub " + tag[1:]] + if prerelease: + flags.append("--prerelease") + gh("release", "create", tag, *flags) + response = gh("release", "view", tag, "--json", "isDraft,isPrerelease,assets,url") + release = json.loads(response.stdout) + if release["isPrerelease"] != prerelease: + if not release["isDraft"]: + raise RuntimeError("Published release classification conflicts with its tag; preserve history and investigate") + gh("release", "edit", tag, "--prerelease=" + str(prerelease).lower()) + existing = {asset["name"] for asset in release["assets"]} + for path in assets: + if path.name not in existing: + if not release["isDraft"]: + raise RuntimeError("Published release is missing an expected asset; preserve publication history and investigate") + gh("release", "upload", tag, str(path.resolve())) + with tempfile.TemporaryDirectory() as temporary: + gh("release", "download", tag, "--pattern", path.name, "--dir", temporary) + downloaded = Path(temporary) / path.name + if hashlib.sha256(downloaded.read_bytes()).digest() != hashlib.sha256(path.read_bytes()).digest(): + raise RuntimeError(f"Existing asset differs from the build: {path.name}; no asset was overwritten") + if release["isDraft"]: + gh("release", "edit", tag, "--draft=false") + final = json.loads(gh("release", "view", tag, "--json", "isDraft,isPrerelease,url").stdout) + if final["isDraft"] or final["isPrerelease"] != prerelease: + raise RuntimeError("Release publication state does not match its tag") + return final["url"] + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--repo", required=True) + parser.add_argument("--tag", required=True) + parser.add_argument("assets", type=Path, nargs="+") + args = parser.parse_args() + print(publish(args.repo, args.tag, args.assets)) diff --git a/scripts/render_catalog.py b/scripts/render_catalog.py index 8feee32..38ee34d 100644 --- a/scripts/render_catalog.py +++ b/scripts/render_catalog.py @@ -53,6 +53,41 @@ def cell(value): lines.append(f"| {name} | {status} |") lines.append("") outputs[root / "docs/OPERATIONS.md"] = "\n".join(lines) + "\n" +configuration = json.loads((data / "configuration-options.json").read_text()) +groups = configuration["groups"] +option_count = sum(len(group["options"]) for group in groups) +lines = ["# Configuration decisions", "", f"Reviewed {configuration['retrieved']}. {len(groups)} decision groups contain {option_count} concrete configuration choices covering every catalog capability.", "", + "Choose settings from the project's actual requirements, observed state, access policy and host version. Record the selected value, rationale, owner, historical evidence and read-back verification. Preserve existing custom settings and identities.", "", + "Official documentation establishes current supported behavior. Community links provide incident history and practical pitfalls. Check their date and current applicability before applying a workaround. Full REST schemas and GraphQL input types provide the nested API constraints alongside these decisions.", ""] +for group in groups: + lines.extend([f"## {group.get('title', group['id'])}", "", f"Group ID {group['id']}.", "", + "Capabilities " + ", ".join(group["capability_ids"]) + ".", "", + "| Setting | Values and defaults | Decision rule | Verification |", "| --- | --- | --- | --- |"]) + for option in group["options"]: + values = option["values"] + if isinstance(values, list): + values = ", ".join(str(value) for value in values) + lines.append(f"| {cell(option['name'])} | {cell(values)} | {cell(option['decision_rule'])} | {cell(option['verification'])} |") + lines.append("") + for key, heading in (("project_applicability", "Project applicability"), ("historical_and_human_interaction", "History and human interaction"), ("recovery", "Recovery"), ("pitfalls", "Pitfalls")): + if group.get(key): + lines.extend([f"### {heading}", ""]) + value = group[key] + if isinstance(value, list): + lines.extend("- " + str(item) for item in value) + else: + lines.append(str(value)) + lines.append("") + for key, heading in (("sources", "Official sources"), ("community_sources", "Community reports")): + if group.get(key): + lines.extend([f"### {heading}", ""]) + for number, source in enumerate(group[key], 1): + if isinstance(source, dict): + lines.append(f"- [{cell(source.get('title', heading + ' ' + str(number)))}]({source['url']})") + else: + lines.append(f"- [{heading} {number}]({source})") + lines.append("") +outputs[root / "docs/CONFIGURATION.md"] = "\n".join(lines) + "\n" for path, content in outputs.items(): if args.check: if not path.exists() or path.read_text() != content: diff --git a/scripts/update_registry.py b/scripts/update_registry.py index febdd58..c3bba9d 100644 --- a/scripts/update_registry.py +++ b/scripts/update_registry.py @@ -2,6 +2,7 @@ import argparse import json import hashlib +import gzip from pathlib import Path parser = argparse.ArgumentParser(description=__doc__) @@ -23,6 +24,7 @@ def resolve(value): operations = {} data = Path(__file__).resolve().parents[1] / "skills/full-github/data" +(data / "rest-schema.json.gz").write_bytes(gzip.compress(args.openapi.read_bytes(), mtime=0)) retired = json.loads((data / "retired-operations.json").read_text()) for path, item in spec["paths"].items(): for method, operation in item.items(): diff --git a/scripts/validate.py b/scripts/validate.py index 8f00af5..6c6641b 100644 --- a/scripts/validate.py +++ b/scripts/validate.py @@ -1,4 +1,6 @@ import json +import gzip +import hashlib from pathlib import Path root = Path(__file__).resolve().parents[1] @@ -7,7 +9,7 @@ assert (root / manifest["skills"] / "full-github/SKILL.md").is_file() marketplace = json.loads((root / ".agents/plugins/marketplace.json").read_text()) assert marketplace["plugins"][0]["name"] == manifest["name"] -for reference in ("features.md", "workflows.md", "operations.md", "collaboration.md", "delivery-security.md", "administration.md"): +for reference in ("features.md", "workflows.md", "operations.md", "collaboration.md", "delivery-security.md", "administration.md", "collaboration-options.md", "delivery-options.md", "administration-options.md", "history-interaction.md"): assert (root / "skills/full-github/references" / reference).is_file() assert (root / "skills/full-github/SKILL.md").read_text().startswith("---\n") data = root / "skills/full-github/data" @@ -16,7 +18,19 @@ for entry in capabilities: for field in ("id", "category", "capability", "operations", "surfaces", "source", "verification", "limitations"): assert entry.get(field), (entry["id"], field) -rest = json.loads((data / "rest-operations.json").read_text())["operations"] +rest_index = json.loads((data / "rest-operations.json").read_text()) +rest = rest_index["operations"] +with gzip.open(data / "rest-schema.json.gz", "rb") as source: + assert hashlib.sha256(source.read()).hexdigest() == rest_index["source_sha256"] +groups = json.loads((data / "configuration-options.json").read_text())["groups"] +assert len(groups) == len({group["id"] for group in groups}) +assert {entry["id"] for entry in capabilities} == {name for group in groups for name in group["capability_ids"]} +for group in groups: + assert group["sources"] and group["options"], group["id"] + for option in group["options"]: + assert all(option.get(field) for field in ("name", "values", "decision_rule", "verification")), group["id"] +errata = json.loads((data / "api-errata.json").read_text()) +assert errata.keys() <= rest.keys() retired = json.loads((data / "retired-operations.json").read_text()) assert retired.keys() <= rest.keys() for name, reason in retired.items(): diff --git a/skills/full-github/SKILL.md b/skills/full-github/SKILL.md index c1962c2..94a8917 100644 --- a/skills/full-github/SKILL.md +++ b/skills/full-github/SKILL.md @@ -10,8 +10,8 @@ Use the full profile by default. Start with references/features.md and reference ## Discover the complete surface 1. Identify the GitHub host, authenticated identity, repository and owner from Git remotes, gh auth status and repository metadata. Read AGENTS.md, GITHUB.md, existing community files and workflows. Preserve repository-specific choices. -2. Search the capability catalog with python3 /scripts/operations.py capabilities TERM. Read the relevant domain reference sections. Resolve plugin-root relative to this skill's ../../ directory. Keep the large JSON registries out of the conversation context. -3. Use operations.py search TERM, describe OPERATION and type INPUT_TYPE to discover exact current operations. Search with --graphql for GraphQL. Read official endpoint documentation and inspect request schemas before choosing payloads. The indexed API includes deprecated and retired operations, so check their status. +2. Search the capability catalog with python3 /scripts/operations.py capabilities TERM. Read the relevant domain reference sections and their collaboration-options.md, delivery-options.md or administration-options.md decision groups. Use operations.py options TERM and option GROUP_ID to inspect concrete values, provider defaults, project decision rules and verification. Resolve plugin-root relative to this skill's ../../ directory. Keep the large JSON registries out of the conversation context. +3. Use operations.py search TERM, describe OPERATION and type INPUT_TYPE to discover exact current operations. Search with --graphql for GraphQL. Use operations.py schema OPERATION with --section requestBody/responses/parameters and --pointer to inspect complete nested schemas, references, enums, defaults, required fields, cardinality and examples. Read describe operational_notes and current official endpoint documentation before choosing payloads. Generated schemas can lag documented runtime requirements. The indexed API includes deprecated and retired operations, so check their status. 4. Run scripts/audit.py OWNER/REPO for repository probes. Add --organization for an organization owner and --project NUMBER for each relevant owner Project. Read failures remain unknown. Use operation discovery to inspect the remaining features, including object-level details, plan-specific and UI-only capabilities. 5. Maintain one coverage ledger row per applicable capability ID, with desired configuration, observed configuration, action, permission/plan gate, evidence URL/object ID and final state. Use configured, available-unconfigured, unavailable, not-applicable or unknown. Record a concrete reason for each unavailable or inapplicable row. A successful API read is evidence of observation, not configuration correctness. 6. With agent tools available, delegate independent collaboration, delivery/security and administration discovery to agents. Give each its exact catalog scope and require official sources and evidence. Consolidate their findings and inspect unresolved gaps before finishing. @@ -24,7 +24,9 @@ Respect existing custom content, policies, collaborators, field and option IDs. Continue authorized work autonomously. Infer reversible routine choices from the project. Ask only about unresolved material decisions and actions requiring approval under the host's rules, including access expansion, payment commitments and destructive changes. Never grant broader rights or bypass protection to complete setup. -After every mutation read back the object and check the intended configuration, not only HTTP success. Preserve confirmed partial progress. On timeout re-read before retrying. Reconcile again after setup and verify unchanged IDs/counts and preserved custom content. Include a newly-created object and an existing customized object in meaningful reconciliation acceptance tests. +Read references/history-interaction.md before mutation. Supply the linked GitHub issue/PR/discussion through --context for executor calls. Preserve the native discussion/review chronology, explain superseding decisions and keep local attempt/result events distinct from read-back verification and actual human approvals. + +After every mutation read back the object and check the intended configuration, not only HTTP success. Preserve confirmed partial progress. On timeout re-read before retrying. Append verified evidence using verify-event only after observing the resulting GitHub state. Reconcile again after setup and verify unchanged IDs/counts and preserved custom content. Include a newly-created object and an existing customized object in meaningful reconciliation acceptance tests. ## Repository instructions and documentation @@ -38,10 +40,12 @@ Audit is read-only. Cover individual capabilities, including settings that requi ## Delivery and maintenance +Use GitHub conversations for genuine human participation. Publish clear question/proposal/bug routes, preserve authors and existing discussion links, request actual authorized reviews and never synthesize a human approval or answer. + Track substantial work through an issue, existing issue type and shared fields, labels, assignee, milestone, Project item and status. Use sub-issues/dependencies where the work requires them. Branch, implement, verify and create a linked PR. Maintain reviews, checks, discussions and Project status throughout delivery. Observe review and merge-queue rules. Verify the resulting commit, closure and automation after merge. Update affected Wiki/docs and publish a release when the project's policy calls for it. Validate artifact contents and downloaded bytes. Apply relevant deployment environments, approvals, attestations, registry and release immutability policies. Verify deployment/release results. Investigate and fix recoverable failures. ## Finish with evidence -Recheck all coverage rows. Source-backed support, executable operations, live read validation and live mutation validation are separate evidence levels. State the tested host/date and exact remaining gaps. Never claim all GitHub features were configured from a successful subset, a read-only repeated snapshot or a catalog entry. See references/workflows.md for recovery and authorization boundaries. +Recheck all coverage rows. Source-backed support, executable operations, live read validation and live mutation validation are separate evidence levels. State the tested host/date and exact remaining gaps. Never claim all GitHub features were configured from a successful subset, a read-only repeated snapshot or a catalog entry. Use collect for page-based inventories, verify counts/termination and respect incomplete_results. A default CLI page or missing Link header cannot establish completeness. Cursor APIs require independently paginating nested connections. See references/workflows.md and references/history-interaction.md for recovery and authorization boundaries. diff --git a/skills/full-github/data/api-errata.json b/skills/full-github/data/api-errata.json new file mode 100644 index 0000000..2ef5861 --- /dev/null +++ b/skills/full-github/data/api-errata.json @@ -0,0 +1,9 @@ +{ + "billing/create-organization-budget": [ + { + "checked_on": "2026-11-15", + "note": "For budget_scope=user the current endpoint documentation requires an explicit user login even though the stored generated request schema omits that property. Verify the documented scope-specific payload before creation.", + "source": "https://docs.github.com/en/rest/billing/budgets#create-a-budget-for-an-organization" + } + ] +} diff --git a/skills/full-github/data/configuration-options.json b/skills/full-github/data/configuration-options.json new file mode 100644 index 0000000..1dd89ed --- /dev/null +++ b/skills/full-github/data/configuration-options.json @@ -0,0 +1,5401 @@ +{ + "retrieved": "2026-11-15", + "groups": [ + { + "id": "repository-collaboration-settings", + "capability_ids": [ + "repository-lifecycle", + "repository-branches", + "repository-autolinks", + "repository-community" + ], + "title": "Repository identity, defaults and collaboration surfaces", + "applicability": "Every repository; preserve owner decisions about visibility, licensing and audience.", + "options": [ + { + "name": "visibility / private", + "values": [ + "public", + "private", + "internal where eligible" + ], + "decision_rule": "Preserve observed visibility; assess access and discoverability before a requested change, never make a private project public as routine setup.", + "verification": "Re-read visibility and intended reader access; inspect fork implications before changing." + }, + { + "name": "default_branch", + "values": [ + "existing branch name" + ], + "decision_rule": "Retain the current branch unless migration is required; discover branch names before configuring CI, templates or closing links.", + "verification": "Read repository default_branch, ref SHA and PR bases after any authorized rename." + }, + { + "name": "has_issues / has_projects / has_wiki / has_discussions", + "values": [ + "independent booleans" + ], + "decision_rule": "Enable the surfaces the project will actively use; enabling a repository Projects tab does not create or configure an owner Project.", + "verification": "Read each flag and follow the actual tab and linked owner Project." + }, + { + "name": "description / homepage / topics", + "values": [ + "text", + "HTTPS URL", + "topic list" + ], + "decision_rule": "Use concise purpose and a working primary documentation URL; preserve unrelated topics and owner-defined metadata.", + "verification": "Read metadata and open rendered links; check topic replacement semantics before writing." + }, + { + "name": "autolinks.key_prefix / url_template / is_alphanumeric", + "values": [ + "tracker prefix", + "URL with ", + "boolean" + ], + "decision_rule": "Add only for a real external tracker; choose a non-colliding prefix and correct numeric versus alphanumeric matching.", + "verification": "Read rule IDs and test a harmless rendered example without sending a comment." + }, + { + "name": "archived / disabled", + "values": [ + "repository lifecycle flags" + ], + "decision_rule": "Archive only when work truly ends; do not archive to represent a finished milestone or Project.", + "verification": "Re-read flags, open work and expected read-only behavior; record unarchive recovery path." + } + ], + "sources": [ + "https://docs.github.com/en/rest/repos/repos", + "https://docs.github.com/en/rest/repos/autolinks" + ], + "community_sources": [], + "pitfalls": [ + "Repository flag defaults vary with creation path and owner settings; never infer actual configuration from product availability." + ] + }, + { + "id": "source-and-history-policy", + "capability_ids": [ + "repository-content", + "repository-git-objects", + "repository-history", + "repository-lfs-submodules", + "repository-templates", + "repository-forks", + "repository-commit-comments" + ], + "title": "Source changes, history and repository derivation", + "applicability": "Every code repository; LFS/submodules/templates/forks only where present.", + "options": [ + { + "name": "content.ref / expected sha", + "values": [ + "immutable commit SHA", + "branch", + "tag; update blob SHA" + ], + "decision_rule": "Read immutable refs for evidence; use Git for multi-file work and expected old SHAs for API writes.", + "verification": "Inspect resulting commit tree and parents plus changed-file list; reconcile timeout before retry." + }, + { + "name": "ref.force / git push strategy", + "values": [ + "non-force", + "force-with-lease when explicitly justified" + ], + "decision_rule": "Preserve human commits; default to non-force updates, compare remote head and use a lease only for authorized history rewrite.", + "verification": "Fetch and compare old/new ref OIDs; stop if remote changed unexpectedly." + }, + { + "name": "merge history", + "values": [ + "merge commit", + "squash", + "rebase" + ], + "decision_rule": "Follow repository policy; merge preserves branch commits, squash gives one logical commit, rebase rewrites commit identities.", + "verification": "Match resulting base-branch commit and PR merge metadata; keep issue/PR links as decision history." + }, + { + "name": "template.include_all_branches / fork.default_branch_only", + "values": [ + "boolean choices" + ], + "decision_rule": "Template copies start a separate history; forks preserve an upstream relationship. Choose based on contribution versus new-project intent.", + "verification": "Inspect parent/source or is_template relationship and compare expected branches/files." + }, + { + "name": "LFS / submodule checkout", + "values": [ + "pointer versus object", + "pinned SHA", + "recursive checkout" + ], + "decision_rule": "Fetch only required objects and pinned submodules; never treat an LFS pointer or gitlink as tested source content.", + "verification": "Verify actual object bytes, submodule OIDs and executable/symlink modes." + }, + { + "name": "comment anchor", + "values": [ + "commit SHA", + "file path", + "valid line" + ], + "decision_rule": "Commit comments discuss a specific historical revision; use a PR review thread for an actionable PR finding.", + "verification": "Read returned comment ID, commit_id and line metadata; retain URL when following up." + } + ], + "sources": [ + "https://docs.github.com/en/rest/repos/contents", + "https://docs.github.com/en/rest/git/refs", + "https://docs.github.com/en/pull-requests/reference/pull-request-merges" + ], + "community_sources": [], + "pitfalls": [ + "A Git clone does not contain issues, review conversations, Project configuration or Wiki history. Separate evidence stores are needed for those records." + ] + }, + { + "id": "codeowner-routing", + "capability_ids": [ + "repository-codeowners", + "pr-review-requests" + ], + "title": "Who receives review and when", + "applicability": "Repositories accepting PRs; stricter ownership only with available qualified reviewers.", + "options": [ + { + "name": "CODEOWNERS location / matching order", + "values": [ + ".github/CODEOWNERS", + "root CODEOWNERS", + "docs/CODEOWNERS; last matching pattern" + ], + "decision_rule": "Use one authoritative file on the PR base branch, broad ownership first and narrow overrides later; list multiple owners together.", + "verification": "Read actual base-branch file, query CODEOWNERS errors and map representative changed paths." + }, + { + "name": "owner eligibility", + "values": [ + "user with write", + "visible team with explicit write" + ], + "decision_rule": "Reuse real maintainers; do not invent a reviewer or broaden team visibility/access to make routing work.", + "verification": "Verify team visibility and repository role; inspect requests on a matching ready PR." + }, + { + "name": "requested_reviewers / requested_teams", + "values": [ + "user logins", + "organization team slugs" + ], + "decision_rule": "Request the smallest relevant set; requests notify people, so repository setup alone is not authority to send them.", + "verification": "Read outstanding review requests and submitted reviews separately; a removed request may mean review completed." + }, + { + "name": "draft to ready", + "values": [ + "draft", + "ready for review" + ], + "decision_rule": "Keep incomplete work draft; move ready when description, diff and checks support review. CODEOWNERS automatic requests happen on readiness.", + "verification": "Re-read isDraft and automatic requests; explain review scope in the authorized PR description." + }, + { + "name": "require_code_owner_reviews", + "values": [ + "false", + "true through branch policy" + ], + "decision_rule": "Routing alone never enforces approval; enable enforcement where actual independent owners exist and repository rules call for it.", + "verification": "Read effective protection/ruleset plus PR reviewDecision; avoid self-approval deadlock." + } + ], + "sources": [ + "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners", + "https://docs.github.com/en/rest/pulls/review-requests" + ], + "community_sources": [], + "pitfalls": [ + "The author cannot approve their own PR. A single-maintainer repository may deliberately require zero peer approvals while retaining routing and required checks." + ] + }, + { + "id": "issue-intake-routing", + "capability_ids": [ + "issue-forms-templates", + "pr-templates" + ], + "title": "Issue chooser and PR template routing", + "applicability": "User-facing or collaborative repositories; lightweight internal projects can use fewer forms.", + "options": [ + { + "name": "chooser.blank_issues_enabled / contact_links", + "values": [ + "true", + "false; name/url/about entries" + ], + "decision_rule": "Keep an accessible path for unusual reports; route support and private vulnerabilities to actual staffed destinations.", + "verification": "Render chooser as intended contributor; open every contact URL without submitting." + }, + { + "name": "form.name / description / title", + "values": [ + "unique chooser name", + "purpose text", + "optional title prefix" + ], + "decision_rule": "Separate reproducible defects from proposals only when triage differs; avoid prefixes duplicating structured type.", + "verification": "Open every template on default branch and check readable chooser order and defaults." + }, + { + "name": "form.labels / assignees / type", + "values": [ + "existing labels", + "assignable users", + "existing owner issue type" + ], + "decision_rule": "Reuse taxonomy; default assignees only when maintainers accept that responsibility; labels must already exist.", + "verification": "Check available labels/types/assignees and inspect a permitted representative result." + }, + { + "name": "form.projects", + "values": [ + "OWNER/NUMBER list" + ], + "decision_rule": "For external reporters prefer Project auto-add because template project insertion needs the submitter's write access to that Project.", + "verification": "Verify with relevant contributor permission context; do not use maintainer success as outsider proof." + }, + { + "name": "PR template selection", + "values": [ + ".github/pull_request_template.md", + "PULL_REQUEST_TEMPLATE/name.md and template query" + ], + "decision_rule": "Use concise purpose/validation/risk prompts; multiple templates need an actual selection link/process, not an assumed automatic chooser.", + "verification": "Open new-PR draft composer and test the intended template URL without posting." + }, + { + "name": "inheritance / placement", + "values": [ + "repository templates", + "owner .github defaults" + ], + "decision_rule": "Inventory inherited files before adding duplicates; default-branch placement controls normal chooser availability.", + "verification": "Compare effective chooser and local/owner file sources, including casing and extension." + } + ], + "sources": [ + "https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms", + "https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository" + ], + "community_sources": [], + "pitfalls": [ + "Issue forms become editable Markdown; required form controls are intake aids, not permanent structured-field enforcement. Issue forms are not PR forms." + ] + }, + { + "id": "form-controls", + "capability_ids": [ + "issue-forms-templates" + ], + "title": "Nested form controls and validation", + "applicability": "For every configured YAML issue form; discussion forms reuse supported controls with their own top-level schema.", + "options": [ + { + "name": "body[].type / id", + "values": [ + "markdown", + "input", + "textarea", + "dropdown", + "checkboxes", + "upload; unique alphanumeric/-/_ IDs" + ], + "decision_rule": "Pick the control matching the answer; use stable unique IDs for supported prefills and future maintenance.", + "verification": "Validate schema and render each control on the target host; require a non-markdown control." + }, + { + "name": "input.attributes", + "values": [ + "label", + "description", + "placeholder", + "value; validations.required" + ], + "decision_rule": "Require actionable minimum information, not optional diagnostics; placeholders are examples, values are submitted defaults.", + "verification": "Clear required inputs in preview and inspect validation behavior without posting." + }, + { + "name": "textarea.attributes", + "values": [ + "label", + "description", + "placeholder", + "value", + "render; validations.required" + ], + "decision_rule": "Use render for literal logs/code only; omit it when Markdown editing or attachment affordances are needed.", + "verification": "Check code-fence output and attachment/Markdown behavior in composer." + }, + { + "name": "dropdown.attributes", + "values": [ + "options[]", + "multiple true/false", + "default index; validations.required" + ], + "decision_rule": "Default only when the common choice is safe; use no default when choosing version/platform must be deliberate.", + "verification": "Check unique options, index bounds, single versus multiple selection and empty validation." + }, + { + "name": "checkboxes.attributes.options[]", + "values": [ + "label", + "required true/false" + ], + "decision_rule": "Require only a meaningful acknowledgement; individual required flags differ from an optional checklist.", + "verification": "Test unchecked required item and check rendered links and separate labels." + }, + { + "name": "markdown / upload", + "values": [ + "markdown.value", + "upload label/description/required where supported" + ], + "decision_rule": "Markdown guidance is not submitted content; keep critical reporting requirements in actual controls. Upload only needed files with privacy guidance.", + "verification": "Preview target schema support; inspect attachment expectations and avoid requesting secrets." + } + ], + "sources": [ + "https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema", + "https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms" + ], + "community_sources": [], + "pitfalls": [ + "Do not invent regex validators, conditional controls or arbitrary client logic; unsupported YAML keys can prevent the form appearing." + ] + }, + { + "id": "issue-taxonomy", + "capability_ids": [ + "issue-metadata", + "issue-assignees", + "issue-milestones", + "issue-types", + "issue-types-owner" + ], + "title": "Types, labels, owners and milestone planning", + "applicability": "Every tracked work item; owner-wide definitions only with owner-level applicability.", + "options": [ + { + "name": "issue.type / owner definition", + "values": [ + "enabled type ID", + "null; name/description/color/is_enabled" + ], + "decision_rule": "Prefer the owner's existing Bug/Task/Feature equivalents; types describe work kind rather than transient status. Owner edits affect other repositories.", + "verification": "List owner and repository types, then read the issue's assigned type ID." + }, + { + "name": "labels[] / label color-description", + "values": [ + "names and IDs", + "six-digit color", + "explanatory description" + ], + "decision_rule": "Labels serve useful cross-cutting queries; preserve customized names/colors and add/remove narrowly instead of replacing all.", + "verification": "Compare before/after label ID sets and rendered descriptions; check saved filters still match renamed labels." + }, + { + "name": "assignees[]", + "values": [ + "eligible user logins", + "empty list" + ], + "decision_rule": "Assign a responsible person only when the task or project convention authorizes it; assignment does not mean acceptance.", + "verification": "Check assignability then re-read the exact assignee set; do not confuse PR reviewer and assignee." + }, + { + "name": "milestone.title / description / due_on / state", + "values": [ + "repository milestone", + "ISO8601 date", + "open/closed" + ], + "decision_rule": "Use milestones for real releases/deadlines, not arbitrary duplicates of Project iterations; dates are targets.", + "verification": "Read milestone counters and all included open/closed issues and PRs; closing milestone does not close work." + }, + { + "name": "metadata mutation mode", + "values": [ + "add", + "remove", + "replace" + ], + "decision_rule": "Use delta mutations for focused edits; reserve replace for an explicitly reconciled full desired set.", + "verification": "Re-read concurrent metadata before write and confirm unrelated labels/assignees remain." + } + ], + "sources": [ + "https://docs.github.com/en/rest/issues/labels", + "https://docs.github.com/en/rest/issues/assignees", + "https://docs.github.com/en/rest/issues/milestones", + "https://docs.github.com/en/rest/orgs/issue-types" + ], + "community_sources": [], + "pitfalls": [ + "Do not create a new taxonomy each run or use a label named Feature as proof native issue type is configured." + ] + }, + { + "id": "shared-issue-fields", + "capability_ids": [ + "issue-fields", + "issue-field-values", + "projects-issue-fields", + "projects-multiselect" + ], + "title": "Shared issue definitions and Project-local fields", + "applicability": "Cross-repository structured facts use owner issue fields; Project-only estimates/status use Project fields. Preview/host gates must be inspected.", + "options": [ + { + "name": "field scope / applicability", + "values": [ + "owner issue field", + "Project field; same-owner issues only" + ], + "decision_rule": "Put reusable facts on the issue; Project issue-field cells are empty for PRs, draft items and issues from other owners.", + "verification": "Read owner definition, issue sidebar and Project column as intended audience; missing applicability is not missing data." + }, + { + "name": "visibility / API enum", + "values": [ + "Restricted/Public in UI", + "restricted/all in REST", + "deprecated organization_members_only" + ], + "decision_rule": "Retain restricted default for nonpublic planning facts; public/internal Projects expose only Public issue fields. Changing to Restricted removes the field from those Projects.", + "verification": "Read exact API visibility and inspect viewer/sidebar/timeline/Project behavior; do not change visibility merely to display a column." + }, + { + "name": "pin to types / field limits", + "values": [ + "selected issue type IDs", + "Issues without a type", + "no pins; current 25 owner fields/100 select options/10 pins per type/50 total Project fields" + ], + "decision_rule": "Pin relevant fields so creation/view surfaces show them automatically; unpinned fields remain available through Add field and Projects. Limits differ from Project single-select options.", + "verification": "Read pin mapping for typed and untyped issues and count all system/issue/local Project fields; verify target-host limits before creating." + }, + { + "name": "data_type / typed value", + "values": [ + "text", + "number", + "date", + "single_select", + "multi_select where supported" + ], + "decision_rule": "Select type from actual schema; use date for dates and number for arithmetic, not formatted strings.", + "verification": "Inspect supported owner and Project types separately; round-trip one permitted value of the selected type." + }, + { + "name": "select options", + "values": [ + "stable ID", + "name", + "description", + "color; default where supported" + ], + "decision_rule": "Reuse IDs; rename in place when supported, never recreate populated options just to reorder or recolor.", + "verification": "Export affected values before change and compare option IDs and representative assignments afterward." + }, + { + "name": "issue field values operation", + "values": [ + "add", + "set", + "delete; typed scalar or option IDs" + ], + "decision_rule": "Preserve unrelated values and distinguish adding multi-select members from replacing the selected set.", + "verification": "Read all current issue-field-values and compare exact changed field and option IDs." + }, + { + "name": "intake population", + "values": [ + "sidebar", + "API", + "Actions", + "supported Project column" + ], + "decision_rule": "Do not promise template or URL prefill of native issue fields; those are currently unsupported in the consulted product guide.", + "verification": "Verify creation path then read the issue fields, not Markdown text that happens to have the same heading." + } + ], + "sources": [ + "https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-and-managing-issue-fields", + "https://docs.github.com/en/rest/issues/issue-field-values", + "https://docs.github.com/en/rest/orgs/issue-fields", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-issue-fields", + "https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/202760", + "observation": "July 2026 community post describes multi-select preview; treat as discovery, not authority for every host or endpoint.", + "official_check": "Current issue-field-values examples include multi_select; bundled UpdateProjectV2FieldInput also exposes multiSelectOptions. Live entitlement remains untested." + } + ], + "pitfalls": [ + "A community preview announcement is not proof of API type support or entitlement. Inspect the exact host schema and actual rendered field." + ] + }, + { + "id": "issue-state-and-relations", + "capability_ids": [ + "issue-lifecycle", + "issue-subissues", + "issue-dependencies", + "issue-related", + "issue-transfer-pin-duplicate", + "issue-linked-branches", + "issue-planning-status" + ], + "title": "Completion, hierarchy, blockers and identity", + "applicability": "Issues with meaningful lifecycle; hierarchy/dependencies only where real decomposition/order exists.", + "options": [ + { + "name": "state / state_reason", + "values": [ + "open", + "closed; completed", + "not_planned", + "reopened where accepted" + ], + "decision_rule": "Close completed only with acceptance evidence; not-planned needs a decision reason; reopen the original issue for the same unfinished work.", + "verification": "Read state/state_reason and timeline; closing is not deployment verification." + }, + { + "name": "parent / child order", + "values": [ + "issue database IDs", + "parent relationship", + "ordered sub-issues" + ], + "decision_rule": "Use one parent for decomposition, preserve child identity and ordering; avoid manufacturing hierarchy for unrelated work.", + "verification": "Read parent and child sides, all pages and final sibling order; current product limits are 100 children and eight levels." + }, + { + "name": "blocked_by / blocking", + "values": [ + "directed native issue dependencies" + ], + "decision_rule": "Record A blocked by B when B must finish first; parenthood and a mention do not establish dependency.", + "verification": "Query both directions and verify no self/cyclic/duplicate relationship accepted by the host." + }, + { + "name": "related / duplicate", + "values": [ + "related edge", + "duplicate_of", + "mark/unmark duplicate" + ], + "decision_rule": "Link peers as related; point duplicates to the canonical issue and retain the reporter's reproduction details there by reference.", + "verification": "Read canonical URLs and relationship timeline; do not delete duplicate history." + }, + { + "name": "transfer / pin", + "values": [ + "destination repository", + "pinned/unpinned" + ], + "decision_rule": "Transfer only after access/ownership consequences are understood; use pins for durable current entry points, not every issue.", + "verification": "Follow old URL, read new repository/number/ID, metadata and relationship preservation." + }, + { + "name": "linkedBranch.repositoryId / name / oid", + "values": [ + "chosen repository", + "branch name", + "base commit" + ], + "decision_rule": "Start from observed default/base SHA unless task needs a release branch; link existing work before creating duplicate branches.", + "verification": "Read actual ref OID and issue linkedBranches; link does not substitute for a closing PR." + }, + { + "name": "planning status", + "values": [ + "discovered status ID", + "duplicate reference where supported" + ], + "decision_rule": "Preview planning statuses may transition issue state; use only after discovering viewerCanSetStatus and available statuses.", + "verification": "Read status plus open/closed state and duplicate target; do not equate it to Project Status." + } + ], + "sources": [ + "https://docs.github.com/en/rest/issues/issues", + "https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues", + "https://docs.github.com/en/rest/issues/issue-dependencies", + "https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-a-branch-for-an-issue" + ], + "community_sources": [], + "pitfalls": [ + "Removal of a hierarchy/dependency edge is not deletion of either issue. Native relationships need actual API/UI evidence, not a checklist in the body." + ] + }, + { + "id": "timeline-and-conversation-preservation", + "capability_ids": [ + "issue-comments", + "issue-timeline", + "issue-artifacts", + "repository-history" + ], + "title": "Human conversation and durable evidence", + "applicability": "Every task involving past decisions, edits, triage or review follow-up.", + "options": [ + { + "name": "read model", + "values": [ + "issue body", + "paginated comments", + "timeline events", + "reviews and threads" + ], + "decision_rule": "Read all relevant streams before replying; issue body and last few visible comments omit decisions, force pushes, transfers and prior review outcomes.", + "verification": "Independently paginate nested connections; reconcile IDs/timestamps and retrieve referenced objects." + }, + { + "name": "edit versus append", + "values": [ + "correct current body", + "new progress/decision comment", + "retain superseded links" + ], + "decision_rule": "Edit the canonical description to reflect current scope; append material decisions and corrections when authorized so reasoning remains chronological.", + "verification": "Compare prior content and edit history where available; retain earlier evidence URLs and authorship." + }, + { + "name": "comment/reply location", + "values": [ + "issue conversation", + "PR summary", + "review thread reply", + "Discussion answer" + ], + "decision_rule": "Reply in the thread containing the question; distinguish implemented fix, justified disagreement, unresolved question and deferred follow-up.", + "verification": "Read thread root/reply IDs and resulting thread state; never claim a pending review was delivered." + }, + { + "name": "notifications / mentions", + "values": [ + "direct mention", + "team mention", + "no mention; user subscription" + ], + "decision_rule": "Mention only relevant people when an authorized message needs their attention; do not silently change watch/subscription settings.", + "verification": "Inspect recipient and final posted location; API success is not proof the user read the message." + }, + { + "name": "attachments / artifacts", + "values": [ + "canonical ID", + "immutable URL/ref", + "access-restricted resource" + ], + "decision_rule": "Preserve attachment identity and permissions; reference existing logs/files instead of re-uploading private content publicly.", + "verification": "Verify readable content with permitted audience and identify expiry; attachment presence is not content validation." + }, + { + "name": "recovery after ambiguous write", + "values": [ + "reconcile by ID/body/context", + "retry missing write only" + ], + "decision_rule": "Avoid duplicate posts after timeouts; inspect recent author/timestamp/body and relationship events before retry.", + "verification": "Capture canonical ID/URL and distinguish already-applied from unapplied writes." + } + ], + "sources": [ + "https://docs.github.com/en/rest/issues/timeline", + "https://docs.github.com/en/rest/issues/comments", + "https://docs.github.com/en/graphql/reference/users#usercontentedit" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/5119", + "observation": "Long-running reports describe collapsed older activity and difficult navigation; exact UI behavior has changed over time.", + "official_check": "REST timeline and comment endpoints are separately paginated, so use their complete relevant pages rather than infer completeness from the rendered screen." + }, + { + "url": "https://github.com/orgs/community/discussions/33551", + "observation": "Users seek issue/comment edit history through APIs and point to GraphQL.", + "official_check": "Inspect UserContentEdit connections and viewer permissions on the current schema; do not claim a comments list contains every revision." + } + ], + "pitfalls": [ + "Git history is not conversation history; activity feeds are not complete audit logs. Loading an old thread in UI may collapse large portions." + ] + }, + { + "id": "pr-creation-and-linking", + "capability_ids": [ + "pr-lifecycle", + "pr-linking", + "pr-templates", + "pr-stacks", + "pr-archival" + ], + "title": "PR intent, comparison base and connected work", + "applicability": "All code changes delivered through PRs; native stacks/archival only on supported hosts.", + "options": [ + { + "name": "head / base / draft", + "values": [ + "owner:branch", + "repository base branch", + "boolean" + ], + "decision_rule": "Discover existing PR before creating; choose correct target release/default branch and draft state from readiness.", + "verification": "Read head repo/ref/SHA, base ref/SHA and isDraft; inspect full diff against merge base." + }, + { + "name": "title / body / maintainer_can_modify", + "values": [ + "current problem and result", + "validation and limits", + "boolean" + ], + "decision_rule": "Describe final scope and evidence; allow fork-maintainer edits only when contributor intent and repository trust permit.", + "verification": "Re-read rendered description and fork edit permission; retain rationale and linked decisions." + }, + { + "name": "closing keyword / manual development link", + "values": [ + "closes/fixes/resolves #N", + "OWNER/REPO#N", + "manual same-repo link" + ], + "decision_rule": "Use closing intent only for fully satisfied issues targeting default branch; use plain references for partial work or release-target PRs.", + "verification": "Check development links before merge, issue state and timeline after merge; commit-only closing may omit PR sidebar linkage." + }, + { + "name": "base retarget / branch rewrite", + "values": [ + "new base", + "merge update", + "rebase update" + ], + "decision_rule": "Recheck scope before retargeting; changing base can remove visible commits and make inline comments outdated. Preserve decision URLs and communicate material scope changes in authorized flow.", + "verification": "Compare old/new base/head SHAs, diff, review freshness and unresolved/outdated threads." + }, + { + "name": "native stack / archival", + "values": [ + "detected stack relationship", + "archive/unarchive" + ], + "decision_rule": "Use native stack support only where available; archive is distinct from close, branch deletion and Project archive.", + "verification": "Read actual stack/base relationships or archived/state fields and timeline; do not simulate support with text and label it configured." + } + ], + "sources": [ + "https://docs.github.com/en/rest/pulls/pulls", + "https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue", + "https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/changing-the-base-branch-of-a-pull-request" + ], + "community_sources": [], + "pitfalls": [ + "A PR references the live head branch; pushing after review changes the material under review. Closing without merge does not mean delivered." + ] + }, + { + "id": "review-submission-and-threads", + "capability_ids": [ + "pr-reviews", + "pr-review-comments", + "pr-file-view-state" + ], + "title": "Review decisions, anchors, pending state and resolution", + "applicability": "All review work; submitted comments are external messages and require task authorization.", + "options": [ + { + "name": "review.commit_id / event", + "values": [ + "observed head SHA; omitted event=PENDING", + "COMMENT", + "APPROVE", + "REQUEST_CHANGES" + ], + "decision_rule": "Bind evidence to the reviewed head. Draft/pending reviews are private; submit only the intended decision and explain actionable findings.", + "verification": "Read review ID, commit_id, state, submitted_at and comments; author cannot approve own PR." + }, + { + "name": "inline anchor", + "values": [ + "commit_id", + "path", + "line/side", + "start_line/start_side", + "subject_type line/file" + ], + "decision_rule": "Anchor to an actual diff on the observed SHA; prefer current line/side coordinates, not deprecated positional guessing.", + "verification": "Re-read comment diff_hunk, original/current line and commit IDs; wrong anchor requires correction, not silent relocation." + }, + { + "name": "reply and suggestion", + "values": [ + "in_reply_to root ID", + "suggestion block", + "batched application" + ], + "decision_rule": "Preserve original conversation; inspect suggestions as code, batch related accepted edits and verify new commits.", + "verification": "Read replies and resulting branch SHA; rerun affected checks after applying suggestions." + }, + { + "name": "viewed files / diff settings", + "values": [ + "mark/unmark viewed", + "unified/split", + "ignore whitespace" + ], + "decision_rule": "Viewed is personal progress, not approval; inspect whitespace when meaningful and unmark changed files requiring another pass.", + "verification": "Read viewerViewedState as same viewer and current path/head; record what was actually reviewed." + }, + { + "name": "thread.resolve / reopen", + "values": [ + "resolved", + "unresolved", + "outdated" + ], + "decision_rule": "Resolve after code/evidence addresses the finding or recorded agreement; outdated merely means anchor drift, not fixed.", + "verification": "Read isResolved/isOutdated and implementing commit or linked follow-up; preserve unresolved material objections." + }, + { + "name": "dismissal.message / restrictions", + "values": [ + "required rationale", + "eligible actor" + ], + "decision_rule": "Dismiss only invalidated/unavailable-reviewer feedback with an explicit reason and policy authority; do not erase dissent to unblock merge.", + "verification": "Read dismissed review state and timeline rationale plus remaining effective review requirements." + } + ], + "sources": [ + "https://docs.github.com/en/rest/pulls/reviews", + "https://docs.github.com/en/rest/pulls/comments", + "https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/reviewing-proposed-changes-in-a-pull-request", + "https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/dismissing-a-pull-request-review" + ], + "community_sources": [], + "pitfalls": [ + "Review comments, issue-style PR comments and commit comments are different stores. Never respond to only the summary while missing inline threads." + ] + }, + { + "id": "merge-options-and-delivery", + "capability_ids": [ + "pr-merge", + "pr-auto-merge", + "pr-merge-queue", + "pr-update-revert-cleanup", + "pr-agent-merge" + ], + "title": "Merge settings and asynchronous delivery", + "applicability": "Repositories accepting merges; queue/auto-merge/Agent Merge only where supported and justified by throughput.", + "options": [ + { + "name": "allow_merge_commit / allow_squash_merge / allow_rebase_merge", + "values": [ + "independent booleans" + ], + "decision_rule": "Follow existing history policy and effective branch rules; retain squash-only delivery where the repository policy requires it. Avoid introducing several methods without a reason.", + "verification": "Read repository flags and allowed methods in effective rules; inspect actual resulting commit topology." + }, + { + "name": "squash_merge_commit_title / message", + "values": [ + "PR_TITLE or COMMIT_OR_PR_TITLE; PR_BODY or COMMIT_MESSAGES or BLANK" + ], + "decision_rule": "Prefer stable PR title plus reviewed useful body for a one-change PR; inspect generated message for accidental skip directives or sensitive diagnostics.", + "verification": "Preview final message and read resulting commit; verify expected CI ran on the merged SHA." + }, + { + "name": "merge_commit_title / message", + "values": [ + "PR_TITLE or MERGE_MESSAGE; PR_BODY or PR_TITLE or BLANK" + ], + "decision_rule": "If merge commits are enabled, choose a useful durable description without dumping transient logs.", + "verification": "Read supported enum payload and final commit message; no configuration claim from preview alone." + }, + { + "name": "merge.sha / merge_method", + "values": [ + "exact reviewed head SHA", + "merge/squash/rebase" + ], + "decision_rule": "Guard the merge against concurrent head changes; do not override required checks, outstanding review or queue to satisfy a local plan.", + "verification": "Re-read current head and gate state, then resulting merged flag, merge_commit_sha and base ref." + }, + { + "name": "auto-merge / queue entry", + "values": [ + "enabled/disabled", + "selected allowed merge method", + "queued state" + ], + "decision_rule": "Enable only for reviewed intent and qualifying rules; enqueue/enable is pending work, not completion.", + "verification": "Poll meaningful state changes until merge/failure or handoff; inspect queue removal reason and merged commit checks." + }, + { + "name": "update_branch.expected_head_sha / delete_branch_on_merge / revert", + "values": [ + "expected head guard", + "boolean", + "revert PR" + ], + "decision_rule": "Update only after inspecting divergence; delete truly merged disposable branches, retain long-lived branches. Revert through a tracked PR rather than history rewrite.", + "verification": "Confirm head after update, branch absent only when intended, and revert result against merged commit." + } + ], + "sources": [ + "https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests", + "https://docs.github.com/en/pull-requests/reference/pull-request-merges", + "https://docs.github.com/en/rest/pulls/pulls", + "https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/179965", + "observation": "A path-trigger investigation traced missing Actions runs to skip directives copied into a squash commit message.", + "official_check": "Official skip-workflow and squash-message documentation explains the mechanism. Inspect final message and run checks; do not conclude squash inherently breaks path filters." + } + ], + "pitfalls": [ + "Squash of a reused long-lived branch can replay prior commits in later PRs; start a fresh branch. Agent-merge eligibility must be checked separately." + ] + }, + { + "id": "project-identity-access", + "capability_ids": [ + "projects-lifecycle", + "projects-access", + "projects-items" + ], + "title": "Project scope, access and item identity", + "applicability": "Use Projects where the repository workflow calls for planning/tracking; public/private and organization/user ownership remain explicit choices.", + "options": [ + { + "name": "owner / number / node ID", + "values": [ + "organization Project", + "user Project", + "stable project ID" + ], + "decision_rule": "Reuse an existing matching Project; store owner/number/URL and node ID, never treat repository Projects flag as owner Project setup.", + "verification": "Read Project owner/ID/title/closed/public and linked repository list." + }, + { + "name": "visibility / base permission / explicit collaborators", + "values": [ + "public/private", + "none/read/write/admin where available", + "users/teams" + ], + "decision_rule": "Choose least privilege for the real audience; repository access and Project access are separate. Draft titles and custom data can expose information.", + "verification": "Read base/explicit grants and inspect as intended reader; do not broaden repo access to make a Project readable." + }, + { + "name": "item content type / IDs", + "values": [ + "Issue", + "PullRequest", + "DraftIssue; item ID distinct from content ID" + ], + "decision_rule": "Keep tracked work as native issues/PRs; draft ideas are appropriate before a repository is selected. Reuse existing item for content ID.", + "verification": "Paginate items and match content node ID/URL, including archived entries." + }, + { + "name": "draft conversion", + "values": [ + "destination repository", + "issue metadata" + ], + "decision_rule": "Convert when the work has a responsible repository; preserve draft body, relevant fields and links, and check access before conversion.", + "verification": "Read returned issue URL and item content type/field values; do not create a second item for the same work." + }, + { + "name": "item reorder / archive / delete", + "values": [ + "relative item order", + "archived flag", + "remove from Project" + ], + "decision_rule": "Use archive for recoverable history; deletion removes membership/field data, not the underlying issue.", + "verification": "Compare item IDs and saved values; restore archive when needed and verify representative fields." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-visibility-of-your-projects", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/193194", + "observation": "April 2026 report shows successful CLI add and issue association while list/UI omit the item.", + "official_check": "Treat as incident evidence, not a current general guarantee. Read actual item by ID, paginate, inspect archive/filter and relevant repository access before retrying." + } + ], + "pitfalls": [ + "Successful item-add is not proof that every view will show it: filters, archives, pagination, permissions or a service incident can hide the item." + ] + }, + { + "id": "project-field-schema", + "capability_ids": [ + "projects-fields", + "projects-field-values", + "projects-issue-fields", + "projects-multiselect" + ], + "title": "Project field configuration and value integrity", + "applicability": "Every Project; additional fields only when a real view, query or decision uses them.", + "options": [ + { + "name": "field data type / semantic scope", + "values": [ + "text", + "number", + "date", + "single select", + "iteration", + "supported multi-select", + "built-in issue fields" + ], + "decision_rule": "Reuse built-in title/assignee/type/milestone and shared issue facts; create local fields only for Project-specific planning.", + "verification": "Inventory field IDs/types and example values; distinguish issue fields from similar-name local fields." + }, + { + "name": "Status options / order / default", + "values": [ + "discovered IDs; e.g. Todo/In Progress/Done; optional default" + ], + "decision_rule": "Retain established names/IDs and explicitly define completion. Default to intake/Todo only if all newly added work is truly queued.", + "verification": "Read options/default and a newly added versus existing item; default changes must not silently rewrite old work." + }, + { + "name": "select label / description / color", + "values": [ + "option ID", + "label", + "meaning", + "available color enum" + ], + "decision_rule": "Give ambiguous statuses a usable entry/exit definition; preserve IDs across cosmetic changes. Colors supplement text, never replace meaning.", + "verification": "Compare option IDs before/after, sampled assignments and UI descriptions; inspect schema before option-list replacement." + }, + { + "name": "field mutation payload", + "values": [ + "typed text/number/date/singleSelectOptionId/iterationId", + "supported multi-select values" + ], + "decision_rule": "Send exactly the relevant value member using discovered IDs; clearing a field is a separate intentional action.", + "verification": "Read the changed field value and verify unrelated values remain; preserve zero versus unset." + }, + { + "name": "field deletion / option removal", + "values": [ + "keep", + "migrate", + "delete with affected-value inventory" + ], + "decision_rule": "Migrate populated values before any authorized deletion; export mapping because recreating the same name may not recover identity.", + "verification": "Compare all affected item values and saved-view/filter/workflow references; never prove safety using only one empty item." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-single-select-fields", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-text-and-number-fields", + "https://docs.github.com/en/graphql/reference/projects" + ], + "community_sources": [], + "pitfalls": [ + "Current single-select guide documents at most 50 options and an optional default for newly added items; target API/UI default support still requires discovery." + ] + }, + { + "id": "project-iterations", + "capability_ids": [ + "projects-iterations" + ], + "title": "Iteration schedules and rollover", + "applicability": "Only projects with real cadence; continuous-flow work does not need artificial sprints.", + "options": [ + { + "name": "iteration configuration", + "values": [ + "start date", + "duration number", + "days/weeks" + ], + "decision_rule": "Match the actual team's planning cadence and timezone assumptions; do not auto-create indefinite schedules.", + "verification": "Read configuration plus automatically created iterations and exact IDs/dates." + }, + { + "name": "iteration instance", + "values": [ + "title", + "startDate", + "duration", + "completed/active iteration ID" + ], + "decision_rule": "Preserve completed iteration identity and assignments; amend future dates deliberately rather than shifting historical interpretation.", + "verification": "Compare old/new date ranges and representative assigned work." + }, + { + "name": "breaks", + "values": [ + "insertion point", + "break date range" + ], + "decision_rule": "Reflect actual holidays/pauses; inspect generated dates after insertion rather than assuming later schedule is unchanged.", + "verification": "Re-read all affected intervals and check no unintended overlap or shifted promised dates." + }, + { + "name": "rollover", + "values": [ + "selected unfinished items", + "target iteration ID", + "preserve completed assignments" + ], + "decision_rule": "Move only unfinished selected work when agreed; keep prior commitment context in authorized update/history instead of silently rewriting all scope.", + "verification": "Compare item IDs/status and previous/target iteration assignments, including nonselected completed work." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-iteration-fields" + ], + "community_sources": [], + "pitfalls": [ + "An iteration field initially creates three iterations; a break initially follows the prior duration. Product defaults are starting data, not a planning decision." + ] + }, + { + "id": "project-saved-views", + "capability_ids": [ + "projects-views", + "projects-layout", + "projects-filters" + ], + "title": "View identity, shared configuration and safe filters", + "applicability": "Every Project with distinct intake, execution or reporting audiences; avoid duplicate views with no distinct purpose.", + "options": [ + { + "name": "view name / layout / position", + "values": [ + "table", + "board", + "roadmap; saved view ID/order" + ], + "decision_rule": "Name views by the decision they support, e.g. Intake, Active work, Release roadmap; set default/first useful view for readers.", + "verification": "Read every saved view and reload shared URL, including ordering and unsaved-change indicators." + }, + { + "name": "filter scope", + "values": [ + "repo/is/reason/assignee/label/type and custom field qualifiers supported in view" + ], + "decision_rule": "Store exact query, not a prose claim; include explicit repo/type/state where needed and quote multiword names.", + "verification": "Check representative included/excluded items and zero-value/unassigned cases; a filter is not an access boundary." + }, + { + "name": "number/date/iteration comparison", + "values": [ + "> >= < <=", + "ranges", + "@current/@next where supported" + ], + "decision_rule": "Use date/iteration semantics of this surface, not issue-search syntax; check boundary and timezone behavior with known values.", + "verification": "Inspect edge dates and missing values; compare returned content IDs to expected fixtures/current known items." + }, + { + "name": "view save / duplicate / reset / delete", + "values": [ + "saved shared changes", + "duplicate", + "discard unsaved", + "remove view" + ], + "decision_rule": "Save intended shared configuration explicitly; use a duplicate for experimentation and do not delete a view with active shared links casually.", + "verification": "Reopen as reader/new session and check persistent configuration and old navigation links." + }, + { + "name": "API versus UI", + "values": [ + "current REST view endpoints", + "GraphQL view mutations", + "UI advanced controls" + ], + "decision_rule": "Discover actual supported request fields; REST creation and GraphQL view CRUD exist, so avoid blanket UI-only claims.", + "verification": "Read saved configuration through supported surface; use rendered verification for unsupported controls." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/managing-your-views", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects", + "https://docs.github.com/en/rest/projects/views" + ], + "community_sources": [], + "pitfalls": [ + "Auto-add and auto-archive have narrower filter grammars than views. A valid view query cannot be copied blindly into automation." + ] + }, + { + "id": "project-layout-controls", + "capability_ids": [ + "projects-layout", + "projects-views" + ], + "title": "Table and board nested controls", + "applicability": "For every table or board view that is part of the project workflow.", + "options": [ + { + "name": "visible fields / column order / card fields", + "values": [ + "selected field IDs", + "ordering", + "shown/hidden fields" + ], + "decision_rule": "Show owner, status and the facts needed for this view; hide unused noise while preserving stored data.", + "verification": "Reload saved view and inspect expected header/card fields and order." + }, + { + "name": "board column field / visible columns / limits", + "values": [ + "single-select or iteration field", + "displayed values", + "column limit where offered" + ], + "decision_rule": "Use Status for execution, iteration for planning; hide columns only with an alternate way to find excluded work. Column limits are planning signals, not enforcement.", + "verification": "Verify field ID and value-to-column mapping; inspect hidden/no-value work and displayed limits." + }, + { + "name": "group by / vertical_group_by", + "values": [ + "supported field", + "no grouping" + ], + "decision_rule": "Group by responsible person, parent or priority for a real triage question; dragging across groups can edit underlying fields.", + "verification": "Read fields after an authorized drag and verify parent/assignee effects rather than assuming presentation-only movement." + }, + { + "name": "slice by", + "values": [ + "supported field", + "no slicing" + ], + "decision_rule": "Use for fast per-team/repository focus; title/reviewers/linked PRs are not supported slice fields in current guide.", + "verification": "Check slice plus saved filter intersection and clear selection to recover full view." + }, + { + "name": "sort primary/secondary / direction", + "values": [ + "field IDs", + "ascending/descending", + "no sorting" + ], + "decision_rule": "Use priority/date order when that drives work, manual order for explicit ranking; sorted boards disallow manual ordering within columns.", + "verification": "Read saved sorting and known equal-value tie examples; distinguish drag-to-column mutation from reorder." + }, + { + "name": "field sums", + "values": [ + "count", + "selected numeric fields" + ], + "decision_rule": "Sum only compatible measures; points are estimates and mixed currencies/units must not be combined.", + "verification": "Recompute a representative group from actual item values and compare displayed aggregate." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-table-layout", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout" + ], + "community_sources": [], + "pitfalls": [ + "Grouping a multi-assignee issue can show it in several groups; avoid interpreting row/card counts as unique work without checking IDs." + ] + }, + { + "id": "project-roadmap-controls", + "capability_ids": [ + "projects-layout", + "projects-views" + ], + "title": "Roadmap dates, markers and time windows", + "applicability": "Projects with dates or iteration commitments; omit when no credible schedule exists.", + "options": [ + { + "name": "Date fields.Start date / Target date", + "values": [ + "chosen date or iteration field IDs" + ], + "decision_rule": "Bind to explicit planning fields, not guessed names; distinguish planned dates from actual completion evidence.", + "verification": "Read both mappings and compare bar boundaries to item values; inspect undated work separately." + }, + { + "name": "Markers", + "values": [ + "iterations", + "milestone dates", + "item dates" + ], + "decision_rule": "Display only useful commitment/reference markers to avoid implying every date is a release deadline.", + "verification": "Inspect labels and actual source milestone/date values." + }, + { + "name": "Zoom", + "values": [ + "Month", + "Quarter", + "Year" + ], + "decision_rule": "Choose the smallest window supporting the planning decision; preserve a useful shared overview.", + "verification": "Reload view and inspect expected time window and clipped/offscreen work." + }, + { + "name": "roadmap drag / resize", + "values": [ + "changes start/target dates or selected iteration" + ], + "decision_rule": "Treat dragging as a real scheduling mutation; avoid accidental date changes during inspection.", + "verification": "Read changed field values and affected automation afterward; restore exact original values on accidental edit." + }, + { + "name": "group / slice / sort / sums", + "values": [ + "supported fields and order", + "none" + ], + "decision_rule": "Apply the same data-integrity rules as other layouts; maintain access to ungrouped/undated items through a table view.", + "verification": "Compare item IDs across roadmap and table to explain omissions without inventing missing work." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-roadmap-layout" + ], + "community_sources": [], + "pitfalls": [ + "A visually complete roadmap can exclude undated items; never equate visible bars with all project scope." + ] + }, + { + "id": "project-event-workflows", + "capability_ids": [ + "projects-workflows", + "projects-field-values" + ], + "title": "Event-driven Status transitions and issue closure", + "applicability": "Every Project, including apparently unconfigured Projects; defaults can already be active.", + "options": [ + { + "name": "workflow enabled / target field-option", + "values": [ + "per-workflow enabled flag", + "discovered Status option ID" + ], + "decision_rule": "Inventory every built-in event workflow before manual reconciliation; retain behavior only when transition matches the project's definition.", + "verification": "Read workflow trigger/enabled/target and verify a permitted representative transition." + }, + { + "name": "item added \u2192 Status", + "values": [ + "disabled", + "intake/Todo option" + ], + "decision_rule": "Default new work to intake if untriaged; do not overwrite imported/customized existing work as a setup side effect.", + "verification": "Observe new item value, existing populated item and applicable field default together." + }, + { + "name": "issue/PR closed \u2192 Done", + "values": [ + "enabled default", + "disabled", + "alternative supported option" + ], + "decision_rule": "Closed-not-planned is not successful delivery; decide whether one Done column intentionally includes cancellation or needs separate reporting.", + "verification": "Check reason and resulting Status for completed and not-planned examples; correct mismatches without reopening rejected work." + }, + { + "name": "PR merged \u2192 Done", + "values": [ + "enabled default", + "disabled", + "supported option" + ], + "decision_rule": "Merge may be completion for library work, but deployed systems may still require QA/release. Define that boundary explicitly.", + "verification": "Read merged commit, item Status and downstream release/deployment evidence separately." + }, + { + "name": "Status change \u2192 issue state", + "values": [ + "disabled", + "close issue on configured transition where supported" + ], + "decision_rule": "Enable only when board transitions truly authorize closing the issue; avoid circular/competing automation.", + "verification": "Read issue state/reason and both directions of workflow behavior; identify unexpected loops or last-writer wins." + }, + { + "name": "reopen / ready / review-related events", + "values": [ + "discovered host workflows" + ], + "decision_rule": "Inventory actual available triggers and decide each applicability rather than assume all event workflows exist everywhere.", + "verification": "Read current workflow list/schema/UI and verify exact resulting option IDs after relevant event." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations" + ], + "community_sources": [], + "pitfalls": [ + "Initialization enables closed\u2192Done and merged\u2192Done. A successful Status write can be immediately changed by another workflow; verify after automation settles." + ] + }, + { + "id": "project-auto-add", + "capability_ids": [ + "projects-auto-add", + "projects-actions" + ], + "title": "Auto-add filters, backfill and execution identity", + "applicability": "For repository intake needing reliable Project membership; custom Actions only for unsupported native needs.", + "options": [ + { + "name": "auto-add.repository / filter", + "values": [ + "per-repository selector", + "is/label/reason/assignee/no subset" + ], + "decision_rule": "Scope to intended repository and item kind; exclude automation noise deliberately. Validate native grammar independently of view query.", + "verification": "Read enabled workflow and exact filter; inspect a matching and a nonmatching permitted item." + }, + { + "name": "filter values / negation", + "values": [ + "is:open/closed/merged/draft/issue/pr", + "label names", + "reason", + "assignee", + "no:label/assignee/reason" + ], + "decision_rule": "Use supported values and negation (no does not support negation); quote labels. Do not invent arbitrary custom-field auto-add filters.", + "verification": "Preview/save and confirm actual matching content IDs; compare available grammar with current official guide." + }, + { + "name": "workflow count / duplicate", + "values": [ + "plan-dependent 1/5/20 limits currently documented", + "unique filters" + ], + "decision_rule": "Reuse existing workflows; Free has one, Pro/Team five, Enterprise twenty in current guide. Record plan gate rather than adding a token workaround silently.", + "verification": "Read actual count and entitlement; verify each repository selector and duplicate filter." + }, + { + "name": "existing backlog", + "values": [ + "explicit paginated backfill", + "future matching creates/updates" + ], + "decision_rule": "Enabling auto-add does not backfill existing matches; reconcile backlog as a separate authorized operation preserving item values.", + "verification": "List source issues/PRs, compare content IDs to active/archive membership and add only missing items." + }, + { + "name": "custom Action identity", + "values": [ + "installation token or authorized user credential", + "least Project/repository permissions" + ], + "decision_rule": "Repository GITHUB_TOKEN generally cannot stand in for owner Project write access; prefer a scoped App only when native workflow is insufficient.", + "verification": "Inspect workflow/token permissions without exposing secrets; verify membership and typed field values after execution." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions" + ], + "community_sources": [], + "pitfalls": [ + "Creating a dummy issue to test automation sends real notifications and is not a read-only check; use existing evidence or an explicitly authorized representative fixture." + ] + }, + { + "id": "project-auto-archive", + "capability_ids": [ + "projects-auto-archive", + "projects-items" + ], + "title": "Retention filters, existing matches and restoration", + "applicability": "Projects with a defined retention policy; keep disabled if release/QA remains open after issue closure.", + "options": [ + { + "name": "auto-archive.enabled / filter", + "values": [ + "disabled", + "enabled; is/reason/updated only" + ], + "decision_rule": "Prefer disabled until retention criteria are agreed; custom Status is not supported in this automation grammar.", + "verification": "Read exact saved filter and enabled state; enumerate matching existing items before enable." + }, + { + "name": "retention clock", + "values": [ + "updated relative-date expression supported by current surface" + ], + "decision_rule": "Do not call last-updated age closed-age; comments/labels/assignees/milestones/field changes can reset update time.", + "verification": "Test known boundary examples in this automation surface; record literal filter rather than translating comparator from memory." + }, + { + "name": "existing matches", + "values": [ + "immediately eligible after enable, potentially delayed processing" + ], + "decision_rule": "Inventory affected IDs/values first; unlike auto-add, auto-archive also processes old matching items.", + "verification": "Compare before/after active and archive IDs and counts until processing settles." + }, + { + "name": "archive versus capacity", + "values": [ + "recoverable archive", + "Project membership deletion" + ], + "decision_rule": "Archive keeps custom data and supports restore but still counts toward current 50,000 combined item limit. Deletion needs a separate retention decision.", + "verification": "Read archive entries and restored values; verify underlying issue remains unchanged." + }, + { + "name": "recovery", + "values": [ + "disable workflow", + "restore selected archived item IDs" + ], + "decision_rule": "Stop faulty automation first, restore exact affected items and values, then correct filter before re-enabling.", + "verification": "Re-read saved filter and representative restored fields; inspect re-archival to detect remaining bad criteria." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/archiving-items-from-your-project" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/36466", + "observation": "Historical reports include unsupported Status filters, unexpected archive effects and confusing recovery.", + "official_check": "Current guide restricts filters to is/reason/updated and documents preservation/restoration. Use those verified limits rather than obsolete 1,200-item claims." + }, + { + "url": "https://github.com/orgs/community/discussions/17085", + "observation": "Users ask for closed-date retention and suggest updated-based workarounds.", + "official_check": "Updated and closed time are different clocks; do not repeat a community workaround as exact closure retention." + } + ], + "pitfalls": [ + "Historical Community reports describe invalid filters partly executing; do not present that old bug as current. Validate native grammar and preserve a restoration inventory." + ] + }, + { + "id": "project-insights-and-updates", + "capability_ids": [ + "projects-insights", + "projects-updates" + ], + "title": "Charts, historical interpretation and project health", + "applicability": "Projects where someone consumes the report; do not create decorative metrics or post updates without authorization.", + "options": [ + { + "name": "chart filter / layout / X-axis / group", + "values": [ + "supported chart types", + "selected category field", + "Time for historical chart", + "group or None" + ], + "decision_rule": "Name the actual decision and denominator; chart filters are their own saved configuration, not inherited proof from an open view.", + "verification": "Open saved chart and compare included content IDs/known sample; verify reader access." + }, + { + "name": "Y-axis / numeric field", + "values": [ + "count", + "sum", + "average", + "minimum", + "maximum; selected numeric field" + ], + "decision_rule": "Count unique work or aggregate compatible numeric units; never equate estimate sums with actual labor or outcome value.", + "verification": "Recompute sample groups including missing/zero values and inspect saved aggregate and field mapping." + }, + { + "name": "historical chart state / retention", + "values": [ + "Time axis; Open/Completed/Closed pull requests/Not planned" + ], + "decision_rule": "Historical charts track native issue/PR states, not arbitrary local Status history. Insights does not track archived or deleted items, so retention affects reporting.", + "verification": "Compare known state transitions and active/archive membership; do not report archive-filtered history as all-time delivery." + }, + { + "name": "status update.status", + "values": [ + "ON_TRACK", + "AT_RISK", + "OFF_TRACK", + "INACTIVE", + "COMPLETE" + ], + "decision_rule": "Set overall project health from evidence, separately from issue open/closed and item Status; meaningful bad news must remain visible.", + "verification": "Read saved update ID/status and chronological update history." + }, + { + "name": "status update.startDate / targetDate / body", + "values": [ + "dates", + "Markdown message", + "prior values as form defaults" + ], + "decision_rule": "Include reason, evidence and next decision; inspect inherited previous dates rather than republish stale commitments. Append meaningful updates, edit only corrections.", + "verification": "Read resulting dates/body and prior entries; templates cannot receive updates and subscriptions can notify readers." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/configuring-charts", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/about-insights-for-projects", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/sharing-project-updates", + "https://docs.github.com/en/graphql/reference/projects" + ], + "community_sources": [], + "pitfalls": [ + "Chart controls may require UI even when field/view APIs exist. Do not claim chart configuration from project item listing or API capability indexing." + ] + }, + { + "id": "project-copy-template", + "capability_ids": [ + "projects-templates", + "projects-lifecycle", + "projects-access", + "projects-workflows" + ], + "title": "Template/copy fidelity and initial conditions", + "applicability": "Repeated project patterns; do not create a template where one Project already suffices.", + "options": [ + { + "name": "copy owner / title / draft selection", + "values": [ + "organization/user owner", + "new title", + "copy draft issues checkbox" + ], + "decision_rule": "Choose destination deliberately and copy example drafts only when useful; inspect template contents for confidential planning text.", + "verification": "Read new owner/title/ID and copied draft bodies/values." + }, + { + "name": "copied configuration", + "values": [ + "views", + "custom fields", + "draft field values", + "workflows except auto-add", + "insights" + ], + "decision_rule": "Treat copied settings as a starting point, not desired final state; inherited automation can immediately affect new work.", + "verification": "Compare each copied component and field-option mappings independently with source snapshot." + }, + { + "name": "not copied", + "values": [ + "original issue/PR items", + "collaborators", + "team/repository links", + "auto-add workflows" + ], + "decision_rule": "Recreate only applicable omitted relationships and intake workflow under authorized access scope; backfill existing work separately.", + "verification": "Read membership, grants, links and enabled auto-add on destination; source configuration proves nothing about destination completion." + }, + { + "name": "organization template / recommendations", + "values": [ + "mark/unmark template", + "recommended template list" + ], + "decision_rule": "Curate only usable templates with documented fields and workflow expectations; avoid promoting an unverified personal experiment.", + "verification": "Read template status and organization recommendation visibility as intended member." + } + ], + "sources": [ + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project", + "https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-project-templates-in-your-organization" + ], + "community_sources": [], + "pitfalls": [ + "Copied field/option IDs are destination identities; never apply source item/field IDs to the new Project by name alone." + ] + }, + { + "id": "discussion-categories-and-forms", + "capability_ids": [ + "discussions-lifecycle", + "discussions-organization" + ], + "title": "Discussion purposes, category formats and intake", + "applicability": "Public/community projects or genuinely cross-repository decisions; small internal work can stay in issues.", + "options": [ + { + "name": "repository versus organization source", + "values": [ + "repository Discussions", + "designated organization source repository" + ], + "decision_rule": "Keep repo-specific support near code; organization-wide discussions need explicit source-repository governance and access review.", + "verification": "Read enabled surface, source repository and moderator roles; inspect audience before publishing." + }, + { + "name": "category.name / emoji / description / format", + "values": [ + "open-ended", + "Q&A", + "announcement", + "Polls where offered" + ], + "decision_rule": "Use Q&A for answerable support, open-ended for design, announcement for maintainer-origin updates. Inspect current Polls control rather than treating docs prose inconsistencies as universal support.", + "verification": "Read category IDs and actual format/answerability; announcement posting has stricter permissions than replies." + }, + { + "name": "section membership / category rename/delete", + "values": [ + "one section per category", + "rename in place", + "Delete & Move target" + ], + "decision_rule": "Reuse category IDs; preserve navigation and discussion history. Deleting a category moves discussions to a chosen existing category.", + "verification": "Compare IDs/format and counts, destination and old shared links; inspect forms after slug changes." + }, + { + "name": "category form path / top-level schema", + "values": [ + ".github/DISCUSSION_TEMPLATE/.yml; body/labels/title" + ], + "decision_rule": "Match category slug exactly; use supported controls, not issue-form assignee/projects/type top-level keys.", + "verification": "Open actual category composer on default branch and validate required/non-Markdown fields without posting." + }, + { + "name": "labels / pins", + "values": [ + "existing repository labels", + "global/category pins; four per scope" + ], + "decision_rule": "Pin actionable entry points with a moderator/response owner; avoid a duplicate label taxonomy.", + "verification": "Read pin location, appearance and rendered routing links; global pins and category pins are distinct." + }, + { + "name": "category movement / poll intake", + "values": [ + "recategorize eligible discussion", + "Polls category cannot move to/from" + ], + "decision_rule": "Select a valid format before intake; do not promise migration of a normal topic into a poll by changing category.", + "verification": "Read current category/format and eligible destinations; preserve original topic links." + } + ], + "sources": [ + "https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions", + "https://docs.github.com/en/discussions/managing-discussions-for-your-community/syntax-for-discussion-category-forms", + "https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/about-discussions", + "https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions" + ], + "community_sources": [], + "pitfalls": [ + "Enabling Discussions creates a surface, not a staffed support process. Define who monitors unanswered questions and how decisions become tracked work." + ] + }, + { + "id": "discussion-response-and-moderation", + "capability_ids": [ + "discussions-lifecycle", + "discussions-answers" + ], + "title": "Answers, polls, conversions and moderation history", + "applicability": "Every authorized discussion interaction; high-impact moderation requires exact task scope.", + "options": [ + { + "name": "answer selection", + "values": [ + "mark answer", + "unmark", + "Q&A eligible comment" + ], + "decision_rule": "Mark a correct reusable solution with supporting explanation; an accepted answer is not proof a linked implementation shipped.", + "verification": "Read answer ID/body/author and category answerability; retain unresolved follow-up." + }, + { + "name": "reply hierarchy / poll vote", + "values": [ + "replyToId", + "pollOptionId; viewerCanVote/viewerHasVoted" + ], + "decision_rule": "Respond to the right question; inspect existing viewer vote and options. Voting is personal participation, not setup.", + "verification": "Read reply parent and viewer vote state/counts; never cast a vote merely to test a feature." + }, + { + "name": "poll content", + "values": [ + "discussion title/body", + "question", + "at least two options in Polls composer" + ], + "decision_rule": "Choose clear distinct options and explain how feedback informs a decision; do not invent supported close dates, anonymity or binding voting rules.", + "verification": "Preview composer and read poll question/options/order after an authorized creation; creation API support needs its own discovery." + }, + { + "name": "lock / close / reason / allow reactions", + "values": [ + "lock/unlock", + "close/reopen", + "reason supported by host", + "reaction toggle" + ], + "decision_rule": "Prefer explanation and narrow moderation; lock restricts interaction while preserving content. Do not silence technical disagreement.", + "verification": "Read locked/closed/reason and rendered notice; confirm permitted moderators and reactions separately." + }, + { + "name": "issue \u2192 discussion conversion", + "values": [ + "category ID", + "original issue and resulting discussion IDs" + ], + "decision_rule": "Use only when conversation rather than committed work is appropriate; explain routing when messaging is authorized and snapshot original history first.", + "verification": "Read both objects, canonical links, authors, all comment/reaction pages and issue closure/lock behavior; reconcile timeout before retry." + }, + { + "name": "create issue from discussion", + "values": [ + "linked new issue in responsible repository" + ], + "decision_rule": "Track accepted actionable work while retaining the discussion decision trail; do not assume participants/subscriptions or every metadata field move.", + "verification": "Read both cross-links and preserve original authors and decision context." + }, + { + "name": "transfer discussion", + "values": [ + "eligible same-owner destination repository or organization source repo" + ], + "decision_rule": "Destination creation permission is required; private-to-public and announcement transfers are unsupported. Review audience before any allowed transfer.", + "verification": "Read destination repository/category/access and retained comments/links; reconcile original and returned discussion IDs." + }, + { + "name": "minimize / delete", + "values": [ + "classification and restore", + "irreversible deletion" + ], + "decision_rule": "Use least destructive appropriate moderation with reason; deletion is not a substitute for marking superseded information.", + "verification": "Read minimized state or exact deleted ID and preserve required moderation rationale without redistributing sensitive content." + } + ], + "sources": [ + "https://docs.github.com/en/discussions/managing-discussions-for-your-community/moderating-discussions", + "https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion", + "https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions", + "https://docs.github.com/en/graphql/reference/discussions" + ], + "community_sources": [ + { + "url": "https://github.com/orgs/community/discussions/152627", + "observation": "February 2025 conversion-to-404 incident was reported fixed by GitHub staff in March 2025.", + "official_check": "Current moderation docs describe conversion; verify each resulting object and retained comments rather than treat this as a present platform outage." + }, + { + "url": "https://github.com/orgs/community/discussions/3197", + "observation": "Maintainers describe user confusion about converted issues becoming closed/locked and request clearer traceability.", + "official_check": "Use current official flow plus actual post-conversion reads; communicate destination and preserve the old decision trail when authorized." + }, + { + "url": "https://github.com/orgs/community/discussions/2952", + "observation": "Long history includes contradictory conversion advice and assumptions about participant/watch preservation.", + "official_check": "Official current docs, not a recent unverified forum reply, determine supported flow; inspect destination authors/comments/access independently." + } + ], + "pitfalls": [ + "Community conversion threads contain conflicting claims and historical incidents. Current official conversion flow exists; do not repeat a claim that conversion is universally unavailable." + ] + }, + { + "id": "wiki-publication-history", + "capability_ids": [ + "wiki-pages", + "wiki-navigation" + ], + "title": "Wiki content, publication, permissions and discoverability", + "applicability": "Projects needing a Wiki; separate site/Pages only when user need justifies it.", + "options": [ + { + "name": "enabled / editing audience", + "values": [ + "has_wiki", + "collaborators-only", + "public editing on eligible public repos" + ], + "decision_rule": "Default to repository writers for project policy/docs; public editing is a governance choice, not a completeness requirement.", + "verification": "Read repository flag and actual Wiki access control; public/private visibility follows repository audience." + }, + { + "name": "source repository / publication ref", + "values": [ + "OWNER/REPO.wiki.git", + "actual wiki branch and SHA" + ], + "decision_rule": "Clone/fetch Wiki separately; preserve other contributors' commits and compare source wiki/ files before publishing.", + "verification": "Compare remote before/after commit SHA and rendered pages; source files alone are not proof of publication." + }, + { + "name": "page title / filename / markup", + "values": [ + "supported file extension", + "stable page slug", + "relative links" + ], + "decision_rule": "Keep page naming stable and explicit; avoid filesystem case collisions and check renamed-page backlinks.", + "verification": "Render pages and follow links on GitHub, inspect separate Wiki Git log and page history." + }, + { + "name": "navigation", + "values": [ + "Home", + "_Sidebar.", + "_Footer." + ], + "decision_rule": "Provide install/use/config/troubleshooting navigation based on actual project scope; footer can carry source/version context.", + "verification": "Open every navigation destination, heading anchor and asset as intended reader." + }, + { + "name": "change message / correction / recovery", + "values": [ + "meaningful commit", + "revert commit", + "merge remote changes" + ], + "decision_rule": "Record what changed and why; recover with a new corrective commit rather than force-overwrite others' Wiki work.", + "verification": "Read remote ancestry and page revision, compare preserved unrelated pages and restored content." + }, + { + "name": "indexing / size constraints", + "values": [ + "search-engine eligibility", + "current soft file limit" + ], + "decision_rule": "Do not promise search-engine discovery for a small Wiki; current guide requires 500 stars and restricted public editing, with soft 5,000-file limit.", + "verification": "Inspect actual audience/search behavior; consider Pages only if indexing or size is an actual requirement." + } + ], + "sources": [ + "https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis", + "https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages", + "https://docs.github.com/en/communities/documenting-your-project-with-wikis/creating-a-footer-or-sidebar-for-your-wiki", + "https://docs.github.com/en/communities/documenting-your-project-with-wikis/viewing-a-wikis-history-of-changes" + ], + "community_sources": [], + "pitfalls": [ + "A main-repository pull request does not review/enforce separate Wiki pushes automatically; document the publication check and do not conflate branches." + ] + }, + { + "id": "search-and-discovery", + "capability_ids": [ + "search-cross-github", + "search-code", + "search-issues-prs", + "issue-saved-views" + ], + "title": "Search surfaces, query semantics and completeness", + "applicability": "Discovery before every duplicate-sensitive operation; authoritative owning endpoints for final facts.", + "options": [ + { + "name": "code search surface", + "values": [ + "browser Code Search", + "REST legacy code search", + "local rg/git grep" + ], + "decision_rule": "Choose syntax for the actual engine; browser Boolean/regex/symbol features do not imply equivalent REST support. Use local Git for exact nondefault-revision inspection.", + "verification": "Record engine, repository and revision; retrieve matched file at immutable SHA before acting." + }, + { + "name": "modern code query", + "values": [ + "repo/org/user", + "path/language/symbol/content", + "quoted strings", + "/regex/", + "AND/OR/NOT" + ], + "decision_rule": "Scope narrowly and escape literals correctly; a bare term can match path or content. Inspect actual engine limits before assuming exhaustive indexing.", + "verification": "Reproduce match locally at known revision and inspect excluded files/ref; empty search is not absence proof." + }, + { + "name": "issue/PR query", + "values": [ + "is:issue/is:pr", + "state/reason", + "author/assignee", + "review/review-requested", + "linked", + "dates" + ], + "decision_rule": "Use explicit type and repository scope, native review qualifiers for review queues and dates for bounded investigations.", + "verification": "Retrieve every consequential issue/PR by ID and paginate authoritative collection for completeness." + }, + { + "name": "Discussion query", + "values": [ + "repo/org", + "in:title/body/comments", + "category", + "is:answered/unanswered where supported", + "dates" + ], + "decision_rule": "Search existing answers/decisions before creating a new topic; category and issue-search grammars differ.", + "verification": "Open original discussion, current answer and full relevant replies; check date of claim and superseding staff response." + }, + { + "name": "REST search result limits", + "values": [ + "per_page/page", + "incomplete_results", + "capped result windows" + ], + "decision_rule": "Treat results as indexed discovery; split disjoint date/repository ranges and reconcile total counts when cap or incompleteness appears.", + "verification": "Inspect incomplete_results and available pages, deduplicate IDs; use owning lists/GraphQL/Git if a full inventory is required." + }, + { + "name": "saved queries / issue views", + "values": [ + "name/query", + "personal versus shared saved surface" + ], + "decision_rule": "Save useful triage/review queries with explicit audience; a personal saved search is not a shared Project view.", + "verification": "Reload as same viewer, inspect exact query and validate known expected item membership." + } + ], + "sources": [ + "https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax", + "https://docs.github.com/en/search-github/searching-on-github/searching-code", + "https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests", + "https://docs.github.com/en/search-github/searching-on-github/searching-discussions", + "https://docs.github.com/en/rest/search/search" + ], + "community_sources": [], + "pitfalls": [ + "Masked private objects, indexing lag, engine-specific limits and search caps mean zero results cannot establish absence or permission. Never use obsolete legacy limits as modern Code Search limits." + ] + }, + { + "id": "ruleset-targets-and-insights", + "capability_ids": [ + "repository-rulesets", + "ruleset-insights" + ], + "title": "Ruleset scope, bypass and evaluation evidence", + "applicability": "Every repository audit; enforce only with repository policy, eligible plan and a tested contribution path.", + "options": [ + { + "name": "target / conditions", + "values": [ + "branch", + "tag", + "push; ref_name include/exclude; repository targeting at owner scope" + ], + "decision_rule": "Inspect inherited rules and select exact intended ref patterns, including default-branch symbolic selectors when supported; exclusion can silently remove protection.", + "verification": "Read ruleset IDs/source/enforcement plus effective rules for a representative matching and excluded ref." + }, + { + "name": "enforcement", + "values": [ + "disabled", + "active", + "evaluate on eligible Enterprise plans" + ], + "decision_rule": "Disabled protects nothing; evaluate observes without blocking and needs a plan check. Preview broad new policy in evaluate where available before enforcement.", + "verification": "Read saved mode and rule-suite results; do not report evaluate as protected." + }, + { + "name": "bypass_actors.actor_type / actor_id / bypass_mode", + "values": [ + "eligible role/team/App IDs; always", + "pull_request", + "exempt where supported" + ], + "decision_rule": "Preserve existing authorized exceptions and choose the narrowest useful mode; exempt does not run rules or create a bypass audit entry.", + "verification": "Read actor identity/mode and confirm no accidental broad role exception or App removal." + }, + { + "name": "rule suite filters", + "values": [ + "ref", + "actor_name", + "rule_suite_result", + "time_period; pass/fail/bypass" + ], + "decision_rule": "Inspect operational failures and bypass use, not merely policy JSON. Check current endpoint filter enums and retention before querying.", + "verification": "Read suite ID, actor, ref, evaluation time and per-rule result; distinguish evaluate failures from blocked writes." + }, + { + "name": "ruleset history / import-export", + "values": [ + "ruleset ID/version", + "export JSON", + "reviewed imported settings" + ], + "decision_rule": "Preserve baseline/version and review imported selectors/actor IDs; source owner IDs do not automatically mean destination identities.", + "verification": "Compare saved ruleset history, exact imported payload and effective target rules; revert with a corrective version." + } + ], + "sources": [ + "https://docs.github.com/en/rest/repos/rules", + "https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository" + ], + "community_sources": [], + "pitfalls": [ + "Multiple rulesets can apply together with classic protection. A clear ruleset read does not prove the actor had no bypass or that another inherited rule did not apply." + ] + }, + { + "id": "branch-and-merge-gates", + "capability_ids": [ + "branch-protection", + "repository-merge-policy" + ], + "title": "Effective review/check requirements and compatible merge behavior", + "applicability": "All protected default/release branches; single-maintainer workflows must not require impossible self-approval.", + "options": [ + { + "name": "required_pull_request_reviews", + "values": [ + "required_approving_review_count", + "dismiss_stale_reviews", + "require_code_owner_reviews", + "require_last_push_approval" + ], + "decision_rule": "Choose actual independent reviewer availability; stale/last-push rules must match team workflow. Zero peer approval may be intentional with required checks.", + "verification": "Read effective rules and representative current-head review states; inspect reviewer eligibility and outstanding changes requests." + }, + { + "name": "review dismissal / bypass restrictions", + "values": [ + "dismissal_restrictions", + "bypass_pull_request_allowances", + "users/teams/apps" + ], + "decision_rule": "Retain narrowly justified emergency routes; never add the running agent as bypass to complete setup.", + "verification": "Compare actor IDs and enabled restrictions, and inspect subsequent dismissal/bypass evidence." + }, + { + "name": "required_status_checks", + "values": [ + "strict", + "checks context/app_id", + "legacy contexts" + ], + "decision_rule": "Bind stable check names to expected Apps where supported; strict requires up-to-date branch, queue needs merge_group CI support.", + "verification": "Compare rules to actual check-run names/App IDs on PR and merge-group SHAs; skipped or pending is not passing." + }, + { + "name": "enforce_admins / restrictions", + "values": [ + "admin enforcement boolean", + "allowed users/teams/apps", + "block_creations where supported" + ], + "decision_rule": "Decide administrator policy deliberately; push allowlists are not equivalent to review bypass. Preserve existing emergency ownership.", + "verification": "Read protection and ruleset bypass together; verify effective actor rights without making a disruptive test push." + }, + { + "name": "history / signatures / deletion", + "values": [ + "require_linear_history", + "required_signatures", + "allow_force_pushes", + "allow_deletions", + "lock_branch" + ], + "decision_rule": "Match legitimate release workflow and retain no-force/no-delete for protected history unless specifically justified. Locked branches and fork-sync settings need separate intent.", + "verification": "Read all flags and branch status; verify merge methods remain compatible with linear history." + }, + { + "name": "conversation/deployment/security gates", + "values": [ + "required_conversation_resolution", + "required deployments", + "required code/secret/quality rules where supported" + ], + "decision_rule": "Require gates only when their producer/workflow exists and can complete; determine exact environment/tool thresholds from the schema and project policy.", + "verification": "Read named environments/tool thresholds and current-head gate results; do not disable failing gates as recovery." + }, + { + "name": "repository merge flags", + "values": [ + "allow_merge_commit/squash/rebase", + "allow_auto_merge", + "allow_update_branch", + "delete_branch_on_merge" + ], + "decision_rule": "Keep methods compatible with effective rules; auto-update visibility is not auto-merge or branch freshness. Clean only disposable merged heads.", + "verification": "Read repository flags and PR merge box/effective rule methods; inspect final merge topology and branch cleanup." + }, + { + "name": "merge queue parameters", + "values": [ + "check timeout", + "minimum/maximum group size", + "grouping strategy", + "merge method where offered" + ], + "decision_rule": "Use only when contention justifies it; inspect current host schema for exact names/enums and ensure queue check triggers exist.", + "verification": "Read queue rule payload and representative merge_group results, queue removal reasons and merged SHA." + } + ], + "sources": [ + "https://docs.github.com/en/rest/branches/branch-protection", + "https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets", + "https://docs.github.com/en/rest/repos/repos" + ], + "community_sources": [], + "pitfalls": [ + "Classic protection update endpoints can replace nested objects and clear omitted policy. Snapshot and merge intended changes; one protected-branch endpoint cannot establish full ruleset enforcement." + ] + }, + { + "id": "notification-and-activity-state", + "capability_ids": [ + "notifications-watch", + "notifications-inbox", + "activity-events" + ], + "title": "Personal watch choices, inbox triage and feed limitations", + "applicability": "Only the authenticated user\u2019s authorized personal preferences; repository setup does not authorize following/watching or marking inbox items done.", + "options": [ + { + "name": "repository subscription", + "values": [ + "subscribed", + "ignored", + "custom event selection through supported UI" + ], + "decision_rule": "Preserve user preference; watch only requested event categories and distinguish ignored from simply not subscribed. Stars bookmark rather than subscribe.", + "verification": "Read subscription as same user plus UI custom categories; subscribers_count differs from legacy watchers_count/stargazers_count." + }, + { + "name": "watcher list restrictions", + "values": [ + "admin/collaborator-only listing", + "deprecated user watched-repo endpoint" + ], + "decision_rule": "Current docs describe July 2026 restrictions and deprecated endpoint empty responses; do not infer nobody watches from an empty legacy list.", + "verification": "Check endpoint status/auth identity and direct repository subscription state." + }, + { + "name": "inbox query", + "values": [ + "all", + "participating", + "since", + "before", + "repository", + "reason; UI custom filters" + ], + "decision_rule": "Choose smallest needed read window and paginate; inspect reason such as mention/review_request/assign rather than treating all notifications equally.", + "verification": "Read thread ID/subject/reason/unread/last_read_at and canonical owning object." + }, + { + "name": "triage operation", + "values": [ + "read/unread", + "done", + "saved", + "unsubscribe" + ], + "decision_rule": "Read acknowledges visibility; done hides completed notifications, save retains attention, unsubscribe changes future delivery. Apply only explicitly intended selected threads.", + "verification": "Re-read selected thread and UI saved/done state; compare unaffected threads, and reconcile ambiguous writes before retry." + }, + { + "name": "retention / subscription recovery", + "values": [ + "done retained five months", + "saved indefinitely", + "resubscribe" + ], + "decision_rule": "Inbox is not permanent project history; unsaving old notifications can make them disappear. Unsubscribe can be superseded by later mention or review request.", + "verification": "Preserve canonical issue/PR URLs for durable context and verify subscription after authorized recovery." + }, + { + "name": "authentication / polling", + "values": [ + "classic PAT notifications/repo scopes per current notification docs", + "Last-Modified/ETag", + "X-Poll-Interval" + ], + "decision_rule": "Do not assume fine-grained/App tokens support notification endpoints. Respect server polling interval and conditional requests.", + "verification": "Inspect authentication compatibility and 304 semantics without exposing credentials; permission failure remains unknown state." + }, + { + "name": "activity feed window", + "values": [ + "up to 300 events", + "past 30 days", + "latency 30 seconds to six hours" + ], + "decision_rule": "Use feeds for discovery, not real-time completion or complete audit history. Prefer owning issue/PR/commit state for consequential facts.", + "verification": "Record event ID/time and owning object evidence; honor ETag and X-Poll-Interval." + } + ], + "sources": [ + "https://docs.github.com/en/rest/activity/watching", + "https://docs.github.com/en/rest/activity/notifications", + "https://docs.github.com/en/rest/activity/events", + "https://docs.github.com/en/subscriptions-and-notifications/how-tos/viewing-and-triaging-notifications/managing-notifications-from-your-inbox" + ], + "community_sources": [], + "pitfalls": [ + "Personal inbox Done is unrelated to issue closure or Project Done; never complete work by clearing its notification." + ] + }, + { + "id": "community-personal-replies-and-moderation", + "capability_ids": [ + "community-saved-replies", + "community-comment-minimization", + "community-interaction-limits" + ], + "title": "Reusable drafts, reversible hiding and temporary interaction limits", + "applicability": "Community repositories with real support/moderation needs; personal replies and broad restrictions require explicit scope.", + "options": [ + { + "name": "saved reply title / body / selection", + "values": [ + "personal title", + "Markdown body", + "create/edit/delete", + "insert and customize" + ], + "decision_rule": "Store generic accurate routing text and customize to the actual report; inserting a draft does not authorize sending. Current documented cap is 100 replies.", + "verification": "Reload personal reply settings and preview inserted draft; do not post a test reply." + }, + { + "name": "minimizeComment.subjectId / classifier", + "values": [ + "ABUSE", + "OFF_TOPIC", + "OUTDATED", + "RESOLVED", + "DUPLICATE", + "SPAM" + ], + "decision_rule": "Pick a justified classification and preserve the discussion; disagreement or inconvenient findings are not abuse. Check actor/type eligibility first.", + "verification": "Read viewerCanMinimize/isMinimized/minimizedReason plus original comment link and rendered visibility." + }, + { + "name": "unminimize / deletion distinction", + "values": [ + "restore hidden comment", + "delete separately authorized content" + ], + "decision_rule": "Use restoration when hiding was mistaken; minimized content still exists and cannot be treated as erased sensitive data.", + "verification": "Read restored state and inspect full thread; handle actual secret exposure through the applicable security process." + }, + { + "name": "interaction scope / inheritance", + "values": [ + "repository", + "organization public repositories", + "user-owned public repositories" + ], + "decision_rule": "Choose the narrowest incident scope and inspect inherited limits before overriding; broad owner controls affect uninvolved contributors.", + "verification": "Read effective repo and owner restrictions and record actor, scope and expiry." + }, + { + "name": "interaction limit / expiry", + "values": [ + "existing_users", + "contributors_only", + "collaborators_only; one_day/three_days/one_week/one_month/six_months" + ], + "decision_rule": "Prefer the shortest effective restriction consistent with authorized moderation; do not silently block ordinary reporters for routine setup.", + "verification": "Read limit and expires_at from owning endpoint and inspect class semantics; never validate by posting disruption." + }, + { + "name": "remove / expire / blocked users", + "values": [ + "remove temporary limit", + "automatic expiry", + "separate account blocking" + ], + "decision_rule": "Restore normal participation after incident and keep rationale; removing a repository limit does not remove an inherited owner restriction.", + "verification": "Re-read repo/owner limit state and separate block lists where authorized; distinguish expired from inaccessible." + } + ], + "sources": [ + "https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/about-saved-replies", + "https://docs.github.com/en/graphql/reference/issues", + "https://docs.github.com/en/rest/interactions/repos", + "https://docs.github.com/en/rest/interactions/orgs", + "https://docs.github.com/en/rest/interactions/user" + ], + "community_sources": [], + "pitfalls": [ + "No stable saved-reply CRUD API is established here; inspect current UI. Comment minimization, conversation lock, interaction limit and account blocking are separate controls." + ] + }, + { + "id": "profile-personal-presence", + "capability_ids": [ + "profile-status", + "profile-star-lists", + "profile-content-pins", + "profile-follow-organizations" + ], + "title": "Personal availability, bookmarks, featured work and following", + "applicability": "Personal-account actions only when the user requests them; not mandatory repository setup.", + "options": [ + { + "name": "status content / scope", + "values": [ + "emoji", + "message", + "organizationId or public null" + ], + "decision_rule": "Preserve user wording and audience; avoid publishing private project details as status. Organization-scoped status is not an organization announcement.", + "verification": "Read emoji/message/organization and inspect rendering as intended audience." + }, + { + "name": "status availability / expiration", + "values": [ + "limitedAvailability boolean", + "expiresAt timestamp", + "clear status" + ], + "decision_rule": "Set busy only for requested availability; use intended timezone converted to exact expiry rather than leave a temporary absence indefinitely.", + "verification": "Read indicatesLimitedAvailability/expiresAt and verify removal/expiry; personal status is unrelated to work-item Status." + }, + { + "name": "star list name / description / membership", + "values": [ + "create/update/delete list", + "repository membership IDs", + "starring independently" + ], + "decision_rule": "Keep bookmark organization separate from follow/watch; preserve unrelated list memberships in updateUserListsForItem replacement operations.", + "verification": "Read list ID/content and repository star state separately; list deletion is not repository deletion." + }, + { + "name": "profile README / pins", + "values": [ + "USER/USER README", + "up to six repositories/gists combined", + "pin order" + ], + "decision_rule": "Publish only user-approved profile content and intended public featured work; use valid account-named repository for README.", + "verification": "Read immutable README commit and public rendered profile/pin order; preserve existing selections." + }, + { + "name": "contribution/profile visibility", + "values": [ + "public/private profile", + "private contribution display", + "achievements/activity options where offered" + ], + "decision_rule": "Treat as personal privacy choice; anonymized private activity is not permission to reveal private repository names.", + "verification": "Inspect profile as owner and public viewer; verify current UI rather than assume profile REST edits cover these settings." + }, + { + "name": "organization following", + "values": [ + "follow/unfollow org", + "viewerIsFollowing" + ], + "decision_rule": "Follow only requested organizations; preview feature supplies public activity, not membership or repository access.", + "verification": "Read following relation as same viewer and inspect dashboard; no requirement to generate activity for a test." + } + ], + "sources": [ + "https://docs.github.com/en/graphql/reference/users", + "https://docs.github.com/en/account-and-profile/concepts/personal-profile", + "https://docs.github.com/en/account-and-profile/how-tos/profile-customization/pinning-items-to-your-profile", + "https://docs.github.com/en/get-started/exploring-projects-on-github/following-organizations" + ], + "community_sources": [], + "pitfalls": [ + "Personal starring, following, availability and profile changes can reveal preferences and should not be silently bundled with a repository audit." + ] + }, + { + "id": "sponsors-listing-onboarding", + "capability_ids": [ + "sponsors-listing" + ], + "title": "Sponsors identity, eligibility and public listing", + "applicability": "Only an owner requesting fundraising; a public/open-source repository does not establish Sponsors eligibility or authorize enrollment.", + "options": [ + { + "name": "listing identity", + "values": [ + "authenticated personal account", + "sponsorableLogin organization" + ], + "decision_rule": "Select the actual beneficiary, authority and supported region/fiscal-host route; do not create an organization listing for a similarly named repository owner by assumption.", + "verification": "Read listing/account IDs, owner/admin role and enrollment/approval state." + }, + { + "name": "profile fields / featured opt-in", + "values": [ + "bio", + "introduction", + "featured work", + "matching/featured preferences where eligible" + ], + "decision_rule": "Prepare accurate public purpose and benefits; owner decides marketing consent and funding language.", + "verification": "Read rendered listing and saved preferences; unpublished/draft differs from publicly approved listing." + }, + { + "name": "onboarding personal/legal fields", + "values": [ + "residence", + "billing/tax/provider verification", + "fiscal-host details" + ], + "decision_rule": "Let account owner handle required legal/banking attestations and credentials; never infer those from GitHub profile geography or commit email.", + "verification": "Report exact outstanding setup gate without exposing tax/bank data; listing mutation alone is not completed onboarding." + }, + { + "name": "publication / funding link", + "values": [ + "approved listing", + "draft setup", + "FUNDING.yml sponsor button" + ], + "decision_rule": "Add funding links only to real intended supported beneficiaries; distinguish external funding URLs from an active GitHub Sponsors listing.", + "verification": "Open public listing and repository sponsor target as intended reader; retain owner decision about platform selection." + } + ], + "sources": [ + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account", + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-organization", + "https://docs.github.com/en/graphql/reference/sponsors" + ], + "community_sources": [], + "pitfalls": [ + "Enrollment/profile setup does not authorize a payment, bank change, tier publication or newsletter." + ] + }, + { + "id": "sponsors-tier-configuration", + "capability_ids": [ + "sponsors-tiers" + ], + "title": "Amounts, recurrence, publication and benefit access", + "applicability": "Approved Sponsors owner with a concrete benefit/price policy; tier creation is optional.", + "options": [ + { + "name": "amount / recurrence", + "values": [ + "amount in US dollars", + "isRecurring boolean", + "documented API range 1\u201312000" + ], + "decision_rule": "Choose explicitly approved price and monthly versus one-time meaning; never confuse dollars with cents or interpret isRecurring as an arbitrary billing scheduler.", + "verification": "Read amount/currency/recurrence from returned tier and actual checkout; current API schema defines valid range." + }, + { + "name": "description / welcome message", + "values": [ + "public perks", + "post-payment instructions" + ], + "decision_rule": "Promise only deliverable benefits, avoid private credentials in broad welcome text, and document entitlement expectations.", + "verification": "Preview public and purchaser-facing text and check instructions/links." + }, + { + "name": "publish / retire", + "values": [ + "draft by default in createSponsorsTier", + "publish true/false", + "retire tier" + ], + "decision_rule": "Review concrete tier before publication. Published prices cannot be edited; retire and create a new tier for a new price.", + "verification": "Read published/retired state and remaining active sponsorships; retirement does not cancel existing sponsors." + }, + { + "name": "repository benefit", + "values": [ + "organization-owned private repository ID/name", + "no repository benefit" + ], + "decision_rule": "Adding a benefit grants read-only access to sponsors and requires explicit access authorization; do not attach source or customer data accidentally.", + "verification": "Verify exact repository owner/visibility and tier benefit, plus current entitlement policy without creating a paid test sponsorship." + }, + { + "name": "tier limits", + "values": [ + "up to ten published one-time", + "up to ten published monthly" + ], + "decision_rule": "Reuse meaningful existing offers rather than create redundant tiers; keep retired options visible in historical reporting.", + "verification": "Count active published tiers by recurrence and inspect retired-tier subscribers separately." + } + ], + "sources": [ + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers", + "https://docs.github.com/en/graphql/reference/sponsors" + ], + "community_sources": [], + "pitfalls": [ + "Existing sponsors can remain on a retired tier. Do not delete/replace historical tier identity to make the public price list look tidy." + ] + }, + { + "id": "sponsors-commitments-and-preferences", + "capability_ids": [ + "sponsors-transactions", + "sponsors-preferences" + ], + "title": "Payer intent, bulk partial outcomes and sponsorship privacy", + "applicability": "Only explicit sponsorship instructions naming payer, beneficiary, amount, recurrence and intended visibility.", + "options": [ + { + "name": "sponsorship payer / beneficiary / tier", + "values": [ + "sponsorId/login", + "sponsorableId/login", + "tierId or allowed custom amount" + ], + "decision_rule": "Resolve exact accounts and a current valid offer; do not charge a personal account when organization funding was intended.", + "verification": "Read account/tier IDs and current sponsorship before mutation; checkout fees/tax/payment details require current verification." + }, + { + "name": "one-time / recurring commitment", + "values": [ + "approved amount", + "recurrence", + "payment/renewal state" + ], + "decision_rule": "Repository setup and recommendation do not authorize spending. Match the explicitly requested commitment and inspect immediate/prorated effects before submission.", + "verification": "Read resulting amount, recurrence, payer, beneficiary and active/pending status; financial mutation timeout requires reconcile-before-retry." + }, + { + "name": "bulk sponsorship results", + "values": [ + "per-beneficiary input", + "individual success/error results" + ], + "decision_rule": "Treat batch as potentially partial, never all-or-nothing; preserve successful commitments and retry only missing authorized ones.", + "verification": "Read every beneficiary relationship and error individually, compare total approved versus committed amounts." + }, + { + "name": "change / cancel", + "values": [ + "upgrade", + "downgrade", + "cancelSponsorship", + "retired tier retained" + ], + "decision_rule": "Apply requested effective change with current billing semantics; cancellation does not prove refund or immediate entitlement end.", + "verification": "Read resulting tier/state and billing effective date; preserve history of previous commitments." + }, + { + "name": "privacy / email preferences", + "values": [ + "PUBLIC", + "PRIVATE where current schema supports", + "receive email updates boolean" + ], + "decision_rule": "Make public identity and update consent deliberate personal choices; private sponsorship does not mean beneficiary sees no information.", + "verification": "Read actual sponsorship preference fields and public appearance; never publish identity merely to test visibility." + }, + { + "name": "connected platform", + "values": [ + "Patreon linkage or documented connected sponsorability preference" + ], + "decision_rule": "Connect only an explicitly selected owned account and inspect permission scope; linkage does not create a paid sponsorship.", + "verification": "Read linkage/preference state and retain external-provider limitations; do not claim payment from a connected badge." + } + ], + "sources": [ + "https://docs.github.com/en/graphql/reference/sponsors", + "https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/about-sponsorships-fees-and-taxes", + "https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship" + ], + "community_sources": [], + "pitfalls": [ + "Current billing/provider terms are changeable. Read the actual checkout/account flow before any authorized commitment and keep sensitive financial data out of public issues." + ] + }, + { + "id": "sponsors-reporting-and-campaigns", + "capability_ids": [ + "sponsors-analytics" + ], + "title": "Sponsor history, exports and referral metadata", + "applicability": "Sponsors owners requesting financial/activity reporting; exports contain personal/financial information.", + "options": [ + { + "name": "sponsor filters / activity window", + "values": [ + "active or retired tiers", + "date range", + "new/change/cancellation activity" + ], + "decision_rule": "Separate active sponsors, past sponsors, payments and payouts; distinguish cumulative commitment from settled receipts.", + "verification": "Read account/timezone/date/currency and reconcile paginated source rows to displayed totals." + }, + { + "name": "export format / date / delivery", + "values": [ + "CSV", + "JSON", + "supported date window and delivery destination" + ], + "decision_rule": "Export only requested scope to intended private destination; initiating emailed export is an external delivery action requiring authorization.", + "verification": "Verify requested export fields/window, actual received file and row totals; record pending versus completed export." + }, + { + "name": "referral metadata syntax", + "values": [ + "metadata_KEY=value; alphanumeric/dash/underscore; at most ten pairs" + ], + "decision_rule": "Use non-sensitive short campaign codes, never email addresses or secret identifiers in public URLs. Whitespace/invalid characters can produce 404.", + "verification": "Check resulting URL and export metadata key after permitted transaction; keys truncate at 25 chars and values at 100 per current guide." + }, + { + "name": "lifetime / revenue interpretation", + "values": [ + "authorized lifetime value", + "currency", + "transaction/payment status" + ], + "decision_rule": "Use financial definitions explicitly; sponsorship totals and estimated next payout are not recognized revenue or a tax report.", + "verification": "Reconcile refunds/fees/date window with account dashboard and payout receipts when applicable." + } + ], + "sources": [ + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/viewing-your-sponsors-and-sponsorships", + "https://docs.github.com/en/graphql/reference/sponsors" + ], + "community_sources": [], + "pitfalls": [ + "Export access does not authorize publishing sponsor identities or payment details in a public Wiki/Project." + ] + }, + { + "id": "sponsors-newsletters-and-delivery", + "capability_ids": [ + "sponsors-newsletters" + ], + "title": "Recipient scope, sender identity and publish boundary", + "applicability": "Only explicit instructions to contact sponsors; preparing a draft alone does not authorize sending.", + "options": [ + { + "name": "recipients", + "values": [ + "opted-in sponsors", + "all eligible tiers", + "selected tier IDs" + ], + "decision_rule": "Match requested audience and current opt-in; do not bypass consent with copied sponsor email lists.", + "verification": "Read selected tier recipients and current eligibility before publish; distinguish tier names from stable IDs." + }, + { + "name": "subject / body / sender", + "values": [ + "draft subject/message", + "personal primary email or noreply based on privacy", + "organization noreply" + ], + "decision_rule": "Prepare concrete reviewed content and working links; note personal sender exposure when email privacy is off.", + "verification": "Preview sender/subject/body/links and target account in dashboard without sending test mail." + }, + { + "name": "draft versus Publish", + "values": [ + "unsent draft", + "published email update" + ], + "decision_rule": "Publish sends mail and needs an explicit messaging instruction; repository release/setup authority alone is insufficient.", + "verification": "Read publication/sent history and exact target scope; absence of send evidence must remain draft/unknown." + }, + { + "name": "ambiguous delivery recovery", + "values": [ + "inspect newsletter history first", + "avoid duplicate Publish" + ], + "decision_rule": "A timeout can occur after sending; do not retry the broadcast before reconciling history and timestamps.", + "verification": "Capture update ID, publication time and recipient tier scope; report uncertainty rather than claim all recipients received/read mail." + } + ], + "sources": [ + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors" + ], + "community_sources": [], + "pitfalls": [ + "Published/sent means provider acceptance/history, not proof every recipient received or read the message." + ] + }, + { + "id": "sponsors-payouts-and-goals", + "capability_ids": [ + "sponsors-payouts", + "sponsors-goals" + ], + "title": "Banking boundaries, estimated payouts and fundraising targets", + "applicability": "Sponsors owners managing their own fundraising; goals are public owner decisions and bank changes require exact authority.", + "options": [ + { + "name": "payout account / status", + "values": [ + "past payout", + "estimated next payout", + "holds/provider state" + ], + "decision_rule": "Read correct beneficiary/provider and distinguish estimated, pending and paid; never equate incoming sponsorship with completed payout.", + "verification": "Match amount/date/currency and account history to actual receipt where available." + }, + { + "name": "bank/fiscal-host management", + "values": [ + "supported Stripe Connect flow", + "fiscal-host support route" + ], + "decision_rule": "Owner handles bank/legal verification; fiscal-host accounts cannot directly edit payout information through the same control. Never paste bank/tax data into repository logs.", + "verification": "Inspect provider/account gate and resulting secure status only; record support handoff as unresolved." + }, + { + "name": "receipt export", + "values": [ + "PDF payout receipts for supported Stripe Connect accounts" + ], + "decision_rule": "Export only required receipt to the authorized private destination; respect provider-specific availability.", + "verification": "Open actual receipt and match account/payout amount/date; dashboard display alone is not exported file evidence." + }, + { + "name": "goal type / target / description", + "values": [ + "Number of monthly sponsors", + "Sponsorships a month", + "one active goal" + ], + "decision_rule": "Select an owner-approved measurable target and explain funded work accurately; avoid implying contribution guarantees.", + "verification": "Read live goal type/target/text and public progress; only one simultaneous goal is supported in current guide." + }, + { + "name": "goal edit / remove / share", + "values": [ + "update target/text", + "remove goal", + "copy/embed link" + ], + "decision_rule": "Preserve rationale for target changes and publish/share externally only when requested; progress is not recognized revenue.", + "verification": "Re-read public goal after update/removal and inspect embed destination; do not send promotion as setup." + } + ], + "sources": [ + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-payouts-from-github-sponsors", + "https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-goal" + ], + "community_sources": [], + "pitfalls": [ + "Payout management is provider/account work, not repository administration. Do not claim settled revenue, tax treatment or completed banking verification from GraphQL metadata." + ] + }, + { + "id": "workflow-events", + "capability_ids": [ + "actions-workflows" + ], + "title": "Workflow triggers and typed inputs", + "options": [ + { + "name": "on / types", + "values": "push, pull_request, pull_request_target, merge_group, schedule, workflow_dispatch, repository_dispatch, workflow_run, workflow_call, release; event-specific activity types", + "decision_rule": "Choose the event whose code/ref and trust model match the job. Add merge_group when required checks serve a merge queue.", + "verification": "Exercise intended event; record event, actor, head_sha and workflow revision." + }, + { + "name": "branches / tags / paths", + "values": "positive/negative glob lists; branches-ignore/tags-ignore/paths-ignore alternatives", + "decision_rule": "Protect required checks against path-filter skips; order negative patterns deliberately; branch and path filters combine.", + "verification": "Test included/excluded branch and file combinations; inspect check state." + }, + { + "name": "schedule", + "values": "POSIX cron; UTC; default-branch workflow", + "decision_rule": "Use for tolerable delays, with manual recovery; scheduling is not a precise timer.", + "verification": "Compare scheduled event timestamp, branch and actual start." + }, + { + "name": "workflow_dispatch.inputs", + "values": "boolean, choice, environment, number, string; required/default/options", + "decision_rule": "Validate enum and deployment target; environment input selects a value but does not gate a job without environment.", + "verification": "Run default and explicit input values; reject invalid target in job." + }, + { + "name": "workflow_run", + "values": "requested, in_progress, completed; workflows and branches", + "decision_rule": "Treat upstream code/artifacts as untrusted; privileged follow-up must verify origin and SHA.", + "verification": "Read originating run ID, repository, event, conclusion, SHA and artifact provenance." + }, + { + "name": "GITHUB_TOKEN event recursion", + "values": "Most token-generated events do not launch another workflow; dispatch exceptions exist", + "decision_rule": "Use explicit dispatch for intended chaining, with bounded recursion; do not broaden credentials just to trigger CI.", + "verification": "Match downstream run to dispatch; confirm no duplicate loop." + } + ], + "sources": [ + "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows", + "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax", + "https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow" + ], + "community_sources": [], + "pitfalls": [ + "A required workflow skipped by filters can leave a required check pending.", + "pull_request_target operates in privileged base context; never checkout and execute untrusted PR code there.", + "Schedule delays and dropped scheduling events require observability." + ], + "project_applicability": "Existing validation CI needs PR and default-branch coverage. Event expansion needs a concrete repository operation.", + "historical_and_human_interaction": "Keep trigger edits in reviewed commits; retain event payload metadata without secrets and explain maintainer-triggered runs.", + "recovery": "Inspect event/ref/filters first; dispatch or rerun the exact intended revision only after correcting cause." + }, + { + "id": "workflow-execution", + "capability_ids": [ + "actions-workflows", + "actions-runs", + "actions-job-logs" + ], + "title": "Jobs, matrices, conditions and run history", + "options": [ + { + "name": "needs / if", + "values": "DAG dependencies; success(), failure(), cancelled(), always(); expressions", + "decision_rule": "Use explicit terminal handling. Reserve always() for bounded cleanup; avoid making cancellation ineffective.", + "verification": "Inspect skipped and failed upstream cases plus cancellation." + }, + { + "name": "strategy", + "values": "matrix axes/include/exclude, fail-fast, max-parallel", + "decision_rule": "Test supported platforms; fail-fast false retains all diagnostics at higher cost.", + "verification": "Inspect complete matrix job set and all conclusions." + }, + { + "name": "step execution", + "values": "run/uses, id, with, env, shell, working-directory, outputs, defaults", + "decision_rule": "Pass untrusted strings through environment or typed inputs rather than shell interpolation.", + "verification": "Read exact workflow SHA, command results and produced outputs." + }, + { + "name": "timeouts / tolerated failures", + "values": "job and step timeout-minutes; continue-on-error; retry in command/action", + "decision_rule": "Bound resource use; do not mark safety or release validation optional.", + "verification": "Force representative failure; ensure required job fails and cleanup completes." + }, + { + "name": "services / containers", + "values": "image, credentials, env, volumes, ports, options; supported runner OS", + "decision_rule": "Use when integration tests require services; pin trusted images and isolate credentials.", + "verification": "Health-check service and inspect exact image digest." + }, + { + "name": "attempt operations", + "values": "rerun all, failed jobs, one job, debug logging, cancel/force-cancel; delete logs/run", + "decision_rule": "Rerun after diagnosis. Capture current attempt; debug logs increase disclosure risk.", + "verification": "Record run ID, attempt, job IDs, SHA, conclusion and redacted log URL." + } + ], + "sources": [ + "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax", + "https://docs.github.com/en/rest/actions/workflow-runs", + "https://docs.github.com/en/rest/actions/workflow-jobs" + ], + "community_sources": [ + "https://github.com/orgs/community/discussions/206259" + ], + "pitfalls": [ + "A maintainer investigation of discussion #206259 attributed apparent queue blocking to other group jobs and always() preventing cancellation; initial bug claims were incomplete." + ], + "project_applicability": "Keep the existing small validation workflow unless real platform differences justify a matrix.", + "historical_and_human_interaction": "Preserve previous attempts and reviewer explanation; canceled or deleted logs are not proof of an earlier success.", + "recovery": "Read the current attempt before retrying; cancel normally first; force-cancel only after identifying stuck run and external side effects." + }, + { + "id": "actions-policy", + "capability_ids": [ + "actions-permissions", + "actions-policies", + "actions-fork-retention" + ], + "title": "Actions availability, allowed code and token defaults", + "options": [ + { + "name": "Actions enabled scope", + "values": "disabled, all eligible repositories, selected repositories; inherited org/enterprise constraints", + "decision_rule": "Read inheritance before changing repository settings.", + "verification": "Read all controlling scopes and repository eligibility." + }, + { + "name": "allowed actions/reusable workflows", + "values": "all, local-only, selected; GitHub-owned, verified Marketplace, explicit patterns; SHA-pinning policy where supported", + "decision_rule": "Pin reviewed actions; allow only required external automation.", + "verification": "Read selected-action patterns and inspect each uses reference." + }, + { + "name": "default_workflow_permissions", + "values": "read or write; per-workflow/per-job permission map", + "decision_rule": "Keep repository default read; grant needed write permissions only in responsible job.", + "verification": "Inspect setup log effective GITHUB_TOKEN permissions." + }, + { + "name": "token permission map", + "values": "actions, artifact-metadata, attestations, checks, contents, deployments, discussions, id-token, issues, models, packages, pages, pull-requests, security-events, statuses; supported read/write/none values", + "decision_rule": "Once any permission is specified, unspecified permissions become none; metadata/scopes and availability differ.", + "verification": "Compare permissions to each operation schema and actual run grants." + }, + { + "name": "PR creation / approval by Actions", + "values": "allow or deny workflow PR creation/approval", + "decision_rule": "Creation may help automation; automated approval is not independent review and must not satisfy a human governance intent.", + "verification": "Read can_approve_pull_request_reviews and inspect actor of resulting review." + }, + { + "name": "fork policy", + "values": "first-time/first-time-with-new-account/all external contributor approval; private-fork run/read-token/write-token/secrets options", + "decision_rule": "Run contributions without secrets/write token; approval authorizes code execution and consumes resources.", + "verification": "Read fork policy plus run approval actor and effective token." + }, + { + "name": "policy objects and retention", + "values": "schema-defined action policy rules; artifact/log days bounded by parent policy", + "decision_rule": "Inspect current rule schema and inherited maximums; retain enough release evidence without storing sensitive logs.", + "verification": "Read policy IDs/rules and expiry dates on actual run/artifact." + } + ], + "sources": [ + "https://docs.github.com/en/rest/actions/permissions", + "https://docs.github.com/en/rest/actions/policies", + "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Repository rules require read-only CI. Do not enable write or fork secrets merely for fuller coverage.", + "historical_and_human_interaction": "Record who approved contributed code, which SHA was inspected and whether a later update needs review again.", + "recovery": "Revert an allowlist through reviewed policy change; preserve run evidence before lowering retention or deleting logs." + }, + { + "id": "reusable-contract", + "capability_ids": [ + "actions-reusable" + ], + "title": "Reusable workflows, actions and templates", + "options": [ + { + "name": "sharing and reference", + "values": "same-repo path; owner/repo workflow@SHA/tag/branch; private/internal sharing", + "decision_rule": "Prefer exact reviewed SHA; access/allowed-actions policies must permit every nested workflow.", + "verification": "Read referenced_workflows SHAs and effective access policy." + }, + { + "name": "workflow_call contract", + "values": "boolean/number/string inputs, required/default; explicit secrets; outputs mapped job to workflow", + "decision_rule": "Treat inputs/outputs as an API; avoid stringly typed booleans.", + "verification": "Run caller with omitted/default/explicit values and check outputs." + }, + { + "name": "secret forwarding", + "values": "named secrets or inherit for supported org/enterprise relationship; forwarding at every nested hop", + "decision_rule": "Forward only required names; inheritance is wider. Current docs require passing environment secrets as well.", + "verification": "Fail safely when required secret is empty without printing it." + }, + { + "name": "environment scope", + "values": "environment on called job; same-name environment secret wins", + "decision_rule": "Caller cannot put environment on a reusable-workflow call job. Pass environment identifier as input and bind it inside called workflow.", + "verification": "Observe called job gate and selected environment; verify secret presence only." + }, + { + "name": "env and outputs", + "values": "caller env is not general callee env; job/workflow outputs; reusable matrix output semantics", + "decision_rule": "Pass configuration explicitly; use artifacts for files.", + "verification": "Assert outputs on representative matrix and nested caller." + }, + { + "name": "nesting / permissions / concurrency", + "values": "supported host nesting limit; accessible chain; permissions can only remain or decrease; caller/callee group IDs", + "decision_rule": "Avoid same concurrency key accidentally canceling caller; inspect current host limits rather than hard-code historical limits.", + "verification": "Execute complete chain and inspect grants/group." + }, + { + "name": "action forms and templates", + "values": "composite steps, JavaScript runtime, Docker action; organization workflow-templates metadata", + "decision_rule": "Use a template for copied starting files; reusable workflow for centrally maintained behavior.", + "verification": "Check action.yml inputs/runtime and actual consumer run." + } + ], + "sources": [ + "https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows", + "https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations", + "https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax" + ], + "community_sources": [ + "https://github.com/actions/runner/issues/4453" + ], + "pitfalls": [ + "Issue #4453 reports empty environment secrets without forwarding; current official documentation explicitly requires passing or inherit. required:true checks passing, not non-empty value." + ], + "project_applicability": "Use only if repeated workflows merit a shared contract; small single-repo CI does not need a new abstraction.", + "historical_and_human_interaction": "Version contract changes, review all callers and record actual called SHA rather than mutable tag only.", + "recovery": "Pin consumer to prior known SHA; restore compatible input/output contract and test caller before broader rollout." + }, + { + "id": "configuration-secrets", + "capability_ids": [ + "actions-variables", + "actions-secrets", + "security-dependabot-secrets" + ], + "title": "Variables, credentials and precedence", + "options": [ + { + "name": "scope / selected repositories", + "values": "organization all/private/selected; repository; environment; Actions versus Dependabot secret stores", + "decision_rule": "Place credentials in narrowest necessary scope; variables are public-to-readers configuration.", + "verification": "Read names/metadata and selected repository IDs." + }, + { + "name": "same-name precedence", + "values": "environment over repository over organization; runtime availability/context restrictions", + "decision_rule": "Avoid collisions; check when the job evaluates variables versus when environment values are available.", + "verification": "Inspect effective non-sensitive variable and secret-presence check in bound job." + }, + { + "name": "write protocol", + "values": "scope public key plus encrypted_value; gh secret via stdin/secure file", + "decision_rule": "Never put secret in arguments, source or issue; encrypted API field is not a retrieval path.", + "verification": "Read updated_at/name; exercise minimal authorized operation." + }, + { + "name": "fork / Dependabot / reusable contexts", + "values": "secrets withheld for untrusted fork runs; Dependabot uses its dedicated store; explicit reusable forwarding", + "decision_rule": "Do not duplicate broad credentials to fix a context error.", + "verification": "Read event actor and correct credential store; negative test unauthorized use." + }, + { + "name": "rotation / expiry / redaction", + "values": "provider revoke/reissue, key owner/expiry metadata outside secret value; add-mask for derived values", + "decision_rule": "Rotate at provider; log masking is best effort, not access control.", + "verification": "Confirm old credential rejection and new credential operation without outputting either." + } + ], + "sources": [ + "https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets", + "https://docs.github.com/en/actions/reference/workflows-and-actions/variables", + "https://docs.github.com/en/rest/actions/secrets", + "https://docs.github.com/en/rest/dependabot/secrets" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Validation should need no repository secret. Dependabot private registries need separate credentials only if present.", + "historical_and_human_interaction": "Record credential purpose, owner, consumer and rotation date; never plaintext values in historical evidence.", + "recovery": "Revoke exposed credential first; replace narrow secret and rerun safely; remove/redact logs separately." + }, + { + "id": "concurrency-queues", + "capability_ids": [ + "actions-concurrency" + ], + "title": "Concurrency and queue policy", + "options": [ + { + "name": "group", + "values": "workflow/job scope; expression; repository-wide case-insensitive group name", + "decision_rule": "Include workflow/ref for isolated CI; use environment-specific shared key for deployment serialization.", + "verification": "Read evaluated group and all related pending/running jobs." + }, + { + "name": "queue", + "values": "single default; max permits up to 100 pending", + "decision_rule": "Use single for latest-state jobs; max when every item matters and host supports it.", + "verification": "Queue a bounded test and inspect pending replacements/overflow." + }, + { + "name": "cancel-in-progress", + "values": "false/default; true; allowed expression", + "decision_rule": "Cancel stale CI; avoid interrupting releases or migrations. queue:max plus true is invalid.", + "verification": "Read old run conclusion and ensure side effects stopped." + }, + { + "name": "ordering", + "values": "FIFO by entering concurrency wait, not original dispatch time; no universal dispatch ordering guarantee", + "decision_rule": "Do not use queue as a transactional ledger; record intended sequence separately if needed.", + "verification": "Compare queue-entry and execution history with expected deployment revisions." + } + ], + "sources": [ + "https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency", + "https://docs.github.com/en/rest/actions/concurrency-groups" + ], + "community_sources": [ + "https://github.com/orgs/community/discussions/5435", + "https://github.com/orgs/community/discussions/12835", + "https://github.com/orgs/community/discussions/206259" + ], + "pitfalls": [ + "2021\u20132025 complaints about a single pending slot do not describe current queue:max behavior; maintainer announced shipping April 17, 2026.", + "The control-concurrency page contains broad examples implying unconditional cancellation; use its explicit queue/cancel policy definitions." + ], + "project_applicability": "CI can cancel outdated branch checks; release and Wiki publication must preserve sequence and existing content.", + "historical_and_human_interaction": "Attach cancellation reason to run history and preserve prior attempt IDs; an operator retry does not establish queue order.", + "recovery": "Inspect every workflow sharing the key and always() conditions before calling a queue bug; check runner availability and status incident history." + }, + { + "id": "artifacts", + "capability_ids": [ + "actions-artifacts" + ], + "title": "Workflow artifact contents and lifecycle", + "options": [ + { + "name": "upload contract", + "values": "name, path/globs/exclusions, if-no-files-found warn/error/ignore, retention-days", + "decision_rule": "Require expected files; choose unique artifact name per matrix job.", + "verification": "Download exact artifact ID and inspect archive manifest." + }, + { + "name": "hidden and file metadata", + "values": "include-hidden-files false by default; ZIP changes permission fidelity; tar when metadata matters", + "decision_rule": "Include required dotfiles explicitly after excluding credentials; tar executable-sensitive bundles.", + "verification": "Check .codex-plugin files and executable bits in extracted release bundle." + }, + { + "name": "compression / overwrite", + "values": "compression-level supported range; overwrite false default; upload version semantics", + "decision_rule": "Favor low compression for precompressed assets; overwrite deletes old artifact identity.", + "verification": "Record artifact ID, digest, size and expiration after upload." + }, + { + "name": "download selection", + "values": "ID/name/pattern, merge-multiple, path; repository/run/token for cross-run access", + "decision_rule": "Bind release input to trusted run and SHA, never latest name alone.", + "verification": "Verify source run, digest and expected file allowlist." + }, + { + "name": "host and action compatibility", + "values": "supported major/runtime/backend; GHES support differs from GitHub.com", + "decision_rule": "Read current action README and installed runner minimum; do not blindly copy a dot-com major.", + "verification": "Run on target host and inspect resulting artifact/download." + } + ], + "sources": [ + "https://github.com/actions/upload-artifact", + "https://github.com/actions/download-artifact", + "https://docs.github.com/en/rest/actions/artifacts" + ], + "community_sources": [ + "https://github.com/actions/upload-artifact/issues/602" + ], + "pitfalls": [ + "Hidden-file default change broke explicit dotfile upload use cases; plugin archives can silently lose .codex-plugin if blindly uploaded.", + "Artifact download is untrusted data until origin and contents are verified." + ], + "project_applicability": "Inspect installable plugin archive before release; preservation of hidden plugin metadata is essential.", + "historical_and_human_interaction": "Keep archive manifest, digest and trusted producing SHA with release evidence; retention expiry must not erase sole evidence.", + "recovery": "Rebuild from same reviewed SHA, compare contents and digest, issue new version for published immutable mistakes." + }, + { + "id": "cache", + "capability_ids": [ + "actions-caches" + ], + "title": "Cache keys, access and budgets", + "options": [ + { + "name": "lookup identity", + "values": "path, key, restore-keys, OS/architecture/lockfile/toolchain salts; cache-version/ref scope", + "decision_rule": "Do not mix incompatible binaries; restore prefixes trade hit rate for stale input risk.", + "verification": "Inspect exact key/ref/version and restored build behavior." + }, + { + "name": "restore controls", + "values": "lookup-only, fail-on-cache-miss, enableCrossOsArchive, supported restore/save actions", + "decision_rule": "Fail on miss only when cache existence is an actual requirement; cache is ordinarily optional.", + "verification": "Test empty cache and prefix fallback; verify reproducible cold build." + }, + { + "name": "write/eviction", + "values": "immutable key entry; new key for changed content; retention/storage policies", + "decision_rule": "Avoid secrets and release-only evidence; monitor eviction and thrashing.", + "verification": "Read usage, last_accessed_at, size and configured inherited limits." + }, + { + "name": "trust boundary", + "values": "fork/base/default-branch read visibility and write scope; workflow cache access restrictions", + "decision_rule": "Treat cache as untrusted executable input; separate privileged/untrusted scopes.", + "verification": "Verify trust-specific keys/access plus authorized clean-cache build." + } + ], + "sources": [ + "https://github.com/actions/cache", + "https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching", + "https://docs.github.com/en/rest/actions/cache" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Small Python stdlib validation does not justify a cache unless measured runtime benefit exists.", + "historical_and_human_interaction": "Keep cache purge reason and old keys in issue/run evidence, never cache credential contents.", + "recovery": "Delete only identified poisoned/stale keys; rerun cold, then change salt to prevent accidental reuse." + }, + { + "id": "runners", + "capability_ids": [ + "actions-self-hosted-runners", + "actions-runner-groups", + "actions-hosted-runners" + ], + "title": "Hosted, self-hosted and larger runner configuration", + "options": [ + { + "name": "runs-on selection", + "values": "hosted image/architecture/size; self-hosted label intersection; group plus labels", + "decision_rule": "Use smallest suitable hosted runner; image labels can roll, so record actual image version.", + "verification": "Inspect job runner_name/group/labels/OS and setup image version." + }, + { + "name": "self-hosted registration", + "values": "repository/org scope; short-lived registration/removal tokens; JIT config; ephemeral flag", + "decision_rule": "Use disposable isolated machines for untrusted work; registration is not host hardening.", + "verification": "Run benign job, confirm isolation and disposal/cleanup." + }, + { + "name": "group access", + "values": "all/selected repositories; public repo option; selected workflows/revisions; inherited org/enterprise policy", + "decision_rule": "Restrict trusted runner group to known workflows and repos.", + "verification": "Read group repository IDs and allowed workflow refs; test excluded workflow refusal." + }, + { + "name": "host lifecycle", + "values": "runner version/update policy, online/busy, labels, proxy, workspace cleanup; ARC scale sets", + "decision_rule": "Patch runner and images; bound queue and jobs; autoscaling requires separate infrastructure.", + "verification": "Check runner health and clean job-to-job environment." + }, + { + "name": "larger runner settings", + "values": "machine type/image/size/max parallelism, runner group, static IP/private networking where eligible", + "decision_rule": "Enable only for a demonstrated workload and approved billing/network access.", + "verification": "Read saved runner config, network reachability and billed usage." + } + ], + "sources": [ + "https://docs.github.com/en/actions/reference/runners/github-hosted-runners", + "https://docs.github.com/en/actions/reference/runners/self-hosted-runners", + "https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/manage-access", + "https://docs.github.com/en/rest/actions/hosted-runners" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "No current need for paid or self-hosted capacity in this plugin repository.", + "historical_and_human_interaction": "Capture operator registration/removal and host ownership, preserving relevant job logs before disposal.", + "recovery": "Quarantine suspect runner, revoke credentials, replace image; never assume workspace deletion undoes compromise." + }, + { + "id": "oidc", + "capability_ids": [ + "actions-oidc" + ], + "title": "OIDC claims and cloud trust", + "options": [ + { + "name": "issuance permission", + "values": "id-token:write only on authenticating job", + "decision_rule": "Token issuance grants no cloud resource permission by itself.", + "verification": "Inspect effective job permission and provider exchange result." + }, + { + "name": "trust conditions", + "values": "issuer, audience, repository identity, ref/environment, job_workflow_ref; provider-supported claims", + "decision_rule": "Scope provider trust to exact owner/repo/workflow/target; avoid broad wildcard repo trust.", + "verification": "Inspect redacted claims and denied wrong-ref/target exchange." + }, + { + "name": "subject template", + "values": "repo use_default; org/repo include_claim_keys; supported custom properties", + "decision_rule": "Stage cloud trust migration before changing sub format; org template requires correct repo adoption.", + "verification": "Read template and compare actual non-sensitive sub/claim values." + }, + { + "name": "reusable workflow identity", + "values": "caller repository context versus called job_workflow_ref; accessible trust claims", + "decision_rule": "Require reviewed reusable workflow identity where provider supports it.", + "verification": "Inspect caller/callee SHAs and successful narrow provider action." + }, + { + "name": "environment interaction", + "values": "environment-based subject replaces ref-based shape; branch rules are separate gate", + "decision_rule": "Configure both cloud subject and GitHub deployment branch policy.", + "verification": "Negative-test disallowed ref and unapproved environment job." + } + ], + "sources": [ + "https://docs.github.com/en/actions/reference/security/oidc", + "https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows", + "https://docs.github.com/en/rest/actions/oidc" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "No cloud deploy target currently exists; do not create one to exercise OIDC.", + "historical_and_human_interaction": "Record cloud role/trust policy revision and migration review, never JWT contents.", + "recovery": "Restore previous subject template or compatible provider trust; revoke exposed long-lived credentials separately." + }, + { + "id": "environment-approvals", + "capability_ids": [ + "deploy-environments", + "deploy-approval" + ], + "title": "Environment protection and approvals", + "options": [ + { + "name": "required reviewers", + "values": "eligible users/teams; one eligible approval suffices; prevent self-review; plan restrictions", + "decision_rule": "Do not describe reviewer list as unanimous approval. Independent approval requires another eligible human.", + "verification": "Read reviewer IDs, prevent_self_review and actual approval actor." + }, + { + "name": "wait timer", + "values": "documented minute range; non-billable waiting; product/visibility gates", + "decision_rule": "Use only for purposeful rollout delay; it does not inspect health.", + "verification": "Read wait duration and timestamps before job starts." + }, + { + "name": "deployment branch policy", + "values": "all; protected branches; selected branch/tag patterns", + "decision_rule": "Gate deployment ref separately from repository branch protection; test tags explicitly.", + "verification": "Read protected_branches/custom_branch_policies and every branch/tag rule." + }, + { + "name": "administrator bypass", + "values": "allow/deny supported protection bypass setting", + "decision_rule": "Keep bypass decision explicit and auditable; automation must not bypass its own gate.", + "verification": "Read saved option plus bypass actor/comment when used." + }, + { + "name": "custom protection rules", + "values": "installed GitHub App rules; enabled rules bounded by current platform limit", + "decision_rule": "Verify app permission, external approval/health decision and failure handling.", + "verification": "Read rule integration IDs and actual requested/approved/rejected record." + }, + { + "name": "environment configuration", + "values": "name, URL, secrets, variables; create explicitly before referencing", + "decision_rule": "A misspelled environment may be created without intended safeguards; exact name matters.", + "verification": "Read environment ID and settings before allowing workflow run." + }, + { + "name": "approval operations", + "values": "pending deployments approve/reject with comment; workflow gate differs from PR approval", + "decision_rule": "Read artifact/SHA and change context before approval; never impersonate reviewer or weaken policy.", + "verification": "Record deployment IDs, reviewer, decision, comment and run continuation." + } + ], + "sources": [ + "https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments", + "https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments", + "https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments", + "https://docs.github.com/en/rest/deployments/environments" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "A single maintainer cannot manufacture independent peer approval. No deployable service exists; preserve zero required PR approvals as repository policy.", + "historical_and_human_interaction": "PR review, fork workflow execution approval and environment approval are distinct histories; record each real actor/decision.", + "recovery": "Reject unsafe pending deployment, correct exact environment/ref and rerun; do not remove protection to unblock automation." + }, + { + "id": "deployment-records", + "capability_ids": [ + "deploy-records" + ], + "title": "Deployment records, statuses and rollback", + "options": [ + { + "name": "deployment request", + "values": "ref, task, payload, environment, description, auto_merge, required_contexts, transient_environment, production_environment", + "decision_rule": "Bind immutable SHA and required checks; deployment API is a record/request, not deployment engine.", + "verification": "Read record ID, sha, environment and exact request parameters." + }, + { + "name": "status transitions", + "values": "queued, pending, in_progress, success, failure, error, inactive; log_url, environment_url, auto_inactive", + "decision_rule": "Report actual engine state and measured health.", + "verification": "Read ordered statuses and independently test application version/health." + }, + { + "name": "cleanup/rollback", + "values": "mark inactive; delete eligible deployment; external rollback to prior immutable artifact", + "decision_rule": "Preserve operational trail; deactivate previews when removed.", + "verification": "Compare served SHA/digest before/after and status history." + } + ], + "sources": [ + "https://docs.github.com/en/rest/deployments/deployments", + "https://docs.github.com/en/rest/deployments/statuses" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Only create deployment records for an actual deployment; source/plugin release alone is not an application deployment.", + "historical_and_human_interaction": "Store approver, release artifact digest and rollback reason in deployment/linked issue history.", + "recovery": "Deploy prior verified artifact with a new explicit rollback record; a green API status does not restore service." + }, + { + "id": "security-enablement", + "capability_ids": [ + "security-enablement", + "security-configurations", + "security-overview" + ], + "title": "Security products, inheritance and enforcement", + "options": [ + { + "name": "product switches", + "values": "dependency graph/submission; Dependabot alerts/security updates; Code Security; Secret Protection; private vulnerability reporting", + "decision_rule": "Evaluate eligibility and actual need separately; security policy prose is not scanning enablement.", + "verification": "Read effective repository security_and_analysis and product-specific status." + }, + { + "name": "configuration association", + "values": "org/enterprise configuration ID; selected/all/new-repository defaults; enforcement", + "decision_rule": "Preserve inherited policy; inspect asynchronous association failures and product entitlements.", + "verification": "Read configuration, repository association/application state and effective setting." + }, + { + "name": "enforced controls", + "values": "enabled/disabled/not-set where schema supports; enforcement mode; delegated dismissal/bypass", + "decision_rule": "Validate current schema per field rather than applying one enum blindly.", + "verification": "Read exact serialized config plus repository lock state." + }, + { + "name": "coverage/risk", + "values": "repository filters, missing coverage, exclusions, alert severity/age; eligible plan", + "decision_rule": "Report unknown/unavailable separately from clean or disabled.", + "verification": "Reconcile visible repo counts and excluded/failed scans with ledger." + } + ], + "sources": [ + "https://docs.github.com/en/rest/code-security/configurations", + "https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/create-custom-configuration", + "https://docs.github.com/en/code-security/getting-started/github-security-features" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Public plugin can use eligible free controls; do not activate a paid organizational product or change license policy without authorization.", + "historical_and_human_interaction": "Retain setting changes, application status, responsible security owner and policy exception explanation.", + "recovery": "Correct failed association or incompatible config; preserve evidence before detaching and never silently relax enforcement." + }, + { + "id": "code-scanning", + "capability_ids": [ + "security-codeql", + "security-code-alerts", + "security-ai-autofix", + "security-code-quality" + ], + "title": "CodeQL, SARIF, Autofix and code quality", + "options": [ + { + "name": "setup mode", + "values": "default or advanced; language selection; query suite; supported runner", + "decision_rule": "Choose default for supported uncomplicated builds; advanced for custom build/query needs.", + "verification": "Verify actual language database and completed analysis at intended SHA." + }, + { + "name": "advanced options", + "values": "matrix languages, build-mode none/autobuild/manual, paths/paths-ignore, queries/packs/model packs, config-file, category, schedule", + "decision_rule": "Match build mode to language; path excludes can create blind spots. Keep category stable per analysis variant.", + "verification": "Read workflow/config at analyzed SHA and analysis category/language coverage." + }, + { + "name": "blocking controls", + "values": "security/quality severities, rule/tool selection, ruleset thresholds where supported", + "decision_rule": "Pick actionable severity gates and require actual scan completion; empty upload is not clean coverage.", + "verification": "Inspect PR check result and corresponding alerts/instances." + }, + { + "name": "SARIF upload", + "values": "tool/category, commit_sha, ref, analysis_key, compressed payload; processing status", + "decision_rule": "Validate SARIF and bind result to exact commit/ref; poll until processed.", + "verification": "Read sarif processing result and analysis commit/tool/category." + }, + { + "name": "alert lifecycle", + "values": "open/fixed/dismissed; allowed dismissal reason/comment; delegated review", + "decision_rule": "Dismiss with evidence; reopen when premise fails. Deleting analysis is not remediation.", + "verification": "Read state, dismissing actor/time/reason and latest instance." + }, + { + "name": "Autofix / AI Scan", + "values": "available product switch; supported alert request; proposed patch/commit", + "decision_rule": "Review generated diff and test before committing; do not equate generated fix with validated fix.", + "verification": "Rerun affected tests/scanner and inspect resolved finding." + }, + { + "name": "variant databases / code quality", + "values": "CodeQL database downloads/variant target scope; quality setup/findings supported schema", + "decision_rule": "Use only for concrete cross-repository query/quality need; permissions differ from code scanning.", + "verification": "Read variant completion per repo and quality findings at target revision." + } + ], + "sources": [ + "https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options", + "https://docs.github.com/en/rest/code-scanning/code-scanning", + "https://docs.github.com/en/rest/code-quality/code-quality", + "https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Analyze actual Python/scripts and workflow languages supported by selected tool; do not claim Markdown guidance has executable-language CodeQL coverage.", + "historical_and_human_interaction": "Preserve alert number, instance, reviewer rationale and scan SHA; approvals for dismissal remain separate from fix review.", + "recovery": "Fix build/query/upload cause; rescan same intended revision; reopen unsupported dismissals and revert unsafe Autofix commit." + }, + { + "id": "dependency-inventory", + "capability_ids": [ + "security-dependency-graph", + "security-sbom", + "security-global-advisories" + ], + "title": "Dependency graph, review, submission and SBOM", + "options": [ + { + "name": "inventory sources", + "values": "supported manifests/lockfiles, automatic or explicit dependency submission; detector/job identity", + "decision_rule": "Resolve build dependencies where manifests are insufficient; do not fabricate runtime dependencies.", + "verification": "Match graph snapshot detector and SHA to lockfile/build resolution." + }, + { + "name": "dependency-review policy", + "values": "base/head diff; fail-on-severity, allowed/denied licenses, scope, allowlisted advisories/packages; supported action options", + "decision_rule": "Use narrow documented exceptions with owner/expiry; license policy requires owner decision.", + "verification": "Inspect newly introduced vulnerable/license entries and check failure." + }, + { + "name": "SBOM", + "values": "SPDX export; async report UUID where supported; snapshot date and included scopes", + "decision_rule": "Treat as inventory snapshot bounded by graph completeness.", + "verification": "Parse SPDX and compare package counts/versions to manifests and submission." + }, + { + "name": "advisory matching", + "values": "GHSA/CVE, ecosystem/name, affected/fixed range, withdrawn/reviewed status", + "decision_rule": "Match precise version and ecosystem; absence of advisory is not safety proof.", + "verification": "Read advisory update time, withdrawn state and installed resolved version." + } + ], + "sources": [ + "https://docs.github.com/en/rest/dependency-graph/dependency-review", + "https://docs.github.com/en/rest/dependency-graph/dependency-submission", + "https://docs.github.com/en/rest/dependency-graph/sboms", + "https://docs.github.com/en/rest/security-advisories/global-advisories", + "https://github.com/actions/dependency-review-action" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "No new runtime dependency is authorized. Track action dependencies and required tooling; owner has not selected project license.", + "historical_and_human_interaction": "Keep dated SBOM/diff, dependency exception reviewer and changed lockfiles with PR evidence.", + "recovery": "Submit corrected snapshot and regenerate SBOM; fix affected version or record bounded reviewed exception." + }, + { + "id": "dependabot", + "capability_ids": [ + "security-dependabot-alerts", + "security-dependabot-version", + "security-dependabot-runtime" + ], + "title": "Dependabot schedules, update strategy and runtime", + "options": [ + { + "name": "update discovery", + "values": "version:2; package-ecosystem; directory/directories; exclude-paths where supported", + "decision_rule": "Configure every existing ecosystem, avoiding overlapping directory entries.", + "verification": "Inspect default-branch config and real job detected manifests." + }, + { + "name": "schedule", + "values": "daily/weekly/monthly/quarterly/semiannually/yearly/cron where current schema supports; day/time/timezone/cronjob", + "decision_rule": "Choose workload-appropriate cadence; timezone explicit when needed.", + "verification": "Read actual scheduled job timestamps." + }, + { + "name": "selection/strategy", + "values": "allow; ignore dependency/version/update-types; versioning-strategy; target-branch; vendor; ecosystem-specific options", + "decision_rule": "Review exclusions carefully: ignored vulnerable versions can block remediation.", + "verification": "Compare generated diff and job skipped-dependency reason." + }, + { + "name": "groups", + "values": "patterns/exclude-patterns, dependency-type, update-types, applies-to version-updates/security-updates; multi-ecosystem-groups", + "decision_rule": "Use separate security/version intent; grouping failures need real job inspection.", + "verification": "Inspect generated PR members and applicable group." + }, + { + "name": "cooldown", + "values": "default-days; semver-major/minor/patch-days; include/exclude; default 3 days", + "decision_rule": "Current 2026 default delays version updates even with no cooldown block; security updates are exempt.", + "verification": "Compare release publication, cooldown and PR creation time." + }, + { + "name": "PR management", + "values": "open-pull-requests-limit, labels, assignees, milestone, commit-message, branch separator, rebase-strategy; supported options per ecosystem", + "decision_rule": "Preserve existing repository taxonomy; keep limits low enough for maintainable review.", + "verification": "Inspect generated PR metadata and rebase behavior." + }, + { + "name": "registry/code execution", + "values": "registries credential type/URL; selected registries; insecure-external-code-execution allow/deny", + "decision_rule": "Allow external execution only for necessary reviewed ecosystem resolution; narrow registry credentials.", + "verification": "Read redacted registry resolution logs and execution settings." + }, + { + "name": "runtime / repository access", + "values": "standard/labeled runner, labels/group; org private-dependency repository allowlist/default access", + "decision_rule": "Use labeled runner only on eligible repo; do not expand private repo access to fix typo.", + "verification": "Read effective runner settings and successful dependency resolution." + }, + { + "name": "alerts/security PRs", + "values": "severity/ecosystem/package/scope/state/EPSS filters; auto-triage rules and delegated dismissal if eligible", + "decision_rule": "Prioritize real risk; dismissal requires reason and does not patch.", + "verification": "Read alert after merged fix and confirm installed version/checks." + } + ], + "sources": [ + "https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference", + "https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/optimizing-pr-creation-version-updates", + "https://docs.github.com/en/rest/dependabot/alerts", + "https://docs.github.com/en/rest/dependabot/runner-settings", + "https://docs.github.com/en/rest/dependabot/repository-access" + ], + "community_sources": [ + "https://github.com/dependabot/dependabot-core/discussions/15582", + "https://github.com/dependabot/dependabot-core/issues/16319" + ], + "pitfalls": [ + "Maintainer announcement July 14, 2026 confirms 3-day default version cooldown; older explanations assuming immediate version PRs are stale.", + "Issue #16319 reports grouping failure in a particular non-root npm case; it is a reproduction lead, not proof all grouping is broken." + ], + "project_applicability": "Existing policy explicitly wants GitHub Actions updates. Add other ecosystems only if manifests exist.", + "historical_and_human_interaction": "Respond to supported @dependabot commands after reading bot status; human review remains required under repo rules, and bot actor restrictions affect secrets.", + "recovery": "Read update log before rebase/recreate; remove obsolete ignore, fix registry access narrowly, rerun supported job and verify generated PR." + }, + { + "id": "secret-scanning", + "capability_ids": [ + "security-secret-alerts", + "security-push-protection", + "security-custom-patterns" + ], + "title": "Secret detection, push protection and exceptions", + "options": [ + { + "name": "detection options", + "values": "provider patterns, non-provider/generic/AI detection where eligible; validity checks; extended metadata", + "decision_rule": "Enable supported useful detection; validity/metadata may contact provider and have product gates.", + "verification": "Read settings and scan history/coverage, not alert count alone." + }, + { + "name": "push protection", + "values": "repository protection versus personal protection; supported pattern participation", + "decision_rule": "Do not mistake personal block for repository policy; repository scanning remains separate.", + "verification": "Read repository setting and safe documented test result." + }, + { + "name": "custom patterns", + "values": "name, secret regex, before/after context, additional match requirements; dry-run/publish; push protection", + "decision_rule": "Use safe synthetic examples and negative corpus; dry-run before publishing noisy pattern.", + "verification": "Record pattern ID/version and positive/negative results." + }, + { + "name": "bypass governance", + "values": "test/false-positive/fix-later reasons where offered; delegated reviewers, expiry/review path", + "decision_rule": "Never bypass a valid live credential; fix/revoke instead. Independent reviewer decision stays with reviewer.", + "verification": "Read request, actor, comment, expiry and resulting alert." + }, + { + "name": "alert state", + "values": "open/resolved; revoked, false_positive, used_in_tests, wont_fix or current schema reasons; location/history", + "decision_rule": "Revoke with provider first; resolving UI alert does not revoke token or erase history.", + "verification": "Check provider revocation and read alert location/resolution metadata." + }, + { + "name": "dismissal governance", + "values": "direct or delegated dismissal; role eligibility; notification/review state", + "decision_rule": "Confirm reviewer coverage before enforcing; preserve rationale even for test secrets.", + "verification": "Read request/outcome, reviewer and reopened state if rejected." + } + ], + "sources": [ + "https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning", + "https://docs.github.com/en/rest/secret-scanning/secret-scanning", + "https://docs.github.com/en/rest/secret-scanning/push-protection", + "https://docs.github.com/en/rest/secret-scanning/custom-patterns", + "https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Useful for public repo; synthetic tests must not leak live values. Security setting read may itself contain secret values; redact outputs.", + "historical_and_human_interaction": "Retain private alert IDs, discovery/rotation timestamps and reviewed exception reasons; do not copy secret strings into public issues.", + "recovery": "Revoke at provider, replace consumers and scan history; history rewriting is separate consequential work and does not invalidate copied credentials." + }, + { + "id": "security-coordination", + "capability_ids": [ + "security-advisories", + "security-campaigns" + ], + "title": "Confidential reports, advisory publication and campaigns", + "options": [ + { + "name": "reporting policy", + "values": "SECURITY.md supported versions/contact; private vulnerability reporting enabled/disabled", + "decision_rule": "Provide confidential route and realistic response ownership.", + "verification": "Inspect rendered policy and actual reporting availability." + }, + { + "name": "advisory content", + "values": "draft/published/withdrawn, severity/CVSS/CWE, vulnerable ranges/patched versions, references, credit, CVE request", + "decision_rule": "Keep report private until fix/disclosure agreement; verify affected ranges.", + "verification": "Read advisory state/collaborators and clean install of patched release." + }, + { + "name": "collaboration", + "values": "report triage, comments, invited collaborators, temporary private fix fork", + "decision_rule": "Grant only necessary confidential access and retain reporter coordination.", + "verification": "Read actual collaborator identities and private fork/review history." + }, + { + "name": "campaign setup", + "values": "selected code alerts, repositories, managers/teams, contact, deadline; draft UI versus published API; optional generated issues", + "decision_rule": "Use for multi-repository remediation requiring tracking; preserve private finding visibility.", + "verification": "Read published campaign scope/counts and corresponding resolved alerts." + }, + { + "name": "publication / withdrawal", + "values": "explicit publish/CVE disclosure; withdrawal constraints; notification effects", + "decision_rule": "Publication is irreversible disclosure; prepare exact reviewed advisory/fix before authorized publish.", + "verification": "Read public GHSA/CVE and release timestamps; verify issue scope." + } + ], + "sources": [ + "https://docs.github.com/en/rest/security-advisories/repository-advisories", + "https://docs.github.com/en/rest/campaigns/campaigns" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Confidential reporting is useful; campaigns require actual alert program and owner eligibility, not a placeholder.", + "historical_and_human_interaction": "Preserve reporter credits, embargo agreement, fix review and disclosure decision privately; public release notes must respect agreed timing.", + "recovery": "Correct advisory affected ranges/notes and notify existing recipients; never claim withdrawal removes already disclosed information." + }, + { + "id": "release-lifecycle", + "capability_ids": [ + "releases-lifecycle", + "releases-assets", + "releases-immutable" + ], + "title": "Drafts, generated notes, assets and immutability", + "options": [ + { + "name": "release identity", + "values": "tag_name, target_commitish for new tag, name, draft, prerelease, make_latest", + "decision_rule": "Existing tag determines commit; target_commitish does not move it. Match plugin manifest version to v-tag.", + "verification": "Resolve tag object/commit, release ID and version file." + }, + { + "name": "notes", + "values": "body; generated notes; previous tag/configuration; categories/exclusions; discussion category where eligible", + "decision_rule": "Review generated changelog; include install commands, validation evidence and limits.", + "verification": "Read rendered notes and linked issues/PRs against intended range." + }, + { + "name": "asset upload", + "values": "binary content type, filename/label; draft upload URL; per-asset ID/digest/size", + "decision_rule": "Build deterministic installable archive, inspect hidden files and allowlist before attaching.", + "verification": "Download attached bytes and compare SHA-256/archive manifest." + }, + { + "name": "immutability", + "values": "repo/org policy; new release behavior; immutable flag", + "decision_rule": "Create draft, attach every asset, then publish. Published assets/tag become locked; notes/title/latest/prerelease remain editable.", + "verification": "Read immutable flag, tag SHA, asset digest and release attestation." + }, + { + "name": "publication/recovery", + "values": "draft update versus publish; prerelease/stable; delete constraints; corrective next version", + "decision_rule": "Do not publish from merely prepared source; irreversible distribution needs existing release authorization.", + "verification": "Read published_at, exact asset bytes, install from release and latest pointer." + } + ], + "sources": [ + "https://docs.github.com/en/rest/releases/releases", + "https://docs.github.com/en/rest/releases/assets", + "https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository", + "https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Core delivery path: plugin version, v-tag, installation docs and validation evidence must agree. Immutability prevents patching published archive.", + "historical_and_human_interaction": "Record release preparer/reviewer/publisher, reviewed tag SHA and prior release comparison. Discussion and release notes carry human feedback/history.", + "recovery": "For immutable wrong asset/tag, publish a new corrected version; editable notes cannot change locked bytes. Never force-move tag as an assumed recovery." + }, + { + "id": "attestations", + "capability_ids": [ + "attestations-provenance", + "attestations-linked-artifacts" + ], + "title": "Provenance, SBOM and linked artifact records", + "options": [ + { + "name": "statement type", + "values": "build provenance or SBOM attestation; artifact digest/name; supported registry publication", + "decision_rule": "Attest exact distributed bytes; provenance says how/where built, not absence of bugs.", + "verification": "Verify subject digest and trusted repository/workflow identity." + }, + { + "name": "workflow grants", + "values": "id-token:write, attestations:write; contents/read and packages/write only when needed", + "decision_rule": "Isolate attestation in trusted release job; eligibility varies with visibility/plan.", + "verification": "Inspect effective permissions and successful verify output." + }, + { + "name": "verification constraints", + "values": "trusted owner/repo/workflow, predicate type, signer identity, source ref/commit; offline/bundle modes where supported", + "decision_rule": "Do not accept any valid GitHub signature; require intended producer.", + "verification": "Run gh attestation verify against downloaded exact asset and identity policy." + }, + { + "name": "linked artifacts", + "values": "storage metadata and artifact association using current endpoint schema", + "decision_rule": "Distinguish storage record/link from uploaded file and signed attestation.", + "verification": "Read link identity, digest and referenced object existence." + } + ], + "sources": [ + "https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds", + "https://docs.github.com/en/rest/repos/attestations", + "https://docs.github.com/en/rest/orgs/artifact-metadata" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Consider for installable release artifact when trusted workflow builds it; record unavailable eligibility instead of assuming.", + "historical_and_human_interaction": "Keep verifier command/policy/output and producing workflow SHA with release record; release attestation and custom build provenance are distinct.", + "recovery": "Rebuild/re-attest correct bytes in trusted workflow; revoke trust in compromised producer and publish corrective version." + }, + { + "id": "packages", + "capability_ids": [ + "packages-metadata", + "packages-registry", + "packages-access", + "packages-trusted-publishing" + ], + "title": "Registries, package ACL and trusted publishing", + "options": [ + { + "name": "registry/form", + "values": "OCI/GHCR, npm, NuGet, RubyGems granular; Maven/Gradle repository-scoped; host support", + "decision_rule": "Choose only ecosystem actually distributed; REST metadata does not publish package bytes.", + "verification": "Install/pull exact version/digest from clean intended consumer." + }, + { + "name": "authentication", + "values": "GITHUB_TOKEN packages:read/write in workflow; supported classic PAT scopes for registry; registry-specific OIDC/trusted publishing", + "decision_rule": "Prefer short-lived workflow credential; trusted-publishing support is registry-specific, not universal.", + "verification": "Verify exact registry trust configuration and authenticated clean install." + }, + { + "name": "link and inheritance", + "values": "repository link, inherited repository permissions, automatic inheritance org policy; explicit user/team ACL", + "decision_rule": "Linked repo alone may not grant workflow access if ACL inheritance differs.", + "verification": "Read package settings/inheritance and intended principal access." + }, + { + "name": "Actions access", + "values": "selected repository access to granular package; separate Codespaces access", + "decision_rule": "Grant only consumer/producer repos; token scope alone cannot override package ACL.", + "verification": "Test authorized workflow and excluded repo denial." + }, + { + "name": "visibility", + "values": "private/internal/public where supported; public transitions can be restricted/irreversible", + "decision_rule": "Do not infer public package from public source repository.", + "verification": "Read package visibility and anonymous pull when intended." + }, + { + "name": "versions/delete/restore", + "values": "immutable consumer digest, tags, version metadata; package/version deletion; restoration eligibility/window", + "decision_rule": "Do not delete versions still used; inspect downloads and restoration constraints first.", + "verification": "Read version ID and digest; restore and reinstall when authorized." + }, + { + "name": "external trusted publisher", + "values": "owner/repository/workflow/environment binding; OIDC permission and registry policy", + "decision_rule": "For npm or other external registry, distinguish that registry from GitHub Packages. Verify registry official docs.", + "verification": "Perform registry-specific dry-run or publish only with release authorization; read resulting provenance." + } + ], + "sources": [ + "https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages", + "https://docs.github.com/en/packages/learn-github-packages/publishing-a-package", + "https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package", + "https://docs.npmjs.com/trusted-publishers/" + ], + "community_sources": [ + "https://github.com/orgs/community/discussions/32184", + "https://github.com/orgs/community/discussions/57809" + ], + "pitfalls": [ + "Community reports show packages:write token permission alone did not fix missing package inheritance/Actions access; inspect both.", + "Classic PAT restrictions and SSO can block registry auth despite scope. Do not respond by granting broader scopes blindly." + ], + "project_applicability": "GITHUB.md explicitly says no separate package artifact requirement. Plugin marketplace/source releases currently satisfy distribution; do not publish artificial package.", + "historical_and_human_interaction": "Retain package/version IDs, producer SHA, ACL reviewers and deprecation notices; preserve consumer compatibility.", + "recovery": "Correct package ACL/link narrowly; rotate exposed tokens; publish corrected immutable version/digest instead of relying on mutable tags." + }, + { + "id": "pages", + "capability_ids": [ + "pages-settings", + "pages-builds" + ], + "title": "Pages source, DNS, TLS and publication", + "options": [ + { + "name": "build_type / source", + "values": "legacy branch path root/docs or workflow; branch; custom workflow upload/deploy", + "decision_rule": "Use source matching actual site generator; branch commits using GITHUB_TOKEN do not trigger branch Pages build.", + "verification": "Read Pages configuration and actual successful build/deployment SHA." + }, + { + "name": "workflow grants / target", + "values": "contents:read, pages:write, id-token:write; github-pages environment and artifact", + "decision_rule": "Scope deployment permissions to job and keep environment protections.", + "verification": "Read uploaded Pages artifact, deployment status and environment." + }, + { + "name": "custom domain", + "values": "CNAME, DNS A/AAAA/CNAME records, domain verification, protected domain ownership", + "decision_rule": "Verify domain before linking and remove stale DNS when disabling.", + "verification": "Read DNS health, ownership record and served hostname." + }, + { + "name": "HTTPS", + "values": "certificate provisioning and https_enforced when available", + "decision_rule": "Wait for valid certificate before enforcing; inspect mixed content.", + "verification": "Verify HTTPS chain/hostname and HTTP redirect." + }, + { + "name": "visibility / path", + "values": "project site base path, public/private enterprise entitlement; repository visibility differs", + "decision_rule": "Do not publish private source content without intended audience decision.", + "verification": "Fetch as intended anonymous/authenticated user and inspect base-path assets." + }, + { + "name": "build/history/recovery", + "values": "branch build/request; workflow Pages deployment status/cancel; external health", + "decision_rule": "A successful build does not prove correct public content.", + "verification": "Fetch expected marker/version, navigation/assets and custom-domain redirect." + } + ], + "sources": [ + "https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site", + "https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages", + "https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages", + "https://docs.github.com/en/rest/pages/pages" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "No site requirement exists in GITHUB.md; keep Pages not-applicable until useful published site is requested.", + "historical_and_human_interaction": "Record domain owner authorization, workflow approval and deployed SHA; preserve previous successful deployment for rollback.", + "recovery": "Redeploy prior verified site revision; correct source/base path/DNS, then recheck served bytes and TLS; deleting Pages alone leaves dangerous stale DNS." + }, + { + "id": "checks-statuses", + "capability_ids": [ + "checks-runs", + "checks-suites", + "checks-commit-statuses" + ], + "title": "Required check identity and review integration", + "options": [ + { + "name": "check run", + "values": "name, head_sha, status/conclusion, started/completed timestamps, output/annotations, details_url; app identity", + "decision_rule": "Stable unique names per required check; attach to exact tested SHA.", + "verification": "Read check name, app ID, head_sha and actual command evidence." + }, + { + "name": "check suite", + "values": "automatic creation preferences, rerequest, suite status", + "decision_rule": "Suite success does not replace individual required checks; some writes are App-only.", + "verification": "Read suite and associated run conclusions." + }, + { + "name": "commit status", + "values": "context, state pending/success/failure/error, target_url, description", + "decision_rule": "Keep context distinct from check-run names to avoid ambiguous requirement matching.", + "verification": "Read combined and individual statuses on intended SHA." + }, + { + "name": "protection binding", + "values": "required context/app, strict branch freshness, merge_group coverage; skipped/neutral semantics", + "decision_rule": "Read rulesets and classic protection; require checks that actually test code.", + "verification": "Observe PR required check evaluation after latest push and merge-queue test commit." + } + ], + "sources": [ + "https://docs.github.com/en/rest/checks/runs", + "https://docs.github.com/en/rest/checks/suites", + "https://docs.github.com/en/rest/commits/statuses", + "https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Existing three validation commands remain authoritative. Peer approval count zero is deliberate single-maintainer policy.", + "historical_and_human_interaction": "Keep reviewer comments, check rerequest actor, force-push/stale-review history and final merge SHA; green unrelated SHA is insufficient.", + "recovery": "Fix missing event/name/app permission and rerun actual required check; never spoof status or remove protection to merge." + }, + { + "id": "agentic-workflows", + "capability_ids": [ + "actions-agentic-workflows" + ], + "title": "Agentic workflows and constrained output", + "options": [ + { + "name": "definition / compilation", + "values": "Markdown instructions plus frontmatter; generated workflow; gh aw compile", + "decision_rule": "Review generated YAML after instruction change and keep compiled artifact synchronized.", + "verification": "Compile and compare source/generated diff; inspect actual workflow SHA." + }, + { + "name": "engine / credentials", + "values": "supported Copilot/Codex/Claude/Gemini engine; engine-specific secret and billing", + "decision_rule": "Choose only an authorized available engine and narrow authentication.", + "verification": "Check engine initialization and approved usage budget without exposing keys." + }, + { + "name": "guardrails", + "values": "read-only runtime, firewall/network, tools, explicit safe-outputs and threat-detection gates", + "decision_rule": "Allow only requested outputs; proposed issue/comment/PR is still external action requiring existing authorization.", + "verification": "Inspect generated downstream write job permissions and resulting object IDs." + }, + { + "name": "review / triggers", + "values": "schedule/dispatch/events; allowed actors; human-reviewed PR outputs", + "decision_rule": "Treat repository text as untrusted prompt input; retain human review before merge/deploy.", + "verification": "Exercise controlled input and inspect output safety/review history." + } + ], + "sources": [ + "https://docs.github.com/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows", + "https://docs.github.com/en/actions/tutorials/develop-agentic-workflows-in-github-actions", + "https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/agents/about-github-agentic-workflows" + ], + "community_sources": [], + "pitfalls": [], + "project_applicability": "Optional automation needs concrete recurring task, engine eligibility and authorized outputs; ordinary deterministic validation is sufficient now.", + "historical_and_human_interaction": "Retain prompts/config revisions, generated proposals, human acceptance/rejection and exact downstream writes; do not call model output an independent approval.", + "recovery": "Disable affected workflow, stop pending writes and revoke compromised credentials; fix prompt/tool policy and inspect all emitted changes before reenable." + }, + { + "id": "organization-access-defaults", + "capability_ids": [ + "admin-organization-profile", + "admin-organization-policy-settings", + "admin-organization-members", + "admin-outside-collaborators" + ], + "title": "Organization member privileges and effective access", + "options": [ + { + "name": "Base repository permission", + "values": "none | read | write | admin; REST documented default read", + "decision_rule": "Recommend none for private least-privilege organizations, then explicit teams; preserve existing grants. Internal repositories remain readable to enterprise members.", + "verification": "Read default_repository_permission and test effective access of a representative ordinary member." + }, + { + "name": "Member repository creation", + "values": "members_can_create_public_repositories/private_repositories/internal_repositories: boolean per visibility", + "decision_rule": "Use separate visibility controls; enterprise may prohibit internal/public creation. Do not send closing-down members_allowed_repository_creation_type.", + "verification": "Read each flag and inherited enterprise constraint." + }, + { + "name": "Member administrative powers", + "values": "members_can_delete_repositories; members_can_change_repo_visibility; members_can_invite_outside_collaborators; members_can_create_teams; members_can_delete_issues: booleans", + "decision_rule": "Choose each separately; broad repository admin authority does not authorize destructive actions in this session.", + "verification": "Read flags plus actual repository administrators; record inherited restrictions." + }, + { + "name": "Public identity versus billing contact", + "values": "name/company/blog/location/public email/description versus billing_email", + "decision_rule": "Publish only owner-approved contact data; billing address stays private.", + "verification": "Inspect public profile signed out and billing contact through owner-only settings." + }, + { + "name": "Invitation and membership", + "values": "invitation pending/failed; organization role member/admin; member visibility private/public", + "decision_rule": "Invite exact login/email and chosen role; wait for acceptance and required identity setup. Never infer full membership from public members.", + "verification": "Read invitations and authenticated membership; verify access after acceptance." + }, + { + "name": "Outside collaborator conversion/removal", + "values": "organization member versus outside collaborator; repository role per grant", + "decision_rule": "Inventory team access and owned responsibilities first; explicit offboarding scope includes deploy keys/App access, not just user removal.", + "verification": "Read remaining direct/team/base grants and outstanding invitations after change." + } + ], + "sources": [ + "https://docs.github.com/en/rest/orgs/orgs", + "https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/setting-base-permissions-for-an-organization", + "https://docs.github.com/en/rest/orgs/members", + "https://docs.github.com/en/rest/orgs/outside-collaborators" + ], + "community_sources": [], + "pitfalls": [ + "REST response examples are not tenant defaults. Base changes affect existing members too; private forks require separate inspection.", + "A lower direct grant cannot subtract higher base/team/custom-role access." + ] + }, + { + "id": "teams-roles", + "capability_ids": [ + "admin-teams", + "admin-team-members", + "admin-team-idp-sync", + "admin-team-external-groups", + "admin-organization-role-assignments", + "admin-organization-custom-roles", + "admin-organization-custom-role-definitions", + "admin-enterprise-role-assignments", + "admin-organization-security-managers" + ], + "title": "Nested teams and delegated roles", + "options": [ + { + "name": "Team privacy", + "values": "secret | closed; new non-nested REST default secret, child default closed", + "decision_rule": "Set explicitly: closed for discoverable normal teams; secret cannot have parent/children.", + "verification": "Read privacy and parent for every team, including secret teams through owner identity." + }, + { + "name": "Hierarchy and identity", + "values": "parent_team_id or parent_team_slug; ID takes precedence", + "decision_rule": "Keep existing team IDs; resolve current slug after rename; verify inherited repository grants.", + "verification": "Read parent/children and effective repository access for child member." + }, + { + "name": "Mention notifications", + "values": "notifications_enabled | notifications_disabled; default enabled", + "decision_rule": "Disable only intentionally; CODEOWNERS/team mentions must reach responsible humans.", + "verification": "Read notification_setting; ask intended maintainers to verify receipt during authorized collaboration." + }, + { + "name": "Team member authority", + "values": "member | maintainer; pending invitation versus active membership", + "decision_rule": "Maintainer is team administration, not organization owner. Team creator becomes maintainer automatically. IdP-synced membership is changed at IdP.", + "verification": "Read team membership role/state and synchronization mapping." + }, + { + "name": "Repository roles", + "values": "read/triage/write/maintain/admin in UI; pull/push map to read/write in team REST; custom role name/ID", + "decision_rule": "Assign the least role needed; check combined base/direct/team/custom permissions.", + "verification": "Read permission sources and a representative allowed/denied operation." + }, + { + "name": "Custom role definition", + "values": "base repository role plus additional permission identifiers; organization role permissions from fine-grained-permission discovery", + "decision_rule": "Discover currently allowed identifiers, dependencies and plan; do not hard-code an old permission list. Separate definition from user/team assignment.", + "verification": "Read role definitions, assigned users/teams and inherited permissions before deleting or replacing a role." + }, + { + "name": "Security manager migration", + "values": "organization roles assignment; legacy security-managers routes retiring", + "decision_rule": "Use current organization role discovery; preserve historical role-change evidence and existing assignments.", + "verification": "Read replacement role and exact affected users/teams; record unsupported legacy endpoint response." + } + ], + "sources": [ + "https://docs.github.com/en/rest/teams/teams", + "https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams", + "https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles", + "https://docs.github.com/en/rest/orgs/organization-roles", + "https://docs.github.com/en/rest/orgs/security-managers" + ], + "community_sources": [], + "pitfalls": [ + "Secret-team names can appear in mention text. A successful visible-team list does not prove no secret team exists.", + "Do not remove a role as a shortcut to reconciling assignments; recover original role and grants first." + ] + }, + { + "id": "identity-recovery", + "capability_ids": [ + "admin-identity-policies", + "admin-organization-audit-and-sso", + "admin-organization-scim", + "admin-enterprise-scim", + "admin-enterprise-credentials" + ], + "title": "SSO, provisioning, 2FA and account recovery", + "options": [ + { + "name": "Organization SAML connection", + "values": "Sign on URL; Issuer; public certificate; enabled versus required", + "decision_rule": "Configure/test first, authenticate owner at least once, preserve offline recovery codes; only then enforce.", + "verification": "Test IdP login and inspect list of members GitHub proposes removing before confirmation." + }, + { + "name": "Enterprise SAML inheritance", + "values": "enterprise enforced versus organization configuration", + "decision_rule": "Enterprise enforcement overrides organization SAML; assess every organization and service credential before rollout.", + "verification": "Verify effective connection and representative member login across affected organizations." + }, + { + "name": "Provisioning model", + "values": "ordinary account invitations; organization SCIM; Enterprise Managed Users SCIM", + "decision_rule": "Identify model before changing users. IdP governs managed-user lifecycle; ordinary local invitation is not an EMU substitute.", + "verification": "Read external identity, active state and group/team mapping with correct host API." + }, + { + "name": "Authentication assurance", + "values": "2FA required yes/no; allowed 2FA methods per actual host policy; passkeys/security keys/recovery methods", + "decision_rule": "Inventory impacted users and service accounts, notify humans, retain independent recovery methods; enforcement requires access-impact authorization.", + "verification": "Read requirement and member compliance; verify owners retain a tested recovery route." + }, + { + "name": "Verified/approved domains", + "values": "DNS verification record; verified domain; notification-domain restriction where available", + "decision_rule": "Verify DNS ownership before restricting notifications; record DNS lifecycle owner.", + "verification": "Read verification and send destinations; do not confuse verified domain with automatic SSO provisioning." + }, + { + "name": "Offboarding and recovery", + "values": "suspend/deprovision; remove membership; revoke SSO credential; revoke token; delete account are distinct", + "decision_rule": "Record actor/subject IDs, teams, grants and recovery constraints; choose reversible suspension when it meets request.", + "verification": "Check effective denial and preserved records; use documented recovery rather than recreating identity blindly." + } + ], + "sources": [ + "https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enabling-and-testing-saml-single-sign-on-for-your-organization", + "https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enforcing-saml-single-sign-on-for-your-organization", + "https://docs.github.com/en/enterprise-cloud@latest/admin/managing-iam/using-saml-for-enterprise-iam/configuring-saml-single-sign-on-for-your-enterprise", + "https://docs.github.com/en/rest/scim" + ], + "community_sources": [], + "pitfalls": [ + "Enforcing organization SAML can remove members who have not authenticated with IdP. Downloading recovery codes into logs exposes recovery access.", + "SCIM deprovisioning, IdP group deletion and GitHub membership removal are different effects; verify all required layers." + ] + }, + { + "id": "tokens-oauth", + "capability_ids": [ + "admin-organization-token-governance", + "admin-enterprise-token-inventory", + "admin-oauth-app-authorizations", + "admin-credential-revocation" + ], + "title": "PAT and OAuth lifecycle", + "options": [ + { + "name": "PAT family and resource owner", + "values": "fine-grained | classic; one resource owner for fine-grained; all versus selected repositories", + "decision_rule": "Prefer fine-grained when endpoint supports it, or installation App for long-lived automation. Check unsupported workflows before choosing token.", + "verification": "Inspect token family, owner, selected repositories and endpoint-specific permission without showing token." + }, + { + "name": "Fine-grained approval", + "values": "Require administrator approval (documented default) | Do not require administrator approval", + "decision_rule": "Keep approval unless owner explicitly chooses otherwise; owners own requests auto-approve. Pending tokens only read public resources.", + "verification": "Read pending requests, requested access/expiry and final request state; requester confirms operation after approval." + }, + { + "name": "Classic access policy", + "values": "allow versus restrict classic PAT access, separate from fine-grained approval", + "decision_rule": "An approval rule does not control classic PATs; choose both policies and inherited enterprise restrictions.", + "verification": "Read both token-family policies and existing token inventory." + }, + { + "name": "Maximum token lifetime", + "values": "organization/enterprise configured maximum per token family; token expiration date", + "decision_rule": "Use finite lifetime appropriate to workflow and rotation owner; read actual allowed range from current host rather than inventing universal default.", + "verification": "Check expiry and rotation reminder; verify replacement works before revoking old token." + }, + { + "name": "Request decision API", + "values": "action approve | deny; optional reason max1024; GitHub App user/installation tokens only", + "decision_rule": "Human reviews requested repositories and permissions; organization App token needs Personal access token requests write. PAT cannot approve itself through this API.", + "verification": "Read request ID/state; preserve reason and actor; requester gets notification." + }, + { + "name": "OAuth app governance", + "values": "authorized user grant; organization OAuth restrictions; approved/requested App access", + "decision_rule": "Separate user authorization from organization approval and SSO authorization. Never assume OAuth install is GitHub App install.", + "verification": "Read app owner/client identity, scopes, organization authorization and last-use evidence." + }, + { + "name": "Revocation", + "values": "revoke organization access; revoke authorization; delete secret; emergency credential revocation", + "decision_rule": "Record consequence and affected automation; revoke exposed credential and rotate consumers. Revocation cannot recover original secret.", + "verification": "Verify old credential fails and new scoped credential succeeds without logging either." + } + ], + "sources": [ + "https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens", + "https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization", + "https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/managing-requests-for-personal-access-tokens-in-your-organization", + "https://docs.github.com/en/rest/orgs/personal-access-tokens", + "https://docs.github.com/en/rest/apps/oauth-applications" + ], + "community_sources": [], + "pitfalls": [ + "403/404 may be SSO/resource-selection/approval restrictions, not absent repository. Changing token scope cannot add rights the token owner lacks.", + "Do not paste credentials into issue reports, approval reasons, URLs or diagnostic artifacts." + ] + }, + { + "id": "app-registration", + "capability_ids": [ + "admin-github-apps", + "admin-github-app-installations", + "admin-enterprise-app-installations", + "admin-marketplace" + ], + "title": "App registration versus installation", + "options": [ + { + "name": "Registration owner/distribution", + "values": "personal or organization owner; Only on this account | Any account", + "decision_rule": "Keep internal app private unless broader distribution requested.", + "verification": "Read App ID/slug/owner and installation availability." + }, + { + "name": "User authorization flow", + "values": "up to10 callback URLs; expiring user tokens selected by default; request OAuth during installation; device flow optional", + "decision_rule": "Enable only needed flow; keep expiry. Setup URL cannot coexist with requesting user OAuth during installation.", + "verification": "Test exact redirect and expiration/refresh path without exposing secrets." + }, + { + "name": "Post-install configuration", + "values": "Setup URL; Redirect on update boolean", + "decision_rule": "Use for required onboarding; installation repository selection changes can re-trigger setup.", + "verification": "Verify existing installation update preserves completed human configuration." + }, + { + "name": "Permission/event selection", + "values": "No access | Read-only | Read & write as offered; repository/organization/account permissions; events constrained by permissions", + "decision_rule": "Choose endpoint minimum; expanded permissions require installation approval.", + "verification": "Compare requested registration permissions to currently approved installation permissions." + }, + { + "name": "Installation repository scope", + "values": "All repositories | Only select repositories; installation ID; suspended state", + "decision_rule": "Select only necessary repositories; registration, user consent and installation are separate.", + "verification": "Read installation repository list and mint a scoped token only for authorized operation." + }, + { + "name": "Private keys and token lifecycle", + "values": "App JWT; installation token; user token; private-key rotation", + "decision_rule": "Store keys securely; install token may narrow approved permissions/repos. Rotate by adding replacement, verifying, then removing old key.", + "verification": "Verify App identity and token expiry/permissions; do not print PEM/JWT/token." + } + ], + "sources": [ + "https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app", + "https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party", + "https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation" + ], + "community_sources": [], + "pitfalls": [ + "Uninstalling an external-property App removes its external custom properties; preserve values first.", + "App permission change is not proof all existing installations accepted the expansion." + ] + }, + { + "id": "webhook-delivery", + "capability_ids": [ + "admin-organization-webhooks", + "admin-github-app-webhooks" + ], + "title": "Webhook security and delivery recovery", + "options": [ + { + "name": "Delivery configuration", + "values": "active true/false; config.url HTTPS; content_type json/form; insecure_ssl 0/1; secret stored separately", + "decision_rule": "Use HTTPS, verification enabled (0) and high-entropy secret; subscribe only needed events.", + "verification": "Read redacted configuration and selected events; validate signature on receiver." + }, + { + "name": "Receiver behavior", + "values": "X-GitHub-Event plus action; X-GitHub-Delivery; 2XX within10seconds", + "decision_rule": "Durably enqueue, acknowledge quickly, process idempotently; unknown action is not assumed safe.", + "verification": "Inspect receipt, signature failure, queue processing and resulting business object." + }, + { + "name": "Delivery recovery", + "values": "ping; deliveries; delivery detail; redeliver attempt", + "decision_rule": "Inspect failures before replay; replay same GUID must not duplicate side effects.", + "verification": "Read redelivery result and downstream state; POST acceptance alone is incomplete." + }, + { + "name": "Retry credentials/runtime", + "values": "organization/App/repository webhook permissions; installed runtime/module support", + "decision_rule": "Use scope-correct credentials; GITHUB_TOKEN cannot redeliver repository webhooks. Validate sample runtime imports before deployment.", + "verification": "Run bounded redelivery test; check response status and error paths." + }, + { + "name": "History and secret rotation", + "values": "original delivery GUID plus attempt IDs/statuses; old/new verifier secret transition", + "decision_rule": "Retain payload metadata only under approved data policy; coordinate producer/receiver rotation.", + "verification": "Verify latest signature and queue state, preserve original failed delivery and retry evidence." + } + ], + "sources": [ + "https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks", + "https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-repository-webhook", + "https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-github-app-webhook", + "https://docs.github.com/en/rest/orgs/webhooks" + ], + "community_sources": [ + "https://github.com/orgs/community/discussions/126156" + ], + "pitfalls": [ + "OAuth-created hooks can be inaccessible to another credential type. Secret plaintext is not recoverable from readback.", + "Community #126156 reports a stale CommonJS Octokit sample failing ERR_REQUIRE_ESM; current App guide uses .mjs. Verify installed package/runtime, do not cargo-cult old snippet." + ] + }, + { + "id": "audit-history", + "capability_ids": [ + "admin-organization-audit-and-sso", + "admin-enterprise-audit", + "admin-organization-api-insights", + "admin-activity-events", + "admin-personal-data-export" + ], + "title": "Audit history and incident evidence preservation", + "options": [ + { + "name": "Read channel/time window", + "values": "UI; JSON/CSV export; REST; stream; explicit created/date filters", + "decision_rule": "UI default shows3months; enterprise web events180days and Git events7days. Export early; event channel determines completeness.", + "verification": "Record earliest/latest timestamps, filters, pages and counts for each channel." + }, + { + "name": "Git versus API event evidence", + "values": "Git clone/fetch/push; API requests; web-origin operations; SSO responses", + "decision_rule": "Git REST events exclude some web/API initiated effects; do not equate Git event inventory with all mutations.", + "verification": "Correlate request IDs, actor/subject IDs, repository IDs and object timelines." + }, + { + "name": "Streaming configuration", + "values": "destination; active/paused; API request events opt-in; source IP disclosure; available Copilot agent events preview", + "decision_rule": "Use enterprise stream for future retention; decide sensitive IP/log access and destination permissions with owner.", + "verification": "Verify receiver ingestion, last event time, health notifications and queryable retained sample." + }, + { + "name": "Continuity and deduplication", + "values": "at-least-once delivery;7day pause buffer; destination-specific acceptance window", + "decision_rule": "Keep event IDs and deduplicate; repair misconfiguration within6days. Datadog can reject events older than18hours.", + "verification": "Monitor gaps and resume cursor; do not claim backfill predating stream enablement." + }, + { + "name": "Preservation artifact", + "values": "raw read-only export; capture timestamp/host/API version/filter; checksum; restricted storage; separate analysis", + "decision_rule": "Preserve original evidence and write an additive change ledger; record renamed/deleted actor IDs. Export before destructive account/policy changes.", + "verification": "Verify archive readability and checksums; test incident-responder access without publishing private logs." + }, + { + "name": "Account export", + "values": "requested/in-progress/completed; expiring download link; revoke download link", + "decision_rule": "Treat point-in-time personal metadata export separately from repository backup and audit stream.", + "verification": "Inspect completed archive structure privately and verify requested revocation." + } + ], + "sources": [ + "https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/accessing-the-audit-log-for-your-enterprise", + "https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization", + "https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise", + "https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/requesting-an-archive-of-your-personal-accounts-data" + ], + "community_sources": [], + "pitfalls": [ + "An empty event slice can be retention, filter, permission or channel loss. GitHub Support does not preserve incident logs for you.", + "API usage statistics, public Events and repository traffic are not substitutes for retained security audit evidence." + ] + }, + { + "id": "billing-budget-options", + "capability_ids": [ + "admin-billing-budgets", + "admin-billing-usage", + "admin-billing-cost-centers", + "admin-billing-usage-reports", + "admin-enterprise-licensing" + ], + "title": "Billing budgets, attribution and hard stops", + "options": [ + { + "name": "Budget subject", + "values": "budget_scope organization/repository/multi_user_customer/user; enterprise/cost_center on their supported scope endpoints", + "decision_rule": "Match payer and subject; do not create a duplicate budget before reading existing overlapping controls.", + "verification": "Read budget IDs, scopes, product/SKU and payer; reconcile pages against total_count/has_next_page." + }, + { + "name": "Pricing selector", + "values": "BundlePricing + ai_credits; ProductPricing + product; SkuPricing + SKU", + "decision_rule": "Use live supported billing schema, not retired product assumptions.", + "verification": "Read chosen selector and resulting budget; export actual SKU usage." + }, + { + "name": "Amount/enforcement", + "values": "budget_amount integer; prevent_further_usage boolean; user/universal must true", + "decision_rule": "Set authorized cap; ordinary budget UI hard stop is off by default, alerts alone do not cap spend.", + "verification": "Read enforcement and applicable remaining capacity; never disable cap merely to clear an error." + }, + { + "name": "User budget payload", + "values": "user login required for user scope; budget_entity_name empty allowed; optional future expires_at YYYY-MM-DD", + "decision_rule": "Explicit user field is required even where generated schema omits it. User budgets always stop usage.", + "verification": "Read subject/expiry and test affected user policy without incurring unauthorized charges." + }, + { + "name": "Alerting", + "values": "budget_alerting.will_alert; alert_recipients logins; user-scope alerting unavailable", + "decision_rule": "Route supported alerts to responsible humans; distinguish budget notice from product-access or seat request.", + "verification": "Read alert recipients and supported scope; verify delivery through authorized process." + }, + { + "name": "Cost center inclusion", + "values": "usage counts toward enterprise by default; exclusion optional", + "decision_rule": "Exclude only with approved independent spending authority; keep a cost-center cap.", + "verification": "Reconcile organization/user membership and exported attribution against invoice/usage." + }, + { + "name": "Recovery from blocked usage", + "values": "reset cycle; paid usage policy; user limit; organizational/cost-center/enterprise limit; account entitlement", + "decision_rule": "Identify limiting layer first; request budget increase from budget owner or wait for reset.", + "verification": "Read all applicable controls and report exact failed endpoint/policy; use UI when API is unhealthy." + } + ], + "sources": [ + "https://docs.github.com/en/rest/billing/budgets", + "https://docs.github.com/en/copilot/concepts/billing-and-usage/organizations-and-enterprises/budgets", + "https://docs.github.com/en/copilot/how-tos/manage-and-track-spending/manage-company-spending" + ], + "community_sources": [ + "https://github.com/orgs/community/discussions/166810", + "https://github.com/orgs/community/discussions/206489", + "https://github.com/orgs/community/discussions/173899" + ], + "pitfalls": [ + "Community #166810 suggests disabling stop usage; this can permit uncapped charges and is not a safe default. Current official budget order/AI credits supersede old premium-only advice.", + "Community #206489 reports organization budgets 400 with user-scoped budgets; unconfirmed globally. Preserve error and use UI, do not report zero budgets or delete seats as a workaround." + ] + }, + { + "id": "copilot-governance", + "capability_ids": [ + "admin-copilot-seats", + "admin-copilot-usage-metrics", + "admin-copilot-agent-policy", + "admin-enterprise-ai-controls", + "admin-mcp-and-custom-agent-policy" + ], + "title": "Copilot seats, nested policy and client governance", + "options": [ + { + "name": "Access assignment", + "values": "selected users/teams versus broader membership; organization seat versus enterprise-assigned access", + "decision_rule": "Start with authorized pilot; identify payer and approval owner. A seat is not a feature policy or budget.", + "verification": "Read assigned seats/access and active entitlement for target human." + }, + { + "name": "Enterprise enforcement", + "values": "Enabled; Disabled; Let organizations decide/No policy; selected organizations where offered", + "decision_rule": "Read inherited policy first; organization cannot override enterprise enforcement.", + "verification": "Inspect effective policy for each target organization and user." + }, + { + "name": "Unconfigured defaults", + "values": "separate default availability policies for GA features and GA models; enterprise-assigned user fallback policy", + "decision_rule": "Choose future-feature/model defaults explicitly; do not invent one universal default for every product.", + "verification": "Read both defaults and explicit per-feature/model overrides." + }, + { + "name": "Multiple license conflicts", + "values": "same-enterprise usually least restrictive; cross-enterprise usually most restrictive; feature-specific exceptions", + "decision_rule": "Evaluate paying org and exact conflict matrix: metrics/public-code privacy/non-GitHub semantic indexing differ.", + "verification": "Test target identity effective feature access, not only one organization settings page." + }, + { + "name": "Separate feature/client switches", + "values": "GitHub.com; CLI; Copilot app; cloud agent; review; model availability; preview; feedback; MCP in Copilot", + "decision_rule": "Configure each applicable switch; Copilot MCP policy does not govern GitHub MCP in third-party hosts.", + "verification": "Read policy supported-surface matrix and verify actual client behavior." + }, + { + "name": "Cloud-agent organization targeting", + "values": "enabled everywhere/disabled/organization-delegated/selected organizations; selected IDs or organization properties", + "decision_rule": "Property-based selection is evaluated at configuration time, not continuously on later property edits.", + "verification": "Re-read enabled org list after property changes; reconcile intentionally." + }, + { + "name": "Human lifecycle and cost", + "values": "access request; owner approval; onboarding; usage review; inactivity/offboarding", + "decision_rule": "Give users instructions, responsible support contact and budget limit; usage metrics are not a productivity ranking.", + "verification": "Verify activation and failed access, record approved removal and effective date without deleting review history." + } + ], + "sources": [ + "https://docs.github.com/en/copilot/concepts/enterprise/policies", + "https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/enterprise-administrators/policy-conflicts", + "https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies", + "https://docs.github.com/en/copilot/concepts/enterprise/agent-management", + "https://docs.github.com/en/rest/copilot/copilot-user-management" + ], + "community_sources": [], + "pitfalls": [ + "A toggle read is not a seat, model entitlement, client setting or billing verification.", + "Do not assume organization policy applies to personal users merely accessing an organization repository; policy descriptions define audience." + ] + }, + { + "id": "copilot-exclusions", + "capability_ids": [ + "admin-copilot-content-exclusions", + "admin-copilot-code-review", + "admin-copilot-cli-customization", + "admin-copilot-sdk" + ], + "title": "Content exclusion, review and local agent controls", + "options": [ + { + "name": "Repository exclusion syntax", + "values": "YAML list of path patterns; /scripts/** versus /scripts/*; case-insensitive fnmatch", + "decision_rule": "Use patterns scoped to actual sensitive files; preserve inherited exclusions.", + "verification": "Test excluded file and nonexcluded control file for inline/chat/review behavior." + }, + { + "name": "Organization/enterprise patterns", + "values": "repository URL/name mapping to path list; wildcard repository key for filesystem-wide paths", + "decision_rule": "Match intended clone URL and seat audience; enterprise and org scopes differ.", + "verification": "Inspect merged effective policies and actual resolved repository." + }, + { + "name": "Propagation and supported clients", + "values": "up to30minutes IDE propagation; reload client to refresh; current canonical support matrix", + "decision_rule": "Recheck current canonical docs and installed client: older enterprise docs may still say CLI/agents unsupported.", + "verification": "Reload VS Code or restart supported IDE then test actual target client." + }, + { + "name": "Exclusion boundary", + "values": "guardrail; indirect access, symlinks, remote filesystems, third-party MCP exceptions", + "decision_rule": "Use OS/tool permissions for hard boundaries; content exclusion cannot guarantee every access path.", + "verification": "Inspect tool permissions and avoid sensitive-file access in verification." + }, + { + "name": "CLI/SDK execution", + "values": "instructions/agents/skills/plugins/hooks/MCP/LSP; allowed tools/paths; permission handler; model/provider", + "decision_rule": "Read installed runtime schema; installation of config does not authorize arbitrary hooks or tools.", + "verification": "Bounded session verifies loaded customizations, cancellation, error handling, cleanup and permission prompt." + } + ], + "sources": [ + "https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot", + "https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/content-exclusion", + "https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/overview", + "https://docs.github.com/en/copilot/get-started/sdk-quickstart" + ], + "community_sources": [], + "pitfalls": [ + "Content exclusion is not a secret store or filesystem sandbox. Changing model/provider may change data handling and costs." + ] + }, + { + "id": "codespaces-options", + "capability_ids": [ + "admin-codespaces-lifecycle", + "admin-codespaces-machines", + "admin-codespaces-organization-access", + "admin-codespaces-organization-secrets", + "admin-codespaces-repository-secrets", + "admin-codespaces-user-secrets", + "admin-devcontainers" + ], + "title": "Codespaces policies and secrets", + "options": [ + { + "name": "Idle timeout", + "values": "default30minutes; personal timeout plus org maximum; shortest applicable wins", + "decision_rule": "Set maximum acceptable inactivity for organization-paid codespaces; terminal output can keep one active.", + "verification": "Read policy scope and inspect effective timeout after start/restart." + }, + { + "name": "Policy targeting", + "values": "All repositories | Selected repositories; organization-paid codespaces only", + "decision_rule": "Do not claim policy restricts personally paid codespaces. Maximum codespaces per user constraint is organization-wide.", + "verification": "Verify payer, targeted IDs and existing codespace next-start behavior." + }, + { + "name": "Retention and lifecycle", + "values": "default30days retention; stop/start/rebuild/delete; machine selection from available list", + "decision_rule": "Save uncommitted work before destructive deletion/rebuild; stopping compute does not remove storage charges.", + "verification": "Read state, machine and storage; verify committed backup before deletion." + }, + { + "name": "Additional constraints", + "values": "allowed machine types; base-image restrictions; forwarded-port visibility; max codespaces per user", + "decision_rule": "Configure individual constraints from real eligible plan UI; preserve intended developer functionality.", + "verification": "Create only an authorized bounded sample; verify restrictions and failure message." + }, + { + "name": "Secret scope", + "values": "organization all/private/selected repositories; repository; user selected repositories; encrypted value", + "decision_rule": "Use narrowest scope and current public key; never log plaintext; explicitly grant needed additional repository access.", + "verification": "List names/scope and test authorized consumer; readback cannot reveal encrypted secret." + } + ], + "sources": [ + "https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period", + "https://docs.github.com/en/enterprise-cloud@latest/codespaces/troubleshooting/troubleshooting-included-usage", + "https://docs.github.com/en/rest/codespaces/organization-secrets", + "https://docs.github.com/en/rest/codespaces/codespaces" + ], + "community_sources": [], + "pitfalls": [ + "Deletion does not erase storage already accrued in the current billing cycle. Shared forwarded ports and terminal traffic can defeat expected idle savings." + ] + }, + { + "id": "classification-schema", + "capability_ids": [ + "admin-organization-properties", + "admin-enterprise-properties", + "admin-enterprise-organization-properties", + "admin-organization-issue-types", + "admin-organization-issue-fields" + ], + "title": "Custom properties, issue types and shared fields", + "options": [ + { + "name": "Repository property schema", + "values": "string/single_select/multi_select/true_false; required/default/allowed_values/values_editable_by as offered", + "decision_rule": "Read existing schema and consumers first; preserve property names and values.", + "verification": "Read schema and values for new and existing customized repositories." + }, + { + "name": "External property registration", + "values": "installation_id; display_name1..15alphanumeric immutable; App-only namespace", + "decision_rule": "Confirm installation permission and lifecycle owner; unregister/uninstall can destroy App-owned values.", + "verification": "Read registration as owner (installation token only sees itself); export values before uninstall." + }, + { + "name": "Issue type", + "values": "name; is_enabled boolean; description; gray/blue/green/yellow/orange/red/pink/purple/null color", + "decision_rule": "Reuse type ID; disable obsolete type before deleting when preservation matters.", + "verification": "Read definitions and representative issue assignments." + }, + { + "name": "Shared issue field datatype", + "values": "text/date/single_select/multi_select/number", + "decision_rule": "Choose native semantics; select types require options; not the same object as Project-only field.", + "verification": "Read field ID/type and issue values; test visibility with intended collaborator." + }, + { + "name": "Shared field visibility/options", + "values": "restricted | all; organization_members_only deprecated; select option name/description/color/priority", + "decision_rule": "Explicit restricted recommended for private metadata; all exposes to anyone able to see issue. Preserve option IDs during update.", + "verification": "Read effective visibility and existing values; check host visibility-feature support." + } + ], + "sources": [ + "https://docs.github.com/en/rest/orgs/custom-properties", + "https://docs.github.com/en/rest/orgs/issue-types", + "https://docs.github.com/en/rest/orgs/issue-fields", + "https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization" + ], + "community_sources": [], + "pitfalls": [ + "API docs currently default visibility to deprecated organization_members_only; explicitly use restricted on supported versions.", + "Schema deletion/recreation can break ruleset targeting, reporting and historical issue field values." + ] + }, + { + "id": "personal-human-workflow", + "capability_ids": [ + "admin-account-profile", + "admin-account-emails", + "admin-account-keys", + "admin-account-gpg-keys", + "admin-account-ssh-signing-keys", + "admin-account-security-and-billing-ui", + "admin-notifications", + "admin-repository-watches", + "admin-account-blocking", + "admin-organization-blocking" + ], + "title": "Personal identity, notifications and human action", + "options": [ + { + "name": "Email/privacy", + "values": "primary/verified/public email; keep email private; block pushes exposing private email", + "decision_rule": "Preserve verified recovery address; choose noreply Git identity when privacy requested.", + "verification": "Inspect public commit/profile and private verification state; never publish recovery address." + }, + { + "name": "Key purpose", + "values": "SSH authentication key versus SSH signing key versus GPG key; read-only/write deploy key separate", + "decision_rule": "Keep purpose explicit; public key fingerprint identifies key, not private credential.", + "verification": "Read purpose/fingerprint and verify bounded auth or signature; inspect deploy-key grants on offboarding." + }, + { + "name": "Recovery", + "values": "passkeys/security keys/TOTP/recovery codes; active sessions; password reauthentication", + "decision_rule": "Require human control of second factors and backup recovery; never save recovery material in shared docs.", + "verification": "Owner verifies independent recovery route; revoke only explicitly targeted session/credential." + }, + { + "name": "Repository watch", + "values": "Participating/@mentions; All activity; Ignore; Custom event types", + "decision_rule": "Use releases/security/review signals needed by actual maintainer; automatically participating subscription can add noise.", + "verification": "Read subscription and intended event categories; intended human verifies notifications." + }, + { + "name": "Delivery channels", + "values": "On GitHub; email; Mobile; participating/watching categories; default/per-org verified email; working hours", + "decision_rule": "Keep actionable maintainer notices; personal settings require account owner context.", + "verification": "Check inbox/email settings and representative received notification; a sent mention is not proof of delivery." + }, + { + "name": "Moderation", + "values": "block/unblock; organization block differs from personal block; interaction limits", + "decision_rule": "Preserve abuse evidence privately; specify affected relationships and access before blocking.", + "verification": "Read current block/limit and verify intended scope; avoid unnecessary duplicate contact." + } + ], + "sources": [ + "https://docs.github.com/en/subscriptions-and-notifications/get-started/configuring-notifications", + "https://docs.github.com/en/authentication/connecting-to-github-with-ssh", + "https://docs.github.com/en/authentication/managing-commit-signature-verification", + "https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa", + "https://docs.github.com/en/rest/users/blocking" + ], + "community_sources": [], + "pitfalls": [ + "Email replies can create public comments. Notification privacy and contributor consent still matter.", + "Removing a user does not revoke a deploy key whose private key they retained." + ] + }, + { + "id": "enterprise-host-lifecycle", + "capability_ids": [ + "admin-enterprise-accounts", + "admin-enterprise-organization-lifecycle", + "admin-enterprise-data-residency", + "admin-enterprise-server-admin", + "admin-github-connect", + "admin-organization-migrations", + "admin-user-migrations", + "admin-enterprise-importer", + "admin-support-entitlements", + "admin-support-tickets", + "admin-source-imports" + ], + "title": "Host-specific enterprise lifecycle and support", + "options": [ + { + "name": "Hosting and identity", + "values": "github.com | tenant.ghe.com | GHES version; ordinary identities versus managed users", + "decision_rule": "Choose actual API/SSH host and product/version docs before credentials or network policy.", + "verification": "Read host /meta, enterprise identity and version; do not apply github.com IP/fingerprint snapshot blindly." + }, + { + "name": "Organization lifecycle", + "values": "create; invite existing; transfer; migration importer; pending acceptance", + "decision_rule": "EMU cannot import an ordinary organization via simple enterprise invite; cross-host moves need supported migration.", + "verification": "Read destination ownership, inherited policy, billing and member access after completion." + }, + { + "name": "Migration plan", + "values": "source/export; destination; locks; import status; warnings; user attribution; redirect behavior", + "decision_rule": "Preserve source and export; map humans and permissions; rehearse recovery before destructive cutover.", + "verification": "Inspect final migration log, counts, links and sampled historical issues/PR authors/files." + }, + { + "name": "GHES administration", + "values": "backup/restore; maintenance; upgrade; replica/HA; license; support bundle; GitHub Connect", + "decision_rule": "Use instance version runbook and verified backups; repo admin is not appliance administrator.", + "verification": "Verify backup restore readiness, instance health/version and product connectivity after approved change." + }, + { + "name": "Support interaction", + "values": "entitlement; intended enterprise account; new/existing ticket; attachment; reply; status", + "decision_rule": "Prepare redacted reproduction and preserve case history; submission/reply contacts another party and needs explicit instruction.", + "verification": "Read actual ticket ID/submitted content/status; form preparation alone is not submission." + } + ], + "sources": [ + "https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/feature-overview-for-github-enterprise-cloud-with-data-residency", + "https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise", + "https://docs.github.com/en/migrations/using-github-enterprise-importer", + "https://docs.github.com/en/enterprise-server@latest/admin", + "https://docs.github.com/en/enterprise-cloud@latest/support/contacting-github-support/creating-a-support-ticket" + ], + "community_sources": [], + "pitfalls": [ + "Migration/API success does not prove review history, actor attribution or every product artifact migrated.", + "Support attachments can have unauthenticated URLs; redact before upload." + ] + }, + { + "id": "rules-network", + "capability_ids": [ + "admin-organization-rulesets", + "admin-organization-rule-suites", + "admin-enterprise-rulesets", + "admin-organization-network-configurations", + "admin-enterprise-network-configurations" + ], + "title": "Organization rules and hosted networking", + "options": [ + { + "name": "Ruleset nested scope", + "values": "target branch/tag/push where supported; enforcement disabled/active/evaluate; repository/ref include/exclude conditions; bypass actors/modes", + "decision_rule": "Preserve target conditions and bypass IDs; evaluate mode measures without enforcement. Detail rule parameters in delivery-security reference.", + "verification": "Read each ruleset, inherited sources and rule suites for sample pushes; list alone proves little." + }, + { + "name": "Network configuration", + "values": "name1..100 letters/numbers/._-; compute_service none/actions; exactly one network_settings_ids entry", + "decision_rule": "Use provisioned network resource and proper compute attachment; a configuration alone attaches no runner.", + "verification": "Read network setting and attached runner group plus actual connectivity." + }, + { + "name": "Failover network", + "values": "failover_network_settings_ids exactly one when configured; failover_network_enabled boolean", + "decision_rule": "Choose failover only with independently tested connectivity and owner-approved network policy.", + "verification": "Read failover configuration; bounded connectivity/failover test and rollback route." + } + ], + "sources": [ + "https://docs.github.com/en/rest/orgs/rules", + "https://docs.github.com/en/rest/orgs/rule-suites", + "https://docs.github.com/en/rest/orgs/network-configurations", + "https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/network-configurations" + ], + "community_sources": [], + "pitfalls": [ + "Push, branch and tag rules have different plan gates. Network API response examples showing multiple IDs conflict with current exactly-one request rule; current parameter constraint wins." + ] + }, + { + "id": "agent-automation-options", + "capability_ids": [ + "admin-agent-automations", + "admin-agent-tasks", + "admin-agent-secrets", + "admin-agent-variables", + "admin-copilot-cloud-agent-sessions", + "admin-copilot-team-customizations" + ], + "title": "Agent automation, task execution and human handoff", + "options": [ + { + "name": "Automation ownership", + "values": "type personal/shared; enabled; require_actor_write_permission; continuous_history", + "decision_rule": "Personal belongs to creator; shared is repository-readable and writer-manageable. Read repository allow-automations policy.", + "verification": "Read repository scope, creator and permitted actors; user-global list omits others shared automations." + }, + { + "name": "Schedule and event triggers", + "values": "cadence hourly/daily/weekly; hour_utc0..23; day_of_week0..6; minute_utc0/15/30/45 (omit with hourly); query/labels/workflow filters", + "decision_rule": "Default daily/weekly midnight UTC, weekly Monday; choose explicitly with timezone conversion.", + "verification": "Read trigger fields and next/actual run time; preserve prior run history." + }, + { + "name": "Trigger authority", + "values": "write_scope trigger/repository; allow_copilot_triggers false default", + "decision_rule": "Scheduled write_scope has no effect: scheduled runs can change entire repo. Keep Copilot-trigger loops disabled unless explicitly reviewed.", + "verification": "Read effective scope/policy; test trigger actor and targeted object." + }, + { + "name": "Task request", + "values": "prompt; model from current plan list; custom_agent filename stem; create_pull_request false default; base_ref/head_ref", + "decision_rule": "Prompt must describe authorized work. Existing head_ref can receive commits; inspect branch/PR before start.", + "verification": "Read task/session/artifact and resulting diff; starting task is not completion." + }, + { + "name": "Task states/history", + "values": "queued/in_progress/completed/failed/idle/waiting_for_user/timed_out/cancelled; is_archived false default", + "decision_rule": "Include archived records in history inventory; waiting_for_user needs actual human answer.", + "verification": "Read final state/output/errors and linked PR; retain original failed attempt before retry." + }, + { + "name": "Secrets/variables/team customization", + "values": "secret encryption key/value and repository visibility; plain variables; prompt/tool configuration", + "decision_rule": "Never put secret in variable or prompt; preserve custom agents/tools and follow actual endpoint scope.", + "verification": "Read names/selection and bounded consumer output; no plaintext secret readback." + } + ], + "sources": [ + "https://docs.github.com/en/rest/agent-automations/agent-automations", + "https://docs.github.com/en/rest/agent-tasks/agent-tasks", + "https://docs.github.com/en/rest/agents/secrets", + "https://docs.github.com/en/rest/agents/variables", + "https://docs.github.com/en/rest/copilot/copilot-cloud-agent-management", + "https://docs.github.com/en/rest/copilot/copilot-team-customizations" + ], + "community_sources": [], + "pitfalls": [ + "Public-preview surfaces change. App installation tokens support shared automations but not ordinary agent-task start/list; choose endpoint-specific authentication.", + "No retry may silently create another billable task or duplicate PR; reread task/artifacts first." + ] + }, + { + "id": "spaces-registry", + "capability_ids": [ + "admin-copilot-spaces", + "admin-copilot-space-collaborators", + "admin-copilot-space-resources", + "admin-private-registries" + ], + "title": "Copilot Spaces and private registry access", + "options": [ + { + "name": "Space default access", + "values": "base_role no_access(default)/reader/writer/admin; name/description/general_instructions", + "decision_rule": "Keep no_access until audience approved; discover direct collaborators separately.", + "verification": "Read default/direct roles and test intended audience." + }, + { + "name": "Space resource types", + "values": "repository/github_file/free_text/github_issue/github_pull_request/media_content/uploaded_text_file; type-specific metadata", + "decision_rule": "Preserve resource IDs and private context; fine-grained/user tokens need every referenced repository.", + "verification": "Read resource details; list can omit whole Spaces with inaccessible resources, so incomplete list remains unknown." + }, + { + "name": "Registry access", + "values": "visibility all/private/selected; selected_repository_ids only with selected; replaces_base false default", + "decision_rule": "Select repositories and decide whether public-registry fallback is acceptable.", + "verification": "Read visibility, selected IDs and successful bounded dependency resolution." + }, + { + "name": "Registry authentication", + "values": "token(default)/username_password/oidc_azure/oidc_aws/oidc_jfrog/oidc_cloudsmith/oidc_gcp/anonymous", + "decision_rule": "Token/password require encrypted_value/key_id; OIDC omit them; anonymous also omits username. Use provider-specific fields from current schema.", + "verification": "Read redacted auth config and external trust mapping; verify authorized resolution, not secret plaintext." + }, + { + "name": "Provider-specific identity", + "values": "Azure tenant_id/client_id; AWS region/account/role/domain/domain_owner; JFrog provider/audience; Cloudsmith namespace/service_slug/audience; GCP workload_identity_provider/service_account", + "decision_rule": "Grant narrow external trust; GCP service_account optional for direct WIF. Cloudsmith api_host defaults api.cloudsmith.io.", + "verification": "Verify actual issuer/audience/subject and repository binding with external administrator." + } + ], + "sources": [ + "https://docs.github.com/en/rest/copilot-spaces/copilot-spaces", + "https://docs.github.com/en/rest/copilot-spaces/collaborators", + "https://docs.github.com/en/rest/copilot-spaces/resources", + "https://docs.github.com/en/rest/private-registries/organization-configurations" + ], + "community_sources": [], + "pitfalls": [ + "Space sharing and source repository access are distinct; do not widen source access to make inventory look complete.", + "Credential rotation and trust-provider setup require both GitHub and registry-side verification." + ] + }, + { + "id": "repository-community-lifecycle", + "capability_ids": [ + "admin-community-defaults", + "admin-organization-profile-content", + "admin-repository-lifecycle-admin", + "admin-repository-insights", + "admin-git-lfs", + "admin-archive-program", + "admin-github-models-retired" + ], + "title": "Organization defaults, repository history and storage", + "options": [ + { + "name": "Community defaults/profile", + "values": "public .github defaults; repository-specific overrides; .github/profile/README.md and member profile where supported", + "decision_rule": "Reuse organization defaults without overwriting repository custom documents; distinguish public/member audience.", + "verification": "Inspect rendered repository community profile and org profile with correct identity." + }, + { + "name": "Repository lifecycle", + "values": "visibility public/private/internal; archived; owner/name/default branch; delete versus archive", + "decision_rule": "Check fork network, billing, actions/pages and collaborator consequences. Preserve history and transferable objects before move/delete.", + "verification": "Read metadata and history/redirect/access after change; archive is read-only, not backup." + }, + { + "name": "LFS configuration", + "values": ".gitattributes tracked patterns; LFS object store; pointers; quota/billing; migration rewritten history", + "decision_rule": "Track only required files; git clone/mirror without LFS object fetch is insufficient backup. History rewrite requires coordinated human cutover.", + "verification": "Fetch/check LFS objects; verify fresh checkout and collaborators migration instructions." + }, + { + "name": "Insights/preservation", + "values": "traffic/clones/views; contributors/stats async response; Preserve this repository on/off", + "decision_rule": "Capture ephemeral metric window before expiry. Archive Program opt-out only affects future preservation.", + "verification": "Read completed statistics and preservation setting; never equate UI archival, source export and long-term program." + }, + { + "name": "Retired Models workflow", + "values": "historical GitHub Models integration/configuration; retired endpoints", + "decision_rule": "Preserve source/cost history, discover supported replacement only when requested; no new deployment against retired service.", + "verification": "Check endpoint retirement notice and installed integration; mark unavailable with dated evidence." + } + ], + "sources": [ + "https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file", + "https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile", + "https://docs.github.com/en/rest/repos/repos", + "https://docs.github.com/en/rest/metrics", + "https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage", + "https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/opting-into-or-out-of-the-github-archive-program-for-your-public-repository", + "https://docs.github.com/en/github-models" + ], + "community_sources": [], + "pitfalls": [ + "No repository deletion or history rewrite is implied by full setup. A metadata snapshot cannot restore repository/LFS/product history." + ] + }, + { + "id": "human-social-education", + "capability_ids": [ + "admin-account-following", + "admin-account-social-links", + "admin-gists", + "admin-gist-comments", + "admin-repository-stars", + "admin-activity-feeds", + "admin-classroom", + "admin-github-spark" + ], + "title": "Human-facing sharing, Classroom and Spark", + "options": [ + { + "name": "Social profile and subscriptions", + "values": "follow/unfollow; social account URLs; star/unstar; public/private authenticated feeds", + "decision_rule": "Only change owner-requested preferences; feed URLs can embed sensitive tokens.", + "verification": "Read actual relationship/profile/feed scope without logging private feed URLs." + }, + { + "name": "Gist publication/history", + "values": "public true/false on creation; description/files; file rename/delete; revisions/forks/comments", + "decision_rule": "Secret gist is unlisted, not access-controlled private storage; never put secrets there. Preserve revision before edits.", + "verification": "Read visibility/files/history and comment IDs; inspect audience before publishing." + }, + { + "name": "Classroom assignment", + "values": "classroom/assignment ID; individual/group; accepted assignment repositories; students/teams; grades", + "decision_rule": "Use teacher authority and preserve student privacy; acceptance and grading are separate human actions.", + "verification": "Read actual assignment, accepted repositories and grades with correct classroom scope." + }, + { + "name": "Spark publishing/data", + "values": "private/organization/all-GitHub-users where eligible; shared app data read-only/write; preview versus published version", + "decision_rule": "Publication and data-write audience need explicit scope; managed users cannot publish to all GitHub users.", + "verification": "Read publication URL/version/audience and verify authorized viewer/data operation." + } + ], + "sources": [ + "https://docs.github.com/en/rest/users/followers", + "https://docs.github.com/en/rest/users/social-accounts", + "https://docs.github.com/en/rest/gists/gists", + "https://docs.github.com/en/rest/gists/comments", + "https://docs.github.com/en/rest/activity/starring", + "https://docs.github.com/en/rest/activity/feeds", + "https://docs.github.com/en/rest/classroom/classroom", + "https://docs.github.com/en/copilot/tutorials/spark/your-first-spark" + ], + "community_sources": [], + "pitfalls": [ + "Commenting, following and invitations affect other humans. Read-only discovery is not permission to contact or publish." + ] + }, + { + "id": "platform-diagnostics", + "capability_ids": [ + "admin-platform-meta", + "admin-platform-rate-limits", + "admin-platform-license-catalog", + "admin-platform-gitignore-templates", + "admin-platform-emojis", + "admin-platform-markdown-rendering" + ], + "title": "Platform diagnostics and templates", + "options": [ + { + "name": "Host metadata", + "values": "GET /meta; API versions; SSH fingerprints; IP/domain lists", + "decision_rule": "Use real host metadata and documented exceptions; avoid rewriting firewall from partial snapshot.", + "verification": "Verify host identity and freshness before applying any external network change." + }, + { + "name": "Quota and retry", + "values": "core/search/GraphQL resource budgets; x-ratelimit-*; retry-after; GraphQL cost/reset", + "decision_rule": "Obey primary and secondary throttles; positive core remaining does not rule out secondary limit.", + "verification": "Record failed request/status/headers; retry under documented delay and verify object state first." + }, + { + "name": "Catalog templates", + "values": "SPDX license ID; detected license file; gitignore template name; emoji shortcode", + "decision_rule": "Owner chooses license; preserve custom ignore rules; catalog discovery does not authorize relicensing.", + "verification": "Read actual committed license; git check-ignore plus tracked-file inspection; verify chosen shortcode." + }, + { + "name": "Markdown rendering", + "values": "mode markdown/gfm; repository context; raw rendering endpoint", + "decision_rule": "Context changes issue/user link resolution; rendering POST does not publish comment or file.", + "verification": "Inspect returned HTML and context-sensitive links in intended renderer." + } + ], + "sources": [ + "https://docs.github.com/en/rest/meta", + "https://docs.github.com/en/rest/rate-limit", + "https://docs.github.com/en/rest/licenses", + "https://docs.github.com/en/rest/gitignore", + "https://docs.github.com/en/rest/emojis", + "https://docs.github.com/en/rest/markdown" + ], + "community_sources": [], + "pitfalls": [ + "A successful render or catalog lookup proves only that lookup. It is not evidence of repository configuration or publication." + ] + } + ] +} diff --git a/skills/full-github/data/rest-schema.json.gz b/skills/full-github/data/rest-schema.json.gz new file mode 100644 index 0000000..7eb6af5 Binary files /dev/null and b/skills/full-github/data/rest-schema.json.gz differ diff --git a/skills/full-github/references/administration-options.md b/skills/full-github/references/administration-options.md new file mode 100644 index 0000000..115c97d --- /dev/null +++ b/skills/full-github/references/administration-options.md @@ -0,0 +1,348 @@ +# Administration option decisions and human lifecycle + +Source review: 2026-11-15. This supplements [administration.md](administration.md), which maps capability routes. It is a decision checklist, not evidence that any tenant is configured. **Documented default**, **observed value**, and **recommended choice** must be recorded separately. Where a setting has no verified universal default, read the actual tenant; API example values are not defaults. Exact current endpoint schemas and supported host/version win. + +For each applicable option capture owner/host, effective inherited policy, object ID, observed value, chosen value/reason, approver when required, before/after evidence and recovery action. Preserve original audit exports and human-authored content. Verify with both a new object and an existing customized object. A failed read stays unknown. This reference adds no automatic external actions. + +## Organization member privileges and effective access + +Group: `organization-access-defaults`. Capability IDs: `admin-organization-profile`, `admin-organization-policy-settings`, `admin-organization-members`, `admin-outside-collaborators`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Base repository permission | none / read / write / admin; REST documented default read | Recommend none for private least-privilege organizations, then explicit teams; preserve existing grants. Internal repositories remain readable to enterprise members. | Read default_repository_permission and test effective access of a representative ordinary member. | +| Member repository creation | members_can_create_public_repositories/private_repositories/internal_repositories: boolean per visibility | Use separate visibility controls; enterprise may prohibit internal/public creation. Do not send closing-down members_allowed_repository_creation_type. | Read each flag and inherited enterprise constraint. | +| Member administrative powers | members_can_delete_repositories; members_can_change_repo_visibility; members_can_invite_outside_collaborators; members_can_create_teams; members_can_delete_issues: booleans | Choose each separately; broad repository admin authority does not authorize destructive actions in this session. | Read flags plus actual repository administrators; record inherited restrictions. | +| Public identity versus billing contact | name/company/blog/location/public email/description versus billing_email | Publish only owner-approved contact data; billing address stays private. | Inspect public profile signed out and billing contact through owner-only settings. | +| Invitation and membership | invitation pending/failed; organization role member/admin; member visibility private/public | Invite exact login/email and chosen role; wait for acceptance and required identity setup. Never infer full membership from public members. | Read invitations and authenticated membership; verify access after acceptance. | +| Outside collaborator conversion/removal | organization member versus outside collaborator; repository role per grant | Inventory team access and owned responsibilities first; explicit offboarding scope includes deploy keys/App access, not just user removal. | Read remaining direct/team/base grants and outstanding invitations after change. | + +**Failure and preservation notes:** REST response examples are not tenant defaults. Base changes affect existing members too; private forks require separate inspection. A lower direct grant cannot subtract higher base/team/custom-role access. + +**Official sources:** [orgs](https://docs.github.com/en/rest/orgs/orgs), [setting-base-permissions-for-an-organization](https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/setting-base-permissions-for-an-organization), [members](https://docs.github.com/en/rest/orgs/members), [outside-collaborators](https://docs.github.com/en/rest/orgs/outside-collaborators). + +## Nested teams and delegated roles + +Group: `teams-roles`. Capability IDs: `admin-teams`, `admin-team-members`, `admin-team-idp-sync`, `admin-team-external-groups`, `admin-organization-role-assignments`, `admin-organization-custom-roles`, `admin-organization-custom-role-definitions`, `admin-enterprise-role-assignments`, `admin-organization-security-managers`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Team privacy | secret / closed; new non-nested REST default secret, child default closed | Set explicitly: closed for discoverable normal teams; secret cannot have parent/children. | Read privacy and parent for every team, including secret teams through owner identity. | +| Hierarchy and identity | parent_team_id or parent_team_slug; ID takes precedence | Keep existing team IDs; resolve current slug after rename; verify inherited repository grants. | Read parent/children and effective repository access for child member. | +| Mention notifications | notifications_enabled / notifications_disabled; default enabled | Disable only intentionally; CODEOWNERS/team mentions must reach responsible humans. | Read notification_setting; ask intended maintainers to verify receipt during authorized collaboration. | +| Team member authority | member / maintainer; pending invitation versus active membership | Maintainer is team administration, not organization owner. Team creator becomes maintainer automatically. IdP-synced membership is changed at IdP. | Read team membership role/state and synchronization mapping. | +| Repository roles | read/triage/write/maintain/admin in UI; pull/push map to read/write in team REST; custom role name/ID | Assign the least role needed; check combined base/direct/team/custom permissions. | Read permission sources and a representative allowed/denied operation. | +| Custom role definition | base repository role plus additional permission identifiers; organization role permissions from fine-grained-permission discovery | Discover currently allowed identifiers, dependencies and plan; do not hard-code an old permission list. Separate definition from user/team assignment. | Read role definitions, assigned users/teams and inherited permissions before deleting or replacing a role. | +| Security manager migration | organization roles assignment; legacy security-managers routes retiring | Use current organization role discovery; preserve historical role-change evidence and existing assignments. | Read replacement role and exact affected users/teams; record unsupported legacy endpoint response. | + +**Failure and preservation notes:** Secret-team names can appear in mention text. A successful visible-team list does not prove no secret team exists. Do not remove a role as a shortcut to reconciling assignments; recover original role and grants first. + +**Official sources:** [teams](https://docs.github.com/en/rest/teams/teams), [about-teams](https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams), [about-custom-repository-roles](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles), [organization-roles](https://docs.github.com/en/rest/orgs/organization-roles), [security-managers](https://docs.github.com/en/rest/orgs/security-managers). + +## SSO, provisioning, 2FA and account recovery + +Group: `identity-recovery`. Capability IDs: `admin-identity-policies`, `admin-organization-audit-and-sso`, `admin-organization-scim`, `admin-enterprise-scim`, `admin-enterprise-credentials`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Organization SAML connection | Sign on URL; Issuer; public certificate; enabled versus required | Configure/test first, authenticate owner at least once, preserve offline recovery codes; only then enforce. | Test IdP login and inspect list of members GitHub proposes removing before confirmation. | +| Enterprise SAML inheritance | enterprise enforced versus organization configuration | Enterprise enforcement overrides organization SAML; assess every organization and service credential before rollout. | Verify effective connection and representative member login across affected organizations. | +| Provisioning model | ordinary account invitations; organization SCIM; Enterprise Managed Users SCIM | Identify model before changing users. IdP governs managed-user lifecycle; ordinary local invitation is not an EMU substitute. | Read external identity, active state and group/team mapping with correct host API. | +| Authentication assurance | 2FA required yes/no; allowed 2FA methods per actual host policy; passkeys/security keys/recovery methods | Inventory impacted users and service accounts, notify humans, retain independent recovery methods; enforcement requires access-impact authorization. | Read requirement and member compliance; verify owners retain a tested recovery route. | +| Verified/approved domains | DNS verification record; verified domain; notification-domain restriction where available | Verify DNS ownership before restricting notifications; record DNS lifecycle owner. | Read verification and send destinations; do not confuse verified domain with automatic SSO provisioning. | +| Offboarding and recovery | suspend/deprovision; remove membership; revoke SSO credential; revoke token; delete account are distinct | Record actor/subject IDs, teams, grants and recovery constraints; choose reversible suspension when it meets request. | Check effective denial and preserved records; use documented recovery rather than recreating identity blindly. | + +**Failure and preservation notes:** Enforcing organization SAML can remove members who have not authenticated with IdP. Downloading recovery codes into logs exposes recovery access. SCIM deprovisioning, IdP group deletion and GitHub membership removal are different effects; verify all required layers. + +**Official sources:** [enabling-and-testing-saml-single-sign-on-for-your-organization](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enabling-and-testing-saml-single-sign-on-for-your-organization), [enforcing-saml-single-sign-on-for-your-organization](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enforcing-saml-single-sign-on-for-your-organization), [configuring-saml-single-sign-on-for-your-enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-iam/using-saml-for-enterprise-iam/configuring-saml-single-sign-on-for-your-enterprise), [scim](https://docs.github.com/en/rest/scim). + +## PAT and OAuth lifecycle + +Group: `tokens-oauth`. Capability IDs: `admin-organization-token-governance`, `admin-enterprise-token-inventory`, `admin-oauth-app-authorizations`, `admin-credential-revocation`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| PAT family and resource owner | fine-grained / classic; one resource owner for fine-grained; all versus selected repositories | Prefer fine-grained when endpoint supports it, or installation App for long-lived automation. Check unsupported workflows before choosing token. | Inspect token family, owner, selected repositories and endpoint-specific permission without showing token. | +| Fine-grained approval | Require administrator approval (documented default) / Do not require administrator approval | Keep approval unless owner explicitly chooses otherwise; owners own requests auto-approve. Pending tokens only read public resources. | Read pending requests, requested access/expiry and final request state; requester confirms operation after approval. | +| Classic access policy | allow versus restrict classic PAT access, separate from fine-grained approval | An approval rule does not control classic PATs; choose both policies and inherited enterprise restrictions. | Read both token-family policies and existing token inventory. | +| Maximum token lifetime | organization/enterprise configured maximum per token family; token expiration date | Use finite lifetime appropriate to workflow and rotation owner; read actual allowed range from current host rather than inventing universal default. | Check expiry and rotation reminder; verify replacement works before revoking old token. | +| Request decision API | action approve / deny; optional reason max1024; GitHub App user/installation tokens only | Human reviews requested repositories and permissions; organization App token needs Personal access token requests write. PAT cannot approve itself through this API. | Read request ID/state; preserve reason and actor; requester gets notification. | +| OAuth app governance | authorized user grant; organization OAuth restrictions; approved/requested App access | Separate user authorization from organization approval and SSO authorization. Never assume OAuth install is GitHub App install. | Read app owner/client identity, scopes, organization authorization and last-use evidence. | +| Revocation | revoke organization access; revoke authorization; delete secret; emergency credential revocation | Record consequence and affected automation; revoke exposed credential and rotate consumers. Revocation cannot recover original secret. | Verify old credential fails and new scoped credential succeeds without logging either. | + +**Failure and preservation notes:** 403/404 may be SSO/resource-selection/approval restrictions, not absent repository. Changing token scope cannot add rights the token owner lacks. Do not paste credentials into issue reports, approval reasons, URLs or diagnostic artifacts. + +**Official sources:** [managing-your-personal-access-tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens), [setting-a-personal-access-token-policy-for-your-organization](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization), [managing-requests-for-personal-access-tokens-in-your-organization](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/managing-requests-for-personal-access-tokens-in-your-organization), [personal-access-tokens](https://docs.github.com/en/rest/orgs/personal-access-tokens), [oauth-applications](https://docs.github.com/en/rest/apps/oauth-applications). + +## App registration versus installation + +Group: `app-registration`. Capability IDs: `admin-github-apps`, `admin-github-app-installations`, `admin-enterprise-app-installations`, `admin-marketplace`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Registration owner/distribution | personal or organization owner; Only on this account / Any account | Keep internal app private unless broader distribution requested. | Read App ID/slug/owner and installation availability. | +| User authorization flow | up to10 callback URLs; expiring user tokens selected by default; request OAuth during installation; device flow optional | Enable only needed flow; keep expiry. Setup URL cannot coexist with requesting user OAuth during installation. | Test exact redirect and expiration/refresh path without exposing secrets. | +| Post-install configuration | Setup URL; Redirect on update boolean | Use for required onboarding; installation repository selection changes can re-trigger setup. | Verify existing installation update preserves completed human configuration. | +| Permission/event selection | No access / Read-only / Read & write as offered; repository/organization/account permissions; events constrained by permissions | Choose endpoint minimum; expanded permissions require installation approval. | Compare requested registration permissions to currently approved installation permissions. | +| Installation repository scope | All repositories / Only select repositories; installation ID; suspended state | Select only necessary repositories; registration, user consent and installation are separate. | Read installation repository list and mint a scoped token only for authorized operation. | +| Private keys and token lifecycle | App JWT; installation token; user token; private-key rotation | Store keys securely; install token may narrow approved permissions/repos. Rotate by adding replacement, verifying, then removing old key. | Verify App identity and token expiry/permissions; do not print PEM/JWT/token. | + +**Failure and preservation notes:** Uninstalling an external-property App removes its external custom properties; preserve values first. App permission change is not proof all existing installations accepted the expansion. + +**Official sources:** [registering-a-github-app](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app), [installing-a-github-app-from-a-third-party](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party), [authenticating-as-a-github-app-installation](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation). + +## Webhook security and delivery recovery + +Group: `webhook-delivery`. Capability IDs: `admin-organization-webhooks`, `admin-github-app-webhooks`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Delivery configuration | active true/false; config.url HTTPS; content_type json/form; insecure_ssl 0/1; secret stored separately | Use HTTPS, verification enabled (0) and high-entropy secret; subscribe only needed events. | Read redacted configuration and selected events; validate signature on receiver. | +| Receiver behavior | X-GitHub-Event plus action; X-GitHub-Delivery; 2XX within10seconds | Durably enqueue, acknowledge quickly, process idempotently; unknown action is not assumed safe. | Inspect receipt, signature failure, queue processing and resulting business object. | +| Delivery recovery | ping; deliveries; delivery detail; redeliver attempt | Inspect failures before replay; replay same GUID must not duplicate side effects. | Read redelivery result and downstream state; POST acceptance alone is incomplete. | +| Retry credentials/runtime | organization/App/repository webhook permissions; installed runtime/module support | Use scope-correct credentials; GITHUB_TOKEN cannot redeliver repository webhooks. Validate sample runtime imports before deployment. | Run bounded redelivery test; check response status and error paths. | +| History and secret rotation | original delivery GUID plus attempt IDs/statuses; old/new verifier secret transition | Retain payload metadata only under approved data policy; coordinate producer/receiver rotation. | Verify latest signature and queue state, preserve original failed delivery and retry evidence. | + +**Failure and preservation notes:** OAuth-created hooks can be inaccessible to another credential type. Secret plaintext is not recoverable from readback. Community #126156 reports a stale CommonJS Octokit sample failing ERR_REQUIRE_ESM; current App guide uses .mjs. Verify installed package/runtime, do not cargo-cult old snippet. + +**Official sources:** [best-practices-for-using-webhooks](https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks), [automatically-redelivering-failed-deliveries-for-a-repository-webhook](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-repository-webhook), [automatically-redelivering-failed-deliveries-for-a-github-app-webhook](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-github-app-webhook), [webhooks](https://docs.github.com/en/rest/orgs/webhooks). + +**Community research (reports, not product guarantees):** [Discussion #126156](https://github.com/orgs/community/discussions/126156). Current documentation and a bounded target-host reproduction govern remediation. + +## Audit history and incident evidence preservation + +Group: `audit-history`. Capability IDs: `admin-organization-audit-and-sso`, `admin-enterprise-audit`, `admin-organization-api-insights`, `admin-activity-events`, `admin-personal-data-export`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Read channel/time window | UI; JSON/CSV export; REST; stream; explicit created/date filters | UI default shows3months; enterprise web events180days and Git events7days. Export early; event channel determines completeness. | Record earliest/latest timestamps, filters, pages and counts for each channel. | +| Git versus API event evidence | Git clone/fetch/push; API requests; web-origin operations; SSO responses | Git REST events exclude some web/API initiated effects; do not equate Git event inventory with all mutations. | Correlate request IDs, actor/subject IDs, repository IDs and object timelines. | +| Streaming configuration | destination; active/paused; API request events opt-in; source IP disclosure; available Copilot agent events preview | Use enterprise stream for future retention; decide sensitive IP/log access and destination permissions with owner. | Verify receiver ingestion, last event time, health notifications and queryable retained sample. | +| Continuity and deduplication | at-least-once delivery;7day pause buffer; destination-specific acceptance window | Keep event IDs and deduplicate; repair misconfiguration within6days. Datadog can reject events older than18hours. | Monitor gaps and resume cursor; do not claim backfill predating stream enablement. | +| Preservation artifact | raw read-only export; capture timestamp/host/API version/filter; checksum; restricted storage; separate analysis | Preserve original evidence and write an additive change ledger; record renamed/deleted actor IDs. Export before destructive account/policy changes. | Verify archive readability and checksums; test incident-responder access without publishing private logs. | +| Account export | requested/in-progress/completed; expiring download link; revoke download link | Treat point-in-time personal metadata export separately from repository backup and audit stream. | Inspect completed archive structure privately and verify requested revocation. | + +**Failure and preservation notes:** An empty event slice can be retention, filter, permission or channel loss. GitHub Support does not preserve incident logs for you. API usage statistics, public Events and repository traffic are not substitutes for retained security audit evidence. + +**Official sources:** [accessing-the-audit-log-for-your-enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/accessing-the-audit-log-for-your-enterprise), [reviewing-the-audit-log-for-your-organization](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization), [streaming-the-audit-log-for-your-enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise), [requesting-an-archive-of-your-personal-accounts-data](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/requesting-an-archive-of-your-personal-accounts-data). + +## Billing budgets, attribution and hard stops + +Group: `billing-budget-options`. Capability IDs: `admin-billing-budgets`, `admin-billing-usage`, `admin-billing-cost-centers`, `admin-billing-usage-reports`, `admin-enterprise-licensing`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Budget subject | budget_scope organization/repository/multi_user_customer/user; enterprise/cost_center on their supported scope endpoints | Match payer and subject; do not create a duplicate budget before reading existing overlapping controls. | Read budget IDs, scopes, product/SKU and payer; reconcile pages against total_count/has_next_page. | +| Pricing selector | BundlePricing + ai_credits; ProductPricing + product; SkuPricing + SKU | Use live supported billing schema, not retired product assumptions. | Read chosen selector and resulting budget; export actual SKU usage. | +| Amount/enforcement | budget_amount integer; prevent_further_usage boolean; user/universal must true | Set authorized cap; ordinary budget UI hard stop is off by default, alerts alone do not cap spend. | Read enforcement and applicable remaining capacity; never disable cap merely to clear an error. | +| User budget payload | user login required for user scope; budget_entity_name empty allowed; optional future expires_at YYYY-MM-DD | Explicit user field is required even where generated schema omits it. User budgets always stop usage. | Read subject/expiry and test affected user policy without incurring unauthorized charges. | +| Alerting | budget_alerting.will_alert; alert_recipients logins; user-scope alerting unavailable | Route supported alerts to responsible humans; distinguish budget notice from product-access or seat request. | Read alert recipients and supported scope; verify delivery through authorized process. | +| Cost center inclusion | usage counts toward enterprise by default; exclusion optional | Exclude only with approved independent spending authority; keep a cost-center cap. | Reconcile organization/user membership and exported attribution against invoice/usage. | +| Recovery from blocked usage | reset cycle; paid usage policy; user limit; organizational/cost-center/enterprise limit; account entitlement | Identify limiting layer first; request budget increase from budget owner or wait for reset. | Read all applicable controls and report exact failed endpoint/policy; use UI when API is unhealthy. | + +**Failure and preservation notes:** Community #166810 suggests disabling stop usage; this can permit uncapped charges and is not a safe default. Current official budget order/AI credits supersede old premium-only advice. Community #206489 reports organization budgets 400 with user-scoped budgets; unconfirmed globally. Preserve error and use UI, do not report zero budgets or delete seats as a workaround. + +**Official sources:** [budgets](https://docs.github.com/en/rest/billing/budgets), [budgets](https://docs.github.com/en/copilot/concepts/billing-and-usage/organizations-and-enterprises/budgets), [manage-company-spending](https://docs.github.com/en/copilot/how-tos/manage-and-track-spending/manage-company-spending). + +**Community research (reports, not product guarantees):** [Discussion #166810](https://github.com/orgs/community/discussions/166810), [Discussion #206489](https://github.com/orgs/community/discussions/206489), [Discussion #173899](https://github.com/orgs/community/discussions/173899). Current documentation and a bounded target-host reproduction govern remediation. + +## Copilot seats, nested policy and client governance + +Group: `copilot-governance`. Capability IDs: `admin-copilot-seats`, `admin-copilot-usage-metrics`, `admin-copilot-agent-policy`, `admin-enterprise-ai-controls`, `admin-mcp-and-custom-agent-policy`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Access assignment | selected users/teams versus broader membership; organization seat versus enterprise-assigned access | Start with authorized pilot; identify payer and approval owner. A seat is not a feature policy or budget. | Read assigned seats/access and active entitlement for target human. | +| Enterprise enforcement | Enabled; Disabled; Let organizations decide/No policy; selected organizations where offered | Read inherited policy first; organization cannot override enterprise enforcement. | Inspect effective policy for each target organization and user. | +| Unconfigured defaults | separate default availability policies for GA features and GA models; enterprise-assigned user fallback policy | Choose future-feature/model defaults explicitly; do not invent one universal default for every product. | Read both defaults and explicit per-feature/model overrides. | +| Multiple license conflicts | same-enterprise usually least restrictive; cross-enterprise usually most restrictive; feature-specific exceptions | Evaluate paying org and exact conflict matrix: metrics/public-code privacy/non-GitHub semantic indexing differ. | Test target identity effective feature access, not only one organization settings page. | +| Separate feature/client switches | GitHub.com; CLI; Copilot app; cloud agent; review; model availability; preview; feedback; MCP in Copilot | Configure each applicable switch; Copilot MCP policy does not govern GitHub MCP in third-party hosts. | Read policy supported-surface matrix and verify actual client behavior. | +| Cloud-agent organization targeting | enabled everywhere/disabled/organization-delegated/selected organizations; selected IDs or organization properties | Property-based selection is evaluated at configuration time, not continuously on later property edits. | Re-read enabled org list after property changes; reconcile intentionally. | +| Human lifecycle and cost | access request; owner approval; onboarding; usage review; inactivity/offboarding | Give users instructions, responsible support contact and budget limit; usage metrics are not a productivity ranking. | Verify activation and failed access, record approved removal and effective date without deleting review history. | + +**Failure and preservation notes:** A toggle read is not a seat, model entitlement, client setting or billing verification. Do not assume organization policy applies to personal users merely accessing an organization repository; policy descriptions define audience. + +**Official sources:** [policies](https://docs.github.com/en/copilot/concepts/enterprise/policies), [policy-conflicts](https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/enterprise-administrators/policy-conflicts), [manage-policies](https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies), [agent-management](https://docs.github.com/en/copilot/concepts/enterprise/agent-management), [copilot-user-management](https://docs.github.com/en/rest/copilot/copilot-user-management). + +## Content exclusion, review and local agent controls + +Group: `copilot-exclusions`. Capability IDs: `admin-copilot-content-exclusions`, `admin-copilot-code-review`, `admin-copilot-cli-customization`, `admin-copilot-sdk`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository exclusion syntax | YAML list of path patterns; /scripts/** versus /scripts/*; case-insensitive fnmatch | Use patterns scoped to actual sensitive files; preserve inherited exclusions. | Test excluded file and nonexcluded control file for inline/chat/review behavior. | +| Organization/enterprise patterns | repository URL/name mapping to path list; wildcard repository key for filesystem-wide paths | Match intended clone URL and seat audience; enterprise and org scopes differ. | Inspect merged effective policies and actual resolved repository. | +| Propagation and supported clients | up to30minutes IDE propagation; reload client to refresh; current canonical support matrix | Recheck current canonical docs and installed client: older enterprise docs may still say CLI/agents unsupported. | Reload VS Code or restart supported IDE then test actual target client. | +| Exclusion boundary | guardrail; indirect access, symlinks, remote filesystems, third-party MCP exceptions | Use OS/tool permissions for hard boundaries; content exclusion cannot guarantee every access path. | Inspect tool permissions and avoid sensitive-file access in verification. | +| CLI/SDK execution | instructions/agents/skills/plugins/hooks/MCP/LSP; allowed tools/paths; permission handler; model/provider | Read installed runtime schema; installation of config does not authorize arbitrary hooks or tools. | Bounded session verifies loaded customizations, cancellation, error handling, cleanup and permission prompt. | + +**Failure and preservation notes:** Content exclusion is not a secret store or filesystem sandbox. Changing model/provider may change data handling and costs. + +**Official sources:** [exclude-content-from-copilot](https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot), [content-exclusion](https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/content-exclusion), [overview](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/overview), [sdk-quickstart](https://docs.github.com/en/copilot/get-started/sdk-quickstart). + +## Codespaces policies and secrets + +Group: `codespaces-options`. Capability IDs: `admin-codespaces-lifecycle`, `admin-codespaces-machines`, `admin-codespaces-organization-access`, `admin-codespaces-organization-secrets`, `admin-codespaces-repository-secrets`, `admin-codespaces-user-secrets`, `admin-devcontainers`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Idle timeout | default30minutes; personal timeout plus org maximum; shortest applicable wins | Set maximum acceptable inactivity for organization-paid codespaces; terminal output can keep one active. | Read policy scope and inspect effective timeout after start/restart. | +| Policy targeting | All repositories / Selected repositories; organization-paid codespaces only | Do not claim policy restricts personally paid codespaces. Maximum codespaces per user constraint is organization-wide. | Verify payer, targeted IDs and existing codespace next-start behavior. | +| Retention and lifecycle | default30days retention; stop/start/rebuild/delete; machine selection from available list | Save uncommitted work before destructive deletion/rebuild; stopping compute does not remove storage charges. | Read state, machine and storage; verify committed backup before deletion. | +| Additional constraints | allowed machine types; base-image restrictions; forwarded-port visibility; max codespaces per user | Configure individual constraints from real eligible plan UI; preserve intended developer functionality. | Create only an authorized bounded sample; verify restrictions and failure message. | +| Secret scope | organization all/private/selected repositories; repository; user selected repositories; encrypted value | Use narrowest scope and current public key; never log plaintext; explicitly grant needed additional repository access. | List names/scope and test authorized consumer; readback cannot reveal encrypted secret. | + +**Failure and preservation notes:** Deletion does not erase storage already accrued in the current billing cycle. Shared forwarded ports and terminal traffic can defeat expected idle savings. + +**Official sources:** [restricting-the-idle-timeout-period](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period), [troubleshooting-included-usage](https://docs.github.com/en/enterprise-cloud@latest/codespaces/troubleshooting/troubleshooting-included-usage), [organization-secrets](https://docs.github.com/en/rest/codespaces/organization-secrets), [codespaces](https://docs.github.com/en/rest/codespaces/codespaces). + +## Custom properties, issue types and shared fields + +Group: `classification-schema`. Capability IDs: `admin-organization-properties`, `admin-enterprise-properties`, `admin-enterprise-organization-properties`, `admin-organization-issue-types`, `admin-organization-issue-fields`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository property schema | string/single_select/multi_select/true_false; required/default/allowed_values/values_editable_by as offered | Read existing schema and consumers first; preserve property names and values. | Read schema and values for new and existing customized repositories. | +| External property registration | installation_id; display_name1..15alphanumeric immutable; App-only namespace | Confirm installation permission and lifecycle owner; unregister/uninstall can destroy App-owned values. | Read registration as owner (installation token only sees itself); export values before uninstall. | +| Issue type | name; is_enabled boolean; description; gray/blue/green/yellow/orange/red/pink/purple/null color | Reuse type ID; disable obsolete type before deleting when preservation matters. | Read definitions and representative issue assignments. | +| Shared issue field datatype | text/date/single_select/multi_select/number | Choose native semantics; select types require options; not the same object as Project-only field. | Read field ID/type and issue values; test visibility with intended collaborator. | +| Shared field visibility/options | restricted / all; organization_members_only deprecated; select option name/description/color/priority | Explicit restricted recommended for private metadata; all exposes to anyone able to see issue. Preserve option IDs during update. | Read effective visibility and existing values; check host visibility-feature support. | + +**Failure and preservation notes:** API docs currently default visibility to deprecated organization_members_only; explicitly use restricted on supported versions. Schema deletion/recreation can break ruleset targeting, reporting and historical issue field values. + +**Official sources:** [custom-properties](https://docs.github.com/en/rest/orgs/custom-properties), [issue-types](https://docs.github.com/en/rest/orgs/issue-types), [issue-fields](https://docs.github.com/en/rest/orgs/issue-fields), [managing-custom-properties-for-repositories-in-your-organization](https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization). + +## Personal identity, notifications and human action + +Group: `personal-human-workflow`. Capability IDs: `admin-account-profile`, `admin-account-emails`, `admin-account-keys`, `admin-account-gpg-keys`, `admin-account-ssh-signing-keys`, `admin-account-security-and-billing-ui`, `admin-notifications`, `admin-repository-watches`, `admin-account-blocking`, `admin-organization-blocking`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Email/privacy | primary/verified/public email; keep email private; block pushes exposing private email | Preserve verified recovery address; choose noreply Git identity when privacy requested. | Inspect public commit/profile and private verification state; never publish recovery address. | +| Key purpose | SSH authentication key versus SSH signing key versus GPG key; read-only/write deploy key separate | Keep purpose explicit; public key fingerprint identifies key, not private credential. | Read purpose/fingerprint and verify bounded auth or signature; inspect deploy-key grants on offboarding. | +| Recovery | passkeys/security keys/TOTP/recovery codes; active sessions; password reauthentication | Require human control of second factors and backup recovery; never save recovery material in shared docs. | Owner verifies independent recovery route; revoke only explicitly targeted session/credential. | +| Repository watch | Participating/@mentions; All activity; Ignore; Custom event types | Use releases/security/review signals needed by actual maintainer; automatically participating subscription can add noise. | Read subscription and intended event categories; intended human verifies notifications. | +| Delivery channels | On GitHub; email; Mobile; participating/watching categories; default/per-org verified email; working hours | Keep actionable maintainer notices; personal settings require account owner context. | Check inbox/email settings and representative received notification; a sent mention is not proof of delivery. | +| Moderation | block/unblock; organization block differs from personal block; interaction limits | Preserve abuse evidence privately; specify affected relationships and access before blocking. | Read current block/limit and verify intended scope; avoid unnecessary duplicate contact. | + +**Failure and preservation notes:** Email replies can create public comments. Notification privacy and contributor consent still matter. Removing a user does not revoke a deploy key whose private key they retained. + +**Official sources:** [configuring-notifications](https://docs.github.com/en/subscriptions-and-notifications/get-started/configuring-notifications), [connecting-to-github-with-ssh](https://docs.github.com/en/authentication/connecting-to-github-with-ssh), [managing-commit-signature-verification](https://docs.github.com/en/authentication/managing-commit-signature-verification), [securing-your-account-with-two-factor-authentication-2fa](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa), [blocking](https://docs.github.com/en/rest/users/blocking). + +## Host-specific enterprise lifecycle and support + +Group: `enterprise-host-lifecycle`. Capability IDs: `admin-enterprise-accounts`, `admin-enterprise-organization-lifecycle`, `admin-enterprise-data-residency`, `admin-enterprise-server-admin`, `admin-github-connect`, `admin-organization-migrations`, `admin-user-migrations`, `admin-enterprise-importer`, `admin-support-entitlements`, `admin-support-tickets`, `admin-source-imports`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Hosting and identity | github.com / tenant.ghe.com / GHES version; ordinary identities versus managed users | Choose actual API/SSH host and product/version docs before credentials or network policy. | Read host /meta, enterprise identity and version; do not apply github.com IP/fingerprint snapshot blindly. | +| Organization lifecycle | create; invite existing; transfer; migration importer; pending acceptance | EMU cannot import an ordinary organization via simple enterprise invite; cross-host moves need supported migration. | Read destination ownership, inherited policy, billing and member access after completion. | +| Migration plan | source/export; destination; locks; import status; warnings; user attribution; redirect behavior | Preserve source and export; map humans and permissions; rehearse recovery before destructive cutover. | Inspect final migration log, counts, links and sampled historical issues/PR authors/files. | +| GHES administration | backup/restore; maintenance; upgrade; replica/HA; license; support bundle; GitHub Connect | Use instance version runbook and verified backups; repo admin is not appliance administrator. | Verify backup restore readiness, instance health/version and product connectivity after approved change. | +| Support interaction | entitlement; intended enterprise account; new/existing ticket; attachment; reply; status | Prepare redacted reproduction and preserve case history; submission/reply contacts another party and needs explicit instruction. | Read actual ticket ID/submitted content/status; form preparation alone is not submission. | + +**Failure and preservation notes:** Migration/API success does not prove review history, actor attribution or every product artifact migrated. Support attachments can have unauthenticated URLs; redact before upload. + +**Official sources:** [feature-overview-for-github-enterprise-cloud-with-data-residency](https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/feature-overview-for-github-enterprise-cloud-with-data-residency), [adding-organizations-to-your-enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise), [using-github-enterprise-importer](https://docs.github.com/en/migrations/using-github-enterprise-importer), [admin](https://docs.github.com/en/enterprise-server@latest/admin), [creating-a-support-ticket](https://docs.github.com/en/enterprise-cloud@latest/support/contacting-github-support/creating-a-support-ticket). + +## Organization rules and hosted networking + +Group: `rules-network`. Capability IDs: `admin-organization-rulesets`, `admin-organization-rule-suites`, `admin-enterprise-rulesets`, `admin-organization-network-configurations`, `admin-enterprise-network-configurations`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Ruleset nested scope | target branch/tag/push where supported; enforcement disabled/active/evaluate; repository/ref include/exclude conditions; bypass actors/modes | Preserve target conditions and bypass IDs; evaluate mode measures without enforcement. Detail rule parameters in delivery-security reference. | Read each ruleset, inherited sources and rule suites for sample pushes; list alone proves little. | +| Network configuration | name1..100 letters/numbers/._-; compute_service none/actions; exactly one network_settings_ids entry | Use provisioned network resource and proper compute attachment; a configuration alone attaches no runner. | Read network setting and attached runner group plus actual connectivity. | +| Failover network | failover_network_settings_ids exactly one when configured; failover_network_enabled boolean | Choose failover only with independently tested connectivity and owner-approved network policy. | Read failover configuration; bounded connectivity/failover test and rollback route. | + +**Failure and preservation notes:** Push, branch and tag rules have different plan gates. Network API response examples showing multiple IDs conflict with current exactly-one request rule; current parameter constraint wins. + +**Official sources:** [rules](https://docs.github.com/en/rest/orgs/rules), [rule-suites](https://docs.github.com/en/rest/orgs/rule-suites), [network-configurations](https://docs.github.com/en/rest/orgs/network-configurations), [network-configurations](https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/network-configurations). + +## Agent automation, task execution and human handoff + +Group: `agent-automation-options`. Capability IDs: `admin-agent-automations`, `admin-agent-tasks`, `admin-agent-secrets`, `admin-agent-variables`, `admin-copilot-cloud-agent-sessions`, `admin-copilot-team-customizations`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Automation ownership | type personal/shared; enabled; require_actor_write_permission; continuous_history | Personal belongs to creator; shared is repository-readable and writer-manageable. Read repository allow-automations policy. | Read repository scope, creator and permitted actors; user-global list omits others shared automations. | +| Schedule and event triggers | cadence hourly/daily/weekly; hour_utc0..23; day_of_week0..6; minute_utc0/15/30/45 (omit with hourly); query/labels/workflow filters | Default daily/weekly midnight UTC, weekly Monday; choose explicitly with timezone conversion. | Read trigger fields and next/actual run time; preserve prior run history. | +| Trigger authority | write_scope trigger/repository; allow_copilot_triggers false default | Scheduled write_scope has no effect: scheduled runs can change entire repo. Keep Copilot-trigger loops disabled unless explicitly reviewed. | Read effective scope/policy; test trigger actor and targeted object. | +| Task request | prompt; model from current plan list; custom_agent filename stem; create_pull_request false default; base_ref/head_ref | Prompt must describe authorized work. Existing head_ref can receive commits; inspect branch/PR before start. | Read task/session/artifact and resulting diff; starting task is not completion. | +| Task states/history | queued/in_progress/completed/failed/idle/waiting_for_user/timed_out/cancelled; is_archived false default | Include archived records in history inventory; waiting_for_user needs actual human answer. | Read final state/output/errors and linked PR; retain original failed attempt before retry. | +| Secrets/variables/team customization | secret encryption key/value and repository visibility; plain variables; prompt/tool configuration | Never put secret in variable or prompt; preserve custom agents/tools and follow actual endpoint scope. | Read names/selection and bounded consumer output; no plaintext secret readback. | + +**Failure and preservation notes:** Public-preview surfaces change. App installation tokens support shared automations but not ordinary agent-task start/list; choose endpoint-specific authentication. No retry may silently create another billable task or duplicate PR; reread task/artifacts first. + +**Official sources:** [agent-automations](https://docs.github.com/en/rest/agent-automations/agent-automations), [agent-tasks](https://docs.github.com/en/rest/agent-tasks/agent-tasks), [secrets](https://docs.github.com/en/rest/agents/secrets), [variables](https://docs.github.com/en/rest/agents/variables), [copilot-cloud-agent-management](https://docs.github.com/en/rest/copilot/copilot-cloud-agent-management), [copilot-team-customizations](https://docs.github.com/en/rest/copilot/copilot-team-customizations). + +## Copilot Spaces and private registry access + +Group: `spaces-registry`. Capability IDs: `admin-copilot-spaces`, `admin-copilot-space-collaborators`, `admin-copilot-space-resources`, `admin-private-registries`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Space default access | base_role no_access(default)/reader/writer/admin; name/description/general_instructions | Keep no_access until audience approved; discover direct collaborators separately. | Read default/direct roles and test intended audience. | +| Space resource types | repository/github_file/free_text/github_issue/github_pull_request/media_content/uploaded_text_file; type-specific metadata | Preserve resource IDs and private context; fine-grained/user tokens need every referenced repository. | Read resource details; list can omit whole Spaces with inaccessible resources, so incomplete list remains unknown. | +| Registry access | visibility all/private/selected; selected_repository_ids only with selected; replaces_base false default | Select repositories and decide whether public-registry fallback is acceptable. | Read visibility, selected IDs and successful bounded dependency resolution. | +| Registry authentication | token(default)/username_password/oidc_azure/oidc_aws/oidc_jfrog/oidc_cloudsmith/oidc_gcp/anonymous | Token/password require encrypted_value/key_id; OIDC omit them; anonymous also omits username. Use provider-specific fields from current schema. | Read redacted auth config and external trust mapping; verify authorized resolution, not secret plaintext. | +| Provider-specific identity | Azure tenant_id/client_id; AWS region/account/role/domain/domain_owner; JFrog provider/audience; Cloudsmith namespace/service_slug/audience; GCP workload_identity_provider/service_account | Grant narrow external trust; GCP service_account optional for direct WIF. Cloudsmith api_host defaults api.cloudsmith.io. | Verify actual issuer/audience/subject and repository binding with external administrator. | + +**Failure and preservation notes:** Space sharing and source repository access are distinct; do not widen source access to make inventory look complete. Credential rotation and trust-provider setup require both GitHub and registry-side verification. + +**Official sources:** [copilot-spaces](https://docs.github.com/en/rest/copilot-spaces/copilot-spaces), [collaborators](https://docs.github.com/en/rest/copilot-spaces/collaborators), [resources](https://docs.github.com/en/rest/copilot-spaces/resources), [organization-configurations](https://docs.github.com/en/rest/private-registries/organization-configurations). + +## Organization defaults, repository history and storage + +Group: `repository-community-lifecycle`. Capability IDs: `admin-community-defaults`, `admin-organization-profile-content`, `admin-repository-lifecycle-admin`, `admin-repository-insights`, `admin-git-lfs`, `admin-archive-program`, `admin-github-models-retired`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Community defaults/profile | public .github defaults; repository-specific overrides; .github/profile/README.md and member profile where supported | Reuse organization defaults without overwriting repository custom documents; distinguish public/member audience. | Inspect rendered repository community profile and org profile with correct identity. | +| Repository lifecycle | visibility public/private/internal; archived; owner/name/default branch; delete versus archive | Check fork network, billing, actions/pages and collaborator consequences. Preserve history and transferable objects before move/delete. | Read metadata and history/redirect/access after change; archive is read-only, not backup. | +| LFS configuration | .gitattributes tracked patterns; LFS object store; pointers; quota/billing; migration rewritten history | Track only required files; git clone/mirror without LFS object fetch is insufficient backup. History rewrite requires coordinated human cutover. | Fetch/check LFS objects; verify fresh checkout and collaborators migration instructions. | +| Insights/preservation | traffic/clones/views; contributors/stats async response; Preserve this repository on/off | Capture ephemeral metric window before expiry. Archive Program opt-out only affects future preservation. | Read completed statistics and preservation setting; never equate UI archival, source export and long-term program. | +| Retired Models workflow | historical GitHub Models integration/configuration; retired endpoints | Preserve source/cost history, discover supported replacement only when requested; no new deployment against retired service. | Check endpoint retirement notice and installed integration; mark unavailable with dated evidence. | + +**Failure and preservation notes:** No repository deletion or history rewrite is implied by full setup. A metadata snapshot cannot restore repository/LFS/product history. + +**Official sources:** [creating-a-default-community-health-file](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file), [customizing-your-organizations-profile](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile), [repos](https://docs.github.com/en/rest/repos/repos), [metrics](https://docs.github.com/en/rest/metrics), [about-git-large-file-storage](https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage), [opting-into-or-out-of-the-github-archive-program-for-your-public-repository](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/opting-into-or-out-of-the-github-archive-program-for-your-public-repository), [github-models](https://docs.github.com/en/github-models). + +## Human-facing sharing, Classroom and Spark + +Group: `human-social-education`. Capability IDs: `admin-account-following`, `admin-account-social-links`, `admin-gists`, `admin-gist-comments`, `admin-repository-stars`, `admin-activity-feeds`, `admin-classroom`, `admin-github-spark`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Social profile and subscriptions | follow/unfollow; social account URLs; star/unstar; public/private authenticated feeds | Only change owner-requested preferences; feed URLs can embed sensitive tokens. | Read actual relationship/profile/feed scope without logging private feed URLs. | +| Gist publication/history | public true/false on creation; description/files; file rename/delete; revisions/forks/comments | Secret gist is unlisted, not access-controlled private storage; never put secrets there. Preserve revision before edits. | Read visibility/files/history and comment IDs; inspect audience before publishing. | +| Classroom assignment | classroom/assignment ID; individual/group; accepted assignment repositories; students/teams; grades | Use teacher authority and preserve student privacy; acceptance and grading are separate human actions. | Read actual assignment, accepted repositories and grades with correct classroom scope. | +| Spark publishing/data | private/organization/all-GitHub-users where eligible; shared app data read-only/write; preview versus published version | Publication and data-write audience need explicit scope; managed users cannot publish to all GitHub users. | Read publication URL/version/audience and verify authorized viewer/data operation. | + +**Failure and preservation notes:** Commenting, following and invitations affect other humans. Read-only discovery is not permission to contact or publish. + +**Official sources:** [followers](https://docs.github.com/en/rest/users/followers), [social-accounts](https://docs.github.com/en/rest/users/social-accounts), [gists](https://docs.github.com/en/rest/gists/gists), [comments](https://docs.github.com/en/rest/gists/comments), [starring](https://docs.github.com/en/rest/activity/starring), [feeds](https://docs.github.com/en/rest/activity/feeds), [classroom](https://docs.github.com/en/rest/classroom/classroom), [your-first-spark](https://docs.github.com/en/copilot/tutorials/spark/your-first-spark). + +## Platform diagnostics and templates + +Group: `platform-diagnostics`. Capability IDs: `admin-platform-meta`, `admin-platform-rate-limits`, `admin-platform-license-catalog`, `admin-platform-gitignore-templates`, `admin-platform-emojis`, `admin-platform-markdown-rendering`. + +| Option | Values and documented defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Host metadata | GET /meta; API versions; SSH fingerprints; IP/domain lists | Use real host metadata and documented exceptions; avoid rewriting firewall from partial snapshot. | Verify host identity and freshness before applying any external network change. | +| Quota and retry | core/search/GraphQL resource budgets; x-ratelimit-*; retry-after; GraphQL cost/reset | Obey primary and secondary throttles; positive core remaining does not rule out secondary limit. | Record failed request/status/headers; retry under documented delay and verify object state first. | +| Catalog templates | SPDX license ID; detected license file; gitignore template name; emoji shortcode | Owner chooses license; preserve custom ignore rules; catalog discovery does not authorize relicensing. | Read actual committed license; git check-ignore plus tracked-file inspection; verify chosen shortcode. | +| Markdown rendering | mode markdown/gfm; repository context; raw rendering endpoint | Context changes issue/user link resolution; rendering POST does not publish comment or file. | Inspect returned HTML and context-sensitive links in intended renderer. | + +**Failure and preservation notes:** A successful render or catalog lookup proves only that lookup. It is not evidence of repository configuration or publication. + +**Official sources:** [meta](https://docs.github.com/en/rest/meta), [rate-limit](https://docs.github.com/en/rest/rate-limit), [licenses](https://docs.github.com/en/rest/licenses), [gitignore](https://docs.github.com/en/rest/gitignore), [emojis](https://docs.github.com/en/rest/emojis), [markdown](https://docs.github.com/en/rest/markdown). + +## Completeness and remaining implementation gaps + +This option review deepens high-risk administration paths; it does not assert every present or future UI control has been enumerated. Every administration capability family is mapped below; this is a family coverage check, not a claim every host-specific nested field is frozen here. Expand the exact current operation schema and product UI for each applicable setting before configuration. Do not silently treat an available route as configured. + +- `scripts/audit.py` reads organization summary lists, not effective user grants, member lifecycle, token approvals, webhook deliveries, audit retention/stream health, nested billing controls or effective Copilot policies. It cannot certify those configurations. +- `scripts/operations.py` submits a supplied REST body unchanged. The billing budget documentation explicitly supplies a required `user` field omitted by generated schemas; use the current documented override and readback. Schema discovery alone is insufficient. +- Generic `gh api --paginate` follows server pagination headers. Budget responses also expose `has_next_page` and `total_count`; reconcile these with fetched counts and explicitly request remaining pages when needed rather than assuming a complete inventory. This is a required verification guard, not a demonstrated current server-header defect. +- Neither script preserves an append-only administrative change history or captures human approvals, notification receipt and recovery tests. Maintain these evidence records alongside the coverage ledger before claiming full setup. diff --git a/skills/full-github/references/collaboration-options.md b/skills/full-github/references/collaboration-options.md new file mode 100644 index 0000000..8be5bd3 --- /dev/null +++ b/skills/full-github/references/collaboration-options.md @@ -0,0 +1,760 @@ +# Collaboration: option-level setup and operating policy + +Research date: 2026-11-15. Read this with [collaboration.md](collaboration.md), [operations.md](operations.md) and the capability catalog. This document decomposes settings and decisions inside those families; it does not replace operation discovery, owner policy or a live audit. Sources describe GitHub.com unless a host/version is identified. No external mutations or target-account feature tests were performed for this research. + +## How to apply the options + +For each applicable group, record observed object/field/option IDs, exact current values, the desired values and reason, supported execution surface, required permission/plan, and evidence after reconciliation. Inspect every existing customized object before creating or replacing one. A group is not configured merely because its parent capability is readable. A missing API setting requires current UI/schema inspection, not an invented default or a skipped nested option. + +“Prefer”, “default to” and “use” below are recommended project policies. Actual GitHub defaults are identified explicitly; owner/repository decisions override recommendations. The listed values describe the documented surface, not a promise every value is available on every plan/host. For a newly discovered nested control, extend the ledger and inspect its semantics before declaring the group complete. Counts of groups or settings do not prove exhaustive coverage. + +Choose applicability from the real workflow: a single-maintainer library can have zero required peer approvals with passing checks and owner routing; a busy team may need queue/review freshness; a deployed service needs QA/release semantics beyond merge. Cross-repository planning justifies shared fields and owner Projects. Date commitments justify roadmap/iterations; unsupported plans are unavailable with evidence rather than silently approximated. Community support needs staffed Q&A/routing; enabling every category creates no response ownership. + +## Human interaction through the lifecycle + +1. **Before work:** read instructions, issue body, relevant complete timeline/comments and linked decisions; search for duplicates; inspect Project status, ownership, blockers and any existing PR. Record current IDs and SHAs. +2. **Triage:** reuse existing native type/labels/fields; agree what completion means; preserve reporter evidence. Distinguish an actionable defect, unanswered question, early design discussion and declined proposal. Reopen the same unfinished work rather than fragmenting its history. +3. **While implementing:** keep scope and current evidence accurate in the issue/PR description; preserve the chronology of material decisions in authorized progress messages. Follow the project's actual status transitions and notify only relevant people when authorized. +4. **Review:** read summary and inline threads, including outdated/resolved threads when relevant. Reply at the original finding with the implementing commit, reasoned disagreement or a linked follow-up. Submit pending reviews intentionally. Resolve only addressed/agreed findings and re-request review when appropriate and authorized. +5. **Delivery:** compare reviewed/current head; satisfy effective checks/review/queue rules; wait for actual merge and inspect resulting commit, issue closure and Project automations. A green enqueue or closed issue does not establish release/deployment. +6. **After delivery:** publish affected docs/Wiki only through the configured publication path, verify the remote rendered result, and retain issue→PR→commit→release/documentation links. Report partial/gated work precisely and retain previous decisions and unsuccessful attempts when they explain the final state. + +Writing comments, assigning reviewers, converting discussions, subscriptions, announcements and personal votes affect people. This reference describes their correct operation; it does not itself authorize posting, access expansion, irreversible deletion or financial commitments. + +## Settings and decisions + +Each row gives accepted choices, a decision rule and owning-object verification. Each group carries official sources; forum observations are separately labeled and can prompt checks but never overrule current official behavior or actual target evidence. + +### `repository-collaboration-settings` — Repository identity, defaults and collaboration surfaces + +**Capability IDs:** `repository-lifecycle`, `repository-branches`, `repository-autolinks`, `repository-community`. + +**Applicability:** Every repository; preserve owner decisions about visibility, licensing and audience. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| visibility / private | public; private; internal where eligible | Preserve observed visibility; assess access and discoverability before a requested change, never make a private project public as routine setup. | Re-read visibility and intended reader access; inspect fork implications before changing. | +| default_branch | existing branch name | Retain the current branch unless migration is required; discover branch names before configuring CI, templates or closing links. | Read repository default_branch, ref SHA and PR bases after any authorized rename. | +| has_issues / has_projects / has_wiki / has_discussions | independent booleans | Enable the surfaces the project will actively use; enabling a repository Projects tab does not create or configure an owner Project. | Read each flag and follow the actual tab and linked owner Project. | +| description / homepage / topics | text; HTTPS URL; topic list | Use concise purpose and a working primary documentation URL; preserve unrelated topics and owner-defined metadata. | Read metadata and open rendered links; check topic replacement semantics before writing. | +| autolinks.key_prefix / url_template / is_alphanumeric | tracker prefix; URL with ; boolean | Add only for a real external tracker; choose a non-colliding prefix and correct numeric versus alphanumeric matching. | Read rule IDs and test a harmless rendered example without sending a comment. | +| archived / disabled | repository lifecycle flags | Archive only when work truly ends; do not archive to represent a finished milestone or Project. | Re-read flags, open work and expected read-only behavior; record unarchive recovery path. | + +**Official sources:** [repos](https://docs.github.com/en/rest/repos/repos), [autolinks](https://docs.github.com/en/rest/repos/autolinks). + +**Pitfall:** Repository flag defaults vary with creation path and owner settings; never infer actual configuration from product availability. + +### `source-and-history-policy` — Source changes, history and repository derivation + +**Capability IDs:** `repository-content`, `repository-git-objects`, `repository-history`, `repository-lfs-submodules`, `repository-templates`, `repository-forks`, `repository-commit-comments`. + +**Applicability:** Every code repository; LFS/submodules/templates/forks only where present. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| content.ref / expected sha | immutable commit SHA; branch; tag; update blob SHA | Read immutable refs for evidence; use Git for multi-file work and expected old SHAs for API writes. | Inspect resulting commit tree and parents plus changed-file list; reconcile timeout before retry. | +| ref.force / git push strategy | non-force; force-with-lease when explicitly justified | Preserve human commits; default to non-force updates, compare remote head and use a lease only for authorized history rewrite. | Fetch and compare old/new ref OIDs; stop if remote changed unexpectedly. | +| merge history | merge commit; squash; rebase | Follow repository policy; merge preserves branch commits, squash gives one logical commit, rebase rewrites commit identities. | Match resulting base-branch commit and PR merge metadata; keep issue/PR links as decision history. | +| template.include_all_branches / fork.default_branch_only | boolean choices | Template copies start a separate history; forks preserve an upstream relationship. Choose based on contribution versus new-project intent. | Inspect parent/source or is_template relationship and compare expected branches/files. | +| LFS / submodule checkout | pointer versus object; pinned SHA; recursive checkout | Fetch only required objects and pinned submodules; never treat an LFS pointer or gitlink as tested source content. | Verify actual object bytes, submodule OIDs and executable/symlink modes. | +| comment anchor | commit SHA; file path; valid line | Commit comments discuss a specific historical revision; use a PR review thread for an actionable PR finding. | Read returned comment ID, commit_id and line metadata; retain URL when following up. | + +**Official sources:** [contents](https://docs.github.com/en/rest/repos/contents), [refs](https://docs.github.com/en/rest/git/refs), [pull-request-merges](https://docs.github.com/en/pull-requests/reference/pull-request-merges). + +**Pitfall:** A Git clone does not contain issues, review conversations, Project configuration or Wiki history. Separate evidence stores are needed for those records. + +### `codeowner-routing` — Who receives review and when + +**Capability IDs:** `repository-codeowners`, `pr-review-requests`. + +**Applicability:** Repositories accepting PRs; stricter ownership only with available qualified reviewers. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| CODEOWNERS location / matching order | .github/CODEOWNERS; root CODEOWNERS; docs/CODEOWNERS; last matching pattern | Use one authoritative file on the PR base branch, broad ownership first and narrow overrides later; list multiple owners together. | Read actual base-branch file, query CODEOWNERS errors and map representative changed paths. | +| owner eligibility | user with write; visible team with explicit write | Reuse real maintainers; do not invent a reviewer or broaden team visibility/access to make routing work. | Verify team visibility and repository role; inspect requests on a matching ready PR. | +| requested_reviewers / requested_teams | user logins; organization team slugs | Request the smallest relevant set; requests notify people, so repository setup alone is not authority to send them. | Read outstanding review requests and submitted reviews separately; a removed request may mean review completed. | +| draft to ready | draft; ready for review | Keep incomplete work draft; move ready when description, diff and checks support review. CODEOWNERS automatic requests happen on readiness. | Re-read isDraft and automatic requests; explain review scope in the authorized PR description. | +| require_code_owner_reviews | false; true through branch policy | Routing alone never enforces approval; enable enforcement where actual independent owners exist and repository rules call for it. | Read effective protection/ruleset plus PR reviewDecision; avoid self-approval deadlock. | + +**Official sources:** [about-code-owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners), [review-requests](https://docs.github.com/en/rest/pulls/review-requests). + +**Pitfall:** The author cannot approve their own PR. A single-maintainer repository may deliberately require zero peer approvals while retaining routing and required checks. + +### `issue-intake-routing` — Issue chooser and PR template routing + +**Capability IDs:** `issue-forms-templates`, `pr-templates`. + +**Applicability:** User-facing or collaborative repositories; lightweight internal projects can use fewer forms. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| chooser.blank_issues_enabled / contact_links | true; false; name/url/about entries | Keep an accessible path for unusual reports; route support and private vulnerabilities to actual staffed destinations. | Render chooser as intended contributor; open every contact URL without submitting. | +| form.name / description / title | unique chooser name; purpose text; optional title prefix | Separate reproducible defects from proposals only when triage differs; avoid prefixes duplicating structured type. | Open every template on default branch and check readable chooser order and defaults. | +| form.labels / assignees / type | existing labels; assignable users; existing owner issue type | Reuse taxonomy; default assignees only when maintainers accept that responsibility; labels must already exist. | Check available labels/types/assignees and inspect a permitted representative result. | +| form.projects | OWNER/NUMBER list | For external reporters prefer Project auto-add because template project insertion needs the submitter's write access to that Project. | Verify with relevant contributor permission context; do not use maintainer success as outsider proof. | +| PR template selection | .github/pull_request_template.md; PULL_REQUEST_TEMPLATE/name.md and template query | Use concise purpose/validation/risk prompts; multiple templates need an actual selection link/process, not an assumed automatic chooser. | Open new-PR draft composer and test the intended template URL without posting. | +| inheritance / placement | repository templates; owner .github defaults | Inventory inherited files before adding duplicates; default-branch placement controls normal chooser availability. | Compare effective chooser and local/owner file sources, including casing and extension. | + +**Official sources:** [syntax-for-issue-forms](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms), [configuring-issue-templates-for-your-repository](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository). + +**Pitfall:** Issue forms become editable Markdown; required form controls are intake aids, not permanent structured-field enforcement. Issue forms are not PR forms. + +### `form-controls` — Nested form controls and validation + +**Capability IDs:** `issue-forms-templates`. + +**Applicability:** For every configured YAML issue form; discussion forms reuse supported controls with their own top-level schema. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| body[].type / id | markdown; input; textarea; dropdown; checkboxes; upload; unique alphanumeric/-/_ IDs | Pick the control matching the answer; use stable unique IDs for supported prefills and future maintenance. | Validate schema and render each control on the target host; require a non-markdown control. | +| input.attributes | label; description; placeholder; value; validations.required | Require actionable minimum information, not optional diagnostics; placeholders are examples, values are submitted defaults. | Clear required inputs in preview and inspect validation behavior without posting. | +| textarea.attributes | label; description; placeholder; value; render; validations.required | Use render for literal logs/code only; omit it when Markdown editing or attachment affordances are needed. | Check code-fence output and attachment/Markdown behavior in composer. | +| dropdown.attributes | options[]; multiple true/false; default index; validations.required | Default only when the common choice is safe; use no default when choosing version/platform must be deliberate. | Check unique options, index bounds, single versus multiple selection and empty validation. | +| checkboxes.attributes.options[] | label; required true/false | Require only a meaningful acknowledgement; individual required flags differ from an optional checklist. | Test unchecked required item and check rendered links and separate labels. | +| markdown / upload | markdown.value; upload label/description/required where supported | Markdown guidance is not submitted content; keep critical reporting requirements in actual controls. Upload only needed files with privacy guidance. | Preview target schema support; inspect attachment expectations and avoid requesting secrets. | + +**Official sources:** [syntax-for-githubs-form-schema](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema), [common-validation-errors-when-creating-issue-forms](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms). + +**Pitfall:** Do not invent regex validators, conditional controls or arbitrary client logic; unsupported YAML keys can prevent the form appearing. + +### `issue-taxonomy` — Types, labels, owners and milestone planning + +**Capability IDs:** `issue-metadata`, `issue-assignees`, `issue-milestones`, `issue-types`, `issue-types-owner`. + +**Applicability:** Every tracked work item; owner-wide definitions only with owner-level applicability. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| issue.type / owner definition | enabled type ID; null; name/description/color/is_enabled | Prefer the owner's existing Bug/Task/Feature equivalents; types describe work kind rather than transient status. Owner edits affect other repositories. | List owner and repository types, then read the issue's assigned type ID. | +| labels[] / label color-description | names and IDs; six-digit color; explanatory description | Labels serve useful cross-cutting queries; preserve customized names/colors and add/remove narrowly instead of replacing all. | Compare before/after label ID sets and rendered descriptions; check saved filters still match renamed labels. | +| assignees[] | eligible user logins; empty list | Assign a responsible person only when the task or project convention authorizes it; assignment does not mean acceptance. | Check assignability then re-read the exact assignee set; do not confuse PR reviewer and assignee. | +| milestone.title / description / due_on / state | repository milestone; ISO8601 date; open/closed | Use milestones for real releases/deadlines, not arbitrary duplicates of Project iterations; dates are targets. | Read milestone counters and all included open/closed issues and PRs; closing milestone does not close work. | +| metadata mutation mode | add; remove; replace | Use delta mutations for focused edits; reserve replace for an explicitly reconciled full desired set. | Re-read concurrent metadata before write and confirm unrelated labels/assignees remain. | + +**Official sources:** [labels](https://docs.github.com/en/rest/issues/labels), [assignees](https://docs.github.com/en/rest/issues/assignees), [milestones](https://docs.github.com/en/rest/issues/milestones), [issue-types](https://docs.github.com/en/rest/orgs/issue-types). + +**Pitfall:** Do not create a new taxonomy each run or use a label named Feature as proof native issue type is configured. + +### `shared-issue-fields` — Shared issue definitions and Project-local fields + +**Capability IDs:** `issue-fields`, `issue-field-values`, `projects-issue-fields`, `projects-multiselect`. + +**Applicability:** Cross-repository structured facts use owner issue fields; Project-only estimates/status use Project fields. Preview/host gates must be inspected. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| field scope / applicability | owner issue field; Project field; same-owner issues only | Put reusable facts on the issue; Project issue-field cells are empty for PRs, draft items and issues from other owners. | Read owner definition, issue sidebar and Project column as intended audience; missing applicability is not missing data. | +| visibility / API enum | Restricted/Public in UI; restricted/all in REST; deprecated organization_members_only | Retain restricted default for nonpublic planning facts; public/internal Projects expose only Public issue fields. Changing to Restricted removes the field from those Projects. | Read exact API visibility and inspect viewer/sidebar/timeline/Project behavior; do not change visibility merely to display a column. | +| pin to types / field limits | selected issue type IDs; Issues without a type; no pins; current 25 owner fields/100 select options/10 pins per type/50 total Project fields | Pin relevant fields so creation/view surfaces show them automatically; unpinned fields remain available through Add field and Projects. Limits differ from Project single-select options. | Read pin mapping for typed and untyped issues and count all system/issue/local Project fields; verify target-host limits before creating. | +| data_type / typed value | text; number; date; single_select; multi_select where supported | Select type from actual schema; use date for dates and number for arithmetic, not formatted strings. | Inspect supported owner and Project types separately; round-trip one permitted value of the selected type. | +| select options | stable ID; name; description; color; default where supported | Reuse IDs; rename in place when supported, never recreate populated options just to reorder or recolor. | Export affected values before change and compare option IDs and representative assignments afterward. | +| issue field values operation | add; set; delete; typed scalar or option IDs | Preserve unrelated values and distinguish adding multi-select members from replacing the selected set. | Read all current issue-field-values and compare exact changed field and option IDs. | +| intake population | sidebar; API; Actions; supported Project column | Do not promise template or URL prefill of native issue fields; those are currently unsupported in the consulted product guide. | Verify creation path then read the issue fields, not Markdown text that happens to have the same heading. | + +**Official sources:** [adding-and-managing-issue-fields](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-and-managing-issue-fields), [issue-field-values](https://docs.github.com/en/rest/issues/issue-field-values), [issue-fields](https://docs.github.com/en/rest/orgs/issue-fields), [about-issue-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-issue-fields), [managing-issue-fields](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields). + +**Pitfall:** A community preview announcement is not proof of API type support or entitlement. Inspect the exact host schema and actual rendered field. + +**Community observation** (not current-platform proof): [202760](https://github.com/orgs/community/discussions/202760) — July 2026 community post describes multi-select preview; treat as discovery, not authority for every host or endpoint. **Official/current check:** Current issue-field-values examples include multi_select; bundled UpdateProjectV2FieldInput also exposes multiSelectOptions. Live entitlement remains untested. + +### `issue-state-and-relations` — Completion, hierarchy, blockers and identity + +**Capability IDs:** `issue-lifecycle`, `issue-subissues`, `issue-dependencies`, `issue-related`, `issue-transfer-pin-duplicate`, `issue-linked-branches`, `issue-planning-status`. + +**Applicability:** Issues with meaningful lifecycle; hierarchy/dependencies only where real decomposition/order exists. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| state / state_reason | open; closed; completed; not_planned; reopened where accepted | Close completed only with acceptance evidence; not-planned needs a decision reason; reopen the original issue for the same unfinished work. | Read state/state_reason and timeline; closing is not deployment verification. | +| parent / child order | issue database IDs; parent relationship; ordered sub-issues | Use one parent for decomposition, preserve child identity and ordering; avoid manufacturing hierarchy for unrelated work. | Read parent and child sides, all pages and final sibling order; current product limits are 100 children and eight levels. | +| blocked_by / blocking | directed native issue dependencies | Record A blocked by B when B must finish first; parenthood and a mention do not establish dependency. | Query both directions and verify no self/cyclic/duplicate relationship accepted by the host. | +| related / duplicate | related edge; duplicate_of; mark/unmark duplicate | Link peers as related; point duplicates to the canonical issue and retain the reporter's reproduction details there by reference. | Read canonical URLs and relationship timeline; do not delete duplicate history. | +| transfer / pin | destination repository; pinned/unpinned | Transfer only after access/ownership consequences are understood; use pins for durable current entry points, not every issue. | Follow old URL, read new repository/number/ID, metadata and relationship preservation. | +| linkedBranch.repositoryId / name / oid | chosen repository; branch name; base commit | Start from observed default/base SHA unless task needs a release branch; link existing work before creating duplicate branches. | Read actual ref OID and issue linkedBranches; link does not substitute for a closing PR. | +| planning status | discovered status ID; duplicate reference where supported | Preview planning statuses may transition issue state; use only after discovering viewerCanSetStatus and available statuses. | Read status plus open/closed state and duplicate target; do not equate it to Project Status. | + +**Official sources:** [issues](https://docs.github.com/en/rest/issues/issues), [adding-sub-issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues), [issue-dependencies](https://docs.github.com/en/rest/issues/issue-dependencies), [creating-a-branch-for-an-issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-a-branch-for-an-issue). + +**Pitfall:** Removal of a hierarchy/dependency edge is not deletion of either issue. Native relationships need actual API/UI evidence, not a checklist in the body. + +### `timeline-and-conversation-preservation` — Human conversation and durable evidence + +**Capability IDs:** `issue-comments`, `issue-timeline`, `issue-artifacts`, `repository-history`. + +**Applicability:** Every task involving past decisions, edits, triage or review follow-up. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| read model | issue body; paginated comments; timeline events; reviews and threads | Read all relevant streams before replying; issue body and last few visible comments omit decisions, force pushes, transfers and prior review outcomes. | Independently paginate nested connections; reconcile IDs/timestamps and retrieve referenced objects. | +| edit versus append | correct current body; new progress/decision comment; retain superseded links | Edit the canonical description to reflect current scope; append material decisions and corrections when authorized so reasoning remains chronological. | Compare prior content and edit history where available; retain earlier evidence URLs and authorship. | +| comment/reply location | issue conversation; PR summary; review thread reply; Discussion answer | Reply in the thread containing the question; distinguish implemented fix, justified disagreement, unresolved question and deferred follow-up. | Read thread root/reply IDs and resulting thread state; never claim a pending review was delivered. | +| notifications / mentions | direct mention; team mention; no mention; user subscription | Mention only relevant people when an authorized message needs their attention; do not silently change watch/subscription settings. | Inspect recipient and final posted location; API success is not proof the user read the message. | +| attachments / artifacts | canonical ID; immutable URL/ref; access-restricted resource | Preserve attachment identity and permissions; reference existing logs/files instead of re-uploading private content publicly. | Verify readable content with permitted audience and identify expiry; attachment presence is not content validation. | +| recovery after ambiguous write | reconcile by ID/body/context; retry missing write only | Avoid duplicate posts after timeouts; inspect recent author/timestamp/body and relationship events before retry. | Capture canonical ID/URL and distinguish already-applied from unapplied writes. | + +**Official sources:** [timeline](https://docs.github.com/en/rest/issues/timeline), [comments](https://docs.github.com/en/rest/issues/comments), [users#usercontentedit](https://docs.github.com/en/graphql/reference/users#usercontentedit). + +**Pitfall:** Git history is not conversation history; activity feeds are not complete audit logs. Loading an old thread in UI may collapse large portions. + +**Community observation** (not current-platform proof): [5119](https://github.com/orgs/community/discussions/5119) — Long-running reports describe collapsed older activity and difficult navigation; exact UI behavior has changed over time. **Official/current check:** REST timeline and comment endpoints are separately paginated, so use their complete relevant pages rather than infer completeness from the rendered screen. + +**Community observation** (not current-platform proof): [33551](https://github.com/orgs/community/discussions/33551) — Users seek issue/comment edit history through APIs and point to GraphQL. **Official/current check:** Inspect UserContentEdit connections and viewer permissions on the current schema; do not claim a comments list contains every revision. + +### `pr-creation-and-linking` — PR intent, comparison base and connected work + +**Capability IDs:** `pr-lifecycle`, `pr-linking`, `pr-templates`, `pr-stacks`, `pr-archival`. + +**Applicability:** All code changes delivered through PRs; native stacks/archival only on supported hosts. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| head / base / draft | owner:branch; repository base branch; boolean | Discover existing PR before creating; choose correct target release/default branch and draft state from readiness. | Read head repo/ref/SHA, base ref/SHA and isDraft; inspect full diff against merge base. | +| title / body / maintainer_can_modify | current problem and result; validation and limits; boolean | Describe final scope and evidence; allow fork-maintainer edits only when contributor intent and repository trust permit. | Re-read rendered description and fork edit permission; retain rationale and linked decisions. | +| closing keyword / manual development link | closes/fixes/resolves #N; OWNER/REPO#N; manual same-repo link | Use closing intent only for fully satisfied issues targeting default branch; use plain references for partial work or release-target PRs. | Check development links before merge, issue state and timeline after merge; commit-only closing may omit PR sidebar linkage. | +| base retarget / branch rewrite | new base; merge update; rebase update | Recheck scope before retargeting; changing base can remove visible commits and make inline comments outdated. Preserve decision URLs and communicate material scope changes in authorized flow. | Compare old/new base/head SHAs, diff, review freshness and unresolved/outdated threads. | +| native stack / archival | detected stack relationship; archive/unarchive | Use native stack support only where available; archive is distinct from close, branch deletion and Project archive. | Read actual stack/base relationships or archived/state fields and timeline; do not simulate support with text and label it configured. | + +**Official sources:** [pulls](https://docs.github.com/en/rest/pulls/pulls), [linking-a-pull-request-to-an-issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue), [changing-the-base-branch-of-a-pull-request](https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/changing-the-base-branch-of-a-pull-request). + +**Pitfall:** A PR references the live head branch; pushing after review changes the material under review. Closing without merge does not mean delivered. + +### `review-submission-and-threads` — Review decisions, anchors, pending state and resolution + +**Capability IDs:** `pr-reviews`, `pr-review-comments`, `pr-file-view-state`. + +**Applicability:** All review work; submitted comments are external messages and require task authorization. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| review.commit_id / event | observed head SHA; omitted event=PENDING; COMMENT; APPROVE; REQUEST_CHANGES | Bind evidence to the reviewed head. Draft/pending reviews are private; submit only the intended decision and explain actionable findings. | Read review ID, commit_id, state, submitted_at and comments; author cannot approve own PR. | +| inline anchor | commit_id; path; line/side; start_line/start_side; subject_type line/file | Anchor to an actual diff on the observed SHA; prefer current line/side coordinates, not deprecated positional guessing. | Re-read comment diff_hunk, original/current line and commit IDs; wrong anchor requires correction, not silent relocation. | +| reply and suggestion | in_reply_to root ID; suggestion block; batched application | Preserve original conversation; inspect suggestions as code, batch related accepted edits and verify new commits. | Read replies and resulting branch SHA; rerun affected checks after applying suggestions. | +| viewed files / diff settings | mark/unmark viewed; unified/split; ignore whitespace | Viewed is personal progress, not approval; inspect whitespace when meaningful and unmark changed files requiring another pass. | Read viewerViewedState as same viewer and current path/head; record what was actually reviewed. | +| thread.resolve / reopen | resolved; unresolved; outdated | Resolve after code/evidence addresses the finding or recorded agreement; outdated merely means anchor drift, not fixed. | Read isResolved/isOutdated and implementing commit or linked follow-up; preserve unresolved material objections. | +| dismissal.message / restrictions | required rationale; eligible actor | Dismiss only invalidated/unavailable-reviewer feedback with an explicit reason and policy authority; do not erase dissent to unblock merge. | Read dismissed review state and timeline rationale plus remaining effective review requirements. | + +**Official sources:** [reviews](https://docs.github.com/en/rest/pulls/reviews), [comments](https://docs.github.com/en/rest/pulls/comments), [reviewing-proposed-changes-in-a-pull-request](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/reviewing-proposed-changes-in-a-pull-request), [dismissing-a-pull-request-review](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/dismissing-a-pull-request-review). + +**Pitfall:** Review comments, issue-style PR comments and commit comments are different stores. Never respond to only the summary while missing inline threads. + +### `merge-options-and-delivery` — Merge settings and asynchronous delivery + +**Capability IDs:** `pr-merge`, `pr-auto-merge`, `pr-merge-queue`, `pr-update-revert-cleanup`, `pr-agent-merge`. + +**Applicability:** Repositories accepting merges; queue/auto-merge/Agent Merge only where supported and justified by throughput. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| allow_merge_commit / allow_squash_merge / allow_rebase_merge | independent booleans | Follow existing history policy and effective branch rules; retain squash-only delivery where the repository policy requires it. Avoid introducing several methods without a reason. | Read repository flags and allowed methods in effective rules; inspect actual resulting commit topology. | +| squash_merge_commit_title / message | PR_TITLE or COMMIT_OR_PR_TITLE; PR_BODY or COMMIT_MESSAGES or BLANK | Prefer stable PR title plus reviewed useful body for a one-change PR; inspect generated message for accidental skip directives or sensitive diagnostics. | Preview final message and read resulting commit; verify expected CI ran on the merged SHA. | +| merge_commit_title / message | PR_TITLE or MERGE_MESSAGE; PR_BODY or PR_TITLE or BLANK | If merge commits are enabled, choose a useful durable description without dumping transient logs. | Read supported enum payload and final commit message; no configuration claim from preview alone. | +| merge.sha / merge_method | exact reviewed head SHA; merge/squash/rebase | Guard the merge against concurrent head changes; do not override required checks, outstanding review or queue to satisfy a local plan. | Re-read current head and gate state, then resulting merged flag, merge_commit_sha and base ref. | +| auto-merge / queue entry | enabled/disabled; selected allowed merge method; queued state | Enable only for reviewed intent and qualifying rules; enqueue/enable is pending work, not completion. | Poll meaningful state changes until merge/failure or handoff; inspect queue removal reason and merged commit checks. | +| update_branch.expected_head_sha / delete_branch_on_merge / revert | expected head guard; boolean; revert PR | Update only after inspecting divergence; delete truly merged disposable branches, retain long-lived branches. Revert through a tracked PR rather than history rewrite. | Confirm head after update, branch absent only when intended, and revert result against merged commit. | + +**Official sources:** [configuring-commit-squashing-for-pull-requests](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests), [pull-request-merges](https://docs.github.com/en/pull-requests/reference/pull-request-merges), [pulls](https://docs.github.com/en/rest/pulls/pulls), [skip-workflow-runs](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs). + +**Pitfall:** Squash of a reused long-lived branch can replay prior commits in later PRs; start a fresh branch. Agent-merge eligibility must be checked separately. + +**Community observation** (not current-platform proof): [179965](https://github.com/orgs/community/discussions/179965) — A path-trigger investigation traced missing Actions runs to skip directives copied into a squash commit message. **Official/current check:** Official skip-workflow and squash-message documentation explains the mechanism. Inspect final message and run checks; do not conclude squash inherently breaks path filters. + +### `project-identity-access` — Project scope, access and item identity + +**Capability IDs:** `projects-lifecycle`, `projects-access`, `projects-items`. + +**Applicability:** Use Projects where the repository workflow calls for planning/tracking; public/private and organization/user ownership remain explicit choices. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| owner / number / node ID | organization Project; user Project; stable project ID | Reuse an existing matching Project; store owner/number/URL and node ID, never treat repository Projects flag as owner Project setup. | Read Project owner/ID/title/closed/public and linked repository list. | +| visibility / base permission / explicit collaborators | public/private; none/read/write/admin where available; users/teams | Choose least privilege for the real audience; repository access and Project access are separate. Draft titles and custom data can expose information. | Read base/explicit grants and inspect as intended reader; do not broaden repo access to make a Project readable. | +| item content type / IDs | Issue; PullRequest; DraftIssue; item ID distinct from content ID | Keep tracked work as native issues/PRs; draft ideas are appropriate before a repository is selected. Reuse existing item for content ID. | Paginate items and match content node ID/URL, including archived entries. | +| draft conversion | destination repository; issue metadata | Convert when the work has a responsible repository; preserve draft body, relevant fields and links, and check access before conversion. | Read returned issue URL and item content type/field values; do not create a second item for the same work. | +| item reorder / archive / delete | relative item order; archived flag; remove from Project | Use archive for recoverable history; deletion removes membership/field data, not the underlying issue. | Compare item IDs and saved values; restore archive when needed and verify representative fields. | + +**Official sources:** [managing-access-to-your-projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects), [managing-visibility-of-your-projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-visibility-of-your-projects), [adding-items-to-your-project](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project). + +**Pitfall:** Successful item-add is not proof that every view will show it: filters, archives, pagination, permissions or a service incident can hide the item. + +**Community observation** (not current-platform proof): [193194](https://github.com/orgs/community/discussions/193194) — April 2026 report shows successful CLI add and issue association while list/UI omit the item. **Official/current check:** Treat as incident evidence, not a current general guarantee. Read actual item by ID, paginate, inspect archive/filter and relevant repository access before retrying. + +### `project-field-schema` — Project field configuration and value integrity + +**Capability IDs:** `projects-fields`, `projects-field-values`, `projects-issue-fields`, `projects-multiselect`. + +**Applicability:** Every Project; additional fields only when a real view, query or decision uses them. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| field data type / semantic scope | text; number; date; single select; iteration; supported multi-select; built-in issue fields | Reuse built-in title/assignee/type/milestone and shared issue facts; create local fields only for Project-specific planning. | Inventory field IDs/types and example values; distinguish issue fields from similar-name local fields. | +| Status options / order / default | discovered IDs; e.g. Todo/In Progress/Done; optional default | Retain established names/IDs and explicitly define completion. Default to intake/Todo only if all newly added work is truly queued. | Read options/default and a newly added versus existing item; default changes must not silently rewrite old work. | +| select label / description / color | option ID; label; meaning; available color enum | Give ambiguous statuses a usable entry/exit definition; preserve IDs across cosmetic changes. Colors supplement text, never replace meaning. | Compare option IDs before/after, sampled assignments and UI descriptions; inspect schema before option-list replacement. | +| field mutation payload | typed text/number/date/singleSelectOptionId/iterationId; supported multi-select values | Send exactly the relevant value member using discovered IDs; clearing a field is a separate intentional action. | Read the changed field value and verify unrelated values remain; preserve zero versus unset. | +| field deletion / option removal | keep; migrate; delete with affected-value inventory | Migrate populated values before any authorized deletion; export mapping because recreating the same name may not recover identity. | Compare all affected item values and saved-view/filter/workflow references; never prove safety using only one empty item. | + +**Official sources:** [about-single-select-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-single-select-fields), [about-text-and-number-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-text-and-number-fields), [projects](https://docs.github.com/en/graphql/reference/projects). + +**Pitfall:** Current single-select guide documents at most 50 options and an optional default for newly added items; target API/UI default support still requires discovery. + +### `project-iterations` — Iteration schedules and rollover + +**Capability IDs:** `projects-iterations`. + +**Applicability:** Only projects with real cadence; continuous-flow work does not need artificial sprints. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| iteration configuration | start date; duration number; days/weeks | Match the actual team's planning cadence and timezone assumptions; do not auto-create indefinite schedules. | Read configuration plus automatically created iterations and exact IDs/dates. | +| iteration instance | title; startDate; duration; completed/active iteration ID | Preserve completed iteration identity and assignments; amend future dates deliberately rather than shifting historical interpretation. | Compare old/new date ranges and representative assigned work. | +| breaks | insertion point; break date range | Reflect actual holidays/pauses; inspect generated dates after insertion rather than assuming later schedule is unchanged. | Re-read all affected intervals and check no unintended overlap or shifted promised dates. | +| rollover | selected unfinished items; target iteration ID; preserve completed assignments | Move only unfinished selected work when agreed; keep prior commitment context in authorized update/history instead of silently rewriting all scope. | Compare item IDs/status and previous/target iteration assignments, including nonselected completed work. | + +**Official sources:** [about-iteration-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-iteration-fields). + +**Pitfall:** An iteration field initially creates three iterations; a break initially follows the prior duration. Product defaults are starting data, not a planning decision. + +### `project-saved-views` — View identity, shared configuration and safe filters + +**Capability IDs:** `projects-views`, `projects-layout`, `projects-filters`. + +**Applicability:** Every Project with distinct intake, execution or reporting audiences; avoid duplicate views with no distinct purpose. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| view name / layout / position | table; board; roadmap; saved view ID/order | Name views by the decision they support, e.g. Intake, Active work, Release roadmap; set default/first useful view for readers. | Read every saved view and reload shared URL, including ordering and unsaved-change indicators. | +| filter scope | repo/is/reason/assignee/label/type and custom field qualifiers supported in view | Store exact query, not a prose claim; include explicit repo/type/state where needed and quote multiword names. | Check representative included/excluded items and zero-value/unassigned cases; a filter is not an access boundary. | +| number/date/iteration comparison | > >= < <=; ranges; @current/@next where supported | Use date/iteration semantics of this surface, not issue-search syntax; check boundary and timezone behavior with known values. | Inspect edge dates and missing values; compare returned content IDs to expected fixtures/current known items. | +| view save / duplicate / reset / delete | saved shared changes; duplicate; discard unsaved; remove view | Save intended shared configuration explicitly; use a duplicate for experimentation and do not delete a view with active shared links casually. | Reopen as reader/new session and check persistent configuration and old navigation links. | +| API versus UI | current REST view endpoints; GraphQL view mutations; UI advanced controls | Discover actual supported request fields; REST creation and GraphQL view CRUD exist, so avoid blanket UI-only claims. | Read saved configuration through supported surface; use rendered verification for unsupported controls. | + +**Official sources:** [managing-your-views](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/managing-your-views), [filtering-projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects), [views](https://docs.github.com/en/rest/projects/views). + +**Pitfall:** Auto-add and auto-archive have narrower filter grammars than views. A valid view query cannot be copied blindly into automation. + +### `project-layout-controls` — Table and board nested controls + +**Capability IDs:** `projects-layout`, `projects-views`. + +**Applicability:** For every table or board view that is part of the project workflow. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| visible fields / column order / card fields | selected field IDs; ordering; shown/hidden fields | Show owner, status and the facts needed for this view; hide unused noise while preserving stored data. | Reload saved view and inspect expected header/card fields and order. | +| board column field / visible columns / limits | single-select or iteration field; displayed values; column limit where offered | Use Status for execution, iteration for planning; hide columns only with an alternate way to find excluded work. Column limits are planning signals, not enforcement. | Verify field ID and value-to-column mapping; inspect hidden/no-value work and displayed limits. | +| group by / vertical_group_by | supported field; no grouping | Group by responsible person, parent or priority for a real triage question; dragging across groups can edit underlying fields. | Read fields after an authorized drag and verify parent/assignee effects rather than assuming presentation-only movement. | +| slice by | supported field; no slicing | Use for fast per-team/repository focus; title/reviewers/linked PRs are not supported slice fields in current guide. | Check slice plus saved filter intersection and clear selection to recover full view. | +| sort primary/secondary / direction | field IDs; ascending/descending; no sorting | Use priority/date order when that drives work, manual order for explicit ranking; sorted boards disallow manual ordering within columns. | Read saved sorting and known equal-value tie examples; distinguish drag-to-column mutation from reorder. | +| field sums | count; selected numeric fields | Sum only compatible measures; points are estimates and mixed currencies/units must not be combined. | Recompute a representative group from actual item values and compare displayed aggregate. | + +**Official sources:** [customizing-the-table-layout](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-table-layout), [customizing-the-board-layout](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout). + +**Pitfall:** Grouping a multi-assignee issue can show it in several groups; avoid interpreting row/card counts as unique work without checking IDs. + +### `project-roadmap-controls` — Roadmap dates, markers and time windows + +**Capability IDs:** `projects-layout`, `projects-views`. + +**Applicability:** Projects with dates or iteration commitments; omit when no credible schedule exists. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| Date fields.Start date / Target date | chosen date or iteration field IDs | Bind to explicit planning fields, not guessed names; distinguish planned dates from actual completion evidence. | Read both mappings and compare bar boundaries to item values; inspect undated work separately. | +| Markers | iterations; milestone dates; item dates | Display only useful commitment/reference markers to avoid implying every date is a release deadline. | Inspect labels and actual source milestone/date values. | +| Zoom | Month; Quarter; Year | Choose the smallest window supporting the planning decision; preserve a useful shared overview. | Reload view and inspect expected time window and clipped/offscreen work. | +| roadmap drag / resize | changes start/target dates or selected iteration | Treat dragging as a real scheduling mutation; avoid accidental date changes during inspection. | Read changed field values and affected automation afterward; restore exact original values on accidental edit. | +| group / slice / sort / sums | supported fields and order; none | Apply the same data-integrity rules as other layouts; maintain access to ungrouped/undated items through a table view. | Compare item IDs across roadmap and table to explain omissions without inventing missing work. | + +**Official sources:** [customizing-the-roadmap-layout](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-roadmap-layout). + +**Pitfall:** A visually complete roadmap can exclude undated items; never equate visible bars with all project scope. + +### `project-event-workflows` — Event-driven Status transitions and issue closure + +**Capability IDs:** `projects-workflows`, `projects-field-values`. + +**Applicability:** Every Project, including apparently unconfigured Projects; defaults can already be active. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| workflow enabled / target field-option | per-workflow enabled flag; discovered Status option ID | Inventory every built-in event workflow before manual reconciliation; retain behavior only when transition matches the project's definition. | Read workflow trigger/enabled/target and verify a permitted representative transition. | +| item added → Status | disabled; intake/Todo option | Default new work to intake if untriaged; do not overwrite imported/customized existing work as a setup side effect. | Observe new item value, existing populated item and applicable field default together. | +| issue/PR closed → Done | enabled default; disabled; alternative supported option | Closed-not-planned is not successful delivery; decide whether one Done column intentionally includes cancellation or needs separate reporting. | Check reason and resulting Status for completed and not-planned examples; correct mismatches without reopening rejected work. | +| PR merged → Done | enabled default; disabled; supported option | Merge may be completion for library work, but deployed systems may still require QA/release. Define that boundary explicitly. | Read merged commit, item Status and downstream release/deployment evidence separately. | +| Status change → issue state | disabled; close issue on configured transition where supported | Enable only when board transitions truly authorize closing the issue; avoid circular/competing automation. | Read issue state/reason and both directions of workflow behavior; identify unexpected loops or last-writer wins. | +| reopen / ready / review-related events | discovered host workflows | Inventory actual available triggers and decide each applicability rather than assume all event workflows exist everywhere. | Read current workflow list/schema/UI and verify exact resulting option IDs after relevant event. | + +**Official sources:** [using-the-built-in-automations](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations). + +**Pitfall:** Initialization enables closed→Done and merged→Done. A successful Status write can be immediately changed by another workflow; verify after automation settles. + +### `project-auto-add` — Auto-add filters, backfill and execution identity + +**Capability IDs:** `projects-auto-add`, `projects-actions`. + +**Applicability:** For repository intake needing reliable Project membership; custom Actions only for unsupported native needs. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| auto-add.repository / filter | per-repository selector; is/label/reason/assignee/no subset | Scope to intended repository and item kind; exclude automation noise deliberately. Validate native grammar independently of view query. | Read enabled workflow and exact filter; inspect a matching and a nonmatching permitted item. | +| filter values / negation | is:open/closed/merged/draft/issue/pr; label names; reason; assignee; no:label/assignee/reason | Use supported values and negation (no does not support negation); quote labels. Do not invent arbitrary custom-field auto-add filters. | Preview/save and confirm actual matching content IDs; compare available grammar with current official guide. | +| workflow count / duplicate | plan-dependent 1/5/20 limits currently documented; unique filters | Reuse existing workflows; Free has one, Pro/Team five, Enterprise twenty in current guide. Record plan gate rather than adding a token workaround silently. | Read actual count and entitlement; verify each repository selector and duplicate filter. | +| existing backlog | explicit paginated backfill; future matching creates/updates | Enabling auto-add does not backfill existing matches; reconcile backlog as a separate authorized operation preserving item values. | List source issues/PRs, compare content IDs to active/archive membership and add only missing items. | +| custom Action identity | installation token or authorized user credential; least Project/repository permissions | Repository GITHUB_TOKEN generally cannot stand in for owner Project write access; prefer a scoped App only when native workflow is insufficient. | Inspect workflow/token permissions without exposing secrets; verify membership and typed field values after execution. | + +**Official sources:** [adding-items-automatically](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically), [automating-projects-using-actions](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions). + +**Pitfall:** Creating a dummy issue to test automation sends real notifications and is not a read-only check; use existing evidence or an explicitly authorized representative fixture. + +### `project-auto-archive` — Retention filters, existing matches and restoration + +**Capability IDs:** `projects-auto-archive`, `projects-items`. + +**Applicability:** Projects with a defined retention policy; keep disabled if release/QA remains open after issue closure. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| auto-archive.enabled / filter | disabled; enabled; is/reason/updated only | Prefer disabled until retention criteria are agreed; custom Status is not supported in this automation grammar. | Read exact saved filter and enabled state; enumerate matching existing items before enable. | +| retention clock | updated relative-date expression supported by current surface | Do not call last-updated age closed-age; comments/labels/assignees/milestones/field changes can reset update time. | Test known boundary examples in this automation surface; record literal filter rather than translating comparator from memory. | +| existing matches | immediately eligible after enable, potentially delayed processing | Inventory affected IDs/values first; unlike auto-add, auto-archive also processes old matching items. | Compare before/after active and archive IDs and counts until processing settles. | +| archive versus capacity | recoverable archive; Project membership deletion | Archive keeps custom data and supports restore but still counts toward current 50,000 combined item limit. Deletion needs a separate retention decision. | Read archive entries and restored values; verify underlying issue remains unchanged. | +| recovery | disable workflow; restore selected archived item IDs | Stop faulty automation first, restore exact affected items and values, then correct filter before re-enabling. | Re-read saved filter and representative restored fields; inspect re-archival to detect remaining bad criteria. | + +**Official sources:** [archiving-items-automatically](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically), [archiving-items-from-your-project](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/archiving-items-from-your-project). + +**Pitfall:** Historical Community reports describe invalid filters partly executing; do not present that old bug as current. Validate native grammar and preserve a restoration inventory. + +**Community observation** (not current-platform proof): [36466](https://github.com/orgs/community/discussions/36466) — Historical reports include unsupported Status filters, unexpected archive effects and confusing recovery. **Official/current check:** Current guide restricts filters to is/reason/updated and documents preservation/restoration. Use those verified limits rather than obsolete 1,200-item claims. + +**Community observation** (not current-platform proof): [17085](https://github.com/orgs/community/discussions/17085) — Users ask for closed-date retention and suggest updated-based workarounds. **Official/current check:** Updated and closed time are different clocks; do not repeat a community workaround as exact closure retention. + +### `project-insights-and-updates` — Charts, historical interpretation and project health + +**Capability IDs:** `projects-insights`, `projects-updates`. + +**Applicability:** Projects where someone consumes the report; do not create decorative metrics or post updates without authorization. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| chart filter / layout / X-axis / group | supported chart types; selected category field; Time for historical chart; group or None | Name the actual decision and denominator; chart filters are their own saved configuration, not inherited proof from an open view. | Open saved chart and compare included content IDs/known sample; verify reader access. | +| Y-axis / numeric field | count; sum; average; minimum; maximum; selected numeric field | Count unique work or aggregate compatible numeric units; never equate estimate sums with actual labor or outcome value. | Recompute sample groups including missing/zero values and inspect saved aggregate and field mapping. | +| historical chart state / retention | Time axis; Open/Completed/Closed pull requests/Not planned | Historical charts track native issue/PR states, not arbitrary local Status history. Insights does not track archived or deleted items, so retention affects reporting. | Compare known state transitions and active/archive membership; do not report archive-filtered history as all-time delivery. | +| status update.status | ON_TRACK; AT_RISK; OFF_TRACK; INACTIVE; COMPLETE | Set overall project health from evidence, separately from issue open/closed and item Status; meaningful bad news must remain visible. | Read saved update ID/status and chronological update history. | +| status update.startDate / targetDate / body | dates; Markdown message; prior values as form defaults | Include reason, evidence and next decision; inspect inherited previous dates rather than republish stale commitments. Append meaningful updates, edit only corrections. | Read resulting dates/body and prior entries; templates cannot receive updates and subscriptions can notify readers. | + +**Official sources:** [configuring-charts](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/configuring-charts), [about-insights-for-projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/about-insights-for-projects), [sharing-project-updates](https://docs.github.com/en/issues/planning-and-tracking-with-projects/sharing-project-updates), [projects](https://docs.github.com/en/graphql/reference/projects). + +**Pitfall:** Chart controls may require UI even when field/view APIs exist. Do not claim chart configuration from project item listing or API capability indexing. + +### `project-copy-template` — Template/copy fidelity and initial conditions + +**Capability IDs:** `projects-templates`, `projects-lifecycle`, `projects-access`, `projects-workflows`. + +**Applicability:** Repeated project patterns; do not create a template where one Project already suffices. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| copy owner / title / draft selection | organization/user owner; new title; copy draft issues checkbox | Choose destination deliberately and copy example drafts only when useful; inspect template contents for confidential planning text. | Read new owner/title/ID and copied draft bodies/values. | +| copied configuration | views; custom fields; draft field values; workflows except auto-add; insights | Treat copied settings as a starting point, not desired final state; inherited automation can immediately affect new work. | Compare each copied component and field-option mappings independently with source snapshot. | +| not copied | original issue/PR items; collaborators; team/repository links; auto-add workflows | Recreate only applicable omitted relationships and intake workflow under authorized access scope; backfill existing work separately. | Read membership, grants, links and enabled auto-add on destination; source configuration proves nothing about destination completion. | +| organization template / recommendations | mark/unmark template; recommended template list | Curate only usable templates with documented fields and workflow expectations; avoid promoting an unverified personal experiment. | Read template status and organization recommendation visibility as intended member. | + +**Official sources:** [copying-an-existing-project](https://docs.github.com/en/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project), [managing-project-templates-in-your-organization](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-project-templates-in-your-organization). + +**Pitfall:** Copied field/option IDs are destination identities; never apply source item/field IDs to the new Project by name alone. + +### `discussion-categories-and-forms` — Discussion purposes, category formats and intake + +**Capability IDs:** `discussions-lifecycle`, `discussions-organization`. + +**Applicability:** Public/community projects or genuinely cross-repository decisions; small internal work can stay in issues. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| repository versus organization source | repository Discussions; designated organization source repository | Keep repo-specific support near code; organization-wide discussions need explicit source-repository governance and access review. | Read enabled surface, source repository and moderator roles; inspect audience before publishing. | +| category.name / emoji / description / format | open-ended; Q&A; announcement; Polls where offered | Use Q&A for answerable support, open-ended for design, announcement for maintainer-origin updates. Inspect current Polls control rather than treating docs prose inconsistencies as universal support. | Read category IDs and actual format/answerability; announcement posting has stricter permissions than replies. | +| section membership / category rename/delete | one section per category; rename in place; Delete & Move target | Reuse category IDs; preserve navigation and discussion history. Deleting a category moves discussions to a chosen existing category. | Compare IDs/format and counts, destination and old shared links; inspect forms after slug changes. | +| category form path / top-level schema | .github/DISCUSSION_TEMPLATE/.yml; body/labels/title | Match category slug exactly; use supported controls, not issue-form assignee/projects/type top-level keys. | Open actual category composer on default branch and validate required/non-Markdown fields without posting. | +| labels / pins | existing repository labels; global/category pins; four per scope | Pin actionable entry points with a moderator/response owner; avoid a duplicate label taxonomy. | Read pin location, appearance and rendered routing links; global pins and category pins are distinct. | +| category movement / poll intake | recategorize eligible discussion; Polls category cannot move to/from | Select a valid format before intake; do not promise migration of a normal topic into a poll by changing category. | Read current category/format and eligible destinations; preserve original topic links. | + +**Official sources:** [managing-categories-for-discussions](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions), [syntax-for-discussion-category-forms](https://docs.github.com/en/discussions/managing-discussions-for-your-community/syntax-for-discussion-category-forms), [about-discussions](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/about-discussions), [managing-discussions](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions). + +**Pitfall:** Enabling Discussions creates a surface, not a staffed support process. Define who monitors unanswered questions and how decisions become tracked work. + +### `discussion-response-and-moderation` — Answers, polls, conversions and moderation history + +**Capability IDs:** `discussions-lifecycle`, `discussions-answers`. + +**Applicability:** Every authorized discussion interaction; high-impact moderation requires exact task scope. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| answer selection | mark answer; unmark; Q&A eligible comment | Mark a correct reusable solution with supporting explanation; an accepted answer is not proof a linked implementation shipped. | Read answer ID/body/author and category answerability; retain unresolved follow-up. | +| reply hierarchy / poll vote | replyToId; pollOptionId; viewerCanVote/viewerHasVoted | Respond to the right question; inspect existing viewer vote and options. Voting is personal participation, not setup. | Read reply parent and viewer vote state/counts; never cast a vote merely to test a feature. | +| poll content | discussion title/body; question; at least two options in Polls composer | Choose clear distinct options and explain how feedback informs a decision; do not invent supported close dates, anonymity or binding voting rules. | Preview composer and read poll question/options/order after an authorized creation; creation API support needs its own discovery. | +| lock / close / reason / allow reactions | lock/unlock; close/reopen; reason supported by host; reaction toggle | Prefer explanation and narrow moderation; lock restricts interaction while preserving content. Do not silence technical disagreement. | Read locked/closed/reason and rendered notice; confirm permitted moderators and reactions separately. | +| issue → discussion conversion | category ID; original issue and resulting discussion IDs | Use only when conversation rather than committed work is appropriate; explain routing when messaging is authorized and snapshot original history first. | Read both objects, canonical links, authors, all comment/reaction pages and issue closure/lock behavior; reconcile timeout before retry. | +| create issue from discussion | linked new issue in responsible repository | Track accepted actionable work while retaining the discussion decision trail; do not assume participants/subscriptions or every metadata field move. | Read both cross-links and preserve original authors and decision context. | +| transfer discussion | eligible same-owner destination repository or organization source repo | Destination creation permission is required; private-to-public and announcement transfers are unsupported. Review audience before any allowed transfer. | Read destination repository/category/access and retained comments/links; reconcile original and returned discussion IDs. | +| minimize / delete | classification and restore; irreversible deletion | Use least destructive appropriate moderation with reason; deletion is not a substitute for marking superseded information. | Read minimized state or exact deleted ID and preserve required moderation rationale without redistributing sensitive content. | + +**Official sources:** [moderating-discussions](https://docs.github.com/en/discussions/managing-discussions-for-your-community/moderating-discussions), [participating-in-a-discussion](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion), [managing-discussions](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions), [discussions](https://docs.github.com/en/graphql/reference/discussions). + +**Pitfall:** Community conversion threads contain conflicting claims and historical incidents. Current official conversion flow exists; do not repeat a claim that conversion is universally unavailable. + +**Community observation** (not current-platform proof): [152627](https://github.com/orgs/community/discussions/152627) — February 2025 conversion-to-404 incident was reported fixed by GitHub staff in March 2025. **Official/current check:** Current moderation docs describe conversion; verify each resulting object and retained comments rather than treat this as a present platform outage. + +**Community observation** (not current-platform proof): [3197](https://github.com/orgs/community/discussions/3197) — Maintainers describe user confusion about converted issues becoming closed/locked and request clearer traceability. **Official/current check:** Use current official flow plus actual post-conversion reads; communicate destination and preserve the old decision trail when authorized. + +**Community observation** (not current-platform proof): [2952](https://github.com/orgs/community/discussions/2952) — Long history includes contradictory conversion advice and assumptions about participant/watch preservation. **Official/current check:** Official current docs, not a recent unverified forum reply, determine supported flow; inspect destination authors/comments/access independently. + +### `wiki-publication-history` — Wiki content, publication, permissions and discoverability + +**Capability IDs:** `wiki-pages`, `wiki-navigation`. + +**Applicability:** Projects needing a Wiki; separate site/Pages only when user need justifies it. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| enabled / editing audience | has_wiki; collaborators-only; public editing on eligible public repos | Default to repository writers for project policy/docs; public editing is a governance choice, not a completeness requirement. | Read repository flag and actual Wiki access control; public/private visibility follows repository audience. | +| source repository / publication ref | OWNER/REPO.wiki.git; actual wiki branch and SHA | Clone/fetch Wiki separately; preserve other contributors' commits and compare source wiki/ files before publishing. | Compare remote before/after commit SHA and rendered pages; source files alone are not proof of publication. | +| page title / filename / markup | supported file extension; stable page slug; relative links | Keep page naming stable and explicit; avoid filesystem case collisions and check renamed-page backlinks. | Render pages and follow links on GitHub, inspect separate Wiki Git log and page history. | +| navigation | Home; _Sidebar.; _Footer. | Provide install/use/config/troubleshooting navigation based on actual project scope; footer can carry source/version context. | Open every navigation destination, heading anchor and asset as intended reader. | +| change message / correction / recovery | meaningful commit; revert commit; merge remote changes | Record what changed and why; recover with a new corrective commit rather than force-overwrite others' Wiki work. | Read remote ancestry and page revision, compare preserved unrelated pages and restored content. | +| indexing / size constraints | search-engine eligibility; current soft file limit | Do not promise search-engine discovery for a small Wiki; current guide requires 500 stars and restricted public editing, with soft 5,000-file limit. | Inspect actual audience/search behavior; consider Pages only if indexing or size is an actual requirement. | + +**Official sources:** [about-wikis](https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis), [adding-or-editing-wiki-pages](https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages), [creating-a-footer-or-sidebar-for-your-wiki](https://docs.github.com/en/communities/documenting-your-project-with-wikis/creating-a-footer-or-sidebar-for-your-wiki), [viewing-a-wikis-history-of-changes](https://docs.github.com/en/communities/documenting-your-project-with-wikis/viewing-a-wikis-history-of-changes). + +**Pitfall:** A main-repository pull request does not review/enforce separate Wiki pushes automatically; document the publication check and do not conflate branches. + +### `search-and-discovery` — Search surfaces, query semantics and completeness + +**Capability IDs:** `search-cross-github`, `search-code`, `search-issues-prs`, `issue-saved-views`. + +**Applicability:** Discovery before every duplicate-sensitive operation; authoritative owning endpoints for final facts. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| code search surface | browser Code Search; REST legacy code search; local rg/git grep | Choose syntax for the actual engine; browser Boolean/regex/symbol features do not imply equivalent REST support. Use local Git for exact nondefault-revision inspection. | Record engine, repository and revision; retrieve matched file at immutable SHA before acting. | +| modern code query | repo/org/user; path/language/symbol/content; quoted strings; /regex/; AND/OR/NOT | Scope narrowly and escape literals correctly; a bare term can match path or content. Inspect actual engine limits before assuming exhaustive indexing. | Reproduce match locally at known revision and inspect excluded files/ref; empty search is not absence proof. | +| issue/PR query | is:issue/is:pr; state/reason; author/assignee; review/review-requested; linked; dates | Use explicit type and repository scope, native review qualifiers for review queues and dates for bounded investigations. | Retrieve every consequential issue/PR by ID and paginate authoritative collection for completeness. | +| Discussion query | repo/org; in:title/body/comments; category; is:answered/unanswered where supported; dates | Search existing answers/decisions before creating a new topic; category and issue-search grammars differ. | Open original discussion, current answer and full relevant replies; check date of claim and superseding staff response. | +| REST search result limits | per_page/page; incomplete_results; capped result windows | Treat results as indexed discovery; split disjoint date/repository ranges and reconcile total counts when cap or incompleteness appears. | Inspect incomplete_results and available pages, deduplicate IDs; use owning lists/GraphQL/Git if a full inventory is required. | +| saved queries / issue views | name/query; personal versus shared saved surface | Save useful triage/review queries with explicit audience; a personal saved search is not a shared Project view. | Reload as same viewer, inspect exact query and validate known expected item membership. | + +**Official sources:** [understanding-github-code-search-syntax](https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax), [searching-code](https://docs.github.com/en/search-github/searching-on-github/searching-code), [searching-issues-and-pull-requests](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests), [searching-discussions](https://docs.github.com/en/search-github/searching-on-github/searching-discussions), [search](https://docs.github.com/en/rest/search/search). + +**Pitfall:** Masked private objects, indexing lag, engine-specific limits and search caps mean zero results cannot establish absence or permission. Never use obsolete legacy limits as modern Code Search limits. + +### `ruleset-targets-and-insights` — Ruleset scope, bypass and evaluation evidence + +**Capability IDs:** `repository-rulesets`, `ruleset-insights`. + +**Applicability:** Every repository audit; enforce only with repository policy, eligible plan and a tested contribution path. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| target / conditions | branch; tag; push; ref_name include/exclude; repository targeting at owner scope | Inspect inherited rules and select exact intended ref patterns, including default-branch symbolic selectors when supported; exclusion can silently remove protection. | Read ruleset IDs/source/enforcement plus effective rules for a representative matching and excluded ref. | +| enforcement | disabled; active; evaluate on eligible Enterprise plans | Disabled protects nothing; evaluate observes without blocking and needs a plan check. Preview broad new policy in evaluate where available before enforcement. | Read saved mode and rule-suite results; do not report evaluate as protected. | +| bypass_actors.actor_type / actor_id / bypass_mode | eligible role/team/App IDs; always; pull_request; exempt where supported | Preserve existing authorized exceptions and choose the narrowest useful mode; exempt does not run rules or create a bypass audit entry. | Read actor identity/mode and confirm no accidental broad role exception or App removal. | +| rule suite filters | ref; actor_name; rule_suite_result; time_period; pass/fail/bypass | Inspect operational failures and bypass use, not merely policy JSON. Check current endpoint filter enums and retention before querying. | Read suite ID, actor, ref, evaluation time and per-rule result; distinguish evaluate failures from blocked writes. | +| ruleset history / import-export | ruleset ID/version; export JSON; reviewed imported settings | Preserve baseline/version and review imported selectors/actor IDs; source owner IDs do not automatically mean destination identities. | Compare saved ruleset history, exact imported payload and effective target rules; revert with a corrective version. | + +**Official sources:** [rules](https://docs.github.com/en/rest/repos/rules), [managing-rulesets-for-a-repository](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository). + +**Pitfall:** Multiple rulesets can apply together with classic protection. A clear ruleset read does not prove the actor had no bypass or that another inherited rule did not apply. + +### `branch-and-merge-gates` — Effective review/check requirements and compatible merge behavior + +**Capability IDs:** `branch-protection`, `repository-merge-policy`. + +**Applicability:** All protected default/release branches; single-maintainer workflows must not require impossible self-approval. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| required_pull_request_reviews | required_approving_review_count; dismiss_stale_reviews; require_code_owner_reviews; require_last_push_approval | Choose actual independent reviewer availability; stale/last-push rules must match team workflow. Zero peer approval may be intentional with required checks. | Read effective rules and representative current-head review states; inspect reviewer eligibility and outstanding changes requests. | +| review dismissal / bypass restrictions | dismissal_restrictions; bypass_pull_request_allowances; users/teams/apps | Retain narrowly justified emergency routes; never add the running agent as bypass to complete setup. | Compare actor IDs and enabled restrictions, and inspect subsequent dismissal/bypass evidence. | +| required_status_checks | strict; checks context/app_id; legacy contexts | Bind stable check names to expected Apps where supported; strict requires up-to-date branch, queue needs merge_group CI support. | Compare rules to actual check-run names/App IDs on PR and merge-group SHAs; skipped or pending is not passing. | +| enforce_admins / restrictions | admin enforcement boolean; allowed users/teams/apps; block_creations where supported | Decide administrator policy deliberately; push allowlists are not equivalent to review bypass. Preserve existing emergency ownership. | Read protection and ruleset bypass together; verify effective actor rights without making a disruptive test push. | +| history / signatures / deletion | require_linear_history; required_signatures; allow_force_pushes; allow_deletions; lock_branch | Match legitimate release workflow and retain no-force/no-delete for protected history unless specifically justified. Locked branches and fork-sync settings need separate intent. | Read all flags and branch status; verify merge methods remain compatible with linear history. | +| conversation/deployment/security gates | required_conversation_resolution; required deployments; required code/secret/quality rules where supported | Require gates only when their producer/workflow exists and can complete; determine exact environment/tool thresholds from the schema and project policy. | Read named environments/tool thresholds and current-head gate results; do not disable failing gates as recovery. | +| repository merge flags | allow_merge_commit/squash/rebase; allow_auto_merge; allow_update_branch; delete_branch_on_merge | Keep methods compatible with effective rules; auto-update visibility is not auto-merge or branch freshness. Clean only disposable merged heads. | Read repository flags and PR merge box/effective rule methods; inspect final merge topology and branch cleanup. | +| merge queue parameters | check timeout; minimum/maximum group size; grouping strategy; merge method where offered | Use only when contention justifies it; inspect current host schema for exact names/enums and ensure queue check triggers exist. | Read queue rule payload and representative merge_group results, queue removal reasons and merged SHA. | + +**Official sources:** [branch-protection](https://docs.github.com/en/rest/branches/branch-protection), [available-rules-for-rulesets](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets), [repos](https://docs.github.com/en/rest/repos/repos). + +**Pitfall:** Classic protection update endpoints can replace nested objects and clear omitted policy. Snapshot and merge intended changes; one protected-branch endpoint cannot establish full ruleset enforcement. + +### `notification-and-activity-state` — Personal watch choices, inbox triage and feed limitations + +**Capability IDs:** `notifications-watch`, `notifications-inbox`, `activity-events`. + +**Applicability:** Only the authenticated user’s authorized personal preferences; repository setup does not authorize following/watching or marking inbox items done. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| repository subscription | subscribed; ignored; custom event selection through supported UI | Preserve user preference; watch only requested event categories and distinguish ignored from simply not subscribed. Stars bookmark rather than subscribe. | Read subscription as same user plus UI custom categories; subscribers_count differs from legacy watchers_count/stargazers_count. | +| watcher list restrictions | admin/collaborator-only listing; deprecated user watched-repo endpoint | Current docs describe July 2026 restrictions and deprecated endpoint empty responses; do not infer nobody watches from an empty legacy list. | Check endpoint status/auth identity and direct repository subscription state. | +| inbox query | all; participating; since; before; repository; reason; UI custom filters | Choose smallest needed read window and paginate; inspect reason such as mention/review_request/assign rather than treating all notifications equally. | Read thread ID/subject/reason/unread/last_read_at and canonical owning object. | +| triage operation | read/unread; done; saved; unsubscribe | Read acknowledges visibility; done hides completed notifications, save retains attention, unsubscribe changes future delivery. Apply only explicitly intended selected threads. | Re-read selected thread and UI saved/done state; compare unaffected threads, and reconcile ambiguous writes before retry. | +| retention / subscription recovery | done retained five months; saved indefinitely; resubscribe | Inbox is not permanent project history; unsaving old notifications can make them disappear. Unsubscribe can be superseded by later mention or review request. | Preserve canonical issue/PR URLs for durable context and verify subscription after authorized recovery. | +| authentication / polling | classic PAT notifications/repo scopes per current notification docs; Last-Modified/ETag; X-Poll-Interval | Do not assume fine-grained/App tokens support notification endpoints. Respect server polling interval and conditional requests. | Inspect authentication compatibility and 304 semantics without exposing credentials; permission failure remains unknown state. | +| activity feed window | up to 300 events; past 30 days; latency 30 seconds to six hours | Use feeds for discovery, not real-time completion or complete audit history. Prefer owning issue/PR/commit state for consequential facts. | Record event ID/time and owning object evidence; honor ETag and X-Poll-Interval. | + +**Official sources:** [watching](https://docs.github.com/en/rest/activity/watching), [notifications](https://docs.github.com/en/rest/activity/notifications), [events](https://docs.github.com/en/rest/activity/events), [managing-notifications-from-your-inbox](https://docs.github.com/en/subscriptions-and-notifications/how-tos/viewing-and-triaging-notifications/managing-notifications-from-your-inbox). + +**Pitfall:** Personal inbox Done is unrelated to issue closure or Project Done; never complete work by clearing its notification. + +### `community-personal-replies-and-moderation` — Reusable drafts, reversible hiding and temporary interaction limits + +**Capability IDs:** `community-saved-replies`, `community-comment-minimization`, `community-interaction-limits`. + +**Applicability:** Community repositories with real support/moderation needs; personal replies and broad restrictions require explicit scope. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| saved reply title / body / selection | personal title; Markdown body; create/edit/delete; insert and customize | Store generic accurate routing text and customize to the actual report; inserting a draft does not authorize sending. Current documented cap is 100 replies. | Reload personal reply settings and preview inserted draft; do not post a test reply. | +| minimizeComment.subjectId / classifier | ABUSE; OFF_TOPIC; OUTDATED; RESOLVED; DUPLICATE; SPAM | Pick a justified classification and preserve the discussion; disagreement or inconvenient findings are not abuse. Check actor/type eligibility first. | Read viewerCanMinimize/isMinimized/minimizedReason plus original comment link and rendered visibility. | +| unminimize / deletion distinction | restore hidden comment; delete separately authorized content | Use restoration when hiding was mistaken; minimized content still exists and cannot be treated as erased sensitive data. | Read restored state and inspect full thread; handle actual secret exposure through the applicable security process. | +| interaction scope / inheritance | repository; organization public repositories; user-owned public repositories | Choose the narrowest incident scope and inspect inherited limits before overriding; broad owner controls affect uninvolved contributors. | Read effective repo and owner restrictions and record actor, scope and expiry. | +| interaction limit / expiry | existing_users; contributors_only; collaborators_only; one_day/three_days/one_week/one_month/six_months | Prefer the shortest effective restriction consistent with authorized moderation; do not silently block ordinary reporters for routine setup. | Read limit and expires_at from owning endpoint and inspect class semantics; never validate by posting disruption. | +| remove / expire / blocked users | remove temporary limit; automatic expiry; separate account blocking | Restore normal participation after incident and keep rationale; removing a repository limit does not remove an inherited owner restriction. | Re-read repo/owner limit state and separate block lists where authorized; distinguish expired from inaccessible. | + +**Official sources:** [about-saved-replies](https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/about-saved-replies), [issues](https://docs.github.com/en/graphql/reference/issues), [repos](https://docs.github.com/en/rest/interactions/repos), [orgs](https://docs.github.com/en/rest/interactions/orgs), [user](https://docs.github.com/en/rest/interactions/user). + +**Pitfall:** No stable saved-reply CRUD API is established here; inspect current UI. Comment minimization, conversation lock, interaction limit and account blocking are separate controls. + +### `profile-personal-presence` — Personal availability, bookmarks, featured work and following + +**Capability IDs:** `profile-status`, `profile-star-lists`, `profile-content-pins`, `profile-follow-organizations`. + +**Applicability:** Personal-account actions only when the user requests them; not mandatory repository setup. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| status content / scope | emoji; message; organizationId or public null | Preserve user wording and audience; avoid publishing private project details as status. Organization-scoped status is not an organization announcement. | Read emoji/message/organization and inspect rendering as intended audience. | +| status availability / expiration | limitedAvailability boolean; expiresAt timestamp; clear status | Set busy only for requested availability; use intended timezone converted to exact expiry rather than leave a temporary absence indefinitely. | Read indicatesLimitedAvailability/expiresAt and verify removal/expiry; personal status is unrelated to work-item Status. | +| star list name / description / membership | create/update/delete list; repository membership IDs; starring independently | Keep bookmark organization separate from follow/watch; preserve unrelated list memberships in updateUserListsForItem replacement operations. | Read list ID/content and repository star state separately; list deletion is not repository deletion. | +| profile README / pins | USER/USER README; up to six repositories/gists combined; pin order | Publish only user-approved profile content and intended public featured work; use valid account-named repository for README. | Read immutable README commit and public rendered profile/pin order; preserve existing selections. | +| contribution/profile visibility | public/private profile; private contribution display; achievements/activity options where offered | Treat as personal privacy choice; anonymized private activity is not permission to reveal private repository names. | Inspect profile as owner and public viewer; verify current UI rather than assume profile REST edits cover these settings. | +| organization following | follow/unfollow org; viewerIsFollowing | Follow only requested organizations; preview feature supplies public activity, not membership or repository access. | Read following relation as same viewer and inspect dashboard; no requirement to generate activity for a test. | + +**Official sources:** [users](https://docs.github.com/en/graphql/reference/users), [personal-profile](https://docs.github.com/en/account-and-profile/concepts/personal-profile), [pinning-items-to-your-profile](https://docs.github.com/en/account-and-profile/how-tos/profile-customization/pinning-items-to-your-profile), [following-organizations](https://docs.github.com/en/get-started/exploring-projects-on-github/following-organizations). + +**Pitfall:** Personal starring, following, availability and profile changes can reveal preferences and should not be silently bundled with a repository audit. + +### `sponsors-listing-onboarding` — Sponsors identity, eligibility and public listing + +**Capability IDs:** `sponsors-listing`. + +**Applicability:** Only an owner requesting fundraising; a public/open-source repository does not establish Sponsors eligibility or authorize enrollment. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| listing identity | authenticated personal account; sponsorableLogin organization | Select the actual beneficiary, authority and supported region/fiscal-host route; do not create an organization listing for a similarly named repository owner by assumption. | Read listing/account IDs, owner/admin role and enrollment/approval state. | +| profile fields / featured opt-in | bio; introduction; featured work; matching/featured preferences where eligible | Prepare accurate public purpose and benefits; owner decides marketing consent and funding language. | Read rendered listing and saved preferences; unpublished/draft differs from publicly approved listing. | +| onboarding personal/legal fields | residence; billing/tax/provider verification; fiscal-host details | Let account owner handle required legal/banking attestations and credentials; never infer those from GitHub profile geography or commit email. | Report exact outstanding setup gate without exposing tax/bank data; listing mutation alone is not completed onboarding. | +| publication / funding link | approved listing; draft setup; FUNDING.yml sponsor button | Add funding links only to real intended supported beneficiaries; distinguish external funding URLs from an active GitHub Sponsors listing. | Open public listing and repository sponsor target as intended reader; retain owner decision about platform selection. | + +**Official sources:** [setting-up-github-sponsors-for-your-personal-account](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account), [setting-up-github-sponsors-for-your-organization](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-organization), [sponsors](https://docs.github.com/en/graphql/reference/sponsors). + +**Pitfall:** Enrollment/profile setup does not authorize a payment, bank change, tier publication or newsletter. + +### `sponsors-tier-configuration` — Amounts, recurrence, publication and benefit access + +**Capability IDs:** `sponsors-tiers`. + +**Applicability:** Approved Sponsors owner with a concrete benefit/price policy; tier creation is optional. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| amount / recurrence | amount in US dollars; isRecurring boolean; documented API range 1–12000 | Choose explicitly approved price and monthly versus one-time meaning; never confuse dollars with cents or interpret isRecurring as an arbitrary billing scheduler. | Read amount/currency/recurrence from returned tier and actual checkout; current API schema defines valid range. | +| description / welcome message | public perks; post-payment instructions | Promise only deliverable benefits, avoid private credentials in broad welcome text, and document entitlement expectations. | Preview public and purchaser-facing text and check instructions/links. | +| publish / retire | draft by default in createSponsorsTier; publish true/false; retire tier | Review concrete tier before publication. Published prices cannot be edited; retire and create a new tier for a new price. | Read published/retired state and remaining active sponsorships; retirement does not cancel existing sponsors. | +| repository benefit | organization-owned private repository ID/name; no repository benefit | Adding a benefit grants read-only access to sponsors and requires explicit access authorization; do not attach source or customer data accidentally. | Verify exact repository owner/visibility and tier benefit, plus current entitlement policy without creating a paid test sponsorship. | +| tier limits | up to ten published one-time; up to ten published monthly | Reuse meaningful existing offers rather than create redundant tiers; keep retired options visible in historical reporting. | Count active published tiers by recurrence and inspect retired-tier subscribers separately. | + +**Official sources:** [managing-your-sponsorship-tiers](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers), [sponsors](https://docs.github.com/en/graphql/reference/sponsors). + +**Pitfall:** Existing sponsors can remain on a retired tier. Do not delete/replace historical tier identity to make the public price list look tidy. + +### `sponsors-commitments-and-preferences` — Payer intent, bulk partial outcomes and sponsorship privacy + +**Capability IDs:** `sponsors-transactions`, `sponsors-preferences`. + +**Applicability:** Only explicit sponsorship instructions naming payer, beneficiary, amount, recurrence and intended visibility. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| sponsorship payer / beneficiary / tier | sponsorId/login; sponsorableId/login; tierId or allowed custom amount | Resolve exact accounts and a current valid offer; do not charge a personal account when organization funding was intended. | Read account/tier IDs and current sponsorship before mutation; checkout fees/tax/payment details require current verification. | +| one-time / recurring commitment | approved amount; recurrence; payment/renewal state | Repository setup and recommendation do not authorize spending. Match the explicitly requested commitment and inspect immediate/prorated effects before submission. | Read resulting amount, recurrence, payer, beneficiary and active/pending status; financial mutation timeout requires reconcile-before-retry. | +| bulk sponsorship results | per-beneficiary input; individual success/error results | Treat batch as potentially partial, never all-or-nothing; preserve successful commitments and retry only missing authorized ones. | Read every beneficiary relationship and error individually, compare total approved versus committed amounts. | +| change / cancel | upgrade; downgrade; cancelSponsorship; retired tier retained | Apply requested effective change with current billing semantics; cancellation does not prove refund or immediate entitlement end. | Read resulting tier/state and billing effective date; preserve history of previous commitments. | +| privacy / email preferences | PUBLIC; PRIVATE where current schema supports; receive email updates boolean | Make public identity and update consent deliberate personal choices; private sponsorship does not mean beneficiary sees no information. | Read actual sponsorship preference fields and public appearance; never publish identity merely to test visibility. | +| connected platform | Patreon linkage or documented connected sponsorability preference | Connect only an explicitly selected owned account and inspect permission scope; linkage does not create a paid sponsorship. | Read linkage/preference state and retain external-provider limitations; do not claim payment from a connected badge. | + +**Official sources:** [sponsors](https://docs.github.com/en/graphql/reference/sponsors), [about-sponsorships-fees-and-taxes](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/about-sponsorships-fees-and-taxes), [managing-your-sponsorship](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship). + +**Pitfall:** Current billing/provider terms are changeable. Read the actual checkout/account flow before any authorized commitment and keep sensitive financial data out of public issues. + +### `sponsors-reporting-and-campaigns` — Sponsor history, exports and referral metadata + +**Capability IDs:** `sponsors-analytics`. + +**Applicability:** Sponsors owners requesting financial/activity reporting; exports contain personal/financial information. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| sponsor filters / activity window | active or retired tiers; date range; new/change/cancellation activity | Separate active sponsors, past sponsors, payments and payouts; distinguish cumulative commitment from settled receipts. | Read account/timezone/date/currency and reconcile paginated source rows to displayed totals. | +| export format / date / delivery | CSV; JSON; supported date window and delivery destination | Export only requested scope to intended private destination; initiating emailed export is an external delivery action requiring authorization. | Verify requested export fields/window, actual received file and row totals; record pending versus completed export. | +| referral metadata syntax | metadata_KEY=value; alphanumeric/dash/underscore; at most ten pairs | Use non-sensitive short campaign codes, never email addresses or secret identifiers in public URLs. Whitespace/invalid characters can produce 404. | Check resulting URL and export metadata key after permitted transaction; keys truncate at 25 chars and values at 100 per current guide. | +| lifetime / revenue interpretation | authorized lifetime value; currency; transaction/payment status | Use financial definitions explicitly; sponsorship totals and estimated next payout are not recognized revenue or a tax report. | Reconcile refunds/fees/date window with account dashboard and payout receipts when applicable. | + +**Official sources:** [viewing-your-sponsors-and-sponsorships](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/viewing-your-sponsors-and-sponsorships), [sponsors](https://docs.github.com/en/graphql/reference/sponsors). + +**Pitfall:** Export access does not authorize publishing sponsor identities or payment details in a public Wiki/Project. + +### `sponsors-newsletters-and-delivery` — Recipient scope, sender identity and publish boundary + +**Capability IDs:** `sponsors-newsletters`. + +**Applicability:** Only explicit instructions to contact sponsors; preparing a draft alone does not authorize sending. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| recipients | opted-in sponsors; all eligible tiers; selected tier IDs | Match requested audience and current opt-in; do not bypass consent with copied sponsor email lists. | Read selected tier recipients and current eligibility before publish; distinguish tier names from stable IDs. | +| subject / body / sender | draft subject/message; personal primary email or noreply based on privacy; organization noreply | Prepare concrete reviewed content and working links; note personal sender exposure when email privacy is off. | Preview sender/subject/body/links and target account in dashboard without sending test mail. | +| draft versus Publish | unsent draft; published email update | Publish sends mail and needs an explicit messaging instruction; repository release/setup authority alone is insufficient. | Read publication/sent history and exact target scope; absence of send evidence must remain draft/unknown. | +| ambiguous delivery recovery | inspect newsletter history first; avoid duplicate Publish | A timeout can occur after sending; do not retry the broadcast before reconciling history and timestamps. | Capture update ID, publication time and recipient tier scope; report uncertainty rather than claim all recipients received/read mail. | + +**Official sources:** [contacting-your-sponsors](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors). + +**Pitfall:** Published/sent means provider acceptance/history, not proof every recipient received or read the message. + +### `sponsors-payouts-and-goals` — Banking boundaries, estimated payouts and fundraising targets + +**Capability IDs:** `sponsors-payouts`, `sponsors-goals`. + +**Applicability:** Sponsors owners managing their own fundraising; goals are public owner decisions and bank changes require exact authority. + +| Nested setting / operation choice | Values | Decision rule | Verification / recovery | +| --- | --- | --- | --- | +| payout account / status | past payout; estimated next payout; holds/provider state | Read correct beneficiary/provider and distinguish estimated, pending and paid; never equate incoming sponsorship with completed payout. | Match amount/date/currency and account history to actual receipt where available. | +| bank/fiscal-host management | supported Stripe Connect flow; fiscal-host support route | Owner handles bank/legal verification; fiscal-host accounts cannot directly edit payout information through the same control. Never paste bank/tax data into repository logs. | Inspect provider/account gate and resulting secure status only; record support handoff as unresolved. | +| receipt export | PDF payout receipts for supported Stripe Connect accounts | Export only required receipt to the authorized private destination; respect provider-specific availability. | Open actual receipt and match account/payout amount/date; dashboard display alone is not exported file evidence. | +| goal type / target / description | Number of monthly sponsors; Sponsorships a month; one active goal | Select an owner-approved measurable target and explain funded work accurately; avoid implying contribution guarantees. | Read live goal type/target/text and public progress; only one simultaneous goal is supported in current guide. | +| goal edit / remove / share | update target/text; remove goal; copy/embed link | Preserve rationale for target changes and publish/share externally only when requested; progress is not recognized revenue. | Re-read public goal after update/removal and inspect embed destination; do not send promotion as setup. | + +**Official sources:** [managing-your-payouts-from-github-sponsors](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-payouts-from-github-sponsors), [managing-your-sponsorship-goal](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-goal). + +**Pitfall:** Payout management is provider/account work, not repository administration. Do not claim settled revenue, tax treatment or completed banking verification from GraphQL metadata. + +## Recovery and evidence contract + +Before consequential bulk changes, snapshot IDs, selected values, associations, applicable filters and current head/revision. Re-read on ambiguous failure; do not repeat a successful create/post merely because a subsequent read used the wrong filter or identity. If automation changed too much, disable it before restoring data. Never delete/recreate populated fields/options to make a desired-state script look idempotent. + +For setup acceptance, compare an existing customized object and a newly created object when creation is authorized, including unchanged unrelated content. Without authorized mutations, report the corresponding write/read-back scenario as untested. Include a new item, old matching item and excluded item in automation reasoning: auto-add and archive deliberately have different backlog semantics. Verify closed-not-planned, merged-but-not-released, reopen, missing metadata and archived-item cases when they apply. + +Official-documentation support, indexed operation/schema support, live read evidence, live mutation evidence and human acceptance are separate evidence levels. This research supplies the first two selectively; it supplies no target mutation evidence. Advanced/preview controls, personal saved surfaces, chart mutation APIs and rendered UI persistence still require host-specific inspection. Preserve these gaps explicitly instead of claiming every option is configured. diff --git a/skills/full-github/references/delivery-options.md b/skills/full-github/references/delivery-options.md new file mode 100644 index 0000000..559f4cd --- /dev/null +++ b/skills/full-github/references/delivery-options.md @@ -0,0 +1,542 @@ +# Delivery and security option decisions + +Option-level companion to [delivery-security.md](delivery-security.md). Sources checked on 2026-11-15. This is a decision reference, not evidence that settings are enabled, available on every plan/host, or live-tested. Follow current endpoint schemas for every mutation; preview, retired and inherited controls need host-specific verification. + +For every option record desired value, observed value, inheritance, applicability, plan/permission gate, exact object ID, SHA, actor, timestamp and evidence URL. Keep source-backed support, configuration read-back, execution success and independently verified outcome separate. An unavailable API field is unknown until host/version/role is established. Do not turn every option on. + +The recommendations below preserve this repository's existing GITHUB.md: read-only CI, no new runtime dependency, zero required peer approvals for the single maintainer, owner-controlled license choice, and no fabricated Packages/Pages workload. They do not authorize deployment, publication, paid provisioning, access expansion or bypass. Existing session authorization controls those actions. + +## History, people and evidence + +Inspect prior workflow attempts, approvals, review comments, release assets, security exceptions and deployment statuses before retrying or replacing objects. Record the actual actor and SHA behind each decision. PR review, fork-run approval, environment approval and security dismissal/bypass approval are different decisions with different permissions. Preserve independent human review where configured; do not manufacture it with bot credentials or a changed policy. + +Forum reports are troubleshooting leads. Prefer maintainer resolution and current official docs over old accepted answers. Notable 2026 drift: concurrency queue:max and Dependabot's three-day version cooldown. Current reusable workflow docs also clarify environment-secret forwarding; test absence safely. + +## Option inventory + +### Workflow triggers and typed inputs + +Group: `workflow-events`. Capabilities: `actions-workflows`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| on / types | push, pull_request, pull_request_target, merge_group, schedule, workflow_dispatch, repository_dispatch, workflow_run, workflow_call, release; event-specific activity types | Choose the event whose code/ref and trust model match the job. Add merge_group when required checks serve a merge queue. | Exercise intended event; record event, actor, head_sha and workflow revision. | +| branches / tags / paths | positive/negative glob lists; branches-ignore/tags-ignore/paths-ignore alternatives | Protect required checks against path-filter skips; order negative patterns deliberately; branch and path filters combine. | Test included/excluded branch and file combinations; inspect check state. | +| schedule | POSIX cron; UTC; default-branch workflow | Use for tolerable delays, with manual recovery; scheduling is not a precise timer. | Compare scheduled event timestamp, branch and actual start. | +| workflow_dispatch.inputs | boolean, choice, environment, number, string; required/default/options | Validate enum and deployment target; environment input selects a value but does not gate a job without environment. | Run default and explicit input values; reject invalid target in job. | +| workflow_run | requested, in_progress, completed; workflows and branches | Treat upstream code/artifacts as untrusted; privileged follow-up must verify origin and SHA. | Read originating run ID, repository, event, conclusion, SHA and artifact provenance. | +| GITHUB_TOKEN event recursion | Most token-generated events do not launch another workflow; dispatch exceptions exist | Use explicit dispatch for intended chaining, with bounded recursion; do not broaden credentials just to trigger CI. | Match downstream run to dispatch; confirm no duplicate loop. | + +Project applicability: Existing validation CI needs PR and default-branch coverage. Event expansion needs a concrete repository operation. + +History and human interaction: Keep trigger edits in reviewed commits; retain event payload metadata without secrets and explain maintainer-triggered runs. + +Recovery: Inspect event/ref/filters first; dispatch or rerun the exact intended revision only after correcting cause. + +- Pitfall: A required workflow skipped by filters can leave a required check pending. +- Pitfall: pull_request_target operates in privileged base context; never checkout and execute untrusted PR code there. +- Pitfall: Schedule delays and dropped scheduling events require observability. + +Official sources: [reference 1](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows), [reference 2](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax), [reference 3](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow). + +### Jobs, matrices, conditions and run history + +Group: `workflow-execution`. Capabilities: `actions-workflows`, `actions-runs`, `actions-job-logs`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| needs / if | DAG dependencies; success(), failure(), cancelled(), always(); expressions | Use explicit terminal handling. Reserve always() for bounded cleanup; avoid making cancellation ineffective. | Inspect skipped and failed upstream cases plus cancellation. | +| strategy | matrix axes/include/exclude, fail-fast, max-parallel | Test supported platforms; fail-fast false retains all diagnostics at higher cost. | Inspect complete matrix job set and all conclusions. | +| step execution | run/uses, id, with, env, shell, working-directory, outputs, defaults | Pass untrusted strings through environment or typed inputs rather than shell interpolation. | Read exact workflow SHA, command results and produced outputs. | +| timeouts / tolerated failures | job and step timeout-minutes; continue-on-error; retry in command/action | Bound resource use; do not mark safety or release validation optional. | Force representative failure; ensure required job fails and cleanup completes. | +| services / containers | image, credentials, env, volumes, ports, options; supported runner OS | Use when integration tests require services; pin trusted images and isolate credentials. | Health-check service and inspect exact image digest. | +| attempt operations | rerun all, failed jobs, one job, debug logging, cancel/force-cancel; delete logs/run | Rerun after diagnosis. Capture current attempt; debug logs increase disclosure risk. | Record run ID, attempt, job IDs, SHA, conclusion and redacted log URL. | + +Project applicability: Keep the existing small validation workflow unless real platform differences justify a matrix. + +History and human interaction: Preserve previous attempts and reviewer explanation; canceled or deleted logs are not proof of an earlier success. + +Recovery: Read the current attempt before retrying; cancel normally first; force-cancel only after identifying stuck run and external side effects. + +- Pitfall: A maintainer investigation of discussion #206259 attributed apparent queue blocking to other group jobs and always() preventing cancellation; initial bug claims were incomplete. + +Official sources: [reference 1](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax), [reference 2](https://docs.github.com/en/rest/actions/workflow-runs), [reference 3](https://docs.github.com/en/rest/actions/workflow-jobs). + +Community / maintainer evidence: [discussion 1](https://github.com/orgs/community/discussions/206259). + +### Actions availability, allowed code and token defaults + +Group: `actions-policy`. Capabilities: `actions-permissions`, `actions-policies`, `actions-fork-retention`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| Actions enabled scope | disabled, all eligible repositories, selected repositories; inherited org/enterprise constraints | Read inheritance before changing repository settings. | Read all controlling scopes and repository eligibility. | +| allowed actions/reusable workflows | all, local-only, selected; GitHub-owned, verified Marketplace, explicit patterns; SHA-pinning policy where supported | Pin reviewed actions; allow only required external automation. | Read selected-action patterns and inspect each uses reference. | +| default_workflow_permissions | read or write; per-workflow/per-job permission map | Keep repository default read; grant needed write permissions only in responsible job. | Inspect setup log effective GITHUB_TOKEN permissions. | +| token permission map | actions, artifact-metadata, attestations, checks, contents, deployments, discussions, id-token, issues, models, packages, pages, pull-requests, security-events, statuses; supported read/write/none values | Once any permission is specified, unspecified permissions become none; metadata/scopes and availability differ. | Compare permissions to each operation schema and actual run grants. | +| PR creation / approval by Actions | allow or deny workflow PR creation/approval | Creation may help automation; automated approval is not independent review and must not satisfy a human governance intent. | Read can_approve_pull_request_reviews and inspect actor of resulting review. | +| fork policy | first-time/first-time-with-new-account/all external contributor approval; private-fork run/read-token/write-token/secrets options | Run contributions without secrets/write token; approval authorizes code execution and consumes resources. | Read fork policy plus run approval actor and effective token. | +| policy objects and retention | schema-defined action policy rules; artifact/log days bounded by parent policy | Inspect current rule schema and inherited maximums; retain enough release evidence without storing sensitive logs. | Read policy IDs/rules and expiry dates on actual run/artifact. | + +Project applicability: Repository rules require read-only CI. Do not enable write or fork secrets merely for fuller coverage. + +History and human interaction: Record who approved contributed code, which SHA was inspected and whether a later update needs review again. + +Recovery: Revert an allowlist through reviewed policy change; preserve run evidence before lowering retention or deleting logs. + +Official sources: [reference 1](https://docs.github.com/en/rest/actions/permissions), [reference 2](https://docs.github.com/en/rest/actions/policies), [reference 3](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax). + +### Reusable workflows, actions and templates + +Group: `reusable-contract`. Capabilities: `actions-reusable`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| sharing and reference | same-repo path; owner/repo workflow@SHA/tag/branch; private/internal sharing | Prefer exact reviewed SHA; access/allowed-actions policies must permit every nested workflow. | Read referenced_workflows SHAs and effective access policy. | +| workflow_call contract | boolean/number/string inputs, required/default; explicit secrets; outputs mapped job to workflow | Treat inputs/outputs as an API; avoid stringly typed booleans. | Run caller with omitted/default/explicit values and check outputs. | +| secret forwarding | named secrets or inherit for supported org/enterprise relationship; forwarding at every nested hop | Forward only required names; inheritance is wider. Current docs require passing environment secrets as well. | Fail safely when required secret is empty without printing it. | +| environment scope | environment on called job; same-name environment secret wins | Caller cannot put environment on a reusable-workflow call job. Pass environment identifier as input and bind it inside called workflow. | Observe called job gate and selected environment; verify secret presence only. | +| env and outputs | caller env is not general callee env; job/workflow outputs; reusable matrix output semantics | Pass configuration explicitly; use artifacts for files. | Assert outputs on representative matrix and nested caller. | +| nesting / permissions / concurrency | supported host nesting limit; accessible chain; permissions can only remain or decrease; caller/callee group IDs | Avoid same concurrency key accidentally canceling caller; inspect current host limits rather than hard-code historical limits. | Execute complete chain and inspect grants/group. | +| action forms and templates | composite steps, JavaScript runtime, Docker action; organization workflow-templates metadata | Use a template for copied starting files; reusable workflow for centrally maintained behavior. | Check action.yml inputs/runtime and actual consumer run. | + +Project applicability: Use only if repeated workflows merit a shared contract; small single-repo CI does not need a new abstraction. + +History and human interaction: Version contract changes, review all callers and record actual called SHA rather than mutable tag only. + +Recovery: Pin consumer to prior known SHA; restore compatible input/output contract and test caller before broader rollout. + +- Pitfall: Issue #4453 reports empty environment secrets without forwarding; current official documentation explicitly requires passing or inherit. required:true checks passing, not non-empty value. + +Official sources: [reference 1](https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows), [reference 2](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations), [reference 3](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax). + +Community / maintainer evidence: [discussion 1](https://github.com/actions/runner/issues/4453). + +### Variables, credentials and precedence + +Group: `configuration-secrets`. Capabilities: `actions-variables`, `actions-secrets`, `security-dependabot-secrets`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| scope / selected repositories | organization all/private/selected; repository; environment; Actions versus Dependabot secret stores | Place credentials in narrowest necessary scope; variables are public-to-readers configuration. | Read names/metadata and selected repository IDs. | +| same-name precedence | environment over repository over organization; runtime availability/context restrictions | Avoid collisions; check when the job evaluates variables versus when environment values are available. | Inspect effective non-sensitive variable and secret-presence check in bound job. | +| write protocol | scope public key plus encrypted_value; gh secret via stdin/secure file | Never put secret in arguments, source or issue; encrypted API field is not a retrieval path. | Read updated_at/name; exercise minimal authorized operation. | +| fork / Dependabot / reusable contexts | secrets withheld for untrusted fork runs; Dependabot uses its dedicated store; explicit reusable forwarding | Do not duplicate broad credentials to fix a context error. | Read event actor and correct credential store; negative test unauthorized use. | +| rotation / expiry / redaction | provider revoke/reissue, key owner/expiry metadata outside secret value; add-mask for derived values | Rotate at provider; log masking is best effort, not access control. | Confirm old credential rejection and new credential operation without outputting either. | + +Project applicability: Validation should need no repository secret. Dependabot private registries need separate credentials only if present. + +History and human interaction: Record credential purpose, owner, consumer and rotation date; never plaintext values in historical evidence. + +Recovery: Revoke exposed credential first; replace narrow secret and rerun safely; remove/redact logs separately. + +Official sources: [reference 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets), [reference 2](https://docs.github.com/en/actions/reference/workflows-and-actions/variables), [reference 3](https://docs.github.com/en/rest/actions/secrets), [reference 4](https://docs.github.com/en/rest/dependabot/secrets). + +### Concurrency and queue policy + +Group: `concurrency-queues`. Capabilities: `actions-concurrency`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| group | workflow/job scope; expression; repository-wide case-insensitive group name | Include workflow/ref for isolated CI; use environment-specific shared key for deployment serialization. | Read evaluated group and all related pending/running jobs. | +| queue | single default; max permits up to 100 pending | Use single for latest-state jobs; max when every item matters and host supports it. | Queue a bounded test and inspect pending replacements/overflow. | +| cancel-in-progress | false/default; true; allowed expression | Cancel stale CI; avoid interrupting releases or migrations. queue:max plus true is invalid. | Read old run conclusion and ensure side effects stopped. | +| ordering | FIFO by entering concurrency wait, not original dispatch time; no universal dispatch ordering guarantee | Do not use queue as a transactional ledger; record intended sequence separately if needed. | Compare queue-entry and execution history with expected deployment revisions. | + +Project applicability: CI can cancel outdated branch checks; release and Wiki publication must preserve sequence and existing content. + +History and human interaction: Attach cancellation reason to run history and preserve prior attempt IDs; an operator retry does not establish queue order. + +Recovery: Inspect every workflow sharing the key and always() conditions before calling a queue bug; check runner availability and status incident history. + +- Pitfall: 2021–2025 complaints about a single pending slot do not describe current queue:max behavior; maintainer announced shipping April 17, 2026. +- Pitfall: The control-concurrency page contains broad examples implying unconditional cancellation; use its explicit queue/cancel policy definitions. + +Official sources: [reference 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency), [reference 2](https://docs.github.com/en/rest/actions/concurrency-groups). + +Community / maintainer evidence: [discussion 1](https://github.com/orgs/community/discussions/5435), [discussion 2](https://github.com/orgs/community/discussions/12835), [discussion 3](https://github.com/orgs/community/discussions/206259). + +### Workflow artifact contents and lifecycle + +Group: `artifacts`. Capabilities: `actions-artifacts`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| upload contract | name, path/globs/exclusions, if-no-files-found warn/error/ignore, retention-days | Require expected files; choose unique artifact name per matrix job. | Download exact artifact ID and inspect archive manifest. | +| hidden and file metadata | include-hidden-files false by default; ZIP changes permission fidelity; tar when metadata matters | Include required dotfiles explicitly after excluding credentials; tar executable-sensitive bundles. | Check .codex-plugin files and executable bits in extracted release bundle. | +| compression / overwrite | compression-level supported range; overwrite false default; upload version semantics | Favor low compression for precompressed assets; overwrite deletes old artifact identity. | Record artifact ID, digest, size and expiration after upload. | +| download selection | ID/name/pattern, merge-multiple, path; repository/run/token for cross-run access | Bind release input to trusted run and SHA, never latest name alone. | Verify source run, digest and expected file allowlist. | +| host and action compatibility | supported major/runtime/backend; GHES support differs from GitHub.com | Read current action README and installed runner minimum; do not blindly copy a dot-com major. | Run on target host and inspect resulting artifact/download. | + +Project applicability: Inspect installable plugin archive before release; preservation of hidden plugin metadata is essential. + +History and human interaction: Keep archive manifest, digest and trusted producing SHA with release evidence; retention expiry must not erase sole evidence. + +Recovery: Rebuild from same reviewed SHA, compare contents and digest, issue new version for published immutable mistakes. + +- Pitfall: Hidden-file default change broke explicit dotfile upload use cases; plugin archives can silently lose .codex-plugin if blindly uploaded. +- Pitfall: Artifact download is untrusted data until origin and contents are verified. + +Official sources: [reference 1](https://github.com/actions/upload-artifact), [reference 2](https://github.com/actions/download-artifact), [reference 3](https://docs.github.com/en/rest/actions/artifacts). + +Community / maintainer evidence: [discussion 1](https://github.com/actions/upload-artifact/issues/602). + +### Cache keys, access and budgets + +Group: `cache`. Capabilities: `actions-caches`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| lookup identity | path, key, restore-keys, OS/architecture/lockfile/toolchain salts; cache-version/ref scope | Do not mix incompatible binaries; restore prefixes trade hit rate for stale input risk. | Inspect exact key/ref/version and restored build behavior. | +| restore controls | lookup-only, fail-on-cache-miss, enableCrossOsArchive, supported restore/save actions | Fail on miss only when cache existence is an actual requirement; cache is ordinarily optional. | Test empty cache and prefix fallback; verify reproducible cold build. | +| write/eviction | immutable key entry; new key for changed content; retention/storage policies | Avoid secrets and release-only evidence; monitor eviction and thrashing. | Read usage, last_accessed_at, size and configured inherited limits. | +| trust boundary | fork/base/default-branch read visibility and write scope; workflow cache access restrictions | Treat cache as untrusted executable input; separate privileged/untrusted scopes. | Verify trust-specific keys/access plus authorized clean-cache build. | + +Project applicability: Small Python stdlib validation does not justify a cache unless measured runtime benefit exists. + +History and human interaction: Keep cache purge reason and old keys in issue/run evidence, never cache credential contents. + +Recovery: Delete only identified poisoned/stale keys; rerun cold, then change salt to prevent accidental reuse. + +Official sources: [reference 1](https://github.com/actions/cache), [reference 2](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching), [reference 3](https://docs.github.com/en/rest/actions/cache). + +### Hosted, self-hosted and larger runner configuration + +Group: `runners`. Capabilities: `actions-self-hosted-runners`, `actions-runner-groups`, `actions-hosted-runners`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| runs-on selection | hosted image/architecture/size; self-hosted label intersection; group plus labels | Use smallest suitable hosted runner; image labels can roll, so record actual image version. | Inspect job runner_name/group/labels/OS and setup image version. | +| self-hosted registration | repository/org scope; short-lived registration/removal tokens; JIT config; ephemeral flag | Use disposable isolated machines for untrusted work; registration is not host hardening. | Run benign job, confirm isolation and disposal/cleanup. | +| group access | all/selected repositories; public repo option; selected workflows/revisions; inherited org/enterprise policy | Restrict trusted runner group to known workflows and repos. | Read group repository IDs and allowed workflow refs; test excluded workflow refusal. | +| host lifecycle | runner version/update policy, online/busy, labels, proxy, workspace cleanup; ARC scale sets | Patch runner and images; bound queue and jobs; autoscaling requires separate infrastructure. | Check runner health and clean job-to-job environment. | +| larger runner settings | machine type/image/size/max parallelism, runner group, static IP/private networking where eligible | Enable only for a demonstrated workload and approved billing/network access. | Read saved runner config, network reachability and billed usage. | + +Project applicability: No current need for paid or self-hosted capacity in this plugin repository. + +History and human interaction: Capture operator registration/removal and host ownership, preserving relevant job logs before disposal. + +Recovery: Quarantine suspect runner, revoke credentials, replace image; never assume workspace deletion undoes compromise. + +Official sources: [reference 1](https://docs.github.com/en/actions/reference/runners/github-hosted-runners), [reference 2](https://docs.github.com/en/actions/reference/runners/self-hosted-runners), [reference 3](https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/manage-access), [reference 4](https://docs.github.com/en/rest/actions/hosted-runners). + +### OIDC claims and cloud trust + +Group: `oidc`. Capabilities: `actions-oidc`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| issuance permission | id-token:write only on authenticating job | Token issuance grants no cloud resource permission by itself. | Inspect effective job permission and provider exchange result. | +| trust conditions | issuer, audience, repository identity, ref/environment, job_workflow_ref; provider-supported claims | Scope provider trust to exact owner/repo/workflow/target; avoid broad wildcard repo trust. | Inspect redacted claims and denied wrong-ref/target exchange. | +| subject template | repo use_default; org/repo include_claim_keys; supported custom properties | Stage cloud trust migration before changing sub format; org template requires correct repo adoption. | Read template and compare actual non-sensitive sub/claim values. | +| reusable workflow identity | caller repository context versus called job_workflow_ref; accessible trust claims | Require reviewed reusable workflow identity where provider supports it. | Inspect caller/callee SHAs and successful narrow provider action. | +| environment interaction | environment-based subject replaces ref-based shape; branch rules are separate gate | Configure both cloud subject and GitHub deployment branch policy. | Negative-test disallowed ref and unapproved environment job. | + +Project applicability: No cloud deploy target currently exists; do not create one to exercise OIDC. + +History and human interaction: Record cloud role/trust policy revision and migration review, never JWT contents. + +Recovery: Restore previous subject template or compatible provider trust; revoke exposed long-lived credentials separately. + +Official sources: [reference 1](https://docs.github.com/en/actions/reference/security/oidc), [reference 2](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows), [reference 3](https://docs.github.com/en/rest/actions/oidc). + +### Environment protection and approvals + +Group: `environment-approvals`. Capabilities: `deploy-environments`, `deploy-approval`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| required reviewers | eligible users/teams; one eligible approval suffices; prevent self-review; plan restrictions | Do not describe reviewer list as unanimous approval. Independent approval requires another eligible human. | Read reviewer IDs, prevent_self_review and actual approval actor. | +| wait timer | documented minute range; non-billable waiting; product/visibility gates | Use only for purposeful rollout delay; it does not inspect health. | Read wait duration and timestamps before job starts. | +| deployment branch policy | all; protected branches; selected branch/tag patterns | Gate deployment ref separately from repository branch protection; test tags explicitly. | Read protected_branches/custom_branch_policies and every branch/tag rule. | +| administrator bypass | allow/deny supported protection bypass setting | Keep bypass decision explicit and auditable; automation must not bypass its own gate. | Read saved option plus bypass actor/comment when used. | +| custom protection rules | installed GitHub App rules; enabled rules bounded by current platform limit | Verify app permission, external approval/health decision and failure handling. | Read rule integration IDs and actual requested/approved/rejected record. | +| environment configuration | name, URL, secrets, variables; create explicitly before referencing | A misspelled environment may be created without intended safeguards; exact name matters. | Read environment ID and settings before allowing workflow run. | +| approval operations | pending deployments approve/reject with comment; workflow gate differs from PR approval | Read artifact/SHA and change context before approval; never impersonate reviewer or weaken policy. | Record deployment IDs, reviewer, decision, comment and run continuation. | + +Project applicability: A single maintainer cannot manufacture independent peer approval. No deployable service exists; preserve zero required PR approvals as repository policy. + +History and human interaction: PR review, fork workflow execution approval and environment approval are distinct histories; record each real actor/decision. + +Recovery: Reject unsafe pending deployment, correct exact environment/ref and rerun; do not remove protection to unblock automation. + +Official sources: [reference 1](https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments), [reference 2](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments), [reference 3](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments), [reference 4](https://docs.github.com/en/rest/deployments/environments). + +### Deployment records, statuses and rollback + +Group: `deployment-records`. Capabilities: `deploy-records`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| deployment request | ref, task, payload, environment, description, auto_merge, required_contexts, transient_environment, production_environment | Bind immutable SHA and required checks; deployment API is a record/request, not deployment engine. | Read record ID, sha, environment and exact request parameters. | +| status transitions | queued, pending, in_progress, success, failure, error, inactive; log_url, environment_url, auto_inactive | Report actual engine state and measured health. | Read ordered statuses and independently test application version/health. | +| cleanup/rollback | mark inactive; delete eligible deployment; external rollback to prior immutable artifact | Preserve operational trail; deactivate previews when removed. | Compare served SHA/digest before/after and status history. | + +Project applicability: Only create deployment records for an actual deployment; source/plugin release alone is not an application deployment. + +History and human interaction: Store approver, release artifact digest and rollback reason in deployment/linked issue history. + +Recovery: Deploy prior verified artifact with a new explicit rollback record; a green API status does not restore service. + +Official sources: [reference 1](https://docs.github.com/en/rest/deployments/deployments), [reference 2](https://docs.github.com/en/rest/deployments/statuses). + +### Security products, inheritance and enforcement + +Group: `security-enablement`. Capabilities: `security-enablement`, `security-configurations`, `security-overview`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| product switches | dependency graph/submission; Dependabot alerts/security updates; Code Security; Secret Protection; private vulnerability reporting | Evaluate eligibility and actual need separately; security policy prose is not scanning enablement. | Read effective repository security_and_analysis and product-specific status. | +| configuration association | org/enterprise configuration ID; selected/all/new-repository defaults; enforcement | Preserve inherited policy; inspect asynchronous association failures and product entitlements. | Read configuration, repository association/application state and effective setting. | +| enforced controls | enabled/disabled/not-set where schema supports; enforcement mode; delegated dismissal/bypass | Validate current schema per field rather than applying one enum blindly. | Read exact serialized config plus repository lock state. | +| coverage/risk | repository filters, missing coverage, exclusions, alert severity/age; eligible plan | Report unknown/unavailable separately from clean or disabled. | Reconcile visible repo counts and excluded/failed scans with ledger. | + +Project applicability: Public plugin can use eligible free controls; do not activate a paid organizational product or change license policy without authorization. + +History and human interaction: Retain setting changes, application status, responsible security owner and policy exception explanation. + +Recovery: Correct failed association or incompatible config; preserve evidence before detaching and never silently relax enforcement. + +Official sources: [reference 1](https://docs.github.com/en/rest/code-security/configurations), [reference 2](https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/create-custom-configuration), [reference 3](https://docs.github.com/en/code-security/getting-started/github-security-features). + +### CodeQL, SARIF, Autofix and code quality + +Group: `code-scanning`. Capabilities: `security-codeql`, `security-code-alerts`, `security-ai-autofix`, `security-code-quality`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| setup mode | default or advanced; language selection; query suite; supported runner | Choose default for supported uncomplicated builds; advanced for custom build/query needs. | Verify actual language database and completed analysis at intended SHA. | +| advanced options | matrix languages, build-mode none/autobuild/manual, paths/paths-ignore, queries/packs/model packs, config-file, category, schedule | Match build mode to language; path excludes can create blind spots. Keep category stable per analysis variant. | Read workflow/config at analyzed SHA and analysis category/language coverage. | +| blocking controls | security/quality severities, rule/tool selection, ruleset thresholds where supported | Pick actionable severity gates and require actual scan completion; empty upload is not clean coverage. | Inspect PR check result and corresponding alerts/instances. | +| SARIF upload | tool/category, commit_sha, ref, analysis_key, compressed payload; processing status | Validate SARIF and bind result to exact commit/ref; poll until processed. | Read sarif processing result and analysis commit/tool/category. | +| alert lifecycle | open/fixed/dismissed; allowed dismissal reason/comment; delegated review | Dismiss with evidence; reopen when premise fails. Deleting analysis is not remediation. | Read state, dismissing actor/time/reason and latest instance. | +| Autofix / AI Scan | available product switch; supported alert request; proposed patch/commit | Review generated diff and test before committing; do not equate generated fix with validated fix. | Rerun affected tests/scanner and inspect resolved finding. | +| variant databases / code quality | CodeQL database downloads/variant target scope; quality setup/findings supported schema | Use only for concrete cross-repository query/quality need; permissions differ from code scanning. | Read variant completion per repo and quality findings at target revision. | + +Project applicability: Analyze actual Python/scripts and workflow languages supported by selected tool; do not claim Markdown guidance has executable-language CodeQL coverage. + +History and human interaction: Preserve alert number, instance, reviewer rationale and scan SHA; approvals for dismissal remain separate from fix review. + +Recovery: Fix build/query/upload cause; rescan same intended revision; reopen unsupported dismissals and revert unsafe Autofix commit. + +Official sources: [reference 1](https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options), [reference 2](https://docs.github.com/en/rest/code-scanning/code-scanning), [reference 3](https://docs.github.com/en/rest/code-quality/code-quality), [reference 4](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal). + +### Dependency graph, review, submission and SBOM + +Group: `dependency-inventory`. Capabilities: `security-dependency-graph`, `security-sbom`, `security-global-advisories`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| inventory sources | supported manifests/lockfiles, automatic or explicit dependency submission; detector/job identity | Resolve build dependencies where manifests are insufficient; do not fabricate runtime dependencies. | Match graph snapshot detector and SHA to lockfile/build resolution. | +| dependency-review policy | base/head diff; fail-on-severity, allowed/denied licenses, scope, allowlisted advisories/packages; supported action options | Use narrow documented exceptions with owner/expiry; license policy requires owner decision. | Inspect newly introduced vulnerable/license entries and check failure. | +| SBOM | SPDX export; async report UUID where supported; snapshot date and included scopes | Treat as inventory snapshot bounded by graph completeness. | Parse SPDX and compare package counts/versions to manifests and submission. | +| advisory matching | GHSA/CVE, ecosystem/name, affected/fixed range, withdrawn/reviewed status | Match precise version and ecosystem; absence of advisory is not safety proof. | Read advisory update time, withdrawn state and installed resolved version. | + +Project applicability: No new runtime dependency is authorized. Track action dependencies and required tooling; owner has not selected project license. + +History and human interaction: Keep dated SBOM/diff, dependency exception reviewer and changed lockfiles with PR evidence. + +Recovery: Submit corrected snapshot and regenerate SBOM; fix affected version or record bounded reviewed exception. + +Official sources: [reference 1](https://docs.github.com/en/rest/dependency-graph/dependency-review), [reference 2](https://docs.github.com/en/rest/dependency-graph/dependency-submission), [reference 3](https://docs.github.com/en/rest/dependency-graph/sboms), [reference 4](https://docs.github.com/en/rest/security-advisories/global-advisories), [reference 5](https://github.com/actions/dependency-review-action). + +### Dependabot schedules, update strategy and runtime + +Group: `dependabot`. Capabilities: `security-dependabot-alerts`, `security-dependabot-version`, `security-dependabot-runtime`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| update discovery | version:2; package-ecosystem; directory/directories; exclude-paths where supported | Configure every existing ecosystem, avoiding overlapping directory entries. | Inspect default-branch config and real job detected manifests. | +| schedule | daily/weekly/monthly/quarterly/semiannually/yearly/cron where current schema supports; day/time/timezone/cronjob | Choose workload-appropriate cadence; timezone explicit when needed. | Read actual scheduled job timestamps. | +| selection/strategy | allow; ignore dependency/version/update-types; versioning-strategy; target-branch; vendor; ecosystem-specific options | Review exclusions carefully: ignored vulnerable versions can block remediation. | Compare generated diff and job skipped-dependency reason. | +| groups | patterns/exclude-patterns, dependency-type, update-types, applies-to version-updates/security-updates; multi-ecosystem-groups | Use separate security/version intent; grouping failures need real job inspection. | Inspect generated PR members and applicable group. | +| cooldown | default-days; semver-major/minor/patch-days; include/exclude; default 3 days | Current 2026 default delays version updates even with no cooldown block; security updates are exempt. | Compare release publication, cooldown and PR creation time. | +| PR management | open-pull-requests-limit, labels, assignees, milestone, commit-message, branch separator, rebase-strategy; supported options per ecosystem | Preserve existing repository taxonomy; keep limits low enough for maintainable review. | Inspect generated PR metadata and rebase behavior. | +| registry/code execution | registries credential type/URL; selected registries; insecure-external-code-execution allow/deny | Allow external execution only for necessary reviewed ecosystem resolution; narrow registry credentials. | Read redacted registry resolution logs and execution settings. | +| runtime / repository access | standard/labeled runner, labels/group; org private-dependency repository allowlist/default access | Use labeled runner only on eligible repo; do not expand private repo access to fix typo. | Read effective runner settings and successful dependency resolution. | +| alerts/security PRs | severity/ecosystem/package/scope/state/EPSS filters; auto-triage rules and delegated dismissal if eligible | Prioritize real risk; dismissal requires reason and does not patch. | Read alert after merged fix and confirm installed version/checks. | + +Project applicability: Existing policy explicitly wants GitHub Actions updates. Add other ecosystems only if manifests exist. + +History and human interaction: Respond to supported @dependabot commands after reading bot status; human review remains required under repo rules, and bot actor restrictions affect secrets. + +Recovery: Read update log before rebase/recreate; remove obsolete ignore, fix registry access narrowly, rerun supported job and verify generated PR. + +- Pitfall: Maintainer announcement July 14, 2026 confirms 3-day default version cooldown; older explanations assuming immediate version PRs are stale. +- Pitfall: Issue #16319 reports grouping failure in a particular non-root npm case; it is a reproduction lead, not proof all grouping is broken. + +Official sources: [reference 1](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference), [reference 2](https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/optimizing-pr-creation-version-updates), [reference 3](https://docs.github.com/en/rest/dependabot/alerts), [reference 4](https://docs.github.com/en/rest/dependabot/runner-settings), [reference 5](https://docs.github.com/en/rest/dependabot/repository-access). + +Community / maintainer evidence: [discussion 1](https://github.com/dependabot/dependabot-core/discussions/15582), [discussion 2](https://github.com/dependabot/dependabot-core/issues/16319). + +### Secret detection, push protection and exceptions + +Group: `secret-scanning`. Capabilities: `security-secret-alerts`, `security-push-protection`, `security-custom-patterns`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| detection options | provider patterns, non-provider/generic/AI detection where eligible; validity checks; extended metadata | Enable supported useful detection; validity/metadata may contact provider and have product gates. | Read settings and scan history/coverage, not alert count alone. | +| push protection | repository protection versus personal protection; supported pattern participation | Do not mistake personal block for repository policy; repository scanning remains separate. | Read repository setting and safe documented test result. | +| custom patterns | name, secret regex, before/after context, additional match requirements; dry-run/publish; push protection | Use safe synthetic examples and negative corpus; dry-run before publishing noisy pattern. | Record pattern ID/version and positive/negative results. | +| bypass governance | test/false-positive/fix-later reasons where offered; delegated reviewers, expiry/review path | Never bypass a valid live credential; fix/revoke instead. Independent reviewer decision stays with reviewer. | Read request, actor, comment, expiry and resulting alert. | +| alert state | open/resolved; revoked, false_positive, used_in_tests, wont_fix or current schema reasons; location/history | Revoke with provider first; resolving UI alert does not revoke token or erase history. | Check provider revocation and read alert location/resolution metadata. | +| dismissal governance | direct or delegated dismissal; role eligibility; notification/review state | Confirm reviewer coverage before enforcing; preserve rationale even for test secrets. | Read request/outcome, reviewer and reopened state if rejected. | + +Project applicability: Useful for public repo; synthetic tests must not leak live values. Security setting read may itself contain secret values; redact outputs. + +History and human interaction: Retain private alert IDs, discovery/rotation timestamps and reviewed exception reasons; do not copy secret strings into public issues. + +Recovery: Revoke at provider, replace consumers and scan history; history rewriting is separate consequential work and does not invalidate copied credentials. + +Official sources: [reference 1](https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning), [reference 2](https://docs.github.com/en/rest/secret-scanning/secret-scanning), [reference 3](https://docs.github.com/en/rest/secret-scanning/push-protection), [reference 4](https://docs.github.com/en/rest/secret-scanning/custom-patterns), [reference 5](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal). + +### Confidential reports, advisory publication and campaigns + +Group: `security-coordination`. Capabilities: `security-advisories`, `security-campaigns`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| reporting policy | SECURITY.md supported versions/contact; private vulnerability reporting enabled/disabled | Provide confidential route and realistic response ownership. | Inspect rendered policy and actual reporting availability. | +| advisory content | draft/published/withdrawn, severity/CVSS/CWE, vulnerable ranges/patched versions, references, credit, CVE request | Keep report private until fix/disclosure agreement; verify affected ranges. | Read advisory state/collaborators and clean install of patched release. | +| collaboration | report triage, comments, invited collaborators, temporary private fix fork | Grant only necessary confidential access and retain reporter coordination. | Read actual collaborator identities and private fork/review history. | +| campaign setup | selected code alerts, repositories, managers/teams, contact, deadline; draft UI versus published API; optional generated issues | Use for multi-repository remediation requiring tracking; preserve private finding visibility. | Read published campaign scope/counts and corresponding resolved alerts. | +| publication / withdrawal | explicit publish/CVE disclosure; withdrawal constraints; notification effects | Publication is irreversible disclosure; prepare exact reviewed advisory/fix before authorized publish. | Read public GHSA/CVE and release timestamps; verify issue scope. | + +Project applicability: Confidential reporting is useful; campaigns require actual alert program and owner eligibility, not a placeholder. + +History and human interaction: Preserve reporter credits, embargo agreement, fix review and disclosure decision privately; public release notes must respect agreed timing. + +Recovery: Correct advisory affected ranges/notes and notify existing recipients; never claim withdrawal removes already disclosed information. + +Official sources: [reference 1](https://docs.github.com/en/rest/security-advisories/repository-advisories), [reference 2](https://docs.github.com/en/rest/campaigns/campaigns). + +### Drafts, generated notes, assets and immutability + +Group: `release-lifecycle`. Capabilities: `releases-lifecycle`, `releases-assets`, `releases-immutable`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| release identity | tag_name, target_commitish for new tag, name, draft, prerelease, make_latest | Existing tag determines commit; target_commitish does not move it. Match plugin manifest version to v-tag. | Resolve tag object/commit, release ID and version file. | +| notes | body; generated notes; previous tag/configuration; categories/exclusions; discussion category where eligible | Review generated changelog; include install commands, validation evidence and limits. | Read rendered notes and linked issues/PRs against intended range. | +| asset upload | binary content type, filename/label; draft upload URL; per-asset ID/digest/size | Build deterministic installable archive, inspect hidden files and allowlist before attaching. | Download attached bytes and compare SHA-256/archive manifest. | +| immutability | repo/org policy; new release behavior; immutable flag | Create draft, attach every asset, then publish. Published assets/tag become locked; notes/title/latest/prerelease remain editable. | Read immutable flag, tag SHA, asset digest and release attestation. | +| publication/recovery | draft update versus publish; prerelease/stable; delete constraints; corrective next version | Do not publish from merely prepared source; irreversible distribution needs existing release authorization. | Read published_at, exact asset bytes, install from release and latest pointer. | + +Project applicability: Core delivery path: plugin version, v-tag, installation docs and validation evidence must agree. Immutability prevents patching published archive. + +History and human interaction: Record release preparer/reviewer/publisher, reviewed tag SHA and prior release comparison. Discussion and release notes carry human feedback/history. + +Recovery: For immutable wrong asset/tag, publish a new corrected version; editable notes cannot change locked bytes. Never force-move tag as an assumed recovery. + +Official sources: [reference 1](https://docs.github.com/en/rest/releases/releases), [reference 2](https://docs.github.com/en/rest/releases/assets), [reference 3](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository), [reference 4](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases). + +### Provenance, SBOM and linked artifact records + +Group: `attestations`. Capabilities: `attestations-provenance`, `attestations-linked-artifacts`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| statement type | build provenance or SBOM attestation; artifact digest/name; supported registry publication | Attest exact distributed bytes; provenance says how/where built, not absence of bugs. | Verify subject digest and trusted repository/workflow identity. | +| workflow grants | id-token:write, attestations:write; contents/read and packages/write only when needed | Isolate attestation in trusted release job; eligibility varies with visibility/plan. | Inspect effective permissions and successful verify output. | +| verification constraints | trusted owner/repo/workflow, predicate type, signer identity, source ref/commit; offline/bundle modes where supported | Do not accept any valid GitHub signature; require intended producer. | Run gh attestation verify against downloaded exact asset and identity policy. | +| linked artifacts | storage metadata and artifact association using current endpoint schema | Distinguish storage record/link from uploaded file and signed attestation. | Read link identity, digest and referenced object existence. | + +Project applicability: Consider for installable release artifact when trusted workflow builds it; record unavailable eligibility instead of assuming. + +History and human interaction: Keep verifier command/policy/output and producing workflow SHA with release record; release attestation and custom build provenance are distinct. + +Recovery: Rebuild/re-attest correct bytes in trusted workflow; revoke trust in compromised producer and publish corrective version. + +Official sources: [reference 1](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds), [reference 2](https://docs.github.com/en/rest/repos/attestations), [reference 3](https://docs.github.com/en/rest/orgs/artifact-metadata). + +### Registries, package ACL and trusted publishing + +Group: `packages`. Capabilities: `packages-metadata`, `packages-registry`, `packages-access`, `packages-trusted-publishing`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| registry/form | OCI/GHCR, npm, NuGet, RubyGems granular; Maven/Gradle repository-scoped; host support | Choose only ecosystem actually distributed; REST metadata does not publish package bytes. | Install/pull exact version/digest from clean intended consumer. | +| authentication | GITHUB_TOKEN packages:read/write in workflow; supported classic PAT scopes for registry; registry-specific OIDC/trusted publishing | Prefer short-lived workflow credential; trusted-publishing support is registry-specific, not universal. | Verify exact registry trust configuration and authenticated clean install. | +| link and inheritance | repository link, inherited repository permissions, automatic inheritance org policy; explicit user/team ACL | Linked repo alone may not grant workflow access if ACL inheritance differs. | Read package settings/inheritance and intended principal access. | +| Actions access | selected repository access to granular package; separate Codespaces access | Grant only consumer/producer repos; token scope alone cannot override package ACL. | Test authorized workflow and excluded repo denial. | +| visibility | private/internal/public where supported; public transitions can be restricted/irreversible | Do not infer public package from public source repository. | Read package visibility and anonymous pull when intended. | +| versions/delete/restore | immutable consumer digest, tags, version metadata; package/version deletion; restoration eligibility/window | Do not delete versions still used; inspect downloads and restoration constraints first. | Read version ID and digest; restore and reinstall when authorized. | +| external trusted publisher | owner/repository/workflow/environment binding; OIDC permission and registry policy | For npm or other external registry, distinguish that registry from GitHub Packages. Verify registry official docs. | Perform registry-specific dry-run or publish only with release authorization; read resulting provenance. | + +Project applicability: GITHUB.md explicitly says no separate package artifact requirement. Plugin marketplace/source releases currently satisfy distribution; do not publish artificial package. + +History and human interaction: Retain package/version IDs, producer SHA, ACL reviewers and deprecation notices; preserve consumer compatibility. + +Recovery: Correct package ACL/link narrowly; rotate exposed tokens; publish corrected immutable version/digest instead of relying on mutable tags. + +- Pitfall: Community reports show packages:write token permission alone did not fix missing package inheritance/Actions access; inspect both. +- Pitfall: Classic PAT restrictions and SSO can block registry auth despite scope. Do not respond by granting broader scopes blindly. + +Official sources: [reference 1](https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages), [reference 2](https://docs.github.com/en/packages/learn-github-packages/publishing-a-package), [reference 3](https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package), [reference 4](https://docs.npmjs.com/trusted-publishers/). + +Community / maintainer evidence: [discussion 1](https://github.com/orgs/community/discussions/32184), [discussion 2](https://github.com/orgs/community/discussions/57809). + +### Pages source, DNS, TLS and publication + +Group: `pages`. Capabilities: `pages-settings`, `pages-builds`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| build_type / source | legacy branch path root/docs or workflow; branch; custom workflow upload/deploy | Use source matching actual site generator; branch commits using GITHUB_TOKEN do not trigger branch Pages build. | Read Pages configuration and actual successful build/deployment SHA. | +| workflow grants / target | contents:read, pages:write, id-token:write; github-pages environment and artifact | Scope deployment permissions to job and keep environment protections. | Read uploaded Pages artifact, deployment status and environment. | +| custom domain | CNAME, DNS A/AAAA/CNAME records, domain verification, protected domain ownership | Verify domain before linking and remove stale DNS when disabling. | Read DNS health, ownership record and served hostname. | +| HTTPS | certificate provisioning and https_enforced when available | Wait for valid certificate before enforcing; inspect mixed content. | Verify HTTPS chain/hostname and HTTP redirect. | +| visibility / path | project site base path, public/private enterprise entitlement; repository visibility differs | Do not publish private source content without intended audience decision. | Fetch as intended anonymous/authenticated user and inspect base-path assets. | +| build/history/recovery | branch build/request; workflow Pages deployment status/cancel; external health | A successful build does not prove correct public content. | Fetch expected marker/version, navigation/assets and custom-domain redirect. | + +Project applicability: No site requirement exists in GITHUB.md; keep Pages not-applicable until useful published site is requested. + +History and human interaction: Record domain owner authorization, workflow approval and deployed SHA; preserve previous successful deployment for rollback. + +Recovery: Redeploy prior verified site revision; correct source/base path/DNS, then recheck served bytes and TLS; deleting Pages alone leaves dangerous stale DNS. + +Official sources: [reference 1](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site), [reference 2](https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages), [reference 3](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages), [reference 4](https://docs.github.com/en/rest/pages/pages). + +### Required check identity and review integration + +Group: `checks-statuses`. Capabilities: `checks-runs`, `checks-suites`, `checks-commit-statuses`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| check run | name, head_sha, status/conclusion, started/completed timestamps, output/annotations, details_url; app identity | Stable unique names per required check; attach to exact tested SHA. | Read check name, app ID, head_sha and actual command evidence. | +| check suite | automatic creation preferences, rerequest, suite status | Suite success does not replace individual required checks; some writes are App-only. | Read suite and associated run conclusions. | +| commit status | context, state pending/success/failure/error, target_url, description | Keep context distinct from check-run names to avoid ambiguous requirement matching. | Read combined and individual statuses on intended SHA. | +| protection binding | required context/app, strict branch freshness, merge_group coverage; skipped/neutral semantics | Read rulesets and classic protection; require checks that actually test code. | Observe PR required check evaluation after latest push and merge-queue test commit. | + +Project applicability: Existing three validation commands remain authoritative. Peer approval count zero is deliberate single-maintainer policy. + +History and human interaction: Keep reviewer comments, check rerequest actor, force-push/stale-review history and final merge SHA; green unrelated SHA is insufficient. + +Recovery: Fix missing event/name/app permission and rerun actual required check; never spoof status or remove protection to merge. + +Official sources: [reference 1](https://docs.github.com/en/rest/checks/runs), [reference 2](https://docs.github.com/en/rest/checks/suites), [reference 3](https://docs.github.com/en/rest/commits/statuses), [reference 4](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks). + +### Agentic workflows and constrained output + +Group: `agentic-workflows`. Capabilities: `actions-agentic-workflows`. + +| Option | Values / default | Decision rule | Verification | +| --- | --- | --- | --- | +| definition / compilation | Markdown instructions plus frontmatter; generated workflow; gh aw compile | Review generated YAML after instruction change and keep compiled artifact synchronized. | Compile and compare source/generated diff; inspect actual workflow SHA. | +| engine / credentials | supported Copilot/Codex/Claude/Gemini engine; engine-specific secret and billing | Choose only an authorized available engine and narrow authentication. | Check engine initialization and approved usage budget without exposing keys. | +| guardrails | read-only runtime, firewall/network, tools, explicit safe-outputs and threat-detection gates | Allow only requested outputs; proposed issue/comment/PR is still external action requiring existing authorization. | Inspect generated downstream write job permissions and resulting object IDs. | +| review / triggers | schedule/dispatch/events; allowed actors; human-reviewed PR outputs | Treat repository text as untrusted prompt input; retain human review before merge/deploy. | Exercise controlled input and inspect output safety/review history. | + +Project applicability: Optional automation needs concrete recurring task, engine eligibility and authorized outputs; ordinary deterministic validation is sufficient now. + +History and human interaction: Retain prompts/config revisions, generated proposals, human acceptance/rejection and exact downstream writes; do not call model output an independent approval. + +Recovery: Disable affected workflow, stop pending writes and revoke compromised credentials; fix prompt/tool policy and inspect all emitted changes before reenable. + +Official sources: [reference 1](https://docs.github.com/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows), [reference 2](https://docs.github.com/en/actions/tutorials/develop-agentic-workflows-in-github-actions), [reference 3](https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/agents/about-github-agentic-workflows). + +## Completeness and live verification boundary + +This inventory decomposes the capability families listed in delivery-security.md into concrete choice groups. It is not a claim to mirror every field of every future REST/GraphQL schema, action input, cloud IAM provider, ecosystem registry or UI preview. Before acting, enumerate the current object schema and UI subsettings for the target host, compare every returned writable field against the desired configuration, and record omitted/unavailable fields explicitly. Link new material options here rather than hiding them behind a top-level enabled flag. + +No external state was changed to produce this reference. Live reads/mutations, billing/entitlement checks, real approval interactions, provider access, package installs, release publication and deployment health checks require separate evidence in the task coverage ledger. diff --git a/skills/full-github/references/features.md b/skills/full-github/references/features.md index af0a56c..1a27b84 100644 --- a/skills/full-github/references/features.md +++ b/skills/full-github/references/features.md @@ -20,3 +20,7 @@ The catalog also covers personal, organization and enterprise operations beyond The REST index comes from GitHub's official OpenAPI description. The GraphQL index comes from live authenticated schema introspection. These schemas can contain deprecated endpoints that are closed or scheduled for closure. Closed endpoints carry unavailable metadata and the executor refuses them. Capabilities may remain behind a plan, preview, GitHub App permission or UI. Use current official documentation and live schema to settle drift. GitHub Enterprise Server has a versioned surface; compare its schema and docs with the indexed GitHub.com snapshot. No catalog snapshot guarantees future availability. + +## Nested configuration and history + +Every capability maps to concrete configuration decisions in data/configuration-options.json. Use options/option for choices and their verification. The complete compressed official REST schema preserves every published nested request/response definition, and schema traverses references. Read source-backed API errata, the domain option references and history-interaction.md before applying changes. diff --git a/skills/full-github/references/history-interaction.md b/skills/full-github/references/history-interaction.md new file mode 100644 index 0000000..2ebcd2f --- /dev/null +++ b/skills/full-github/references/history-interaction.md @@ -0,0 +1,54 @@ +# History and human interaction + +Every configuration decision needs a reason, ownership and evidence that survives the current chat. Use GitHub's native records and the local execution journal together. + +## Before changing state + +Identify the actual repository and people affected. Read current configuration and its effective inherited policy. Link substantial changes to an issue or discussion, milestone and Project. Put the proposed values, rationale, affected people, compatibility and read-back checks into the issue/PR. Preserve earlier decisions and link a superseding decision when requirements change. + +Use the configuration option groups to distinguish provider defaults from a recommendation for this project. Check nested enum, type, required, cardinality and nullable constraints using the full schema inspector and current official documentation. Read operational errata before applying a generated schema literally. + +## Native history + +- Git commits, branches, reviews and PR conversations explain implementation and acceptance. Preserve review threads and authorship. Add a comment explaining changed intent instead of replacing the historical discussion. +- Issues retain timeline events, labels, assignees, types, shared fields, dependencies and completion reason. Use closing references and verify Project automation. A transfer, conversion, archival or deletion changes what readers can find; preserve source links and verify comments/metadata before calling it complete. +- Project status updates explain progress. Items, field values, saved views, chart scope and automation must be checked separately. A successful write does not prove persistence or backfill. +- Wiki history is a separate Git repository. Pull before edits, preserve pages and navigation, commit with a reason, push and read the remote commit back. +- Release tags, notes, checksums and attestations connect published bytes to source and CI. Preserve released tags and existing asset bytes. Resume a partial draft using read-back comparison. +- Organization audit logs and webhook delivery logs have provider retention limits. Use authorized streaming/export for longer history. The Events API has limits and latency and cannot substitute for the audit log. + +## Local execution journal + +REST call and collect record started and terminal events in CODEX_HOME/full-github/history.sqlite3, defaulting to ~/.codex/full-github/history.sqlite3. The private file uses mode 0600. SQLite commits preserve independent concurrent requests. Records contain operation/method, selected target identifiers, time, optional context URL and exit status. + +Request bodies, header values and response payloads are excluded. Review target metadata before sharing history because repository identities may be private. The journal covers this executor. Native gh/GraphQL/UI operations retain their GitHub records and should link to the same issue or PR. + +```sh +python3 scripts/operations.py call issues/update --params '{"owner":"OWNER","repo":"REPO","issue_number":NUMBER}' --body-file change.json --context https://github.com/OWNER/REPO/issues/NUMBER +python3 scripts/operations.py history --limit 100 +python3 scripts/operations.py verify-event RUN_ID --outcome matched --evidence https://github.com/OWNER/REPO/issues/NUMBER +``` + +Use --limit 0 to read all local events. --no-history is available for explicitly ephemeral inspection. Dry-run, schema and option discovery create no execution history. A query string or embedded credential is rejected in context/evidence links. + +command_succeeded records the CLI result. It does not certify the desired setting or a human review. verification_recorded stores the caller's later read-back claim and evidence link. An interrupted started event or outcome_unknown requires reconciliation against GitHub before retrying. A transport failure may follow a server-side change. Re-read by known identity and apply only the remaining delta. + +This local history is editable by the account owner and is not a cryptographically tamper-evident audit service. Use GitHub's authenticated audit/review records and provenance verification when that assurance is required. + +## Real human participation + +Use Issues for actionable defects, Q&A Discussions for questions, Ideas for proposals and PR review threads for code review. Publish clear forms and links. Keep meaningful status and ownership visible. Convert accepted proposals into linked work while preserving the original discussion. + +A human approval must come from an authorized actor through the required GitHub control. Never manufacture a second reviewer, approval, reaction, vote or answered question. A bot's own review and a local verification event cannot satisfy a policy requiring an independent reviewer. Use actual requested reviewers and record unresolved approvals. + +Ask one focused question in the relevant GitHub conversation when a material decision cannot be inferred. Continue independent authorized work. Do not repeatedly ask for a choice already recorded. Never automatically send private data, expand access, commit spending or moderate another person's content merely because a full profile includes that feature. + +## Failure and recovery + +Reconcile partial operations using IDs, content and GitHub history. Preserve unknown outcomes and observed errors. Missing Link headers, capped search results, incomplete_results, changing totals or repeated pages invalidate an all-items claim. collect verifies page-based reads and keeps received pages on failure. For cursor APIs paginate each connection and compare declared counts where available. + +Official behavior and community incident reports may differ by date, host and rollout. Read the supplied community report as incident evidence, then verify its current applicability. Record the actual choice and proof for this repository. + +Sources include GitHub's [REST integration practices](https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api), [pagination documentation](https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api), [PR reviews](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews), [audit log](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization) and [artifact attestations](https://docs.github.com/en/actions/concepts/security/artifact-attestations). + +The Full GitHub plugin repository enables native release immutability. Future published tags/assets are frozen, and corrections are issued as a new release. diff --git a/skills/full-github/references/operations.md b/skills/full-github/references/operations.md index 0a111ee..c6174fe 100644 --- a/skills/full-github/references/operations.md +++ b/skills/full-github/references/operations.md @@ -79,3 +79,37 @@ python3 -m unittest discover -s tests -v The OpenAPI input is the official document containing paths, components and operationId fields. The GraphQL input contains data.__schema.types with fields, args, inputFields, enumValues and nested type references. Use includeDeprecated on field and enum introspection. The generator derives the full query/mutation index from Query and Mutation types, including deprecated entries. Source digest and retrieval date are recorded for drift verification. Review new products, endpoints and schema changes against domain references and the capability catalog. Updating the operation registry alone cannot establish that new functionality has been tested. + + +## Inspect nested choices + +```sh +python3 scripts/operations.py options review +python3 scripts/operations.py option project-event-workflows +python3 scripts/operations.py schema repos/update --section requestBody --pointer /content/application~1json/schema/properties/allow_squash_merge +python3 scripts/operations.py schema billing/get-all-budgets-org --section responses --pointer /200/content/application~1json/schema +``` + +The full official OpenAPI snapshot is preserved in rest-schema.json.gz. The inspector traverses internal references at each pointer step. Use the document section to inspect components or global metadata. The original digest is validated independently of the compact index. describe also reports known documentation/schema errata. + +Configuration groups include concrete values, defaults versus recommendations, decision rules, sources, community incident qualifications and proof. Follow the actual host and current documentation where behavior changed. + +## Complete page-based reads + +```sh +python3 scripts/operations.py collect issues/list-labels-for-repo --params '{"owner":"thinkhome-org","repo":"full-github","per_page":5}' --context https://github.com/thinkhome-org/full-github/issues/9 +``` + +collect reads page/per_page collections from page 1, including APIs with missing Link headers. It follows explicit has_next_page metadata or probes continuation independently of the requested page size. Totals must remain consistent. incomplete_results, repeated pages, count mismatches, parsing and transport failures keep complete false and preserve received pages. Use --items-pointer when a response contains multiple arrays. A failed collection returns nonzero. + +Cursor and nested GraphQL connections use their documented pagination protocol. Narrow search scopes to respect provider result limits and historical windows. complete describes exhausted pagination for the observed query; concurrent provider changes still require a stable time scope and reconciliation. + +## Execution records + +call and collect record local attempts and outcomes by default, with host and selected target metadata. Add --context with an issue, PR or discussion URL. Request/response bodies and header values are excluded. Dry-run redacts authentication headers. Read history and add verify-event only after actual read-back. --no-history supports explicitly ephemeral inspection. See [history and interaction](history-interaction.md). + +## Release lifecycle + +The repository's tagged release workflow validates source, packages committed hidden manifests, uploads a build artifact, produces a GitHub provenance attestation, resumes a draft release and verifies downloaded asset bytes before publication. Existing differing assets are preserved and block publication. An already-published release is verified without silent repair. RC tags retain prerelease classification. + +Use gh attestation verify against this repository after downloading an artifact. Wiki history, issue/PR history, CHANGELOG and recorded decisions preserve the reasons and outcomes around releases. diff --git a/tests/test_depth_history.py b/tests/test_depth_history.py new file mode 100644 index 0000000..d8e3587 --- /dev/null +++ b/tests/test_depth_history.py @@ -0,0 +1,180 @@ +import contextlib +import gzip +import hashlib +import io +import json +from pathlib import Path +import sqlite3 +import subprocess +import sys +import tempfile +from concurrent.futures import ThreadPoolExecutor +import unittest +from unittest import mock + +sys.path.insert(0, str(Path(__file__).parents[1] / "scripts")) +import operations +import execution_history + + +class ConfigurationDepthTests(unittest.TestCase): + def test_every_capability_has_concrete_option_decisions(self): + capabilities = json.loads((operations.DATA / "capabilities.json").read_text())["capabilities"] + groups = json.loads((operations.DATA / "configuration-options.json").read_text())["groups"] + covered = {capability for group in groups for capability in group["capability_ids"]} + self.assertEqual({capability["id"] for capability in capabilities}, covered) + self.assertEqual(len(groups), len({group["id"] for group in groups})) + for group in groups: + self.assertTrue(group["sources"], group["id"]) + self.assertTrue(group["options"], group["id"]) + for option in group["options"]: + for key in ("name", "values", "decision_rule", "verification"): + self.assertTrue(option[key], (group["id"], key)) + + def test_full_schema_matches_official_source_digest_and_all_indexed_routes(self): + with gzip.open(operations.DATA / "rest-schema.json.gz", "rb") as source: + raw = source.read() + index = operations.load_catalog() + self.assertEqual(hashlib.sha256(raw).hexdigest(), index["source_sha256"]) + schema = json.loads(raw) + for name, operation in index["operations"].items(): + self.assertEqual(schema["paths"][operation["path"]][operation["method"].lower()]["operationId"], name) + + def test_nested_reference_preserves_defaults_and_enum_constraints(self): + catalog = operations.load_catalog()["operations"] + value = operations.inspect_schema(catalog["repos/update"], "requestBody", "/content/application~1json/schema/properties/allow_squash_merge") + self.assertIs(value["default"], True) + value = operations.inspect_schema(catalog["projects/create-view-for-org"], "requestBody", "/content/application~1json/schema/properties/layout") + self.assertEqual(value["enum"], ["table", "board", "roadmap"]) + value = operations.inspect_schema(catalog["billing/get-all-budgets-org"], "responses", "/200/content/application~1json/schema/properties/budgets/items/properties") + self.assertIn("id", value) + root = operations.inspect_schema(catalog["repos/get"], pointer="#") + self.assertEqual(root["operationId"], "repos/get") + + +class CollectionTests(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.operation = operations.load_catalog()["operations"]["issues/list-labels-for-repo"] + + def collect(self, pages, operation=None, pointer="", params=None): + responses = iter(pages) + def run(argv, **kwargs): + self.assertNotIn("--slurp", argv) + self.assertNotIn("--paginate", argv) + value = next(responses) + if isinstance(value, Exception): + raise value + return subprocess.CompletedProcess(argv, 0, json.dumps(value), "") + return operations.collect_pages(operation or self.operation, + params or {"owner": "o", "repo": "r", "per_page": 2}, pointer, run=run) + + def test_missing_link_header_cannot_truncate_full_pages(self): + report = self.collect([[{"id": 1}, {"id": 2}], [{"id": 3}], []]) + self.assertTrue(report["complete"]) + self.assertEqual(report["item_count"], 3) + self.assertEqual(len(report["pages"]), 3) + + def test_explicit_next_page_takes_precedence_over_short_page(self): + report = self.collect([{"budgets": [{"id": 1}], "has_next_page": True, "total_count": 2}, + {"budgets": [{"id": 2}], "has_next_page": False, "total_count": 2}]) + self.assertTrue(report["complete"]) + self.assertEqual(report["item_count"], 2) + + def test_repeated_page_stops_without_claiming_completeness(self): + report = self.collect([[1, 2], [1, 2]]) + self.assertFalse(report["complete"]) + self.assertIn("no progress", report["error"]) + + def test_changed_totals_and_partial_failures_preserve_evidence(self): + report = self.collect([{"items": [1, 2], "total_count": 3}, {"items": [3], "total_count": 4}]) + self.assertFalse(report["complete"]) + self.assertEqual(len(report["pages"]), 2) + report = self.collect([[1, 2], subprocess.TimeoutExpired("gh", 60)]) + self.assertFalse(report["complete"]) + self.assertEqual(report["pages"], [[1, 2]]) + + def test_ambiguous_arrays_need_an_explicit_pointer(self): + report = self.collect([{"items": [1], "errors": []}]) + self.assertFalse(report["complete"]) + self.assertEqual(report["pages"], [{"items": [1], "errors": []}]) + report = self.collect([{"items": [1], "errors": []}, {"items": [], "errors": []}], pointer="/items") + self.assertTrue(report["complete"]) + + def test_backend_page_size_cap_does_not_truncate_collection(self): + report = self.collect([list(range(100)), [100], []], params={"owner": "o", "repo": "r", "per_page": 101}) + self.assertTrue(report["complete"]) + self.assertEqual(report["item_count"], 101) + + def test_incomplete_search_flag_is_never_a_complete_collection(self): + report = self.collect([{"items": [{"id": 1}], "total_count": 1, "incomplete_results": True}]) + self.assertFalse(report["complete"]) + self.assertEqual(report["item_count"], 1) + self.assertEqual(len(report["pages"]), 1) + + def test_total_mismatch_never_claims_completeness(self): + report = self.collect([{"items": [1], "total_count": 2}, {"items": [], "total_count": 2}]) + self.assertFalse(report["complete"]) + self.assertIn("does not match", report["error"]) + + +class HistoryTests(unittest.TestCase): + def setUp(self): + directory = tempfile.TemporaryDirectory() + self.addCleanup(directory.cleanup) + patch = mock.patch.object(execution_history, "DATABASE", Path(directory.name) / "private/history.sqlite3") + patch.start() + self.addCleanup(patch.stop) + + def test_attempt_result_and_verification_are_separate_append_only_events(self): + run_id = execution_history.start("issues/update", {"method": "PATCH"}, {"owner": "o", "repo": "r", "issue_number": 1}) + execution_history.finish(run_id, 0) + execution_history.verify(run_id, "matched", "https://github.com/o/r/issues/1") + events = execution_history.read_events(0) + self.assertEqual([event["kind"] for event in reversed(events)], ["started", "command_succeeded", "verification_recorded"]) + self.assertEqual(len({event["sequence"] for event in events}), 3) + self.assertEqual(execution_history.DATABASE.stat().st_mode & 0o777, 0o600) + + def test_failure_and_interruption_remain_unknown(self): + run_id = execution_history.start("issues/update", {"method": "PATCH"}, {}) + execution_history.finish(run_id, 7) + self.assertEqual(execution_history.read_events()[0]["kind"], "outcome_unknown") + interrupted = execution_history.start("issues/update", {"method": "PATCH"}, {}) + self.assertEqual(execution_history.read_events()[0]["run_id"], interrupted) + self.assertEqual(execution_history.read_events()[0]["kind"], "started") + + def test_sensitive_parameters_are_excluded_and_credential_links_rejected(self): + execution_history.start("apps/test", {"method": "POST"}, {"owner": "o", "token": "secret-value", "body": "private-body"}) + text = json.dumps(execution_history.read_events()) + self.assertNotIn("secret-value", text) + self.assertNotIn("private-body", text) + with self.assertRaises(ValueError): + execution_history.start("apps/test", {"method": "POST"}, {}, "https://github.com/o/r?token=secret") + + def test_concurrent_writers_preserve_every_event(self): + def record(number): + run_id = execution_history.start("issues/get", {"method": "GET"}, {"issue_number": number}) + execution_history.finish(run_id, 0) + with ThreadPoolExecutor(max_workers=4) as pool: + list(pool.map(record, range(8))) + events = execution_history.read_events(0) + self.assertEqual(len(events), 16) + self.assertEqual(len({event["run_id"] for event in events}), 8) + + def test_reading_missing_history_creates_no_database(self): + self.assertEqual(execution_history.read_events(), []) + self.assertFalse(execution_history.DATABASE.exists()) + with self.assertRaises(ValueError): + execution_history.verify("unknown", "matched", "https://github.com/o/r") + + def test_history_path_special_characters_do_not_change_sqlite_uri(self): + special = execution_history.DATABASE.parent / "history#question?.sqlite3" + with mock.patch.object(execution_history, "DATABASE", special): + run_id = execution_history.start("issues/get", {"method": "GET"}, {}) + execution_history.finish(run_id, 0) + execution_history.verify(run_id, "matched", "https://github.com/o/r/issues/1") + self.assertEqual(len(execution_history.read_events(0)), 3) + + +if __name__ == "__main__": + unittest.main() diff --git a/tests/test_operations.py b/tests/test_operations.py index 296d2f4..5fd4ef8 100644 --- a/tests/test_operations.py +++ b/tests/test_operations.py @@ -9,6 +9,10 @@ from http.server import BaseHTTPRequestHandler, HTTPServer import subprocess import threading +import sys +import tempfile + +sys.path.insert(0, str(Path(__file__).parents[1] / "scripts")) spec = importlib.util.spec_from_file_location("operations", Path(__file__).parents[1] / "scripts/operations.py") module = importlib.util.module_from_spec(spec) @@ -16,6 +20,12 @@ class OperationTests(unittest.TestCase): + def setUp(self): + directory = tempfile.TemporaryDirectory() + self.addCleanup(directory.cleanup) + patch = mock.patch.object(module.execution_history, "DATABASE", Path(directory.name) / "history.sqlite3") + patch.start() + self.addCleanup(patch.stop) @classmethod def setUpClass(cls): cls.catalog = module.load_catalog()["operations"] @@ -96,6 +106,14 @@ def test_dry_run_never_reaches_network(self): self.assertEqual(module.main(), 0) run.assert_not_called() + def test_dry_run_redacts_authentication_headers(self): + arguments = ["operations.py", "call", "repos/get", "--params", '{"owner":"o","repo":"r"}', "--dry-run", "--header", "Authorization: Bearer secret-value"] + output = io.StringIO() + with mock.patch("sys.argv", arguments), contextlib.redirect_stdout(output): + self.assertEqual(module.main(), 0) + self.assertNotIn("secret-value", output.getvalue()) + self.assertIn("redacted", output.getvalue()) + def test_array_filter_names_match_documented_wire_format(self): for name in ("orgs/list-pat-grant-requests", "orgs/list-pat-grants"): argv = module.build_request(self.catalog[name], {"org": "o", "owner": ["a", "b"], "token_id": [1, 2]}) diff --git a/tests/test_release.py b/tests/test_release.py new file mode 100644 index 0000000..964d7a9 --- /dev/null +++ b/tests/test_release.py @@ -0,0 +1,133 @@ +import hashlib +import json +from pathlib import Path +import subprocess +import sys +import tempfile +import unittest +import zipfile + +sys.path.insert(0, str(Path(__file__).parents[1] / "scripts")) +import package_release +import publish_release + + +class PackagingTests(unittest.TestCase): + def test_hidden_manifests_and_committed_version_are_verified(self): + with tempfile.TemporaryDirectory() as temporary: + root = Path(temporary) / "repo" + root.mkdir() + files = { + ".codex-plugin/plugin.json": json.dumps({"version": "0.3.0"}), + ".agents/plugins/marketplace.json": "{}", + "skills/full-github/SKILL.md": "skill", + "NOTICE.md": "third-party notice", + } + for name, content in files.items(): + path = root / name + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(content) + for arguments in (["init", "-b", "main", "--quiet"], ["config", "user.name", "Fixture"], + ["config", "user.email", "fixture@example.invalid"], ["add", "."], + ["commit", "--quiet", "-m", "fixture"]): + subprocess.run(["git", *arguments], cwd=root, check=True) + destination = package_release.package(root, Path(temporary) / "output", "v0.3.0") + with zipfile.ZipFile(destination) as zipped: + self.assertIn("full-github/.codex-plugin/plugin.json", zipped.namelist()) + self.assertIn("full-github/.agents/plugins/marketplace.json", zipped.namelist()) + self.assertEqual(hashlib.sha256(destination.read_bytes()).hexdigest(), Path(str(destination) + ".sha256").read_text().split()[0]) + with self.assertRaisesRegex(ValueError, "committed plugin version"): + package_release.package(root, Path(temporary) / "output", "v0.3.1") + self.assertFalse((Path(temporary) / "output/full-github-0.3.1.zip").exists()) + + +class PublicationTests(unittest.TestCase): + def setUp(self): + self.directory = tempfile.TemporaryDirectory() + self.addCleanup(self.directory.cleanup) + self.assets = [Path(self.directory.name) / "plugin.zip", Path(self.directory.name) / "plugin.zip.sha256"] + self.assets[0].write_bytes(b"archive") + self.assets[1].write_bytes(b"checksum") + self.exists = False + self.draft = True + self.prerelease = False + self.remote = {"human-notes.txt": b"preserve"} + self.uploads = [] + self.fail_second_upload = False + + def run_gh(self, argv, **kwargs): + action = argv[2] + if action == "view": + if not self.exists: + return subprocess.CompletedProcess(argv, 1, "", "release not found") + value = dict(isDraft=self.draft, isPrerelease=self.prerelease, assets=[dict(name=name) for name in self.remote], url="https://github.com/o/r/releases/tag/v0.3.0") + return subprocess.CompletedProcess(argv, 0, json.dumps(value), "") + if action == "create": + self.exists = True + self.prerelease = "--prerelease" in argv + elif action == "upload": + path = Path(argv[4]) + if self.fail_second_upload and path == self.assets[1].resolve(): + raise subprocess.CalledProcessError(1, argv) + self.assertNotIn(path.name, self.remote) + self.remote[path.name] = path.read_bytes() + self.uploads.append(path.name) + elif action == "download": + name = argv[argv.index("--pattern") + 1] + directory = Path(argv[argv.index("--dir") + 1]) + (directory / name).write_bytes(self.remote[name]) + elif action == "edit": + if "--draft=false" in argv: + self.assertTrue(all(path.name in self.remote for path in self.assets)) + self.draft = False + if "--prerelease=true" in argv: + self.prerelease = True + if "--prerelease=false" in argv: + self.prerelease = False + else: + self.fail(f"Unexpected command {argv}") + return subprocess.CompletedProcess(argv, 0, "", "") + + def test_retry_resumes_partial_draft_and_keeps_human_assets(self): + self.fail_second_upload = True + with self.assertRaises(subprocess.CalledProcessError): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + self.assertTrue(self.draft) + self.fail_second_upload = False + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + self.assertFalse(self.draft) + self.assertEqual(self.uploads, ["plugin.zip", "plugin.zip.sha256"]) + self.assertEqual(self.remote["human-notes.txt"], b"preserve") + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + self.assertEqual(len(self.uploads), 2) + + def test_different_existing_asset_is_preserved_and_blocks_publication(self): + self.exists = True + self.remote["plugin.zip"] = b"different" + with self.assertRaisesRegex(RuntimeError, "no asset was overwritten"): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + self.assertTrue(self.draft) + self.assertEqual(self.remote["plugin.zip"], b"different") + + def test_published_release_is_never_repaired_by_silent_mutation(self): + self.exists = True + self.draft = False + with self.assertRaisesRegex(RuntimeError, "Published release is missing"): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + self.assertFalse(self.uploads) + + def test_rc_release_is_published_as_prerelease(self): + publish_release.publish("o/r", "v0.3.0-rc.1", self.assets, self.run_gh) + self.assertTrue(self.prerelease) + self.assertFalse(self.draft) + + def test_invalid_targets_and_duplicate_names_fail_before_draft_creation(self): + with self.assertRaises(ValueError): + publish_release.publish("../..", "v0.3.0", self.assets, self.run_gh) + with self.assertRaisesRegex(ValueError, "unique"): + publish_release.publish("o/r", "v0.3.0", [self.assets[0], self.assets[0]], self.run_gh) + self.assertFalse(self.exists) + + +if __name__ == "__main__": + unittest.main() diff --git a/wiki/API.md b/wiki/API.md index 0a111ee..a78a75b 100644 --- a/wiki/API.md +++ b/wiki/API.md @@ -79,3 +79,37 @@ python3 -m unittest discover -s tests -v The OpenAPI input is the official document containing paths, components and operationId fields. The GraphQL input contains data.__schema.types with fields, args, inputFields, enumValues and nested type references. Use includeDeprecated on field and enum introspection. The generator derives the full query/mutation index from Query and Mutation types, including deprecated entries. Source digest and retrieval date are recorded for drift verification. Review new products, endpoints and schema changes against domain references and the capability catalog. Updating the operation registry alone cannot establish that new functionality has been tested. + + +## Inspect nested choices + +```sh +python3 scripts/operations.py options review +python3 scripts/operations.py option project-event-workflows +python3 scripts/operations.py schema repos/update --section requestBody --pointer /content/application~1json/schema/properties/allow_squash_merge +python3 scripts/operations.py schema billing/get-all-budgets-org --section responses --pointer /200/content/application~1json/schema +``` + +The full official OpenAPI snapshot is preserved in rest-schema.json.gz. The inspector traverses internal references at each pointer step. Use the document section to inspect components or global metadata. The original digest is validated independently of the compact index. describe also reports known documentation/schema errata. + +Configuration groups include concrete values, defaults versus recommendations, decision rules, sources, community incident qualifications and proof. Follow the actual host and current documentation where behavior changed. + +## Complete page-based reads + +```sh +python3 scripts/operations.py collect issues/list-labels-for-repo --params '{"owner":"thinkhome-org","repo":"full-github","per_page":5}' --context https://github.com/thinkhome-org/full-github/issues/9 +``` + +collect reads page/per_page collections from page 1, including APIs with missing Link headers. It follows explicit has_next_page metadata or probes continuation independently of the requested page size. Totals must remain consistent. incomplete_results, repeated pages, count mismatches, parsing and transport failures keep complete false and preserve received pages. Use --items-pointer when a response contains multiple arrays. A failed collection returns nonzero. + +Cursor and nested GraphQL connections use their documented pagination protocol. Narrow search scopes to respect provider result limits and historical windows. complete describes exhausted pagination for the observed query; concurrent provider changes still require a stable time scope and reconciliation. + +## Execution records + +call and collect record local attempts and outcomes by default, with host and selected target metadata. Add --context with an issue, PR or discussion URL. Request/response bodies and header values are excluded. Dry-run redacts authentication headers. Read history and add verify-event only after actual read-back. --no-history supports explicitly ephemeral inspection. See [history and interaction](https://github.com/thinkhome-org/full-github/wiki/History). + +## Release lifecycle + +The repository's tagged release workflow validates source, packages committed hidden manifests, uploads a build artifact, produces a GitHub provenance attestation, resumes a draft release and verifies downloaded asset bytes before publication. Existing differing assets are preserved and block publication. An already-published release is verified without silent repair. RC tags retain prerelease classification. + +Use gh attestation verify against this repository after downloading an artifact. Wiki history, issue/PR history, CHANGELOG and recorded decisions preserve the reasons and outcomes around releases. diff --git a/wiki/Architecture.md b/wiki/Architecture.md index 1200031..f77117d 100644 --- a/wiki/Architecture.md +++ b/wiki/Architecture.md @@ -17,3 +17,9 @@ audit.py probes repository/organization settings and paginated Project fields/it ## Distribution and maintenance The Git marketplace installs the versioned plugin into Codex. CI validates tests, manifests, catalog schema and generated documentation. CodeQL scans Python. The Wiki mirrors source-controlled pages. See [[API]] for registry refresh. + +## Configuration and execution records + +The complete official REST source is stored compressed with a digest. The option layer maps every capability to concrete values and project decision/verification rules, including dated official and community evidence. Source-backed errata remain distinct from the original schema. + +The executor journals attempts/results in private local SQLite state and records later verification references separately. Native GitHub records preserve actors, reviews, discussion/Wiki history and publication. Release jobs produce checksums and provenance and resume partial drafts without overwriting asset bytes. diff --git a/wiki/Community.md b/wiki/Community.md new file mode 100644 index 0000000..da10760 --- /dev/null +++ b/wiki/Community.md @@ -0,0 +1,17 @@ +# Working with people + +Start with the [pinned welcome discussion](https://github.com/thinkhome-org/full-github/discussions/10). + +| Need | Channel | Record | +| --- | --- | --- | +| Installation or workflow question | Q&A Discussions | Goal, version/host when relevant, sanitized evidence and accepted answer | +| Proposal or unclear configuration choice | Ideas Discussions | Intended outcome, options/tradeoffs, sources and recorded decision | +| Reproducible defect | Issue form | Expected/actual behavior, reproduction and verification | +| Code/configuration change | Linked pull request | Before/desired state, tests, source/history links and review conversation | +| Security vulnerability | Private reporting | Confidential evidence and coordinated disclosure | + +Accepted work is linked to an issue, milestone and Project item. Preserve its original discussion and any review history. A later decision should explain why it supersedes the earlier choice. + +Codex-assisted maintenance is identified in the welcome discussion. Real human approvals, reactions and answers come from their actual authors. Single-maintainer workflows do not pretend to have independent peer approval. Required reviews and environment approvals must be completed by eligible people through GitHub. + +Use the [history guide](https://github.com/thinkhome-org/full-github/blob/main/skills/full-github/references/history-interaction.md), [configuration decisions](https://github.com/thinkhome-org/full-github/wiki/Configuration) and [contribution guide](https://github.com/thinkhome-org/full-github/blob/main/CONTRIBUTING.md). Share only sanitized execution metadata. The local journal records CLI attempts and verification references; authenticated GitHub records retain the native actor, review and publication history. diff --git a/wiki/Configuration.md b/wiki/Configuration.md new file mode 100644 index 0000000..51644d2 --- /dev/null +++ b/wiki/Configuration.md @@ -0,0 +1,2364 @@ +# Configuration decisions + +Reviewed 2026-11-15. 82 decision groups contain 451 concrete configuration choices covering every catalog capability. + +Choose settings from the project's actual requirements, observed state, access policy and host version. Record the selected value, rationale, owner, historical evidence and read-back verification. Preserve existing custom settings and identities. + +Official documentation establishes current supported behavior. Community links provide incident history and practical pitfalls. Check their date and current applicability before applying a workaround. Full REST schemas and GraphQL input types provide the nested API constraints alongside these decisions. + +## Repository identity, defaults and collaboration surfaces + +Group ID repository-collaboration-settings. + +Capabilities repository-lifecycle, repository-branches, repository-autolinks, repository-community. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| visibility / private | public, private, internal where eligible | Preserve observed visibility; assess access and discoverability before a requested change, never make a private project public as routine setup. | Re-read visibility and intended reader access; inspect fork implications before changing. | +| default_branch | existing branch name | Retain the current branch unless migration is required; discover branch names before configuring CI, templates or closing links. | Read repository default_branch, ref SHA and PR bases after any authorized rename. | +| has_issues / has_projects / has_wiki / has_discussions | independent booleans | Enable the surfaces the project will actively use; enabling a repository Projects tab does not create or configure an owner Project. | Read each flag and follow the actual tab and linked owner Project. | +| description / homepage / topics | text, HTTPS URL, topic list | Use concise purpose and a working primary documentation URL; preserve unrelated topics and owner-defined metadata. | Read metadata and open rendered links; check topic replacement semantics before writing. | +| autolinks.key_prefix / url_template / is_alphanumeric | tracker prefix, URL with , boolean | Add only for a real external tracker; choose a non-colliding prefix and correct numeric versus alphanumeric matching. | Read rule IDs and test a harmless rendered example without sending a comment. | +| archived / disabled | repository lifecycle flags | Archive only when work truly ends; do not archive to represent a finished milestone or Project. | Re-read flags, open work and expected read-only behavior; record unarchive recovery path. | + +### Pitfalls + +- Repository flag defaults vary with creation path and owner settings; never infer actual configuration from product availability. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/repos) +- [Official sources 2](https://docs.github.com/en/rest/repos/autolinks) + +## Source changes, history and repository derivation + +Group ID source-and-history-policy. + +Capabilities repository-content, repository-git-objects, repository-history, repository-lfs-submodules, repository-templates, repository-forks, repository-commit-comments. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| content.ref / expected sha | immutable commit SHA, branch, tag; update blob SHA | Read immutable refs for evidence; use Git for multi-file work and expected old SHAs for API writes. | Inspect resulting commit tree and parents plus changed-file list; reconcile timeout before retry. | +| ref.force / git push strategy | non-force, force-with-lease when explicitly justified | Preserve human commits; default to non-force updates, compare remote head and use a lease only for authorized history rewrite. | Fetch and compare old/new ref OIDs; stop if remote changed unexpectedly. | +| merge history | merge commit, squash, rebase | Follow repository policy; merge preserves branch commits, squash gives one logical commit, rebase rewrites commit identities. | Match resulting base-branch commit and PR merge metadata; keep issue/PR links as decision history. | +| template.include_all_branches / fork.default_branch_only | boolean choices | Template copies start a separate history; forks preserve an upstream relationship. Choose based on contribution versus new-project intent. | Inspect parent/source or is_template relationship and compare expected branches/files. | +| LFS / submodule checkout | pointer versus object, pinned SHA, recursive checkout | Fetch only required objects and pinned submodules; never treat an LFS pointer or gitlink as tested source content. | Verify actual object bytes, submodule OIDs and executable/symlink modes. | +| comment anchor | commit SHA, file path, valid line | Commit comments discuss a specific historical revision; use a PR review thread for an actionable PR finding. | Read returned comment ID, commit_id and line metadata; retain URL when following up. | + +### Pitfalls + +- A Git clone does not contain issues, review conversations, Project configuration or Wiki history. Separate evidence stores are needed for those records. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/contents) +- [Official sources 2](https://docs.github.com/en/rest/git/refs) +- [Official sources 3](https://docs.github.com/en/pull-requests/reference/pull-request-merges) + +## Who receives review and when + +Group ID codeowner-routing. + +Capabilities repository-codeowners, pr-review-requests. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| CODEOWNERS location / matching order | .github/CODEOWNERS, root CODEOWNERS, docs/CODEOWNERS; last matching pattern | Use one authoritative file on the PR base branch, broad ownership first and narrow overrides later; list multiple owners together. | Read actual base-branch file, query CODEOWNERS errors and map representative changed paths. | +| owner eligibility | user with write, visible team with explicit write | Reuse real maintainers; do not invent a reviewer or broaden team visibility/access to make routing work. | Verify team visibility and repository role; inspect requests on a matching ready PR. | +| requested_reviewers / requested_teams | user logins, organization team slugs | Request the smallest relevant set; requests notify people, so repository setup alone is not authority to send them. | Read outstanding review requests and submitted reviews separately; a removed request may mean review completed. | +| draft to ready | draft, ready for review | Keep incomplete work draft; move ready when description, diff and checks support review. CODEOWNERS automatic requests happen on readiness. | Re-read isDraft and automatic requests; explain review scope in the authorized PR description. | +| require_code_owner_reviews | false, true through branch policy | Routing alone never enforces approval; enable enforcement where actual independent owners exist and repository rules call for it. | Read effective protection/ruleset plus PR reviewDecision; avoid self-approval deadlock. | + +### Pitfalls + +- The author cannot approve their own PR. A single-maintainer repository may deliberately require zero peer approvals while retaining routing and required checks. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) +- [Official sources 2](https://docs.github.com/en/rest/pulls/review-requests) + +## Issue chooser and PR template routing + +Group ID issue-intake-routing. + +Capabilities issue-forms-templates, pr-templates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| chooser.blank_issues_enabled / contact_links | true, false; name/url/about entries | Keep an accessible path for unusual reports; route support and private vulnerabilities to actual staffed destinations. | Render chooser as intended contributor; open every contact URL without submitting. | +| form.name / description / title | unique chooser name, purpose text, optional title prefix | Separate reproducible defects from proposals only when triage differs; avoid prefixes duplicating structured type. | Open every template on default branch and check readable chooser order and defaults. | +| form.labels / assignees / type | existing labels, assignable users, existing owner issue type | Reuse taxonomy; default assignees only when maintainers accept that responsibility; labels must already exist. | Check available labels/types/assignees and inspect a permitted representative result. | +| form.projects | OWNER/NUMBER list | For external reporters prefer Project auto-add because template project insertion needs the submitter's write access to that Project. | Verify with relevant contributor permission context; do not use maintainer success as outsider proof. | +| PR template selection | .github/pull_request_template.md, PULL_REQUEST_TEMPLATE/name.md and template query | Use concise purpose/validation/risk prompts; multiple templates need an actual selection link/process, not an assumed automatic chooser. | Open new-PR draft composer and test the intended template URL without posting. | +| inheritance / placement | repository templates, owner .github defaults | Inventory inherited files before adding duplicates; default-branch placement controls normal chooser availability. | Compare effective chooser and local/owner file sources, including casing and extension. | + +### Pitfalls + +- Issue forms become editable Markdown; required form controls are intake aids, not permanent structured-field enforcement. Issue forms are not PR forms. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms) +- [Official sources 2](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) + +## Nested form controls and validation + +Group ID form-controls. + +Capabilities issue-forms-templates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| body[].type / id | markdown, input, textarea, dropdown, checkboxes, upload; unique alphanumeric/-/_ IDs | Pick the control matching the answer; use stable unique IDs for supported prefills and future maintenance. | Validate schema and render each control on the target host; require a non-markdown control. | +| input.attributes | label, description, placeholder, value; validations.required | Require actionable minimum information, not optional diagnostics; placeholders are examples, values are submitted defaults. | Clear required inputs in preview and inspect validation behavior without posting. | +| textarea.attributes | label, description, placeholder, value, render; validations.required | Use render for literal logs/code only; omit it when Markdown editing or attachment affordances are needed. | Check code-fence output and attachment/Markdown behavior in composer. | +| dropdown.attributes | options[], multiple true/false, default index; validations.required | Default only when the common choice is safe; use no default when choosing version/platform must be deliberate. | Check unique options, index bounds, single versus multiple selection and empty validation. | +| checkboxes.attributes.options[] | label, required true/false | Require only a meaningful acknowledgement; individual required flags differ from an optional checklist. | Test unchecked required item and check rendered links and separate labels. | +| markdown / upload | markdown.value, upload label/description/required where supported | Markdown guidance is not submitted content; keep critical reporting requirements in actual controls. Upload only needed files with privacy guidance. | Preview target schema support; inspect attachment expectations and avoid requesting secrets. | + +### Pitfalls + +- Do not invent regex validators, conditional controls or arbitrary client logic; unsupported YAML keys can prevent the form appearing. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema) +- [Official sources 2](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms) + +## Types, labels, owners and milestone planning + +Group ID issue-taxonomy. + +Capabilities issue-metadata, issue-assignees, issue-milestones, issue-types, issue-types-owner. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| issue.type / owner definition | enabled type ID, null; name/description/color/is_enabled | Prefer the owner's existing Bug/Task/Feature equivalents; types describe work kind rather than transient status. Owner edits affect other repositories. | List owner and repository types, then read the issue's assigned type ID. | +| labels[] / label color-description | names and IDs, six-digit color, explanatory description | Labels serve useful cross-cutting queries; preserve customized names/colors and add/remove narrowly instead of replacing all. | Compare before/after label ID sets and rendered descriptions; check saved filters still match renamed labels. | +| assignees[] | eligible user logins, empty list | Assign a responsible person only when the task or project convention authorizes it; assignment does not mean acceptance. | Check assignability then re-read the exact assignee set; do not confuse PR reviewer and assignee. | +| milestone.title / description / due_on / state | repository milestone, ISO8601 date, open/closed | Use milestones for real releases/deadlines, not arbitrary duplicates of Project iterations; dates are targets. | Read milestone counters and all included open/closed issues and PRs; closing milestone does not close work. | +| metadata mutation mode | add, remove, replace | Use delta mutations for focused edits; reserve replace for an explicitly reconciled full desired set. | Re-read concurrent metadata before write and confirm unrelated labels/assignees remain. | + +### Pitfalls + +- Do not create a new taxonomy each run or use a label named Feature as proof native issue type is configured. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/labels) +- [Official sources 2](https://docs.github.com/en/rest/issues/assignees) +- [Official sources 3](https://docs.github.com/en/rest/issues/milestones) +- [Official sources 4](https://docs.github.com/en/rest/orgs/issue-types) + +## Shared issue definitions and Project-local fields + +Group ID shared-issue-fields. + +Capabilities issue-fields, issue-field-values, projects-issue-fields, projects-multiselect. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| field scope / applicability | owner issue field, Project field; same-owner issues only | Put reusable facts on the issue; Project issue-field cells are empty for PRs, draft items and issues from other owners. | Read owner definition, issue sidebar and Project column as intended audience; missing applicability is not missing data. | +| visibility / API enum | Restricted/Public in UI, restricted/all in REST, deprecated organization_members_only | Retain restricted default for nonpublic planning facts; public/internal Projects expose only Public issue fields. Changing to Restricted removes the field from those Projects. | Read exact API visibility and inspect viewer/sidebar/timeline/Project behavior; do not change visibility merely to display a column. | +| pin to types / field limits | selected issue type IDs, Issues without a type, no pins; current 25 owner fields/100 select options/10 pins per type/50 total Project fields | Pin relevant fields so creation/view surfaces show them automatically; unpinned fields remain available through Add field and Projects. Limits differ from Project single-select options. | Read pin mapping for typed and untyped issues and count all system/issue/local Project fields; verify target-host limits before creating. | +| data_type / typed value | text, number, date, single_select, multi_select where supported | Select type from actual schema; use date for dates and number for arithmetic, not formatted strings. | Inspect supported owner and Project types separately; round-trip one permitted value of the selected type. | +| select options | stable ID, name, description, color; default where supported | Reuse IDs; rename in place when supported, never recreate populated options just to reorder or recolor. | Export affected values before change and compare option IDs and representative assignments afterward. | +| issue field values operation | add, set, delete; typed scalar or option IDs | Preserve unrelated values and distinguish adding multi-select members from replacing the selected set. | Read all current issue-field-values and compare exact changed field and option IDs. | +| intake population | sidebar, API, Actions, supported Project column | Do not promise template or URL prefill of native issue fields; those are currently unsupported in the consulted product guide. | Verify creation path then read the issue fields, not Markdown text that happens to have the same heading. | + +### Pitfalls + +- A community preview announcement is not proof of API type support or entitlement. Inspect the exact host schema and actual rendered field. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-and-managing-issue-fields) +- [Official sources 2](https://docs.github.com/en/rest/issues/issue-field-values) +- [Official sources 3](https://docs.github.com/en/rest/orgs/issue-fields) +- [Official sources 4](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-issue-fields) +- [Official sources 5](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/202760) + +## Completion, hierarchy, blockers and identity + +Group ID issue-state-and-relations. + +Capabilities issue-lifecycle, issue-subissues, issue-dependencies, issue-related, issue-transfer-pin-duplicate, issue-linked-branches, issue-planning-status. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| state / state_reason | open, closed; completed, not_planned, reopened where accepted | Close completed only with acceptance evidence; not-planned needs a decision reason; reopen the original issue for the same unfinished work. | Read state/state_reason and timeline; closing is not deployment verification. | +| parent / child order | issue database IDs, parent relationship, ordered sub-issues | Use one parent for decomposition, preserve child identity and ordering; avoid manufacturing hierarchy for unrelated work. | Read parent and child sides, all pages and final sibling order; current product limits are 100 children and eight levels. | +| blocked_by / blocking | directed native issue dependencies | Record A blocked by B when B must finish first; parenthood and a mention do not establish dependency. | Query both directions and verify no self/cyclic/duplicate relationship accepted by the host. | +| related / duplicate | related edge, duplicate_of, mark/unmark duplicate | Link peers as related; point duplicates to the canonical issue and retain the reporter's reproduction details there by reference. | Read canonical URLs and relationship timeline; do not delete duplicate history. | +| transfer / pin | destination repository, pinned/unpinned | Transfer only after access/ownership consequences are understood; use pins for durable current entry points, not every issue. | Follow old URL, read new repository/number/ID, metadata and relationship preservation. | +| linkedBranch.repositoryId / name / oid | chosen repository, branch name, base commit | Start from observed default/base SHA unless task needs a release branch; link existing work before creating duplicate branches. | Read actual ref OID and issue linkedBranches; link does not substitute for a closing PR. | +| planning status | discovered status ID, duplicate reference where supported | Preview planning statuses may transition issue state; use only after discovering viewerCanSetStatus and available statuses. | Read status plus open/closed state and duplicate target; do not equate it to Project Status. | + +### Pitfalls + +- Removal of a hierarchy/dependency edge is not deletion of either issue. Native relationships need actual API/UI evidence, not a checklist in the body. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/issues) +- [Official sources 2](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues) +- [Official sources 3](https://docs.github.com/en/rest/issues/issue-dependencies) +- [Official sources 4](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-a-branch-for-an-issue) + +## Human conversation and durable evidence + +Group ID timeline-and-conversation-preservation. + +Capabilities issue-comments, issue-timeline, issue-artifacts, repository-history. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| read model | issue body, paginated comments, timeline events, reviews and threads | Read all relevant streams before replying; issue body and last few visible comments omit decisions, force pushes, transfers and prior review outcomes. | Independently paginate nested connections; reconcile IDs/timestamps and retrieve referenced objects. | +| edit versus append | correct current body, new progress/decision comment, retain superseded links | Edit the canonical description to reflect current scope; append material decisions and corrections when authorized so reasoning remains chronological. | Compare prior content and edit history where available; retain earlier evidence URLs and authorship. | +| comment/reply location | issue conversation, PR summary, review thread reply, Discussion answer | Reply in the thread containing the question; distinguish implemented fix, justified disagreement, unresolved question and deferred follow-up. | Read thread root/reply IDs and resulting thread state; never claim a pending review was delivered. | +| notifications / mentions | direct mention, team mention, no mention; user subscription | Mention only relevant people when an authorized message needs their attention; do not silently change watch/subscription settings. | Inspect recipient and final posted location; API success is not proof the user read the message. | +| attachments / artifacts | canonical ID, immutable URL/ref, access-restricted resource | Preserve attachment identity and permissions; reference existing logs/files instead of re-uploading private content publicly. | Verify readable content with permitted audience and identify expiry; attachment presence is not content validation. | +| recovery after ambiguous write | reconcile by ID/body/context, retry missing write only | Avoid duplicate posts after timeouts; inspect recent author/timestamp/body and relationship events before retry. | Capture canonical ID/URL and distinguish already-applied from unapplied writes. | + +### Pitfalls + +- Git history is not conversation history; activity feeds are not complete audit logs. Loading an old thread in UI may collapse large portions. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/issues/timeline) +- [Official sources 2](https://docs.github.com/en/rest/issues/comments) +- [Official sources 3](https://docs.github.com/en/graphql/reference/users#usercontentedit) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/5119) +- [Community reports 2](https://github.com/orgs/community/discussions/33551) + +## PR intent, comparison base and connected work + +Group ID pr-creation-and-linking. + +Capabilities pr-lifecycle, pr-linking, pr-templates, pr-stacks, pr-archival. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| head / base / draft | owner:branch, repository base branch, boolean | Discover existing PR before creating; choose correct target release/default branch and draft state from readiness. | Read head repo/ref/SHA, base ref/SHA and isDraft; inspect full diff against merge base. | +| title / body / maintainer_can_modify | current problem and result, validation and limits, boolean | Describe final scope and evidence; allow fork-maintainer edits only when contributor intent and repository trust permit. | Re-read rendered description and fork edit permission; retain rationale and linked decisions. | +| closing keyword / manual development link | closes/fixes/resolves #N, OWNER/REPO#N, manual same-repo link | Use closing intent only for fully satisfied issues targeting default branch; use plain references for partial work or release-target PRs. | Check development links before merge, issue state and timeline after merge; commit-only closing may omit PR sidebar linkage. | +| base retarget / branch rewrite | new base, merge update, rebase update | Recheck scope before retargeting; changing base can remove visible commits and make inline comments outdated. Preserve decision URLs and communicate material scope changes in authorized flow. | Compare old/new base/head SHAs, diff, review freshness and unresolved/outdated threads. | +| native stack / archival | detected stack relationship, archive/unarchive | Use native stack support only where available; archive is distinct from close, branch deletion and Project archive. | Read actual stack/base relationships or archived/state fields and timeline; do not simulate support with text and label it configured. | + +### Pitfalls + +- A PR references the live head branch; pushing after review changes the material under review. Closing without merge does not mean delivered. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/pulls/pulls) +- [Official sources 2](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue) +- [Official sources 3](https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/changing-the-base-branch-of-a-pull-request) + +## Review decisions, anchors, pending state and resolution + +Group ID review-submission-and-threads. + +Capabilities pr-reviews, pr-review-comments, pr-file-view-state. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| review.commit_id / event | observed head SHA; omitted event=PENDING, COMMENT, APPROVE, REQUEST_CHANGES | Bind evidence to the reviewed head. Draft/pending reviews are private; submit only the intended decision and explain actionable findings. | Read review ID, commit_id, state, submitted_at and comments; author cannot approve own PR. | +| inline anchor | commit_id, path, line/side, start_line/start_side, subject_type line/file | Anchor to an actual diff on the observed SHA; prefer current line/side coordinates, not deprecated positional guessing. | Re-read comment diff_hunk, original/current line and commit IDs; wrong anchor requires correction, not silent relocation. | +| reply and suggestion | in_reply_to root ID, suggestion block, batched application | Preserve original conversation; inspect suggestions as code, batch related accepted edits and verify new commits. | Read replies and resulting branch SHA; rerun affected checks after applying suggestions. | +| viewed files / diff settings | mark/unmark viewed, unified/split, ignore whitespace | Viewed is personal progress, not approval; inspect whitespace when meaningful and unmark changed files requiring another pass. | Read viewerViewedState as same viewer and current path/head; record what was actually reviewed. | +| thread.resolve / reopen | resolved, unresolved, outdated | Resolve after code/evidence addresses the finding or recorded agreement; outdated merely means anchor drift, not fixed. | Read isResolved/isOutdated and implementing commit or linked follow-up; preserve unresolved material objections. | +| dismissal.message / restrictions | required rationale, eligible actor | Dismiss only invalidated/unavailable-reviewer feedback with an explicit reason and policy authority; do not erase dissent to unblock merge. | Read dismissed review state and timeline rationale plus remaining effective review requirements. | + +### Pitfalls + +- Review comments, issue-style PR comments and commit comments are different stores. Never respond to only the summary while missing inline threads. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/pulls/reviews) +- [Official sources 2](https://docs.github.com/en/rest/pulls/comments) +- [Official sources 3](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/reviewing-proposed-changes-in-a-pull-request) +- [Official sources 4](https://docs.github.com/en/pull-requests/how-tos/review-pull-requests/dismissing-a-pull-request-review) + +## Merge settings and asynchronous delivery + +Group ID merge-options-and-delivery. + +Capabilities pr-merge, pr-auto-merge, pr-merge-queue, pr-update-revert-cleanup, pr-agent-merge. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| allow_merge_commit / allow_squash_merge / allow_rebase_merge | independent booleans | Follow existing history policy and effective branch rules; retain squash-only delivery where the repository policy requires it. Avoid introducing several methods without a reason. | Read repository flags and allowed methods in effective rules; inspect actual resulting commit topology. | +| squash_merge_commit_title / message | PR_TITLE or COMMIT_OR_PR_TITLE; PR_BODY or COMMIT_MESSAGES or BLANK | Prefer stable PR title plus reviewed useful body for a one-change PR; inspect generated message for accidental skip directives or sensitive diagnostics. | Preview final message and read resulting commit; verify expected CI ran on the merged SHA. | +| merge_commit_title / message | PR_TITLE or MERGE_MESSAGE; PR_BODY or PR_TITLE or BLANK | If merge commits are enabled, choose a useful durable description without dumping transient logs. | Read supported enum payload and final commit message; no configuration claim from preview alone. | +| merge.sha / merge_method | exact reviewed head SHA, merge/squash/rebase | Guard the merge against concurrent head changes; do not override required checks, outstanding review or queue to satisfy a local plan. | Re-read current head and gate state, then resulting merged flag, merge_commit_sha and base ref. | +| auto-merge / queue entry | enabled/disabled, selected allowed merge method, queued state | Enable only for reviewed intent and qualifying rules; enqueue/enable is pending work, not completion. | Poll meaningful state changes until merge/failure or handoff; inspect queue removal reason and merged commit checks. | +| update_branch.expected_head_sha / delete_branch_on_merge / revert | expected head guard, boolean, revert PR | Update only after inspecting divergence; delete truly merged disposable branches, retain long-lived branches. Revert through a tracked PR rather than history rewrite. | Confirm head after update, branch absent only when intended, and revert result against merged commit. | + +### Pitfalls + +- Squash of a reused long-lived branch can replay prior commits in later PRs; start a fresh branch. Agent-merge eligibility must be checked separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests) +- [Official sources 2](https://docs.github.com/en/pull-requests/reference/pull-request-merges) +- [Official sources 3](https://docs.github.com/en/rest/pulls/pulls) +- [Official sources 4](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/179965) + +## Project scope, access and item identity + +Group ID project-identity-access. + +Capabilities projects-lifecycle, projects-access, projects-items. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| owner / number / node ID | organization Project, user Project, stable project ID | Reuse an existing matching Project; store owner/number/URL and node ID, never treat repository Projects flag as owner Project setup. | Read Project owner/ID/title/closed/public and linked repository list. | +| visibility / base permission / explicit collaborators | public/private, none/read/write/admin where available, users/teams | Choose least privilege for the real audience; repository access and Project access are separate. Draft titles and custom data can expose information. | Read base/explicit grants and inspect as intended reader; do not broaden repo access to make a Project readable. | +| item content type / IDs | Issue, PullRequest, DraftIssue; item ID distinct from content ID | Keep tracked work as native issues/PRs; draft ideas are appropriate before a repository is selected. Reuse existing item for content ID. | Paginate items and match content node ID/URL, including archived entries. | +| draft conversion | destination repository, issue metadata | Convert when the work has a responsible repository; preserve draft body, relevant fields and links, and check access before conversion. | Read returned issue URL and item content type/field values; do not create a second item for the same work. | +| item reorder / archive / delete | relative item order, archived flag, remove from Project | Use archive for recoverable history; deletion removes membership/field data, not the underlying issue. | Compare item IDs and saved values; restore archive when needed and verify representative fields. | + +### Pitfalls + +- Successful item-add is not proof that every view will show it: filters, archives, pagination, permissions or a service incident can hide the item. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-visibility-of-your-projects) +- [Official sources 3](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/193194) + +## Project field configuration and value integrity + +Group ID project-field-schema. + +Capabilities projects-fields, projects-field-values, projects-issue-fields, projects-multiselect. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| field data type / semantic scope | text, number, date, single select, iteration, supported multi-select, built-in issue fields | Reuse built-in title/assignee/type/milestone and shared issue facts; create local fields only for Project-specific planning. | Inventory field IDs/types and example values; distinguish issue fields from similar-name local fields. | +| Status options / order / default | discovered IDs; e.g. Todo/In Progress/Done; optional default | Retain established names/IDs and explicitly define completion. Default to intake/Todo only if all newly added work is truly queued. | Read options/default and a newly added versus existing item; default changes must not silently rewrite old work. | +| select label / description / color | option ID, label, meaning, available color enum | Give ambiguous statuses a usable entry/exit definition; preserve IDs across cosmetic changes. Colors supplement text, never replace meaning. | Compare option IDs before/after, sampled assignments and UI descriptions; inspect schema before option-list replacement. | +| field mutation payload | typed text/number/date/singleSelectOptionId/iterationId, supported multi-select values | Send exactly the relevant value member using discovered IDs; clearing a field is a separate intentional action. | Read the changed field value and verify unrelated values remain; preserve zero versus unset. | +| field deletion / option removal | keep, migrate, delete with affected-value inventory | Migrate populated values before any authorized deletion; export mapping because recreating the same name may not recover identity. | Compare all affected item values and saved-view/filter/workflow references; never prove safety using only one empty item. | + +### Pitfalls + +- Current single-select guide documents at most 50 options and an optional default for newly added items; target API/UI default support still requires discovery. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-single-select-fields) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-text-and-number-fields) +- [Official sources 3](https://docs.github.com/en/graphql/reference/projects) + +## Iteration schedules and rollover + +Group ID project-iterations. + +Capabilities projects-iterations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| iteration configuration | start date, duration number, days/weeks | Match the actual team's planning cadence and timezone assumptions; do not auto-create indefinite schedules. | Read configuration plus automatically created iterations and exact IDs/dates. | +| iteration instance | title, startDate, duration, completed/active iteration ID | Preserve completed iteration identity and assignments; amend future dates deliberately rather than shifting historical interpretation. | Compare old/new date ranges and representative assigned work. | +| breaks | insertion point, break date range | Reflect actual holidays/pauses; inspect generated dates after insertion rather than assuming later schedule is unchanged. | Re-read all affected intervals and check no unintended overlap or shifted promised dates. | +| rollover | selected unfinished items, target iteration ID, preserve completed assignments | Move only unfinished selected work when agreed; keep prior commitment context in authorized update/history instead of silently rewriting all scope. | Compare item IDs/status and previous/target iteration assignments, including nonselected completed work. | + +### Pitfalls + +- An iteration field initially creates three iterations; a break initially follows the prior duration. Product defaults are starting data, not a planning decision. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields/about-iteration-fields) + +## View identity, shared configuration and safe filters + +Group ID project-saved-views. + +Capabilities projects-views, projects-layout, projects-filters. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| view name / layout / position | table, board, roadmap; saved view ID/order | Name views by the decision they support, e.g. Intake, Active work, Release roadmap; set default/first useful view for readers. | Read every saved view and reload shared URL, including ordering and unsaved-change indicators. | +| filter scope | repo/is/reason/assignee/label/type and custom field qualifiers supported in view | Store exact query, not a prose claim; include explicit repo/type/state where needed and quote multiword names. | Check representative included/excluded items and zero-value/unassigned cases; a filter is not an access boundary. | +| number/date/iteration comparison | > >= < <=, ranges, @current/@next where supported | Use date/iteration semantics of this surface, not issue-search syntax; check boundary and timezone behavior with known values. | Inspect edge dates and missing values; compare returned content IDs to expected fixtures/current known items. | +| view save / duplicate / reset / delete | saved shared changes, duplicate, discard unsaved, remove view | Save intended shared configuration explicitly; use a duplicate for experimentation and do not delete a view with active shared links casually. | Reopen as reader/new session and check persistent configuration and old navigation links. | +| API versus UI | current REST view endpoints, GraphQL view mutations, UI advanced controls | Discover actual supported request fields; REST creation and GraphQL view CRUD exist, so avoid blanket UI-only claims. | Read saved configuration through supported surface; use rendered verification for unsupported controls. | + +### Pitfalls + +- Auto-add and auto-archive have narrower filter grammars than views. A valid view query cannot be copied blindly into automation. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/managing-your-views) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects) +- [Official sources 3](https://docs.github.com/en/rest/projects/views) + +## Table and board nested controls + +Group ID project-layout-controls. + +Capabilities projects-layout, projects-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| visible fields / column order / card fields | selected field IDs, ordering, shown/hidden fields | Show owner, status and the facts needed for this view; hide unused noise while preserving stored data. | Reload saved view and inspect expected header/card fields and order. | +| board column field / visible columns / limits | single-select or iteration field, displayed values, column limit where offered | Use Status for execution, iteration for planning; hide columns only with an alternate way to find excluded work. Column limits are planning signals, not enforcement. | Verify field ID and value-to-column mapping; inspect hidden/no-value work and displayed limits. | +| group by / vertical_group_by | supported field, no grouping | Group by responsible person, parent or priority for a real triage question; dragging across groups can edit underlying fields. | Read fields after an authorized drag and verify parent/assignee effects rather than assuming presentation-only movement. | +| slice by | supported field, no slicing | Use for fast per-team/repository focus; title/reviewers/linked PRs are not supported slice fields in current guide. | Check slice plus saved filter intersection and clear selection to recover full view. | +| sort primary/secondary / direction | field IDs, ascending/descending, no sorting | Use priority/date order when that drives work, manual order for explicit ranking; sorted boards disallow manual ordering within columns. | Read saved sorting and known equal-value tie examples; distinguish drag-to-column mutation from reorder. | +| field sums | count, selected numeric fields | Sum only compatible measures; points are estimates and mixed currencies/units must not be combined. | Recompute a representative group from actual item values and compare displayed aggregate. | + +### Pitfalls + +- Grouping a multi-assignee issue can show it in several groups; avoid interpreting row/card counts as unique work without checking IDs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-table-layout) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout) + +## Roadmap dates, markers and time windows + +Group ID project-roadmap-controls. + +Capabilities projects-layout, projects-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Date fields.Start date / Target date | chosen date or iteration field IDs | Bind to explicit planning fields, not guessed names; distinguish planned dates from actual completion evidence. | Read both mappings and compare bar boundaries to item values; inspect undated work separately. | +| Markers | iterations, milestone dates, item dates | Display only useful commitment/reference markers to avoid implying every date is a release deadline. | Inspect labels and actual source milestone/date values. | +| Zoom | Month, Quarter, Year | Choose the smallest window supporting the planning decision; preserve a useful shared overview. | Reload view and inspect expected time window and clipped/offscreen work. | +| roadmap drag / resize | changes start/target dates or selected iteration | Treat dragging as a real scheduling mutation; avoid accidental date changes during inspection. | Read changed field values and affected automation afterward; restore exact original values on accidental edit. | +| group / slice / sort / sums | supported fields and order, none | Apply the same data-integrity rules as other layouts; maintain access to ungrouped/undated items through a table view. | Compare item IDs across roadmap and table to explain omissions without inventing missing work. | + +### Pitfalls + +- A visually complete roadmap can exclude undated items; never equate visible bars with all project scope. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-roadmap-layout) + +## Event-driven Status transitions and issue closure + +Group ID project-event-workflows. + +Capabilities projects-workflows, projects-field-values. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| workflow enabled / target field-option | per-workflow enabled flag, discovered Status option ID | Inventory every built-in event workflow before manual reconciliation; retain behavior only when transition matches the project's definition. | Read workflow trigger/enabled/target and verify a permitted representative transition. | +| item added → Status | disabled, intake/Todo option | Default new work to intake if untriaged; do not overwrite imported/customized existing work as a setup side effect. | Observe new item value, existing populated item and applicable field default together. | +| issue/PR closed → Done | enabled default, disabled, alternative supported option | Closed-not-planned is not successful delivery; decide whether one Done column intentionally includes cancellation or needs separate reporting. | Check reason and resulting Status for completed and not-planned examples; correct mismatches without reopening rejected work. | +| PR merged → Done | enabled default, disabled, supported option | Merge may be completion for library work, but deployed systems may still require QA/release. Define that boundary explicitly. | Read merged commit, item Status and downstream release/deployment evidence separately. | +| Status change → issue state | disabled, close issue on configured transition where supported | Enable only when board transitions truly authorize closing the issue; avoid circular/competing automation. | Read issue state/reason and both directions of workflow behavior; identify unexpected loops or last-writer wins. | +| reopen / ready / review-related events | discovered host workflows | Inventory actual available triggers and decide each applicability rather than assume all event workflows exist everywhere. | Read current workflow list/schema/UI and verify exact resulting option IDs after relevant event. | + +### Pitfalls + +- Initialization enables closed→Done and merged→Done. A successful Status write can be immediately changed by another workflow; verify after automation settles. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations) + +## Auto-add filters, backfill and execution identity + +Group ID project-auto-add. + +Capabilities projects-auto-add, projects-actions. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| auto-add.repository / filter | per-repository selector, is/label/reason/assignee/no subset | Scope to intended repository and item kind; exclude automation noise deliberately. Validate native grammar independently of view query. | Read enabled workflow and exact filter; inspect a matching and a nonmatching permitted item. | +| filter values / negation | is:open/closed/merged/draft/issue/pr, label names, reason, assignee, no:label/assignee/reason | Use supported values and negation (no does not support negation); quote labels. Do not invent arbitrary custom-field auto-add filters. | Preview/save and confirm actual matching content IDs; compare available grammar with current official guide. | +| workflow count / duplicate | plan-dependent 1/5/20 limits currently documented, unique filters | Reuse existing workflows; Free has one, Pro/Team five, Enterprise twenty in current guide. Record plan gate rather than adding a token workaround silently. | Read actual count and entitlement; verify each repository selector and duplicate filter. | +| existing backlog | explicit paginated backfill, future matching creates/updates | Enabling auto-add does not backfill existing matches; reconcile backlog as a separate authorized operation preserving item values. | List source issues/PRs, compare content IDs to active/archive membership and add only missing items. | +| custom Action identity | installation token or authorized user credential, least Project/repository permissions | Repository GITHUB_TOKEN generally cannot stand in for owner Project write access; prefer a scoped App only when native workflow is insufficient. | Inspect workflow/token permissions without exposing secrets; verify membership and typed field values after execution. | + +### Pitfalls + +- Creating a dummy issue to test automation sends real notifications and is not a read-only check; use existing evidence or an explicitly authorized representative fixture. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions) + +## Retention filters, existing matches and restoration + +Group ID project-auto-archive. + +Capabilities projects-auto-archive, projects-items. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| auto-archive.enabled / filter | disabled, enabled; is/reason/updated only | Prefer disabled until retention criteria are agreed; custom Status is not supported in this automation grammar. | Read exact saved filter and enabled state; enumerate matching existing items before enable. | +| retention clock | updated relative-date expression supported by current surface | Do not call last-updated age closed-age; comments/labels/assignees/milestones/field changes can reset update time. | Test known boundary examples in this automation surface; record literal filter rather than translating comparator from memory. | +| existing matches | immediately eligible after enable, potentially delayed processing | Inventory affected IDs/values first; unlike auto-add, auto-archive also processes old matching items. | Compare before/after active and archive IDs and counts until processing settles. | +| archive versus capacity | recoverable archive, Project membership deletion | Archive keeps custom data and supports restore but still counts toward current 50,000 combined item limit. Deletion needs a separate retention decision. | Read archive entries and restored values; verify underlying issue remains unchanged. | +| recovery | disable workflow, restore selected archived item IDs | Stop faulty automation first, restore exact affected items and values, then correct filter before re-enabling. | Re-read saved filter and representative restored fields; inspect re-archival to detect remaining bad criteria. | + +### Pitfalls + +- Historical Community reports describe invalid filters partly executing; do not present that old bug as current. Validate native grammar and preserve a restoration inventory. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/archiving-items-from-your-project) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/36466) +- [Community reports 2](https://github.com/orgs/community/discussions/17085) + +## Charts, historical interpretation and project health + +Group ID project-insights-and-updates. + +Capabilities projects-insights, projects-updates. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| chart filter / layout / X-axis / group | supported chart types, selected category field, Time for historical chart, group or None | Name the actual decision and denominator; chart filters are their own saved configuration, not inherited proof from an open view. | Open saved chart and compare included content IDs/known sample; verify reader access. | +| Y-axis / numeric field | count, sum, average, minimum, maximum; selected numeric field | Count unique work or aggregate compatible numeric units; never equate estimate sums with actual labor or outcome value. | Recompute sample groups including missing/zero values and inspect saved aggregate and field mapping. | +| historical chart state / retention | Time axis; Open/Completed/Closed pull requests/Not planned | Historical charts track native issue/PR states, not arbitrary local Status history. Insights does not track archived or deleted items, so retention affects reporting. | Compare known state transitions and active/archive membership; do not report archive-filtered history as all-time delivery. | +| status update.status | ON_TRACK, AT_RISK, OFF_TRACK, INACTIVE, COMPLETE | Set overall project health from evidence, separately from issue open/closed and item Status; meaningful bad news must remain visible. | Read saved update ID/status and chronological update history. | +| status update.startDate / targetDate / body | dates, Markdown message, prior values as form defaults | Include reason, evidence and next decision; inspect inherited previous dates rather than republish stale commitments. Append meaningful updates, edit only corrections. | Read resulting dates/body and prior entries; templates cannot receive updates and subscriptions can notify readers. | + +### Pitfalls + +- Chart controls may require UI even when field/view APIs exist. Do not claim chart configuration from project item listing or API capability indexing. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/configuring-charts) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/about-insights-for-projects) +- [Official sources 3](https://docs.github.com/en/issues/planning-and-tracking-with-projects/sharing-project-updates) +- [Official sources 4](https://docs.github.com/en/graphql/reference/projects) + +## Template/copy fidelity and initial conditions + +Group ID project-copy-template. + +Capabilities projects-templates, projects-lifecycle, projects-access, projects-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| copy owner / title / draft selection | organization/user owner, new title, copy draft issues checkbox | Choose destination deliberately and copy example drafts only when useful; inspect template contents for confidential planning text. | Read new owner/title/ID and copied draft bodies/values. | +| copied configuration | views, custom fields, draft field values, workflows except auto-add, insights | Treat copied settings as a starting point, not desired final state; inherited automation can immediately affect new work. | Compare each copied component and field-option mappings independently with source snapshot. | +| not copied | original issue/PR items, collaborators, team/repository links, auto-add workflows | Recreate only applicable omitted relationships and intake workflow under authorized access scope; backfill existing work separately. | Read membership, grants, links and enabled auto-add on destination; source configuration proves nothing about destination completion. | +| organization template / recommendations | mark/unmark template, recommended template list | Curate only usable templates with documented fields and workflow expectations; avoid promoting an unverified personal experiment. | Read template status and organization recommendation visibility as intended member. | + +### Pitfalls + +- Copied field/option IDs are destination identities; never apply source item/field IDs to the new Project by name alone. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project) +- [Official sources 2](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-project-templates-in-your-organization) + +## Discussion purposes, category formats and intake + +Group ID discussion-categories-and-forms. + +Capabilities discussions-lifecycle, discussions-organization. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| repository versus organization source | repository Discussions, designated organization source repository | Keep repo-specific support near code; organization-wide discussions need explicit source-repository governance and access review. | Read enabled surface, source repository and moderator roles; inspect audience before publishing. | +| category.name / emoji / description / format | open-ended, Q&A, announcement, Polls where offered | Use Q&A for answerable support, open-ended for design, announcement for maintainer-origin updates. Inspect current Polls control rather than treating docs prose inconsistencies as universal support. | Read category IDs and actual format/answerability; announcement posting has stricter permissions than replies. | +| section membership / category rename/delete | one section per category, rename in place, Delete & Move target | Reuse category IDs; preserve navigation and discussion history. Deleting a category moves discussions to a chosen existing category. | Compare IDs/format and counts, destination and old shared links; inspect forms after slug changes. | +| category form path / top-level schema | .github/DISCUSSION_TEMPLATE/.yml; body/labels/title | Match category slug exactly; use supported controls, not issue-form assignee/projects/type top-level keys. | Open actual category composer on default branch and validate required/non-Markdown fields without posting. | +| labels / pins | existing repository labels, global/category pins; four per scope | Pin actionable entry points with a moderator/response owner; avoid a duplicate label taxonomy. | Read pin location, appearance and rendered routing links; global pins and category pins are distinct. | +| category movement / poll intake | recategorize eligible discussion, Polls category cannot move to/from | Select a valid format before intake; do not promise migration of a normal topic into a poll by changing category. | Read current category/format and eligible destinations; preserve original topic links. | + +### Pitfalls + +- Enabling Discussions creates a surface, not a staffed support process. Define who monitors unanswered questions and how decisions become tracked work. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions) +- [Official sources 2](https://docs.github.com/en/discussions/managing-discussions-for-your-community/syntax-for-discussion-category-forms) +- [Official sources 3](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/about-discussions) +- [Official sources 4](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions) + +## Answers, polls, conversions and moderation history + +Group ID discussion-response-and-moderation. + +Capabilities discussions-lifecycle, discussions-answers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| answer selection | mark answer, unmark, Q&A eligible comment | Mark a correct reusable solution with supporting explanation; an accepted answer is not proof a linked implementation shipped. | Read answer ID/body/author and category answerability; retain unresolved follow-up. | +| reply hierarchy / poll vote | replyToId, pollOptionId; viewerCanVote/viewerHasVoted | Respond to the right question; inspect existing viewer vote and options. Voting is personal participation, not setup. | Read reply parent and viewer vote state/counts; never cast a vote merely to test a feature. | +| poll content | discussion title/body, question, at least two options in Polls composer | Choose clear distinct options and explain how feedback informs a decision; do not invent supported close dates, anonymity or binding voting rules. | Preview composer and read poll question/options/order after an authorized creation; creation API support needs its own discovery. | +| lock / close / reason / allow reactions | lock/unlock, close/reopen, reason supported by host, reaction toggle | Prefer explanation and narrow moderation; lock restricts interaction while preserving content. Do not silence technical disagreement. | Read locked/closed/reason and rendered notice; confirm permitted moderators and reactions separately. | +| issue → discussion conversion | category ID, original issue and resulting discussion IDs | Use only when conversation rather than committed work is appropriate; explain routing when messaging is authorized and snapshot original history first. | Read both objects, canonical links, authors, all comment/reaction pages and issue closure/lock behavior; reconcile timeout before retry. | +| create issue from discussion | linked new issue in responsible repository | Track accepted actionable work while retaining the discussion decision trail; do not assume participants/subscriptions or every metadata field move. | Read both cross-links and preserve original authors and decision context. | +| transfer discussion | eligible same-owner destination repository or organization source repo | Destination creation permission is required; private-to-public and announcement transfers are unsupported. Review audience before any allowed transfer. | Read destination repository/category/access and retained comments/links; reconcile original and returned discussion IDs. | +| minimize / delete | classification and restore, irreversible deletion | Use least destructive appropriate moderation with reason; deletion is not a substitute for marking superseded information. | Read minimized state or exact deleted ID and preserve required moderation rationale without redistributing sensitive content. | + +### Pitfalls + +- Community conversion threads contain conflicting claims and historical incidents. Current official conversion flow exists; do not repeat a claim that conversion is universally unavailable. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/discussions/managing-discussions-for-your-community/moderating-discussions) +- [Official sources 2](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) +- [Official sources 3](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions) +- [Official sources 4](https://docs.github.com/en/graphql/reference/discussions) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/152627) +- [Community reports 2](https://github.com/orgs/community/discussions/3197) +- [Community reports 3](https://github.com/orgs/community/discussions/2952) + +## Wiki content, publication, permissions and discoverability + +Group ID wiki-publication-history. + +Capabilities wiki-pages, wiki-navigation. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| enabled / editing audience | has_wiki, collaborators-only, public editing on eligible public repos | Default to repository writers for project policy/docs; public editing is a governance choice, not a completeness requirement. | Read repository flag and actual Wiki access control; public/private visibility follows repository audience. | +| source repository / publication ref | OWNER/REPO.wiki.git, actual wiki branch and SHA | Clone/fetch Wiki separately; preserve other contributors' commits and compare source wiki/ files before publishing. | Compare remote before/after commit SHA and rendered pages; source files alone are not proof of publication. | +| page title / filename / markup | supported file extension, stable page slug, relative links | Keep page naming stable and explicit; avoid filesystem case collisions and check renamed-page backlinks. | Render pages and follow links on GitHub, inspect separate Wiki Git log and page history. | +| navigation | Home, _Sidebar., _Footer. | Provide install/use/config/troubleshooting navigation based on actual project scope; footer can carry source/version context. | Open every navigation destination, heading anchor and asset as intended reader. | +| change message / correction / recovery | meaningful commit, revert commit, merge remote changes | Record what changed and why; recover with a new corrective commit rather than force-overwrite others' Wiki work. | Read remote ancestry and page revision, compare preserved unrelated pages and restored content. | +| indexing / size constraints | search-engine eligibility, current soft file limit | Do not promise search-engine discovery for a small Wiki; current guide requires 500 stars and restricted public editing, with soft 5,000-file limit. | Inspect actual audience/search behavior; consider Pages only if indexing or size is an actual requirement. | + +### Pitfalls + +- A main-repository pull request does not review/enforce separate Wiki pushes automatically; document the publication check and do not conflate branches. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis) +- [Official sources 2](https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages) +- [Official sources 3](https://docs.github.com/en/communities/documenting-your-project-with-wikis/creating-a-footer-or-sidebar-for-your-wiki) +- [Official sources 4](https://docs.github.com/en/communities/documenting-your-project-with-wikis/viewing-a-wikis-history-of-changes) + +## Search surfaces, query semantics and completeness + +Group ID search-and-discovery. + +Capabilities search-cross-github, search-code, search-issues-prs, issue-saved-views. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| code search surface | browser Code Search, REST legacy code search, local rg/git grep | Choose syntax for the actual engine; browser Boolean/regex/symbol features do not imply equivalent REST support. Use local Git for exact nondefault-revision inspection. | Record engine, repository and revision; retrieve matched file at immutable SHA before acting. | +| modern code query | repo/org/user, path/language/symbol/content, quoted strings, /regex/, AND/OR/NOT | Scope narrowly and escape literals correctly; a bare term can match path or content. Inspect actual engine limits before assuming exhaustive indexing. | Reproduce match locally at known revision and inspect excluded files/ref; empty search is not absence proof. | +| issue/PR query | is:issue/is:pr, state/reason, author/assignee, review/review-requested, linked, dates | Use explicit type and repository scope, native review qualifiers for review queues and dates for bounded investigations. | Retrieve every consequential issue/PR by ID and paginate authoritative collection for completeness. | +| Discussion query | repo/org, in:title/body/comments, category, is:answered/unanswered where supported, dates | Search existing answers/decisions before creating a new topic; category and issue-search grammars differ. | Open original discussion, current answer and full relevant replies; check date of claim and superseding staff response. | +| REST search result limits | per_page/page, incomplete_results, capped result windows | Treat results as indexed discovery; split disjoint date/repository ranges and reconcile total counts when cap or incompleteness appears. | Inspect incomplete_results and available pages, deduplicate IDs; use owning lists/GraphQL/Git if a full inventory is required. | +| saved queries / issue views | name/query, personal versus shared saved surface | Save useful triage/review queries with explicit audience; a personal saved search is not a shared Project view. | Reload as same viewer, inspect exact query and validate known expected item membership. | + +### Pitfalls + +- Masked private objects, indexing lag, engine-specific limits and search caps mean zero results cannot establish absence or permission. Never use obsolete legacy limits as modern Code Search limits. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax) +- [Official sources 2](https://docs.github.com/en/search-github/searching-on-github/searching-code) +- [Official sources 3](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests) +- [Official sources 4](https://docs.github.com/en/search-github/searching-on-github/searching-discussions) +- [Official sources 5](https://docs.github.com/en/rest/search/search) + +## Ruleset scope, bypass and evaluation evidence + +Group ID ruleset-targets-and-insights. + +Capabilities repository-rulesets, ruleset-insights. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| target / conditions | branch, tag, push; ref_name include/exclude; repository targeting at owner scope | Inspect inherited rules and select exact intended ref patterns, including default-branch symbolic selectors when supported; exclusion can silently remove protection. | Read ruleset IDs/source/enforcement plus effective rules for a representative matching and excluded ref. | +| enforcement | disabled, active, evaluate on eligible Enterprise plans | Disabled protects nothing; evaluate observes without blocking and needs a plan check. Preview broad new policy in evaluate where available before enforcement. | Read saved mode and rule-suite results; do not report evaluate as protected. | +| bypass_actors.actor_type / actor_id / bypass_mode | eligible role/team/App IDs; always, pull_request, exempt where supported | Preserve existing authorized exceptions and choose the narrowest useful mode; exempt does not run rules or create a bypass audit entry. | Read actor identity/mode and confirm no accidental broad role exception or App removal. | +| rule suite filters | ref, actor_name, rule_suite_result, time_period; pass/fail/bypass | Inspect operational failures and bypass use, not merely policy JSON. Check current endpoint filter enums and retention before querying. | Read suite ID, actor, ref, evaluation time and per-rule result; distinguish evaluate failures from blocked writes. | +| ruleset history / import-export | ruleset ID/version, export JSON, reviewed imported settings | Preserve baseline/version and review imported selectors/actor IDs; source owner IDs do not automatically mean destination identities. | Compare saved ruleset history, exact imported payload and effective target rules; revert with a corrective version. | + +### Pitfalls + +- Multiple rulesets can apply together with classic protection. A clear ruleset read does not prove the actor had no bypass or that another inherited rule did not apply. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/repos/rules) +- [Official sources 2](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository) + +## Effective review/check requirements and compatible merge behavior + +Group ID branch-and-merge-gates. + +Capabilities branch-protection, repository-merge-policy. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| required_pull_request_reviews | required_approving_review_count, dismiss_stale_reviews, require_code_owner_reviews, require_last_push_approval | Choose actual independent reviewer availability; stale/last-push rules must match team workflow. Zero peer approval may be intentional with required checks. | Read effective rules and representative current-head review states; inspect reviewer eligibility and outstanding changes requests. | +| review dismissal / bypass restrictions | dismissal_restrictions, bypass_pull_request_allowances, users/teams/apps | Retain narrowly justified emergency routes; never add the running agent as bypass to complete setup. | Compare actor IDs and enabled restrictions, and inspect subsequent dismissal/bypass evidence. | +| required_status_checks | strict, checks context/app_id, legacy contexts | Bind stable check names to expected Apps where supported; strict requires up-to-date branch, queue needs merge_group CI support. | Compare rules to actual check-run names/App IDs on PR and merge-group SHAs; skipped or pending is not passing. | +| enforce_admins / restrictions | admin enforcement boolean, allowed users/teams/apps, block_creations where supported | Decide administrator policy deliberately; push allowlists are not equivalent to review bypass. Preserve existing emergency ownership. | Read protection and ruleset bypass together; verify effective actor rights without making a disruptive test push. | +| history / signatures / deletion | require_linear_history, required_signatures, allow_force_pushes, allow_deletions, lock_branch | Match legitimate release workflow and retain no-force/no-delete for protected history unless specifically justified. Locked branches and fork-sync settings need separate intent. | Read all flags and branch status; verify merge methods remain compatible with linear history. | +| conversation/deployment/security gates | required_conversation_resolution, required deployments, required code/secret/quality rules where supported | Require gates only when their producer/workflow exists and can complete; determine exact environment/tool thresholds from the schema and project policy. | Read named environments/tool thresholds and current-head gate results; do not disable failing gates as recovery. | +| repository merge flags | allow_merge_commit/squash/rebase, allow_auto_merge, allow_update_branch, delete_branch_on_merge | Keep methods compatible with effective rules; auto-update visibility is not auto-merge or branch freshness. Clean only disposable merged heads. | Read repository flags and PR merge box/effective rule methods; inspect final merge topology and branch cleanup. | +| merge queue parameters | check timeout, minimum/maximum group size, grouping strategy, merge method where offered | Use only when contention justifies it; inspect current host schema for exact names/enums and ensure queue check triggers exist. | Read queue rule payload and representative merge_group results, queue removal reasons and merged SHA. | + +### Pitfalls + +- Classic protection update endpoints can replace nested objects and clear omitted policy. Snapshot and merge intended changes; one protected-branch endpoint cannot establish full ruleset enforcement. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/branches/branch-protection) +- [Official sources 2](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets) +- [Official sources 3](https://docs.github.com/en/rest/repos/repos) + +## Personal watch choices, inbox triage and feed limitations + +Group ID notification-and-activity-state. + +Capabilities notifications-watch, notifications-inbox, activity-events. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| repository subscription | subscribed, ignored, custom event selection through supported UI | Preserve user preference; watch only requested event categories and distinguish ignored from simply not subscribed. Stars bookmark rather than subscribe. | Read subscription as same user plus UI custom categories; subscribers_count differs from legacy watchers_count/stargazers_count. | +| watcher list restrictions | admin/collaborator-only listing, deprecated user watched-repo endpoint | Current docs describe July 2026 restrictions and deprecated endpoint empty responses; do not infer nobody watches from an empty legacy list. | Check endpoint status/auth identity and direct repository subscription state. | +| inbox query | all, participating, since, before, repository, reason; UI custom filters | Choose smallest needed read window and paginate; inspect reason such as mention/review_request/assign rather than treating all notifications equally. | Read thread ID/subject/reason/unread/last_read_at and canonical owning object. | +| triage operation | read/unread, done, saved, unsubscribe | Read acknowledges visibility; done hides completed notifications, save retains attention, unsubscribe changes future delivery. Apply only explicitly intended selected threads. | Re-read selected thread and UI saved/done state; compare unaffected threads, and reconcile ambiguous writes before retry. | +| retention / subscription recovery | done retained five months, saved indefinitely, resubscribe | Inbox is not permanent project history; unsaving old notifications can make them disappear. Unsubscribe can be superseded by later mention or review request. | Preserve canonical issue/PR URLs for durable context and verify subscription after authorized recovery. | +| authentication / polling | classic PAT notifications/repo scopes per current notification docs, Last-Modified/ETag, X-Poll-Interval | Do not assume fine-grained/App tokens support notification endpoints. Respect server polling interval and conditional requests. | Inspect authentication compatibility and 304 semantics without exposing credentials; permission failure remains unknown state. | +| activity feed window | up to 300 events, past 30 days, latency 30 seconds to six hours | Use feeds for discovery, not real-time completion or complete audit history. Prefer owning issue/PR/commit state for consequential facts. | Record event ID/time and owning object evidence; honor ETag and X-Poll-Interval. | + +### Pitfalls + +- Personal inbox Done is unrelated to issue closure or Project Done; never complete work by clearing its notification. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/activity/watching) +- [Official sources 2](https://docs.github.com/en/rest/activity/notifications) +- [Official sources 3](https://docs.github.com/en/rest/activity/events) +- [Official sources 4](https://docs.github.com/en/subscriptions-and-notifications/how-tos/viewing-and-triaging-notifications/managing-notifications-from-your-inbox) + +## Reusable drafts, reversible hiding and temporary interaction limits + +Group ID community-personal-replies-and-moderation. + +Capabilities community-saved-replies, community-comment-minimization, community-interaction-limits. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| saved reply title / body / selection | personal title, Markdown body, create/edit/delete, insert and customize | Store generic accurate routing text and customize to the actual report; inserting a draft does not authorize sending. Current documented cap is 100 replies. | Reload personal reply settings and preview inserted draft; do not post a test reply. | +| minimizeComment.subjectId / classifier | ABUSE, OFF_TOPIC, OUTDATED, RESOLVED, DUPLICATE, SPAM | Pick a justified classification and preserve the discussion; disagreement or inconvenient findings are not abuse. Check actor/type eligibility first. | Read viewerCanMinimize/isMinimized/minimizedReason plus original comment link and rendered visibility. | +| unminimize / deletion distinction | restore hidden comment, delete separately authorized content | Use restoration when hiding was mistaken; minimized content still exists and cannot be treated as erased sensitive data. | Read restored state and inspect full thread; handle actual secret exposure through the applicable security process. | +| interaction scope / inheritance | repository, organization public repositories, user-owned public repositories | Choose the narrowest incident scope and inspect inherited limits before overriding; broad owner controls affect uninvolved contributors. | Read effective repo and owner restrictions and record actor, scope and expiry. | +| interaction limit / expiry | existing_users, contributors_only, collaborators_only; one_day/three_days/one_week/one_month/six_months | Prefer the shortest effective restriction consistent with authorized moderation; do not silently block ordinary reporters for routine setup. | Read limit and expires_at from owning endpoint and inspect class semantics; never validate by posting disruption. | +| remove / expire / blocked users | remove temporary limit, automatic expiry, separate account blocking | Restore normal participation after incident and keep rationale; removing a repository limit does not remove an inherited owner restriction. | Re-read repo/owner limit state and separate block lists where authorized; distinguish expired from inaccessible. | + +### Pitfalls + +- No stable saved-reply CRUD API is established here; inspect current UI. Comment minimization, conversation lock, interaction limit and account blocking are separate controls. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/about-saved-replies) +- [Official sources 2](https://docs.github.com/en/graphql/reference/issues) +- [Official sources 3](https://docs.github.com/en/rest/interactions/repos) +- [Official sources 4](https://docs.github.com/en/rest/interactions/orgs) +- [Official sources 5](https://docs.github.com/en/rest/interactions/user) + +## Personal availability, bookmarks, featured work and following + +Group ID profile-personal-presence. + +Capabilities profile-status, profile-star-lists, profile-content-pins, profile-follow-organizations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| status content / scope | emoji, message, organizationId or public null | Preserve user wording and audience; avoid publishing private project details as status. Organization-scoped status is not an organization announcement. | Read emoji/message/organization and inspect rendering as intended audience. | +| status availability / expiration | limitedAvailability boolean, expiresAt timestamp, clear status | Set busy only for requested availability; use intended timezone converted to exact expiry rather than leave a temporary absence indefinitely. | Read indicatesLimitedAvailability/expiresAt and verify removal/expiry; personal status is unrelated to work-item Status. | +| star list name / description / membership | create/update/delete list, repository membership IDs, starring independently | Keep bookmark organization separate from follow/watch; preserve unrelated list memberships in updateUserListsForItem replacement operations. | Read list ID/content and repository star state separately; list deletion is not repository deletion. | +| profile README / pins | USER/USER README, up to six repositories/gists combined, pin order | Publish only user-approved profile content and intended public featured work; use valid account-named repository for README. | Read immutable README commit and public rendered profile/pin order; preserve existing selections. | +| contribution/profile visibility | public/private profile, private contribution display, achievements/activity options where offered | Treat as personal privacy choice; anonymized private activity is not permission to reveal private repository names. | Inspect profile as owner and public viewer; verify current UI rather than assume profile REST edits cover these settings. | +| organization following | follow/unfollow org, viewerIsFollowing | Follow only requested organizations; preview feature supplies public activity, not membership or repository access. | Read following relation as same viewer and inspect dashboard; no requirement to generate activity for a test. | + +### Pitfalls + +- Personal starring, following, availability and profile changes can reveal preferences and should not be silently bundled with a repository audit. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/graphql/reference/users) +- [Official sources 2](https://docs.github.com/en/account-and-profile/concepts/personal-profile) +- [Official sources 3](https://docs.github.com/en/account-and-profile/how-tos/profile-customization/pinning-items-to-your-profile) +- [Official sources 4](https://docs.github.com/en/get-started/exploring-projects-on-github/following-organizations) + +## Sponsors identity, eligibility and public listing + +Group ID sponsors-listing-onboarding. + +Capabilities sponsors-listing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| listing identity | authenticated personal account, sponsorableLogin organization | Select the actual beneficiary, authority and supported region/fiscal-host route; do not create an organization listing for a similarly named repository owner by assumption. | Read listing/account IDs, owner/admin role and enrollment/approval state. | +| profile fields / featured opt-in | bio, introduction, featured work, matching/featured preferences where eligible | Prepare accurate public purpose and benefits; owner decides marketing consent and funding language. | Read rendered listing and saved preferences; unpublished/draft differs from publicly approved listing. | +| onboarding personal/legal fields | residence, billing/tax/provider verification, fiscal-host details | Let account owner handle required legal/banking attestations and credentials; never infer those from GitHub profile geography or commit email. | Report exact outstanding setup gate without exposing tax/bank data; listing mutation alone is not completed onboarding. | +| publication / funding link | approved listing, draft setup, FUNDING.yml sponsor button | Add funding links only to real intended supported beneficiaries; distinguish external funding URLs from an active GitHub Sponsors listing. | Open public listing and repository sponsor target as intended reader; retain owner decision about platform selection. | + +### Pitfalls + +- Enrollment/profile setup does not authorize a payment, bank change, tier publication or newsletter. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account) +- [Official sources 2](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-organization) +- [Official sources 3](https://docs.github.com/en/graphql/reference/sponsors) + +## Amounts, recurrence, publication and benefit access + +Group ID sponsors-tier-configuration. + +Capabilities sponsors-tiers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| amount / recurrence | amount in US dollars, isRecurring boolean, documented API range 1–12000 | Choose explicitly approved price and monthly versus one-time meaning; never confuse dollars with cents or interpret isRecurring as an arbitrary billing scheduler. | Read amount/currency/recurrence from returned tier and actual checkout; current API schema defines valid range. | +| description / welcome message | public perks, post-payment instructions | Promise only deliverable benefits, avoid private credentials in broad welcome text, and document entitlement expectations. | Preview public and purchaser-facing text and check instructions/links. | +| publish / retire | draft by default in createSponsorsTier, publish true/false, retire tier | Review concrete tier before publication. Published prices cannot be edited; retire and create a new tier for a new price. | Read published/retired state and remaining active sponsorships; retirement does not cancel existing sponsors. | +| repository benefit | organization-owned private repository ID/name, no repository benefit | Adding a benefit grants read-only access to sponsors and requires explicit access authorization; do not attach source or customer data accidentally. | Verify exact repository owner/visibility and tier benefit, plus current entitlement policy without creating a paid test sponsorship. | +| tier limits | up to ten published one-time, up to ten published monthly | Reuse meaningful existing offers rather than create redundant tiers; keep retired options visible in historical reporting. | Count active published tiers by recurrence and inspect retired-tier subscribers separately. | + +### Pitfalls + +- Existing sponsors can remain on a retired tier. Do not delete/replace historical tier identity to make the public price list look tidy. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers) +- [Official sources 2](https://docs.github.com/en/graphql/reference/sponsors) + +## Payer intent, bulk partial outcomes and sponsorship privacy + +Group ID sponsors-commitments-and-preferences. + +Capabilities sponsors-transactions, sponsors-preferences. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sponsorship payer / beneficiary / tier | sponsorId/login, sponsorableId/login, tierId or allowed custom amount | Resolve exact accounts and a current valid offer; do not charge a personal account when organization funding was intended. | Read account/tier IDs and current sponsorship before mutation; checkout fees/tax/payment details require current verification. | +| one-time / recurring commitment | approved amount, recurrence, payment/renewal state | Repository setup and recommendation do not authorize spending. Match the explicitly requested commitment and inspect immediate/prorated effects before submission. | Read resulting amount, recurrence, payer, beneficiary and active/pending status; financial mutation timeout requires reconcile-before-retry. | +| bulk sponsorship results | per-beneficiary input, individual success/error results | Treat batch as potentially partial, never all-or-nothing; preserve successful commitments and retry only missing authorized ones. | Read every beneficiary relationship and error individually, compare total approved versus committed amounts. | +| change / cancel | upgrade, downgrade, cancelSponsorship, retired tier retained | Apply requested effective change with current billing semantics; cancellation does not prove refund or immediate entitlement end. | Read resulting tier/state and billing effective date; preserve history of previous commitments. | +| privacy / email preferences | PUBLIC, PRIVATE where current schema supports, receive email updates boolean | Make public identity and update consent deliberate personal choices; private sponsorship does not mean beneficiary sees no information. | Read actual sponsorship preference fields and public appearance; never publish identity merely to test visibility. | +| connected platform | Patreon linkage or documented connected sponsorability preference | Connect only an explicitly selected owned account and inspect permission scope; linkage does not create a paid sponsorship. | Read linkage/preference state and retain external-provider limitations; do not claim payment from a connected badge. | + +### Pitfalls + +- Current billing/provider terms are changeable. Read the actual checkout/account flow before any authorized commitment and keep sensitive financial data out of public issues. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/graphql/reference/sponsors) +- [Official sources 2](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/about-sponsorships-fees-and-taxes) +- [Official sources 3](https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship) + +## Sponsor history, exports and referral metadata + +Group ID sponsors-reporting-and-campaigns. + +Capabilities sponsors-analytics. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sponsor filters / activity window | active or retired tiers, date range, new/change/cancellation activity | Separate active sponsors, past sponsors, payments and payouts; distinguish cumulative commitment from settled receipts. | Read account/timezone/date/currency and reconcile paginated source rows to displayed totals. | +| export format / date / delivery | CSV, JSON, supported date window and delivery destination | Export only requested scope to intended private destination; initiating emailed export is an external delivery action requiring authorization. | Verify requested export fields/window, actual received file and row totals; record pending versus completed export. | +| referral metadata syntax | metadata_KEY=value; alphanumeric/dash/underscore; at most ten pairs | Use non-sensitive short campaign codes, never email addresses or secret identifiers in public URLs. Whitespace/invalid characters can produce 404. | Check resulting URL and export metadata key after permitted transaction; keys truncate at 25 chars and values at 100 per current guide. | +| lifetime / revenue interpretation | authorized lifetime value, currency, transaction/payment status | Use financial definitions explicitly; sponsorship totals and estimated next payout are not recognized revenue or a tax report. | Reconcile refunds/fees/date window with account dashboard and payout receipts when applicable. | + +### Pitfalls + +- Export access does not authorize publishing sponsor identities or payment details in a public Wiki/Project. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/viewing-your-sponsors-and-sponsorships) +- [Official sources 2](https://docs.github.com/en/graphql/reference/sponsors) + +## Recipient scope, sender identity and publish boundary + +Group ID sponsors-newsletters-and-delivery. + +Capabilities sponsors-newsletters. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| recipients | opted-in sponsors, all eligible tiers, selected tier IDs | Match requested audience and current opt-in; do not bypass consent with copied sponsor email lists. | Read selected tier recipients and current eligibility before publish; distinguish tier names from stable IDs. | +| subject / body / sender | draft subject/message, personal primary email or noreply based on privacy, organization noreply | Prepare concrete reviewed content and working links; note personal sender exposure when email privacy is off. | Preview sender/subject/body/links and target account in dashboard without sending test mail. | +| draft versus Publish | unsent draft, published email update | Publish sends mail and needs an explicit messaging instruction; repository release/setup authority alone is insufficient. | Read publication/sent history and exact target scope; absence of send evidence must remain draft/unknown. | +| ambiguous delivery recovery | inspect newsletter history first, avoid duplicate Publish | A timeout can occur after sending; do not retry the broadcast before reconciling history and timestamps. | Capture update ID, publication time and recipient tier scope; report uncertainty rather than claim all recipients received/read mail. | + +### Pitfalls + +- Published/sent means provider acceptance/history, not proof every recipient received or read the message. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors) + +## Banking boundaries, estimated payouts and fundraising targets + +Group ID sponsors-payouts-and-goals. + +Capabilities sponsors-payouts, sponsors-goals. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| payout account / status | past payout, estimated next payout, holds/provider state | Read correct beneficiary/provider and distinguish estimated, pending and paid; never equate incoming sponsorship with completed payout. | Match amount/date/currency and account history to actual receipt where available. | +| bank/fiscal-host management | supported Stripe Connect flow, fiscal-host support route | Owner handles bank/legal verification; fiscal-host accounts cannot directly edit payout information through the same control. Never paste bank/tax data into repository logs. | Inspect provider/account gate and resulting secure status only; record support handoff as unresolved. | +| receipt export | PDF payout receipts for supported Stripe Connect accounts | Export only required receipt to the authorized private destination; respect provider-specific availability. | Open actual receipt and match account/payout amount/date; dashboard display alone is not exported file evidence. | +| goal type / target / description | Number of monthly sponsors, Sponsorships a month, one active goal | Select an owner-approved measurable target and explain funded work accurately; avoid implying contribution guarantees. | Read live goal type/target/text and public progress; only one simultaneous goal is supported in current guide. | +| goal edit / remove / share | update target/text, remove goal, copy/embed link | Preserve rationale for target changes and publish/share externally only when requested; progress is not recognized revenue. | Re-read public goal after update/removal and inspect embed destination; do not send promotion as setup. | + +### Pitfalls + +- Payout management is provider/account work, not repository administration. Do not claim settled revenue, tax treatment or completed banking verification from GraphQL metadata. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-payouts-from-github-sponsors) +- [Official sources 2](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-goal) + +## Workflow triggers and typed inputs + +Group ID workflow-events. + +Capabilities actions-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| on / types | push, pull_request, pull_request_target, merge_group, schedule, workflow_dispatch, repository_dispatch, workflow_run, workflow_call, release; event-specific activity types | Choose the event whose code/ref and trust model match the job. Add merge_group when required checks serve a merge queue. | Exercise intended event; record event, actor, head_sha and workflow revision. | +| branches / tags / paths | positive/negative glob lists; branches-ignore/tags-ignore/paths-ignore alternatives | Protect required checks against path-filter skips; order negative patterns deliberately; branch and path filters combine. | Test included/excluded branch and file combinations; inspect check state. | +| schedule | POSIX cron; UTC; default-branch workflow | Use for tolerable delays, with manual recovery; scheduling is not a precise timer. | Compare scheduled event timestamp, branch and actual start. | +| workflow_dispatch.inputs | boolean, choice, environment, number, string; required/default/options | Validate enum and deployment target; environment input selects a value but does not gate a job without environment. | Run default and explicit input values; reject invalid target in job. | +| workflow_run | requested, in_progress, completed; workflows and branches | Treat upstream code/artifacts as untrusted; privileged follow-up must verify origin and SHA. | Read originating run ID, repository, event, conclusion, SHA and artifact provenance. | +| GITHUB_TOKEN event recursion | Most token-generated events do not launch another workflow; dispatch exceptions exist | Use explicit dispatch for intended chaining, with bounded recursion; do not broaden credentials just to trigger CI. | Match downstream run to dispatch; confirm no duplicate loop. | + +### Project applicability + +Existing validation CI needs PR and default-branch coverage. Event expansion needs a concrete repository operation. + +### History and human interaction + +Keep trigger edits in reviewed commits; retain event payload metadata without secrets and explain maintainer-triggered runs. + +### Recovery + +Inspect event/ref/filters first; dispatch or rerun the exact intended revision only after correcting cause. + +### Pitfalls + +- A required workflow skipped by filters can leave a required check pending. +- pull_request_target operates in privileged base context; never checkout and execute untrusted PR code there. +- Schedule delays and dropped scheduling events require observability. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow) + +## Jobs, matrices, conditions and run history + +Group ID workflow-execution. + +Capabilities actions-workflows, actions-runs, actions-job-logs. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| needs / if | DAG dependencies; success(), failure(), cancelled(), always(); expressions | Use explicit terminal handling. Reserve always() for bounded cleanup; avoid making cancellation ineffective. | Inspect skipped and failed upstream cases plus cancellation. | +| strategy | matrix axes/include/exclude, fail-fast, max-parallel | Test supported platforms; fail-fast false retains all diagnostics at higher cost. | Inspect complete matrix job set and all conclusions. | +| step execution | run/uses, id, with, env, shell, working-directory, outputs, defaults | Pass untrusted strings through environment or typed inputs rather than shell interpolation. | Read exact workflow SHA, command results and produced outputs. | +| timeouts / tolerated failures | job and step timeout-minutes; continue-on-error; retry in command/action | Bound resource use; do not mark safety or release validation optional. | Force representative failure; ensure required job fails and cleanup completes. | +| services / containers | image, credentials, env, volumes, ports, options; supported runner OS | Use when integration tests require services; pin trusted images and isolate credentials. | Health-check service and inspect exact image digest. | +| attempt operations | rerun all, failed jobs, one job, debug logging, cancel/force-cancel; delete logs/run | Rerun after diagnosis. Capture current attempt; debug logs increase disclosure risk. | Record run ID, attempt, job IDs, SHA, conclusion and redacted log URL. | + +### Project applicability + +Keep the existing small validation workflow unless real platform differences justify a matrix. + +### History and human interaction + +Preserve previous attempts and reviewer explanation; canceled or deleted logs are not proof of an earlier success. + +### Recovery + +Read the current attempt before retrying; cancel normally first; force-cancel only after identifying stuck run and external side effects. + +### Pitfalls + +- A maintainer investigation of discussion #206259 attributed apparent queue blocking to other group jobs and always() preventing cancellation; initial bug claims were incomplete. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) +- [Official sources 2](https://docs.github.com/en/rest/actions/workflow-runs) +- [Official sources 3](https://docs.github.com/en/rest/actions/workflow-jobs) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/206259) + +## Actions availability, allowed code and token defaults + +Group ID actions-policy. + +Capabilities actions-permissions, actions-policies, actions-fork-retention. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Actions enabled scope | disabled, all eligible repositories, selected repositories; inherited org/enterprise constraints | Read inheritance before changing repository settings. | Read all controlling scopes and repository eligibility. | +| allowed actions/reusable workflows | all, local-only, selected; GitHub-owned, verified Marketplace, explicit patterns; SHA-pinning policy where supported | Pin reviewed actions; allow only required external automation. | Read selected-action patterns and inspect each uses reference. | +| default_workflow_permissions | read or write; per-workflow/per-job permission map | Keep repository default read; grant needed write permissions only in responsible job. | Inspect setup log effective GITHUB_TOKEN permissions. | +| token permission map | actions, artifact-metadata, attestations, checks, contents, deployments, discussions, id-token, issues, models, packages, pages, pull-requests, security-events, statuses; supported read/write/none values | Once any permission is specified, unspecified permissions become none; metadata/scopes and availability differ. | Compare permissions to each operation schema and actual run grants. | +| PR creation / approval by Actions | allow or deny workflow PR creation/approval | Creation may help automation; automated approval is not independent review and must not satisfy a human governance intent. | Read can_approve_pull_request_reviews and inspect actor of resulting review. | +| fork policy | first-time/first-time-with-new-account/all external contributor approval; private-fork run/read-token/write-token/secrets options | Run contributions without secrets/write token; approval authorizes code execution and consumes resources. | Read fork policy plus run approval actor and effective token. | +| policy objects and retention | schema-defined action policy rules; artifact/log days bounded by parent policy | Inspect current rule schema and inherited maximums; retain enough release evidence without storing sensitive logs. | Read policy IDs/rules and expiry dates on actual run/artifact. | + +### Project applicability + +Repository rules require read-only CI. Do not enable write or fork secrets merely for fuller coverage. + +### History and human interaction + +Record who approved contributed code, which SHA was inspected and whether a later update needs review again. + +### Recovery + +Revert an allowlist through reviewed policy change; preserve run evidence before lowering retention or deleting logs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/actions/permissions) +- [Official sources 2](https://docs.github.com/en/rest/actions/policies) +- [Official sources 3](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) + +## Reusable workflows, actions and templates + +Group ID reusable-contract. + +Capabilities actions-reusable. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| sharing and reference | same-repo path; owner/repo workflow@SHA/tag/branch; private/internal sharing | Prefer exact reviewed SHA; access/allowed-actions policies must permit every nested workflow. | Read referenced_workflows SHAs and effective access policy. | +| workflow_call contract | boolean/number/string inputs, required/default; explicit secrets; outputs mapped job to workflow | Treat inputs/outputs as an API; avoid stringly typed booleans. | Run caller with omitted/default/explicit values and check outputs. | +| secret forwarding | named secrets or inherit for supported org/enterprise relationship; forwarding at every nested hop | Forward only required names; inheritance is wider. Current docs require passing environment secrets as well. | Fail safely when required secret is empty without printing it. | +| environment scope | environment on called job; same-name environment secret wins | Caller cannot put environment on a reusable-workflow call job. Pass environment identifier as input and bind it inside called workflow. | Observe called job gate and selected environment; verify secret presence only. | +| env and outputs | caller env is not general callee env; job/workflow outputs; reusable matrix output semantics | Pass configuration explicitly; use artifacts for files. | Assert outputs on representative matrix and nested caller. | +| nesting / permissions / concurrency | supported host nesting limit; accessible chain; permissions can only remain or decrease; caller/callee group IDs | Avoid same concurrency key accidentally canceling caller; inspect current host limits rather than hard-code historical limits. | Execute complete chain and inspect grants/group. | +| action forms and templates | composite steps, JavaScript runtime, Docker action; organization workflow-templates metadata | Use a template for copied starting files; reusable workflow for centrally maintained behavior. | Check action.yml inputs/runtime and actual consumer run. | + +### Project applicability + +Use only if repeated workflows merit a shared contract; small single-repo CI does not need a new abstraction. + +### History and human interaction + +Version contract changes, review all callers and record actual called SHA rather than mutable tag only. + +### Recovery + +Pin consumer to prior known SHA; restore compatible input/output contract and test caller before broader rollout. + +### Pitfalls + +- Issue #4453 reports empty environment secrets without forwarding; current official documentation explicitly requires passing or inherit. required:true checks passing, not non-empty value. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations) +- [Official sources 3](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax) + +### Community reports + +- [Community reports 1](https://github.com/actions/runner/issues/4453) + +## Variables, credentials and precedence + +Group ID configuration-secrets. + +Capabilities actions-variables, actions-secrets, security-dependabot-secrets. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| scope / selected repositories | organization all/private/selected; repository; environment; Actions versus Dependabot secret stores | Place credentials in narrowest necessary scope; variables are public-to-readers configuration. | Read names/metadata and selected repository IDs. | +| same-name precedence | environment over repository over organization; runtime availability/context restrictions | Avoid collisions; check when the job evaluates variables versus when environment values are available. | Inspect effective non-sensitive variable and secret-presence check in bound job. | +| write protocol | scope public key plus encrypted_value; gh secret via stdin/secure file | Never put secret in arguments, source or issue; encrypted API field is not a retrieval path. | Read updated_at/name; exercise minimal authorized operation. | +| fork / Dependabot / reusable contexts | secrets withheld for untrusted fork runs; Dependabot uses its dedicated store; explicit reusable forwarding | Do not duplicate broad credentials to fix a context error. | Read event actor and correct credential store; negative test unauthorized use. | +| rotation / expiry / redaction | provider revoke/reissue, key owner/expiry metadata outside secret value; add-mask for derived values | Rotate at provider; log masking is best effort, not access control. | Confirm old credential rejection and new credential operation without outputting either. | + +### Project applicability + +Validation should need no repository secret. Dependabot private registries need separate credentials only if present. + +### History and human interaction + +Record credential purpose, owner, consumer and rotation date; never plaintext values in historical evidence. + +### Recovery + +Revoke exposed credential first; replace narrow secret and rerun safely; remove/redact logs separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/variables) +- [Official sources 3](https://docs.github.com/en/rest/actions/secrets) +- [Official sources 4](https://docs.github.com/en/rest/dependabot/secrets) + +## Concurrency and queue policy + +Group ID concurrency-queues. + +Capabilities actions-concurrency. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| group | workflow/job scope; expression; repository-wide case-insensitive group name | Include workflow/ref for isolated CI; use environment-specific shared key for deployment serialization. | Read evaluated group and all related pending/running jobs. | +| queue | single default; max permits up to 100 pending | Use single for latest-state jobs; max when every item matters and host supports it. | Queue a bounded test and inspect pending replacements/overflow. | +| cancel-in-progress | false/default; true; allowed expression | Cancel stale CI; avoid interrupting releases or migrations. queue:max plus true is invalid. | Read old run conclusion and ensure side effects stopped. | +| ordering | FIFO by entering concurrency wait, not original dispatch time; no universal dispatch ordering guarantee | Do not use queue as a transactional ledger; record intended sequence separately if needed. | Compare queue-entry and execution history with expected deployment revisions. | + +### Project applicability + +CI can cancel outdated branch checks; release and Wiki publication must preserve sequence and existing content. + +### History and human interaction + +Attach cancellation reason to run history and preserve prior attempt IDs; an operator retry does not establish queue order. + +### Recovery + +Inspect every workflow sharing the key and always() conditions before calling a queue bug; check runner availability and status incident history. + +### Pitfalls + +- 2021–2025 complaints about a single pending slot do not describe current queue:max behavior; maintainer announced shipping April 17, 2026. +- The control-concurrency page contains broad examples implying unconditional cancellation; use its explicit queue/cancel policy definitions. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency) +- [Official sources 2](https://docs.github.com/en/rest/actions/concurrency-groups) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/5435) +- [Community reports 2](https://github.com/orgs/community/discussions/12835) +- [Community reports 3](https://github.com/orgs/community/discussions/206259) + +## Workflow artifact contents and lifecycle + +Group ID artifacts. + +Capabilities actions-artifacts. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| upload contract | name, path/globs/exclusions, if-no-files-found warn/error/ignore, retention-days | Require expected files; choose unique artifact name per matrix job. | Download exact artifact ID and inspect archive manifest. | +| hidden and file metadata | include-hidden-files false by default; ZIP changes permission fidelity; tar when metadata matters | Include required dotfiles explicitly after excluding credentials; tar executable-sensitive bundles. | Check .codex-plugin files and executable bits in extracted release bundle. | +| compression / overwrite | compression-level supported range; overwrite false default; upload version semantics | Favor low compression for precompressed assets; overwrite deletes old artifact identity. | Record artifact ID, digest, size and expiration after upload. | +| download selection | ID/name/pattern, merge-multiple, path; repository/run/token for cross-run access | Bind release input to trusted run and SHA, never latest name alone. | Verify source run, digest and expected file allowlist. | +| host and action compatibility | supported major/runtime/backend; GHES support differs from GitHub.com | Read current action README and installed runner minimum; do not blindly copy a dot-com major. | Run on target host and inspect resulting artifact/download. | + +### Project applicability + +Inspect installable plugin archive before release; preservation of hidden plugin metadata is essential. + +### History and human interaction + +Keep archive manifest, digest and trusted producing SHA with release evidence; retention expiry must not erase sole evidence. + +### Recovery + +Rebuild from same reviewed SHA, compare contents and digest, issue new version for published immutable mistakes. + +### Pitfalls + +- Hidden-file default change broke explicit dotfile upload use cases; plugin archives can silently lose .codex-plugin if blindly uploaded. +- Artifact download is untrusted data until origin and contents are verified. + +### Official sources + +- [Official sources 1](https://github.com/actions/upload-artifact) +- [Official sources 2](https://github.com/actions/download-artifact) +- [Official sources 3](https://docs.github.com/en/rest/actions/artifacts) + +### Community reports + +- [Community reports 1](https://github.com/actions/upload-artifact/issues/602) + +## Cache keys, access and budgets + +Group ID cache. + +Capabilities actions-caches. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| lookup identity | path, key, restore-keys, OS/architecture/lockfile/toolchain salts; cache-version/ref scope | Do not mix incompatible binaries; restore prefixes trade hit rate for stale input risk. | Inspect exact key/ref/version and restored build behavior. | +| restore controls | lookup-only, fail-on-cache-miss, enableCrossOsArchive, supported restore/save actions | Fail on miss only when cache existence is an actual requirement; cache is ordinarily optional. | Test empty cache and prefix fallback; verify reproducible cold build. | +| write/eviction | immutable key entry; new key for changed content; retention/storage policies | Avoid secrets and release-only evidence; monitor eviction and thrashing. | Read usage, last_accessed_at, size and configured inherited limits. | +| trust boundary | fork/base/default-branch read visibility and write scope; workflow cache access restrictions | Treat cache as untrusted executable input; separate privileged/untrusted scopes. | Verify trust-specific keys/access plus authorized clean-cache build. | + +### Project applicability + +Small Python stdlib validation does not justify a cache unless measured runtime benefit exists. + +### History and human interaction + +Keep cache purge reason and old keys in issue/run evidence, never cache credential contents. + +### Recovery + +Delete only identified poisoned/stale keys; rerun cold, then change salt to prevent accidental reuse. + +### Official sources + +- [Official sources 1](https://github.com/actions/cache) +- [Official sources 2](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching) +- [Official sources 3](https://docs.github.com/en/rest/actions/cache) + +## Hosted, self-hosted and larger runner configuration + +Group ID runners. + +Capabilities actions-self-hosted-runners, actions-runner-groups, actions-hosted-runners. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| runs-on selection | hosted image/architecture/size; self-hosted label intersection; group plus labels | Use smallest suitable hosted runner; image labels can roll, so record actual image version. | Inspect job runner_name/group/labels/OS and setup image version. | +| self-hosted registration | repository/org scope; short-lived registration/removal tokens; JIT config; ephemeral flag | Use disposable isolated machines for untrusted work; registration is not host hardening. | Run benign job, confirm isolation and disposal/cleanup. | +| group access | all/selected repositories; public repo option; selected workflows/revisions; inherited org/enterprise policy | Restrict trusted runner group to known workflows and repos. | Read group repository IDs and allowed workflow refs; test excluded workflow refusal. | +| host lifecycle | runner version/update policy, online/busy, labels, proxy, workspace cleanup; ARC scale sets | Patch runner and images; bound queue and jobs; autoscaling requires separate infrastructure. | Check runner health and clean job-to-job environment. | +| larger runner settings | machine type/image/size/max parallelism, runner group, static IP/private networking where eligible | Enable only for a demonstrated workload and approved billing/network access. | Read saved runner config, network reachability and billed usage. | + +### Project applicability + +No current need for paid or self-hosted capacity in this plugin repository. + +### History and human interaction + +Capture operator registration/removal and host ownership, preserving relevant job logs before disposal. + +### Recovery + +Quarantine suspect runner, revoke credentials, replace image; never assume workspace deletion undoes compromise. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/runners/github-hosted-runners) +- [Official sources 2](https://docs.github.com/en/actions/reference/runners/self-hosted-runners) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/manage-access) +- [Official sources 4](https://docs.github.com/en/rest/actions/hosted-runners) + +## OIDC claims and cloud trust + +Group ID oidc. + +Capabilities actions-oidc. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| issuance permission | id-token:write only on authenticating job | Token issuance grants no cloud resource permission by itself. | Inspect effective job permission and provider exchange result. | +| trust conditions | issuer, audience, repository identity, ref/environment, job_workflow_ref; provider-supported claims | Scope provider trust to exact owner/repo/workflow/target; avoid broad wildcard repo trust. | Inspect redacted claims and denied wrong-ref/target exchange. | +| subject template | repo use_default; org/repo include_claim_keys; supported custom properties | Stage cloud trust migration before changing sub format; org template requires correct repo adoption. | Read template and compare actual non-sensitive sub/claim values. | +| reusable workflow identity | caller repository context versus called job_workflow_ref; accessible trust claims | Require reviewed reusable workflow identity where provider supports it. | Inspect caller/callee SHAs and successful narrow provider action. | +| environment interaction | environment-based subject replaces ref-based shape; branch rules are separate gate | Configure both cloud subject and GitHub deployment branch policy. | Negative-test disallowed ref and unapproved environment job. | + +### Project applicability + +No cloud deploy target currently exists; do not create one to exercise OIDC. + +### History and human interaction + +Record cloud role/trust policy revision and migration review, never JWT contents. + +### Recovery + +Restore previous subject template or compatible provider trust; revoke exposed long-lived credentials separately. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/security/oidc) +- [Official sources 2](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows) +- [Official sources 3](https://docs.github.com/en/rest/actions/oidc) + +## Environment protection and approvals + +Group ID environment-approvals. + +Capabilities deploy-environments, deploy-approval. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| required reviewers | eligible users/teams; one eligible approval suffices; prevent self-review; plan restrictions | Do not describe reviewer list as unanimous approval. Independent approval requires another eligible human. | Read reviewer IDs, prevent_self_review and actual approval actor. | +| wait timer | documented minute range; non-billable waiting; product/visibility gates | Use only for purposeful rollout delay; it does not inspect health. | Read wait duration and timestamps before job starts. | +| deployment branch policy | all; protected branches; selected branch/tag patterns | Gate deployment ref separately from repository branch protection; test tags explicitly. | Read protected_branches/custom_branch_policies and every branch/tag rule. | +| administrator bypass | allow/deny supported protection bypass setting | Keep bypass decision explicit and auditable; automation must not bypass its own gate. | Read saved option plus bypass actor/comment when used. | +| custom protection rules | installed GitHub App rules; enabled rules bounded by current platform limit | Verify app permission, external approval/health decision and failure handling. | Read rule integration IDs and actual requested/approved/rejected record. | +| environment configuration | name, URL, secrets, variables; create explicitly before referencing | A misspelled environment may be created without intended safeguards; exact name matters. | Read environment ID and settings before allowing workflow run. | +| approval operations | pending deployments approve/reject with comment; workflow gate differs from PR approval | Read artifact/SHA and change context before approval; never impersonate reviewer or weaken policy. | Record deployment IDs, reviewer, decision, comment and run continuation. | + +### Project applicability + +A single maintainer cannot manufacture independent peer approval. No deployable service exists; preserve zero required PR approvals as repository policy. + +### History and human interaction + +PR review, fork workflow execution approval and environment approval are distinct histories; record each real actor/decision. + +### Recovery + +Reject unsafe pending deployment, correct exact environment/ref and rerun; do not remove protection to unblock automation. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments) +- [Official sources 2](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments) +- [Official sources 3](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments) +- [Official sources 4](https://docs.github.com/en/rest/deployments/environments) + +## Deployment records, statuses and rollback + +Group ID deployment-records. + +Capabilities deploy-records. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| deployment request | ref, task, payload, environment, description, auto_merge, required_contexts, transient_environment, production_environment | Bind immutable SHA and required checks; deployment API is a record/request, not deployment engine. | Read record ID, sha, environment and exact request parameters. | +| status transitions | queued, pending, in_progress, success, failure, error, inactive; log_url, environment_url, auto_inactive | Report actual engine state and measured health. | Read ordered statuses and independently test application version/health. | +| cleanup/rollback | mark inactive; delete eligible deployment; external rollback to prior immutable artifact | Preserve operational trail; deactivate previews when removed. | Compare served SHA/digest before/after and status history. | + +### Project applicability + +Only create deployment records for an actual deployment; source/plugin release alone is not an application deployment. + +### History and human interaction + +Store approver, release artifact digest and rollback reason in deployment/linked issue history. + +### Recovery + +Deploy prior verified artifact with a new explicit rollback record; a green API status does not restore service. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/deployments/deployments) +- [Official sources 2](https://docs.github.com/en/rest/deployments/statuses) + +## Security products, inheritance and enforcement + +Group ID security-enablement. + +Capabilities security-enablement, security-configurations, security-overview. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| product switches | dependency graph/submission; Dependabot alerts/security updates; Code Security; Secret Protection; private vulnerability reporting | Evaluate eligibility and actual need separately; security policy prose is not scanning enablement. | Read effective repository security_and_analysis and product-specific status. | +| configuration association | org/enterprise configuration ID; selected/all/new-repository defaults; enforcement | Preserve inherited policy; inspect asynchronous association failures and product entitlements. | Read configuration, repository association/application state and effective setting. | +| enforced controls | enabled/disabled/not-set where schema supports; enforcement mode; delegated dismissal/bypass | Validate current schema per field rather than applying one enum blindly. | Read exact serialized config plus repository lock state. | +| coverage/risk | repository filters, missing coverage, exclusions, alert severity/age; eligible plan | Report unknown/unavailable separately from clean or disabled. | Reconcile visible repo counts and excluded/failed scans with ledger. | + +### Project applicability + +Public plugin can use eligible free controls; do not activate a paid organizational product or change license policy without authorization. + +### History and human interaction + +Retain setting changes, application status, responsible security owner and policy exception explanation. + +### Recovery + +Correct failed association or incompatible config; preserve evidence before detaching and never silently relax enforcement. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/code-security/configurations) +- [Official sources 2](https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/create-custom-configuration) +- [Official sources 3](https://docs.github.com/en/code-security/getting-started/github-security-features) + +## CodeQL, SARIF, Autofix and code quality + +Group ID code-scanning. + +Capabilities security-codeql, security-code-alerts, security-ai-autofix, security-code-quality. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| setup mode | default or advanced; language selection; query suite; supported runner | Choose default for supported uncomplicated builds; advanced for custom build/query needs. | Verify actual language database and completed analysis at intended SHA. | +| advanced options | matrix languages, build-mode none/autobuild/manual, paths/paths-ignore, queries/packs/model packs, config-file, category, schedule | Match build mode to language; path excludes can create blind spots. Keep category stable per analysis variant. | Read workflow/config at analyzed SHA and analysis category/language coverage. | +| blocking controls | security/quality severities, rule/tool selection, ruleset thresholds where supported | Pick actionable severity gates and require actual scan completion; empty upload is not clean coverage. | Inspect PR check result and corresponding alerts/instances. | +| SARIF upload | tool/category, commit_sha, ref, analysis_key, compressed payload; processing status | Validate SARIF and bind result to exact commit/ref; poll until processed. | Read sarif processing result and analysis commit/tool/category. | +| alert lifecycle | open/fixed/dismissed; allowed dismissal reason/comment; delegated review | Dismiss with evidence; reopen when premise fails. Deleting analysis is not remediation. | Read state, dismissing actor/time/reason and latest instance. | +| Autofix / AI Scan | available product switch; supported alert request; proposed patch/commit | Review generated diff and test before committing; do not equate generated fix with validated fix. | Rerun affected tests/scanner and inspect resolved finding. | +| variant databases / code quality | CodeQL database downloads/variant target scope; quality setup/findings supported schema | Use only for concrete cross-repository query/quality need; permissions differ from code scanning. | Read variant completion per repo and quality findings at target revision. | + +### Project applicability + +Analyze actual Python/scripts and workflow languages supported by selected tool; do not claim Markdown guidance has executable-language CodeQL coverage. + +### History and human interaction + +Preserve alert number, instance, reviewer rationale and scan SHA; approvals for dismissal remain separate from fix review. + +### Recovery + +Fix build/query/upload cause; rescan same intended revision; reopen unsupported dismissals and revert unsafe Autofix commit. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options) +- [Official sources 2](https://docs.github.com/en/rest/code-scanning/code-scanning) +- [Official sources 3](https://docs.github.com/en/rest/code-quality/code-quality) +- [Official sources 4](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal) + +## Dependency graph, review, submission and SBOM + +Group ID dependency-inventory. + +Capabilities security-dependency-graph, security-sbom, security-global-advisories. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| inventory sources | supported manifests/lockfiles, automatic or explicit dependency submission; detector/job identity | Resolve build dependencies where manifests are insufficient; do not fabricate runtime dependencies. | Match graph snapshot detector and SHA to lockfile/build resolution. | +| dependency-review policy | base/head diff; fail-on-severity, allowed/denied licenses, scope, allowlisted advisories/packages; supported action options | Use narrow documented exceptions with owner/expiry; license policy requires owner decision. | Inspect newly introduced vulnerable/license entries and check failure. | +| SBOM | SPDX export; async report UUID where supported; snapshot date and included scopes | Treat as inventory snapshot bounded by graph completeness. | Parse SPDX and compare package counts/versions to manifests and submission. | +| advisory matching | GHSA/CVE, ecosystem/name, affected/fixed range, withdrawn/reviewed status | Match precise version and ecosystem; absence of advisory is not safety proof. | Read advisory update time, withdrawn state and installed resolved version. | + +### Project applicability + +No new runtime dependency is authorized. Track action dependencies and required tooling; owner has not selected project license. + +### History and human interaction + +Keep dated SBOM/diff, dependency exception reviewer and changed lockfiles with PR evidence. + +### Recovery + +Submit corrected snapshot and regenerate SBOM; fix affected version or record bounded reviewed exception. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/dependency-graph/dependency-review) +- [Official sources 2](https://docs.github.com/en/rest/dependency-graph/dependency-submission) +- [Official sources 3](https://docs.github.com/en/rest/dependency-graph/sboms) +- [Official sources 4](https://docs.github.com/en/rest/security-advisories/global-advisories) +- [Official sources 5](https://github.com/actions/dependency-review-action) + +## Dependabot schedules, update strategy and runtime + +Group ID dependabot. + +Capabilities security-dependabot-alerts, security-dependabot-version, security-dependabot-runtime. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| update discovery | version:2; package-ecosystem; directory/directories; exclude-paths where supported | Configure every existing ecosystem, avoiding overlapping directory entries. | Inspect default-branch config and real job detected manifests. | +| schedule | daily/weekly/monthly/quarterly/semiannually/yearly/cron where current schema supports; day/time/timezone/cronjob | Choose workload-appropriate cadence; timezone explicit when needed. | Read actual scheduled job timestamps. | +| selection/strategy | allow; ignore dependency/version/update-types; versioning-strategy; target-branch; vendor; ecosystem-specific options | Review exclusions carefully: ignored vulnerable versions can block remediation. | Compare generated diff and job skipped-dependency reason. | +| groups | patterns/exclude-patterns, dependency-type, update-types, applies-to version-updates/security-updates; multi-ecosystem-groups | Use separate security/version intent; grouping failures need real job inspection. | Inspect generated PR members and applicable group. | +| cooldown | default-days; semver-major/minor/patch-days; include/exclude; default 3 days | Current 2026 default delays version updates even with no cooldown block; security updates are exempt. | Compare release publication, cooldown and PR creation time. | +| PR management | open-pull-requests-limit, labels, assignees, milestone, commit-message, branch separator, rebase-strategy; supported options per ecosystem | Preserve existing repository taxonomy; keep limits low enough for maintainable review. | Inspect generated PR metadata and rebase behavior. | +| registry/code execution | registries credential type/URL; selected registries; insecure-external-code-execution allow/deny | Allow external execution only for necessary reviewed ecosystem resolution; narrow registry credentials. | Read redacted registry resolution logs and execution settings. | +| runtime / repository access | standard/labeled runner, labels/group; org private-dependency repository allowlist/default access | Use labeled runner only on eligible repo; do not expand private repo access to fix typo. | Read effective runner settings and successful dependency resolution. | +| alerts/security PRs | severity/ecosystem/package/scope/state/EPSS filters; auto-triage rules and delegated dismissal if eligible | Prioritize real risk; dismissal requires reason and does not patch. | Read alert after merged fix and confirm installed version/checks. | + +### Project applicability + +Existing policy explicitly wants GitHub Actions updates. Add other ecosystems only if manifests exist. + +### History and human interaction + +Respond to supported @dependabot commands after reading bot status; human review remains required under repo rules, and bot actor restrictions affect secrets. + +### Recovery + +Read update log before rebase/recreate; remove obsolete ignore, fix registry access narrowly, rerun supported job and verify generated PR. + +### Pitfalls + +- Maintainer announcement July 14, 2026 confirms 3-day default version cooldown; older explanations assuming immediate version PRs are stale. +- Issue #16319 reports grouping failure in a particular non-root npm case; it is a reproduction lead, not proof all grouping is broken. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference) +- [Official sources 2](https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/optimizing-pr-creation-version-updates) +- [Official sources 3](https://docs.github.com/en/rest/dependabot/alerts) +- [Official sources 4](https://docs.github.com/en/rest/dependabot/runner-settings) +- [Official sources 5](https://docs.github.com/en/rest/dependabot/repository-access) + +### Community reports + +- [Community reports 1](https://github.com/dependabot/dependabot-core/discussions/15582) +- [Community reports 2](https://github.com/dependabot/dependabot-core/issues/16319) + +## Secret detection, push protection and exceptions + +Group ID secret-scanning. + +Capabilities security-secret-alerts, security-push-protection, security-custom-patterns. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| detection options | provider patterns, non-provider/generic/AI detection where eligible; validity checks; extended metadata | Enable supported useful detection; validity/metadata may contact provider and have product gates. | Read settings and scan history/coverage, not alert count alone. | +| push protection | repository protection versus personal protection; supported pattern participation | Do not mistake personal block for repository policy; repository scanning remains separate. | Read repository setting and safe documented test result. | +| custom patterns | name, secret regex, before/after context, additional match requirements; dry-run/publish; push protection | Use safe synthetic examples and negative corpus; dry-run before publishing noisy pattern. | Record pattern ID/version and positive/negative results. | +| bypass governance | test/false-positive/fix-later reasons where offered; delegated reviewers, expiry/review path | Never bypass a valid live credential; fix/revoke instead. Independent reviewer decision stays with reviewer. | Read request, actor, comment, expiry and resulting alert. | +| alert state | open/resolved; revoked, false_positive, used_in_tests, wont_fix or current schema reasons; location/history | Revoke with provider first; resolving UI alert does not revoke token or erase history. | Check provider revocation and read alert location/resolution metadata. | +| dismissal governance | direct or delegated dismissal; role eligibility; notification/review state | Confirm reviewer coverage before enforcing; preserve rationale even for test secrets. | Read request/outcome, reviewer and reopened state if rejected. | + +### Project applicability + +Useful for public repo; synthetic tests must not leak live values. Security setting read may itself contain secret values; redact outputs. + +### History and human interaction + +Retain private alert IDs, discovery/rotation timestamps and reviewed exception reasons; do not copy secret strings into public issues. + +### Recovery + +Revoke at provider, replace consumers and scan history; history rewriting is separate consequential work and does not invalidate copied credentials. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning) +- [Official sources 2](https://docs.github.com/en/rest/secret-scanning/secret-scanning) +- [Official sources 3](https://docs.github.com/en/rest/secret-scanning/push-protection) +- [Official sources 4](https://docs.github.com/en/rest/secret-scanning/custom-patterns) +- [Official sources 5](https://docs.github.com/en/code-security/concepts/security-at-scale/delegated-alert-dismissal) + +## Confidential reports, advisory publication and campaigns + +Group ID security-coordination. + +Capabilities security-advisories, security-campaigns. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| reporting policy | SECURITY.md supported versions/contact; private vulnerability reporting enabled/disabled | Provide confidential route and realistic response ownership. | Inspect rendered policy and actual reporting availability. | +| advisory content | draft/published/withdrawn, severity/CVSS/CWE, vulnerable ranges/patched versions, references, credit, CVE request | Keep report private until fix/disclosure agreement; verify affected ranges. | Read advisory state/collaborators and clean install of patched release. | +| collaboration | report triage, comments, invited collaborators, temporary private fix fork | Grant only necessary confidential access and retain reporter coordination. | Read actual collaborator identities and private fork/review history. | +| campaign setup | selected code alerts, repositories, managers/teams, contact, deadline; draft UI versus published API; optional generated issues | Use for multi-repository remediation requiring tracking; preserve private finding visibility. | Read published campaign scope/counts and corresponding resolved alerts. | +| publication / withdrawal | explicit publish/CVE disclosure; withdrawal constraints; notification effects | Publication is irreversible disclosure; prepare exact reviewed advisory/fix before authorized publish. | Read public GHSA/CVE and release timestamps; verify issue scope. | + +### Project applicability + +Confidential reporting is useful; campaigns require actual alert program and owner eligibility, not a placeholder. + +### History and human interaction + +Preserve reporter credits, embargo agreement, fix review and disclosure decision privately; public release notes must respect agreed timing. + +### Recovery + +Correct advisory affected ranges/notes and notify existing recipients; never claim withdrawal removes already disclosed information. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/security-advisories/repository-advisories) +- [Official sources 2](https://docs.github.com/en/rest/campaigns/campaigns) + +## Drafts, generated notes, assets and immutability + +Group ID release-lifecycle. + +Capabilities releases-lifecycle, releases-assets, releases-immutable. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| release identity | tag_name, target_commitish for new tag, name, draft, prerelease, make_latest | Existing tag determines commit; target_commitish does not move it. Match plugin manifest version to v-tag. | Resolve tag object/commit, release ID and version file. | +| notes | body; generated notes; previous tag/configuration; categories/exclusions; discussion category where eligible | Review generated changelog; include install commands, validation evidence and limits. | Read rendered notes and linked issues/PRs against intended range. | +| asset upload | binary content type, filename/label; draft upload URL; per-asset ID/digest/size | Build deterministic installable archive, inspect hidden files and allowlist before attaching. | Download attached bytes and compare SHA-256/archive manifest. | +| immutability | repo/org policy; new release behavior; immutable flag | Create draft, attach every asset, then publish. Published assets/tag become locked; notes/title/latest/prerelease remain editable. | Read immutable flag, tag SHA, asset digest and release attestation. | +| publication/recovery | draft update versus publish; prerelease/stable; delete constraints; corrective next version | Do not publish from merely prepared source; irreversible distribution needs existing release authorization. | Read published_at, exact asset bytes, install from release and latest pointer. | + +### Project applicability + +Core delivery path: plugin version, v-tag, installation docs and validation evidence must agree. Immutability prevents patching published archive. + +### History and human interaction + +Record release preparer/reviewer/publisher, reviewed tag SHA and prior release comparison. Discussion and release notes carry human feedback/history. + +### Recovery + +For immutable wrong asset/tag, publish a new corrected version; editable notes cannot change locked bytes. Never force-move tag as an assumed recovery. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/releases/releases) +- [Official sources 2](https://docs.github.com/en/rest/releases/assets) +- [Official sources 3](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) +- [Official sources 4](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases) + +## Provenance, SBOM and linked artifact records + +Group ID attestations. + +Capabilities attestations-provenance, attestations-linked-artifacts. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| statement type | build provenance or SBOM attestation; artifact digest/name; supported registry publication | Attest exact distributed bytes; provenance says how/where built, not absence of bugs. | Verify subject digest and trusted repository/workflow identity. | +| workflow grants | id-token:write, attestations:write; contents/read and packages/write only when needed | Isolate attestation in trusted release job; eligibility varies with visibility/plan. | Inspect effective permissions and successful verify output. | +| verification constraints | trusted owner/repo/workflow, predicate type, signer identity, source ref/commit; offline/bundle modes where supported | Do not accept any valid GitHub signature; require intended producer. | Run gh attestation verify against downloaded exact asset and identity policy. | +| linked artifacts | storage metadata and artifact association using current endpoint schema | Distinguish storage record/link from uploaded file and signed attestation. | Read link identity, digest and referenced object existence. | + +### Project applicability + +Consider for installable release artifact when trusted workflow builds it; record unavailable eligibility instead of assuming. + +### History and human interaction + +Keep verifier command/policy/output and producing workflow SHA with release record; release attestation and custom build provenance are distinct. + +### Recovery + +Rebuild/re-attest correct bytes in trusted workflow; revoke trust in compromised producer and publish corrective version. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds) +- [Official sources 2](https://docs.github.com/en/rest/repos/attestations) +- [Official sources 3](https://docs.github.com/en/rest/orgs/artifact-metadata) + +## Registries, package ACL and trusted publishing + +Group ID packages. + +Capabilities packages-metadata, packages-registry, packages-access, packages-trusted-publishing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| registry/form | OCI/GHCR, npm, NuGet, RubyGems granular; Maven/Gradle repository-scoped; host support | Choose only ecosystem actually distributed; REST metadata does not publish package bytes. | Install/pull exact version/digest from clean intended consumer. | +| authentication | GITHUB_TOKEN packages:read/write in workflow; supported classic PAT scopes for registry; registry-specific OIDC/trusted publishing | Prefer short-lived workflow credential; trusted-publishing support is registry-specific, not universal. | Verify exact registry trust configuration and authenticated clean install. | +| link and inheritance | repository link, inherited repository permissions, automatic inheritance org policy; explicit user/team ACL | Linked repo alone may not grant workflow access if ACL inheritance differs. | Read package settings/inheritance and intended principal access. | +| Actions access | selected repository access to granular package; separate Codespaces access | Grant only consumer/producer repos; token scope alone cannot override package ACL. | Test authorized workflow and excluded repo denial. | +| visibility | private/internal/public where supported; public transitions can be restricted/irreversible | Do not infer public package from public source repository. | Read package visibility and anonymous pull when intended. | +| versions/delete/restore | immutable consumer digest, tags, version metadata; package/version deletion; restoration eligibility/window | Do not delete versions still used; inspect downloads and restoration constraints first. | Read version ID and digest; restore and reinstall when authorized. | +| external trusted publisher | owner/repository/workflow/environment binding; OIDC permission and registry policy | For npm or other external registry, distinguish that registry from GitHub Packages. Verify registry official docs. | Perform registry-specific dry-run or publish only with release authorization; read resulting provenance. | + +### Project applicability + +GITHUB.md explicitly says no separate package artifact requirement. Plugin marketplace/source releases currently satisfy distribution; do not publish artificial package. + +### History and human interaction + +Retain package/version IDs, producer SHA, ACL reviewers and deprecation notices; preserve consumer compatibility. + +### Recovery + +Correct package ACL/link narrowly; rotate exposed tokens; publish corrected immutable version/digest instead of relying on mutable tags. + +### Pitfalls + +- Community reports show packages:write token permission alone did not fix missing package inheritance/Actions access; inspect both. +- Classic PAT restrictions and SSO can block registry auth despite scope. Do not respond by granting broader scopes blindly. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages) +- [Official sources 2](https://docs.github.com/en/packages/learn-github-packages/publishing-a-package) +- [Official sources 3](https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package) +- [Official sources 4](https://docs.npmjs.com/trusted-publishers/) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/32184) +- [Community reports 2](https://github.com/orgs/community/discussions/57809) + +## Pages source, DNS, TLS and publication + +Group ID pages. + +Capabilities pages-settings, pages-builds. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| build_type / source | legacy branch path root/docs or workflow; branch; custom workflow upload/deploy | Use source matching actual site generator; branch commits using GITHUB_TOKEN do not trigger branch Pages build. | Read Pages configuration and actual successful build/deployment SHA. | +| workflow grants / target | contents:read, pages:write, id-token:write; github-pages environment and artifact | Scope deployment permissions to job and keep environment protections. | Read uploaded Pages artifact, deployment status and environment. | +| custom domain | CNAME, DNS A/AAAA/CNAME records, domain verification, protected domain ownership | Verify domain before linking and remove stale DNS when disabling. | Read DNS health, ownership record and served hostname. | +| HTTPS | certificate provisioning and https_enforced when available | Wait for valid certificate before enforcing; inspect mixed content. | Verify HTTPS chain/hostname and HTTP redirect. | +| visibility / path | project site base path, public/private enterprise entitlement; repository visibility differs | Do not publish private source content without intended audience decision. | Fetch as intended anonymous/authenticated user and inspect base-path assets. | +| build/history/recovery | branch build/request; workflow Pages deployment status/cancel; external health | A successful build does not prove correct public content. | Fetch expected marker/version, navigation/assets and custom-domain redirect. | + +### Project applicability + +No site requirement exists in GITHUB.md; keep Pages not-applicable until useful published site is requested. + +### History and human interaction + +Record domain owner authorization, workflow approval and deployed SHA; preserve previous successful deployment for rollback. + +### Recovery + +Redeploy prior verified site revision; correct source/base path/DNS, then recheck served bytes and TLS; deleting Pages alone leaves dangerous stale DNS. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) +- [Official sources 2](https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages) +- [Official sources 3](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages) +- [Official sources 4](https://docs.github.com/en/rest/pages/pages) + +## Required check identity and review integration + +Group ID checks-statuses. + +Capabilities checks-runs, checks-suites, checks-commit-statuses. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| check run | name, head_sha, status/conclusion, started/completed timestamps, output/annotations, details_url; app identity | Stable unique names per required check; attach to exact tested SHA. | Read check name, app ID, head_sha and actual command evidence. | +| check suite | automatic creation preferences, rerequest, suite status | Suite success does not replace individual required checks; some writes are App-only. | Read suite and associated run conclusions. | +| commit status | context, state pending/success/failure/error, target_url, description | Keep context distinct from check-run names to avoid ambiguous requirement matching. | Read combined and individual statuses on intended SHA. | +| protection binding | required context/app, strict branch freshness, merge_group coverage; skipped/neutral semantics | Read rulesets and classic protection; require checks that actually test code. | Observe PR required check evaluation after latest push and merge-queue test commit. | + +### Project applicability + +Existing three validation commands remain authoritative. Peer approval count zero is deliberate single-maintainer policy. + +### History and human interaction + +Keep reviewer comments, check rerequest actor, force-push/stale-review history and final merge SHA; green unrelated SHA is insufficient. + +### Recovery + +Fix missing event/name/app permission and rerun actual required check; never spoof status or remove protection to merge. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/checks/runs) +- [Official sources 2](https://docs.github.com/en/rest/checks/suites) +- [Official sources 3](https://docs.github.com/en/rest/commits/statuses) +- [Official sources 4](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) + +## Agentic workflows and constrained output + +Group ID agentic-workflows. + +Capabilities actions-agentic-workflows. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| definition / compilation | Markdown instructions plus frontmatter; generated workflow; gh aw compile | Review generated YAML after instruction change and keep compiled artifact synchronized. | Compile and compare source/generated diff; inspect actual workflow SHA. | +| engine / credentials | supported Copilot/Codex/Claude/Gemini engine; engine-specific secret and billing | Choose only an authorized available engine and narrow authentication. | Check engine initialization and approved usage budget without exposing keys. | +| guardrails | read-only runtime, firewall/network, tools, explicit safe-outputs and threat-detection gates | Allow only requested outputs; proposed issue/comment/PR is still external action requiring existing authorization. | Inspect generated downstream write job permissions and resulting object IDs. | +| review / triggers | schedule/dispatch/events; allowed actors; human-reviewed PR outputs | Treat repository text as untrusted prompt input; retain human review before merge/deploy. | Exercise controlled input and inspect output safety/review history. | + +### Project applicability + +Optional automation needs concrete recurring task, engine eligibility and authorized outputs; ordinary deterministic validation is sufficient now. + +### History and human interaction + +Retain prompts/config revisions, generated proposals, human acceptance/rejection and exact downstream writes; do not call model output an independent approval. + +### Recovery + +Disable affected workflow, stop pending writes and revoke compromised credentials; fix prompt/tool policy and inspect all emitted changes before reenable. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows) +- [Official sources 2](https://docs.github.com/en/actions/tutorials/develop-agentic-workflows-in-github-actions) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/agents/about-github-agentic-workflows) + +## Organization member privileges and effective access + +Group ID organization-access-defaults. + +Capabilities admin-organization-profile, admin-organization-policy-settings, admin-organization-members, admin-outside-collaborators. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Base repository permission | none \| read \| write \| admin; REST documented default read | Recommend none for private least-privilege organizations, then explicit teams; preserve existing grants. Internal repositories remain readable to enterprise members. | Read default_repository_permission and test effective access of a representative ordinary member. | +| Member repository creation | members_can_create_public_repositories/private_repositories/internal_repositories: boolean per visibility | Use separate visibility controls; enterprise may prohibit internal/public creation. Do not send closing-down members_allowed_repository_creation_type. | Read each flag and inherited enterprise constraint. | +| Member administrative powers | members_can_delete_repositories; members_can_change_repo_visibility; members_can_invite_outside_collaborators; members_can_create_teams; members_can_delete_issues: booleans | Choose each separately; broad repository admin authority does not authorize destructive actions in this session. | Read flags plus actual repository administrators; record inherited restrictions. | +| Public identity versus billing contact | name/company/blog/location/public email/description versus billing_email | Publish only owner-approved contact data; billing address stays private. | Inspect public profile signed out and billing contact through owner-only settings. | +| Invitation and membership | invitation pending/failed; organization role member/admin; member visibility private/public | Invite exact login/email and chosen role; wait for acceptance and required identity setup. Never infer full membership from public members. | Read invitations and authenticated membership; verify access after acceptance. | +| Outside collaborator conversion/removal | organization member versus outside collaborator; repository role per grant | Inventory team access and owned responsibilities first; explicit offboarding scope includes deploy keys/App access, not just user removal. | Read remaining direct/team/base grants and outstanding invitations after change. | + +### Pitfalls + +- REST response examples are not tenant defaults. Base changes affect existing members too; private forks require separate inspection. +- A lower direct grant cannot subtract higher base/team/custom-role access. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/orgs) +- [Official sources 2](https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/setting-base-permissions-for-an-organization) +- [Official sources 3](https://docs.github.com/en/rest/orgs/members) +- [Official sources 4](https://docs.github.com/en/rest/orgs/outside-collaborators) + +## Nested teams and delegated roles + +Group ID teams-roles. + +Capabilities admin-teams, admin-team-members, admin-team-idp-sync, admin-team-external-groups, admin-organization-role-assignments, admin-organization-custom-roles, admin-organization-custom-role-definitions, admin-enterprise-role-assignments, admin-organization-security-managers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Team privacy | secret \| closed; new non-nested REST default secret, child default closed | Set explicitly: closed for discoverable normal teams; secret cannot have parent/children. | Read privacy and parent for every team, including secret teams through owner identity. | +| Hierarchy and identity | parent_team_id or parent_team_slug; ID takes precedence | Keep existing team IDs; resolve current slug after rename; verify inherited repository grants. | Read parent/children and effective repository access for child member. | +| Mention notifications | notifications_enabled \| notifications_disabled; default enabled | Disable only intentionally; CODEOWNERS/team mentions must reach responsible humans. | Read notification_setting; ask intended maintainers to verify receipt during authorized collaboration. | +| Team member authority | member \| maintainer; pending invitation versus active membership | Maintainer is team administration, not organization owner. Team creator becomes maintainer automatically. IdP-synced membership is changed at IdP. | Read team membership role/state and synchronization mapping. | +| Repository roles | read/triage/write/maintain/admin in UI; pull/push map to read/write in team REST; custom role name/ID | Assign the least role needed; check combined base/direct/team/custom permissions. | Read permission sources and a representative allowed/denied operation. | +| Custom role definition | base repository role plus additional permission identifiers; organization role permissions from fine-grained-permission discovery | Discover currently allowed identifiers, dependencies and plan; do not hard-code an old permission list. Separate definition from user/team assignment. | Read role definitions, assigned users/teams and inherited permissions before deleting or replacing a role. | +| Security manager migration | organization roles assignment; legacy security-managers routes retiring | Use current organization role discovery; preserve historical role-change evidence and existing assignments. | Read replacement role and exact affected users/teams; record unsupported legacy endpoint response. | + +### Pitfalls + +- Secret-team names can appear in mention text. A successful visible-team list does not prove no secret team exists. +- Do not remove a role as a shortcut to reconciling assignments; recover original role and grants first. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/teams/teams) +- [Official sources 2](https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles) +- [Official sources 4](https://docs.github.com/en/rest/orgs/organization-roles) +- [Official sources 5](https://docs.github.com/en/rest/orgs/security-managers) + +## SSO, provisioning, 2FA and account recovery + +Group ID identity-recovery. + +Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-organization-scim, admin-enterprise-scim, admin-enterprise-credentials. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Organization SAML connection | Sign on URL; Issuer; public certificate; enabled versus required | Configure/test first, authenticate owner at least once, preserve offline recovery codes; only then enforce. | Test IdP login and inspect list of members GitHub proposes removing before confirmation. | +| Enterprise SAML inheritance | enterprise enforced versus organization configuration | Enterprise enforcement overrides organization SAML; assess every organization and service credential before rollout. | Verify effective connection and representative member login across affected organizations. | +| Provisioning model | ordinary account invitations; organization SCIM; Enterprise Managed Users SCIM | Identify model before changing users. IdP governs managed-user lifecycle; ordinary local invitation is not an EMU substitute. | Read external identity, active state and group/team mapping with correct host API. | +| Authentication assurance | 2FA required yes/no; allowed 2FA methods per actual host policy; passkeys/security keys/recovery methods | Inventory impacted users and service accounts, notify humans, retain independent recovery methods; enforcement requires access-impact authorization. | Read requirement and member compliance; verify owners retain a tested recovery route. | +| Verified/approved domains | DNS verification record; verified domain; notification-domain restriction where available | Verify DNS ownership before restricting notifications; record DNS lifecycle owner. | Read verification and send destinations; do not confuse verified domain with automatic SSO provisioning. | +| Offboarding and recovery | suspend/deprovision; remove membership; revoke SSO credential; revoke token; delete account are distinct | Record actor/subject IDs, teams, grants and recovery constraints; choose reversible suspension when it meets request. | Check effective denial and preserved records; use documented recovery rather than recreating identity blindly. | + +### Pitfalls + +- Enforcing organization SAML can remove members who have not authenticated with IdP. Downloading recovery codes into logs exposes recovery access. +- SCIM deprovisioning, IdP group deletion and GitHub membership removal are different effects; verify all required layers. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enabling-and-testing-saml-single-sign-on-for-your-organization) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/enforcing-saml-single-sign-on-for-your-organization) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-iam/using-saml-for-enterprise-iam/configuring-saml-single-sign-on-for-your-enterprise) +- [Official sources 4](https://docs.github.com/en/rest/scim) + +## PAT and OAuth lifecycle + +Group ID tokens-oauth. + +Capabilities admin-organization-token-governance, admin-enterprise-token-inventory, admin-oauth-app-authorizations, admin-credential-revocation. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| PAT family and resource owner | fine-grained \| classic; one resource owner for fine-grained; all versus selected repositories | Prefer fine-grained when endpoint supports it, or installation App for long-lived automation. Check unsupported workflows before choosing token. | Inspect token family, owner, selected repositories and endpoint-specific permission without showing token. | +| Fine-grained approval | Require administrator approval (documented default) \| Do not require administrator approval | Keep approval unless owner explicitly chooses otherwise; owners own requests auto-approve. Pending tokens only read public resources. | Read pending requests, requested access/expiry and final request state; requester confirms operation after approval. | +| Classic access policy | allow versus restrict classic PAT access, separate from fine-grained approval | An approval rule does not control classic PATs; choose both policies and inherited enterprise restrictions. | Read both token-family policies and existing token inventory. | +| Maximum token lifetime | organization/enterprise configured maximum per token family; token expiration date | Use finite lifetime appropriate to workflow and rotation owner; read actual allowed range from current host rather than inventing universal default. | Check expiry and rotation reminder; verify replacement works before revoking old token. | +| Request decision API | action approve \| deny; optional reason max1024; GitHub App user/installation tokens only | Human reviews requested repositories and permissions; organization App token needs Personal access token requests write. PAT cannot approve itself through this API. | Read request ID/state; preserve reason and actor; requester gets notification. | +| OAuth app governance | authorized user grant; organization OAuth restrictions; approved/requested App access | Separate user authorization from organization approval and SSO authorization. Never assume OAuth install is GitHub App install. | Read app owner/client identity, scopes, organization authorization and last-use evidence. | +| Revocation | revoke organization access; revoke authorization; delete secret; emergency credential revocation | Record consequence and affected automation; revoke exposed credential and rotate consumers. Revocation cannot recover original secret. | Verify old credential fails and new scoped credential succeeds without logging either. | + +### Pitfalls + +- 403/404 may be SSO/resource-selection/approval restrictions, not absent repository. Changing token scope cannot add rights the token owner lacks. +- Do not paste credentials into issue reports, approval reasons, URLs or diagnostic artifacts. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) +- [Official sources 2](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization) +- [Official sources 3](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/managing-requests-for-personal-access-tokens-in-your-organization) +- [Official sources 4](https://docs.github.com/en/rest/orgs/personal-access-tokens) +- [Official sources 5](https://docs.github.com/en/rest/apps/oauth-applications) + +## App registration versus installation + +Group ID app-registration. + +Capabilities admin-github-apps, admin-github-app-installations, admin-enterprise-app-installations, admin-marketplace. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Registration owner/distribution | personal or organization owner; Only on this account \| Any account | Keep internal app private unless broader distribution requested. | Read App ID/slug/owner and installation availability. | +| User authorization flow | up to10 callback URLs; expiring user tokens selected by default; request OAuth during installation; device flow optional | Enable only needed flow; keep expiry. Setup URL cannot coexist with requesting user OAuth during installation. | Test exact redirect and expiration/refresh path without exposing secrets. | +| Post-install configuration | Setup URL; Redirect on update boolean | Use for required onboarding; installation repository selection changes can re-trigger setup. | Verify existing installation update preserves completed human configuration. | +| Permission/event selection | No access \| Read-only \| Read & write as offered; repository/organization/account permissions; events constrained by permissions | Choose endpoint minimum; expanded permissions require installation approval. | Compare requested registration permissions to currently approved installation permissions. | +| Installation repository scope | All repositories \| Only select repositories; installation ID; suspended state | Select only necessary repositories; registration, user consent and installation are separate. | Read installation repository list and mint a scoped token only for authorized operation. | +| Private keys and token lifecycle | App JWT; installation token; user token; private-key rotation | Store keys securely; install token may narrow approved permissions/repos. Rotate by adding replacement, verifying, then removing old key. | Verify App identity and token expiry/permissions; do not print PEM/JWT/token. | + +### Pitfalls + +- Uninstalling an external-property App removes its external custom properties; preserve values first. +- App permission change is not proof all existing installations accepted the expansion. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app) +- [Official sources 2](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party) +- [Official sources 3](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation) + +## Webhook security and delivery recovery + +Group ID webhook-delivery. + +Capabilities admin-organization-webhooks, admin-github-app-webhooks. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Delivery configuration | active true/false; config.url HTTPS; content_type json/form; insecure_ssl 0/1; secret stored separately | Use HTTPS, verification enabled (0) and high-entropy secret; subscribe only needed events. | Read redacted configuration and selected events; validate signature on receiver. | +| Receiver behavior | X-GitHub-Event plus action; X-GitHub-Delivery; 2XX within10seconds | Durably enqueue, acknowledge quickly, process idempotently; unknown action is not assumed safe. | Inspect receipt, signature failure, queue processing and resulting business object. | +| Delivery recovery | ping; deliveries; delivery detail; redeliver attempt | Inspect failures before replay; replay same GUID must not duplicate side effects. | Read redelivery result and downstream state; POST acceptance alone is incomplete. | +| Retry credentials/runtime | organization/App/repository webhook permissions; installed runtime/module support | Use scope-correct credentials; GITHUB_TOKEN cannot redeliver repository webhooks. Validate sample runtime imports before deployment. | Run bounded redelivery test; check response status and error paths. | +| History and secret rotation | original delivery GUID plus attempt IDs/statuses; old/new verifier secret transition | Retain payload metadata only under approved data policy; coordinate producer/receiver rotation. | Verify latest signature and queue state, preserve original failed delivery and retry evidence. | + +### Pitfalls + +- OAuth-created hooks can be inaccessible to another credential type. Secret plaintext is not recoverable from readback. +- Community #126156 reports a stale CommonJS Octokit sample failing ERR_REQUIRE_ESM; current App guide uses .mjs. Verify installed package/runtime, do not cargo-cult old snippet. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks) +- [Official sources 2](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-repository-webhook) +- [Official sources 3](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-github-app-webhook) +- [Official sources 4](https://docs.github.com/en/rest/orgs/webhooks) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/126156) + +## Audit history and incident evidence preservation + +Group ID audit-history. + +Capabilities admin-organization-audit-and-sso, admin-enterprise-audit, admin-organization-api-insights, admin-activity-events, admin-personal-data-export. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Read channel/time window | UI; JSON/CSV export; REST; stream; explicit created/date filters | UI default shows3months; enterprise web events180days and Git events7days. Export early; event channel determines completeness. | Record earliest/latest timestamps, filters, pages and counts for each channel. | +| Git versus API event evidence | Git clone/fetch/push; API requests; web-origin operations; SSO responses | Git REST events exclude some web/API initiated effects; do not equate Git event inventory with all mutations. | Correlate request IDs, actor/subject IDs, repository IDs and object timelines. | +| Streaming configuration | destination; active/paused; API request events opt-in; source IP disclosure; available Copilot agent events preview | Use enterprise stream for future retention; decide sensitive IP/log access and destination permissions with owner. | Verify receiver ingestion, last event time, health notifications and queryable retained sample. | +| Continuity and deduplication | at-least-once delivery;7day pause buffer; destination-specific acceptance window | Keep event IDs and deduplicate; repair misconfiguration within6days. Datadog can reject events older than18hours. | Monitor gaps and resume cursor; do not claim backfill predating stream enablement. | +| Preservation artifact | raw read-only export; capture timestamp/host/API version/filter; checksum; restricted storage; separate analysis | Preserve original evidence and write an additive change ledger; record renamed/deleted actor IDs. Export before destructive account/policy changes. | Verify archive readability and checksums; test incident-responder access without publishing private logs. | +| Account export | requested/in-progress/completed; expiring download link; revoke download link | Treat point-in-time personal metadata export separately from repository backup and audit stream. | Inspect completed archive structure privately and verify requested revocation. | + +### Pitfalls + +- An empty event slice can be retention, filter, permission or channel loss. GitHub Support does not preserve incident logs for you. +- API usage statistics, public Events and repository traffic are not substitutes for retained security audit evidence. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/accessing-the-audit-log-for-your-enterprise) +- [Official sources 2](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization) +- [Official sources 3](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise) +- [Official sources 4](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/requesting-an-archive-of-your-personal-accounts-data) + +## Billing budgets, attribution and hard stops + +Group ID billing-budget-options. + +Capabilities admin-billing-budgets, admin-billing-usage, admin-billing-cost-centers, admin-billing-usage-reports, admin-enterprise-licensing. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Budget subject | budget_scope organization/repository/multi_user_customer/user; enterprise/cost_center on their supported scope endpoints | Match payer and subject; do not create a duplicate budget before reading existing overlapping controls. | Read budget IDs, scopes, product/SKU and payer; reconcile pages against total_count/has_next_page. | +| Pricing selector | BundlePricing + ai_credits; ProductPricing + product; SkuPricing + SKU | Use live supported billing schema, not retired product assumptions. | Read chosen selector and resulting budget; export actual SKU usage. | +| Amount/enforcement | budget_amount integer; prevent_further_usage boolean; user/universal must true | Set authorized cap; ordinary budget UI hard stop is off by default, alerts alone do not cap spend. | Read enforcement and applicable remaining capacity; never disable cap merely to clear an error. | +| User budget payload | user login required for user scope; budget_entity_name empty allowed; optional future expires_at YYYY-MM-DD | Explicit user field is required even where generated schema omits it. User budgets always stop usage. | Read subject/expiry and test affected user policy without incurring unauthorized charges. | +| Alerting | budget_alerting.will_alert; alert_recipients logins; user-scope alerting unavailable | Route supported alerts to responsible humans; distinguish budget notice from product-access or seat request. | Read alert recipients and supported scope; verify delivery through authorized process. | +| Cost center inclusion | usage counts toward enterprise by default; exclusion optional | Exclude only with approved independent spending authority; keep a cost-center cap. | Reconcile organization/user membership and exported attribution against invoice/usage. | +| Recovery from blocked usage | reset cycle; paid usage policy; user limit; organizational/cost-center/enterprise limit; account entitlement | Identify limiting layer first; request budget increase from budget owner or wait for reset. | Read all applicable controls and report exact failed endpoint/policy; use UI when API is unhealthy. | + +### Pitfalls + +- Community #166810 suggests disabling stop usage; this can permit uncapped charges and is not a safe default. Current official budget order/AI credits supersede old premium-only advice. +- Community #206489 reports organization budgets 400 with user-scoped budgets; unconfirmed globally. Preserve error and use UI, do not report zero budgets or delete seats as a workaround. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/billing/budgets) +- [Official sources 2](https://docs.github.com/en/copilot/concepts/billing-and-usage/organizations-and-enterprises/budgets) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/manage-and-track-spending/manage-company-spending) + +### Community reports + +- [Community reports 1](https://github.com/orgs/community/discussions/166810) +- [Community reports 2](https://github.com/orgs/community/discussions/206489) +- [Community reports 3](https://github.com/orgs/community/discussions/173899) + +## Copilot seats, nested policy and client governance + +Group ID copilot-governance. + +Capabilities admin-copilot-seats, admin-copilot-usage-metrics, admin-copilot-agent-policy, admin-enterprise-ai-controls, admin-mcp-and-custom-agent-policy. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Access assignment | selected users/teams versus broader membership; organization seat versus enterprise-assigned access | Start with authorized pilot; identify payer and approval owner. A seat is not a feature policy or budget. | Read assigned seats/access and active entitlement for target human. | +| Enterprise enforcement | Enabled; Disabled; Let organizations decide/No policy; selected organizations where offered | Read inherited policy first; organization cannot override enterprise enforcement. | Inspect effective policy for each target organization and user. | +| Unconfigured defaults | separate default availability policies for GA features and GA models; enterprise-assigned user fallback policy | Choose future-feature/model defaults explicitly; do not invent one universal default for every product. | Read both defaults and explicit per-feature/model overrides. | +| Multiple license conflicts | same-enterprise usually least restrictive; cross-enterprise usually most restrictive; feature-specific exceptions | Evaluate paying org and exact conflict matrix: metrics/public-code privacy/non-GitHub semantic indexing differ. | Test target identity effective feature access, not only one organization settings page. | +| Separate feature/client switches | GitHub.com; CLI; Copilot app; cloud agent; review; model availability; preview; feedback; MCP in Copilot | Configure each applicable switch; Copilot MCP policy does not govern GitHub MCP in third-party hosts. | Read policy supported-surface matrix and verify actual client behavior. | +| Cloud-agent organization targeting | enabled everywhere/disabled/organization-delegated/selected organizations; selected IDs or organization properties | Property-based selection is evaluated at configuration time, not continuously on later property edits. | Re-read enabled org list after property changes; reconcile intentionally. | +| Human lifecycle and cost | access request; owner approval; onboarding; usage review; inactivity/offboarding | Give users instructions, responsible support contact and budget limit; usage metrics are not a productivity ranking. | Verify activation and failed access, record approved removal and effective date without deleting review history. | + +### Pitfalls + +- A toggle read is not a seat, model entitlement, client setting or billing verification. +- Do not assume organization policy applies to personal users merely accessing an organization repository; policy descriptions define audience. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/concepts/enterprise/policies) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/enterprise-administrators/policy-conflicts) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies) +- [Official sources 4](https://docs.github.com/en/copilot/concepts/enterprise/agent-management) +- [Official sources 5](https://docs.github.com/en/rest/copilot/copilot-user-management) + +## Content exclusion, review and local agent controls + +Group ID copilot-exclusions. + +Capabilities admin-copilot-content-exclusions, admin-copilot-code-review, admin-copilot-cli-customization, admin-copilot-sdk. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository exclusion syntax | YAML list of path patterns; /scripts/** versus /scripts/*; case-insensitive fnmatch | Use patterns scoped to actual sensitive files; preserve inherited exclusions. | Test excluded file and nonexcluded control file for inline/chat/review behavior. | +| Organization/enterprise patterns | repository URL/name mapping to path list; wildcard repository key for filesystem-wide paths | Match intended clone URL and seat audience; enterprise and org scopes differ. | Inspect merged effective policies and actual resolved repository. | +| Propagation and supported clients | up to30minutes IDE propagation; reload client to refresh; current canonical support matrix | Recheck current canonical docs and installed client: older enterprise docs may still say CLI/agents unsupported. | Reload VS Code or restart supported IDE then test actual target client. | +| Exclusion boundary | guardrail; indirect access, symlinks, remote filesystems, third-party MCP exceptions | Use OS/tool permissions for hard boundaries; content exclusion cannot guarantee every access path. | Inspect tool permissions and avoid sensitive-file access in verification. | +| CLI/SDK execution | instructions/agents/skills/plugins/hooks/MCP/LSP; allowed tools/paths; permission handler; model/provider | Read installed runtime schema; installation of config does not authorize arbitrary hooks or tools. | Bounded session verifies loaded customizations, cancellation, error handling, cleanup and permission prompt. | + +### Pitfalls + +- Content exclusion is not a secret store or filesystem sandbox. Changing model/provider may change data handling and costs. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot) +- [Official sources 2](https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/content-exclusion) +- [Official sources 3](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/overview) +- [Official sources 4](https://docs.github.com/en/copilot/get-started/sdk-quickstart) + +## Codespaces policies and secrets + +Group ID codespaces-options. + +Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codespaces-organization-access, admin-codespaces-organization-secrets, admin-codespaces-repository-secrets, admin-codespaces-user-secrets, admin-devcontainers. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Idle timeout | default30minutes; personal timeout plus org maximum; shortest applicable wins | Set maximum acceptable inactivity for organization-paid codespaces; terminal output can keep one active. | Read policy scope and inspect effective timeout after start/restart. | +| Policy targeting | All repositories \| Selected repositories; organization-paid codespaces only | Do not claim policy restricts personally paid codespaces. Maximum codespaces per user constraint is organization-wide. | Verify payer, targeted IDs and existing codespace next-start behavior. | +| Retention and lifecycle | default30days retention; stop/start/rebuild/delete; machine selection from available list | Save uncommitted work before destructive deletion/rebuild; stopping compute does not remove storage charges. | Read state, machine and storage; verify committed backup before deletion. | +| Additional constraints | allowed machine types; base-image restrictions; forwarded-port visibility; max codespaces per user | Configure individual constraints from real eligible plan UI; preserve intended developer functionality. | Create only an authorized bounded sample; verify restrictions and failure message. | +| Secret scope | organization all/private/selected repositories; repository; user selected repositories; encrypted value | Use narrowest scope and current public key; never log plaintext; explicitly grant needed additional repository access. | List names/scope and test authorized consumer; readback cannot reveal encrypted secret. | + +### Pitfalls + +- Deletion does not erase storage already accrued in the current billing cycle. Shared forwarded ports and terminal traffic can defeat expected idle savings. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/codespaces/troubleshooting/troubleshooting-included-usage) +- [Official sources 3](https://docs.github.com/en/rest/codespaces/organization-secrets) +- [Official sources 4](https://docs.github.com/en/rest/codespaces/codespaces) + +## Custom properties, issue types and shared fields + +Group ID classification-schema. + +Capabilities admin-organization-properties, admin-enterprise-properties, admin-enterprise-organization-properties, admin-organization-issue-types, admin-organization-issue-fields. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Repository property schema | string/single_select/multi_select/true_false; required/default/allowed_values/values_editable_by as offered | Read existing schema and consumers first; preserve property names and values. | Read schema and values for new and existing customized repositories. | +| External property registration | installation_id; display_name1..15alphanumeric immutable; App-only namespace | Confirm installation permission and lifecycle owner; unregister/uninstall can destroy App-owned values. | Read registration as owner (installation token only sees itself); export values before uninstall. | +| Issue type | name; is_enabled boolean; description; gray/blue/green/yellow/orange/red/pink/purple/null color | Reuse type ID; disable obsolete type before deleting when preservation matters. | Read definitions and representative issue assignments. | +| Shared issue field datatype | text/date/single_select/multi_select/number | Choose native semantics; select types require options; not the same object as Project-only field. | Read field ID/type and issue values; test visibility with intended collaborator. | +| Shared field visibility/options | restricted \| all; organization_members_only deprecated; select option name/description/color/priority | Explicit restricted recommended for private metadata; all exposes to anyone able to see issue. Preserve option IDs during update. | Read effective visibility and existing values; check host visibility-feature support. | + +### Pitfalls + +- API docs currently default visibility to deprecated organization_members_only; explicitly use restricted on supported versions. +- Schema deletion/recreation can break ruleset targeting, reporting and historical issue field values. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/custom-properties) +- [Official sources 2](https://docs.github.com/en/rest/orgs/issue-types) +- [Official sources 3](https://docs.github.com/en/rest/orgs/issue-fields) +- [Official sources 4](https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization) + +## Personal identity, notifications and human action + +Group ID personal-human-workflow. + +Capabilities admin-account-profile, admin-account-emails, admin-account-keys, admin-account-gpg-keys, admin-account-ssh-signing-keys, admin-account-security-and-billing-ui, admin-notifications, admin-repository-watches, admin-account-blocking, admin-organization-blocking. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Email/privacy | primary/verified/public email; keep email private; block pushes exposing private email | Preserve verified recovery address; choose noreply Git identity when privacy requested. | Inspect public commit/profile and private verification state; never publish recovery address. | +| Key purpose | SSH authentication key versus SSH signing key versus GPG key; read-only/write deploy key separate | Keep purpose explicit; public key fingerprint identifies key, not private credential. | Read purpose/fingerprint and verify bounded auth or signature; inspect deploy-key grants on offboarding. | +| Recovery | passkeys/security keys/TOTP/recovery codes; active sessions; password reauthentication | Require human control of second factors and backup recovery; never save recovery material in shared docs. | Owner verifies independent recovery route; revoke only explicitly targeted session/credential. | +| Repository watch | Participating/@mentions; All activity; Ignore; Custom event types | Use releases/security/review signals needed by actual maintainer; automatically participating subscription can add noise. | Read subscription and intended event categories; intended human verifies notifications. | +| Delivery channels | On GitHub; email; Mobile; participating/watching categories; default/per-org verified email; working hours | Keep actionable maintainer notices; personal settings require account owner context. | Check inbox/email settings and representative received notification; a sent mention is not proof of delivery. | +| Moderation | block/unblock; organization block differs from personal block; interaction limits | Preserve abuse evidence privately; specify affected relationships and access before blocking. | Read current block/limit and verify intended scope; avoid unnecessary duplicate contact. | + +### Pitfalls + +- Email replies can create public comments. Notification privacy and contributor consent still matter. +- Removing a user does not revoke a deploy key whose private key they retained. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/subscriptions-and-notifications/get-started/configuring-notifications) +- [Official sources 2](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) +- [Official sources 3](https://docs.github.com/en/authentication/managing-commit-signature-verification) +- [Official sources 4](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa) +- [Official sources 5](https://docs.github.com/en/rest/users/blocking) + +## Host-specific enterprise lifecycle and support + +Group ID enterprise-host-lifecycle. + +Capabilities admin-enterprise-accounts, admin-enterprise-organization-lifecycle, admin-enterprise-data-residency, admin-enterprise-server-admin, admin-github-connect, admin-organization-migrations, admin-user-migrations, admin-enterprise-importer, admin-support-entitlements, admin-support-tickets, admin-source-imports. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Hosting and identity | github.com \| tenant.ghe.com \| GHES version; ordinary identities versus managed users | Choose actual API/SSH host and product/version docs before credentials or network policy. | Read host /meta, enterprise identity and version; do not apply github.com IP/fingerprint snapshot blindly. | +| Organization lifecycle | create; invite existing; transfer; migration importer; pending acceptance | EMU cannot import an ordinary organization via simple enterprise invite; cross-host moves need supported migration. | Read destination ownership, inherited policy, billing and member access after completion. | +| Migration plan | source/export; destination; locks; import status; warnings; user attribution; redirect behavior | Preserve source and export; map humans and permissions; rehearse recovery before destructive cutover. | Inspect final migration log, counts, links and sampled historical issues/PR authors/files. | +| GHES administration | backup/restore; maintenance; upgrade; replica/HA; license; support bundle; GitHub Connect | Use instance version runbook and verified backups; repo admin is not appliance administrator. | Verify backup restore readiness, instance health/version and product connectivity after approved change. | +| Support interaction | entitlement; intended enterprise account; new/existing ticket; attachment; reply; status | Prepare redacted reproduction and preserve case history; submission/reply contacts another party and needs explicit instruction. | Read actual ticket ID/submitted content/status; form preparation alone is not submission. | + +### Pitfalls + +- Migration/API success does not prove review history, actor attribution or every product artifact migrated. +- Support attachments can have unauthenticated URLs; redact before upload. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/feature-overview-for-github-enterprise-cloud-with-data-residency) +- [Official sources 2](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise) +- [Official sources 3](https://docs.github.com/en/migrations/using-github-enterprise-importer) +- [Official sources 4](https://docs.github.com/en/enterprise-server@latest/admin) +- [Official sources 5](https://docs.github.com/en/enterprise-cloud@latest/support/contacting-github-support/creating-a-support-ticket) + +## Organization rules and hosted networking + +Group ID rules-network. + +Capabilities admin-organization-rulesets, admin-organization-rule-suites, admin-enterprise-rulesets, admin-organization-network-configurations, admin-enterprise-network-configurations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Ruleset nested scope | target branch/tag/push where supported; enforcement disabled/active/evaluate; repository/ref include/exclude conditions; bypass actors/modes | Preserve target conditions and bypass IDs; evaluate mode measures without enforcement. Detail rule parameters in delivery-security reference. | Read each ruleset, inherited sources and rule suites for sample pushes; list alone proves little. | +| Network configuration | name1..100 letters/numbers/._-; compute_service none/actions; exactly one network_settings_ids entry | Use provisioned network resource and proper compute attachment; a configuration alone attaches no runner. | Read network setting and attached runner group plus actual connectivity. | +| Failover network | failover_network_settings_ids exactly one when configured; failover_network_enabled boolean | Choose failover only with independently tested connectivity and owner-approved network policy. | Read failover configuration; bounded connectivity/failover test and rollback route. | + +### Pitfalls + +- Push, branch and tag rules have different plan gates. Network API response examples showing multiple IDs conflict with current exactly-one request rule; current parameter constraint wins. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/orgs/rules) +- [Official sources 2](https://docs.github.com/en/rest/orgs/rule-suites) +- [Official sources 3](https://docs.github.com/en/rest/orgs/network-configurations) +- [Official sources 4](https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/network-configurations) + +## Agent automation, task execution and human handoff + +Group ID agent-automation-options. + +Capabilities admin-agent-automations, admin-agent-tasks, admin-agent-secrets, admin-agent-variables, admin-copilot-cloud-agent-sessions, admin-copilot-team-customizations. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Automation ownership | type personal/shared; enabled; require_actor_write_permission; continuous_history | Personal belongs to creator; shared is repository-readable and writer-manageable. Read repository allow-automations policy. | Read repository scope, creator and permitted actors; user-global list omits others shared automations. | +| Schedule and event triggers | cadence hourly/daily/weekly; hour_utc0..23; day_of_week0..6; minute_utc0/15/30/45 (omit with hourly); query/labels/workflow filters | Default daily/weekly midnight UTC, weekly Monday; choose explicitly with timezone conversion. | Read trigger fields and next/actual run time; preserve prior run history. | +| Trigger authority | write_scope trigger/repository; allow_copilot_triggers false default | Scheduled write_scope has no effect: scheduled runs can change entire repo. Keep Copilot-trigger loops disabled unless explicitly reviewed. | Read effective scope/policy; test trigger actor and targeted object. | +| Task request | prompt; model from current plan list; custom_agent filename stem; create_pull_request false default; base_ref/head_ref | Prompt must describe authorized work. Existing head_ref can receive commits; inspect branch/PR before start. | Read task/session/artifact and resulting diff; starting task is not completion. | +| Task states/history | queued/in_progress/completed/failed/idle/waiting_for_user/timed_out/cancelled; is_archived false default | Include archived records in history inventory; waiting_for_user needs actual human answer. | Read final state/output/errors and linked PR; retain original failed attempt before retry. | +| Secrets/variables/team customization | secret encryption key/value and repository visibility; plain variables; prompt/tool configuration | Never put secret in variable or prompt; preserve custom agents/tools and follow actual endpoint scope. | Read names/selection and bounded consumer output; no plaintext secret readback. | + +### Pitfalls + +- Public-preview surfaces change. App installation tokens support shared automations but not ordinary agent-task start/list; choose endpoint-specific authentication. +- No retry may silently create another billable task or duplicate PR; reread task/artifacts first. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/agent-automations/agent-automations) +- [Official sources 2](https://docs.github.com/en/rest/agent-tasks/agent-tasks) +- [Official sources 3](https://docs.github.com/en/rest/agents/secrets) +- [Official sources 4](https://docs.github.com/en/rest/agents/variables) +- [Official sources 5](https://docs.github.com/en/rest/copilot/copilot-cloud-agent-management) +- [Official sources 6](https://docs.github.com/en/rest/copilot/copilot-team-customizations) + +## Copilot Spaces and private registry access + +Group ID spaces-registry. + +Capabilities admin-copilot-spaces, admin-copilot-space-collaborators, admin-copilot-space-resources, admin-private-registries. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Space default access | base_role no_access(default)/reader/writer/admin; name/description/general_instructions | Keep no_access until audience approved; discover direct collaborators separately. | Read default/direct roles and test intended audience. | +| Space resource types | repository/github_file/free_text/github_issue/github_pull_request/media_content/uploaded_text_file; type-specific metadata | Preserve resource IDs and private context; fine-grained/user tokens need every referenced repository. | Read resource details; list can omit whole Spaces with inaccessible resources, so incomplete list remains unknown. | +| Registry access | visibility all/private/selected; selected_repository_ids only with selected; replaces_base false default | Select repositories and decide whether public-registry fallback is acceptable. | Read visibility, selected IDs and successful bounded dependency resolution. | +| Registry authentication | token(default)/username_password/oidc_azure/oidc_aws/oidc_jfrog/oidc_cloudsmith/oidc_gcp/anonymous | Token/password require encrypted_value/key_id; OIDC omit them; anonymous also omits username. Use provider-specific fields from current schema. | Read redacted auth config and external trust mapping; verify authorized resolution, not secret plaintext. | +| Provider-specific identity | Azure tenant_id/client_id; AWS region/account/role/domain/domain_owner; JFrog provider/audience; Cloudsmith namespace/service_slug/audience; GCP workload_identity_provider/service_account | Grant narrow external trust; GCP service_account optional for direct WIF. Cloudsmith api_host defaults api.cloudsmith.io. | Verify actual issuer/audience/subject and repository binding with external administrator. | + +### Pitfalls + +- Space sharing and source repository access are distinct; do not widen source access to make inventory look complete. +- Credential rotation and trust-provider setup require both GitHub and registry-side verification. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/copilot-spaces/copilot-spaces) +- [Official sources 2](https://docs.github.com/en/rest/copilot-spaces/collaborators) +- [Official sources 3](https://docs.github.com/en/rest/copilot-spaces/resources) +- [Official sources 4](https://docs.github.com/en/rest/private-registries/organization-configurations) + +## Organization defaults, repository history and storage + +Group ID repository-community-lifecycle. + +Capabilities admin-community-defaults, admin-organization-profile-content, admin-repository-lifecycle-admin, admin-repository-insights, admin-git-lfs, admin-archive-program, admin-github-models-retired. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Community defaults/profile | public .github defaults; repository-specific overrides; .github/profile/README.md and member profile where supported | Reuse organization defaults without overwriting repository custom documents; distinguish public/member audience. | Inspect rendered repository community profile and org profile with correct identity. | +| Repository lifecycle | visibility public/private/internal; archived; owner/name/default branch; delete versus archive | Check fork network, billing, actions/pages and collaborator consequences. Preserve history and transferable objects before move/delete. | Read metadata and history/redirect/access after change; archive is read-only, not backup. | +| LFS configuration | .gitattributes tracked patterns; LFS object store; pointers; quota/billing; migration rewritten history | Track only required files; git clone/mirror without LFS object fetch is insufficient backup. History rewrite requires coordinated human cutover. | Fetch/check LFS objects; verify fresh checkout and collaborators migration instructions. | +| Insights/preservation | traffic/clones/views; contributors/stats async response; Preserve this repository on/off | Capture ephemeral metric window before expiry. Archive Program opt-out only affects future preservation. | Read completed statistics and preservation setting; never equate UI archival, source export and long-term program. | +| Retired Models workflow | historical GitHub Models integration/configuration; retired endpoints | Preserve source/cost history, discover supported replacement only when requested; no new deployment against retired service. | Check endpoint retirement notice and installed integration; mark unavailable with dated evidence. | + +### Pitfalls + +- No repository deletion or history rewrite is implied by full setup. A metadata snapshot cannot restore repository/LFS/product history. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file) +- [Official sources 2](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile) +- [Official sources 3](https://docs.github.com/en/rest/repos/repos) +- [Official sources 4](https://docs.github.com/en/rest/metrics) +- [Official sources 5](https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage) +- [Official sources 6](https://docs.github.com/en/get-started/archiving-your-github-personal-account-and-public-repositories/opting-into-or-out-of-the-github-archive-program-for-your-public-repository) +- [Official sources 7](https://docs.github.com/en/github-models) + +## Human-facing sharing, Classroom and Spark + +Group ID human-social-education. + +Capabilities admin-account-following, admin-account-social-links, admin-gists, admin-gist-comments, admin-repository-stars, admin-activity-feeds, admin-classroom, admin-github-spark. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Social profile and subscriptions | follow/unfollow; social account URLs; star/unstar; public/private authenticated feeds | Only change owner-requested preferences; feed URLs can embed sensitive tokens. | Read actual relationship/profile/feed scope without logging private feed URLs. | +| Gist publication/history | public true/false on creation; description/files; file rename/delete; revisions/forks/comments | Secret gist is unlisted, not access-controlled private storage; never put secrets there. Preserve revision before edits. | Read visibility/files/history and comment IDs; inspect audience before publishing. | +| Classroom assignment | classroom/assignment ID; individual/group; accepted assignment repositories; students/teams; grades | Use teacher authority and preserve student privacy; acceptance and grading are separate human actions. | Read actual assignment, accepted repositories and grades with correct classroom scope. | +| Spark publishing/data | private/organization/all-GitHub-users where eligible; shared app data read-only/write; preview versus published version | Publication and data-write audience need explicit scope; managed users cannot publish to all GitHub users. | Read publication URL/version/audience and verify authorized viewer/data operation. | + +### Pitfalls + +- Commenting, following and invitations affect other humans. Read-only discovery is not permission to contact or publish. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/users/followers) +- [Official sources 2](https://docs.github.com/en/rest/users/social-accounts) +- [Official sources 3](https://docs.github.com/en/rest/gists/gists) +- [Official sources 4](https://docs.github.com/en/rest/gists/comments) +- [Official sources 5](https://docs.github.com/en/rest/activity/starring) +- [Official sources 6](https://docs.github.com/en/rest/activity/feeds) +- [Official sources 7](https://docs.github.com/en/rest/classroom/classroom) +- [Official sources 8](https://docs.github.com/en/copilot/tutorials/spark/your-first-spark) + +## Platform diagnostics and templates + +Group ID platform-diagnostics. + +Capabilities admin-platform-meta, admin-platform-rate-limits, admin-platform-license-catalog, admin-platform-gitignore-templates, admin-platform-emojis, admin-platform-markdown-rendering. + +| Setting | Values and defaults | Decision rule | Verification | +| --- | --- | --- | --- | +| Host metadata | GET /meta; API versions; SSH fingerprints; IP/domain lists | Use real host metadata and documented exceptions; avoid rewriting firewall from partial snapshot. | Verify host identity and freshness before applying any external network change. | +| Quota and retry | core/search/GraphQL resource budgets; x-ratelimit-*; retry-after; GraphQL cost/reset | Obey primary and secondary throttles; positive core remaining does not rule out secondary limit. | Record failed request/status/headers; retry under documented delay and verify object state first. | +| Catalog templates | SPDX license ID; detected license file; gitignore template name; emoji shortcode | Owner chooses license; preserve custom ignore rules; catalog discovery does not authorize relicensing. | Read actual committed license; git check-ignore plus tracked-file inspection; verify chosen shortcode. | +| Markdown rendering | mode markdown/gfm; repository context; raw rendering endpoint | Context changes issue/user link resolution; rendering POST does not publish comment or file. | Inspect returned HTML and context-sensitive links in intended renderer. | + +### Pitfalls + +- A successful render or catalog lookup proves only that lookup. It is not evidence of repository configuration or publication. + +### Official sources + +- [Official sources 1](https://docs.github.com/en/rest/meta) +- [Official sources 2](https://docs.github.com/en/rest/rate-limit) +- [Official sources 3](https://docs.github.com/en/rest/licenses) +- [Official sources 4](https://docs.github.com/en/rest/gitignore) +- [Official sources 5](https://docs.github.com/en/rest/emojis) +- [Official sources 6](https://docs.github.com/en/rest/markdown) + diff --git a/wiki/History.md b/wiki/History.md new file mode 100644 index 0000000..2ebcd2f --- /dev/null +++ b/wiki/History.md @@ -0,0 +1,54 @@ +# History and human interaction + +Every configuration decision needs a reason, ownership and evidence that survives the current chat. Use GitHub's native records and the local execution journal together. + +## Before changing state + +Identify the actual repository and people affected. Read current configuration and its effective inherited policy. Link substantial changes to an issue or discussion, milestone and Project. Put the proposed values, rationale, affected people, compatibility and read-back checks into the issue/PR. Preserve earlier decisions and link a superseding decision when requirements change. + +Use the configuration option groups to distinguish provider defaults from a recommendation for this project. Check nested enum, type, required, cardinality and nullable constraints using the full schema inspector and current official documentation. Read operational errata before applying a generated schema literally. + +## Native history + +- Git commits, branches, reviews and PR conversations explain implementation and acceptance. Preserve review threads and authorship. Add a comment explaining changed intent instead of replacing the historical discussion. +- Issues retain timeline events, labels, assignees, types, shared fields, dependencies and completion reason. Use closing references and verify Project automation. A transfer, conversion, archival or deletion changes what readers can find; preserve source links and verify comments/metadata before calling it complete. +- Project status updates explain progress. Items, field values, saved views, chart scope and automation must be checked separately. A successful write does not prove persistence or backfill. +- Wiki history is a separate Git repository. Pull before edits, preserve pages and navigation, commit with a reason, push and read the remote commit back. +- Release tags, notes, checksums and attestations connect published bytes to source and CI. Preserve released tags and existing asset bytes. Resume a partial draft using read-back comparison. +- Organization audit logs and webhook delivery logs have provider retention limits. Use authorized streaming/export for longer history. The Events API has limits and latency and cannot substitute for the audit log. + +## Local execution journal + +REST call and collect record started and terminal events in CODEX_HOME/full-github/history.sqlite3, defaulting to ~/.codex/full-github/history.sqlite3. The private file uses mode 0600. SQLite commits preserve independent concurrent requests. Records contain operation/method, selected target identifiers, time, optional context URL and exit status. + +Request bodies, header values and response payloads are excluded. Review target metadata before sharing history because repository identities may be private. The journal covers this executor. Native gh/GraphQL/UI operations retain their GitHub records and should link to the same issue or PR. + +```sh +python3 scripts/operations.py call issues/update --params '{"owner":"OWNER","repo":"REPO","issue_number":NUMBER}' --body-file change.json --context https://github.com/OWNER/REPO/issues/NUMBER +python3 scripts/operations.py history --limit 100 +python3 scripts/operations.py verify-event RUN_ID --outcome matched --evidence https://github.com/OWNER/REPO/issues/NUMBER +``` + +Use --limit 0 to read all local events. --no-history is available for explicitly ephemeral inspection. Dry-run, schema and option discovery create no execution history. A query string or embedded credential is rejected in context/evidence links. + +command_succeeded records the CLI result. It does not certify the desired setting or a human review. verification_recorded stores the caller's later read-back claim and evidence link. An interrupted started event or outcome_unknown requires reconciliation against GitHub before retrying. A transport failure may follow a server-side change. Re-read by known identity and apply only the remaining delta. + +This local history is editable by the account owner and is not a cryptographically tamper-evident audit service. Use GitHub's authenticated audit/review records and provenance verification when that assurance is required. + +## Real human participation + +Use Issues for actionable defects, Q&A Discussions for questions, Ideas for proposals and PR review threads for code review. Publish clear forms and links. Keep meaningful status and ownership visible. Convert accepted proposals into linked work while preserving the original discussion. + +A human approval must come from an authorized actor through the required GitHub control. Never manufacture a second reviewer, approval, reaction, vote or answered question. A bot's own review and a local verification event cannot satisfy a policy requiring an independent reviewer. Use actual requested reviewers and record unresolved approvals. + +Ask one focused question in the relevant GitHub conversation when a material decision cannot be inferred. Continue independent authorized work. Do not repeatedly ask for a choice already recorded. Never automatically send private data, expand access, commit spending or moderate another person's content merely because a full profile includes that feature. + +## Failure and recovery + +Reconcile partial operations using IDs, content and GitHub history. Preserve unknown outcomes and observed errors. Missing Link headers, capped search results, incomplete_results, changing totals or repeated pages invalidate an all-items claim. collect verifies page-based reads and keeps received pages on failure. For cursor APIs paginate each connection and compare declared counts where available. + +Official behavior and community incident reports may differ by date, host and rollout. Read the supplied community report as incident evidence, then verify its current applicability. Record the actual choice and proof for this repository. + +Sources include GitHub's [REST integration practices](https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api), [pagination documentation](https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api), [PR reviews](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews), [audit log](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization) and [artifact attestations](https://docs.github.com/en/actions/concepts/security/artifact-attestations). + +The Full GitHub plugin repository enables native release immutability. Future published tags/assets are frozen, and corrections are issued as a new release. diff --git a/wiki/Home.md b/wiki/Home.md index faf8130..1adcfee 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -6,10 +6,12 @@ Full GitHub brings source-backed GitHub capability discovery and execution into ## Start -Read [[Installation]] and [[Usage]], then browse [[Capabilities]] and [[API]]. [[Architecture]], [[Permissions]] and [[Verification]] explain how the plugin works and what was tested. +Read [[Installation]] and [[Usage]], then browse [[Capabilities]], [[Configuration]] and [[API]]. Read [[History]] for execution/decision records and [[Community]] for real questions, proposals and review. [[Architecture]], [[Permissions]] and [[Verification]] explain how the plugin works and what was tested. ## Complete inventory The 2026-11-15 snapshot contains 261 capability families, 1,281 published REST operations, 32 GraphQL queries, 285 mutations and 1,881 types. Deprecated and retired operations are identified explicitly. Repository, organization, enterprise and personal capabilities include their permission and plan boundaries. Use the [complete operation directory](https://github.com/thinkhome-org/full-github/blob/main/docs/OPERATIONS.md) for searchable endpoint-level coverage. + +The configuration guide records concrete option values, default policies, applicability, human interaction, recovery and verification. Full nested API definitions are bundled with the plugin, alongside current-source errata and qualified community incidents. Tagged release artifacts carry GitHub provenance and byte-verification evidence. diff --git a/wiki/Usage.md b/wiki/Usage.md index 1130ce3..e73c0e2 100644 --- a/wiki/Usage.md +++ b/wiki/Usage.md @@ -19,3 +19,7 @@ Ask to deliver an issue and maintain its Project, reviews, Wiki and release. The Use scripts/operations.py capabilities TERM, search TERM, describe OPERATION and type GRAPHQL_TYPE. [[API]] contains executable examples and registry maintenance instructions. Full setup records each feature's configuration, applicability, access gate and evidence in GITHUB.md and its coverage ledger. Installation alone does not prove that all capabilities were configured. + +## Nested settings and history + +Use [[Configuration]] and the options/option/schema commands to choose actual settings. Follow [[History]] for linked decisions and execution records. The collect command checks page-based continuation and preserves partial evidence when an inventory is incomplete. [[Community]] explains how people participate through native GitHub conversations. diff --git a/wiki/Verification.md b/wiki/Verification.md index 06e9595..8910a27 100644 --- a/wiki/Verification.md +++ b/wiki/Verification.md @@ -1,5 +1,27 @@ # Verification record +## Version 0.3.0 + +The configuration layer now maps every catalog capability to concrete choices and proof requirements. The full original OpenAPI document is preserved and validated against its recorded source digest. Nested references, defaults, enums, required fields, cardinality and response schemas are inspectable. Known current-documentation corrections are attached to operation descriptions. + +Three domain research agents inspected official documentation and community incidents. The consolidated decision groups retain source distinctions and historical interpretation. CI rejects capabilities without mapped concrete option rules. + +### Runtime and regression evidence + +- 49 tests cover prior behavior plus full-schema integrity, nested reference traversal, per-capability option coverage, raw evidence retention, capped/absent-Link pagination, incomplete search, local concurrent history writers, privacy boundaries, committed hidden manifests, partial-draft retry and prerelease classification. +- A live page-based read requested 101 items from kubernetes/kubernetes and received pages of 100, 100, 16 and 0 items. The collector retained all 216 labels and exhausted continuation instead of treating the first capped response as complete. +- Actual issue mutation preserved its identity and existing labels, read back the resulting type/labels and appended a separate verification reference to local history. +- A public welcome Discussion was created and its pinned state verified in the GitHub UI. Question/proposal forms route real human participation into the correct native conversations. +- Independent runtime review found four defects in collection/publication edge cases. Regression tests now cover page-size caps, incomplete_results, raw-page preservation and RC prerelease state. +- Native repository release immutability was enabled and read back for future publications. +- The release environment was created and its v* tag policy read back. Tagged publication checks main ancestry and transferred checksums and uses a separate scoped GitHub Actions job, validated hidden manifests, SHA-256 checksums, provenance generation and byte-verified resumable drafts. Final release verification includes downloading the published artifact and gh attestation verify. + +### Evidence boundaries + +The local journal records executor attempts and caller-supplied read-back claims. It excludes bodies/header values and does not replace authenticated GitHub actors, audit records or required human approvals. No independent human approval is fabricated in the single-maintainer project. + +The full schema and option decisions describe supported configurations and current source evidence. Actual entitlement, effective access and tenant-specific mutations still depend on the target host and credentials. Preserved historical failures below remain visible. + ## Version 0.2.1 Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-github and organization Project 5. diff --git a/wiki/_Sidebar.md b/wiki/_Sidebar.md index aba48c1..8446a73 100644 --- a/wiki/_Sidebar.md +++ b/wiki/_Sidebar.md @@ -6,8 +6,14 @@ [[Capabilities]] +[[Configuration]] + [[API]] +[[History]] + +[[Community]] + [[Architecture]] [[Permissions]]