DOCUMENT OPS

Daily re-hash audit of the contract archive for silent drift

Runs nightly across the archived contracts in S3, re-hashes every PDF against its registered baseline.

CategoryDocument Ops
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires the audit
  • ActionList all PDFs under S3 archive/ prefixAWS S3
  • ActionRe-hash each file and compare to baselinePostgreSQLPostgres
  • LogicCollect mismatches into a drift set
  • OutputWrite report to Notion and alert SlackNotionNotion

What it does

Even verified contracts can be altered in storage by a bad sync, an errant edit, or a malicious change. This scheduled audit re-walks the entire archive on a cadence, recomputes each PDF's SHA-256, and compares it to the baseline recorded at verification. Any file that no longer matches is reported as drift, catching tampering that slips in after the initial intake check passed.

When to use it

Run this as a recurring safety net over your contract archive of record, especially for compliance regimes that require periodic proof that stored documents are unchanged. Complements the per-upload sentinel by catching at-rest modifications.

How it works

  1. 1A nightly schedule triggers the audit.
  2. 2The workflow lists every PDF under the S3 `archive/` prefix.
  3. 3For each file it recomputes the SHA-256 and compares against the registered baseline in Postgres.
  4. 4A logic step collects every mismatch into a drift set.
  5. 5If any drift is found, it writes a dated findings report to Notion and posts a summary with the affected contract IDs to the compliance Slack channel; a clean run posts a green all-clear.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect AWS S3Buckets, objects, signed URLs.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect ShellRun sandboxed commands inside the workspace.
  4. 4
    Connect NotionPages, databases, comments.
  5. 5
    Connect SlackChannels, DMs, threads, mentions.
  6. 6
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  7. 7
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  8. 8
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.