| name | doc-system |
| description | Document management โ inbox scan, processing, and status monitoring. Scans configured import sources (e.g. PARA, Johnny Decimal, custom), categorizes documents, applies routing rules from workflow/contexts/doc-system.yaml plus persona destinations from identity/personas/{id}.yaml. Renames, tags, files, and audits in work/doc-system/log.md. Trigger: "/doc-system", "doc inbox", "doc process", "doc status", "process documents", "scan documents", "document queue". |
| metadata | {"scope":"core"} |
Doc-System
Document intake, processing, and monitoring.
Read the referenced file ONLY when triggered.
Guard โ run BEFORE anything else
- Read
bridge-config.yaml. If doc_sensor.enabled is not true or the
block is missing โ inform user "doc-system is not enabled in
bridge-config.yaml. Set doc_sensor.enabled: true and
doc_sensor.onedrive_root (the documents root โ name is historical,
any local folder works)" and stop.
- Resolve
${onedrive_root} from doc_sensor.onedrive_root (expand ~ and
$HOME). If the path is empty or the directory does not exist โ inform
"documents root {value} not reachable" and stop. Do not proceed with
a blank interpolation.
REQUIRED: Load routing sources
Before EVERY processing run (after the guard above):
Read("workflow/contexts/doc-system.yaml")
# Personas referenced in context.personas โ load automatically.
# Example: if context.personas contains
# freelancer: my-freelancer
# private: my-private
# then:
Read("identity/personas/my-freelancer.yaml")
Read("identity/personas/my-private.yaml")
workflow/contexts/doc-system.yaml is the single source of truth for
areas, naming, tags, routing rules, and anti-patterns. Personas supply
concrete target paths via destinations:.
NEVER routing rules from memory โ ALWAYS from context.yaml!
For edge cases, additionally read the local _INFO.md of the affected area
(${onedrive_root}/<areas-root>/<area>/_INFO.md โ path convention
from context.areas[*].path) โ as a detail hint for human maintenance, not
as an override for context.yaml.
Decision Tree
User wants to...
โโโ Scan inbox / show what's new โ Read references/inbox.md
โโโ Process documents โ Read references/process.md
โโโ Check document queue status โ Read references/status.md
โโโ Questions about doc system โ Answer from this file
Path resolution
- Read
bridge-config.yaml โ doc_sensor.onedrive_root
- Expand
~ to $HOME
- Areas root comes from
context.areas[*].path (e.g. 2_AREAS/ for PARA,
20_<area>/ for Johnny Decimal, or anything for custom setup)