LLMwiki is a persistent LLM wiki workspace with a self-improving maintainer runtime. This repository is the public-safe code/ops surface for that workspace: it packages the Make workflows, Python ops package, policies, schemas, tests, release/public-export tooling, supply-chain artifact generators, and scoped agent operating contracts that keep the private canonical vault reproducible.
The repository is intentionally not a public dump of the private knowledge
corpus. A full local vault may also contain raw/, wiki/, system/, runs/,
external-reports/, ops/operator/, and generated ops/reports/ evidence.
Those surfaces stay private or generated unless a policy-backed document says
otherwise.
- Persistent wiki maintenance contracts: source intake, registry checks, wiki/system corpus hygiene, lint/eval surfaces, and source-trace rules.
- Schema-backed ops automation: reusable Python runtime modules under
ops/scripts/*, JSON Schema contracts, templates, artifact writers, and Make targets that make reports reproducible instead of hand-edited. - Self-improvement loop: mechanism review, mutation proposals, goal-runtime admission/closeout, promotion gates, readiness evidence, and bounded runtime experiments.
- Public mirror and release replay: policy-generated public exports, corpus-free public checks, release run-ready manifests, source ZIP smoke, sealing, and promotion readiness lanes.
- Supply-chain evidence: provenance, SBOM, advisory, OpenVEX, in-toto, and Sigstore-oriented report generators wired through Make.
- Agent operating surface:
AGENTS.md,AGENTS.local.md, and.codex/agents/describe the public-safe and full-vault roles agents may use.
| Surface | Purpose | Main authority | Typical verification |
|---|---|---|---|
| Full local vault | Private operator workspace and canonical corpus operation. | AGENTS.md plus AGENTS.local.md |
Task-specific gates such as make check or make release-check |
| Public mirror/export | Corpus-free code/ops runtime for review and CI. | ops/scripts/public/public_surface_policy.py |
make public-check or make public-check-all |
| Release source ZIP | Normalized replay package for release smoke, sealing, and provenance sidecars. | Staged manifests under build/release/ |
make release-run-ready-check, make release-sealed-run-ready-check, make release-auto-promotion-ready-check |
See docs/repository-surfaces.md for the full comparison and docs/public-mirror.md for the public boundary contract.
Requirements: Python 3.12 or newer, make, and preferably uv for locked
third-party dependency replay.
make help
make dev-install
make bootstrap-preflight
make static
make test-publicFor public-mirror development, use corpus-free gates:
make test
make test-publicFor a full local vault with private corpus and generated evidence available, add the full-vault maintainer gate:
make checkFor a full developer regression, use make test-all. For release-grade
full-suite evidence, use the current-or-refresh evidence lane described in
docs/development.md. Bare
pytest is not a supported entrypoint. Use Make targets or focused
.venv/bin/python -m pytest tests/... selectors.
Trusted-CI Phase 2 evidence is intentionally additive. The
trusted-ci-evidence-bundle Make target packages existing full-suite outputs,
while trusted-ci-evidence-import verifies an attested ZIP into a diagnostic
report without promoting it or replacing any local release authority lane.
Use make help for the compact, current command index. The main families are:
| Family | Representative targets |
|---|---|
| Setup/status | make dev-install, make status, make bootstrap-preflight |
| Source checks | make static, make ruff-strict-preview, make mypy-strict-preview, make strict-preview-audit |
| Tests/report contracts | make test, make test-all, make test-report-contract-core, make test-report-contract-all |
| Public mirror | make sync-derived, make sync-derived-check, make public-check, make public-check-all |
| Mechanism/goal runtime | make auto-improve-readiness, make goal-runtime-run-admission, make release-auto-promotion-ready |
| Release | make changed-path-minimum-test, make release-run-ready, make release-post-commit-finalize, make release-sealed-run-ready |
| Review handoff | make review-archive-clean, make review-archive |
| Supply chain | make supply-chain-check, make cyclonedx-sbom, make spdx-sbom, make openvex-draft, make in-toto-statement, make sigstore-bundle |
| Work type | First check | Closeout check |
|---|---|---|
| Public docs/root docs change | make static |
make public-check |
| Ops script or test change | make static |
make test or a focused pytest selector |
| Schema, policy, or report-contract change | make static |
make test-report-contract-core |
| Public export boundary change | make sync-derived |
make public-check or make public-check-all |
| Release evidence or package behavior change | make release-run-ready-check |
make release-run-ready; add make release-sealed-run-ready when sealing is required |
| Source review handoff | make static |
make review-archive-clean |
| Supply-chain artifact change | make supply-chain-check |
The owning SBOM/provenance target plus relevant release checks |
Full-vault work that reads or mutates raw/, wiki/, system/, runs/, or
external-reports/ also needs AGENTS.local.md. Public docs,
tests, and fixtures must not assume those private surfaces exist.
ops/: control layer for policies, schemas, templates, runtime scripts, and generated report contracts.ops/scripts/: domain packages forcore,eval,registry,mechanism,release,learning,supply_chain,public, andtestautomation.mk/: Make target families for setup, static checks, tests, artifacts, registry, mechanism, release, public mirror, and supply-chain lanes.tests/: pytest contract suite for public-safe runtime behavior and generated artifact rules.docs/: public workflow and architecture documentation..github/: CI, release, dependency, and governance surfaces..codex/agents/: project-scoped subagent role surface.
Canonical imports use the domain package paths, for example
ops.scripts.release.release_status_surface. The package still keeps flat
ops.scripts.<name> compatibility aliases only for lifecycle-policy modules
and explicitly declared compatibility facades.
- docs/README.md: documentation hub and first reading path.
- ARCHITECTURE.md: current system model and boundaries.
- docs/development.md: setup, test lanes, CI tier map, and change-type gates.
- docs/repository-surfaces.md: full-vault, public export, and release source ZIP comparison.
- docs/public-mirror.md: public/private boundary, export policy, and durable report exceptions.
- docs/ops-runtime.md:
mk/,ops/scripts/, schemas, templates, and report surfaces. - docs/release.md: release evidence, source packages, sealing, and SBOM/provenance lanes.
- docs/tools.md: public helper scripts under
tools/and their supported Make entrypoints. - docs/self-improvement-runtime.md: mechanism review, mutation proposal, goal runtime, and promotion.
- ops/README.md: compact ops subsystem index.
- .codex/agents/README.md: project-scoped subagent role surface.
The project package is llm-wiki-vnext and requires Python 3.12+. Runtime
third-party dependencies are intentionally small: PyYAML and jsonschema.
Developer tooling is locked through uv.lock and installed by make dev-install.
Installed console scripts include:
llm-wiki-status
llm-wiki-finalize-run
llm-wiki-improvement-observations
llm-wiki-planning-gate-validate
llm-wiki-run-mechanism-experimentThe public surface is distributed under Apache License 2.0. Third-party notices are kept in THIRD_PARTY_NOTICES.md.