Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs: add operational recipe review gate

buger432973c123c2
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index b940fee67..c86002dbc 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -31,6 +31,10 @@
- [ ] New ES-compatible behaviour has a matching YAML case under `engine/tests/es-compat-yaml/yaml/`
- [ ] Docs updated if user-visible behaviour changed
- [ ] For non-trivial changes: the applicable audit in [`docs/CONTRIBUTION_REVIEW.md`](../docs/CONTRIBUTION_REVIEW.md)
+- [ ] Operational docs/recipe audit records ordered success and failure execution,
+ lifecycle/readiness/cleanup, persistent-data transitions/reindex,
+ generated-copy propagation, and the scoped verifier (or explicitly records it
+ as not applicable)
**Not run:** <!-- name any check above you skipped, and why. This is expected and fine; hiding it is not. -->
diff --git a/docs/CONTRIBUTION_REVIEW.md b/docs/CONTRIBUTION_REVIEW.md
index ab711f7a6..8835ac212 100644
--- a/docs/CONTRIBUTION_REVIEW.md
+++ b/docs/CONTRIBUTION_REVIEW.md
@@ -32,6 +32,39 @@ At minimum, consider:
If behavior must become fail-closed, refuse only the unsafe case. Name what was detected, state whether remote or durable state changed, and give an executable recovery route. Test that the recovery route actually works; an error that merely says “retry” or recommends a now-rejected flag is not a recovery contract.
+## Operational documentation and runnable recipes
+
+Treat every shell, TOML, systemd, configuration, and copy-paste command in a
+recipe as a program, not illustrative prose. Execute the ordered success path
+and a deliberate negative control (for example, a bad checksum, missing
+artifact, or disallowed egress) and verify that the unsafe path fails closed
+before extraction, publication, or service exposure. Record the observed exit
+status and recovery command.
+
+Exercise the process lifecycle: startup, readiness/health, the first real
+operation, graceful stop, cleanup, port release, and restart from the same
+state. For persistent configuration or data, test fresh state, an existing
+state, migration/reindex requirements, unchanged rerun, and the documented
+recovery or rollback transition; distinguish what is preserved from what is
+discarded.
+
+Make inventories honest. Separate shipped artifacts from source templates and
+generated copies, and state whether a count means files, pages, variants, link
+elements, requests, routes, or something else. For completeness claims, audit
+the declared universe (all, only, none, or no-egress variants), state the tested
+and unsupported feature, platform, transport, and fallback variants, list
+excluded targets, and verify every publication copy. Document mitigations that
+are executable in the stated environment—firewall policy, source rebuild,
+service hardening, or a verified release check—not a runtime workaround the
+product does not implement.
+
+When a document is published through multiple paths, trace the publication
+topology from its source through generated pages, indexes, navigation, and
+agent-facing copies. Reuse the repository release verifier for shipped-artifact
+claims rather than replacing it with a partial check. For docs-only changes,
+run the scoped documentation/link/render verifier and record Cargo and ES-YAML
+as not applicable; do not imply that an unrelated engine suite validated prose.
+
## Durable state is not invocation state
Treat a resume journal, sealed snapshot, mapping, catalog document, index, or generation marker as authority. Treat counters, temporary files, process IDs, clocks, caches, and in-memory collections as invocation-local unless explicitly persisted.