Wiki Ingest
Append a source to a vault's llm-curated/log.md (default) or to a dedicated page under llm-curated/ (via --target). Per Atlas v2.1 §2 + §3.
The chat subscriber already auto-ingests every user→ORC chat message; this skill is for explicit manual ingest:
- TL promoting a decision to
llm-curated/decisions/<date>-<slug>.md - ORC archiving a synthesis memo into
~/.crewly/global-wiki/llm-curated/ - A worker filing a
record-learning-style pattern page
Inputs
| Flag | Required | Description |
|---|---|---|
| --vault <path> | yes | Absolute vault root (must contain SCHEMA.md). |
| --source-type <t> | yes | One of: user_chat, slack_message, spec_file, pr_merge, record_learning, task_verified. |
| --source-ref <ref> | yes | Stable reference for audit (URL, file path, message id, …). |
| --source-body <text> | yes | Body content to ingest. |
| --caller <sess> | no | Session/user that authored the source (defaults to source-ref). |
| --target <relpath> | no | Override the default llm-curated/log.md. Must NOT be inside a frozen folder. |
Output
{
"success": true,
"result": {
"ok": true,
"pagesWritten": ["llm-curated/log.md"],
"logEntry": "## [ISO] sourceType | caller ...",
"frozenPathsTouched": []
}
}
Failure modes
422 frozen_path— target lives under ahardcoded:(frozen) folder. Theoutcome.frozenFoldersfield lists every frozen path in the vault.404 schema_missing— vault has noSCHEMA.md.400 invalid_input | empty_body— missing/invalid args.
Example: ingest a TL-promoted decision
bash execute.sh \
--vault ~/.crewly/teams/ad923b66-19dd-4d73-9c92-dc1107d37501/wiki \
--source-type user_chat \
--source-ref slack://thread/D0ABC/1779363330.313849 \
--source-body "Pricing locked at \$999 setup + \$799/month." \
--caller user/steve \
--target llm-curated/decisions/2026-05-22-crewly-pro-pricing.md
Page contract (2026-09-19 — the vault is a knowledge base, not a log)
log.md (the default target) is append-only and ungated: put "maybe useful" there. A page (--target llm-curated/<folder>/<name>.md) is refused (422 retention_gate) unless it carries:
| Flag | Meaning |
|---|---|
| --title | The page's name |
| --summary | One line: the conclusion — what this means for us, not what the source said |
| --keep-because | changes_decision · contradicts · hard_fact · reusable_method |
Optional: --tags a,b, --visibility teacher,admin (roles that may read it), --replace (rewrite instead of append).
What else happens on a page write:
- Write policy: if your role is
proposed_onlyin the vault's SCHEMA.md, the page lands inllm-curated/_proposed/until a canonical role accepts it (wiki-review-proposals). - Confidentiality: credentials are always refused (
422 secret_detected, pattern name only); personal data follows the vault'sprivacy.pii(allow|mask|refuse). - Index: the page's line in
llm-curated/index.mdis created/updated (this is whatwiki-queryreads first). - History: the prior version is snapshotted under
.wiki-history/with your session name. - A changed conclusion is never overwritten: write the new page, then
wiki-supersede.