Script contract#
Run render --staging-dir DIR --output-dir RELATIVE_DIR and pipe one JSON object:
{
"manifest": {"schema_version": "geo_change.v3", "status": "detected"},
"title": "Harbor change review",
"evidence": [
{"file": "change/difference.png", "label": "Normalized difference", "media_type": "image/png"}
]
}
The manifest is capped at 10 MiB, 100,000 JSON nodes, and 32 levels of nesting. Evidence is
optional and capped at 24 regular non-symlink files, 8 MiB each and 32 MiB total. Evidence
filenames are relative to staging. The output directory must already exist beneath staging; the
script writes only report.md and report.html there. Rendering is rejected before either file is
created when Markdown exceeds 16 MiB, HTML exceeds 32 MiB, or both artifacts exceed 40 MiB total.
The JSON envelope returns staging-relative output names, SHA-256 hashes for the canonical manifest, each evidence file, Markdown, and HTML, plus adapter warnings and truncation. It never embeds file bytes or exposes absolute paths.
The agent, not the renderer or a remote service, owns presentation. Resolve the returned HTML name beneath the agent-created workspace staging directory, verify its reported hash, and provide a client-native clickable link to that absolute local file. Keep the local directory unless the user requests cleanup. Do not upload, remotely host, register, or publish the report.