Resolve controlled/freeform/orphan docs, bootstrap on GET, write output.md or freeform content on PATCH, and wire lineage impacts for agent candidates. Co-authored-by: Cursor <cursoragent@cursor.com>