Skip to content

docs(core): publish document extraction schema note - #1517

Merged
phernandez merged 2 commits into
mainfrom
docs/1006-document-schema
Sep 8, 2026
Merged

phernandez merged 2 commits into
mainfrom
docs/1006-document-schema

Conversation

@phernandez

Copy link
Copy Markdown
Member

Why

Generated document frontmatter references schema/document-extraction, but Core does not publish the corresponding schema note. This fills the public-schema deliverable in #1006's updated parser-neutral scope.

What Changed

Adds docs/schema/document-extraction.md, an opt-in Picoschema note for document provenance and raw/enriched semantic policy. It explains installation into a project, trusted field ownership, and links to the authoritative contracts and citation documentation.

Implementation Details

Validation is advisory. The note explicitly distinguishes Picoschema discovery from the strict nested and cross-field validation performed by DocumentNoteFrontmatterV1 and assembly helpers. It does not automatically seed projects or change runtime behavior.

Testing

  • Parsed the YAML frontmatter with yaml.safe_load, then basic_memory.picoschema.parser.parse_schema_note: document entity and all 8 frontmatter declarations verified.
  • git diff --check: passed.
  • Documentation-only; no runtime tests required.

Risks / Follow-ups

Refs #1006. The local PDF import command remains follow-up work, as recorded by merged #1377. This note does not claim to complete that command or replace the strict ingestion boundary.

@phernandez phernandez added this to the v0.24.0 milestone Sep 8, 2026
@phernandez

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T13:48:24.768067Z b0ee106 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 08589131b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@phernandez
phernandez merged commit c3e6597 into main Sep 8, 2026
15 of 16 checks passed
@phernandez
phernandez deleted the docs/1006-document-schema branch September 8, 2026 13:46
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.

1 participant