Skip to content

fix: validate document templates require output.fields - #20

Closed
Frankie-Xu wants to merge 1 commit into
mainfrom
cursor/validator-document-output-shape-bd8a
Closed

Frankie-Xu wants to merge 1 commit into
mainfrom
cursor/validator-document-output-shape-bd8a

Conversation

@Frankie-Xu

Copy link
Copy Markdown
Owner

Problem

RECORD_TYPES is {model, list, set}. he template validate never checks the output shape of type: document. A document YAML that copies a graph output.entities / output.relations block passes. general/base_document already writes placeholder output.fields by hand.

Proposal

Add "document" to RECORD_TYPES so HE-T002 requires output.fields. _check_record_identifiers still requires item_id only for set. HE-T008 field-count warnings may apply to document templates.

Closes yifanfeng97#172

Out of scope

  • Changing base_document.yaml semantics
  • Factory extraction
  • A document-specific schema
Open in Web Open in Cursor 

Co-authored-by: Frankie-Xu <Frankie-Xu@users.noreply.github.com>
@Frankie-Xu Frankie-Xu closed this Sep 15, 2026
@Frankie-Xu

Copy link
Copy Markdown
Owner Author

Opened against the fork by mistake. Review PR: yifanfeng97#173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: template validator skips output-shape checks for type document

1 participant