Agent ingestion pipeline
Celorga ingestion keeps external context as reviewable source material before anything becomes durable memory or canonical notes.
Data model
Raw connector output uses the versioned ingestion record format and is stored in a raw/source zone such as raw/slack/, raw/gmail/, or a configured equivalent.
Required raw capture fields:
sourceTypeslack,gmail,meeting,linear,github,note, ordemoexternalIdstable upstream id, e.g. Slack timestamp or GitHub issue id
authorsone or more source authors
capturedAt/occurredAtingestion time and source event time
visibilityandsensitivitysource access/safety hints
contentHashSHA-256 of normalized raw content
sourceRefsource URL/ref when available
rawRefstable provenance ref,
sourceType:externalId@sha256:contentHashcontentnormalized raw text/body
Derived review artifacts are generated beside, not over, durable notes. They include:
summary candidates
decisions
TODO candidates
entity candidates
claims
source citations back to
rawRefCELORGA_REVIEW_STATUS/ artifact metadata so promotion is explicit
Pipeline
A source connector emits a raw capture.
Celorga writes the raw capture under the raw/source zone using a deterministic filename derived from
sourceType,externalId, andcontentHash.Celorga generates a review artifact under a review zone with provenance and review status.
A human or agent reviews selected facts and promotes only intentional durable notes/TODOs.
Idempotency
Re-ingesting the same sourceType + externalId + normalized content hash writes the same raw and review paths, so repeated runs update/dedupe instead of duplicating files. If the upstream item changes, the content hash changes and a new capture/review artifact preserves the source version boundary.
Demo fixture
The provider-free demo implementation lives in src/ingestionPipeline.ts. It accepts one raw capture input and produces:
raw/<source>-<external-id>-<hash>.jsonreview/<source>-<external-id>-<hash>.org
The review artifact contains CELORGA_ARTIFACT_SCHEMA, CELORGA_PROVENANCE, CELORGA_SOURCE_HASHES, and CELORGA_REVIEW_STATUS: review-required.