Repository navigation
fix(governance): require human scope and add neutral eligibility evidence - #2964
Daniel Meppiel (danielmeppiel) merged 3 commits into
Conversation
…ence Refs #2960. Keep implementation authority human, make daily docs discovery-only, and deploy compatible triage consumers with regression coverage. Co-authored-by: Copilot App <[email protected]>
…icit Use a verified literal default-branch checkout and bind policy to its actual commit. Remove remaining docs workflow label-ratification instructions; keep companion work outside unattended runs. Co-authored-by: Copilot App <[email protected]>
Governance automation rollout - issue #2960Design before implementation. Base: 4aaa73c. Intent and boundaryMake existing automation distinguish evidence and advice from human permission. Component diagramflowchart TD
Gov[/RULE: human governance/]
Authority[(ASSET: authority reader and record parser)]:::new
Eligibility{ORCHESTRATOR: eligibility evidence}:::new
Queue{ORCHESTRATOR: permissionless queue signal}:::new
Triage[SKILL: triage advice]
Bug[SKILL: batch bug shepherd]
Docs[SKILL: docs sync]
Daily{ORCHESTRATOR: daily docs}
CLI{ORCHESTRATOR: CLI inspection}
Labels[(ASSET: canonical label contract)]
Human{Responsible human checkpoint}
Authority --> Gov
Eligibility --> Authority
Queue -->|"workflow_run metadata only"| Eligibility
Bug --> Authority
Docs --> Authority
Daily --> Authority
Triage --> Labels
CLI --> Labels
Bug --> Human
Docs --> Human
Daily --> Human
classDef new stroke-dasharray: 5 5;
Sequence and single writersequenceDiagram
participant Event
participant Runner as Trusted base runner
participant Signal as Permissionless queue signal
participant API as Metadata API
participant Parser as Deterministic authority
participant Human
alt Merge queue
Event->>Signal: merge_group with no token permissions
Signal-->>Runner: workflow_run with run ID
Runner->>API: Verify actual run, workflow and repository metadata
else PR, issue or manual repository dispatch
Event->>Runner: Default-branch event definition
end
Runner->>API: Read current PRs, issues, comments and base governance
API-->>Runner: Complete paginated metadata or explicit failure
Runner->>Parser: Snapshot plus event context
Parser-->>Runner: Evidence state, never implementation permission
Runner->>API: Neutral advisory check only
Note over Runner,API: Single writer, never labels, comments, merge or close
Human->>API: Fresh bounded issue decision
Note over Human: Qualitative scope, confidential tracking and implementation permission remain human
Compositionflowchart LR
Consumer[Existing consumers] -- LOCAL SIBLING --> Authority[(Authority tool)]
Signal[Permissionless queue signal] -- LOCAL SIBLING --> Reporter[Trusted reporter]
Reporter -- LOCAL SIBLING --> Authority
Authority -- LOCAL SIBLING --> Gov[(Governance roster)]
Triage[Triage] -- INLINE --> Labels[(Label contract)]
Consumers[Existing installed bundles] -- LOCAL SIBLING --> Sources[(Existing package sources)]
All new authority code is a repository-local maintainer tool, not a new
Strict record format (issue comments only)The responsible human posts one new, unedited comment:
Withdrawal uses the same marker with Honest revocation boundaryA current API snapshot cannot reconstruct deleted withdrawal comments. Issue traceability and securityParse actual same-repository issue references from the PR body; closing Security claims route to confidential human review, not missing-public-issue The workflow verifies through the repository API that Pattern and compliance decisionsR3 EXTRACT duplicated human-authority interpretation into one deterministic PROSE: lazy shared asset, bounded existing skills, composed local authority, Targets: common-only for skill contracts; gh-aw trigger surface for existing Cost contractStance: balanced; no operator cap. Eligibility and authority use zero LLM Evals and validation planBaseline already run: 26 existing triage/lock/shepherd contract tests passed. Before shipping changed skill prose: persist content eval scenarios and run Ordered work
Implementation and verification handoffBounded Copilot follow-up (review comments 3994763443-3994763491)Reopen validation for six contract gaps; no panel, factory, model, dependency,
Add exact boundary/negative regressions and one changed-child content case; Published head:
The combined follow-up passed 224 focused Python tests, including the Node The implementation keeps every automated check neutral and every machine The initial focused suite passed 217 Python tests and 27 Node scenarios. Actual isolated content comparisons cover previous, updated, and no-skill Docs-impact classification exits at L1/no_change for additional corpus work: The actual CodeQL scanner check is neutral, not clean-green, with zero Activation prerequisites remain explicit: deploy trusted default-branch |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved critical and moderate findings affect trusted workflow execution and fail-closed governance evidence.
Get a fresh assessment by requesting another Copilot review.
Review tier: Lite
Findings: 3
Open findings (6)
Do not run branch-controlled workflow code with checks write · New Make the per-wave recheck enforceable in the child pipeline · New Resolve gh through the trusted executable helper · New Require the documented exclusions field in approvals · New Strip HTML comments before extracting evidence URLs · New Bound issue and comment reads from untrusted PR bodies · New
What changed in this PR
This PR adds trusted human-scope parsing and neutral PR eligibility evidence while tightening governance automation.
Changes:
- Adds deterministic scope and eligibility checks.
- Restricts automation to discovery/advisory behavior with fresh human gates.
- Updates triage contracts, documentation, installed skills, locks, and tests.
Unresolved findings:
.apm/skills/docs-sync/SKILL.md— moderate, 1 vote: align the active workflow and eval copies with fresh scope-record requirements..github/workflows/pr-eligibility.yml— moderate, 1 vote: handle deleted issues and test the trigger..github/workflows/pr-eligibility.yml— critical, 1 vote: prevent untrusted branch workflow dispatch from receiving write permissions.packages/apm-issue-autopilot/.apm/skills/apm-issue-autopilot/SKILL.md— critical, 1 vote: enforce eligibility rechecks in the child-owned wave gate.packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/SKILL.md— moderate, 1 vote: update the deployed final-report template for fail-closed behavior.scripts/governance/authority.cjs— moderate, 3 votes: require the exclusions field.scripts/governance/authority.cjs— moderate, 1 vote: treat edited withdrawals as needing fresh evidence.scripts/governance/eligibility.cjs— moderate, 2 votes: remove HTML comments before extracting evidence.scripts/governance/eligibility.cjs— critical, 2 votes: use trusted GitHub CLI resolution.scripts/governance/eligibility.cjs— moderate, 2 votes: cap references and pagination with explicit unknown evidence.scripts/governance/eligibility.cjs— moderate, 1 vote: prevent invalid references from producing a successful aggregate result.
| File | Summary |
|---|---|
tests/unit/test_triage_advisory.py |
Tests canonical labels and aliases |
tests/unit/test_governance_evidence.py |
Tests workflow and authority guards |
tests/unit/test_governance_consumers.py |
Tests consumer safety contracts |
tests/unit/scripts/test_architecture_runner.py |
Tests architecture checks |
tests/scripts/governance_evidence.test.cjs |
Tests governance evidence scenarios |
tests/fixtures/governance/maintainer-scope-evals.json |
Governance evaluation fixtures |
scripts/governance/run.cjs |
Runs neutral eligibility checks |
scripts/governance/eligibility.cjs |
Evaluates PR eligibility |
scripts/governance/authority.cjs |
Parses trusted governance records |
scripts/architecture_linter/groups/contracts_tests.py |
Registers governance tests |
scripts/architecture_linter/checks/contracts_governance.py |
Enforces governance architecture |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/SKILL.md |
Adds human-scope gates |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/references/strategic-alignment-gate.md |
Updates alignment requirements |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/references/invariants.md |
Documents marker safety |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/assets/verdict-schema.json |
Updates verdict schema |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/assets/strategic-alignment-prompt.md |
Updates alignment prompt |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/assets/ground-truth-table.md |
Updates workflow state |
packages/batch-bug-shepherd/.apm/skills/batch-bug-shepherd/assets/fix-prompt.md |
Adds fix rechecks |
packages/batch-bug-shepherd/.apm/prompts/batch-bug-shepherd.prompt.md |
Updates shepherd behavior |
packages/apm-triage-panel/assets/label-contract.json |
Defines canonical label rollout |
packages/apm-issue-autopilot/.apm/skills/apm-issue-autopilot/SKILL.md |
Adds scope-confirmation requirements |
GOVERNANCE.md |
Documents governance authority |
docs/src/content/docs/contributing/development-guide.md |
Updates contribution and eligibility documentation |
CONTRIBUTING.md |
Defines human scope records |
apm.lock.yaml |
Updates generated package hashes |
.github/workflows/triage-panel.md |
Updates triage workflow |
.github/workflows/triage-panel.lock.yml |
Regenerated triage lock |
.github/workflows/pr-eligibility.yml |
Adds neutral eligibility workflow |
.github/workflows/daily-doc-updater.md |
Makes docs discovery-only |
.github/workflows/cli-consistency-checker.md |
Updates label behavior |
.github/workflows/cli-consistency-checker.lock.yml |
Regenerated consistency lock |
.apm/skills/docs-sync/SKILL.md |
Updates docs-scope safeguards |
.apm/skills/docs-sync/assets/advisory-comment-template.md |
Updates advisory template |
.apm/architecture/owners/contracts-tooling.json |
Registers governance ownership |
.agents/skills/docs-sync/SKILL.md |
Updates installed docs skill |
.agents/skills/docs-sync/assets/advisory-comment-template.md |
Updates installed template |
.agents/skills/batch-bug-shepherd/SKILL.md |
Updates installed shepherd skill |
.agents/skills/batch-bug-shepherd/references/strategic-alignment-gate.md |
Updates installed alignment guide |
.agents/skills/batch-bug-shepherd/references/invariants.md |
Updates installed invariants |
.agents/skills/batch-bug-shepherd/assets/verdict-schema.json |
Updates installed schema |
.agents/skills/batch-bug-shepherd/assets/strategic-alignment-prompt.md |
Updates installed prompt |
.agents/skills/batch-bug-shepherd/assets/ground-truth-table.md |
Updates installed state table |
.agents/skills/batch-bug-shepherd/assets/fix-prompt.md |
Updates installed fix prompt |
.agents/skills/apm-triage-panel/assets/label-contract.json |
Updates installed label contract |
.agents/skills/apm-issue-autopilot/SKILL.md |
Updates installed autopilot skill |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
The latest Copilot review identified six additional, in-scope follow-ups. I am addressing them before considering this ready to merge: privileged manual-entry trust, the child-owned wave checkpoint, trusted GitHub CLI resolution, the required exclusions field, hidden-comment references, and bounded API work. The earlier checkout alert is fixed without dismissal. Current CI and rendered docs pass, but those results do not substitute for the remaining review corrections; please hold merge until the follow-up commit and its checks land. No rollout activation or historical label migration has occurred. |
Address the six bounded review contracts: default-branch entrypoints, fresh child-wave confirmation, trusted gh resolution, complete approval records, visible references, and bounded metadata reads. Co-authored-by: Copilot App <[email protected]>
|
All six follow-ups from the latest Copilot review are now addressed in The exact-head CI and rendered documentation checks succeeded. The actual CodeQL check remains neutral because a baseline API-upload configuration is missing from its comparison; it has zero annotations, and the original checkout-alert instance is fixed without dismissal. That coverage limitation remains documented, not waived. The PR is ready for maintainer review. No merge or live cutover has been performed; #2960 stays open for the deployment and native Project auto-add steps. |
…ass (#2893) * Initial plan * build(deps): bump setuptools to 83.0.0 in uv lockfile Co-authored-by: sergio-sisternes-epam <[email protected]> * Fix skills subset installs for manifestless Git collections (#2891) * Initial plan * Fix manifestless skill collection subset resolution Co-authored-by: danielmeppiel <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: danielmeppiel <[email protected]> * test: restore complete architecture guard mutation coverage (#2892) * Initial plan * test: cover missing architecture owner guard mutations Co-authored-by: danielmeppiel <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: danielmeppiel <[email protected]> * fix(registry): exact version selectors must match published build metadata (#2894) * fix(registry): exact version selectors must match published build metadata A version selector with no range operator (e.g. 1.0.2+fa163e16) was routed through semver range matching, which ignores build metadata in every comparison. Two published builds sharing the same major.minor.patch (e.g. 1.0.2+fa163e16 and 1.0.2+863e11af) tied under that comparison, so the resolver could silently return a different build than the one requested. Check for an exact string match against the published version list before falling into range matching. Real ranges (^, ~, >=, wildcards) are unaffected, since none of them can ever equal a published version string literally. Fixes #2877 * test(registry): give each build-metadata test its own matching tarball Addresses review feedback: the fixture previously reused one tarball (declared apm.yml version 1.0.2, no build metadata) for both published VersionEntry builds. Build a distinct tarball per build whose apm.yml version matches its VersionEntry, and return the right bytes for the requested version, so the test stays accurate if package validation later cross-checks the extracted version against the resolved one. * fix(install): fail loudly when a package deploys to no target (closes #2796) (#2806) * fix(install): fail target-excluded plugin no-ops Co-authored-by: Copilot <[email protected]> * fix: preserve agent plugin recovery refs Addresses panel follow-ups to keep Agent Plugin target-exclusion recovery commands pinned to the selected ref, document the breaking no-op contract, and add real CLI lifecycle coverage for total no-op failure plus mixed-install success. Co-authored-by: Copilot <[email protected]> * test: update plugin target no-op lifecycle Addresses the CI regression from the legacy exit-0 expectation by rewriting the Agent Plugin non-Copilot target test for issue #2796: a total target-exclusion no-op now fails and commits no durable state. Co-authored-by: Copilot <[email protected]> * fix: ground plugin recovery hints in declared skills Fold #2806 advisory follow-ups: select an inventoried skill directory, quote POSIX command operands, assert mixed-install skill bytes, and document dry-run behavior. Drop release-note duplicates resurrected while incorporating main. Mutation probes reject missing outcome, inventory and quoting guards. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot <[email protected]> * docs: Add WinGet method installation (#2520) * docs: Add WinGet method installation * docs: clarify WinGet installation and upgrades Address review follow-ups with exact registry selection, prerequisites, separate Windows examples, and matching upgrade guidance. Keep Scoop and the contributor's additive distribution intent. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * chore(deps): bump svgo from 4.0.2 to 4.1.0 in /docs (#2914) Bumps [svgo](https://github.com/svg/svgo) from 4.0.2 to 4.1.0. - [Release notes](https://github.com/svg/svgo/releases) - [Commits](svg/svgo@v4.0.2...v4.1.0) --- updated-dependencies: - dependency-name: svgo dependency-version: 4.1.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(deps): preserve GitLab sparse-fetch transport (#2939) * fix(deps): preserve GitLab sparse-fetch transport Execute the shared transport plan using prepared remotes and per-attempt authentication. Gate REST on executed effective HTTPS, isolate live checkout identities, and add real-Git, architecture and mutation regression proof. Co-authored-by: Copilot App <[email protected]> * test(spec): bind GitLab sparse fetch to port and cache requirements Reuse the real-Git transport contract as executable evidence for req-sc-013 and req-rs-016, rather than waiving the Mode B conformance gate. Co-authored-by: Copilot App <[email protected]> * docs(spec): regenerate GitLab sparse conformance evidence Co-authored-by: Copilot App <[email protected]> * test(deps): align legacy REST fixtures with selected Git attempts Configure a real strict HTTPS transport plan and a typed Git failure in REST tests, and include the new sparse-plan rule in the frozen architecture inventory. Co-authored-by: Copilot App <[email protected]> * fix(deps): fold bounded sparse transport review feedback Address CEO docs and diagnostics follow-ups on PR #2939: distinguish requested SSH from effective Git rewrites, correct packaged REST guidance, repair fallback recovery advice, and expose admitted protocol switches. Add a warning regression and isolated mutation proof without changing validation auth or other provider policy. Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> * test(deps): fold GitLab sparse Copilot regression fixes Fix both legacy integration REST fixtures to execute a real HTTPS selector plan and raise only typed Git failures. Probe symlink capability rather than skipping Windows unconditionally, and qualify the canonical sparse-fetch credential documentation. Addresses Copilot review 5167472317 without changing validation auth or shared selector dedup semantics. Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> * test(deps): align clone fallback warning regression CI recovery 1: the shared custom-port warning now correctly explains disabling all fallback configuration sources and points at the live docs route. Update its older clone consumer assertion to this reviewed wording without changing runtime behavior. Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * feat(init): onboard existing local packages without rewriting source (#2937) * feat(init): onboard existing local packages without conversion Build on the read-only discovery work from #2857 while keeping apply metadata-only. Prove discover, declare, install, rerun, and collision protection through the existing APMLifecycle runner. Co-authored-by: Ron Izraeli <[email protected]> Co-authored-by: Copilot App <[email protected]> * test(onboarding): bind native collision safety to local priority Cover the existing req-pr-002 local-priority contract with the native-skill collision regression and assert its recorded diagnostic. No normative requirements or specification prose change. Co-authored-by: Copilot App <[email protected]> * fix(onboarding): reject existing collisions and report successful targets Reject conflicting pre-existing dependency slots before applying any manifest delta. Report native skill metadata from the first successful target, preserving skipped author-owned destinations. Refresh owned-collision fixtures and the architecture rule inventory. Co-authored-by: Copilot App <[email protected]> * fix(onboarding): preserve global handoff and discovery boundaries Addresses scoped panel follow-ups: preserve user scope in the separate install hint, document declined consent, and defend the existing init discovery facade and target-selection boundary without expanding admission or installation behavior. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Ron Izraeli <[email protected]> Co-authored-by: Copilot App <[email protected]> * chore(deps): bump astro from 7.2.7 to 7.3.2 in /docs (#2922) Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 7.2.7 to 7.3.2. - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro) --- updated-dependencies: - dependency-name: astro dependency-version: 7.3.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump smol-toml from 1.6.1 to 1.8.0 in /docs (#2942) Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.6.1 to 1.8.0. - [Release notes](https://github.com/squirrelchat/smol-toml/releases) - [Commits](squirrelchat/smol-toml@v1.6.1...v1.8.0) --- updated-dependencies: - dependency-name: smol-toml dependency-version: 1.8.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: establish issue-first contribution and governance policy (#2954) * docs: establish issue-first contribution and governance policy Implement the approved Phase 1 scope in #2953. Separate human scope approval from automated recommendations, document the maintainer roster and progression, and preserve technical reference material in the development guide. Live automation and backlog migration remain later phases. Co-authored-by: Copilot App <[email protected]> * docs: fix rendered OpenAPM specification link Use Astro's openapm-v01 route rather than the source filename spelling. Fix the broken link reported by the Deploy Docs workflow for #2954. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(triage): make automated recommendations advisory (#2956) * docs: establish issue-first contribution and governance policy Implement the approved Phase 1 scope in #2953. Separate human scope approval from automated recommendations, document the maintainer roster and progression, and preserve technical reference material in the development guide. Live automation and backlog migration remain later phases. Co-authored-by: Copilot App <[email protected]> * docs: fix rendered OpenAPM specification link Use Astro's openapm-v01 route rather than the source filename spelling. Fix the broken link reported by the Deploy Docs workflow for #2954. Co-authored-by: Copilot App <[email protected]> * fix(triage): make automated recommendations advisory Constrain workflow outputs to classification and processing metadata, retain legacy deduplication, and preserve human scope approval in direct consumers. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * docs: define issue-backed roadmap and release planning (#2959) * docs: establish issue-first contribution and governance policy Implement the approved Phase 1 scope in #2953. Separate human scope approval from automated recommendations, document the maintainer roster and progression, and preserve technical reference material in the development guide. Live automation and backlog migration remain later phases. Co-authored-by: Copilot App <[email protected]> * docs: fix rendered OpenAPM specification link Use Astro's openapm-v01 route rather than the source filename spelling. Fix the broken link reported by the Deploy Docs workflow for #2954. Co-authored-by: Copilot App <[email protected]> * fix(triage): make automated recommendations advisory Constrain workflow outputs to classification and processing metadata, retain legacy deduplication, and preserve human scope approval in direct consumers. Co-authored-by: Copilot App <[email protected]> * docs: define issue-backed roadmap and release planning Closes #2958. Document the approved planning model; live Project rollout remains separately gated. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(governance): require human scope and add neutral eligibility evidence (#2964) * fix(governance): require human scope and add neutral eligibility evidence Refs #2960. Keep implementation authority human, make daily docs discovery-only, and deploy compatible triage consumers with regression coverage. Co-authored-by: Copilot App <[email protected]> * fix(governance): make workflow trust and manual scope boundaries explicit Use a verified literal default-branch checkout and bind policy to its actual commit. Remove remaining docs workflow label-ratification instructions; keep companion work outside unattended runs. Co-authored-by: Copilot App <[email protected]> * fix: harden governance event and child-wave boundaries Address the six bounded review contracts: default-branch entrypoints, fresh child-wave confirmation, trusted gh resolution, complete approval records, visible references, and bounded metadata reads. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(git-env): skip the HTTP header probe for non-HTTP effective URLs (#2906) * fix(git-env): skip the HTTP header probe for non-HTTP effective URLs An `insteadOf` rule that rewrites the fetched HTTPS URL to SSH, such as `url."[email protected]:".insteadOf = https://github.com/`, made every private dependency download fail on the authenticated retry. `_validated_git_url_rewrite_policy` asked whether an HTTP `extraHeader` applied to the effective URL. With an SCP-style target that probe ran `git config --get-urlmatch http.extraHeader [email protected]:owner/repo`, which git rejects with `invalid URL scheme name or missing '://' suffix` and exit status 128, so the probe raised `GitUrlRewriteProbeError`. An HTTP header can never reach a non-HTTP transport, so the answer is already known: report no authorization and do not spawn the probe. The remaining non-zero branch now names the exit status instead of only saying the probe failed. Fixes #2898 * docs(changelog): reference the pull request number * fix(git-env): keep malformed rewrite targets on the wrapped safety error The non-HTTP guard added in the previous commit was the first urlsplit applied to the effective URL, and it is evaluated as an argument to validate_resolved_git_url_rewrite -- so before that function's try/except. An insteadOf rule whose replacement carries unbalanced brackets, such as url."https://[::1/".insteadOf, therefore surfaced a raw ValueError("Invalid IPv6 URL") instead of the module's "Unable to verify Git URL rewrite safety", and the CPython message for a bracketed non-address embeds the host unredacted. Guarding the scheme lookup cannot fail open: both callers pass the same URL straight to validate_resolved_git_url_rewrite, which re-splits it inside its try and raises the wrapped error. * fix: complete SCP rewrite consumer coverage and recovery Address panel follow-ups on PR #2906 with real Git config resolver and authenticated-retry regressions, HTTP origin controls, and probe-specific recovery guidance. Preserve unsafe-rule recovery for proven policy failures and synchronize authentication documentation. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * docs: publish the active issue-backed roadmap (#2988) Publish Project 2304 from the README and contribution entry points, replace pending-rollout prose, and preserve issue-owned scope and milestone-owned release planning. Refs #2960 Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(uninstall): preserve unmanaged skills with an empty inventory (#2947) * fix(uninstall): preserve unmanaged skills with an empty inventory * docs(changelog): link unmanaged skill cleanup fix * test(ci): repair stale daily release smoke fixtures (#2987) Cover the two registered owner guards, exercise GitLab REST through real transport selection, and align Windows fixtures with canonical home/path and deployed-file hash contracts. Preserve production behavior and strengthen regression witnesses for #2965. Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(cache): pin core.autocrlf=false on GitCache checkouts (#2982) * fix(cache): pin core.autocrlf=false on GitCache checkouts (closes #2971) Git-subpath materialization went through GitCache without the CRLF pin that bare_cache already set, so Windows hosts with system core.autocrlf=true recorded non-portable content_hash values. Add a -c pin that outranks env-frozen host config, persist it on the checkout, and rematerialize unpinned shards. Co-authored-by: Copilot App <[email protected]> * docs(changelog): cite #2982 for GitCache autocrlf pin Co-authored-by: Copilot App <[email protected]> * fix(cache): heal GitCache autocrlf pin under shard lock Defer unpinned SHA-valid eviction until _create_checkout holds the shard lock, parse the local core.autocrlf key, fail closed on land races, and document legacy lockfile regeneration. Co-authored-by: Copilot App <[email protected]> * test(cache): isolate autocrlf host fixture and fail closed Drop inherited GIT_CONFIG_NOSYSTEM/PARAMETERS before the hostile-host regression, assert system autocrlf=true, document lock --update recovery, and reject unremovable unpinned shards. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]> * chore: release v0.31.0 (#2989) Bump pyproject.toml and the apm-cli uv.lock entry to 0.31.0, and curate the dated changelog for the minor release. Current CI lint mirror passes locally; dependency versions, public registry URLs, and hashes remain unchanged. Post-merge: tag v0.31.0 to trigger the release workflow. Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * feat(autopilot): origin-aware skills with CODEOWNERS-safe review (#3003) * feat: add ORIGIN x INTENT autopilot for triage, delivery, and review Replay the actor-aware autopilot surface onto origin/main as one commit: unattended runs never assign; actor-session delivery assigns the working user; standalone review requests that user as reviewer. Schedulers own the queue scripts and fan-out; workers advise or implement one item. Keep CODEOWNERS additive and require full conversation context before new advice. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): align tags and delivery with human-scope governance Keep triage/requested as the only request trigger. status/needs-triage stays human state. Delivery still queues on status/accepted, then probes scripts/governance/eligibility.cjs and requires fresh confirmation. Unattended ORIGIN never implements. Co-authored-by: Copilot App <[email protected]> * refactor(autopilot): turn monolith orchestrators into sequencing aliases apm-issue-autopilot and batch-bug-shepherd no longer implement. They dispatch the canonical schedulers in-session, with a hard stop so triage advice is not implementation permission. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): treat FANOUT_LIMIT as concurrency, not batch size Schedulers must persist and drain the full helper-selected list, refilling a slot when it returns. Two slots is parallelism only. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): stop spam-skipping bug forms; workers own writes Sweep markup strip no longer lets a heading eat the rest of the body, so valid GitHub bug forms stay eligible. Issue and PR triage workers own comments and processing labels; schedulers only queue and fan out. Co-authored-by: Copilot App <[email protected]> * feat(autopilot): add worker activation card with optional writes Issue-triage worker declares activation_card: on. Writes default on; write: off returns the template without commenting or labeling. Co-authored-by: Copilot App <[email protected]> * feat(autopilot): move PR-review writes off the scheduler PR-review scheduler only queues and fans out. Reviewing sessions own comments, labels, and the actor-session @me reviewer request. The composed worker gets an activation card with write default on. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): gate PR review on panel-review Unfiltered open-PR listing queued every pull request. Fresh review now requires the panel-review label or an explicit named list. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): require status/accepted before PR review panel-review only requests a pass. Without status/accepted on the PR or a linked issue, the reviewing session comments, clears the request label, and stops. Co-authored-by: Copilot App <[email protected]> * refactor(autopilot): rename review panel; silent unaccepted stop Rename apm-review-panel to autopilot-pr-review-panel and keep the old name as a compatibility alias. Scheduler, worker, and panel all stop when status/accepted is missing. Scheduler and worker leave no comment; panel/worker may clear panel-review. Co-authored-by: Copilot App <[email protected]> * refactor(autopilot): review-worker is advisory; merge-worker is drive-to-merge Keep autopilot-pr-review-scheduler advisory-only. It composes autopilot-pr-review-worker and never spawn autopilot-pr-merge-worker. Summon merge-worker by name. Old panel names stay aliases. Co-authored-by: Copilot App <[email protected]> * feat(autopilot): require Autogenesis activation cards on canonical skills Enter before work, Exit after. Do not load Autogenesis path modules. Schedulers are write off; workers default write on. Co-authored-by: Copilot App <[email protected]> * refactor(autopilot): drop Autogenesis wording from activation cards Keep Enter/Exit cards. Do not name the source discipline. Co-authored-by: Copilot App <[email protected]> * feat(autopilot): declare activation_card on for every autopilot skill Aliases and canonical skills both set the flag. Canonical skills still own the Enter/Exit card body. Co-authored-by: Copilot App <[email protected]> * docs: add maintainer map for autopilot skills Internal package map only. Not product documentation. Co-authored-by: Copilot App <[email protected]> * refactor(autopilot): nest skill packages under packages/autopilot Keep leaf package names. Move the maintainer map to packages/autopilot/README.md. Point pr-description-skill deps up one more directory. Leave .agents/skills/ deploy layout flat. Co-authored-by: Copilot App <[email protected]> * feat(autopilot): require scheduler queue tables with labels Schedulers must emit keep-set and drop-set rows (number, kind, labels, rationale, slot) before any spawn. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): invocation is harness, not origin Copilot App, local, Cloud, and Remote Agent fill actor-session. agentic-workflow is only gh-aw / Actions. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): exclude completed-advice from triage sweeps Sweep fetch skips triage/recommended and status/triaged at GitHub so already-advised open issues and PRs are not re-listed. Do not write status/triaged. Named requests still fetch the one item. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): name worker sessions Domain stage #n Issue triage #2993, PR triage #1017, Issue delivery #2902, PR review #2741. No GitHub title. Do not rename in-flight sessions. Co-authored-by: Copilot App <[email protected]> * Keep issue-triage JSON internal, not on GitHub comments. The public advisory is prose plus the HTML receipt. Workers still fill schema_version 2 JSON for the parent Exit, not the issue thread. Co-authored-by: Copilot App <[email protected]> * Make triage JSON receipts optional, default off. Enter/Exit cards take json: off|on. Omitted or unknown is off, not a missing-field stop. json: on stays an internal payload; GitHub comments stay prose. Co-authored-by: Copilot App <[email protected]> * Stop the Triage Panel AW from requiring a JSON comment tail. Pass json: off into autopilot-issue-triage-worker. GitHub comments stay prose plus the HTML receipt. Co-authored-by: Copilot App <[email protected]> * Route the PR Review Panel AW through the review scheduler. Load autopilot-pr-review-scheduler (write off) then run autopilot-pr-review-worker in-thread. Do not compose the merge worker. Co-authored-by: Copilot App <[email protected]> * Auto-defer PRs with no accepted issue and thank the author. PR triage writes status/deferred unless a same-repo linked issue is status/accepted, and asks the author to open an issue first. Co-authored-by: Copilot App <[email protected]> * Queue accepted PRs for advisory review without a named list. Unsteered PR review now unions panel-review with status/accepted on the PR, then still applies the accepted gate and CODEOWNERS last-comment conditions. Named list is not required when a maintainer already accepted the PR. Co-authored-by: Copilot App <[email protected]> * Deliver accepted issues even when the author is a bot. status/accepted from a CODEOWNER is the queue gate. Author type is not a drop reason. Co-authored-by: Copilot App <[email protected]> * Remove autopilot compatibility alias stubs. Keep the nine canonical autopilot-{domain}-{stage}-{role} packages. Drop the 22 installable aliases, retarget tests to merge-worker and delivery, and refresh the lockfile. Co-authored-by: Copilot App <[email protected]> * docs: retarget leftover alias names to canonical autopilot skills PRINCIPLES.md, delivery/merge worker assets, and the cut-release eval note now name autopilot-{domain}-{stage}-{role} only. Historical CHANGELOG entries stay as written. Co-authored-by: Copilot App <[email protected]> * style: ruff-format autopilot unit tests after main merge Co-authored-by: Copilot App <[email protected]> * chore: refresh lock deployment hashes after alias-name retarget Co-authored-by: Copilot App <[email protected]> * fix(autopilot): align review sweep, auto-defer, and lock orphans Copilot App queue-open now unions panel-review with status/accepted on the PR. PR triage auto-defers only when neither the PR nor a linked issue is accepted. Drop deleted alias packages from the lockfile and retarget merge-worker eval fixtures. Co-authored-by: Copilot App <[email protected]> * fix(lock): rewrite deployed test-coverage-expert instruction link Install replay retargets the relative markdown link from .github/agents to .apm/instructions. The committed copy still used the source-relative path, which failed APM Self-Check drift. Co-authored-by: Copilot App <[email protected]> * fix(autopilot): sole-assignee claim and trusted gh lookup Actor-session delivery continues only when @me is the sole human assignee after add, and re-checks before implement or PR. Triage queue helpers resolve gh through get_gh_executable so a project-controlled binary is never used. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]> * perf(cli): lazy-load heavyweight command modules (#3001) * perf(cli): lazy-load heavyweight command modules Defer install, audit, pack, marketplace, uninstall, update, and prune until the matching verb is dispatched so apm --help, apm doctor, and apm config get no longer import those graphs. Closes #2996 Co-authored-by: Copilot App <[email protected]> * docs(changelog): link lazy CLI dispatch to #3001 Co-authored-by: Copilot App <[email protected]> * fix(cli): freeze lazy verbs and keep completion light PyInstaller cannot follow importlib string paths, so collect apm_cli.commands into hiddenimports. Complete from stubs, match stub short_help to the real command, and advertise doctor --help. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: Daniel Meppiel <[email protected]> * fix(alias): reject path-traversing dependency aliases — fixes #2900 (#2901) * fix(alias): reject path-traversing dependency aliases Aliases were only matched against a lax character regex, letting values like "..", "./x", or "foo/../bar" escape apm_modules at download and integrate time. Now validating every parsed alias through path_security's segment checks and guarding the resolved install path inside the download/integrate phases. Adds unit coverage for traversal and safe aliases. * fix(alias): surface friendly error for traversal aliases Wrap validate_path_segments in parse_alias_override so '.'/'..' aliases translate PathTraversalError into the existing allowed-character message instead of leaking a low-level technical error. Strengthen traversal tests to assert the friendly message. * test(alias): prove install-phase symlink escape is blocked A valid alias like 'safe-name' passes parse-time validation, but apm_modules_dir/safe-name can itself be a symlink pointing outside apm_modules_dir. ensure_path_within is the only guard that resolves symlinks before containment (download.py:65, integrate.py:622); this test proves the escape raises PathTraversalError and never writes outside the managed tree. * test(alias): trap ensure_path_within guards end-to-end at install tier The parser rejects traversal aliases (parse_alias_override), and the ensure_path_within containment guards exist at download.py:65 and integrate.py:622 as the defense-in-depth last line. But no test drove those guards through the real phase entry points -- the PR "Scenario 4" claim (install path can never escape apm_modules even if the parser is bypassed) was proven only at unit tier. Add install-tier regression traps that route malicious aliases through the actual phase run() functions: - tests/red_team/install/test_alias_path_escape.py * download.run() rejects a '..' traversal alias and a symlink that resolves outside apm_modules_dir via PathTraversalError, asserting no download bytes land. * integrate.run() rejects the same two vectors before materialization. * Safe-alias controls confirm no false positive. - tests/unit/test_registry_entry_alias_traversal.py * Covers the secondary parse_registry_object_entry alias validation (registry_entry.py:86): regex layer (%2e%2e) and validate_path_segments layer ('..', 'pkg/..'), plus a safe-alias affirmative control. * Refactor install path handling for dependencies Co-authored-by: Copilot Autofix powered by AI <[email protected]> * fix(alias): centralize safe destinations without restricting sources Address the PR #2901 panel and Copilot follow-ups: route all alias ingress and materialization through existing owners, reject root-equal destinations, preserve local sibling sources, and defend real reinstall metadata and hashes with regression and architecture tests. Include actionable diagnostics and migration guidance. Co-authored-by: Copilot App <[email protected]> * fix(alias): preserve normalized roots and legacy cache preflight Address round-two architecture/security and lifecycle findings. Compare both roots through path_security, give safe alias recovery guidance, and preserve existing legacy-plugin validation before alias-aware resolution can normalize cached files. Main passes the legacy missing-metadata cases; added preflight keeps that behavior. Windows prefix and legacy-preflight mutation controls fail with guards removed. Co-authored-by: Copilot App <[email protected]> * fix(alias): preserve remote source anchors and cache replacement Keep authenticated remote coordinates separate from flat aliases. Inject the existing read-only legacy cache admission at actual reuse after canonical fetch decisions, not preparation; retain same-ref failure and transactional replacement. Extend real resolver and CLI lifecycle contracts with aliased remote siblings and invalid-cache ref changes. Mutation controls detect both source-anchor regression and misplaced or missing admission. Co-authored-by: Copilot App <[email protected]> * fix(alias): preserve placement and current ref replay after install Continue the existing PR #2901 CI recovery without resetting its run. Preserve the recovered implementation and review folds: durable alias projection, contained alias scanning, specification conformance, and current-remote ref observations after successful checkout. Original contributor and follow-up commits remain in the lineage. Co-authored-by: Copilot App <[email protected]> * test(cache): exercise stale bare fallback under corrupt receipts The mutation gate showed the previous fixture passed even when receipt handling was removed because no bare-cache directory existed. Materialize the canonical shard directory so the stale-ref fallback is reachable and the regression fails without the receipt guard. Production code is unchanged. Co-authored-by: Copilot App <[email protected]> * test(lockfile): declare absent alias in dev dependency fixtures Continue CI recovery2 after Linux shard2 exposed four generic Mock dependency references whose undeclared alias attribute became another Mock. Model the real unaliased DependencyReference default explicitly instead of weakening production alias validation. Co-authored-by: Copilot App <[email protected]> * fix(spec): preserve published alias schema identities Keep existing public v0.1 schemas byte-identical and select independent v0.1.41 schemas for alias validation. Accept the new exact manifest ID through the existing contract owner while retaining old-ID compatibility and fail-closed unknowns. Co-authored-by: Copilot App <[email protected]> * fix(alias): clarify compatibility and recovery after main integration Fold specification editorial fixes, keep the unshipped security note under Unreleased, document schema opt-in compatibility, and defend actionable diagnostics with regression assertions. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * fix(ci): repair advisory locks and platform regressions (#3021) * fix(ci): repair advisory locks and platform regressions Regenerate advisory workflow metadata without changing runtime pins. Preserve root-local discovery scope during scratch drift replay and make the Windows alias fixture assert the on-disk directory name. Add source-freshness and replay regression coverage. Co-authored-by: Copilot App <[email protected]> * fix(ci): honor pinned workflow compiler and harden regression fixtures Recompile PR review with gh-aw v0.87.8 and verify the generated banner against the repository pin. Set explicit package deployment defaults and assert resolver initialization, isolate symlink-only prerequisites, and prove workflow hashes normalize LF, CRLF, and CR input. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]> * chore(deps): bump gitpython from 3.1.58 to 3.1.59 (#2921) Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.58 to 3.1.59. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](gitpython-developers/GitPython@3.1.58...3.1.59) --- updated-dependencies: - dependency-name: gitpython dependency-version: 3.1.59 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump js-yaml from 4.3.1 to 4.3.2 in /docs (#2920) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump devalue from 5.8.1 to 5.9.2 in /docs (#3019) Bumps [devalue](https://github.com/sveltejs/devalue) from 5.8.1 to 5.9.2. - [Release notes](https://github.com/sveltejs/devalue/releases) - [Changelog](https://github.com/sveltejs/devalue/blob/main/CHANGELOG.md) - [Commits](sveltejs/devalue@v5.8.1...v5.9.2) --- updated-dependencies: - dependency-name: devalue dependency-version: 5.9.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(build): support setuptools 83 in binary packaging Require PyInstaller 6.17.0 and lock its minimum compatible hooks to avoid altgraph importing the removed pkg_resources module. Preserve the setuptools 83.0.0 security upgrade. Co-authored-by: Copilot App <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: sergio-sisternes-epam <[email protected]> Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Nadav Yogev <[email protected]> Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Gijs Reijn <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ron Izraeli <[email protected]> Co-authored-by: Arnaud <[email protected]> Co-authored-by: Marco Frömbgen <[email protected]> Co-authored-by: Sergio Sisternes <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]>


Refs #2960. Explicit bounded scope approval.
Changes
gh, required exclusions, visible-only references, and bounded/cached metadata reads.Validation
The integrated focused suite passed 224 tests, including the 36-scenario Node suite; the final workflow-permission checks also passed. Full lint/architecture/safety mirror and generated capability/hash parity passed. Actual isolated content comparisons include the changed child-wave contract against previous/no-skill controls. Existing 20-query routing evidence remains valid; descriptions and routing did not change. Skill budgets and three design diagrams checked.
At
343e1770c1d025b58cbe9f588064ab2e79817a7c, all seven workflow runs succeeded; Docs built successfully and deployment was skipped. The actual CodeQL scanner completed neutral, not clean-green, with zero annotations: a missing baseline API-upload<default>configuration prevents full alert comparison. The checkout alert remains fixed without dismissal; CodeQL configuration is unchanged. All six reported review threads are resolved, with no new Copilot findings. Human review and merge remain separate maintainer decisions.Local docs build remains blocked by unavailable locked Astro 7.3.2; no downgrade made.
Reproduce the core evidence checks with
node --test tests/scripts/governance_evidence.test.cjsanduv run --frozen --extra dev pytest -q tests/unit/test_governance_evidence.py tests/unit/test_governance_consumers.py tests/unit/test_triage_advisory.py tests/unit/test_triage_panel_lock.py.Rollout boundary
This is evidence, never reusable implementation permission: snapshots cannot recover deleted withdrawals. The advisory verifies that
mainis the default branch and executes literal-main code/policy. Manual rechecks userepository_dispatch, not a branch-selectable workflow; queue reporting verifies GitHub metadata and consumes no artifacts. It starts only after default-branch deployment and is not required. Keep Daily Docs disabled until deployed capabilities are verified and a human resumes it. Historical marker retirement and native Project auto-add remain separate steps; #2960 stays open.No merge, branch-protection change, historical approval restoration, or live label migration is included.