Metadata-Version: 2.5
Name: knos
Version: 0.3.24
Summary: The neutral meter for AI agent work: neither side keeps the count.
Project-URL: Homepage, https://github.com/drexthealpha/Knos
Project-URL: Repository, https://github.com/drexthealpha/Knos
Project-URL: Issues, https://github.com/drexthealpha/Knos/issues
Author-email: drexthealpha <zulibro1999@gmail.com>
License: MIT License
        
        Copyright (c) 2026 knos contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agent-payments,ai-agents,attestation,claude-code-hooks,coding-agents,escrow,github-actions,invoice-reconciliation,metering,neutral-meter,oidc,sibyl,solana,verification
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Version Control :: Git
Requires-Python: >=3.10
Requires-Dist: rich>=13
Requires-Dist: sibyl-memory-client>=0.8.1
Requires-Dist: solders>=0.29
Requires-Dist: tomli>=2; python_version < '3.11'
Requires-Dist: typer>=0.12
Provides-Extra: dev
Requires-Dist: cryptography>=42; extra == 'dev'
Requires-Dist: pytest-xdist>=3; extra == 'dev'
Requires-Dist: pytest>=7; extra == 'dev'
Requires-Dist: pyyaml>=6; extra == 'dev'
Description-Content-Type: text/markdown

<!-- Written by scripts/bump_version.py from README.md, with links pinned to the tag: edit README.md. -->
<h1>
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/drexthealpha/Knos/v0.3.24/web/brand/wordmark-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/drexthealpha/Knos/v0.3.24/web/brand/wordmark-light.svg">
    <img alt="Knos" src="https://raw.githubusercontent.com/drexthealpha/Knos/v0.3.24/web/brand/wordmark-light.svg" height="84">
  </picture>
</h1>

**The neutral meter for AI agent work: neither side keeps the count.**

Both sides close invoices on evidence both verify.

Of 241 merged agent pull requests claiming passing tests, 9 failed a test, build, lint or type check.

[Check](https://drexthealpha.github.io/Knos/) · [Judges](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/JUDGES.md)

## The claim

Two parties who distrust each other compute the same bill from evidence a third party signed.
The program releases the money on that signature, with no company and no oracle in the middle.

Limits, in one line: Solana devnet, test USDC, no outside users yet ([docs/DISCLOSURE.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/DISCLOSURE.md)).

## The meter: two ledgers, one bill

1. Buyer and supplier each keep their own ledger of the evaluations GitHub signed.
2. Each runs `knos meter reconcile` on its own copy and rebuilds the same statement, line for line.
3. A line's policy is met, or it is disputed, duplicate or without enough evidence; only a line whose policy is met is billed. Each line then shows its four steps: policy satisfied, parties accepted, payment authorised, settled ([docs/METER.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/METER.md)).

## The money: released on a signature

1. The buyer fixes the work, the budget and the acceptance terms before it starts; the terms are hashed into the order.
2. GitHub signs the workflow run that judged the work, and a Solana program checks that signature itself before it pays, in test USDC. The smallest example is a bounty: a maintainer comments `/knos fund 20 checks: test`, and a merge with `test` passing pays the author.
3. Why Solana: Money is released with no custodian, and the count is anchored where neither side can alter it. A receipt verifies with no chain.

## The number

Of 241 merged agent pull requests that claimed passing tests, 9 had a failed test, build, lint or type-check job at the head commit (3.7%, 95% interval 2.0% to 6.9%; [docs/backtest.json](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/backtest.json)); 19 had a failed check of any kind (7.9%).
The scan recorded 16 and 30; 11 of the 30 were excluded on a second reading: not merged into the default branch, or the failure or the claim did not hold ([docs/index_review.json](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/index_review.json), method [version 1](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/INDEX_METHOD.md), counted by `scripts/backtest.py`).
The second number: 17.8% of first such pull requests, 147 of 826 repositories ([docs/BENCH.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/BENCH.md)). A failed check is GitHub's record, not a judgment of why it failed.

## For a judge

Start at [the release manifest](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/MANIFEST.md): source, build hash, deployed version, transactions, fee schedule.
The witnessed transaction (9 Oct, Knos 0.3.23, own repository, test USDC, one step fixed by hand): [funded](https://explorer.solana.com/tx/3UaY22WKexigMpkVhibfeMdNgBiyybWm2Z4LuLskKGbNUDXV34yYWyH42atxFjELbrqSgoVs6TwpFzSQwhfXqzgM?cluster=devnet) · [wrong work refused](https://github.com/drexthealpha/knos-witness/actions/runs/37890511112/job/113690226126) · [paid](https://explorer.solana.com/tx/2PtmKUrQHKPARZE4nr35Te559NGQSG7tSHUfwzcKCAjL7gzvQ76fNTVLMWvq8mcZLxd27tbyTe31mCk2PxEGfAqa?cluster=devnet) · [replay paid nothing more](https://github.com/drexthealpha/knos-witness/pull/10#issuecomment-6075196710) · [the record](https://github.com/drexthealpha/knos-witness/blob/acaa854d241c2e030f521b6f5603c8f43c93bab6/witness.json).
Everything else is one click from [docs/JUDGES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/JUDGES.md).

## What is real today

<!-- bench:today -->
| What | Today | Read from |
|---|---|---|
| This copy | Release 0.3.24, October 2026. A copy naming an older release, or another product, is out of date | [CHANGELOG.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/CHANGELOG.md); the newest: [PyPI](https://pypi.org/project/knos/) |
| Reproduced by someone else | 0 of 241 | [docs/CAPABILITIES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md), the rows "reproduced by someone else" |
| Exercised at the public devnet program ids | 20 of 241: GitHub token verification, funding from a wallet, refund at the deadline, work orders, an order paying up to four payees, orders judged by hidden tests, auto-accepted orders, a holdback released after its warranty, top-ups, single-use tokens, a counted batch of evaluations, the seller's own count, a passkey funder, the passkey relay, the site's Buy page, an x402 order, strict JSON in the verifier, an outcome that is not code, ES256 tokens in one transaction, the presentation grace | [docs/CAPABILITIES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md), the rows "exercised on devnet" |
| Deployed at the public devnet program ids, no transaction recorded | 9 of 241: GitLab token verification, the key guardian, funding by one comment, pay on merge, holding pay for a payee with no wallet, pause, one counted evaluation, a payee's passkey wallet, the upgrade gate | [docs/CAPABILITIES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md), the rows "deployed on devnet" |
| Tested here only | 209 of 241, each with the test its row names | [docs/CAPABILITIES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md), the rows "tested locally" |
| Written, not tested | 3 of 241 | [docs/CAPABILITIES.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md), the rows "implemented" |
| Outside funders | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 1 |
| Outside repositories | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 2 |
| Outside payees | 1, on tasks Knos funded itself | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 3 |
| Payments between unrelated accounts | 3, on tasks Knos funded itself | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 4 |
| Buyer interviews held | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 5 |
| Letters of intent | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 6 |
| Reproductions signed by GitHub | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 7 |
| Outside programs reading the verifier | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 8 |
| Shadow counts published | 0 | [docs/submission/NUMBERS.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/submission/NUMBERS.md), row 9 |
| Paying customers | 0 | [docs/DISCLOSURE.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/DISCLOSURE.md) |
| Revenue | 0; test USDC is not money | [docs/MARKET.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/MARKET.md) |
| Outside security review | none | [docs/ASSURANCE.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/ASSURANCE.md) |
| Key holders | one person holds every key; an upgrade waits 48 hours in public | [docs/GOVERNANCE.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/GOVERNANCE.md) |
| Network and money | Solana devnet, test USDC; mainnet is not touched | [docs/SECURITY.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/SECURITY.md) |
<!-- /bench:today -->

## Read more

`uvx knos shadow invoice.csv`: the same check from a terminal, on an invoice of your own.
[docs/STORY.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/STORY.md): one task in seven steps, each with its evidence.
[docs/MANIFEST.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/MANIFEST.md): this release on one page: source, the build live at each public program id, every capability's stage, the limits.
[docs/README.md](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/README.md): every document, under six questions.

---

Below this line: records that scripts write from their sources, and the licence. Nothing here is typed by hand.

<!-- programs:start -->
| program | address | on devnet, as [`docs/capabilities.json`](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/capabilities.json) records it |
|---|---|---|
| `knos-oidc`, the verifier | `FkwZdsYCmzicJMtHLTkPK76bYNVG4WNwkWJBiVWNtF3W` | runs `2.2` |
| `knos-pay`, the escrow | `5y7iWJ1VAMJjnnWbbdo2a2PsWJEwTExSNpzrvQSEnS8k` | runs `2.2` |
| `knos-meter`, the count | `FUMKkcE95x2kZUj1zZTCbgcYBmJ3WXPHL8pyA8J6anX` | runs `1.1` |
| `knos-passkey`, a wallet from a passkey | `FQPX9i5kQxLYKZyyPgM2fVK9am3w1LSk1Cuoer1sSY85` | runs `1.1` |
<!-- programs:end -->

This page names no time for an upgrade, so that it is true before and after one. Whether a proposal is pending, has
executed or was withdrawn is read from the chain by `knos status`, the site's banner and the site's
[upgrade record](https://drexthealpha.github.io/Knos/upgrades.json) ([`web/upgrades.json`](https://github.com/drexthealpha/Knos/blob/v0.3.24/web/upgrades.json) is the
committed copy). The first deployment ([`programs`](https://github.com/drexthealpha/Knos/tree/v0.3.24/programs)) has no upgrade authority and stays as a record; nothing
new is funded there.

<!-- capabilities:start -->
**Reproduced by someone else:** none recorded yet. **Exercised on devnet:** `verify_github`, `fund_from_wallet`, `refund`, `work_orders`, `order_pay`, `tests_mode`, `order_auto_accept`, `holdback_release`, `top_up`, `single_use_tokens`, `meter_batch`, `meter_seller_claim`, `passkey_funder`, `passkey_fund_relay`, `buyer_page`, `x402_knos_order`, `oidc_strict_json`, `outcome_not_code`, `es256_tokens`, `presentation_grace`. **Deployed on devnet:** `verify_gitlab`, `key_guardian`, `fund_by_comment`, `pay_on_merge`, `hold_and_bind`, `pause`, `meter_single`, `passkey_payee_wallet`, `upgrade_gate`. Everything else is tested locally, implemented or not built: [the table with the evidence](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/CAPABILITIES.md) has one row for each capability, from [`docs/capabilities.json`](https://github.com/drexthealpha/Knos/blob/v0.3.24/docs/capabilities.json). Deployed and exercised are counted only at the public program ids; what the 0.3.14 rehearsal ran at staging addresses of its own is in the note of each capability it ran, with its transaction.
<!-- capabilities:end -->

MIT, all of it. Built by drexthealpha. Its memory engine is [Sibyl](https://sibyllabs.org).
<!-- mcp-name: io.github.drexthealpha/knos -->
