Skip to content

Repository files navigation

LLMwiki Code/Ops Runtime

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.

What This Runtime Provides

  • 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 Model

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.

Start Here

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-public

For public-mirror development, use corpus-free gates:

make test
make test-public

For a full local vault with private corpus and generated evidence available, add the full-vault maintainer gate:

make check

For 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.

Primary Operator Entrypoints

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

Common Workflows

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.

Repository Layout

  • ops/: control layer for policies, schemas, templates, runtime scripts, and generated report contracts.
  • ops/scripts/: domain packages for core, eval, registry, mechanism, release, learning, supply_chain, public, and test automation.
  • 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.

Documentation Map

Python Package And CLI 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-experiment

License

The public surface is distributed under Apache License 2.0. Third-party notices are kept in THIRD_PARTY_NOTICES.md.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages