Skip to content

refactor(targets): derive harness tables from the target registry and guard harness literals - #5743

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-target-registry-derivation
Dec 2, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-target-registry-derivation

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Milestone 0.40.0. #5775 (37fdcb39) and #5778 (cafb1bbb) have landed. This branch is rebased onto main cafb1bbb, so the diff against main shows only this PR's commits.

Lands after the v0.39.4 tag.

Description

This PR prepares the Pi target (#2908) as registry data. It contains no Pi content. It moves the per-harness tables that sat outside the target registry into registry data and derives the old tables from it. Two new architecture guards stop future harnesses from reintroducing per-harness literals outside the registry. Behaviour is preserved, and new tests pin the derived values byte-for-byte to the old literals.

Derived from registry data:

  • core/target_detection.py: derives detect_target roots, should_compile_agents_md, get_target_description, SIGNAL_WHITELIST, CANONICAL_TARGETS_ORDERED, CANONICAL_DEPLOY_DIRS and CANONICAL_SIGNAL. The data comes from a new TargetDetection table in core/target_catalog.py, plus three order tuples for orders users can see: AUTO_DETECT_ORDER, SIGNAL_SCAN_ORDER and TARGET_DISPLAY_ORDER. TargetType and UserTargetType become str aliases, because the catalog already validates target names wherever they enter.
  • bundle/lockfile_enrichment._CROSS_TARGET_MAPS: now derived from the new field TargetProfile.pack_cross_map. The deprecated alias vscode selects its target's map.
  • compilation/context_optimizer.PLACEMENT_HIDDEN_TOOL_TREES: now derived from the registry's static deploy roots through a new static_target_roots() helper.
  • native_plugins/scopes.HARNESSES and PROJECT_SETTINGS_RELATIVE: now derived from a new field TargetProfile.native_plugin_settings.
  • Copilot's Agent Plugins admission: Copilot was hard-coded as the only plugin host in copilot_plugins/capability.py and install/native_plugin_admission.py. The host is now the registry flag TargetProfile.hosts_agent_plugins. The error text is byte-identical.

Intended deltas: two grok-build fixes. Both add .grok, the root of the in-all grok-build target, which was missing from two hand-written tables:

  1. the apm compile --target all description now lists .grok/;
  2. PLACEMENT_HIDDEN_TOOL_TREES now includes .grok, so applyTo placement handles .grok/** like other harness roots.

Both are recorded in changelog.d/5743.fixed.md.

Placement callers pick up the second fix: commands/uninstall/local_reanchor.py (line 1049) also walks .grok/ now. A new ContextOptimizer test (apply_to=".grok/**/*.md") fails on main and passes here.

Left as a literal on purpose: install/verdict_record._GOVERNED_DIRS stays a literal mirror. That module must not import the registry: "the hit runs before the CLI is imported", and importing integration.targets costs about 350 ms. The existing coverage cell in tests/integration/test_verdict_record.py already pins it to KNOWN_TARGETS. The literal guard lists it as a mirror file.

_LITERAL_MIRRORS stays a one-file set. Adding any new mirror needs a reviewed linter edit and its own pin test.

Guards:

  • registry_delegation.harness_name_literals (owner accepted-target-vocabulary):
    • Outside core/target_catalog.py and integration/targets.py, no src/apm_cli string literal may equal the name, an alias, or the root (with or without /) of a target that is not in the frozen allowlist .apm/architecture/harness-literal-legacy.json.
    • Matching is exact, never a substring.
    • The allowlist holds the 19 harness names that predate the guard. It can only shrink, and a unit test pins it.
    • Every new harness is therefore registry data only.
  • registry_delegation.native_settings_writer (owner claude-native-plugin-registration): the native activation keys (extraKnownMarketplaces, enabledPlugins) and write_settings_document stay with native_plugins/ and the Claude and Copilot registrars. copilot_plugins/settings.py now reads ENABLED_KEY instead of spelling the key.

File length: integration/targets.py must stay under the 2100-line limit. To make room, the user-scope link policy moves unchanged to a new module, integration/user_scope_links.py, with the same owner. targets.user_scope_link_policy stays as a thin wrapper, so no caller changes.

Follow-ups for 0.41:

Intended behaviour deltas

Characterization of head da706284 against parent d0bdbe76 (report by [PGM] Engineer, Pi Receipts; QL accepted):

  • Install deploys are byte-identical across all 17 targets x 2 scopes (34 cells).
  • The only differences come from the declared .grok/ change, in the --target all cell (fixture: two applyTo instructions under .grok/tools/ and .claude/tools/).
  • The rebase keeps the src/ patch byte-identical (see the rebase note below), so these results carry over to the new head.
# where parent head cause
1 apm compile --target all stdout, "Compiling for ..." line ... + .kiro/ + .agents/ ... + .kiro/ + .grok/ + .agents/ declared: the "all" description lists .grok/
2 compile placement table, .grok/tools/**/*.py row matches 0/3, placed ./AGENTS.md, rel 0% matches 1/4, placed .grok/tools/AGENTS.md, rel 100% declared: placement trees cover .grok/
3 compile stdout [!] Warning: applyTo for 'grok-tools' matched no files - placing at project root absent consequence of #2
4 compile stdout 3 directories scanned, 3 files analyzed, efficiency 16.7%, Generated GEMINI.md 4 / 4, 100.0%, no GEMINI.md line consequence of #2 (.grok is now walked)
5 project:.grok/tools/AGENTS.md, project:.grok/tools/CLAUDE.md absent created (grok-tools section; CLAUDE.md imports it) consequence of #2
6 project:AGENTS.md, project:CLAUDE.md, project:GEMINI.md created (the root fallback for grok-tools) absent consequence of #2: no instruction falls back to the root
7 home:.apm/compiled-outputs/<h>.json, home:.apm/compiled-agents-md/<h>.json list the root AGENTS/CLAUDE/GEMINI.md list .grok/tools/AGENTS.md and CLAUDE.md APM's record of #5 and #6
8 apm targets --json --all, gemini row active, source GEMINI.md inactive, needs GEMINI.md consequence of #6: the run's own root GEMINI.md is no longer written; targets code is unchanged
9 compile stdout "Generation time" 4ms 7ms timing noise (not normalized in this cell)

Summary of the deltas:

  • The compile "all" line now lists .grok/ (row 1).
  • .grok/tools/** instructions are placed at .grok/tools/ instead of falling back to the root (rows 2-6).
  • The compiled-output records follow that placement (row 7).
  • In this fixture, the gemini target shows as inactive because the root GEMINI.md is no longer written (row 8).
  • Row 9 is timing noise.

Rebase onto #5775 and the harness contract claims

  • Rebase: the four commits were first rebased onto test(lifecycle): harness conformance contract and ratchet in the promise engine #5775 head 1622a4aa. After test(lifecycle): harness conformance contract and ratchet in the promise engine #5775 and test(lifecycle): harness conformance surface witnesses across the registry #5778 landed, all five commits (including 3c71b0d1) were rebased onto main cafb1bbb. git range-diff 1622a4aa..3c71b0d1 cafb1bbb..<head> reports all five as =, and there were no conflicts.
    • git range-diff d0bdbe76..da706284 1622a4aa..<head> reports all four as =.
    • The src/ patch is byte-identical to d0bdbe76..da706284. This was checked by diffing the two git diff -- src outputs with index lines stripped; the result was empty.
  • New commit 3c71b0d1: test data only, in tests/lifecycle/harness_contract.py. The predicates now read this PR's four new profile fields:
    • capability.detection -> HC-DETECT-01;
    • pack_cross_map -> HC-PACK-01;
    • native_plugin_settings -> HC-PLUGIN-02, HC-PLUGIN-03 and HC-PLUGIN-03.overlap;
    • hosts_agent_plugins -> HC-PLUGIN-01.host and .refuse.
  • When data disagrees: a predicate answers UNKNOWN, and the contract fails, if the field disagrees with the derived owner (native_plugins.scopes.HARNESSES, the Agent Plugins admission) or with the detect_by_dir and pack_prefixes data.
  • Unchanged: every applies() verdict, and tests/quality/harness_conformance.json (690 APPLIES cells: 15 required, 675 baseline).

Issue and approved scope

Issue: Refs #2908

Human scope-approval comment: #2908 (comment). This PR is the shared-layer preparation the Pi target needs under the CEO architecture constraint, which requires Pi to be declarative data with no Pi-only paths.

What remains: the Pi profile data, its tests, docs, and the real-harness and lifecycle cells. They come in the stacked PR-B.

Type of change

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

Testing

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

Validation evidence, run locally on this head; each pytest and pylint run went through the host guard script with -p no:xdist:

Command Result
.venv/bin/python -m pytest -q -p no:xdist tests/unit/core/test_target_registry_derivation.py tests/unit/scripts/test_architecture_harness_literals.py 84 passed
.venv/bin/python -m pytest -q -p no:xdist tests/unit/core tests/unit/copilot_plugins tests/unit/bundle tests/unit/compilation tests/unit/test_lockfile_enrichment.py tests/unit/test_packer.py tests/unit/install tests/unit/integration tests/unit/commands/test_pack.py tests/unit/deps/test_lockfile_generator.py tests/unit/models/test_apm_package_models.py 13168 passed, 20 skipped
.venv/bin/python -m pytest -q -p no:xdist tests/unit/integration tests/unit/utils tests/unit/core tests/unit/copilot_plugins tests/unit/scripts/test_architecture_harness_literals.py tests/unit/scripts/test_architecture_runner.py tests/integration/test_grok_bot_target.py tests/integration/test_openclaw_target.py tests/integration/test_hermes_target.py tests/integration/test_architecture_apply_to_patterns.py tests/integration/test_native_project_scope.py tests/integration/test_copilot_project_settings_precedence.py tests/integration/test_claude_known_marketplace_lifecycle.py tests/integration/test_architecture_native_plugin_audit.py 8608 passed, 3 failed: _build_target_catalog tests in test_target_catalog.py. Fixed by making detection optional; the re-run of that file passed 11
.venv/bin/python -m pytest -q -p no:xdist tests/integration/test_architecture_owner_rule_mutations.py -k "report_nothing or harness_name or native_settings or harness-name or native-settings or coverage or order or user-root or target-vocabulary" 54 passed, including both new MutationCases
.venv/bin/ruff check and ruff format --check on src/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/ scripts/windows_native_symlink_probe_entry.py (ruff 0.15.12, the uv.lock pin) passed
pylint --disable=all --enable=R0801 --min-similarity-lines=10 --fail-on=R0801 on the same paths 10.00/10
bash scripts/lint-auth-signals.sh clean
scripts/check_complexity_ratchet.py --base-ref <main d0bdbe76> clean. detect_target PLR0911 is fixed, so its baseline entry was pruned
python -m tests.quality.taxonomy --changed clean
scripts/lint_architecture_boundaries.py --root . clean
At rebased head 3c71b0d1: pytest -p no:xdist tests/unit/core/test_target_registry_derivation.py tests/unit/scripts/test_architecture_harness_literals.py tests/quality/test_harness_conformance.py tests/quality/test_generated_obligations.py tests/unit/core/test_target_catalog.py 145 passed, 1 skipped (the shrink-only check, bootstrap)
At 3c71b0d1: the ruff, pylint R0801, auth-signal, complexity ratchet (--base-ref 1622a4aa), check_test_assertions.py, check_exact_test_duplicates.py, taxonomy and architecture-boundaries checks all clean
File-length guard largest file is 2100 lines; integration/targets.py is at 2042

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).

changelog.d/5743.fixed.md covers the two grok-build fixes. The refactor itself is internal-only and has no fragment, as changelog.d/README.md allows.

Spec conformance (OpenAPM v0.1)

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

apm-spec-waiver: behaviour-preserving derivation of target tables from registry data; no OpenAPM-observable change

Agent assessment

  • Change confidence: high. Every derived table is pinned byte-for-byte to its previous literal, with the two .grok additions as the only listed deltas. All architecture rules are clean at the head. Both new guards fire on their MutationCase and stay silent on unrelated longer literals.

Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
… trees (#5743)

apm-spec-waiver: changelog fragment for a behaviour-preserving registry derivation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
…elds

- capability.detection, pack_cross_map, native_plugin_settings and
  hosts_agent_plugins (from #5743) are claimed by the predicates whose
  registry sources derive from them.
- trust_hint has landed, so FORWARD_FIELDS is empty.
- harness_conformance.json is regenerated at 1622a4a; the 41 Pi cells
  join the baseline owned by #2908 until their witnesses move them to
  required.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
… trees (#5743)

apm-spec-waiver: changelog fragment for a behaviour-preserving registry derivation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-target-registry-derivation branch from da70628 to 3c71b0d Compare December 2, 2026 14:44
@danielmeppiel
Daniel Meppiel (danielmeppiel) marked this pull request as ready for review December 2, 2026 15:01
Copilot AI balanced review requested due to automatic review settings December 2, 2026 15:01

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

Incorrect scope and pack applicability leave coverage impossible or omitted, while baseline and witness-ID validation gaps can let baseline growth and nonexistent parameterized witnesses pass.

4 open issues
What changed in this PR

Prepares APM's target registry for future Pi support without adding Pi itself. The diff also includes the harness-conformance foundation from stacked PR #5775.

Changes:

  • Derives detection, packing, placement and plugin tables from registry data.
  • Adds architecture guards and conformance checks.
  • Includes .grok/ in compile descriptions and instruction placement.
File Description
tests/​unit/​scripts/​test_architecture_runner.py Registers the two new guard IDs.
tests/​unit/​scripts/​test_architecture_harness_literals.py Tests literal and settings guards.
tests/​unit/​core/​test_target_registry_derivation.py Pins derived behavior and .grok placement.
tests/​quality/​test_harness_conformance.py Checks conformance coverage and ratcheting.
tests/​quality/​promise-catalog.json Registers the conformance promise.
tests/​quality/​harness_conformance.json Records required witnesses and baseline cells.
tests/​quality/​complexity_baseline.json Removes resolved detection complexity debt.
tests/​lifecycle/​scenarios/​test_harness_conformance.py Adds registry-driven skill deployment witnesses.
tests/​lifecycle/​obligations.py Loads required harness witnesses.
tests/​lifecycle/​obligation_space.py Includes generated harness obligations.
tests/​lifecycle/​harness_ratchet.py Implements conformance ratchet management.
tests/​lifecycle/​harness_contract.py Defines promises and applicability predicates.
tests/​integration/​test_verdict_record.py Checks coverage of registry-derived roots.
tests/​integration/​test_architecture_owner_rule_mutations.py Adds mutation cases for both guards.
src/​apm_cli/​native_plugins/​scopes.py Derives native plugin settings paths.
src/​apm_cli/​integration/​user_scope_links.py Houses extracted user-scope link policy.
src/​apm_cli/​integration/​targets.py Adds profile metadata and shared helpers.
src/​apm_cli/​install/​native_plugin_admission.py Uses registry-declared plugin hosts.
src/​apm_cli/​core/​target_detection.py Derives detection and display tables.
src/​apm_cli/​core/​target_catalog.py Centralizes detection metadata and ordering.
src/​apm_cli/​copilot_plugins/​settings.py Reuses the canonical settings key.
src/​apm_cli/​copilot_plugins/​constants.py Removes the hard-coded host constant.
src/​apm_cli/​copilot_plugins/​capability.py Resolves plugin hosts from profiles.
src/​apm_cli/​compilation/​context_optimizer.py Derives hidden placement roots.
src/​apm_cli/​bundle/​lockfile_enrichment.py Derives cross-target packing maps.
scripts/​architecture_linter/​groups/​registry_delegation.py Includes the new guards.
scripts/​architecture_linter/​checks/​registry_harness_literals.py Enforces literal and settings ownership.
changelog.d/​5743.fixed.md Documents the two .grok fixes.
.github/​workflows/​merge-train.yml Runs harness-conformance checks.
.github/​workflows/​ci.yml Runs harness-conformance checks.
.apm/​architecture/​owners/​marketplace-plugins.json Associates the settings guard with its owner.
.apm/​architecture/​owners/​hooks-integrations.json Registers the extracted link-policy module.
.apm/​architecture/​owners/​core-runtime.json Associates the harness-literal guard with its owner.
.apm/​architecture/​harness-literal-legacy.json Lists grandfathered harness literals.

Review effort: Balanced

Comment on lines +85 to +86
if scope == PROJECT:
return frozenset(profile.primitives)
Comment on lines +254 to +258
if not profile.pack_prefixes:
mapped = "maps foreign bundle paths only" if profile.pack_cross_map else "no pack_cross_map"
return _na(f"pack_prefixes is empty; {mapped}")
if not profile.pack_cross_map:
return (Verdict.UNKNOWN, "pack_prefixes without a pack_cross_map")
names: dict[str, frozenset[str]] = {}
for key, node in sorted(ratchet.required.items()):
path, _, test = node.partition("::")
function = test.split("[", 1)[0]
Comment on lines +150 to +154
# A merge queue or push commit: its first parent is the base.
head = _git(root, "rev-parse", "HEAD").stdout.strip()
step = _git(root, "fetch", "--no-tags", "--depth=2", "origin", head) if head else None
resolved = (
_git(root, "rev-parse", "--verify", "HEAD^1") if step and step.returncode == 0 else step
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
… trees (#5743)

apm-spec-waiver: changelog fragment for a behaviour-preserving registry derivation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-target-registry-derivation branch from 3c71b0d to 7f60351 Compare December 2, 2026 19:40
… guard harness literals

Target detection tables, the pack cross-target map, placement hidden tool
trees, the native plugin harness set and the Copilot Agent Plugins host are
now derived from registry data (core/target_catalog.py TargetDetection and
order tuples; integration/targets.py TargetProfile.pack_cross_map,
native_plugin_settings, hosts_agent_plugins). Byte-equality pins hold the
derived values to the previous literals; the only deltas add .grok/ to the
"all" description and the placement hidden tool trees.

Two architecture guards keep it that way:
- registry_delegation.harness_name_literals: no literal of a post-guard
  target's name, alias or root outside the registry files (exact match; the
  19 pre-guard harnesses sit in a frozen, shrink-only allowlist).
- registry_delegation.native_settings_writer: native activation keys and
  write_settings_document stay with the native plugin registration owners.

The user-scope link policy moves to integration/user_scope_links.py to keep
integration/targets.py under the file-length guardrail.

apm-spec-waiver: behaviour-preserving derivation of target tables from registry data; no OpenAPM-observable change

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

apm-spec-waiver: changelog fragment for a behaviour-preserving registry derivation

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

apm-spec-waiver: tests for a behaviour-preserving registry derivation

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

apm-spec-waiver: tests for a behaviour-preserving registry derivation

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

The four profile fields this change adds are claimed by the predicates that
read them, so the field-coverage guard stays closed:

- capability.detection: HC-DETECT-01 applies when detection signals exist,
  and answers UNKNOWN when detect_by_dir and the signals disagree.
- pack_cross_map: HC-PACK-01 reads it beside pack_prefixes; pack_prefixes
  without a cross map is UNKNOWN.
- native_plugin_settings: HC-PLUGIN-02, HC-PLUGIN-03 and HC-PLUGIN-03.overlap
  read it directly; disagreement with the native plugin owner is UNKNOWN.
- hosts_agent_plugins: HC-PLUGIN-01.host and HC-PLUGIN-01.refuse read it
  directly; disagreement with the admission owner is UNKNOWN.

Test data only: every applies() verdict and tests/quality/harness_conformance.json
are unchanged (690 APPLIES cells, 15 required, 675 baseline).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-target-registry-derivation branch from 7f60351 to 6b74b69 Compare December 2, 2026 20:12
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 4e733b0 into main Dec 2, 2026
85 of 89 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-target-registry-derivation branch December 2, 2026 20:49
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
Restacked as one commit onto main 4e733b0 (#5775, #5778, #5743 and #5784
landed). This is the net Pi delta of danielmeppiel-pi-target at 0871e7d7 over
the stack it carried, applied with no conflicts:

- the pi target (registry profile, catalog capability, .pi detection, skills
  in .agents/skills, commands in .pi/prompts, PI_CODING_AGENT_DIR user root,
  read verbatim), trust hint, init picker from the registry, unsupported
  primitive warning once, governance_dirs for unmanaged_files;
- project cleanup removes only roots that do not signal their target, and only
  roots that do are created before a write (materializes_root); an auto_create
  target's merged hook config is created with its root;
- the trust hint also fires for project-only .apm content;
- harness conformance: Pi cells all required (zero baseline), HC-PLUGIN-01
  .dryrun promoted (26 rows formerly #5781) with an exact-line oracle;
  main's required cells kept (the carried ratchet had them in baseline),
  known_failing merged into the promise engine, PI_CODING_AGENT_DIR scrubbed
  in tests/conftest.py, Pi journey variants, Pi receipts;
- real-harness Pi 1.6.0 lane with the cross-spawn and minimatch overrides.

apm-spec-waiver: adds the pi target as registry data on the shared target layer; no change to an OpenAPM v0.1 requirement
apm-spec-waiver: policy default scan dirs now come from registry data; the existing list is byte-identical and pi adds .pi

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Dec 2, 2026
Restacked as one commit onto main 4e733b0 (#5775, #5778, #5743 and #5784
landed). This is the net Pi delta of danielmeppiel-pi-target at 0871e7d7 over
the stack it carried, applied with no conflicts:

- the pi target (registry profile, catalog capability, .pi detection, skills
  in .agents/skills, commands in .pi/prompts, PI_CODING_AGENT_DIR user root,
  read verbatim), trust hint, init picker from the registry, unsupported
  primitive warning once, governance_dirs for unmanaged_files;
- project cleanup removes only roots that do not signal their target, and only
  roots that do are created before a write (materializes_root); an auto_create
  target's merged hook config is created with its root;
- the trust hint also fires for project-only .apm content;
- harness conformance: Pi cells all required (zero baseline), HC-PLUGIN-01
  .dryrun promoted (26 rows formerly #5781) with an exact-line oracle;
  main's required cells kept (the carried ratchet had them in baseline),
  known_failing merged into the promise engine, PI_CODING_AGENT_DIR scrubbed
  in tests/conftest.py, Pi journey variants, Pi receipts;
- real-harness Pi 1.6.0 lane with the cross-spawn and minimatch overrides.

apm-spec-waiver: adds the pi target as registry data on the shared target layer; no change to an OpenAPM v0.1 requirement
apm-spec-waiver: policy default scan dirs now come from registry data; the existing list is byte-identical and pi adds .pi

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
Restacked as one commit onto main 4e733b0 (#5775, #5778, #5743 and #5784
landed). This is the net Pi delta of danielmeppiel-pi-target at 0871e7d7 over
the stack it carried, applied with no conflicts:

- the pi target (registry profile, catalog capability, .pi detection, skills
  in .agents/skills, commands in .pi/prompts, PI_CODING_AGENT_DIR user root,
  read verbatim), trust hint, init picker from the registry, unsupported
  primitive warning once, governance_dirs for unmanaged_files;
- project cleanup removes only roots that do not signal their target, and only
  roots that do are created before a write (materializes_root); an auto_create
  target's merged hook config is created with its root;
- the trust hint also fires for project-only .apm content;
- harness conformance: Pi cells all required (zero baseline), HC-PLUGIN-01
  .dryrun promoted (26 rows formerly #5781) with an exact-line oracle;
  main's required cells kept (the carried ratchet had them in baseline),
  known_failing merged into the promise engine, PI_CODING_AGENT_DIR scrubbed
  in tests/conftest.py, Pi journey variants, Pi receipts;
- real-harness Pi 1.6.0 lane with the cross-spawn and minimatch overrides.

apm-spec-waiver: adds the pi target as registry data on the shared target layer; no change to an OpenAPM v0.1 requirement
apm-spec-waiver: policy default scan dirs now come from registry data; the existing list is byte-identical and pi adds .pi

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

2 participants