JSON Report Plugin
What It Does
@agentxchain/plugin-json-report writes structured lifecycle artifacts to disk for each built-in hook phase:
after_acceptancebefore_gateon_escalation
This is the simplest externalization surface for CI jobs, dashboards, or repo-local automation that wants machine-readable AgentXchain state without calling external APIs.
Install
Install by short name (recommended):
agentxchain plugin install json-report
Install with a custom output path:
agentxchain plugin install json-report \
--config '{"report_dir":".agentxchain/custom-reports"}'
Config
{
"report_dir": ".agentxchain/custom-reports"
}
report_dirOptional output directory relative to the governed project root.
If report_dir is omitted, the plugin writes to .agentxchain/reports.
Files Written
Each invocation writes:
- one timestamped JSON file named
<timestamp>-<hook_phase>.json latest.jsonlatest-<hook_phase>.json
The report payload includes:
plugin_namehook_phaserun_idhook_nameturn_idwhen presenttimestamppayload
Failure Semantics
- Advisory only.
- Invalid
AGENTXCHAIN_PLUGIN_CONFIGJSON returnswarn. - Missing
AGENTXCHAIN_PROJECT_ROOTreturnswarn. - A configured
report_dirthat escapes the governed project root returnswarn.
Boundaries
- This plugin is filesystem-local only. It does not upload to external storage.
report_dirmust stay inside the governed project root.- It writes hook evidence; it does not mutate governance state or approve transitions.