Make adoption diagnostics share-safe by default - #1102
Conversation
Code Mower exact-head Codex audit — BLOCKEDExact head: Findings: P0 0 / P1 2 / P2 0
Verification performed against the immutable head:
The |
Claude audit (merge-authority lane)Head SHA: |
P1 fix evidenceExact head: Both findings from the exact-head Codex audit are addressed:
Validation:
The PR remains draft with |
Claude audit (merge-authority lane)Head SHA: |
Claude audit (merge-authority lane)Head SHA: |
Code Mower exact-head Codex audit — PASSExact head: Findings: P0 0 / P1 0 / P2 0 The whole patch satisfies issue #1084. The two prior P1s are resolved: Independent validation from a clean detached exact-head clone: 246 doctor/supervised-pilot tests passed with 244 subtests; 14 package/materializer/manifest tests passed with 641 subtests; standalone materialization plus isolated |
Closes #1084.
Hosted and adoption doctor output could expose config, checkout, executable, LaunchAgent, workflow, and packaged-template paths when copied into an issue or adoption report. This change keeps the existing report fields and check IDs while making adoption, supervised-pilot, hosted-builder, and orchestrator postures share-safe by default. JSON states
local_paths: redacted;--share-safemakes that policy explicit for maintained prompts, while--include-local-pathsreturns the exact legacyreport.as_dict()object for private local debugging.The redactor covers nested values and keys; path-bearing config, executable, workflow-path, template-path, file, and directory fields; authority-bearing and local
file:URIs; absolute, home-relative, Unicode-rooted, relative, Windows drive, rooted Windows, and UNC spellings. Non-file URLs, including URL query paths and SSH URLs, andOWNER/REPOslugs remain readable. Text, JSON, remediation, and config-load error surfaces use the same boundary. Embedded paths are replaced without truncating the diagnostic prose that follows them, including when paths contain spaces. No cloud schema or upload path changes.The standalone materializer now includes
doctor_checks/share_safe.py, and the committed package inventory is regenerated. A scratch standalone tree importscode_mower.doctorsuccessfully, and both the wheel and sdist contain the module.Maintained install, quickstart, launch-surface, and orchestrator prompt commands request
--share-safeexplicitly and document the local-debug opt-in.Validation at exact head
3b589d523c32b6b6cb517f8ca0f162559d56c5dc:code_mower.doctorimport passed.doctor_checks/share_safe.py.This PR remains draft pending new independent exact-head Codex and Claude audits plus the full CI/gate matrix.