altimate-receipts 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +251 -0
- package/dist/chunk-RQLUZ6FQ.js +262 -0
- package/dist/chunk-RQLUZ6FQ.js.map +1 -0
- package/dist/chunk-SUAQDKUV.js +529 -0
- package/dist/chunk-SUAQDKUV.js.map +1 -0
- package/dist/chunk-UHI6BGLE.js +4569 -0
- package/dist/chunk-UHI6BGLE.js.map +1 -0
- package/dist/cli.js +1523 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.js +293 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/server.js +235 -0
- package/dist/mcp/server.js.map +1 -0
- package/package.json +67 -0
- package/schema/agent-execution-receipt-v1.json +248 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# 🧾 receipts
|
|
4
|
+
|
|
5
|
+
**Agent-work verification — not code review.**
|
|
6
|
+
|
|
7
|
+
A deterministic, cross-agent **Report Card** of what your coding agent *actually did* —
|
|
8
|
+
read straight from the agent's own transcript, on your machine.
|
|
9
|
+
|
|
10
|
+
[](https://github.com/AltimateAI/altimate-receipts/actions/workflows/ci.yml)
|
|
11
|
+
[](./LICENSE)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
# 30-second start — no install, no account:
|
|
17
|
+
npx altimate-receipts # Report Card for your most recent agent session
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
> **Adding it to a repo's PRs?** `receipts init` scaffolds the CI check, or see
|
|
21
|
+
> [`docs/onboarding-internal.md`](./docs/onboarding-internal.md) — install, the pre-push
|
|
22
|
+
> hook, and the one-block PR check.
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
╔══════════════════════════════════════════════════════════════════════════╗
|
|
26
|
+
║ 🧾 RECEIPTS — Agent Report Card proof, not vibes ║
|
|
27
|
+
╚══════════════════════════════════════════════════════════════════════════╝
|
|
28
|
+
|
|
29
|
+
Session Add rate limiting to the billing service
|
|
30
|
+
Agent claude-code · claude-opus-4-8
|
|
31
|
+
Scope 1h 4m · 412 msgs · 318 tools · 6M tok · $24.18
|
|
32
|
+
|
|
33
|
+
┌─ VERDICT ────────────────────────────────────────────────────────────────┐
|
|
34
|
+
│ F ⛔ DO NOT MERGE WITHOUT REVIEW │
|
|
35
|
+
│ 2 critical · 3 high · 1 medium │
|
|
36
|
+
└──────────────────────────────────────────────────────────────────────────┘
|
|
37
|
+
|
|
38
|
+
CRITICAL
|
|
39
|
+
⛔ Destructive op: rm -rf ./dist ./build ×2
|
|
40
|
+
data-loss risk
|
|
41
|
+
⛔ Modified the grader/harness: score.py
|
|
42
|
+
gamed the eval · score.py
|
|
43
|
+
HIGH
|
|
44
|
+
⚠️ Force-pushed over remote history
|
|
45
|
+
history overwrite
|
|
46
|
+
⚠️ Weakened the checker config: tsconfig.json
|
|
47
|
+
checker defanged · tsconfig.json
|
|
48
|
+
⚠️ Stuck loop wasted $3.10 / 7m
|
|
49
|
+
$3.10 · 7m
|
|
50
|
+
MEDIUM
|
|
51
|
+
🔍 6 turns drove 57% of the $24.18 spend
|
|
52
|
+
$13.78
|
|
53
|
+
|
|
54
|
+
EVIDENCE
|
|
55
|
+
58 files changed · 146 edits · 92 commands · tests ran ✓ · 4 destructive ops · cache 0%
|
|
56
|
+
|
|
57
|
+
──────────────────────────────────────────────────────────────────────────
|
|
58
|
+
✅ Verified by Receipts · deterministic · 0 model calls · evidence, not judgement
|
|
59
|
+
what it did — not whether it's correct. your tests are the oracle for success.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
> _Illustrative output. Run `receipts` on your own Claude Code sessions to see the real card._
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## The problem
|
|
67
|
+
|
|
68
|
+
Agents now write most of the code. It is no longer humanly possible to read every line
|
|
69
|
+
of the agent's **output** — the diff — and a long session hides far more than a diff
|
|
70
|
+
shows: commands run, files touched then reverted, tests that "passed," destructive ops,
|
|
71
|
+
quietly weakened checkers.
|
|
72
|
+
|
|
73
|
+
So review the agent's **work**, not its output. Instead of re-reading every line, you
|
|
74
|
+
read a faithful, deterministic account of what the agent *actually did* — and spend your
|
|
75
|
+
attention where the account flags something.
|
|
76
|
+
|
|
77
|
+
This is a new category: **agent-work verification.** It is **not** code review and never
|
|
78
|
+
grades code quality. Your tests remain the oracle for correctness; Receipts is the
|
|
79
|
+
oracle for *what happened*.
|
|
80
|
+
|
|
81
|
+
## What a Receipt is
|
|
82
|
+
|
|
83
|
+
**receipts** reads the agent's own local transcript and prints a deterministic,
|
|
84
|
+
`file:line`-cited account of what the agent did:
|
|
85
|
+
|
|
86
|
+
- **What changed** — files, edits, the actual bodies.
|
|
87
|
+
- **What ran** — commands, and whether the tests actually ran.
|
|
88
|
+
- **What it touched that it shouldn't have** — destructive ops, history rewrites,
|
|
89
|
+
test/eval tampering, and other research-backed reward-hacking patterns.
|
|
90
|
+
- **Claims vs. evidence** — what the agent *said* it did, checked against the transcript.
|
|
91
|
+
|
|
92
|
+
Every finding is `file:line`-cited or it doesn't ship. Nothing leaves your machine.
|
|
93
|
+
|
|
94
|
+
→ **[What problems Receipts solves](./docs/problems.md)** — the before/after for each
|
|
95
|
+
capability, shipped and planned.
|
|
96
|
+
|
|
97
|
+
## Why you can trust it
|
|
98
|
+
|
|
99
|
+
The whole pitch collapses if the account itself is wrong, so trust is engineered in:
|
|
100
|
+
|
|
101
|
+
- **Deterministic — zero model calls.** Findings come from regex/heuristic rules over
|
|
102
|
+
the transcript. Same input → same output. There is no LLM in the product path to
|
|
103
|
+
hallucinate.
|
|
104
|
+
- **Near-zero false positives, now *measured*.** A single false alarm and you go back to
|
|
105
|
+
reading diffs, so this is treated as existential and tested, not asserted: **precision
|
|
106
|
+
100% on a 70-session labeled corpus**, and a **1% flag rate over 1,200 real local
|
|
107
|
+
sessions** in the out-of-sample field scan — every flag manually adjudicated as a true
|
|
108
|
+
positive on genuine work, **zero confirmed false positives**. See
|
|
109
|
+
[`docs/eval.md`](./docs/eval.md).
|
|
110
|
+
- **Evidence, not judgement.** Receipts reports what an agent *did*, never whether the
|
|
111
|
+
code is *good*.
|
|
112
|
+
- **Local-first.** The CLI runs entirely on your machine — no account, no upload, no
|
|
113
|
+
telemetry. (The optional CI Action can emit *anonymous, aggregate* counts only; off by
|
|
114
|
+
default in releases. See [telemetry](./docs/telemetry.md).)
|
|
115
|
+
|
|
116
|
+
## How it works
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
the agent's own local transcript (raw JSONL / SQLite)
|
|
120
|
+
→ adapter (per agent) normalize to one session model, tool calls passed raw
|
|
121
|
+
→ spans derive edits / commands / reads / cost / destructive ops
|
|
122
|
+
→ findings deterministic detectors → file:line-cited findings
|
|
123
|
+
→ Report Card human-readable, severity-grouped (default output)
|
|
124
|
+
→ Receipt (--json) portable, schema-validated object; optionally signed
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Receipts reads the transcript your agent already writes to disk — it doesn't sit between
|
|
128
|
+
you and the model, doesn't need an API key, and doesn't phone home. One Report Card
|
|
129
|
+
spans **Claude Code, Codex, Cursor, and OpenClaw**; detectors are agent-agnostic.
|
|
130
|
+
|
|
131
|
+
## Invariants
|
|
132
|
+
|
|
133
|
+
These are binding constraints, not aspirations (full set in
|
|
134
|
+
[`SPEC-0000`](./specs/SPEC-0000-product.md)):
|
|
135
|
+
|
|
136
|
+
- **Deterministic — zero model calls in the product path.** (R1)
|
|
137
|
+
- **Evidence, not judgement** — never grades code quality. (R2)
|
|
138
|
+
- **Near-zero false positives, measured** — see [`docs/eval.md`](./docs/eval.md). (R3)
|
|
139
|
+
- **Local-first** — no upload; the opt-in CI Action emits only anonymous aggregate
|
|
140
|
+
telemetry. (R4)
|
|
141
|
+
|
|
142
|
+
## Usage
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
receipts # Report Card for your most recent session (any agent)
|
|
146
|
+
receipts --list # list recent sessions across all agents
|
|
147
|
+
receipts --agent codex # limit to one agent: claude-code | codex | cursor | openclaw
|
|
148
|
+
receipts 3 # the 3rd session from --list
|
|
149
|
+
receipts "billing" # first session whose title contains "billing"
|
|
150
|
+
receipts --json # emit the Receipt object (in-toto Statement)
|
|
151
|
+
receipts --json --compact # canonical (sorted, minified) JSON
|
|
152
|
+
receipts --share # redacted, paste-ready Markdown summary
|
|
153
|
+
receipts guardrails --last 5 # prevention rules for AGENTS.md from recent sessions
|
|
154
|
+
receipts trends # cross-session digest: grades, recurring findings, cost
|
|
155
|
+
receipts trends --last 20 # span a wider window (default 10)
|
|
156
|
+
receipts pr # write THIS branch's receipt (branch-scoped) to .receipts/
|
|
157
|
+
receipts verify <bundle> --transcript <t> # prove the receipt is faithful (L1)
|
|
158
|
+
receipts diff <a> <b> # what changed between two receipts (deltas; --json)
|
|
159
|
+
receipts log # list the committed receipts in .receipts/ (--last N)
|
|
160
|
+
receipts stats # dogfooding scoreboard: how often it ran + what it caught
|
|
161
|
+
receipts init # scaffold the PR-check workflow into this repo (1-command adopt)
|
|
162
|
+
receipts rederive <t> # reproduce the canonical receipt from a transcript
|
|
163
|
+
receipts mcp # start the MCP server (stdio) for IDEs/agents
|
|
164
|
+
receipts --no-color # plain text (also honors NO_COLOR)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Most people only ever need the Report Card. The **Receipt** (`receipts --json`) is
|
|
168
|
+
there when you want a portable, vendor-neutral record to feed tooling — an
|
|
169
|
+
[in-toto](https://in-toto.io) Statement carrying the same deterministic evidence +
|
|
170
|
+
findings ([schema](./schema/agent-execution-receipt-v1.json)).
|
|
171
|
+
|
|
172
|
+
## Status
|
|
173
|
+
|
|
174
|
+
🚧 **Early.** Working today across **Claude Code**, **Codex**, **Cursor**, and
|
|
175
|
+
**OpenClaw**:
|
|
176
|
+
|
|
177
|
+
- the deterministic **Report Card** (`receipts`) — the core,
|
|
178
|
+
- **prevention rules** you can paste into `AGENTS.md` (`receipts guardrails`),
|
|
179
|
+
- a cross-session **trends** digest — what your agent does wrong over time (`receipts trends`),
|
|
180
|
+
- a portable **Receipt** (`receipts --json`) + a redacted **`--share`** summary,
|
|
181
|
+
- an **MCP server** (`receipts mcp`) for IDEs/agents ([docs](./docs/mcp.md)).
|
|
182
|
+
|
|
183
|
+
The findings engine is measured for fidelity — **precision 100%** on a 70-session
|
|
184
|
+
labeled corpus, **1% flag rate** over 1,200 real local sessions (every flag adjudicated as
|
|
185
|
+
a true positive; zero confirmed false positives) ([`docs/eval.md`](./docs/eval.md)).
|
|
186
|
+
See the roadmap in [`specs/`](./specs).
|
|
187
|
+
|
|
188
|
+
## For teams (optional)
|
|
189
|
+
|
|
190
|
+
Need to attach the Receipt to a PR or prove it in CI? A Receipt can be
|
|
191
|
+
Sigstore-signed and posted as a **"Verified-by: Receipts"** check
|
|
192
|
+
([docs](./docs/verified-by.md)), and re-derived from its transcript to prove it
|
|
193
|
+
wasn't hand-edited (`receipts verify --transcript`, [trust model](./docs/trust.md)).
|
|
194
|
+
This is **opt-in** — the value is the Report Card; signing is there for when your
|
|
195
|
+
org's compliance or settlement needs make it concrete.
|
|
196
|
+
|
|
197
|
+
## Configure it locally (one prompt)
|
|
198
|
+
|
|
199
|
+
Your repo already has the **Verified by Receipts** check, but Receipts is local-first — the
|
|
200
|
+
receipt is generated from *your* agent's transcript and committed to the branch; CI can't make
|
|
201
|
+
it. So each contributor configures it once. Paste this prompt into your coding agent (Claude
|
|
202
|
+
Code) **from inside the repo**, and it will set up local generation and verify the whole flow
|
|
203
|
+
end to end — including that the receipt actually posts on the PR:
|
|
204
|
+
|
|
205
|
+
```text
|
|
206
|
+
Set up and verify altimate-receipts in this repo, end to end.
|
|
207
|
+
|
|
208
|
+
1. Make the `receipts` CLI available. Try `receipts --version`. If missing, try
|
|
209
|
+
`npx --yes altimate-receipts --version`. If that also fails (private / not on npm),
|
|
210
|
+
clone + build it and use it via node:
|
|
211
|
+
git clone --depth 1 https://github.com/AltimateAI/altimate-receipts /tmp/altimate-receipts
|
|
212
|
+
(cd /tmp/altimate-receipts && npm ci && npm run build)
|
|
213
|
+
Then treat `receipts` as `node /tmp/altimate-receipts/dist/cli.js` everywhere below.
|
|
214
|
+
|
|
215
|
+
2. Configure it locally so every future push auto-attaches my receipt: create a
|
|
216
|
+
`.githooks/pre-push` hook that runs `receipts pr`, and if it changes `.receipts/`,
|
|
217
|
+
`git add .receipts/` + commit, then asks me to push again. Make it executable and run
|
|
218
|
+
`git config core.hooksPath .githooks`. (Never let the hook fail the push.)
|
|
219
|
+
|
|
220
|
+
3. Generate THIS branch's receipt now from my local Claude Code transcript:
|
|
221
|
+
`receipts pr --base <this repo's default branch>` → writes `.receipts/<branch>.json`.
|
|
222
|
+
|
|
223
|
+
4. Verify it is authentic and re-derivable: `receipts verify .receipts/<branch>.json` must pass.
|
|
224
|
+
|
|
225
|
+
5. Commit it: `git add .receipts/<branch>.json && git commit -m "chore: attach agent receipt"`.
|
|
226
|
+
|
|
227
|
+
6. Confirm uploading works end to end: push the branch and open/refresh the PR, then check that
|
|
228
|
+
the "Verified by Receipts" CI check runs AND a Receipts comment appears
|
|
229
|
+
(`gh pr checks` and `gh pr view --comments`). Report back whether the receipt is showing on
|
|
230
|
+
the PR, and paste the comment's headline line.
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
If step 6 shows the check + comment, uploading works. If the comment is missing, the agent
|
|
234
|
+
will report why (no receipt committed, workflow not present, or a permissions issue) — the same
|
|
235
|
+
classification the fleet check (`script/dogfood-health.mjs`) uses.
|
|
236
|
+
|
|
237
|
+
## Dogfooding
|
|
238
|
+
|
|
239
|
+
Receipts audits its own development: open this repo in your coding agent and
|
|
240
|
+
`receipts pr` attaches a **branch-scoped** Receipt to each PR (a pre-push hook and
|
|
241
|
+
[`AGENTS.md`](./AGENTS.md) automate it).
|
|
242
|
+
|
|
243
|
+
## How we build: spec-driven
|
|
244
|
+
|
|
245
|
+
Every change starts from a spec in [`specs/`](./specs) (use
|
|
246
|
+
[`specs/TEMPLATE.md`](./specs/TEMPLATE.md)). The product vision is
|
|
247
|
+
[`SPEC-0000`](./specs/SPEC-0000-product.md). See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
248
|
+
|
|
249
|
+
## License
|
|
250
|
+
|
|
251
|
+
[Apache-2.0](./LICENSE) © altimate.ai
|