Repository navigation
Conversation
…ap (Cygnux-Labs#1213) Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
@Pybsama Thanks for this, and for doing the TypeScript verifier and the test vector along with the Python side. It changes what the record says and gates a new format version, so it gets a careful review before it merges. CI waits for a maintainer's approval. Next time, please comment on the issue first, so two people don't take the same one. |
|
@Pybsama Thanks again. We ran an independent review, and the core holds: nothing new from the agent is trusted, the labels are the same ones the gap used to set, and older verifiers report a new bundle as too new rather than failing it. A few things need to change before it merges:
Separately, we're checking one case on our side: how Claude Code's |
Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
@LoopGlitch26 Thank you for the detailed review! All 5 items are addressed in the latest commit (
Verification run after final edit
Note also noted on commenting on future issues before starting work. (AI-assisted: updates drafted and verified locally with an LLM coding assistant; all tests run locally after the final edit.) |
|
@Pybsama Thanks, |
|
@Pybsama The re-check is clean: all five are fixed, only the signer can set
CI is running now. |
Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
… row, and sync Go schema Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
@LoopGlitch26 Added follow-up commit
Verification run after final edit
(AI-assisted: updates drafted and verified locally with an LLM coding assistant; all tests run locally after the final edit.) |
|
Thanks, @Pybsama. Both items are in: the two kit vectors and the 1.9.0 row. The Go schema sync is right too, since every schema copy has to stay identical. CI for |
|
@Pybsama Thanks. The core holds under attack:
One thing on our side: CI never runs the TypeScript verifier on the kit. Before merge:
Small:
Optional: |
…abs#1232 Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
@LoopGlitch26 Thanks for the thorough review! Addressed all four pre-merge items and the small polish items in Pre-merge items
Small polish
Verification
|
|
@Pybsama Thanks, One more step: #1219 merged to main an hour ago and added two ext names to the same 1.9.0 row, so the branch now conflicts in The same goes for versions.json, with main's spool comment kept above the row. Once it's pushed, CI needs a maintainer's approval; we'll approve it and then it goes to merge. |
Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
@LoopGlitch26 Merged latest
Verification after merge
|
|
Thanks @Pybsama. I checked the merge: the 1.9.0 row has both |
… to 1.9.0 Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
|
Fixed the 4 CI failures (
Verified locally:
Ready for CI re-approval, @LoopGlitch26. |
|
Thanks @Pybsama. The vector fix is right: a negative case that needs 1.9.0 has to say so in its manifest, or an older verifier verifies it. CI needs a maintainer to approve the new run; once it is green this goes to merge. |
Fixes #1213.
What and why
SignerService._complete(tracekit/signer/service.py), so a held call allowed in Claude Code's own prompt on a same-user signer no longer writes anexecuted_against_policygap or incident when its rules set a run label.Sources.setsin both Python (tracekit/signer/labels.py) and TypeScript (sdk/typescript/src/verify/labels.ts) so a signer-writtenext.approval.harnessrecord within_place_of_gap: truesets the held call's run labels directly.run.labeladdcites a signer-writtenext.approval.harness(in_place_of_gap: true) on format version1.9.0(needs/raised_byintracekit/bundle_v2.pyandneeds/raisedByinsdk/typescript/src/verify/index.ts). Unlabelledapproval.harnessbundles remainverifier_min_version: 1.4.0, while labelled ones declare1.9.0so released verifiers<= 1.8.1reportUNVERIFIABLE (needs tracekit >= 1.9.0)instead of failingrun labels.tests/kit/make_kit.py,tests/kit/cases.json,tests/kit/vectors/run-label-approval-harness.tkb), tests (tests/test_app_approval.py,tests/test_run_conditions.py,tests/test_released_verifiers.py), and docs (docs/limits.md,docs/format-v2.md,docs/api.md,docs/notices.md).How I ran it as a user
Ran a same-user
SignerServicewithdev.yamlonReadof/home/user/.password-store/aws(TK-A020,ask,label: secrets_access), completed it withapp_allowed={"harness": "claude-code", "via": "prompt"}, exported the closed run with its policy, and verified it via CLI:Checklist
pyflakeslint and targeted pytest + conformance kit + TS verifier build passed (details below)tests/test_app_approval.py,tests/test_run_conditions.py,tests/test_released_verifiers.py,tests/kit/)docs/limits.md,docs/format-v2.md,docs/api.md,docs/notices.md)git commit -s)Security invariants
approval.harnesswithin_place_of_gap: trueremains same-user only andsource="signer"-checked)Evidence format
run.labelcitingext.approval.harness(in_place_of_gap: true) is gated on1.9.0(needs/raised_byintracekit/bundle_v2.pyandsdk/typescript/src/verify/index.ts), andtests/test_released_verifiers.pyverifiesv1.2.0–v1.8.1reportUNVERIFIABLE (needs tracekit >= 1.9.0)while existing unlabelledapproval.harnessbundles stay1.4.0.Checks run locally
.venv/bin/python -m pyflakes tracekit tracekit_sdk.py tests eval examples contrib integrations— passed (0 warnings).venv/bin/python -m pytest -q tests/test_released_verifiers.py tests/test_app_approval.py tests/test_bundle_v2.py tests/test_ts_verifier.py tests/test_run_conditions.py—220 passed, 1969 subtests passed.venv/bin/python tests/kit/run_kit.py --reference—136/136 cases pass(proposed:0/5)cd sdk/typescript && npm run build+.venv/bin/python tests/kit/run_kit.py --cmd 'node sdk/typescript/bin/tracekit.mjs verify {bundle} --trust {trust} --json'—136/136 cases pass(proposed:0/5)(AI-assisted: drafted and verified locally with an LLM coding assistant; reviewed and tested locally before submission.)