Skip to content

fix(governance): require human scope and add neutral eligibility evidence - #2964

Merged
Daniel Meppiel (danielmeppiel) merged 3 commits into
mainfrom
danielmeppiel-governance-automation-rollout
Sep 12, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 3 commits into
mainfrom
danielmeppiel-governance-automation-rollout

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #2960. Explicit bounded scope approval.

Changes

  • Add one trusted-base human-scope parser and a deterministic, always-neutral PR eligibility advisory. Cover real issue references, withdrawals, private tracking, forks and merge queues without executing contributor code.
  • Make Daily Docs discovery-only with no issue/PR creation or auto-merge capability. Require fresh human confirmation before bug-fix/driver or docs-companion implementation; preserve other runs' markers.
  • Deploy canonical triage writers and compatibility reads, classification aliases, affected installed hashes, and four natively regenerated gh-aw v0.87.8 locks without dependency, model, or action/container pin changes. Remove the remaining docs workflow's label-ratification instructions and update contribution guidance.
  • Fold all six review findings: default-branch-only privileged entrypoints with a permissionless queue signal, actual child-wave human checkpoints, trusted external 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.cjs and uv 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 main is the default branch and executes literal-main code/policy. Manual rechecks use repository_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.

…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]>
@danielmeppiel

Daniel Meppiel (danielmeppiel) commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Governance automation rollout - issue #2960

Design before implementation. Base: 4aaa73c.
Scope authority: lead's bounded authorization recorded in issue #2960.
Parent owns live metadata. This work only publishes its own code PR and design.

Intent and boundary

Make existing automation distinguish evidence and advice from human permission.
The eligibility capability reports deterministic metadata evidence; it never
authorizes implementation, judges qualitative scope match, accepts/closes PRs,
changes branch protection, or executes contributor code. Existing implementation
consumers stop for fresh responsible-human confirmation when evidence is not
durable. This is an advisory rollout, not a permission platform.

Component diagram

flowchart 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;
Loading

Sequence and single writer

sequenceDiagram
  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
Loading

Composition

flowchart 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)]
Loading

All new authority code is a repository-local maintainer tool, not a new
distributable skill or package. No new external modules or dependency edges.
Existing package dependencies stay pinned and unchanged. Standalone APM-specific
skills probe the target repository's trusted governance tool and stop if absent;
they do not ship or invent a second roster. Test/eval assets stay in tests,
outside distribution boundaries. Generated files are derived only from affected
sources with existing integration machinery.

Module Mode Interface / trigger Output
Governance roster local sibling Existing GOVERNANCE maintainer table; narrow machine-readable role cell Human login to exact remit, reset floor
Authority reader local sibling Base governance + issue comments + nominated approval link Strict evidence state, author, record id; never permission
Eligibility local sibling PR metadata and current matching issue evidence Neutral advisory and explicit unknown/error
Queue signal local sibling, FORCED merge_group without permissions or code loading Run ID consumed by default-branch workflow_run reporter
Triage labels inline existing asset Sweep or explicit retriage Canonical additive classification/processing only
Batch shepherd local sibling existing skill, BOTH Existing bug-queue requests Deduped candidates; fresh human gate before fix/drive
Docs sync local sibling existing skill, BOTH Existing docs-impact requests Advice; label never ratifies companion work
Daily docs local sibling existing gh-aw, FORCED Existing daily/manual trigger Read-only discovery and human handoff; no issue/PR creation capability
CLI inspector local sibling existing gh-aw, FORCED Existing timer/manual trigger type/automation + area/cli issue classification

Strict record format (issue comments only)

The responsible human posts one new, unedited comment:

<!-- apm-scope:v1 -->
Decision: approve
Area: project
Scope: Complete the bounded governance automation rollout in #2960.
Done when: Focused regressions and a reviewable advisory-only rollout PR.
Out of scope: Merges, branch protection, unrelated backlog approval.
Review contact: @danielmeppiel

Area is exactly project or registry-public-api. The latter is an explicit
scope assertion, never inferred from a registry/MCP/OCI label. Nadav can supply
evidence only for this exact remit; cross-area qualitative judgment remains
human. Review contact must be a responsible maintainer in that remit; naming
someone is not proof of their availability. The approving human can name
themselves; another contact requires deliberate confirmation.

Withdrawal uses the same marker with Decision: withdraw, Area, and Reason.
All records are append-only by convention: edits invalidate evidence, not
replace it. Approval references are explicit comment URLs. A missing/deleted
referenced comment cannot fall back to another approval. The reset marker
<!-- apm-governance-reset:2026-09-12:acceptance --> and a fixed new-record
cutoff on 2026-09-12 prevent older acceptance from reappearing even if the
reset comment is removed. No bot, association string, label, milestone, review,
or generic agreement is a grant.

Honest revocation boundary

A current API snapshot cannot reconstruct deleted withdrawal comments.
Therefore this first rollout NEVER emits an effective-approval/authorized
boolean or a green approval conclusion. A syntactically valid record is
evidence only: record-present for an issue probe or ordinary valid PR,
not machine permission. Edits/deletes,
unstructured historical approvals, absent records and incomplete history
require evidence/human review. Existing implementation consumers must obtain a
fresh responsible-human checkpoint; they cannot turn this advisory into a gate.
Daily scheduled discovery must not create implementation PRs merely because a
record is present. This conservative limitation is accepted by parent, rather
than adding an event-sourced permission ledger.

Issue traceability and security

Parse actual same-repository issue references from the PR body; closing
keywords are optional. Validate API object is an issue, not a PR. Do not confuse
qualified upstream references or arbitrary numbers with local issues. Multiple
and partial links are candidates, never qualitative proof of scope matching.
Stacked/fork PRs use the target repository's default-branch authority, never
the PR base branch if it is an untrusted feature branch. Merge queue membership
comes from GitHub metadata, not a single guessed PR number.

Security claims route to confidential human review, not missing-public-issue
status. No private URL or body is included in public output. A maintainer's
non-sensitive attestation can confirm private coordination without publishing
the tracker. Existing confidential cases are not hardcoded as public issues.
Trivial typo/broken-link claims retain standing preapproval with real lightweight
issue traceability; deciding whether the diff is truly trivial stays human.

The workflow verifies through the repository API that main is the default
branch, checks out literal main with persisted credentials disabled, and
derives the exact checked-out commit for implementation and policy. A rename
fails closed pending maintainer review. It runs no dependency installation and requires only
metadata reads and neutral-check writes. No head code, head action, head config,
PR shell interpolation, or privileged fork artifact is used. Issue/comment
updates recompute only linked PRs; no label events, bot panels or LLM fan-out.
All pagination/API/permission failures become unknown/error, never empty success.
New workflow does not operate until merged onto the default branch.

Pattern and compliance decisions

R3 EXTRACT duplicated human-authority interpretation into one deterministic
owner. No R1 split/new runtime panel: existing triggers remain. A6 EVENT-DRIVEN
plus A9 SUPERVISED EXECUTION; existing bug saga retained with human interlock.
A2 implementation pipeline: design -> independent bounded edits -> integration
-> review -> publish. Inherited anti-patterns: STAGE COLLAPSE, INFINITE
PLANNING, TASKS WITHOUT PLAN, IMPLICIT TRIGGER COUPLING, VERIFY-WITH-LLM-ONLY.
B4 PLAN MEMENTO and B8 ATTENTION ANCHOR: reload this packet at delegation and
module boundaries. S7 metadata/script bridge; S4 deterministic regression gates;
B10 human confirmation on permission. No authority inferred from personas.
No alternative architecture in tension; a durable permission ledger is rejected
as outside this advisory scope, not silently approximated.

PROSE: lazy shared asset, bounded existing skills, composed local authority,
neutral-only safety boundary, human governance above agent prose. SRP: parser
owns records; API adapter owns completeness; workflow owns publication. Regression
plus static workflow/consumer tests protect ownership. No README edit.

Targets: common-only for skill contracts; gh-aw trigger surface for existing
compiled workflows; GitHub Actions and its metadata API for deterministic
eligibility. Existing Copilot binding unchanged. Adapter assets read before
codegen. No model, engine, dependency or pin changes.

Cost contract

Stance: balanced; no operator cap. Eligibility and authority use zero LLM
calls/tokens/dollars in S (one PR), M (known-module PR), and L (repo-wide
references/queue) workloads. API cost scales with metadata pages and linked
open PRs, not source size. No new automatic fan-outs. Existing manual and gh-aw
consumers retain model/role bindings; added preflight is deterministic, output
S, 1-3 reads plus pagination. Existing LLM prefix band unchanged M/L, variable
suffix holds metadata; no dynamic stable-prefix timestamps or model changes
(B13). Trim changed prose rather than inflate it (B14).
No new per-harness model price is quoted: Copilot adapter's 2025-11-14 pricing
footnote is stale, and existing complete-workflow cost is not measured here.
Incremental eligibility LLM runtime is exactly 0; authoring/review/evals are
one-off session costs, not deployed runtime. Existing consumer prompt/tool
token deltas and model cache-hit ratios remain unmeasured.

Evals and validation plan

Baseline already run: 26 existing triage/lock/shepherd contract tests passed.
Add deterministic record/reference/event/fork/queue/permission/pagination
regressions and emitted-capability parity. Scenarios: current valid human vs bot/
label/old reset; ordinary partial vs upstream/PR reference; private/trivial/
withdrawn/edited/deleted evidence. Do not label fixture checks as LLM evaluation.

Before shipping changed skill prose: persist content eval scenarios and run
isolated with-updated-skill, without-skill controls, and previous-version baseline
responses. Assess actual authority/dedup deltas, not merely substrings. Supply
the explicitly triggered reference when evaluating a progressively disclosed
command, and preserve the body-only refusal trace too. Persist raw responses. For changed
dispatch descriptions, 20 queries (10 positive/10 near miss), 60/40 train/val,
measure actual isolated routing responses; validation threshold >=0.5 positives
and <0.5 negatives. Existing forced gh-aw triggers get actual event/compiled
capability regressions, not invented LLM dispatch traces. Real-task refinement:
read-only evaluate current #2960/new rollout PR; never dispatch live automation.
Any unavailable inference/eval capability is a disclosed ship limitation, not a
fabricated pass or silent waiver.

Ordered work

  1. Implement authority/evidence reader and neutral workflow with fixtures.
  2. Update triage/CLI/docs workflow consumers and canonical markers/aliases.
  3. Update bug/docs-sync/autopilot shared-authority checkpoints and owned markers.
  4. Regenerate only affected installed files/hashes and 4 gh-aw locks.
  5. Update approval usage and rollout docs; Project activation still awaits
    native auto-add configuration/verification. Grouping and manual ordering
    were verified by the parent and recorded in issue comment 5642592059.
  6. Run focused tests, real evaluation, bounded code/test review and fix findings.
  7. Merge fresh main; canonical full lint, architecture, YAML/path/length guards.
  8. Commit with required trailer, push own branch, concise issue-backed PR.
  9. Post design; run docs-impact assessment; inspect exact-head CI/DeployDocs;
    report deployment prerequisites and leave worktree clean. Never merge.

Implementation and verification handoff

Bounded Copilot follow-up (review comments 3994763443-3994763491)

Reopen validation for six contract gaps; no panel, factory, model, dependency,
roster, or live approval changes. The existing component/sequence diagrams
remain authoritative: all execution crosses the trusted runner and shared
authority, and only the runner publishes neutral checks.

  • Replace branch-selectable workflow_dispatch with default-branch
    repository_dispatch (pr-eligibility-recheck, positive pr_number).
    GitHub.com's current pull_request_target executes the default branch.
    Queue refs are not default-branch definitions: a minimal no-permission,
    no-checkout merge-group signal will wake the privileged default-branch
    runner via workflow_run. Only inert SHA/event metadata crosses that edge;
    no artifact or contributor code is consumed.
  • Bind the actual solution-pipeline child brief and each mutating wave to
    current shared evidence plus the responsible-human checkpoint. A persisted
    receipt alone is not a capability. Withdrawal, unavailable evidence, or
    uncertain confirmation blocks provisioning/implementation and returns a
    structured refusal to the parent.
  • Match the existing Python trusted-executable boundary in the dependency-free
    Node CLI: resolve an absolute executable from PATH outside the nearest repo/
    APM project, exclude symlink escapes into that root, and fail explicitly.
    This cross-language adapter adds no second human-authority parser.
  • Require the already-documented Out of scope field. Strip HTML comments
    before extracting any visible references while retaining upstream-caption
    cleanup; private/standing markers remain separate routing hints.
  • Bound unique issue references, pages per collection, event targets and total
    metadata requests before nested work. Initial limits: 25 references per PR,
    10 pages per collection, 100 PR targets, 500 metadata requests and 32 MiB per operation;
    overflow returns unknown/error, never a truncated record-present assessment.
    Cache successful reads within one operation, but bypass it for the final
    PR head/body refresh. Exercise all 62 currently open PRs in shared-issue
    and distinct-issue policy refreshes, plus true overflow boundaries.
    Limits are operational safety thresholds, not LLM cost caps.

Add exact boundary/negative regressions and one changed-child content case;
reuse unchanged routing evidence. Regenerate only affected installed bytes/
hashes. Re-run the canonical pre-push mirror and retain the existing CodeQL
baseline-coverage qualification. Parent owns inline replies and hosted checks.

Published head: 343e1770c1d025b58cbe9f588064ab2e79817a7c.
The parent verified all seven exact-head workflow runs successful. Docs built
successfully; deployment was skipped. Actual CodeQL scanner 103489543744 is
neutral with zero annotations and the baseline-coverage warning below.
The parent replied in-thread and resolved all six findings; no new Copilot
findings were reported. No source changes followed this verification.

Review comment Fix Regression evidence
3994763443 No privileged branch-selectable dispatch or queue definition. Default-branch repository_dispatch/workflow_run reads verified GitHub run/workflow/repository metadata; permissionless signal consumes no code/artifacts. actions:read supports those APIs. Manual dispatch and queue-provenance Node cases; exact workflow permissions and executed checkout/API-failure guards.
3994763456 Actual child gates before every provisioning/dispatch wave, resume/replan/retry, and acceptance-close. Parent persists blocked refusal and does not drive nonexistent PR fields. Two pipeline boundary/refusal regressions plus three actual content-inference arms for withdrawal/error/stale receipt/fresh confirmation.
3994763464 Absolute external gh resolution matches the Python project boundary; no ambient bare-name fallback. Nested cwd, worktree/APM roots, poisoned PATH, symlinks, missing executable and captured ghClient executable; Windows scheduling enabled.
3994763475 Approval requires nonempty Out of scope; None remains valid. Missing/empty exclusions negatives and explicit None positive.
3994763485 Strip hidden/unterminated HTML comments before all issue/approval-reference extraction; preserve caption cleanup. Hidden URLs, qualified/bare refs and approval nominations rejected; ordinary partial/caption cases retained.
3994763491 Bound references/pages/matched targets/reads/bytes before fanout. Operation-local cache never replaces final head/body refresh. Overflow is error, not partial evidence. All boundaries; full62 shared-issue refresh128 reads and distinct-issue refresh250 reads; final refresh regression.

The combined follow-up passed 224 focused Python tests, including the Node
wrapper for 36 scenarios, plus the final 10 entrypoint tests. Four deployment
hashes changed for two actual autopilot files; all four existing native gh-aw
locks and all dependency/model/action/container pins stayed unchanged.
The full canonical lint/architecture/auth/YAML/path/2100-line mirror passed
after refreshing main, before commit and push. The worktree is clean.

The implementation keeps every automated check neutral and every machine
result non-authorizing. Daily Docs retains only artifact/noop outputs, with
issue reporting disabled; human-supervised implementation is a separate run.
The compiler retains a conclusion-job issues: write permission, but neither
agent nor handler exposes issue/PR creation and all reporting switches are off.

The initial focused suite passed 217 Python tests and 27 Node scenarios.
The follow-up passed 29 focused tests, including executed default-branch and
API-failure guards; the counts overlap. Native regeneration
with the checksum-verified session-local gh-aw v0.87.8 compiler passed for all
four locks and preserved every action/container pin; 78 generation/capability
checks passed afterward. Full lint, architecture, auth, YAML, portable-path,
and 2100-line guards passed. The shared compiler installation was unchanged.

Actual isolated content comparisons cover previous, updated, and no-skill
contexts, with zero tool executions. The three original behavioral regressions
change from 0/3 desired outcomes to 3/3; the exact shared-authority probe is
available only with its declared context. Twenty description-routing queries
passed, including 4/4 held-out positives and 0/4 held-out near misses. These
are inference evaluations, not live automation runs. A conflicting hypothetical
was corrected to respect the existing supported-type gate, not by weakening
product policy. Final skill bodies are within 500 lines/5000 tokens and
descriptions within 1024 characters. All three Mermaid diagrams rendered.

Docs-impact classification exits at L1/no_change for additional corpus work:
there is no APM user-surface/schema change, and this PR already updates the
governance/contribution/development guidance. No new panel or companion PR.
The local docs build remains blocked by unavailable locked Astro 7.3.2;
no downgrade was made. Parent verification at 343e177 found all seven
workflow runs successful, including CI34669993746 and Docs34669993907.
The Docs build succeeded; deployment was skipped.

The actual CodeQL scanner check is neutral, not clean-green, with zero
annotations. The checkout alert's PR-merge instance remains fixed without dismissal.
A missing baseline API-upload <default> configuration prevents full alert
comparison; CodeQL configuration was not changed by this PR. Human PR review
and merge remain separate decisions. Successful workflow conclusions do not erase this
coverage qualification or authorize a merge.

Activation prerequisites remain explicit: deploy trusted default-branch
code before using the advisory or migrating historical markers; verify the
deployed Daily Docs capabilities and obtain a separate human resumption;
finish native Project auto-add configuration and verification. Grouping,
filters, ordering, and preserved historical items were verified by the parent.
No merge or branch-protection change is part of this handoff.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 High severity · 3 Medium severity

Open findings (6)
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.

Comment thread .github/workflows/pr-eligibility.yml Resolved
Comment thread scripts/governance/eligibility.cjs Resolved
Comment thread scripts/governance/authority.cjs Resolved
Comment thread scripts/governance/eligibility.cjs Resolved
Comment thread scripts/governance/eligibility.cjs Resolved
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

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]>
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

All six follow-ups from the latest Copilot review are now addressed in 343e1770c1d025b58cbe9f588064ab2e79817a7c, with regression evidence and in-thread replies. All seven review threads are resolved. This supersedes my earlier hold-merge note about unfinished fixes.

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.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 6f3dd39 into main Sep 12, 2026
27 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-governance-automation-rollout branch September 12, 2026 12:14
Copilot AI mentioned this pull request Sep 15, 2026
2 of 5 tasks
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Sep 18, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants