diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 78cb682..57aade1 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "full-github", - "version": "0.3.0", + "version": "0.3.1", "description": "Source-backed GitHub capability discovery and execution for Codex, including repository, organization and enterprise workflows.", "author": { "name": "ThinkHome", diff --git a/.github/release-notes.md b/.github/release-notes.md new file mode 100644 index 0000000..7cb1785 --- /dev/null +++ b/.github/release-notes.md @@ -0,0 +1,31 @@ +## Installation + +For a new installation, register the public Git marketplace and add the plugin. + +```sh +codex plugin marketplace add thinkhome-org/full-github +codex plugin add full-github@thinkhome +``` + +For an existing installation, refresh the marketplace before adding the current version. + +```sh +codex plugin marketplace upgrade thinkhome +codex plugin add full-github@thinkhome +``` + +Open a fresh Codex chat and select Full GitHub. + +## Validation evidence + +The tagged Release workflow runs the regression suite and registry/documentation checks, binds the archive to the source commit and tag, verifies transferred checksums and produces GitHub build provenance. Publication verifies uploaded bytes before freezing the release. + +Download the ZIP/checksum and inspect the workflow run linked from the repository's Actions page. Verify the artifact's provenance against thinkhome-org/full-github using gh attestation verify. Native immutable-release verification is available through gh release verify. + +The Wiki records release-specific verification, with executable checks and provider/account boundaries. + +## Limitations + +The operation registry and option guidance are dated snapshots. Use current official endpoint documentation, schema errata and target-host verification before a consequential change. Administrative, paid and enterprise capabilities depend on the actual credential, organization policy and entitlement. + +The private local journal records executor attempts and read-back references. GitHub's native actor/audit/review records and required human approvals retain their own authority. Original plugin content still awaits an owner-selected license; third-party OpenAPI licensing is preserved in NOTICE.md. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f4d10f..611e85b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,15 @@ concurrency: jobs: build: runs-on: ubuntu-latest + outputs: + source_commit: ${{ steps.source.outputs.commit }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: fetch-depth: 0 - run: git merge-base --is-ancestor HEAD origin/main + - id: source + run: printf 'commit=%s\n' "$(git rev-parse 'HEAD^{commit}')" >> "$GITHUB_OUTPUT" - run: python3 -m unittest discover -s tests -v - run: python3 scripts/validate.py - run: python3 scripts/render_catalog.py --check @@ -46,6 +50,7 @@ jobs: - 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/* + - run: python3 scripts/publish_release.py --repo "$GITHUB_REPOSITORY" --tag "$GITHUB_REF_NAME" --expected-commit "$EXPECTED_COMMIT" --notes-file .github/release-notes.md dist/* env: GH_TOKEN: ${{ github.token }} + EXPECTED_COMMIT: ${{ needs.build.outputs.source_commit }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 659f4fc..b570ff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.3.1 — 2026-11-15 + +- Bind packaged and published artifacts to the peeled release-tag commit and protect release tags from update/deletion. +- Validate portable marketplace sources, symlink components, product restrictions and archived plugin identities. +- Include reviewed installation/verification/limitation notes in automated releases while retaining generated history and existing draft prose. +- Check generated Wiki catalogs alongside repository documentation. +- Correct required-check skip semantics and add PR access, signoff, timezone/DST, IP allow-list and Codespaces prebuild guidance. + ## 0.3.0 — 2026-11-15 - Preserve and inspect the complete official REST schema, including nested constraints and source-backed errata. diff --git a/GITHUB.md b/GITHUB.md index 2d2a12f..cdf2124 100644 --- a/GITHUB.md +++ b/GITHUB.md @@ -50,3 +50,5 @@ Existing asset bytes and human-added assets are preserved. A mismatch blocks pub 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. + +Release tags matching v* have an active no-bypass ruleset blocking updates and deletion before publication. Packaging checks the peeled local tag against HEAD, and publication compares the artifact comment and peeled remote tag with the build job commit. Reviewed release notes are supplied explicitly. Review pre-existing drafts created outside this workflow for required delivery information before using them; the publisher preserves their existing prose. diff --git a/README.md b/README.md index e9d04e7..dfb3b02 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ People can use [Q&A](https://github.com/thinkhome-org/full-github/discussions/ca ## 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**. 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. +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 459 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. diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 51644d2..71e2567 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -1,6 +1,6 @@ # Configuration decisions -Reviewed 2026-11-15. 82 decision groups contain 451 concrete configuration choices covering every catalog capability. +Reviewed 2026-11-15. 82 decision groups contain 459 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. @@ -20,6 +20,8 @@ Capabilities repository-lifecycle, repository-branches, repository-autolinks, re | 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. | +| has_pull_requests / pull_request_creation_policy | has_pull_requests boolean; documented default true, pull_request_creation_policy: all or collaborators_only | Preserve contribution access unless a restriction is intended. Organization collaborators for this setting have write, maintain or admin access; personal collaborators are invited users. Disabling hides existing PRs rather than deleting them. | Read both settings and intended contributor eligibility; inspect PR visibility. Re-enable to restore existing PR availability; restore prior policy if legitimate contributions are blocked. | +| web_commit_signoff_required | boolean; documented default false, effective organization policy also applies | Choose only an owner-approved signoff agreement. This adds author signoff to web commits, differs from cryptographic signing, and does not enforce CLI signoffs; CLI authors use --signoff. | Read repository and organization policies; inspect the Sign off and commit changes form and resulting Signed-off-by trailer on an authorized commit. Restore prior setting if misconfigured; retain existing commit history. | ### Pitfalls @@ -29,6 +31,8 @@ Capabilities repository-lifecycle, repository-branches, repository-autolinks, re - [Official sources 1](https://docs.github.com/en/rest/repos/repos) - [Official sources 2](https://docs.github.com/en/rest/repos/autolinks) +- [Official sources 3](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-pull-requests) +- [Official sources 4](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository) ## Source changes, history and repository derivation @@ -730,7 +734,7 @@ Capabilities branch-protection, repository-merge-policy. | --- | --- | --- | --- | | 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. | +| 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. GitHub accepts success, skipped and neutral conclusions; a skipped required job does not prove its validation ran. | Compare rules to check-run names/App IDs and results on the relevant PR/test-merge or merge-group SHA. Whole-workflow filter skips leave checks pending; conditional/dependent job skips can allow merging. Require a terminal aggregate gate that evaluates prerequisite results and fails for missing or failed required validation; verify failure and skip cases before relying on it. | | 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. | @@ -746,6 +750,7 @@ Capabilities branch-protection, repository-merge-policy. - [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) +- [Official sources 4](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks) ## Personal watch choices, inbox triage and feed limitations @@ -974,7 +979,7 @@ Capabilities actions-workflows. | --- | --- | --- | --- | | 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. | +| schedule | POSIX cron; optional on.schedule[].timezone IANA name; UTC default; default-branch workflow; minimum 5-minute interval | Set timezone explicitly when local clock time matters. In DST spring-forward missing hours, execution advances to the next valid time. Use for tolerable delays with manual recovery; scheduling is not a precise timer. | Read cron/timezone from default-branch workflow; compare intended local time, DST transition behavior, scheduled event and actual start. Correct timezone/cron before rerunning missed work with duplicate protection. | | 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. | @@ -1002,6 +1007,7 @@ Inspect event/ref/filters first; dispatch or rerun the exact intended revision o - [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) +- [Official sources 4](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onschedule) ## Jobs, matrices, conditions and run history @@ -1828,6 +1834,7 @@ Capabilities admin-organization-profile, admin-organization-policy-settings, adm | 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. | +| Organization web commit signoff | web_commit_signoff_required boolean; documented default false | Apply an approved signoff agreement to web commits across organization repositories. Distinguish Signed-off-by from verified cryptographic signatures; CLI commits need --signoff. | Read organization and repository effective settings; inspect the web commit form and an authorized resulting trailer. Restore previous policy on error without rewriting earlier commits. | ### Pitfalls @@ -1840,6 +1847,7 @@ Capabilities admin-organization-profile, admin-organization-policy-settings, adm - [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) +- [Official sources 5](https://docs.github.com/en/organizations/managing-organization-settings/managing-the-commit-signoff-policy-for-your-organization) ## Nested teams and delegated roles @@ -1884,6 +1892,8 @@ Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-or | 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. | +| IP allow-list entries and enforcement | organization/enterprise entries: IP or CIDR, description, enabled; allow-list enabled/disabled; inherited enterprise entries | Enterprise Cloud eligibility required. Inventory automation egress and IPv6, add the current administrator IP/range, and check address admission before enabling. Enforcement starts immediately; organization Codespaces becomes unavailable. Never remove the last working administrative route. | Read entries and inherited policy; use Check IP address before enabling, then verify representative user/App web/API/Git access. Preserve a working authorized admin session for recovery; restore prior entries or disable through that route if access breaks. Changes may take minutes to propagate. | +| Installed GitHub App IP inheritance | Enable IP allow list configuration for installed GitHub Apps boolean; App-managed entries | Enable only for approved installed Apps. Their registered addresses update automatically and apply to installation traffic, not ordinary users at those IPs. App-managed entries cannot be edited/deleted/disabled individually. | Read inheritance toggle and Managed by App entries, verify the intended installation access and user restrictions. Correct App registration or inheritance policy rather than broadening ordinary user CIDRs; recheck downstream access. | ### Pitfalls @@ -1896,6 +1906,8 @@ Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-or - [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) +- [Official sources 5](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization) +- [Official sources 6](https://docs.github.com/en/apps/maintaining-github-apps/managing-allowed-ip-addresses-for-a-github-app) ## PAT and OAuth lifecycle @@ -2109,6 +2121,9 @@ Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codesp | 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. | +| Prebuild branch, configuration and triggers | branch plus devcontainer.json; Every push default, On configuration change, Scheduled | Choose actual developer branch/configuration and authorized billing scope. Configuration-change mode watches supported devcontainer/Dockerfile paths and may leave dependencies stale; nested devcontainer changes do not all trigger it. | Read saved branch/configuration/schedule and latest Codespaces Prebuilds run SHA/conclusion; create an authorized sample to confirm Prebuilt codespace found. Correct configuration and rerun before relying on it. | +| Prebuild regions and template history | all available regions default; selected regions; retained versions 1..5, default 2 | Select used regions and justified history only; every region/version incurs storage charges. Older retained configurations support matching historical revisions. | Read regions/history and expected Prebuild Ready availability for region/configuration. Restore prior settings if intended developers lose coverage; disabling workflow updates leaves existing prebuilds usable and does not delete storage. | +| Prebuild commands and credential availability | onCreateCommand once per prebuild; updateContentCommand initially and on updates; repository/organization Codespaces secrets; no user secrets during prebuild | Put incremental source builds in updateContentCommand. Grant narrow repository access and credentials; prebuild secrets must not be embedded in resulting reusable files. User secrets become available only after codespace creation. | Read devcontainer commands and secret scope metadata; inspect redacted prebuild logs and an authorized clean codespace. Rotate exposed secrets at provider and replace consumers; fix command/configuration and rebuild affected prebuilds. | ### Pitfalls @@ -2120,6 +2135,9 @@ Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codesp - [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) +- [Official sources 5](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/configuring-prebuilds) +- [Official sources 6](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/managing-prebuilds) +- [Official sources 7](https://docs.github.com/en/codespaces/troubleshooting/troubleshooting-prebuilds) ## Custom properties, issue types and shared fields diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 014fa55..ee633f1 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -29,3 +29,9 @@ Original plugin content awaits a project license choice. Third-party OpenAPI lic ## 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. + +## 2026-11-15 — Independent review corrections + +A fresh three-domain review reproduced gaps in publication identity, source portability, generated Wiki checks and configuration guidance. Release refs now prohibit update/deletion through an active no-bypass repository ruleset. The publisher binds ZIP/source/tag identities before creating or resuming a draft and immediately before publishing. The build job passes its peeled checked-out commit explicitly. + +Reviewed release notes accompany generated change history on new drafts. Existing human-written draft prose is preserved and requires review if it originated outside this workflow. Marketplace validation checks portable declared sources, identities and supported policy shape. The generated Wiki catalogs share the same rendering/check gate as repository catalogs. diff --git a/docs/REVIEW-0.3.1.md b/docs/REVIEW-0.3.1.md new file mode 100644 index 0000000..f8b33bb --- /dev/null +++ b/docs/REVIEW-0.3.1.md @@ -0,0 +1,30 @@ +# Independent review of 0.3.1 + +Three fresh agents separately inspected runtime behavior, feature-option guidance and release/installation correctness. Findings were reproduced or checked against current primary sources before implementation. Corrected release and validation paths were checked again by reviewers. + +| Finding | Correction and proof | +| --- | --- | +| Required checks misclassified skipped jobs | Document success/skipped/neutral acceptance, pending workflow checks and an aggregate gate that evaluates prerequisite results. | +| IP allow-list options incomplete | Add entries/CIDRs, activation/enforcement, inheritance, App-specific IP behavior, IPv6, staged lockout avoidance and recovery. | +| PR contribution controls missing | Add has_pull_requests and all/collaborators_only policy, role impact and restoration checks. | +| Schedule timezone omitted | Add IANA timezone selection, UTC default and DST behavior. | +| Codespaces prebuild controls missing | Add branch/config selection, triggers, regions, retained versions, commands and prebuild secret availability. | +| Signoff policy missing | Add repository/org web signoff and distinguish DCO signoff from cryptographic signing. | +| Tag and artifact source not bound | Check HEAD versus peeled local tag, ZIP source comment versus build commit, and peeled remote tag before/resuming/finalizing publication. Add mismatch and annotated-tag regressions. | +| Marketplace accepted missing/invalid sources | Validate local relative paths, repository containment, plugin identity and policy enums with negative fixtures. | +| Automated notes omitted delivery information | Supply reviewed installation/verification/limitation notes alongside generated change history. Preserve existing human prose. | +| Generated Wiki copies could be stale | Render/check Wiki Capabilities and Configuration together with their repository counterparts. | +| Symlink sources could produce broken ZIPs | Reject lexical and archived symlink components and missing/mismatched referenced manifests; retain a valid nested-source case. | +| Marketplace product shape was unchecked | Validate optional product arrays and current upstream aliases while preserving omitted/null/empty supported forms. | + +## Publication controls + +The repository now has an active tag ruleset for refs/tags/v* that blocks update/deletion without bypass actors. This preserves tag identity while a build or draft is pending. Client-side read checks complement the server-side rule. + +The workflow passes the build job's actual peeled commit to publication. New drafts receive reviewed notes from the tagged source plus generated change history. Drafts originating elsewhere require review of their delivery information; existing prose is preserved. + +## Verification boundaries + +The full regression suite has 65 tests. Registry validation and generated source/Wiki checks pass. Runtime public-provider checks and the verified immutable 0.3 release remain in the historical verification record. + +The review establishes specific corrections and tested behavior. Target-account entitlements and high-impact administrative or paid operations retain their documented authorization and verification requirements. diff --git a/docs/VERIFICATION.md b/docs/VERIFICATION.md index 8910a27..14794e8 100644 --- a/docs/VERIFICATION.md +++ b/docs/VERIFICATION.md @@ -1,5 +1,16 @@ # Verification record +## Version 0.3.1 + +Three fresh review agents examined runtime correctness, option/procedure coverage and publication/installation. The runtime reviewer found no actionable defect in the assigned execution/history scope. Twelve concrete review findings were corrected and verified, including two additional portability/policy cases from rechecking the first fixes. + +- 65 tests cover tag/artifact/source mismatch, annotated tags, moved refs during upload, reviewed notes and preservation of existing prose, source/symlink portability, product policy shape and stale Wiki generation alongside prior runtime cases. +- Registry and generated-document checks cover both docs and Wiki catalogs. Every catalog capability retains concrete option decisions. +- The active release-tag ruleset blocks update/deletion with no bypass actors; its actual settings were read back. +- Existing runtime behavior and historical 0.3 evidence remain recorded below. + +See [the review record](REVIEW-0.3.1.md) for findings, corrections and execution boundaries. + ## 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. diff --git a/scripts/package_release.py b/scripts/package_release.py index 1626ee5..f8df107 100644 --- a/scripts/package_release.py +++ b/scripts/package_release.py @@ -2,29 +2,67 @@ import argparse import hashlib import json -from pathlib import Path +from pathlib import Path, PurePosixPath import re +import stat import subprocess import tempfile import zipfile +def read_archive_file(zipped, relative): + """Read committed bytes without following nonportable symlink components.""" + if PurePosixPath(relative).is_absolute() or "\\" in relative: + raise ValueError("Archive path must be portable and relative") + components = ["full-github"] + for part in PurePosixPath(relative).parts: + if part == "..": + if len(components) == 1: + raise ValueError("Archive path escapes the repository") + components.pop() + continue + components.append(part) + path = "/".join(components) + try: + info = zipped.getinfo(path) + except KeyError: + try: + info = zipped.getinfo(path + "/") + except KeyError as error: + raise ValueError(f"Missing committed archive path: {relative}") from error + if stat.S_ISLNK(info.external_attr >> 16): + raise ValueError(f"Symlink in committed archive path: {path}") + return zipped.read("/".join(components)) + + 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") + source_commit = subprocess.check_output(["git", "rev-parse", "HEAD^{commit}"], cwd=root, text=True).strip() + tag_commit = subprocess.check_output(["git", "rev-parse", "--verify", f"refs/tags/{tag}^{{commit}}"], cwd=root, text=True).strip() + if source_commit != tag_commit: + raise ValueError("Release tag does not point to the checked-out source commit") 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) + subprocess.run(["git", "archive", "--format=zip", "--prefix=full-github/", "-o", str(archive.resolve()), source_commit], 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")) + manifest = json.loads(read_archive_file(zipped, ".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) + read_archive_file(zipped, required) + marketplace = json.loads(read_archive_file(zipped, ".agents/plugins/marketplace.json")) + for plugin in marketplace.get("plugins", []): + source = plugin["source"] + if source["source"] != "local" or not isinstance(source["path"], str) or not source["path"].startswith("./"): + raise ValueError("Marketplace source must be a local ./ path") + plugin_manifest = json.loads(read_archive_file(zipped, source["path"] + "/.codex-plugin/plugin.json")) + if plugin_manifest.get("name") != plugin["name"]: + raise ValueError("Committed plugin source identity does not match marketplace") destination = output / filename archive.replace(destination) checksum = hashlib.sha256(destination.read_bytes()).hexdigest() diff --git a/scripts/publish_release.py b/scripts/publish_release.py index 7631c3a..32a84b4 100644 --- a/scripts/publish_release.py +++ b/scripts/publish_release.py @@ -6,9 +6,10 @@ import re import subprocess import tempfile +import zipfile -def publish(repo, tag, assets, run=subprocess.run): +def publish(repo, tag, assets, run=subprocess.run, *, expected_commit, notes_file): if ( not re.fullmatch(r"[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+", repo) or any(part in (".", "..") for part in repo.split("/")) @@ -19,16 +20,45 @@ def publish(repo, tag, assets, run=subprocess.run): 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") + if not re.fullmatch(r"[0-9a-fA-F]{40}|[0-9a-fA-F]{64}", expected_commit): + raise ValueError("Expected a full source commit ID") + expected_commit = expected_commit.lower() + if not notes_file.is_file() or not notes_file.read_text().strip(): + raise ValueError("Reviewed release notes are required") + archives = [path for path in assets if path.suffix == ".zip"] + if not archives: + raise ValueError("A source-bound ZIP artifact is required") + for archive in archives: + with zipfile.ZipFile(archive) as zipped: + if zipped.comment.decode("ascii").strip().lower() != expected_commit: + raise ValueError("Artifact source commit does not match the expected build commit") prerelease = "-" in tag def gh(*arguments, check=True): return run(["gh", *arguments, "--repo", repo], capture_output=True, text=True, check=check) + def api(path): + response = run(["gh", "api", f"repos/{repo}/{path}"], capture_output=True, text=True, check=True) + return json.loads(response.stdout) + + def verify_tag(): + target = api(f"git/ref/tags/{tag}")["object"] + seen = set() + while target["type"] == "tag": + if target["sha"] in seen: + raise RuntimeError("Cyclic remote tag reference") + seen.add(target["sha"]) + target = api("git/tags/" + target["sha"])["object"] + if target["type"] != "commit" or target["sha"].lower() != expected_commit: + raise RuntimeError("Remote release tag no longer matches the built source commit") + + verify_tag() + 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:]] + flags = ["--draft", "--verify-tag", "--generate-notes", "--notes-file", str(notes_file.resolve()), "--title", "Full GitHub " + tag[1:]] if prerelease: flags.append("--prerelease") gh("release", "create", tag, *flags) @@ -50,10 +80,12 @@ def gh(*arguments, check=True): 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"]: + verify_tag() 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") + verify_tag() return final["url"] @@ -61,6 +93,8 @@ def gh(*arguments, check=True): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--repo", required=True) parser.add_argument("--tag", required=True) + parser.add_argument("--expected-commit", required=True) + parser.add_argument("--notes-file", type=Path, required=True) parser.add_argument("assets", type=Path, nargs="+") args = parser.parse_args() - print(publish(args.repo, args.tag, args.assets)) + print(publish(args.repo, args.tag, args.assets, expected_commit=args.expected_commit, notes_file=args.notes_file)) diff --git a/scripts/render_catalog.py b/scripts/render_catalog.py index 38ee34d..39a0fa0 100644 --- a/scripts/render_catalog.py +++ b/scripts/render_catalog.py @@ -88,6 +88,9 @@ def cell(value): lines.append(f"- [{heading} {number}]({source})") lines.append("") outputs[root / "docs/CONFIGURATION.md"] = "\n".join(lines) + "\n" +outputs[root / "wiki/Capabilities.md"] = outputs[root / "docs/CAPABILITIES.md"].replace( + "docs/VERIFICATION.md", "https://github.com/thinkhome-org/full-github/blob/main/docs/VERIFICATION.md") +outputs[root / "wiki/Configuration.md"] = outputs[root / "docs/CONFIGURATION.md"] for path, content in outputs.items(): if args.check: if not path.exists() or path.read_text() != content: diff --git a/scripts/validate.py b/scripts/validate.py index 6c6641b..252758d 100644 --- a/scripts/validate.py +++ b/scripts/validate.py @@ -9,6 +9,27 @@ 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 plugin in marketplace["plugins"]: + source = plugin["source"] + assert source["source"] == "local", "This repository publishes local plugin sources" + assert isinstance(source["path"], str) and source["path"].startswith("./"), "Plugin source must use a ./ path" + assert "\\" not in source["path"], "Plugin source must use portable path separators" + component = root + for part in (*Path(source["path"]).parts, ".codex-plugin", "plugin.json"): + component = component / part + assert not component.is_symlink(), f"Symlink in plugin source: {component}" + assert component.resolve().is_relative_to(root), "Plugin source escapes the repository" + plugin_root = (root / source["path"]).resolve() + assert plugin_root.is_relative_to(root), "Plugin source escapes the repository" + plugin_manifest = plugin_root / ".codex-plugin/plugin.json" + assert plugin_manifest.is_file(), f"Plugin source manifest missing: {plugin_manifest}" + assert json.loads(plugin_manifest.read_text())["name"] == plugin["name"], "Plugin source identity does not match marketplace" + policy = plugin.get("policy", {}) + assert policy.get("installation", "AVAILABLE") in ("AVAILABLE", "NOT_AVAILABLE", "INSTALLED_BY_DEFAULT"), "Unsupported installation policy" + assert policy.get("authentication", "ON_INSTALL") in ("ON_INSTALL", "ON_USE"), "Unsupported authentication policy" + products = policy.get("products") + assert products is None or (isinstance(products, list) and all( + product in ("chatgpt", "codex", "atlas", "CHATGPT", "CODEX", "ATLAS") for product in products)), "Unsupported product restrictions" 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") diff --git a/skills/full-github/data/configuration-options.json b/skills/full-github/data/configuration-options.json index 1dd89ed..bd325db 100644 --- a/skills/full-github/data/configuration-options.json +++ b/skills/full-github/data/configuration-options.json @@ -65,11 +65,31 @@ ], "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." + }, + { + "name": "has_pull_requests / pull_request_creation_policy", + "values": [ + "has_pull_requests boolean; documented default true", + "pull_request_creation_policy: all or collaborators_only" + ], + "decision_rule": "Preserve contribution access unless a restriction is intended. Organization collaborators for this setting have write, maintain or admin access; personal collaborators are invited users. Disabling hides existing PRs rather than deleting them.", + "verification": "Read both settings and intended contributor eligibility; inspect PR visibility. Re-enable to restore existing PR availability; restore prior policy if legitimate contributions are blocked." + }, + { + "name": "web_commit_signoff_required", + "values": [ + "boolean; documented default false", + "effective organization policy also applies" + ], + "decision_rule": "Choose only an owner-approved signoff agreement. This adds author signoff to web commits, differs from cryptographic signing, and does not enforce CLI signoffs; CLI authors use --signoff.", + "verification": "Read repository and organization policies; inspect the Sign off and commit changes form and resulting Signed-off-by trailer on an authorized commit. Restore prior setting if misconfigured; retain existing commit history." } ], "sources": [ "https://docs.github.com/en/rest/repos/repos", - "https://docs.github.com/en/rest/repos/autolinks" + "https://docs.github.com/en/rest/repos/autolinks", + "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-pull-requests", + "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository" ], "community_sources": [], "pitfalls": [ @@ -1415,7 +1435,7 @@ "verification": "Read workflow trigger/enabled/target and verify a permitted representative transition." }, { - "name": "item added \u2192 Status", + "name": "item added → Status", "values": [ "disabled", "intake/Todo option" @@ -1424,7 +1444,7 @@ "verification": "Observe new item value, existing populated item and applicable field default together." }, { - "name": "issue/PR closed \u2192 Done", + "name": "issue/PR closed → Done", "values": [ "enabled default", "disabled", @@ -1434,7 +1454,7 @@ "verification": "Check reason and resulting Status for completed and not-planned examples; correct mismatches without reopening rejected work." }, { - "name": "PR merged \u2192 Done", + "name": "PR merged → Done", "values": [ "enabled default", "disabled", @@ -1444,7 +1464,7 @@ "verification": "Read merged commit, item Status and downstream release/deployment evidence separately." }, { - "name": "Status change \u2192 issue state", + "name": "Status change → issue state", "values": [ "disabled", "close issue on configured transition where supported" @@ -1466,7 +1486,7 @@ ], "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." + "Initialization enables closed→Done and merged→Done. A successful Status write can be immediately changed by another workflow; verify after automation settles." ] }, { @@ -1873,7 +1893,7 @@ "verification": "Read locked/closed/reason and rendered notice; confirm permitted moderators and reactions separately." }, { - "name": "issue \u2192 discussion conversion", + "name": "issue → discussion conversion", "values": [ "category ID", "original issue and resulting discussion IDs" @@ -2210,8 +2230,8 @@ "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." + "decision_rule": "Bind stable check names to expected Apps where supported; strict requires up-to-date branch, queue needs merge_group CI support. GitHub accepts success, skipped and neutral conclusions; a skipped required job does not prove its validation ran.", + "verification": "Compare rules to check-run names/App IDs and results on the relevant PR/test-merge or merge-group SHA. Whole-workflow filter skips leave checks pending; conditional/dependent job skips can allow merging. Require a terminal aggregate gate that evaluates prerequisite results and fails for missing or failed required validation; verify failure and skip cases before relying on it." }, { "name": "enforce_admins / restrictions", @@ -2271,7 +2291,8 @@ "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" + "https://docs.github.com/en/rest/repos/repos", + "https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks" ], "community_sources": [], "pitfalls": [ @@ -2286,7 +2307,7 @@ "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.", + "applicability": "Only the authenticated user’s authorized personal preferences; repository setup does not authorize following/watching or marking inbox items done.", "options": [ { "name": "repository subscription", @@ -2613,7 +2634,7 @@ "values": [ "amount in US dollars", "isRecurring boolean", - "documented API range 1\u201312000" + "documented API range 1–12000" ], "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." @@ -2941,9 +2962,9 @@ }, { "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." + "values": "POSIX cron; optional on.schedule[].timezone IANA name; UTC default; default-branch workflow; minimum 5-minute interval", + "decision_rule": "Set timezone explicitly when local clock time matters. In DST spring-forward missing hours, execution advances to the next valid time. Use for tolerable delays with manual recovery; scheduling is not a precise timer.", + "verification": "Read cron/timezone from default-branch workflow; compare intended local time, DST transition behavior, scheduled event and actual start. Correct timezone/cron before rerunning missed work with duplicate protection." }, { "name": "workflow_dispatch.inputs", @@ -2967,7 +2988,8 @@ "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" + "https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow", + "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onschedule" ], "community_sources": [], "pitfalls": [ @@ -3262,7 +3284,7 @@ "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.", + "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." ], "project_applicability": "CI can cancel outdated branch checks; release and Wiki publication must preserve sequence and existing content.", @@ -4272,13 +4294,20 @@ "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." + }, + { + "name": "Organization web commit signoff", + "values": "web_commit_signoff_required boolean; documented default false", + "decision_rule": "Apply an approved signoff agreement to web commits across organization repositories. Distinguish Signed-off-by from verified cryptographic signatures; CLI commits need --signoff.", + "verification": "Read organization and repository effective settings; inspect the web commit form and an authorized resulting trailer. Restore previous policy on error without rewriting earlier commits." } ], "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" + "https://docs.github.com/en/rest/orgs/outside-collaborators", + "https://docs.github.com/en/organizations/managing-organization-settings/managing-the-commit-signoff-policy-for-your-organization" ], "community_sources": [], "pitfalls": [ @@ -4403,13 +4432,27 @@ "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." + }, + { + "name": "IP allow-list entries and enforcement", + "values": "organization/enterprise entries: IP or CIDR, description, enabled; allow-list enabled/disabled; inherited enterprise entries", + "decision_rule": "Enterprise Cloud eligibility required. Inventory automation egress and IPv6, add the current administrator IP/range, and check address admission before enabling. Enforcement starts immediately; organization Codespaces becomes unavailable. Never remove the last working administrative route.", + "verification": "Read entries and inherited policy; use Check IP address before enabling, then verify representative user/App web/API/Git access. Preserve a working authorized admin session for recovery; restore prior entries or disable through that route if access breaks. Changes may take minutes to propagate." + }, + { + "name": "Installed GitHub App IP inheritance", + "values": "Enable IP allow list configuration for installed GitHub Apps boolean; App-managed entries", + "decision_rule": "Enable only for approved installed Apps. Their registered addresses update automatically and apply to installation traffic, not ordinary users at those IPs. App-managed entries cannot be edited/deleted/disabled individually.", + "verification": "Read inheritance toggle and Managed by App entries, verify the intended installation access and user restrictions. Correct App registration or inheritance policy rather than broadening ordinary user CIDRs; recheck downstream access." } ], "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" + "https://docs.github.com/en/rest/scim", + "https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization", + "https://docs.github.com/en/apps/maintaining-github-apps/managing-allowed-ip-addresses-for-a-github-app" ], "community_sources": [], "pitfalls": [ @@ -4884,13 +4927,34 @@ "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." + }, + { + "name": "Prebuild branch, configuration and triggers", + "values": "branch plus devcontainer.json; Every push default, On configuration change, Scheduled", + "decision_rule": "Choose actual developer branch/configuration and authorized billing scope. Configuration-change mode watches supported devcontainer/Dockerfile paths and may leave dependencies stale; nested devcontainer changes do not all trigger it.", + "verification": "Read saved branch/configuration/schedule and latest Codespaces Prebuilds run SHA/conclusion; create an authorized sample to confirm Prebuilt codespace found. Correct configuration and rerun before relying on it." + }, + { + "name": "Prebuild regions and template history", + "values": "all available regions default; selected regions; retained versions 1..5, default 2", + "decision_rule": "Select used regions and justified history only; every region/version incurs storage charges. Older retained configurations support matching historical revisions.", + "verification": "Read regions/history and expected Prebuild Ready availability for region/configuration. Restore prior settings if intended developers lose coverage; disabling workflow updates leaves existing prebuilds usable and does not delete storage." + }, + { + "name": "Prebuild commands and credential availability", + "values": "onCreateCommand once per prebuild; updateContentCommand initially and on updates; repository/organization Codespaces secrets; no user secrets during prebuild", + "decision_rule": "Put incremental source builds in updateContentCommand. Grant narrow repository access and credentials; prebuild secrets must not be embedded in resulting reusable files. User secrets become available only after codespace creation.", + "verification": "Read devcontainer commands and secret scope metadata; inspect redacted prebuild logs and an authorized clean codespace. Rotate exposed secrets at provider and replace consumers; fix command/configuration and rebuild affected prebuilds." } ], "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" + "https://docs.github.com/en/rest/codespaces/codespaces", + "https://docs.github.com/en/codespaces/prebuilding-your-codespaces/configuring-prebuilds", + "https://docs.github.com/en/codespaces/prebuilding-your-codespaces/managing-prebuilds", + "https://docs.github.com/en/codespaces/troubleshooting/troubleshooting-prebuilds" ], "community_sources": [], "pitfalls": [ diff --git a/skills/full-github/references/administration-options.md b/skills/full-github/references/administration-options.md index 115c97d..fc25f4f 100644 --- a/skills/full-github/references/administration-options.md +++ b/skills/full-github/references/administration-options.md @@ -16,6 +16,9 @@ Group: `organization-access-defaults`. Capability IDs: `admin-organization-profi | 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. | +| Organization web commit signoff | web_commit_signoff_required boolean; documented default false | Apply an approved signoff agreement to web commits across organization repositories. Distinguish Signed-off-by from verified cryptographic signatures; CLI commits need --signoff. | Read organization and repository effective settings; inspect the web commit form and an authorized resulting trailer. Restore previous policy on error without rewriting earlier commits. | + +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/organizations/managing-organization-settings/managing-the-commit-signoff-policy-for-your-organization). Provider defaults above are separate from observed tenant values. **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. @@ -51,6 +54,10 @@ Group: `identity-recovery`. Capability IDs: `admin-identity-policies`, `admin-or | 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. | +| IP allow-list entries and enforcement | organization/enterprise entries: IP or CIDR, description, enabled; allow-list enabled/disabled; inherited enterprise entries | Enterprise Cloud eligibility required. Inventory automation egress and IPv6, add the current administrator IP/range, and check address admission before enabling. Enforcement starts immediately; organization Codespaces becomes unavailable. Never remove the last working administrative route. | Read entries and inherited policy; use Check IP address before enabling, then verify representative user/App web/API/Git access. Preserve a working authorized admin session for recovery; restore prior entries or disable through that route if access breaks. Changes may take minutes to propagate. | +| Installed GitHub App IP inheritance | Enable IP allow list configuration for installed GitHub Apps boolean; App-managed entries | Enable only for approved installed Apps. Their registered addresses update automatically and apply to installation traffic, not ordinary users at those IPs. App-managed entries cannot be edited/deleted/disabled individually. | Read inheritance toggle and Managed by App entries, verify the intended installation access and user restrictions. Correct App registration or inheritance policy rather than broadening ordinary user CIDRs; recheck downstream access. | + +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization), [official source 2](https://docs.github.com/en/apps/maintaining-github-apps/managing-allowed-ip-addresses-for-a-github-app). Provider defaults above are separate from observed tenant values. **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. @@ -191,6 +198,11 @@ Group: `codespaces-options`. Capability IDs: `admin-codespaces-lifecycle`, `admi | 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. | +| Prebuild branch, configuration and triggers | branch plus devcontainer.json; Every push default, On configuration change, Scheduled | Choose actual developer branch/configuration and authorized billing scope. Configuration-change mode watches supported devcontainer/Dockerfile paths and may leave dependencies stale; nested devcontainer changes do not all trigger it. | Read saved branch/configuration/schedule and latest Codespaces Prebuilds run SHA/conclusion; create an authorized sample to confirm Prebuilt codespace found. Correct configuration and rerun before relying on it. | +| Prebuild regions and template history | all available regions default; selected regions; retained versions 1..5, default 2 | Select used regions and justified history only; every region/version incurs storage charges. Older retained configurations support matching historical revisions. | Read regions/history and expected Prebuild Ready availability for region/configuration. Restore prior settings if intended developers lose coverage; disabling workflow updates leaves existing prebuilds usable and does not delete storage. | +| Prebuild commands and credential availability | onCreateCommand once per prebuild; updateContentCommand initially and on updates; repository/organization Codespaces secrets; no user secrets during prebuild | Put incremental source builds in updateContentCommand. Grant narrow repository access and credentials; prebuild secrets must not be embedded in resulting reusable files. User secrets become available only after codespace creation. | Read devcontainer commands and secret scope metadata; inspect redacted prebuild logs and an authorized clean codespace. Rotate exposed secrets at provider and replace consumers; fix command/configuration and rebuild affected prebuilds. | + +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/configuring-prebuilds), [official source 2](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/managing-prebuilds), [official source 3](https://docs.github.com/en/codespaces/troubleshooting/troubleshooting-prebuilds). Provider defaults above are separate from observed tenant values. **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. diff --git a/skills/full-github/references/collaboration-options.md b/skills/full-github/references/collaboration-options.md index 8be5bd3..559c941 100644 --- a/skills/full-github/references/collaboration-options.md +++ b/skills/full-github/references/collaboration-options.md @@ -39,6 +39,10 @@ Each row gives accepted choices, a decision rule and owning-object verification. | 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. | +| has_pull_requests / pull_request_creation_policy | has_pull_requests boolean; documented default true; pull_request_creation_policy: all or collaborators_only | Preserve contribution access unless a restriction is intended. Organization collaborators for this setting have write, maintain or admin access; personal collaborators are invited users. Disabling hides existing PRs rather than deleting them. | Read both settings and intended contributor eligibility; inspect PR visibility. Re-enable to restore existing PR availability; restore prior policy if legitimate contributions are blocked. | +| web_commit_signoff_required | boolean; documented default false; effective organization policy also applies | Choose only an owner-approved signoff agreement. This adds author signoff to web commits, differs from cryptographic signing, and does not enforce CLI signoffs; CLI authors use --signoff. | Read repository and organization policies; inspect the Sign off and commit changes form and resulting Signed-off-by trailer on an authorized commit. Restore prior setting if misconfigured; retain existing commit history. | + +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-pull-requests), [official source 2](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Provider defaults above are separate from observed tenant values. **Official sources:** [repos](https://docs.github.com/en/rest/repos/repos), [autolinks](https://docs.github.com/en/rest/repos/autolinks). @@ -576,13 +580,15 @@ Each row gives accepted choices, a decision rule and owning-object 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. | +| 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. GitHub accepts success, skipped and neutral conclusions; a skipped required job does not prove its validation ran. | Compare rules to check-run names/App IDs and results on the relevant PR/test-merge or merge-group SHA. Whole-workflow filter skips leave checks pending; conditional/dependent job skips can allow merging. Require a terminal aggregate gate that evaluates prerequisite results and fails for missing or failed required validation; verify failure and skip cases before relying on it. | | 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. | +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks). Provider defaults above are separate from observed tenant values. + **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. diff --git a/skills/full-github/references/delivery-options.md b/skills/full-github/references/delivery-options.md index 559f4cd..4822927 100644 --- a/skills/full-github/references/delivery-options.md +++ b/skills/full-github/references/delivery-options.md @@ -22,11 +22,13 @@ Group: `workflow-events`. Capabilities: `actions-workflows`. | --- | --- | --- | --- | | 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. | +| schedule | POSIX cron; optional on.schedule[].timezone IANA name; UTC default; default-branch workflow; minimum 5-minute interval | Set timezone explicitly when local clock time matters. In DST spring-forward missing hours, execution advances to the next valid time. Use for tolerable delays with manual recovery; scheduling is not a precise timer. | Read cron/timezone from default-branch workflow; compare intended local time, DST transition behavior, scheduled event and actual start. Correct timezone/cron before rerunning missed work with duplicate protection. | | 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. | +Option review: 2026-11-15. [official source 1](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onschedule). Provider defaults above are separate from observed tenant values. + 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. diff --git a/skills/full-github/references/operations.md b/skills/full-github/references/operations.md index c6174fe..fd99b40 100644 --- a/skills/full-github/references/operations.md +++ b/skills/full-github/references/operations.md @@ -113,3 +113,9 @@ call and collect record local attempts and outcomes by default, with host and se 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. + +## Reviewed release identity + +package_release.py requires an existing local tag whose peeled commit matches HEAD. publish_release.py requires --expected-commit and --notes-file, checks the ZIP source comment, peels the remote tag and rechecks it before publication. The workflow passes the actual build commit through job outputs. Native no-bypass tag update/deletion protection prevents concurrent ref moves while publication is pending. + +New drafts receive reviewed installation, validation and limitation notes together with generated change history. Existing draft prose is preserved. Review pre-existing drafts from another process for those delivery requirements before running publication. diff --git a/tests/test_release.py b/tests/test_release.py index 964d7a9..7c2dad7 100644 --- a/tests/test_release.py +++ b/tests/test_release.py @@ -6,6 +6,7 @@ import tempfile import unittest import zipfile +from unittest import mock sys.path.insert(0, str(Path(__file__).parents[1] / "scripts")) import package_release @@ -13,6 +14,46 @@ class PackagingTests(unittest.TestCase): + def test_committed_marketplace_source_portability_is_verified(self): + for failure in ("source_symlink", "manifest_symlink", "missing_manifest", "portable"): + with self.subTest(failure=failure), tempfile.TemporaryDirectory() as temporary: + root = Path(temporary) / "repo" + root.mkdir() + files = { + ".codex-plugin/plugin.json": json.dumps({"name": "full-github", "version": "0.3.0"}), + ".agents/plugins/marketplace.json": json.dumps({"plugins": [{"name": "full-github", "source": {"source": "local", "path": "./nested"}}]}), + "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) + if failure == "source_symlink": + (root / "nested").symlink_to(".", target_is_directory=True) + elif failure == "manifest_symlink": + path = root / "nested/.codex-plugin/plugin.json" + path.parent.mkdir(parents=True) + external = Path(temporary) / "external.json" + external.write_text(files[".codex-plugin/plugin.json"]) + path.symlink_to(external) + elif failure == "portable": + path = root / "nested/.codex-plugin/plugin.json" + path.parent.mkdir(parents=True) + path.write_text(files[".codex-plugin/plugin.json"]) + for arguments in (["init", "-b", "main", "--quiet"], ["config", "user.name", "Fixture"], + ["config", "user.email", "fixture@example.invalid"], ["add", "."], + ["commit", "--quiet", "-m", "fixture"], ["tag", "v0.3.0"]): + subprocess.run(["git", *arguments], cwd=root, check=True) + if failure == "portable": + destination = package_release.package(root, Path(temporary) / "output", "v0.3.0") + with zipfile.ZipFile(destination) as zipped: + self.assertEqual(json.loads(zipped.read("full-github/nested/.codex-plugin/plugin.json"))["name"], "full-github") + else: + with self.assertRaisesRegex(ValueError, "[Ss]ymlink|[Mm]issing"): + package_release.package(root, Path(temporary) / "output", "v0.3.0") + self.assertFalse((Path(temporary) / "output/full-github-0.3.0.zip").exists()) + def test_hidden_manifests_and_committed_version_are_verified(self): with tempfile.TemporaryDirectory() as temporary: root = Path(temporary) / "repo" @@ -29,7 +70,8 @@ def test_hidden_manifests_and_committed_version_are_verified(self): 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"]): + ["commit", "--quiet", "-m", "fixture"], + ["tag", "-a", "v0.3.0", "-m", "annotated release"], ["tag", "v0.3.1"]): 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: @@ -39,6 +81,26 @@ def test_hidden_manifests_and_committed_version_are_verified(self): 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()) + original = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=root, text=True).strip() + archive_before = destination.read_bytes() + (root / "payload.txt").write_text("changed source, same version") + for arguments in (["add", "."], ["commit", "--quiet", "-m", "different source"], ["tag", "-f", "v0.3.0"], ["checkout", "--quiet", original]): + subprocess.run(["git", *arguments], cwd=root, check=True, capture_output=True) + with self.assertRaisesRegex(ValueError, "checked-out source commit"): + package_release.package(root, Path(temporary) / "output", "v0.3.0") + self.assertEqual(destination.read_bytes(), archive_before) + moved_head = subprocess.check_output(["git", "rev-parse", "v0.3.0^{commit}"], cwd=root, text=True).strip() + subprocess.run(["git", "tag", "-f", "v0.3.0", original], cwd=root, check=True, capture_output=True) + original_run = subprocess.run + def switch_head_during_archive(argv, **kwargs): + if argv[:2] == ["git", "archive"]: + original_run(["git", "checkout", "--quiet", moved_head], cwd=root, check=True) + return original_run(argv, **kwargs) + with mock.patch.object(package_release.subprocess, "run", side_effect=switch_head_during_archive): + stable = package_release.package(root, Path(temporary) / "output", "v0.3.0") + with zipfile.ZipFile(stable) as archived: + self.assertEqual(archived.comment.decode(), original) + self.assertNotIn("full-github/payload.txt", archived.namelist()) class PublicationTests(unittest.TestCase): @@ -46,7 +108,16 @@ 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.commit = "a" * 40 + self.remote_commit = self.commit + self.annotated = False + self.tag_reads = 0 + self.move_tag_after_first_read = False + self.notes = Path(self.directory.name) / "notes.md" + self.notes.write_text("Installation, validation evidence and known limitations.") + with zipfile.ZipFile(self.assets[0], "w") as archive: + archive.writestr("payload.txt", "source") + archive.comment = self.commit.encode("ascii") self.assets[1].write_bytes(b"checksum") self.exists = False self.draft = True @@ -54,8 +125,18 @@ def setUp(self): self.remote = {"human-notes.txt": b"preserve"} self.uploads = [] self.fail_second_upload = False + self.body = "human-written draft notes" + self.created_notes = None def run_gh(self, argv, **kwargs): + if argv[1] == "api": + if "/git/ref/" in argv[2]: + self.tag_reads += 1 + commit = "b" * 40 if self.move_tag_after_first_read and self.tag_reads > 1 else self.remote_commit + target = dict(type="tag", sha="c" * 40) if self.annotated else dict(type="commit", sha=commit) + else: + target = dict(type="commit", sha=self.remote_commit) + return subprocess.CompletedProcess(argv, 0, json.dumps(dict(object=target)), "") action = argv[2] if action == "view": if not self.exists: @@ -65,6 +146,8 @@ def run_gh(self, argv, **kwargs): if action == "create": self.exists = True self.prerelease = "--prerelease" in argv + self.created_notes = Path(argv[argv.index("--notes-file") + 1]).read_text() + self.body = self.created_notes + "\ngenerated change history" elif action == "upload": path = Path(argv[4]) if self.fail_second_upload and path == self.assets[1].resolve(): @@ -91,21 +174,21 @@ def run_gh(self, argv, **kwargs): 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) + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) self.assertTrue(self.draft) self.fail_second_upload = False - publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh) + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) 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) + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) 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) + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) self.assertTrue(self.draft) self.assertEqual(self.remote["plugin.zip"], b"different") @@ -113,20 +196,57 @@ 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) + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) 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) + publish_release.publish("o/r", "v0.3.0-rc.1", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) 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) + publish_release.publish("../..", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) with self.assertRaisesRegex(ValueError, "unique"): - publish_release.publish("o/r", "v0.3.0", [self.assets[0], self.assets[0]], self.run_gh) + publish_release.publish("o/r", "v0.3.0", [self.assets[0], self.assets[0]], self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertFalse(self.exists) + + def test_annotated_remote_tag_is_peeled_to_expected_commit(self): + self.annotated = True + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertFalse(self.draft) + self.assertGreaterEqual(self.tag_reads, 3) + + def test_moved_tag_blocks_new_and_resumed_publication(self): + self.remote_commit = "b" * 40 + for exists in (False, True): + self.exists = exists + with self.assertRaisesRegex(RuntimeError, "Remote release tag"): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertTrue(self.draft) + self.assertFalse(self.uploads) + + def test_tag_moved_during_upload_blocks_final_publication(self): + self.move_tag_after_first_read = True + with self.assertRaisesRegex(RuntimeError, "Remote release tag"): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertTrue(self.draft) + + def test_artifact_commit_mismatch_fails_before_any_remote_mutation(self): + with zipfile.ZipFile(self.assets[0], "a") as archive: + archive.comment = b"b" * 40 + with self.assertRaisesRegex(ValueError, "Artifact source commit"): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) self.assertFalse(self.exists) + self.assertEqual(self.tag_reads, 0) + + def test_reviewed_notes_are_used_and_existing_human_notes_preserved(self): + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertEqual(self.created_notes, self.notes.read_text()) + self.assertIn("generated change history", self.body) + self.body = "human edited notes after publication" + publish_release.publish("o/r", "v0.3.0", self.assets, self.run_gh, expected_commit=self.commit, notes_file=self.notes) + self.assertEqual(self.body, "human edited notes after publication") if __name__ == "__main__": diff --git a/tests/test_validation.py b/tests/test_validation.py new file mode 100644 index 0000000..442df3c --- /dev/null +++ b/tests/test_validation.py @@ -0,0 +1,106 @@ +import json +from pathlib import Path +import shutil +import subprocess +import sys +import tempfile +import unittest + + +ROOT = Path(__file__).resolve().parents[1] + + +class ValidationTests(unittest.TestCase): + def setUp(self): + directory = tempfile.TemporaryDirectory() + self.addCleanup(directory.cleanup) + self.root = Path(directory.name) / "repository" + for name in ("scripts", "skills", "docs", "wiki", ".codex-plugin", ".agents"): + shutil.copytree(ROOT / name, self.root / name) + self.marketplace_path = self.root / ".agents/plugins/marketplace.json" + self.marketplace = json.loads(self.marketplace_path.read_text()) + + def run_script(self, name, *arguments): + return subprocess.run([sys.executable, str(self.root / "scripts" / name), *arguments], + capture_output=True, text=True) + + def validate_entry(self, **changes): + entry = self.marketplace["plugins"][0] + entry.update(changes) + self.marketplace_path.write_text(json.dumps(self.marketplace)) + return self.run_script("validate.py") + + def test_missing_local_plugin_source_fails_validation(self): + result = self.validate_entry(source={"source": "local", "path": "./does-not-exist"}) + self.assertNotEqual(result.returncode, 0) + + def test_nonlocal_and_nonrelative_sources_fail_validation(self): + for source in ({"source": "git", "path": "./"}, {"source": "local", "path": str(self.root)}): + with self.subTest(source=source): + self.assertNotEqual(self.validate_entry(source=source).returncode, 0) + + def test_sources_cannot_escape_through_parent_paths_or_symlinks(self): + outside = self.root.parent / "outside" + shutil.copytree(self.root / ".codex-plugin", outside / ".codex-plugin") + (self.root / "linked").symlink_to(outside, target_is_directory=True) + for path in ("./../outside", "./linked"): + with self.subTest(path=path): + self.assertNotEqual(self.validate_entry(source={"source": "local", "path": path}).returncode, 0) + + def test_source_manifest_identity_must_match_marketplace_entry(self): + nested = self.root / "nested/.codex-plugin" + nested.mkdir(parents=True) + (nested / "plugin.json").write_text('{"name":"different-plugin"}') + self.assertNotEqual(self.validate_entry(source={"source": "local", "path": "./nested"}).returncode, 0) + + def test_symlinked_source_and_manifest_components_fail_validation(self): + (self.root / "alias").symlink_to(".", target_is_directory=True) + self.assertNotEqual(self.validate_entry(source={"source": "local", "path": "./alias"}).returncode, 0) + nested = self.root / "nested/.codex-plugin" + nested.mkdir(parents=True) + outside = self.root.parent / "external.json" + outside.write_text((self.root / ".codex-plugin/plugin.json").read_text()) + (nested / "plugin.json").symlink_to(outside) + self.assertNotEqual(self.validate_entry(source={"source": "local", "path": "./nested"}).returncode, 0) + + def test_invalid_product_restrictions_fail_validation(self): + for products in ("CODEX", ["NOT_A_PRODUCT"], [1], {}): + with self.subTest(products=products): + self.assertNotEqual(self.validate_entry(policy={"products": products}).returncode, 0) + + def test_supported_product_restrictions_pass_validation(self): + for products in (None, [], ["codex", "chatgpt", "atlas"], ["CODEX", "CHATGPT", "ATLAS"]): + with self.subTest(products=products): + result = self.validate_entry(policy={"products": products}) + self.assertEqual(result.returncode, 0, result.stderr) + + def test_unknown_marketplace_policies_fail_validation(self): + for policy in ({"installation": "SOMETIMES", "authentication": "ON_INSTALL"}, + {"installation": "AVAILABLE", "authentication": "ON_FIRST_USE"}): + with self.subTest(policy=policy): + self.assertNotEqual(self.validate_entry(policy=policy).returncode, 0) + + def test_supported_marketplace_policies_pass_validation(self): + for installation in ("AVAILABLE", "NOT_AVAILABLE", "INSTALLED_BY_DEFAULT"): + for authentication in ("ON_INSTALL", "ON_USE"): + with self.subTest(installation=installation, authentication=authentication): + result = self.validate_entry(policy={"installation": installation, "authentication": authentication}) + self.assertEqual(result.returncode, 0, result.stderr) + + def test_check_rejects_stale_wiki_and_render_repairs_it(self): + self.assertEqual(self.run_script("render_catalog.py").returncode, 0) + for name in ("Capabilities.md", "Configuration.md"): + with self.subTest(name=name): + path = self.root / "wiki" / name + path.write_text("stale wiki source\n") + self.assertNotEqual(self.run_script("render_catalog.py", "--check").returncode, 0) + result = self.run_script("render_catalog.py") + self.assertEqual(result.returncode, 0, result.stderr) + self.assertNotEqual(path.read_text(), "stale wiki source\n") + self.assertEqual(self.run_script("render_catalog.py", "--check").returncode, 0) + capabilities = (self.root / "wiki/Capabilities.md").read_text() + self.assertIn("https://github.com/thinkhome-org/full-github/blob/main/docs/VERIFICATION.md", capabilities) + + +if __name__ == "__main__": + unittest.main() diff --git a/wiki/API.md b/wiki/API.md index a78a75b..e7fb832 100644 --- a/wiki/API.md +++ b/wiki/API.md @@ -113,3 +113,9 @@ call and collect record local attempts and outcomes by default, with host and se 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. + +## Reviewed release identity + +package_release.py requires an existing local tag whose peeled commit matches HEAD. publish_release.py requires --expected-commit and --notes-file, checks the ZIP source comment, peels the remote tag and rechecks it before publication. The workflow passes the actual build commit through job outputs. Native no-bypass tag update/deletion protection prevents concurrent ref moves while publication is pending. + +New drafts receive reviewed installation, validation and limitation notes together with generated change history. Existing draft prose is preserved. Review pre-existing drafts from another process for those delivery requirements before running publication. diff --git a/wiki/Configuration.md b/wiki/Configuration.md index 51644d2..71e2567 100644 --- a/wiki/Configuration.md +++ b/wiki/Configuration.md @@ -1,6 +1,6 @@ # Configuration decisions -Reviewed 2026-11-15. 82 decision groups contain 451 concrete configuration choices covering every catalog capability. +Reviewed 2026-11-15. 82 decision groups contain 459 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. @@ -20,6 +20,8 @@ Capabilities repository-lifecycle, repository-branches, repository-autolinks, re | 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. | +| has_pull_requests / pull_request_creation_policy | has_pull_requests boolean; documented default true, pull_request_creation_policy: all or collaborators_only | Preserve contribution access unless a restriction is intended. Organization collaborators for this setting have write, maintain or admin access; personal collaborators are invited users. Disabling hides existing PRs rather than deleting them. | Read both settings and intended contributor eligibility; inspect PR visibility. Re-enable to restore existing PR availability; restore prior policy if legitimate contributions are blocked. | +| web_commit_signoff_required | boolean; documented default false, effective organization policy also applies | Choose only an owner-approved signoff agreement. This adds author signoff to web commits, differs from cryptographic signing, and does not enforce CLI signoffs; CLI authors use --signoff. | Read repository and organization policies; inspect the Sign off and commit changes form and resulting Signed-off-by trailer on an authorized commit. Restore prior setting if misconfigured; retain existing commit history. | ### Pitfalls @@ -29,6 +31,8 @@ Capabilities repository-lifecycle, repository-branches, repository-autolinks, re - [Official sources 1](https://docs.github.com/en/rest/repos/repos) - [Official sources 2](https://docs.github.com/en/rest/repos/autolinks) +- [Official sources 3](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-pull-requests) +- [Official sources 4](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository) ## Source changes, history and repository derivation @@ -730,7 +734,7 @@ Capabilities branch-protection, repository-merge-policy. | --- | --- | --- | --- | | 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. | +| 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. GitHub accepts success, skipped and neutral conclusions; a skipped required job does not prove its validation ran. | Compare rules to check-run names/App IDs and results on the relevant PR/test-merge or merge-group SHA. Whole-workflow filter skips leave checks pending; conditional/dependent job skips can allow merging. Require a terminal aggregate gate that evaluates prerequisite results and fails for missing or failed required validation; verify failure and skip cases before relying on it. | | 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. | @@ -746,6 +750,7 @@ Capabilities branch-protection, repository-merge-policy. - [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) +- [Official sources 4](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks) ## Personal watch choices, inbox triage and feed limitations @@ -974,7 +979,7 @@ Capabilities actions-workflows. | --- | --- | --- | --- | | 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. | +| schedule | POSIX cron; optional on.schedule[].timezone IANA name; UTC default; default-branch workflow; minimum 5-minute interval | Set timezone explicitly when local clock time matters. In DST spring-forward missing hours, execution advances to the next valid time. Use for tolerable delays with manual recovery; scheduling is not a precise timer. | Read cron/timezone from default-branch workflow; compare intended local time, DST transition behavior, scheduled event and actual start. Correct timezone/cron before rerunning missed work with duplicate protection. | | 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. | @@ -1002,6 +1007,7 @@ Inspect event/ref/filters first; dispatch or rerun the exact intended revision o - [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) +- [Official sources 4](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onschedule) ## Jobs, matrices, conditions and run history @@ -1828,6 +1834,7 @@ Capabilities admin-organization-profile, admin-organization-policy-settings, adm | 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. | +| Organization web commit signoff | web_commit_signoff_required boolean; documented default false | Apply an approved signoff agreement to web commits across organization repositories. Distinguish Signed-off-by from verified cryptographic signatures; CLI commits need --signoff. | Read organization and repository effective settings; inspect the web commit form and an authorized resulting trailer. Restore previous policy on error without rewriting earlier commits. | ### Pitfalls @@ -1840,6 +1847,7 @@ Capabilities admin-organization-profile, admin-organization-policy-settings, adm - [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) +- [Official sources 5](https://docs.github.com/en/organizations/managing-organization-settings/managing-the-commit-signoff-policy-for-your-organization) ## Nested teams and delegated roles @@ -1884,6 +1892,8 @@ Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-or | 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. | +| IP allow-list entries and enforcement | organization/enterprise entries: IP or CIDR, description, enabled; allow-list enabled/disabled; inherited enterprise entries | Enterprise Cloud eligibility required. Inventory automation egress and IPv6, add the current administrator IP/range, and check address admission before enabling. Enforcement starts immediately; organization Codespaces becomes unavailable. Never remove the last working administrative route. | Read entries and inherited policy; use Check IP address before enabling, then verify representative user/App web/API/Git access. Preserve a working authorized admin session for recovery; restore prior entries or disable through that route if access breaks. Changes may take minutes to propagate. | +| Installed GitHub App IP inheritance | Enable IP allow list configuration for installed GitHub Apps boolean; App-managed entries | Enable only for approved installed Apps. Their registered addresses update automatically and apply to installation traffic, not ordinary users at those IPs. App-managed entries cannot be edited/deleted/disabled individually. | Read inheritance toggle and Managed by App entries, verify the intended installation access and user restrictions. Correct App registration or inheritance policy rather than broadening ordinary user CIDRs; recheck downstream access. | ### Pitfalls @@ -1896,6 +1906,8 @@ Capabilities admin-identity-policies, admin-organization-audit-and-sso, admin-or - [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) +- [Official sources 5](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization) +- [Official sources 6](https://docs.github.com/en/apps/maintaining-github-apps/managing-allowed-ip-addresses-for-a-github-app) ## PAT and OAuth lifecycle @@ -2109,6 +2121,9 @@ Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codesp | 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. | +| Prebuild branch, configuration and triggers | branch plus devcontainer.json; Every push default, On configuration change, Scheduled | Choose actual developer branch/configuration and authorized billing scope. Configuration-change mode watches supported devcontainer/Dockerfile paths and may leave dependencies stale; nested devcontainer changes do not all trigger it. | Read saved branch/configuration/schedule and latest Codespaces Prebuilds run SHA/conclusion; create an authorized sample to confirm Prebuilt codespace found. Correct configuration and rerun before relying on it. | +| Prebuild regions and template history | all available regions default; selected regions; retained versions 1..5, default 2 | Select used regions and justified history only; every region/version incurs storage charges. Older retained configurations support matching historical revisions. | Read regions/history and expected Prebuild Ready availability for region/configuration. Restore prior settings if intended developers lose coverage; disabling workflow updates leaves existing prebuilds usable and does not delete storage. | +| Prebuild commands and credential availability | onCreateCommand once per prebuild; updateContentCommand initially and on updates; repository/organization Codespaces secrets; no user secrets during prebuild | Put incremental source builds in updateContentCommand. Grant narrow repository access and credentials; prebuild secrets must not be embedded in resulting reusable files. User secrets become available only after codespace creation. | Read devcontainer commands and secret scope metadata; inspect redacted prebuild logs and an authorized clean codespace. Rotate exposed secrets at provider and replace consumers; fix command/configuration and rebuild affected prebuilds. | ### Pitfalls @@ -2120,6 +2135,9 @@ Capabilities admin-codespaces-lifecycle, admin-codespaces-machines, admin-codesp - [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) +- [Official sources 5](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/configuring-prebuilds) +- [Official sources 6](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/managing-prebuilds) +- [Official sources 7](https://docs.github.com/en/codespaces/troubleshooting/troubleshooting-prebuilds) ## Custom properties, issue types and shared fields diff --git a/wiki/Verification.md b/wiki/Verification.md index 8910a27..688762b 100644 --- a/wiki/Verification.md +++ b/wiki/Verification.md @@ -1,5 +1,16 @@ # Verification record +## Version 0.3.1 + +Three fresh review agents examined runtime correctness, option/procedure coverage and publication/installation. The runtime reviewer found no actionable defect in the assigned execution/history scope. Twelve concrete review findings were corrected and verified, including two additional portability/policy cases from rechecking the first fixes. + +- 65 tests cover tag/artifact/source mismatch, annotated tags, moved refs during upload, reviewed notes and preservation of existing prose, source/symlink portability, product policy shape and stale Wiki generation alongside prior runtime cases. +- Registry and generated-document checks cover both docs and Wiki catalogs. Every catalog capability retains concrete option decisions. +- The active release-tag ruleset blocks update/deletion with no bypass actors; its actual settings were read back. +- Existing runtime behavior and historical 0.3 evidence remain recorded below. + +See [the review record](https://github.com/thinkhome-org/full-github/blob/main/docs/REVIEW-0.3.1.md) for findings, corrections and execution boundaries. + ## 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.