Corpus Settings¶
ORCA corpus support uses both global and project-level settings.
The model is intentionally explicit so access rules are inspectable and failures are predictable.
Global Settings¶
Suggested global shape:
yaml
corpus:
enabled: false
path: null
reference_enabled: false
writeback_enabled: false
writeback_modes: []
indexing_enabled: true
last_indexed_at: null
include_patterns: []
exclude_patterns: []
suggest_to_new_projects: false
Global Field Meanings¶
enabled: master switch for persistent corpus supportpath: canonical configured folder pathreference_enabled: whether ORCA may read the corpuswriteback_enabled: whether ORCA may write into the corpus at allwriteback_modes: allowed write-back categories such asappend_only_notes,summaries, orindex_receiptsindexing_enabled: whether ORCA may maintain a reusable view of the corpus structurelast_indexed_at: last successful index timestamp if tracking existsinclude_patterns: optional narrowing rulesexclude_patterns: optional exclusion rulessuggest_to_new_projects: whether new projects should inherit the corpus as an available suggestion instead of requiring manual setup each time
Project Settings¶
Suggested project shape:
yaml
corpus:
inherit_global: true
enabled: null
reference_enabled: null
writeback_enabled: null
writeback_modes: []
local_path_override: null
disable_reason: null
Project Field Meanings¶
inherit_global: whether the project starts from global corpus settingsenabled: explicit project override for corpus usereference_enabled: explicit project override for read/reference accesswriteback_enabled: explicit project override for write-back access within global limitswriteback_modes: narrower project-level write-back allowancelocal_path_override: project-specific path override when a different corpus is requireddisable_reason: optional note explaining why the project turns corpus support off
Default State¶
Disabled by default means all of these hold until the user opts in:
enabled: falsereference_enabled: falsewriteback_enabled: false- no path-based reference behavior
- no write-back behavior
Recommended Config Logic¶
- Enabling corpus support without a valid path should fail closed.
- Enabling write-back without reference access should be rejected.
- Project settings may narrow access but should not widen access beyond global policy.
- Changing the configured path should mark the previous index stale and require re-indexing before corpus-derived confidence is treated as current.