Skip to content

Notion Factory Tasks DB → intake manifest generator #216

Description

@khaliqgant

Deliverable

A generator that queries the Factory Tasks Notion database and emits the Factory intake manifest (the NotionIntakeManifest shape consumed by src/intake/notion.ts), so rows set to Ready for Agent become dispatchable Factory tasks.

Context

Mapping (DB row → bootstrap)

  • page / authorizedPageId ← the row's own Notion page id
  • include only rows with Status = Ready for Agent (→ status: "ready")
  • title ← Task · recipe ← Recipe · summary ← page body (the brief) · reason ← Reason
  • targetsRepo + Labels{repo, labels} OR Project Path + Node{projectPath, node}
  • Route labels merged into the issue labels

Definition of done

  • CLI/script emits a manifest that passes manifestSchema (zod) validation from the live DB.
  • Only Ready for Agent rows are included; re-runs are idempotent.
  • Round-trips through runNotionIntake to publish/refresh GitHub issues.
  • Tests cover both a repo-target row and a workspace-target (projectPath/node) row.

Safety gates

Do not merge; open a PR parked in human-review. Do not auto-flip any DB row's Status — humans move a row to Ready for Agent.


Recipe: single. Filed from the Factory Tasks Notion DB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    factoryFactory automation trigger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions