Skip to main content

Wisk

Contract-guided agent execution and persistent learning on OKF.

wisk is an experimental agent runtime inspired by Google Research's 2026 work on compiling agent experience into persistent knowledge for skill evolution.

It uses Open Knowledge Format (OKF) to represent live execution state and persistent learning as an auditable typed knowledge graph.

Consumer quickstart

Wisk is intended to be adopted by an existing repository, not reconstructed from a long prompt.

uvx wisk init .
wisk session start-next "Do the best useful work available in this repository"

wisk init creates a managed .wisk/ bundle containing compatible normative contracts, canonical learning roles, and the standard consumer profile.

Managed runtime files can be refreshed with:

wisk upgrade .

Upgrade checks hashes before writing. If a Wisk-managed file was edited locally, the command reports a conflict and leaves the installation untouched. Consumer-owned files and runtime knowledge are never overwritten by managed upgrade.

See RFC 0005.

What Wisk does

Agent repositories face two related problems:

  1. a session can start from a prompt with weak structural guidance about what good execution must establish;
  2. useful lessons from execution are easily lost or mixed into unstructured memory.

Wisk addresses both.

A work session starts from a typed RunSpec, creates an intentionally incomplete LoopRun, and progressively records readings, goals, decisions, evidence, checks, and an outcome. okf-parser validation makes missing contract state visible while the work is still happening.

RunSpec
  → LoopRun scaffold
  → RunReading / RunGoal / RunDecision / RunEvidence / RunCheck
  → RunOutcome
  → Experience

That episodic evidence feeds the canonical three-role learning cycle:

Skill creates/refines a candidate
              ↓
Experience executes real work and records what happened
              ↓
Wiki synthesizes and compares durable evidence
              ↓
Skill revisits the candidate and decides its lifecycle
              └──────────────→ next Experience

The canonical roles are Experience, Wiki, and Skill. SkillEvaluation remains available as an optional explicit benchmark/review artifact when useful.

See RFC 0004.

Standard profile

wisk init installs an opinionated but replaceable standard profile.

  • Experience is ordinary useful work and is the on-demand fallback for an explicit session start-next call.
  • Wiki becomes eligible after three new Experiences and has higher priority than ordinary Experience.
  • Skill becomes eligible after six new Experiences. Wiki has higher priority, so synthesis runs before skill evolution when both are due.

The default rhythm is roughly:

Experience × 3 → Wiki
Experience × 3 → Wiki → Skill
repeat

Those thresholds are product defaults, not universal laws. Consumers can specialize SessionTypes, RunSpecs, context policies, and cadence without redefining the core learning roles.

Contract-guided execution

The run artifact is not a report written after the work. It exists before substantive execution begins.

create scaffold
→ validate with okf-parser
→ inspect the next unsatisfied requirement
→ perform the next useful action
→ record typed state and evidence
→ validate again
→ leave a coherent outcome or handoff

Core concepts include RunSpec, LoopRun, RunReading, RunGoal, RunDecision, RunEvidence, RunCheck, RunOutcome, and Handoff.

Consumers specialize RunSpec rather than forcing domain rules into Wisk core. Software development, journalism, legal work, research, and other domains can require different readings, evidence, checks, and result states while sharing the same runtime.

Persistent learning

  • Experience — episodic evidence distilled from real execution.
  • WikiEntry — durable knowledge synthesized across experiences.
  • AgentSkill — reusable procedural guidance; active and experimental versions may coexist.
  • SkillProposal — explicit change record/rationale for procedural evolution.
  • SkillEvaluation — optional explicit benchmark or review record.

Procedural state is reversible while evidence and durable knowledge are cumulative. A weak candidate skill can be rejected without losing the experience that showed why it failed.

CLI

Important entry points include:

wisk init [repository]
wisk upgrade [repository]
wisk context <task>
wisk session next
wisk session start-next <task>
wisk start <task> [--session-type ...]
wisk check <run>
wisk run reading|goal|decision|evidence|check|outcome ...
wisk experience preview|record ...
wisk handoff list|create|continue ...
wisk serve

Python API

from wisk import Wisk

Architecture boundary

okf-parser
  ├── Markdown/frontmatter parsing
  ├── concept identity and graph traversal
  ├── Ibis / DuckDB / NetworkX integration
  └── schema compilation and validation

wisk
  ├── RunSpec + live execution semantics
  ├── SessionType + policy/cadence composition
  ├── experience and knowledge consolidation
  ├── skill evolution lifecycle
  ├── consumer bootstrap + upgrade
  └── CLI + FastMCP runtime

Wisk does not duplicate generic parsing or validation machinery from okf-parser.

Development and dogfooding

Wisk develops itself through the same runtime. The repository's own knowledge/ tree is a dogfood consumer with additional development-specific SessionTypes and policies.

The canonical Experience/Wiki/Skill roles are deliberately policy-neutral so other repositories do not inherit Wisk's software-development assumptions.

See docs/architecture.md and docs/dogfooding.md.

Development setup

git clone https://github.com/franklinbaldo/wisk.git
cd wisk
uv sync
uv run wisk info

License

MIT © Franklin Baldo

Metadata

Release files for wisk 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wisk 0.3.0
File Size Uploaded Provenance Actions
wisk-0.3.0.tar.gz 190.1 kB With provenance Details for wisk-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wisk 0.3.0
File Interpreter ABI Platform Actions
wisk-0.3.0-py3-none-any.whl Python 3 none any Details for wisk-0.3.0-py3-none-any.whl

Total release size: 254.7 kB

Release files / wisk-0.3.0.tar.gz

Download URL wisk-0.3.0.tar.gz
Size 190.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d682920d7a457d6649ba7143ed837f7abdc36f83b0261905751094560afdf6f8
BLAKE2b-256 checksum
How to use checksums
1095f8a230c2b05dc1ccda0ec2dee236786ff9060f455aedaabf51a24e4e0f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / wisk-0.3.0-py3-none-any.whl

Download URL wisk-0.3.0-py3-none-any.whl
Size 64.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c08d319f2d8e581247b21720a1867916069db9022554c531b7acd5bab119b4d5
BLAKE2b-256 checksum
How to use checksums
d479b1fcaa7db77b1868d9e6004dca650dfc44a19e2e6898529d36ab8263809f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Security for wisk 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wisk-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page