=== PeopleRun Diagnostic Preflight ===
Contributors: peoplerunai
Tags: diagnostics, troubleshooting, site health, repair
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Evidence-first WordPress diagnostics, bounded repairs, verification receipts, and sanitized AI troubleshooting handoffs.

== Description ==

PeopleRun Diagnostic Preflight scans real WordPress and runtime state, presents structured evidence, classifies each finding, and provides a deterministic next step.

PeopleRun Diagnostic Preflight can perform one deliberately narrow repair: when both WordPress debug mode and visitor-facing debug display are active, an administrator may explicitly authorize changing one unambiguous `WP_DEBUG_DISPLAY` definition from `true` to `false`. PeopleRun Diagnostic Preflight creates a protected temporary backup, stages and verifies the write, and completes independent diagnostic verification in a fresh WordPress request. Failed verification attempts rollback. Ambiguous, unsupported, unauthorized, or unverifiable conditions refuse safely.

Unresolved findings can be exported as a provider-independent AI Repair Packet. The packet contains observed evidence, constraints, and next-step instructions. It is recursively sanitized and is never transmitted automatically.

Repair reports, receipts, and pending verification state are short-lived per-administrator transients. PeopleRun Diagnostic Preflight tracks those transient keys solely so uninstall can remove them without touching unrelated WordPress state.

== Installation ==

1. In WordPress, open Plugins > Add Plugin > Upload Plugin.
2. Upload the PeopleRun Diagnostic Preflight ZIP and activate it.
3. Open Tools > PeopleRun Diagnostic Preflight.
4. Select Run Diagnostic Preflight.

== Frequently Asked Questions ==

= Does PeopleRun Diagnostic Preflight send site data to an AI provider? =

No. It creates a sanitized JSON packet that an administrator may download and choose to provide to any external AI or support provider.

= Can PeopleRun Diagnostic Preflight change arbitrary configuration? =

No. Automatic execution is limited to the exact `config.disable_debug_display` repair ID and its documented preconditions. All other repair IDs refuse.

== Changelog ==

= 1.0.0 =
* Added five evidence-backed WordPress/runtime diagnostics.
* Added explicit administrator authorization and bounded debug-display repair.
* Added protected backup, integrity checks, fresh-request verification, and rollback handling.
* Added before/action/after receipts and provider-independent AI Repair Packets.
* Added recursive secret redaction and deliberate uninstall cleanup.
