Skip to content

fix: apm.yml accepts an enabled experimental target as --target does - #5816

Open
Daniel Meppiel (danielmeppiel) wants to merge 130 commits into
mainfrom
pgm/5815-manifest-experimental-targets
Open

Daniel Meppiel (danielmeppiel) wants to merge 130 commits into
mainfrom
pgm/5815-manifest-experimental-targets

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Description

An experimental target whose flag is enabled (apm experimental enable openclaw) works with apm install --target openclaw, but exits 2 with Unknown target 'openclaw' when the same target is listed in apm.yml targets:. The same happens for grok-cloud and copilot-cowork.

Root cause: two vocabularies.

  • The manifest path validates every apm.yml token through core/apm_yml._validate_canonical. It rejected any capability with an experimental_flag without ever checking the flag, and its allow-list (target_catalog.manifest_target_names()) drops experimental targets too. Every reader of the declaration goes through it: ManifestTargetDeclaration -> parse_targets_field. So install, and also compile, failed while loading the package.
  • The --target path accepts every catalog spelling and gates experimental ones at runtime with core.experimental.is_enabled.

Fix, in the single owner: _validate_canonical now accepts an experimental (non MCP-only) target while its own flag is enabled. The flag name comes from the capability's experimental_flag and is checked with is_enabled(..., create_config=False), so a new experimental target needs no edit here. A disabled flag keeps the exact Unknown target error and the valid-targets list, because manifest_target_names() / CANONICAL_TARGETS are unchanged. The --target path is unchanged, and neither target_catalog.py nor install/phases/targets.py is touched. Manifest reconciliation also asked the stable-only list whether a target was declared, so an enabled experimental target removed from targets: stayed deployed. The new core/apm_yml.is_manifest_target(name) is now the one answer for parsing and reconciliation (install/helpers/reconciliation_scope._is_manifest_target calls it). The downstream resolver and the install gates (cowork user scope, cowork skills dir) already handle these targets.

User-visible behavior note: with its flag enabled, an experimental target not listed in targets: is reconciled like a stable one, so files an earlier apm install --target <name> deployed are retired by the next plain apm install (before, they were kept). With the flag disabled they are kept.

Docs: reference/manifest-schema.md now states the rule and that note, and the apm-usage skill's workflow.md (which said experimental targets "cannot be stored in targets:") is updated to match (doc Rule 4). The other apm-usage files only describe --target usage of experimental targets and stay true.

Issue and approved scope

Issue: Fixes #5815

Human scope-approval comment: #5815 (comment) (scripts/governance/eligibility.cjs: record-present, review contact Daniel Meppiel (@danielmeppiel))

Does this PR complete the issue, or what remains? It completes it.

Type of change

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

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

The red-first commit d17cffa (tests only) fails on main; the fix commit turns it green.

Cell Node main fix
enabled target in apm.yml installs: openclaw (project), grok-cloud (project), copilot-cowork (user, -g, cowork skills dir); the same cell first proves disabled -> exit 2 Error: Unknown target '<t>' with no lockfile tests/integration/test_manifest_experimental_targets_lifecycle.py::test_an_enabled_experimental_target_in_apm_yml_installs 3 failed (exit 2 after enable) 3 passed
a non-install reader goes through the same gate: compile --dry-run refuses the disabled target, accepts it once enabled, and refuses it again with byte-identical stderr ...::test_compile_reads_the_declaration_through_the_same_gate failed (exit 2 after enable) passed
an enabled experimental target removed from targets: is retired (files and lock rows) on the next install (Copilot review) ...::test_removing_an_enabled_experimental_target_retires_its_files failed (.agents/skills kept) passed
install <pkg> --target openclaw while apm.yml also declares openclaw (QA): disabled -> exit 2 with today's message and no lockfile; enabled -> exit 0 and deployed ...::test_target_flag_with_the_target_also_declared_in_apm_yml failed (exit 2 after enable) passed
flag ON: openclaw deployed only by --target, apm.yml targets: [claude] -> the next plain install retires its files and lock rows, like a stable target (documented behavior change) ...::test_an_enabled_experimental_target_not_in_apm_yml_is_reconciled_like_a_stable_one failed (kept) passed
flag toggled OFF after that --target deploy -> a plain install keeps its files and lock rows ...::test_a_disabled_experimental_deployment_is_kept_by_a_plain_install passed passed
parse_targets_field for every experimental capability (derived from TARGET_CAPABILITIES): rejected while disabled, accepted while enabled (both spellings), and the same message after disabling tests/unit/core/test_target_resolution_v2.py::test_manifest_accepts_an_experimental_target_only_while_enabled 4 failed 4 passed

Commands, run locally one at a time through the host guard:

  • APM_BINARY_PATH=.venv/bin/apm pytest tests/integration/test_manifest_experimental_targets_lifecycle.py tests/unit/core/test_target_resolution_v2.py -n0 -> 35 passed
  • pytest tests/unit/core tests/unit/models tests/unit/install/phases <unit modules that use parse_targets_field / manifest_targets / UnknownTargetError> -n0 -> 4330 passed, 2 skipped
  • CI-mirror lint chain: ruff 0.15.12 check + format, complexity ratchet, taxonomy allowances, obligation status ratchet, YAML/file-length/relative_to guards, pylint R0801, committed symlinks, auth signals, architecture boundaries, tm006 -> all pass
  • tests/spec_conformance/mode_b_detector.sh -> no critical-path diff
promise: P-OWN-manifest-target-declaration -- apm.yml targets: accepts an experimental target exactly while --target does (its flag enabled); a disabled one keeps the Unknown target exit 2 for every reader (source: #5815 scope record)
cell: OP={install, compile} SRC=local PRIM=skill SCOPE={project, user} TGT={openclaw, grok-cloud, copilot-cowork} GATE=experimental-flag{on, off}   owner: core/apm_yml.py (_validate_canonical)
instrument: today test -> tests/integration/test_manifest_experimental_targets_lifecycle.py (new: no lifecycle module covered manifest-declared experimental targets)
oracles: [I7, I8, exit codes, deployed files from the lock row, byte-identical refusal]  decisive: install exit 0 with the target enabled
failing-before: d17cffa7 -> 4 lifecycle + 4 unit failed
passing-after: fix commit -> 35 passed
guard+mutation: n/a     ledger: n/a
hints executed: apm experimental enable <t> -> install/compile accept the manifest target

Contract change: 2 tier2 tests, per the #5815 scope record + AUD's note. Both cells in tests/integration/test_grok_audit_target_lifecycle.py pinned the pre-#5815 contract and are updated in fc96760, with QL's ruling (option A):

Cell Was Now main 641743f head
test_audit_preserves_current_intent_and_experimental_boundary enabled targets: [grok-cloud] -> exit 2 enabled -> exit 0, lock {grok-cloud}, deployed; disabled -> exit 2 with the error and hint lines asserted verbatim failed l.272 (exit 2) passed
test_audit_checks_retained_claims_without_replaying_dropped_targets flag ON, unlisted grok retained flag ON -> retired, lock {copilot}; the retained-claim audit oracle moves unchanged to the flag-OFF shape failed l.329 (kept) passed

Mutation partners at head: reverting the reconciliation half turns the second cell red (l.329); restoring the manifest rejection turns the first red (l.272).

Changelog

  • One fragment per section, changelog.d/<pr>.<section>.md, holding
    one line: user-visible effect first, 25 words or fewer, ending with
    (#PR); breaking changes only under upgrade notes; no Highlights; no
    new lines under ## [Unreleased]. See changelog.d/README.md and
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Agent assessment

Change confidence: high. One validator in the manifest-target owner now consults the same flag owner that --target uses. The disabled path is byte-identical to main, and the new cells cover install at both scopes plus compile.

Diagnosis confidence: high. The reported symptom reproduces exactly on main (exit 2 Unknown target with the flag enabled). _validate_canonical rejecting every experimental_flag capability without reading the flag explains it fully; with that check gated, install and compile succeed and nothing else changes.

Evidence fit: strong. The red-first cells fail on main for exactly this reason and pass with the one-function change.

…t collected fails

A required cell in tests/quality/harness_conformance.json must earn a passing
receipt. Until now ReceiptWitnessPlugin only checked witnesses that passed, so
a skipped witness left its required cell unproven without failing anything.

- ReceiptWitnessPlugin fails a skipped or xfailed witness of a required cell
  (setup or call phase), naming every cell and the skip reason. A cell that no
  longer applies leaves through the contract (applies()), not a run-time skip.
  Skips of nodes that witness no required cell stay skips.
- harness_ratchet.uncollected_witnesses(): every required witness node must be
  collected (pytest --collect-only over the witness modules), so a renamed or
  unparametrized witness is refused.
- Mutation tests: a required witness that skips fails the gate (pytester), a
  skip outside required cells stays a skip, and a dropped node is named as
  not collected.

Refs #5796

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…easured; plain skips and untracked xfails fail

Refs #5796

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…quired cells

A required cell's witness passes with a receipt, or is a strict
KnownFailure listed in required_known_failing whose tracking equals the
ledger issue, whose issue is open (closed-issue gate), and whose failure
matches. Any other xfail, a skip in any phase, an uncollected node or a
strict XPASS fails. The ledger only shrinks against the merge-base; a
base without the section compares against the frozen 8-cell #5797 set.

Refs #5796

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adds src/apm_cli/lens/: model.py, the stdlib-only interface contract of the
apm list inventory (frozen dataclasses Source, Evidence, HarnessRef,
Location, Item, CoverageCell, NotVisible, Inventory), and verdict.py, the
only evidence -> state judgment (state, folder_content, item_state).

Registers the lens-observation owner with guard
registry-delegation-lens-observation: model.py imports only the standard
library, only verdict.py writes an APM health state, and no lens module
writes, deletes, spawns or opens a socket. One mutation case proves it.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
J13 step 1 now runs 'apm run --list' against an O1 golden captured from
today's 'apm list' (the 0.39 scripts table), and asserts it runs nothing.
Step 4's diagnose advice moves to 'apm run --list'.

Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
'apm run --list' prints the 'apm list' scripts table or the No scripts
found panel byte-for-byte, exits 0 and runs nothing, so bare 'apm list'
can switch to the agent-config inventory. The script-not-found hint and
the docs now point to 'apm run --list'.

Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adds the test-only R0 layer of the apm list test plan: structured oracles,
pending-witness promises, laws, schema, mutations and static guards. No
committed cells: every HC-LIST promise stays pending-witness, so the
harness ratchet is untouched.

- oracles.Evidence gains json_equal and rows_equal (parsed path plus
  expected value), checked inside check_obligation; a mismatch or an
  unparseable output fails with no receipt.
- tests/lifecycle/list_oracle.py is the one parser of apm list output
  (schema-validated JSON views; text rows by header column spans; summary
  and footer by exact clause and line).
- HC-LIST-01..15 and HC-LIST-03.targets appended to harness_contract.py
  as pending-witness; HC-LIST-07 carries scopes=(user,) with a citation.
- P-LAW-list.* laws in the property catalog as forward laws citing #5745;
  the ledger guard accepts a law only when bug-referenced or forward with
  a cited issue.
- JSON Schema plus 4 outcome fixtures; S137 AST guard; C6 clone proof;
  tests/lifecycle/mutations/list.yaml.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
lens/apm_layers.py reads one scope's lockfile once and turns its deployment
ledger rows into logical items: kind and name come from the target layout,
rows for one physical path are deduped (targets kept apart), and
projections of one package item collapse into one item with several
locations. Each unique physical file is classified once through
deps/file_provenance.classify_file (made public at its owner). Folder items
get a bounded recursive name walk without link following: a file outside
the record makes the folder modified, a partial walk leaves it
unverifiable. Recorded values that escape their root are rejected
lexically, before any filesystem call. 'orphaned' is not produced in 0.40
(declared is 'yes' for every locked owner).

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
'apm run --list' no longer imports from list_cmd, whose scripts body goes
away when bare 'apm list' switches to the inventory. The renderer lives
in run.py (a new module would need an architecture owner); output stays
byte-identical. The list_cmd unit cases are ported to test_run_list.py.

Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
lens/inventory.build(ctx) reads each requested scope's APM layer once, asks
the reader package for native observations (an empty scan until the readers
land) and joins them: a native observation at or inside a path an APM item
lists is dropped, so one physical path is one location; a scope whose
lockfile is unreadable turns its native items into not-checked. APM
locations take HARNESSES from the reader records and keep ledger targets
apart. --target and NAME selection run before states are summarised, and
under exactly one --target same-name copies get the documented ORDER
(higher/lower with order_rank, coexist, or unknown; a missing copy is
never ranked). The context carries the keys the renderer needs.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…es detection

The build input key for the --target selection is 'harnesses' (the target
vocabulary guard rejects a raw targets read in src). build() resolves the
detected harnesses (signal folders at the project and home roots, apm.yml
targets and ledger targets, kept to harness reader records) and passes the
selection and the detected set to the readers' scan. ORDER under one target
now uses the readers' tier_of and the record's ranked/coexist/unknown rule:
copies in one tier tie, and a copy whose tier cannot be read is unknown.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
MCP ledger rows (uri locators under target mcp, one per runtime) become MCP
claims instead of file items. The inventory joins each claim to the
readers' observation of that server name for that runtime at that scope:
the location takes the observed config path and entry pointer, the
observation is claimed (not listed again as unrecorded), and the entry is
compared with the recorded fingerprint through the ownership owner's
mcp_native_hash, imported only when an entry is compared. Entry values are
read only for that comparison and never returned; the item carries the
readers' keys-only shape. An entry not observed is unverifiable.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mark test_run_list.py as component (it writes apm.yml and drives Click),
and keep the docs truthful while bare 'apm list' still lists scripts.

Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Run tests/quality/test_list_{conformance_guards,oracle}.py in the
  ratchet contracts job (ci.yml and merge-train.yml, kept identical).
- P-LAW-list.* forward laws are phase 0: no spine transition covers them
  until the list observation invariant lands.
- list_oracle: the command kind and Commands section; an empty inventory
  summary has no clause; rows() refuses -v detail lines, and details()
  attaches them to the row above.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
User-scope APM items now say they are declared in the $APM_HOME manifest,
shown as ~/.apm/apm.yml when it sits under the home root; project items
keep apm.yml.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The oracle unit test credited a pending-witness cell id; use a neutral
cell id so the pending-witness leak guard stays clean.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Under -g the project scope has no root, so context.roots values may be
null. Reader order rules name the item kind (skill), unlike sources
(skills); HC-LIST-10 now applies where a skill rule is recorded.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…paths

- Item names drop any extension the registry gives the primitive, so one
  instruction deployed as name.instructions.md and name.md is one item.
- ORDER ranks each copy by the tier of its best location the target reads;
  only copies sharing a best tier tie.
- Recorded paths that map to no primitive layout, and paths not confined to
  their root, are coverage cells, never a made-up 'file' item; 'canvas'
  joins the kind vocabulary.
- User-scope rows under $HOME are matched under the target root install
  resolves (root variables such as CLAUDE_CONFIG_DIR honoured).
- Path dedupe and the ancestor manifest hint are separator-agnostic
  ('../apm.yml' on every OS).
- The folder walk cap is a read_layer parameter, so tests pass it instead
  of patching the owner.

Refs #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rows

Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Link ownership through path_security.user_owned_link, native activation keys
from native_plugins.settings, no target-vocabulary reads, records.py counted
as registry data by the harness-literal guard, and a vendor file name is not
the removed plugin-lifecycle symbol.

Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…eeps its teeth

Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…olders by descriptor

Folds AUD F1-F3: the managed-settings ownership gate is re-checked on fstat,
subfolders below a root are opened O_NOFOLLOW and listed by descriptor, and the
tombstone exemption applies only to the quoted installed_plugins.json name.

Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… evidence

not_visible[].os and record OS rows use linux, macos and windows (sys.platform
mapped once). A plugin activation entry in a settings file now sets configured
and evidence_source on the install record with the same plugin id (narrowest
scope, then the file read last); an entry with no install record is one plugin
item with present no. Install records carry plugin@marketplace ids. Tests are
Windows-safe (bytes for frontmatter, absolute tmp system paths).

Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5746, #5754

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ine bypass

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A registry server's overlay is now checked against each installed target's
env-reference row, not only the dependency rule, so --frozen excuses or
defers the same pairs the install skips. Targets follow the server's
targets selection minus native runtimes.

apm-spec-waiver: MCP owner refinement covered by the #5773 scope record; no OpenAPM requirement changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
apm-spec-waiver: deps/file_provenance.py classify_file rename (C) and integration/__init__.py lazy PEP 562 exports (D); import-time only, no req-* behaviour change

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…r to its server; trust hint after MCP-only installs

- The pre-render check judges the one remote the writer renders
  (selected_remote), so an unused alternative URL no longer skips a
  usable server.
- A registry package payload the launcher builder cannot use refuses
  nothing in the pre-render check; the write path reports that server.
- A project install that writes MCP config prints each target's registry
  trust hint, once per command shared with the package finalizer, so
  MCP-only installs and install --mcp show it too.

apm-spec-waiver: install-time diagnostics and pre-render refusal scope for registry-declared JSON MCP targets; no OpenAPM v0.1 requirement changes

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…t (S141)

D removed the scripts table from list_cmd (run.py is its single owner, #5806).
TestListCmd in tests/integration/test_coverage_phase4.py patched
list_cmd._list_available_scripts/_get_console and is deleted. Each of its
seven behaviours already has an exact oracle in tests/unit/commands/test_run_list.py:

- test_no_scripts_shows_warning_and_example -> test_run_list_prints_the_0_39_list_output_and_runs_nothing[no-scripts-panel] (exact bytes) + test_no_scripts_panel_gets_the_example_block
- test_scripts_shown_via_fallback_no_console -> test_plain_fallback_without_console[start-is-default, no-default] (exact output)
- test_start_script_marked_as_default -> test_run_list_prints_the_0_39_list_output_and_runs_nothing[scripts-table] (exact "[>] | start" row) + test_plain_fallback_without_console[start-is-default]
- test_scripts_shown_via_rich_console -> test_rich_console_prints_table_then_default_note (console.print call count) + [scripts-table] exact table
- test_exception_in_list_scripts_exits_1 -> test_read_error_exits_1_with_the_error (exit 1 + "[x] Error listing scripts: disk error")
- test_no_scripts_rich_panel_import_error_fallback -> test_no_scripts_panel_fallback_on_import_or_name_error (exact output, ImportError and NameError)
- test_rich_console_exception_falls_back_to_simple -> test_rich_failure_falls_back_to_plain_once (one plain listing, every name, default note)

Stale text after the bare apm list switch: the canvas page's "not shown by
apm list", and a lifecycle test docstring that said apm list never reads the
lock. (troubleshooting/index.md is B's hunk; fixed there to avoid a merge conflict.)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The failed `apm run missing` prints the exact stderr line
"Run 'apm run --list' to see each script and its command." The test
runs that step, checks that it reaches the scripts table, and checks
that it changes no durable state.

Docs: the troubleshooting entry and the run reference no longer say
what bare `apm list` shows. The entry points to `apm run --list` for
scripts, so it stays true before and after the inventory switch.

Refs #5756

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
After the switch, bare 'apm list' is the inventory: each row is an item a
harness reads and SOURCE names the package that installed it. The entry
now says so, shows 'apm list <package>' for one package, keeps the
'apm deps' pointers and 'apm run --list' for scripts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A declared transport does not show whether the fetched payload keeps a
remote, so a header-sourced overlay refusal is always deferred to the
existing payload confirmation under --frozen; an env overlay still
decides alone.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 3, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the pgm/5815-manifest-experimental-targets branch from 32b22c7 to 13c152e Compare December 3, 2026 07:29
Merges B's signed head (no rebase) so D merges cleanly after B on main.
packages/apm-guide/.apm/skills/apm-usage/commands.md, Scripts table, resolved to
exactly two rows after `apm preview SCRIPT`: B's `apm run --list` row as B has
it, then D's `apm list [NAME]` inventory row. The stale "`apm list` | List
available scripts" row is removed (S141); no other "List available scripts" or
apm-list-means-scripts text remains in the tree.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rime

# Conflicts:
#	tests/quality/known_cell_issue_states.json
#	tests/quality/known_cell_issues.py
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	tests/quality/harness_conformance.json
The pi reader record now cites the pinned Pi 1.6.0 docs commit, as the pi
target's user-root row does. With pi in KNOWN_TARGETS no reader record is
reader-only, so the record test asserts none is.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…o required (#5815)

#5815 makes an enabled experimental target declared in apm.yml a valid
install target, so the strict known failures citing #3616 now pass.
They move from known_failing to required (ratchet regenerated with
tests.lifecycle.harness_ratchet), the EXPERIMENTAL_UNKNOWN KnownFailure
goes, and the known-cell snapshot drops #3616.

The three known_failing gate tests split into a mechanics test that
calls the gate with a built Ratchet holding one synthetic row (new
seams: known_cell_issues.harness_cells, load_generated(harness=)) and
a real-data test over the committed ratchet, which may be vacuous.
No patching of load_ratchet or the cached scan.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the pgm/5815-manifest-experimental-targets branch from 13c152e to 2eaa47a Compare December 3, 2026 08:13
The project MCP write for a Gemini-family adapter was gated on its config
directory existing. That is Gemini's opt-in (.gemini), but Antigravity's
.agents root is shared and created only when Antigravity is selected, so
with the root no longer created ahead of every install the MCP config
was skipped. The gate now applies only to a target whose registry profile
does not auto-create its root; Gemini keeps its opt-in.

The legacy 'all' target suggestion is derived from the registry
(TARGET_CAPABILITIES in_all targets that install), not a hand-written
list.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rgets (#5815)

An enabled experimental target listed in apm.yml targets: now installs, and
with its flag enabled an unlisted one is retired like a stable target. The
retained-claim audit oracle moves to the flag-off shape, where the claim is
still retained. A disabled target keeps its error and hint, asserted line by
line.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A project upgraded from 0.35.1 or 0.36.0 with legacy `target: all` now also
configures Pi's project MCP file on the first install. The added deployment
row, config file and lockfile MCP servers are literal on purpose, so the
oracle does not read the target registry it checks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel Daniel Meppiel (danielmeppiel) added the full-integration Run the full integration suite (ci-integration.yml) on this PR before merge label Dec 3, 2026
The expected list stays hand-written on purpose: it is an independent
oracle for what 'all' resolves to, so a target entering or leaving 'all'
by accident fails here instead of passing with the catalog it reads.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-integration Run the full integration suite (ci-integration.yml) on this PR before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Experimental targets work with --target but fail when listed in apm.yml

2 participants