Skip to content

feat(skills): release-acceptance skill for pre-tag red-team and UX acceptance - #4144

Merged
Daniel Meppiel (danielmeppiel) merged 17 commits into
mainfrom
danielmeppiel-release-acceptance-skill
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 17 commits into
mainfrom
danielmeppiel-release-acceptance-skill

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds the maintainer skill release-acceptance. It runs exploratory red-team and UX acceptance on the exact release candidate before a tag. It is the discovery engine. The test-corpus program is the regression net. The skill feeds that program in two ways:

What it does, phase by phase:

  1. Ground. Pins the SHA, checks the binary version, and loads the program journey catalogue. It reads tests/lifecycle/journeys/index.yaml or an operator-supplied --catalog. It keeps no embedded copy and refuses with "catalogue unavailable" when neither exists.
  2. Recall. Reads Atlas lessons and decisions and condenses them into a one-page wisdom block for every brief.
  3. Plan. Ranks journey x lens pairs by risk: golden journeys, changed owners, then recurring breaks.
  4. Walk. Runs waves of at most 2 workers in hermetic worlds. It captures stdout, stderr and the exit code for every step, lints every line, executes every hint and docs link the CLI prints, and repeats steps in sibling cells.
  5. Verify. A cold verifier reproduces each finding with its own repro, preferably on another model family.
  6. Synthesize. Applies severity and routing, writes the failing-before briefs and computes the gate row. A human checkpoint comes before anything is published.
  7. Persist. Writes Atlas experience and break-pattern drafts for the designated Atlas writer.

recheck mode re-verifies open findings on a moved head.

This encodes the 0.37 red-team lessons, Atlas lessons/2026-11-20-red-team-method.md:

  • plain journeys plus hint execution found the most bugs;
  • every verdict is pinned to a SHA;
  • a second-family verifier confirms each finding;
  • workers are capped at 2 slots, with a load gate;
  • briefs use neutral QA wording, enforced by brief_lint.py.

Contents:

  • .apm/skills/release-acceptance/:
    • SKILL.md (209 lines, description 966 chars);
    • references: lenses, walker brief, verifier brief, rubric, atlas protocol;
    • the report template;
    • evals: 20 trigger cases and 4 content scenarios;
    • six non-interactive scripts. They emit JSON on stdout and diagnostics on stderr, and support --help.
  • .agents/skills/release-acceptance/, the deployed copy, plus apm.lock.yaml and the refreshed cut-release copy.
  • tests/unit/test_release_acceptance_scripts.py: 26 tests covering line lint, hints, the catalogue loader, ledger dedupe, the gate row, recheck, coverage and brief lint.
  • cut-release Phase 2 gets a single link line to the latest acceptance report.

Issue and approved scope

Issue: Fixes #4134

Human scope-approval comment: the apm-scope:v1 record on #4134, amended in issuecomment-7034253724 to add tests/unit/test_release_acceptance_*.py and done-when (f).

Does this PR complete the issue, or what remains? Done-when (f), the real recheck run on the 0.37 release PR, happens after merge, by design of the record.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally (targeted only, per the host capacity rule)
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Evidence:

  • pytest tests/unit/test_release_acceptance_scripts.py -p no:xdist: 26 passed (local, at 5ad14dc).
  • uvx [email protected] check and ruff format --check, run over the skill scripts and the new test: clean. CI ruff does not cover .apm/skills/**, so this was run explicitly.
  • pytest tests/quality -p no:xdist: 205 passed, 1 failed. The failure is test_ci_topology::test_lifecycle_shards_collect_exact_required_union, a 60-second collection timeout under host load. It is unrelated to this change and is expected to pass in CI.
  • Deploy and dry run (cloud lane, head be029ca):
    • Deploy: uv run apm install refused only .agents/skills/cut-release/* (no trustworthy local deployment baseline); uv run apm install --force deployed the copy and lock (5fc7fe8). Later redeploys used plain uv run apm install with no --force: 27a805f (rubric/lenses/walker-brief) and 5ecf883 (merge of main ab6d005 + journeys.py index.yaml field names). uv run apm audit --ci: exit 0, all 11 checks passed each time. .agents/skills/apm-lifecycle-tests/SKILL.md and .github/agents/test-coverage-expert.agent.md present after the merge.

    • At be029ca (main 041eff6 merged in b8f16bb; all 10 copilot review threads folded in be029ca with 14 failing-before tests; redeployed with uv run apm install --force limited to .agents/skills/release-acceptance/ after a stale-baseline refusal, then a plain uv run apm install is clean): uv run --extra dev pytest tests/unit/test_release_acceptance_scripts.py -q: 51 passed. uvx [email protected] check and format --check on .apm/skills/release-acceptance/scripts tests/unit/test_release_acceptance_scripts.py: All checks passed / 7 files already formatted. uv run --extra dev ruff check src/ tests/: All checks passed. uv run --extra dev ruff format --check src/ tests/: 2400 files already formatted. uv run apm audit --ci: exit 0. Earlier lane fixes: 95e5eb6 (gate test aligned with PENDING-VERIFICATION, ruff 0.15.12 format), 98e49df (RUF059), 2f707e1 (unwrap after a colon). Smoke on the dry-run repros in a world from world.py: J01.5 commits with rc 0 and no signature; J01.3 hints are apm plugin init, apm marketplace init and the docs root; J01.4 has no duplicate-line lint on wrapped warning tails.

    • CI run 44705697333 "Build & Test Shard 2 (Linux)" (27a805f) failed on 2 tests, neither touched by this PR: tests/unit/install/test_architecture_invariants.py::test_no_install_module_exceeds_loc_budget (phases/lockfile.py 1017 > 1000; reproduces locally with src/ and tests/ identical to main ab6d005) and tests/unit/deps/test_git_reference_resolver.py::TestResolveCommitShaForRef::test_best_effort_rate_limit_falls_through_without_retry_wait (passes locally; CI-only).

    • Dry run: mode full, J01 + J03, lenses L1 + L2, 1 slot, operator catalogue /tmp/ra/catalog.json (verbatim J01/J03 subset). Candidate 58f444589edaf3b8e3b82d599cda9c73316d82f7 (merge-base with main at the time; no src/ diff), apm --version = 0.37.0 (5fc7fe8). P4 verifier and Atlas I/O skipped in dry run; run output kept outside the repo.

      Gate SHA Verdict Open blockers Unverified blockers Verified without lifecycle test
      exploratory acceptance: no open verified blocker on the exact SHA 58f4445 NO-GO RA-009 RA-009 none

      Findings: 12 (1 blocker, 8 should-fix, 3 nit), all unverified (P4 skipped); 11 also reproduce on v0.36.1. Coverage probed ratio 0.933 (23 pass, 19 fail, 3 not-covered). Gate row not approved (B10 pending).

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md
  • N/A -- internal-only change (maintainer skill; nothing user-visible).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

…X acceptance

Discovery pass on the exact release candidate: walks the program journey catalogue (tests/lifecycle/journeys/index.yaml or --catalog), executes every printed hint, cross-family verification, one release-gate row, failing-before briefs for apm-lifecycle-tests, Atlas recall and draft write-back. Deterministic scripts with unit tests; cut-release links to it.

Refs #4134

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…-existing; policy stays on

Steward review of #4144: pre-existing trust/integrity/credential findings block the cut and route privately to the security lead and coordinator; L4 and walker briefs keep policy on.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…field names

key_lines/forbidden_lines/kind/argv from tests/lifecycle/journeys/index.yaml (#4152) normalize to the same record as devx-journeys.json.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
world.py scrubs host git config, askpass and identity, maps a fake host to local bare repos, and puts the candidate apm first on PATH; capture.py extracts verb and wrapped hints, ignores help tables and help duplicates, resolves the docs root; findings.py dedupes one defect across journeys, adds verify and set, and reports PENDING-VERIFICATION; P0 accepts an in-tree build with no src diff.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…TION and format scripts

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…icates on logical lines

Smoke regression from lane 992e7a0f: init Next Steps hints inside Rich panel rows were dropped; wrapped tails of distinct warnings were flagged as duplicates.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
… (RUF059)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Judge a wrap on the previous physical line and keep list items separate,
so tails of distinct warnings wrapped after 'Supported keys:' are not
flagged as duplicate lines.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…e tag

Daniel decision 10:23 via the steward: no advisories; a security finding is never an N-1 known issue.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>

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.

🟡 Changes recommended

Unresolved critical issues expose maintainer credentials, risk modifying real profiles, and allow release gates to report GO with stale or missing evidence.

10 open issues
What changed in this PR

Adds the release-acceptance maintainer skill for pre-tag exploratory testing of APM release candidates. It complements the lifecycle regression suite by producing independently verified findings, failing-before test briefs, and a release-gate report.

Changes:

  • Defines full and recheck workflows, worker briefs, severity rules, reporting, and Atlas handoff.
  • Adds six helper scripts, unit coverage, and trigger/content evaluation scenarios.
  • Deploys the skill, refreshes lockfile metadata, and makes cut-release consult its acceptance report.
File Description
tests/​unit/​test_release_acceptance_scripts.py Tests capture, worlds, catalogues, ledger operations, and brief lint.
apm.lock.yaml Updates lock format, deployment records, and hashes.
.apm/​skills/​release-acceptance/​SKILL.md Defines the acceptance workflow and operating rules.
.apm/​skills/​release-acceptance/​scripts/​world.py Creates isolated execution environments.
.apm/​skills/​release-acceptance/​scripts/​load_gate.py Checks host load before worker launches.
.apm/​skills/​release-acceptance/​scripts/​journeys.py Loads and normalizes journey catalogues.
.apm/​skills/​release-acceptance/​scripts/​findings.py Manages findings, coverage, verification, and gate rows.
.apm/​skills/​release-acceptance/​scripts/​capture.py Captures command evidence and extracts hints.
.apm/​skills/​release-acceptance/​scripts/​brief_lint.py Checks worker-brief vocabulary.
.apm/​skills/​release-acceptance/​references/​walker-brief.md Templates journey-worker instructions.
.apm/​skills/​release-acceptance/​references/​verifier-brief.md Templates independent verification.
.apm/​skills/​release-acceptance/​references/​rubric.md Defines severity, release decisions, and routing.
.apm/​skills/​release-acceptance/​references/​lenses.md Maps acceptance checks to journeys.
.apm/​skills/​release-acceptance/​references/​atlas-protocol.md Defines lesson recall and draft handoff.
.apm/​skills/​release-acceptance/​evals/​trigger-evals.json Adds skill-dispatch evaluation cases.
.apm/​skills/​release-acceptance/​evals/​README.md Documents evaluation procedure and status.
.apm/​skills/​release-acceptance/​evals/​content-evals.json Adds four workflow evaluation scenarios.
.apm/​skills/​release-acceptance/​assets/​report-template.md Structures acceptance reports and evidence.
.apm/​skills/​cut-release/​SKILL.md Requires consulting a GO acceptance report.
.agents/​skills/​release-acceptance/​SKILL.md Deploys the acceptance workflow.
.agents/​skills/​release-acceptance/​scripts/​world.py Deploys environment creation.
.agents/​skills/​release-acceptance/​scripts/​load_gate.py Deploys host-load checks.
.agents/​skills/​release-acceptance/​scripts/​journeys.py Deploys catalogue loading.
.agents/​skills/​release-acceptance/​scripts/​findings.py Deploys ledger and gate operations.
.agents/​skills/​release-acceptance/​scripts/​capture.py Deploys command capture and hint extraction.
.agents/​skills/​release-acceptance/​scripts/​brief_lint.py Deploys brief vocabulary checks.
.agents/​skills/​release-acceptance/​references/​walker-brief.md Deploys the journey-worker template.
.agents/​skills/​release-acceptance/​references/​verifier-brief.md Deploys the verification template.
.agents/​skills/​release-acceptance/​references/​rubric.md Deploys severity and routing rules.
.agents/​skills/​release-acceptance/​references/​lenses.md Deploys journey-check mappings.
.agents/​skills/​release-acceptance/​references/​atlas-protocol.md Deploys Atlas handoff guidance.
.agents/​skills/​release-acceptance/​evals/​trigger-evals.json Deploys dispatch evaluation cases.
.agents/​skills/​release-acceptance/​evals/​README.md Deploys evaluation guidance.
.agents/​skills/​release-acceptance/​evals/​content-evals.json Deploys workflow evaluation scenarios.
.agents/​skills/​release-acceptance/​assets/​report-template.md Deploys the acceptance report template.
.agents/​skills/​cut-release/​SKILL.md Deploys the acceptance-report prerequisite.

Review effort: Balanced

Comment thread .apm/skills/release-acceptance/SKILL.md Resolved
Comment thread .apm/skills/release-acceptance/SKILL.md Resolved
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
- findings.py: bind the ledger to the findings SHA; gate-row returns
  PENDING-VERIFICATION with stale_sha when asked about another SHA;
  recheck must cover every open, verified, still-open or changed
  finding and refuses otherwise without moving the SHA; non-add
  commands exit 2 on a missing ledger; verify keeps the verifier's
  observed and repro and records the walker's originals in history.
- world.py: scrub GITLAB_APM_PAT, ARTIFACTORY_APM_TOKEN and the
  GITHUB_APM_PAT_ prefix; pin CLAUDE_CONFIG_DIR, HERMES_HOME,
  XDG_DATA_HOME and XDG_CACHE_HOME to the world home; scrub cowork,
  cache, temp and marketplace path overrides.
- capture.py: decode bytes from TimeoutExpired; unique <step>.<n> logs.
- journeys.py: --ids recomputes counts through the same helper as load.
- SKILL.md: keep the claims-to-fix exception for known issues; the set
  example passes --ledger.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 20e01b4 into main Nov 20, 2026
30 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-release-acceptance-skill branch November 20, 2026 10:21
@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 20, 2026
Takeshi Masukawa (takeaship) pushed a commit to takeaship/apm that referenced this pull request Nov 20, 2026
…nterpreter

Earlier tests on the same xdist worker leave module state that makes the
in-process frozen global install refuse Codex admission on Windows units
after the microsoft#4144 shard reshuffle. Each case now re-runs its own node id in a
new interpreter so the scenario starts from a clean process. The polluter
root cause follows separately.

Co-authored-by: Copilot App <[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.

Release acceptance skill: red-team and UX acceptance on the release candidate

2 participants