Repository navigation
Description
In one sentence: a nightly CI job runs the real Claude Code and GitHub Copilot CLI after each APM step and checks they load the exact version APM installed, through upgrade, local edit and rollback.
Why
APM installs skills and plugins into harnesses (the coding agent tools APM configures, such as Claude Code or GitHub Copilot). Its tests check that files land on disk and match the lockfile (apm.lock.yaml, the record of exact installed versions). But a harness can still ignore a correct file: untrusted folder, blocking company setting, stale cache.
Persona. Diego's team uses Claude Code and Copilot. He upgrades the shared superpowers plugin to v2, a teammate hand-edits a skill, then v2 breaks and Diego rolls back. Does each harness run v2? Is the edit visible? After rollback, is everyone on v1? APM shows what it wrote, not what the harness loaded.
Why now. Vendors now let companies lock harnesses down with managed settings (admin-owned settings files) and approved plugin marketplaces (catalogs of trusted plugins). A strict setting can make a harness silently drop a correctly installed plugin. And 0.40 adds apm status, which is only trustworthy if a real harness confirms it.
What
A nightly test lane (a separate CI job) already runs pinned real Claude Code and Copilot CLI in a sandbox. It installs a small probe plugin with APM, starts the harness and records one verdict per cell (one test case): LOADS, DOES NOT LOAD, PARTIAL, REFUSED or BLOCKED (no credentials). Claude Code never reaches a model. Only this lane runs harness programs; APM never does.
Flagship example: clean clone, upgrade, local edit, rollback. Each version carries a distinct marker. probe: lines come from the lane. apm status and the rollback notice are planned for 0.40; output is illustrative. The same steps run for Copilot.
$ git clone acme/app && cd app && apm install # v1 committed
probe claude-project: LOADS, marker "SP-V1"
$ apm update superpowers --yes && git commit -am "sp v2"
probe claude-project: LOADS, marker "SP-V2"
$ echo "# tweak" >> .agents/plugins/superpowers/skills/x/SKILL.md
$ apm status --check; echo $?
claude project superpowers v2 content: differs (1 file)
1
$ cp .agents/plugins/superpowers/skills/x/SKILL.md ~/keep-tweak.md # save the edit
$ git checkout HEAD~1 -- apm.yml apm.lock.yaml && apm install
[!] superpowers: local edit in .agents/plugins/... replaced by locked v1 bytes
probe claude-project: LOADS, marker "SP-V1"; status content: matches lock
flowchart TD
A["Clean clone + apm install v1"] --> B{"Harness loads v1?"}
B -->|yes| C["apm update to v2"]
C --> D{"Harness loads v2?"}
D -->|yes| E["User edits a deployed file"]
E --> F["apm status --check exits 1"]
F --> G["Restore previous apm.yml + lockfile, apm install"]
G --> H["APM says the edit was replaced"]
H --> I{"Harness loads v1, content matches lock?"}
B -->|no| X[Cell fails]
D -->|no| X
I -->|no| X
What it includes
- The flagship journey for Claude Code and Copilot.
- Strict managed-settings cells (for example
strictKnownMarketplaces) with today's verdict. - A comparison that fails when the harness and
apm status --jsondisagree. - Receipts (records of an observed load) per artifact, harness version, format and scope, plus an on-demand run for one artifact.
- A Pi cell for standard folders and
.pi/mcp.json, and a dedicated Copilot token.
What it does not include
- A required check on pull requests.
- macOS or Windows runners.
- Harnesses with no command-line program.
- APM running harness programs in normal use.
How
A checked-in file holds the expected verdict per cell. Any difference fails the run, even a known bug that starts working. So a fix flips its cell on purpose.
Evidence comes from the harness itself, with no model call: its list commands, its session-start event, a hook that writes a marker file, and a test MCP server (tool server) that logs each request. Each cell gets a throwaway home folder; harness versions are pinned by hash. The journey reuses APM's existing end-to-end test engine.
Value
- Developers: "installed" means "loaded", even after upgrade or rollback.
- Admins: strict company settings become recorded verdicts, not laptop surprises.
- Package authors: receipts show which harness versions loaded your exact artifact.
- Ecosystem: vendors get public, reproducible evidence when a standard path fails to load.
How it fits APM's principles
- Honest evidence: an artifact is qualified only with an observed LOADS receipt.
- Promises before features: each cell lands with today's verdict, before the fix.
- Unbound from harness binaries: only this isolated lane runs a harness, never APM.
- Native-first: the lane checks the harness's own loading of standard plugins and folders.
Promises you can verify
- After a clean clone and
apm install, Claude Code and Copilot load the exact locked version and no other.
How we verify it: the nightly lane starts the real harness and checks the version marker. - After
apm update, the harness loads the new version and the old one is gone.
How we verify it: the lane checks for the v2 marker and no v1 marker. - When you edit a deployed file,
apm status --checkexits 1. On rollback, APM restores the locked bytes and says it replaced your edit, never silently.
How we verify it: the journey edits, checks the exit code, rolls back, then checks the notice, bytes and v1 marker. - What
apm statusreports as loaded matches what the harness loads.
How we verify it: an automated comparison fails on any difference. - When a strict managed setting would make a harness drop a plugin, the outcome is recorded. Once [EPIC] Policy compile: turn one APM policy into each harness's managed settings, and check them before install #3618 lands, APM exits 1 and writes nothing.
How we verify it: strict cells record today's verdict and flip when the fix lands. - An artifact is called qualified for a harness only if a run saw that harness load it.
How we verify it: a receipt records digest, harness version, format and scope. A missing, blocked or failing receipt means "packed, not qualified".
Child issues
Open:
- Prove plugin upgrade and rollback on real Claude Code and Copilot #5749: run the upgrade journey with version markers nightly.
- Strict-mode real-harness cells (P0) #5750: strict managed-settings cells with today's verdict.
- Check that
apm listagrees with what real harnesses report #5751: fail when the harness andapm status --jsondisagree. - Record what real harnesses loaded for each packed plugin #5752: qualification receipts and an on-demand run for one artifact.
- [FEATURE] Dedicated Copilot token for the real-harness lane #5202: a dedicated Copilot token for the lane.
For contributors and agents
Epic code F1. Wave W0 (fixtures + red cells); greens owned by the implementing epics. Size M+S (CTO). Milestone 0.40. Deps: F2 child 1 (#5753, J29 admission to the journey index).
Problem (evidence). Only a real harness proves loading. The lane exists for Claude and Copilot (V scripts/real_harness/probe.py, expected.json, .github/workflows/real-harness.yml) but has no upgrade journey, no strict managed-settings cells and no observed-vs-reported check.
Flagship J29 (clean clone -> activation -> upgrade -> local edit -> rollback).
$ git clone acme/app && cd app && apm install # v1 baseline committed
probe claude-project: LOADS, marker "SP-V1"
$ apm update superpowers --yes && git commit -am "sp v2" # apm.yml + lock change
probe claude-project: LOADS, marker "SP-V2"
$ echo "# tweak" >> .agents/plugins/superpowers/skills/x/SKILL.md
$ apm status --check; echo $?
claude project superpowers v2 content: differs (1 file) -> 1
$ cp .agents/plugins/superpowers/skills/x/SKILL.md ~/keep-tweak.md # user saves the edit
$ git checkout HEAD~1 -- apm.yml apm.lock.yaml && apm install
[!] superpowers: local edit in .agents/plugins/... replaced by locked v1 bytes
probe claude-project: LOADS, marker "SP-V1"; status content: matches lock
Same steps for Copilot. Markers are distinct bytes per version. Rollback overwrites the edited deployment with locked bytes and says so (I7: nothing replaced silently); export-patch on native plugin edits is not relied on (red-team: replay checks the deployed fingerprint first).
Scope in. J29 cells (Claude, Copilot); strict cells (strictKnownMarketplaces, strictPluginOnlyCustomization) recording today's DOES NOT LOAD; observed-vs-apm status --json comparator; Pi cell (Pi 1.6.0 from public npm) for standard dirs.
Out. Required-check status; macOS/Windows runners; harnesses without a CLI.
Lane facts (V). Verdicts: LOADS, DOES NOT LOAD, PARTIAL, REFUSED, BLOCKED (BLOCKED never fails). probe.py check fails on any divergence from expected.json, including a known-bug cell that starts to LOAD. Schedule 23 2 * * * + workflow_dispatch. Claude ANTHROPIC_BASE_URL = closed local port. Copilot token REAL_HARNESS_COPILOT_TOKEN in the real-harness environment (deployment branches: main only; #5202). Harness pins installed with npm ci from scripts/real_harness/npm/<pin>/. Never pull_request_target; no cache saved. Binding: APM product never spawns a harness binary (P-LAW harness.never_spawns, F0); this lane is test infrastructure.
Promises first (mapping to public promises above).
| Promise | Oracle | Where | Green owner |
|---|---|---|---|
| (1)(2)(3) J29 flagship | O1, O5, O9 + probe marker per step | journeys/consumer/J29 + expected.json |
F1 (activation, upgrade), #3619 (content, P-LAW lockfile.vendor_cache_matches_lock red-first in J29 step 3) |
(4) P-LAW harness.loads_what_apm_reports |
probe vs status JSON | comparator | P1 (#5745) |
(5) P-LAW policy.runtime_drop_is_reported |
strict cell: exit 1 + no writes | expected.json |
P2 (#3618) |
| (6) Qualified means observed | LOADS receipt per digest x harness version x format x scope | receipts (#5752) | F1; consumed by doctor/P3 (#5764) |
Children.
Existing: #5202 (Copilot token). #5180 (worktree PARTIAL cell) stays under #3094.
New:
- Prove plugin upgrade and rollback on real Claude Code and Copilot #5749 "J29 flagship upgrade journey with version markers": done when nightly runs it for Claude and Copilot.
- Strict-mode real-harness cells (P0) #5750 "Strict managed-settings cells": done when they record today's verdict.
- Check that
apm listagrees with what real harnesses report #5751 "Probe vsapm status --jsoncomparator": done when divergence failsprobe.py check. - Record what real harnesses loaded for each packed plugin #5752 "Qualification receipts: digest, harness version, format, scope, plus a dispatchable run for a given artifact": done when a run against Lena's packed artifact writes a receipt doctor/P3 can read.
Epic codes: F0 = #3616, F1 = #5197, F2 = #5509, P1 = #5745, P2 = #3618, P3 = #3297. Evidence markers: V = verified in code at 20bd83d, I = inferred, D = vendor docs.
This epic is a plan. It is not a scope approval: each child needs its own apm-scope:v1 record (CONTRIBUTING).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Progress
Activity
danielmeppiel commentedon Nov 23, 2026
Thanks for the detailed proposal. This is queued for maintainer scope review; we will follow up here with a decision.
danielmeppiel commentedon Nov 23, 2026
Decision: approve
Area: project
Scope: A non-required real-harness CI lane: .github/workflows/real-harness.yml and scripts/real_harness/probe.py, plus scripts/real_harness/expected.json. It installs pinned Claude Code and Copilot CLI releases and checks that they load a fixture plugin (a skill, a SessionStart hook and a stdio MCP server) installed by the apm built from the tested SHA. Cells: harness {claude, copilot} x environment {TUI in tmux, git worktree, headless -p} x scope {user, project}, plus Claude diagnostic cells. Evidence is deterministic side effects (the hook marker file, the MCP JSON-RPC log, the skill in the init event or skill list), not model output. Triggers: nightly schedule, workflow_dispatch, and pull_request path-filtered to native-plugin code. Required constraints: exact pinned harness versions (npm version plus integrity); the workflow is non-required; permissions contents:read; the dedicated real-harness token is the only secret (never a write-scoped GITHUB_TOKEN) and is used on schedule and dispatch only, never on pull requests; no pull_request_target.
Done when: The nightly run is green against expected.json, and probe.py check fails on any divergence except BLOCKED (missing credential, rate limit). The PR lane catches #5176 and #5180: their fix PR flips those cells to LOADS, and the lane fails if they do not load. W3d reviews the workflow, then QL H8. CI green. No CHANGELOG line.
Out of scope: Making the lane a required check; harnesses other than Claude Code and Copilot CLI; macOS and Windows runners for now.
Review contact: Daniel Meppiel (@danielmeppiel)
ci: real-harness lane proving Claude Code and Copilot CLI load native…
danielmeppiel commentedon Nov 25, 2026
Moved to 0.40.0 at the v0.39.0 scope freeze: v0.39.0 now takes only bug fixes. This item is a feature, design, research or tracking item, or still needs design.
[-][FEATURE] Real-harness CI lane: prove Claude Code and Copilot CLI load the plugins apm installs natively[/-][+][EPIC] Real-harness proof: harnesses load what APM says, across the upgrade journey[/+]apm listagrees with what real harnesses report #5751[-][EPIC] Real-harness proof: harnesses load what APM says, across the upgrade journey[/-][+][EPIC] Prove that real harnesses load what APM installed, through upgrades and rollbacks[/+]apm listagrees with what real harnesses report #5751danielmeppiel commentedon Dec 2, 2026
In the 0.40 plan this epic becomes a child of #5509, and its children (#5202 and #5749 to #5752) moved there. The lane stays: the flagship journey is reshaped (a frozen install first refuses, then an explicit repair), strict-policy cells are added, and missing or blocked cells become visible. Nothing is deleted.