This release is a pre-release and may not be stable for production use.
RPOS — Responsibility Pathway Operating System
Executable responsibility pathways in Python, with critical responsibility invariants machine-checked in Lean 4.
RPOS is an independently engineered, open-source Responsibility Pathway OS for consequential AI and automation workflows. It combines a Python/SQLite executable runtime with a Lean 4 Formal Assurance Surface for selected invariants covering Human Gate, operational authority, dispatch, external-effect verification, uncertainty, recovery, resumption, and completion.
RPOS is not a model wrapper, a policy document, or a logging layer. It keeps responsibility-bearing state executable across:
proposal -> Human Gate -> authorization -> dispatch -> effect verification -> uncertainty -> repair -> explicit resumption -> completion
Its core rule is simple: authorization is not execution, an execution receipt is not proof of external effect, and failure or uncertainty must not erase responsibility.
What is implemented now
The public alpha includes:
- a Python/SQLite operational state machine with durable responsibility state;
- explicit Human Gate and operational-authority boundaries;
- bounded dispatch attempts, restart/reconciliation, repair/resume, and Human Return;
- external-effect separation so a successful transport receipt does not silently become completion;
- CLI and executable evaluation scenarios;
- Responsibility State Envelope templates with
authority_effect: "none"; - reproducible public-export, SBOM, and release-evidence generation;
- Windows/Python field-portability checks; and
- a reproducible Lean 4 project machine-checking selected responsibility invariants.
Python × Lean 4 — executable responsibility with machine-checked invariants
RPOS exposes a public theorem-to-runtime-test crosswalk in formal/assurance-catalog.json:
operational risk -> Lean theorem -> Python runtime test -> model scope -> proof ceiling
Current machine-checked assertions include:
RPOS.human_gate_cannot_dispatch_directly— a Human Gate is not direct dispatch authority;RPOS.only_verified_enters_completed— onlyVERIFIEDmay directly enterCOMPLETED;RPOS.effect_unknown_is_not_completed— unresolved external-effect uncertainty is not completion;RPOS.ready_to_resume_is_not_authorized— repair readiness is not execution authority;RPOS.receipt_is_not_effect_verification— a transport/API receipt is not external-effect verification;RPOS.model_proposal_is_not_authority— a model proposal is not operational authority.
These are real Lean 4 theorems over declared bounded models. They do not imply that the entire Python runtime, deployment environment, legal responsibility, organizational authority, or arbitrary external system is formally proven.
That boundary is deliberate: formal proof, executable implementation evidence, and real external-effect evidence are different evidence classes and must not impersonate one another.
Independent Responsibility Pathway lineage
RPOS is independently engineered within the Responsibility Pathway lineage:
Responsibility Pathway Model / Paper
-> Responsibility Pathway Design
-> Responsibility Pathway Engineering
-> Responsibility Pathway Runtime
-> RPOS — Responsibility Pathway Operating System
-> formal + executable + operational evidence
-> upstream revision
The lineage centers on responsibility continuity across judgment, authorization, execution, uncertainty, repair, return, resumption, and residual ownership. RPOS is the operating layer: RPOS owns operation, not intelligence. Models remain replaceable proposal sources; they do not become authority merely by proposing an action.
Public Alpha status
Version: 0.1.0a2 — Early Public Alpha / Executable Preview
responsibility-pathway-os==0.1.0a2 is the current release candidate. The previous 0.1.0a1 alpha is publicly available on PyPI; 0.1.0a2 will be published only after its exact source commit passes the declared release route.
Python 3.11+ is required.
python -m pip install responsibility-pathway-os==0.1.0a2
rpos --db rpos.db boot
The installation command above becomes valid when 0.1.0a2 is published to PyPI. Until then, use a source checkout for evaluation.
python -m pip install -e .
python examples/quick_start_end_to_end.py
This alpha is intended for engineering evaluation and bounded pilots, not unattended production operation.
Why RPOS exists
Agent systems can receive a successful tool/API receipt while the real-world effect is absent, partial, duplicated, ambiguous, or unverifiable. They can also lose the human decision boundary during retry or recovery.
RPOS keeps those cases explicit:
AUTHORIZEDdoes not mean execution has started or succeeded.DISPATCHINGpreserves an issued but unresolved attempt.EFFECT_UNKNOWNpreserves uncertainty instead of reporting false success.REPAIR_REQUIREDmakes recovery responsibility explicit.READY_TO_RESUMEmeans repair readiness, not permission to execute.- explicit resumption restores authority before a fresh dispatch attempt.
COMPLETEDfollows bounded verification, not merely a transport receipt.
Core responsibility states
PROPOSED, HUMAN_GATE, AUTHORIZED, DISPATCHING, EFFECT_UNKNOWN, VERIFIED, REPAIR_REQUIRED, READY_TO_RESUME, COMPLETED, DENIED, ABORTED.
Executable examples
The repository includes eight executable scenarios:
python examples/happy_path_verified.py
python examples/human_gate_denied.py
python examples/effect_unknown_restart_reconcile.py
python examples/quick_start_end_to_end.py
python examples/idempotency_replay_guard.py
python examples/human_return_reauthorization.py
python examples/adapter_exception_containment.py
python examples/reconciliation_unresolved_human_return.py
They exercise bounded paths for approval/denial, EFFECT_UNKNOWN, restart, reconciliation, repair, explicit resume authority, replay protection, adapter exceptions, and Human Return. They are executable evidence for those scenarios only.
Lean 4 Formal Assurance Surface
The formal project is pinned to Lean 4.32.2.
cd formal/lean
lake build
Current modules include:
RPOSState.lean— state transitions, Human Gate, completion, uncertainty, resume authority;RPOSReachability.lean— bounded multi-step reachability and no-direct-shortcut properties;RPOSEvidenceBoundary.lean— separation among authorization, receipt, verification, evaluation, and dependency evidence;RPOSPacketBoundary.lean— no-authority-effect properties for responsibility envelopes;RPOSOperationalBoundary.lean— model proposal, human authorization, receipt, external observation, and operational responsibility;RPOSTransparencyBoundary.lean— transparency/evidence distinctions.
The public Formal Assurance Viewer is generated from the exact site commit after the Lean project is machine-checked and maps operational risks to theorem names, Python runtime tests, source identity, model scope, and proof ceiling.
Responsibility State Envelope
templates/catalog.json contains reusable neutral-role templates for operation proposal, Human Gate decision, verification contract, repair plan, resume authorization, dependency evidence, external evaluation evidence, and Human Return.
Every envelope has authority_effect: "none": creating or validating an envelope never authorizes, dispatches, verifies, completes, or resumes an operation.
Verification route
The release route includes:
- the complete Python test suite;
- all eight source examples;
- wheel and sdist build and clean-install checks;
- installed CLI/API checks outside the repository working directory;
- exact-HEAD public-export reconstruction;
- source-bound CycloneDX SBOM and SHA-256 release evidence;
- public-source likely-secret scanning;
- Windows and Ubuntu checks on Python 3.11 and 3.12;
- pinned Lean 4
lake build; - exact-head Formal Assurance manifest generation; and
- GitHub Pages validation and deployment with machine-checked assurance and verified architecture visuals.
Passing those checks establishes the named engineering evidence within their declared scope. It does not automatically establish production readiness, legal compliance, universal safety, organizational authority, arbitrary external-system correctness, or implementation-wide formal correctness.
Claim boundary and promotion
RPOS separates two different things:
- Current Evidence Boundaries — claims that may advance when declared evidence is obtained and reviewed;
- Permanent Responsibility Boundaries — authority or responsibility that software should not create by itself.
Evidence-limited claims currently include production readiness, broader platform support, implementation-wide formal conformance, stronger software-supply-chain trust, and domain effectiveness beyond the published scenarios.
Permanent boundaries include legal/regulatory authority, correctness of arbitrary external systems, receipt-as-effect proof without a verification contract, transfer of final organizational responsibility to software, and universal exactly-once guarantees for arbitrary systems lacking the required contract.
See docs/en/claim-boundary-promotion.md.
Direction
The long-term goal is larger than the current alpha: make responsibility-bearing operational state easier to execute, inspect, test, formally reason about, recover, and return to accountable humans or institutions across real AI-enabled workflows.
That is a goal, not a claim of completion. Each stronger public claim must earn its promotion through implementation, evidence, and review.
Project surfaces
- GitHub Pages product site and architecture maps
site/assurance.html— Formal Assurance Viewerformal/assurance-catalog.json— canonical theorem/runtime-test crosswalkproduct-status.json— machine-readable release and claim statedocs/en/public-alpha-evaluation-guide.md— third-party evaluation routeCHANGELOG.md— release historySECURITY.md,SUPPORT.md,CONTRIBUTING.md
License
MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file responsibility_pathway_os-0.1.0a2.tar.gz.
File metadata
- Download URL: responsibility_pathway_os-0.1.0a2.tar.gz
- Upload date:
- Size: 49.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
614472025540db6c4dff228d0ab49d1160b24668c0bb940d5352b078f2915ea2
|
|
| MD5 |
d169775e723ed1634dca70ac72678954
|
|
| BLAKE2b-256 |
722f2c81957bf02eb370c57f605303f34043ef0e9f0fff876879ae48ee788bda
|
Provenance
The following attestation bundles were made for responsibility_pathway_os-0.1.0a2.tar.gz:
Publisher:
release.yml on YutoriKomeiji/responsibility-pathway-os
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
responsibility_pathway_os-0.1.0a2.tar.gz -
Subject digest:
614472025540db6c4dff228d0ab49d1160b24668c0bb940d5352b078f2915ea2 - Sigstore transparency entry: 2633758681
- Sigstore integration time:
-
Permalink:
YutoriKomeiji/responsibility-pathway-os@fd0deda56e2903d50ae2053caf73aba2711768ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/YutoriKomeiji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd0deda56e2903d50ae2053caf73aba2711768ea -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file responsibility_pathway_os-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: responsibility_pathway_os-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83251e34ce847858b4a93535d1f309abdb125587d1b4d184876cce76203f9a31
|
|
| MD5 |
40ef84f941aa36c72377702d63ccf626
|
|
| BLAKE2b-256 |
29f68ec6258bc58e561f37ca4bca9f789179162e9f540c83bb095b1a9a57323f
|
Provenance
The following attestation bundles were made for responsibility_pathway_os-0.1.0a2-py3-none-any.whl:
Publisher:
release.yml on YutoriKomeiji/responsibility-pathway-os
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
responsibility_pathway_os-0.1.0a2-py3-none-any.whl -
Subject digest:
83251e34ce847858b4a93535d1f309abdb125587d1b4d184876cce76203f9a31 - Sigstore transparency entry: 2633758723
- Sigstore integration time:
-
Permalink:
YutoriKomeiji/responsibility-pathway-os@fd0deda56e2903d50ae2053caf73aba2711768ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/YutoriKomeiji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd0deda56e2903d50ae2053caf73aba2711768ea -
Trigger Event:
workflow_dispatch
-
Statement type: