You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[backlog] Uninstall, prune and re-anchor: hardening and perf follow-ups #5317
enhancementLegacy classification name; prefer type/feature. Retained for history.trackingtriage/recommendedAutomated advice completed; not human scope approval.
One running list of hardening, performance trims and "could also" follow-ups for uninstall, prune and local re-anchor. These items are useful but not user-facing bugs, security findings or features, so they are batched here instead of tracked one issue each. Each item is added as a comment that links its original issue. Pick items up when a lane has capacity; there is no ordering or deadline.
perf(uninstall): re-anchor writer prediction renders the whole lock per re-anchor #5172 perf(uninstall): re-anchor writer prediction renders the whole lock per re-anchor
Uninstall re-anchor writer prediction: render only the providers that can write the re-ranked paths instead of a full offline replay per re-anchor (cost grows with project size).
Deferred from #5308 review (declined for 0.39.0 under release scope):
Config file records: a rewrite through an alias, when the originally recorded path is unavailable, can classify a pre-existing file as legacy. Keep pre-existing protection during pre-write identity resolution.
Hook ownership: the apm.yml read for hook attestation should go through the canonical manifest reader, so duplicate keys and anchors are rejected.
Markdown hook records: use the resolved deployment root for targets with a dynamic root (for example copilot-cowork), and route path prefixes through get_integration_prefixes (for example Claude rooted at $HOME).
Markdown hook record preflight: read and parse the record once through the regular-file owner, so a swap after the guarded open cannot redirect or block the read.
Markdown hook records: hash only files whose frontmatter declares hooks.
Test: the retirement read-error cell should use a real target root and assert that the failing reader was reached.
APM's own Markdown hook record is reported as unmanaged under unmanaged_files: deny (fail-closed false positive). Re-land with ancestor-link checks and per-entry validation.
Added from train #5334 (FAT A) Copilot threads: Markdown hook record ancestor-chain validation before reading (linked target dir / linked .github); single-snapshot record parsing from the opened handle; directory-fd-bound unlink after the hash read (confined writer, #5182); operation-scoped identity index for config_file_provenance cleanup.
Backlog from the corpus-integrator lane. These were declined in review under rule 27 (correctness folds only, at most 2 Copilot rounds); none blocks a landing.
U-BIN-BUNDLE pin (test(lifecycle): T-1c, the plugin bin spine re-installs with each modifier (stacked on T-1b) #5244): include the consulted target data and PLUGIN_LAYOUT (src/apm_cli/integration/targets.py) in bin_pin.bundle_bin_digest, with a layout-only mutation test. Today only the tripwire test_no_target_routes_a_bundle_bin_file catches a layout change that lets _lower_to_target route bin/.
Bench.observe (machines/_kit.py): it drops every marketplace *.meta.json before I5, so a catalog command could rewrite another catalog's metadata unnoticed. Keep raw metadata for I5, and normalize recency only for I2.
One more backlog item from #5244 (declined in Copilot round 4 under rule 27): move test_dropping_the_callers_target_changes_the_bundle_pin (tests/lifecycle/generator/test_u_bin_seam.py) into a component-marked module. It copies and rewrites source files under tmp_path, which is filesystem behavior; keep its promise marker.
Backlog (from #5345 review): the bench spawn counter's Windows command-line splitter (tests/benchmarks/spawn_counter/sitecustomize.py, _split_command_line, from #5340) does not handle backslash-escaped quotes produced by subprocess.list2cmdline. A git -c value containing a literal " is counted under verb ? instead of its real verb. Fix: handle backslash runs before quotes, plus round-trip coverage through subprocess.list2cmdline. Linux count budgets are unaffected.
Backlog (from #5345 review): test_the_hash_counters_see_hashlib_new_and_file_digest in tests/integration/test_perf_count_budgets.py is an e2e-classified module but only runs a Python hash script through the counter hook. Move it into a component-classified module, keeping its P-PERF promise marker.
Backlog (from #5412 review): cli.interrupts_deferred() restores the handlers but drops a deferred SIGINT/SIGTERM when the wrapped spawn raises an ordinary error (for example Popen OSError), so _execute_command treats it as a recoverable script failure and the command continues past the interrupt. Fix: on the exceptional path, replay the pending signal after restoring the handlers; add a cell where Popen raises OSError while a SIGINT is deferred.
Tracking list: no action beyond keeping it as a backlog. Suggest it stays open as a living backlog; individual items should be promoted to their own issue with a scope comment from a maintainer before implementation.
Generated by Triage Panel · copilot · auto · 23.4 AIC · ⌖ 0.721 AIC · ⊞ 12.5K · ◷
enhancementLegacy classification name; prefer type/feature. Retained for history.trackingtriage/recommendedAutomated advice completed; not human scope approval.
Activity
danielmeppiel commentedon Nov 24, 2026
Uninstall re-anchor writer prediction: render only the providers that can write the re-ranked paths instead of a full offline replay per re-anchor (cost grows with project size).
danielmeppiel commentedon Nov 24, 2026
Deferred from #5308 review (declined for 0.39.0 under release scope):
apm.ymlread for hook attestation should go through the canonical manifest reader, so duplicate keys and anchors are rejected.copilot-cowork), and route path prefixes throughget_integration_prefixes(for example Claude rooted at$HOME).unmanaged_files: deny(fail-closed false positive). Re-land with ancestor-link checks and per-entry validation.danielmeppiel commentedon Nov 24, 2026
Added from train #5334 (FAT A) Copilot threads: Markdown hook record ancestor-chain validation before reading (linked target dir / linked .github); single-snapshot record parsing from the opened handle; directory-fd-bound unlink after the hash read (confined writer, #5182); operation-scoped identity index for config_file_provenance cleanup.
danielmeppiel commentedon Nov 24, 2026
Backlog from the corpus-integrator lane. These were declined in review under rule 27 (correctness folds only, at most 2 Copilot rounds); none blocks a landing.
PLUGIN_LAYOUT(src/apm_cli/integration/targets.py) inbin_pin.bundle_bin_digest, with a layout-only mutation test. Today only the tripwiretest_no_target_routes_a_bundle_bin_filecatches a layout change that lets_lower_to_targetroutebin/.bundle-installbin cells should also depend on the bundle pin, so a changed bundle routing reinstatesGATE=allowedand the other gate levels. Extend the changed-pin test to every level.NormalizationPlanner.planandplan_native_claude_plugin, with per-premise mutation tests. The evidence test checks only the cited needles.converged=True(I2), with a lock-semantics negative control.Bench.observe(machines/_kit.py): it drops every marketplace*.meta.jsonbefore I5, so a catalog command could rewrite another catalog's metadata unnoticed. Keep raw metadata for I5, and normalize recency only for I2.tests/lifecycle/scenarios/test_concurrency.py) instead of two back-to-back processes.danielmeppiel commentedon Nov 24, 2026
One more backlog item from #5244 (declined in Copilot round 4 under rule 27): move
test_dropping_the_callers_target_changes_the_bundle_pin(tests/lifecycle/generator/test_u_bin_seam.py) into a component-marked module. It copies and rewrites source files under tmp_path, which is filesystem behavior; keep its promise marker.danielmeppiel commentedon Nov 24, 2026
Backlog (from #5345 review): the bench spawn counter's Windows command-line splitter (
tests/benchmarks/spawn_counter/sitecustomize.py,_split_command_line, from #5340) does not handle backslash-escaped quotes produced bysubprocess.list2cmdline. A git-cvalue containing a literal"is counted under verb?instead of its real verb. Fix: handle backslash runs before quotes, plus round-trip coverage throughsubprocess.list2cmdline. Linux count budgets are unaffected.danielmeppiel commentedon Nov 24, 2026
Backlog (from #5345 review):
test_the_hash_counters_see_hashlib_new_and_file_digestintests/integration/test_perf_count_budgets.pyis an e2e-classified module but only runs a Python hash script through the counter hook. Move it into a component-classified module, keeping itsP-PERFpromise marker.danielmeppiel commentedon Nov 25, 2026
Backlog (from #5412 review):
cli.interrupts_deferred()restores the handlers but drops a deferred SIGINT/SIGTERM when the wrapped spawn raises an ordinary error (for example Popen OSError), so_execute_commandtreats it as a recoverable script failure and the command continues past the interrupt. Fix: on the exceptional path, replay the pending signal after restoring the handlers; add a cell where Popen raises OSError while a SIGINT is deferred.github-actions commentedon Dec 4, 2026
Tracking list: no action beyond keeping it as a backlog. Suggest it stays open as a living backlog; individual items should be promoted to their own issue with a scope comment from a maintainer before implementation.