Skip to content

Define Notion data source property schema #473

@thxforall

Description

@thxforall

ISSUE-001: Define Notion data source property schema

Goal

Define the Notion data source property schema for AI-generated meeting and Telegram summaries.

This issue locks the write-back contract before implementing the webhook worker.

Scope

1. Summary data source

Required properties:

Property Type Required Notes
Title title yes Meeting or digest title
Source Type select yes meeting_audio, telegram_digest
Period Start date yes Source period start
Period End date yes Source period end
Summary rich_text yes Human-readable summary
Topics multi_select no Main topics
Decisions rich_text no Short decision summary only
Risks rich_text no Risk summary
Participants multi_select no Human-reviewed names only
Review Required checkbox yes True if any uncertainty exists
Review Status status yes Needs Review, Reviewed, Published, Blocked
Raw Transcript URL url no Object storage link
Trace ID rich_text yes Idempotency / replay tracking
Model Name rich_text yes Model used for extraction
Created At created_time yes Notion managed
Last Edited At last_edited_time yes Notion managed

2. Action Items data source

Required properties:

Property Type Required Notes
Task title yes Action item text
Summary relation yes Relation to Summary data source
Owner people / rich_text no Use rich_text if Notion users are not guaranteed
Due Date date no Nullable
Status status yes Todo, Doing, Done, Blocked, Needs Review
Confidence number yes 0.0-1.0
Evidence rich_text yes Short source quote or paraphrase
Review Required checkbox yes True if low confidence or unclear owner/date
Source Type rollup yes From related Summary
Trace ID rollup or rich_text yes Prefer rollup from Summary
Created At created_time yes Notion managed
Last Edited At last_edited_time yes Notion managed

Relation / Rollup Strategy

  • Summary data source has many Action Items.
  • Action Items must relate back to exactly one Summary.
  • Action Items roll up:
    • Source Type
    • Period Start
    • Period End
    • Trace ID

Views

Summary data source views

  1. Needs Review

    • Filter: Review Required = true OR Review Status = Needs Review
  2. Published

    • Filter: Review Status = Published
  3. By Source Type

    • Group by Source Type
  4. Recent

    • Sort by Period End DESC

Action Items data source views

  1. Needs Review

    • Filter: Review Required = true OR Status = Needs Review
  2. Open Tasks

    • Filter: Status != Done
  3. By Owner

    • Group by Owner
  4. Due Soon

    • Filter: Due Date is within next 7 days
    • Sort by Due Date ASC

Config Contract

NOTION_SUMMARY_DATA_SOURCE_ID=
NOTION_ACTION_ITEMS_DATA_SOURCE_ID=
NOTION_INTEGRATION_SECRET_REF=

Acceptance Criteria

  • Summary data source property schema is defined.
  • Action Items data source property schema is defined.
  • Relation between Summary and Action Items is defined.
  • Required rollups are defined.
  • Review views are defined.
  • Config contract uses data_source_id.
  • Schema supports idempotency via trace_id.
  • Schema avoids storing full transcript in Notion.
  • Owner field strategy is decided: people vs rich_text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions