Skip to content

fix(wiki): write-once capture and real CLI/formal-bounded verification (#874) - #879

Closed
tommy-ca wants to merge 17 commits into
research/llm-wiki-reference-eval-871from
fix/llm-wiki-safety-verify-874
Closed

tommy-ca wants to merge 17 commits into
research/llm-wiki-reference-eval-871from
fix/llm-wiki-safety-verify-874

Conversation

@tommy-ca

@tommy-ca tommy-ca commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Scope and base

Stacked on planning PR #878; implement part of #874. Avoid unreviewed wiki-engine migration.

Changes

  • In scripts/llm_wiki.py, enforce write-once xb raw-source capture, reject basename conflicts and symlink source/log directories, make exact replay idempotent, enforce local link confinement and schema-config shape, recursively index nested pages, and atomically replace generated index.md.
  • Add tests/test_llm_wiki_safety.py with negative controls for conflict, replay, concurrently contested same basename, symlink and link escape, nested pages and CLI error reporting.
  • Add bounded real-code state explorer scripts/verify_llm_wiki_model.py with 39 ordered traces plus a deliberate overwrite mutant; tests/test_llm_wiki_bounded_model.py.
  • Project-local Codex verify-llm-wiki and verify-llm-wiki-formal skills, feature maps, bounded driver and optional TLA+ model. Wire real CLI drive into offline CI.

Verification truthfulness

New CI must run against the actual PR head and pass before this stack is considered ready. No claims of TLC execution, concurrency proof, SDK/provider-backed compilation, Geronimo runtime or independent multi-model Swarm/Arena/Interrogate evidence. TLA+ model is NOT RUN. Bounded serial traces are not a proof of process/interleaving crash safety. The raw file + human log.md are still two separate writes and cannot be called transactional.

Rollback

Revert this PR; the old PStack wiki data is unchanged and no new mandatory dependency or daemon is introduced. Keep #874 open for independent review, formal checker qualification and remaining safety contracts.

Source-reviewed documentation delta and CI settlement (2026-10-31)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant