Skip to content

[backlog] Uninstall, prune and re-anchor: hardening and perf follow-ups #5317

Todo

Description

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.

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor
  3. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.
  4. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  5. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  6. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  7. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  8. danielmeppiel commented on Nov 24, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  9. danielmeppiel commented on Nov 25, 2026

    @danielmeppiel
    CollaboratorAuthor

    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.

  10. github-actions commented on Dec 4, 2026

    @github-actions

    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 · ◷

  11. added
    triage/recommended
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtrackingtriage/recommended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions