chore: clear working tree (Investment Source schemas + corpus + gitignore)#8
Merged
Conversation
- .codex/ — Codex CLI per-developer config (mirrors existing .claude/) - 5 strategy/planning docs (company-plan*, gtm-mastery, option-b-ingestion-adapter-plan) — matches the anthropic-briefing precedent for personal/strategic docs Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A parallel discriminated union to scripts/schemas/frontmatter.ts that handles investment-firm source types — IC memos, post-mortems, sector theses, quarterly letters, meeting notes, slack threads. Run side-by- side with the original Zuhn source schemas; tenant configuration determines which schema family applies. - common.ts: shared building blocks (DateField, Confidence, Predictions, PrincipleRef, PersonField, PeopleField) calibrated to real-corpus conventions (case-insensitive enums, YAML-1.1 date coercion, comma- separated person fields) - 6 per-type schemas with passthrough() to preserve firm-specific quirky fields - sources.test.ts: dispatcher tests + the full Meridian demo corpus parsed as fixture (asserts ≥12 corpus files to prevent empty-suite false-positives) The corpus fixtures land in the next commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…hemas 14 corpus files across 6 document types (ic-memo, post-mortem, sector-thesis, quarterly-letter, meeting-note, slack-thread) — the fixtures that the schemas test (scripts/schemas/sources/sources.test.ts in the prior commit) walks to verify clean parse. Also includes the per-firm knowledge-base scaffolding (mostly empty placeholders at this stage) that demonstrates what a tenant-scoped Zuhn instance looks like when ingesting from these source types. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/schemas/sources/— Investment Source schema family (Phase 1.3b): discriminated union over 6 document types (ic-memo, post-mortem, sector-thesis, quarterly-letter, meeting-note, slack-thread) with shared building blocks (case-insensitive enums, YAML-date coercion, comma-separated person fields) calibrated to real-corpus conventionsdemos/meridian-capital/— 14 corpus files across the 6 document types, used as test fixtures by the schemas suite (asserts ≥12 to prevent empty-suite false-positives).codex/(Codex CLI per-developer config, mirrors.claude/) and 5 personal strategy docs (matches theanthropic-briefing.*precedent)Test plan
npm test— 578/578 passing (was 552; +26 from the new schemas suite)npx vitest run scripts/schemas/sources/sources.test.ts— 26/26 (7 dispatcher + 5 normalization + 1 ≥12-files guard + 13 per-corpus-file parse)Out of scope
The ingestion adapter that consumes these schemas (
docs/option-b-ingestion-adapter-plan.md, now gitignored) is the next coherent piece of work — the schemas + corpus land here so it has somewhere to plug into.🤖 Generated with Claude Code