Skip to content

chore: clear working tree (Investment Source schemas + corpus + gitignore)#8

Merged
gorajing merged 3 commits into
mainfrom
chore/cleanup-working-tree
May 28, 2026
Merged

chore: clear working tree (Investment Source schemas + corpus + gitignore)#8
gorajing merged 3 commits into
mainfrom
chore/cleanup-working-tree

Conversation

@gorajing
Copy link
Copy Markdown
Owner

Summary

  • Add 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 conventions
  • Add demos/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)
  • Gitignore .codex/ (Codex CLI per-developer config, mirrors .claude/) and 5 personal strategy docs (matches the anthropic-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)
  • CI green on the PR

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

gorajing and others added 3 commits May 27, 2026 23:50
- .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>
@gorajing gorajing merged commit a45a882 into main May 28, 2026
1 check passed
@gorajing gorajing deleted the chore/cleanup-working-tree branch May 28, 2026 06:52
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