From d6379726d440257b7f1af3562cfd6ace23067b90 Mon Sep 17 00:00:00 2001 From: mgillr <36207807+mgillr@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:28:30 +0100 Subject: [PATCH 1/3] guard: pin the owner's public key, as the gold desk repo does Signed-off-by: mgillr <36207807+mgillr@users.noreply.github.com> --- guard/owner.pub | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 guard/owner.pub diff --git a/guard/owner.pub b/guard/owner.pub new file mode 100644 index 0000000..08c54d7 --- /dev/null +++ b/guard/owner.pub @@ -0,0 +1,3 @@ +-----BEGIN PUBLIC KEY----- +MCowBQYDK2VwAyEAjHg5ppMc27Spzm4+eVXw/0tQnTAR7gBishw/iWqj3bY= +-----END PUBLIC KEY----- From b808efadc410b0b18d8505e2c90a3f18546b75bc Mon Sep 17 00:00:00 2001 From: mgillr <36207807+mgillr@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:28:31 +0100 Subject: [PATCH 2/3] contract: add PL-SEED-01 to PL-SEED-03 (ICP, GitHub check, paid pilots) Signed-off-by: mgillr <36207807+mgillr@users.noreply.github.com> --- proofline.json | 5 ++++- proofline.json.sig | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/proofline.json b/proofline.json index a34cffd..1122ec1 100644 --- a/proofline.json +++ b/proofline.json @@ -4029,7 +4029,10 @@ "If the environment a criterion needs is missing (repository admin, npm owner login, Actions, a second machine): report BLOCKED naming the missing item; never mark it passed by hand." ] } - ], + , + {"id":"PL-SEED-01","title":"Validate Proofline's initial ICP","phase":"design","owner":"lane-c","depends_on":[],"requirements":[],"description":"Hypothesis: GitHub-first software teams already using coding agents experience material human validation burden on agent-authored pull requests. After approval, complete 15 consented interviews across at least 10 organizations within 30 days. Capture role, team size, agent use and agent-authored PR volume, validation time, review bottleneck, current controls and alternatives, buyer, budget owner, urgency, and purchase path. Anonymize notes, cite evidence for every claim, and include rejected ICPs. Business outcomes require owner attestation; an agent must not self-test or self-attest interview counts or buyer evidence.","scope":{"allow":["docs/seed/**"]},"criteria":[{"id":"PL-SEED-01-AC01","mandatory":true,"statement":"Interview protocol exists","verifier":{"type":"file_exists","path":"docs/seed/interview-protocol.md"}},{"id":"PL-SEED-01-AC02","mandatory":true,"statement":"Protocol records consent and anonymization rules","verifier":{"type":"grep","file":"docs/seed/interview-protocol.md","pattern":"consent","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC03","mandatory":true,"statement":"Protocol explains anonymization","verifier":{"type":"grep","file":"docs/seed/interview-protocol.md","pattern":"anonym","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC04","mandatory":true,"statement":"Evidence memo contains the interview counts table","verifier":{"type":"grep","file":"docs/seed/icp-evidence.md","pattern":"Organizations interviewed","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC05","mandatory":true,"statement":"Evidence memo distinguishes observed facts from hypotheses","verifier":{"type":"grep","file":"docs/seed/icp-evidence.md","pattern":"Observed facts","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC06","mandatory":true,"statement":"Evidence memo labels hypotheses separately","verifier":{"type":"grep","file":"docs/seed/icp-evidence.md","pattern":"Hypotheses","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC07","mandatory":true,"statement":"Evidence memo names rejected ICPs","verifier":{"type":"grep","file":"docs/seed/icp-evidence.md","pattern":"Rejected ICPs","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC08","mandatory":true,"statement":"Evidence memo records buyer and budget-owner findings","verifier":{"type":"grep","file":"docs/seed/icp-evidence.md","pattern":"Budget owner","flags":"i","must":"present"}},{"id":"PL-SEED-01-AC09","mandatory":true,"statement":"The owner signs (owner key, verified against guard/owner.pub) the actual counts: at least 10 organizations, 6 current coding-agent users, and 5 with a quantified validation bottleneck and an accountable budget owner. An agent cannot produce this signature.","verifier":{"type":"command","cmd":"node --input-type=module -e \"import fs from \\\"node:fs\\\"; import { verifyDSSE } from \\\"@optitransfer/agentkey\\\"; try { const e = JSON.parse(fs.readFileSync(\\\"docs/seed/owner-attestation.dsse.json\\\", \\\"utf8\\\")); const r = verifyDSSE(e, [fs.readFileSync(\\\"guard/owner.pub\\\", \\\"utf8\\\")]); const s = JSON.parse(Buffer.from(r.payload).toString()); process.exit(r.ok && s.task === \\\"PL-SEED-01\\\" ? 0 : 1); } catch { process.exit(1); }\"","expect_exit":0,"timeout_s":60}},{"id":"PL-SEED-01-AC10","mandatory":true,"statement":"Claims ledger exists and links claims to sources or marks them as hypotheses","verifier":{"type":"file_exists","path":"docs/seed/claims-ledger.md"}},{"id":"PL-SEED-01-AC11","mandatory":true,"statement":"Changes stay in scope","verifier":{"type":"scope"}},{"id":"PL-SEED-01-AC12","mandatory":true,"statement":"Committed and pushed to main","verifier":{"type":"pushed"}}],"stop_rules":["Do not begin interviews until the owner approves this task.","Do not present hypotheses or a small interview sample as measured market facts or a representative market estimate.","If the stated interview thresholds are missed, report the actual count and evidence; do not lower the threshold."]}, + {"id":"PL-SEED-02","title":"Build the GitHub pull request check","phase":"implement","owner":"lane-c","depends_on":["PL-SEED-01"],"requirements":[],"description":"After the ICP is validated and this task is approved, build the first GitHub integration. Run the repository-selected Proofline task, expose the exact result and failure reason as a required PR check, and attach or link its evidence receipt. Prefer the pull_request event and a read-only contents permission; do not use pull_request_target, secrets in fork PR workflows, or privileged execution of untrusted code. The fixture repository must demonstrate both green and red checks, including a planted verifier fault that stays red. Document the permission and fork model. Obtain owner-attested confirmation from two ICP design partners that this check fits their merge workflow; that business outcome is not an agent-run test.","scope":{"allow":["src/**","bin/**","test/**","docs/integrations/**",".github/**","package.json"]},"criteria":[{"id":"PL-SEED-02-AC01","mandatory":true,"statement":"Fixture-repository tests show green for passing criteria and red for failing criteria; a planted verifier fault never produces a green check","verifier":{"type":"test_red_green","test_file":"test/github_check.test.mjs","cmd":"node --test {test}"}},{"id":"PL-SEED-02-AC02","mandatory":true,"statement":"Full suite exits 0","verifier":{"type":"command","cmd":"npm test","expect_exit":0}},{"id":"PL-SEED-02-AC03","mandatory":true,"statement":"GitHub pull-request workflow exists","verifier":{"type":"file_exists","path":".github/workflows/proofline.yml"}},{"id":"PL-SEED-02-AC04","mandatory":true,"statement":"GitHub workflow does not use pull_request_target","verifier":{"type":"command","cmd":"! grep -R -n pull_request_target .github/workflows","expect_exit":0}},{"id":"PL-SEED-02-AC05","mandatory":true,"statement":"Workflow uses the pull_request event","verifier":{"type":"grep","file":".github/workflows/proofline.yml","pattern":"pull_request:","must":"present"}},{"id":"PL-SEED-02-AC06","mandatory":true,"statement":"Integration guide documents least-privilege permissions","verifier":{"type":"grep","file":"docs/integrations/github-check.md","pattern":"permissions","flags":"i","must":"present"}},{"id":"PL-SEED-02-AC07","mandatory":true,"statement":"Integration guide documents read-only contents access and fork handling","verifier":{"type":"grep","file":"docs/integrations/github-check.md","pattern":"contents: read","flags":"i","must":"present"}},{"id":"PL-SEED-02-AC08","mandatory":true,"statement":"Integration guide explains fork-PR security and setup of the required check","verifier":{"type":"grep","file":"docs/integrations/github-check.md","pattern":"fork","flags":"i","must":"present"}},{"id":"PL-SEED-02-AC09","mandatory":true,"statement":"The owner signs (owner key, verified against guard/owner.pub) that two ICP design partners confirmed the check fits their merge workflow. An agent cannot produce this signature.","verifier":{"type":"command","cmd":"node --input-type=module -e \"import fs from \\\"node:fs\\\"; import { verifyDSSE } from \\\"@optitransfer/agentkey\\\"; try { const e = JSON.parse(fs.readFileSync(\\\"docs/integrations/design-partner-attestation.dsse.json\\\", \\\"utf8\\\")); const r = verifyDSSE(e, [fs.readFileSync(\\\"guard/owner.pub\\\", \\\"utf8\\\")]); const s = JSON.parse(Buffer.from(r.payload).toString()); process.exit(r.ok && s.task === \\\"PL-SEED-02\\\" ? 0 : 1); } catch { process.exit(1); }\"","expect_exit":0,"timeout_s":60}},{"id":"PL-SEED-02-AC10","mandatory":true,"statement":"Changes stay in scope","verifier":{"type":"scope"}},{"id":"PL-SEED-02-AC11","mandatory":true,"statement":"Committed and pushed to main","verifier":{"type":"pushed"}}],"stop_rules":["Do not implement until PL-SEED-01 is approved and complete and the owner approves this task.","Never execute untrusted pull-request code with elevated permissions or expose secrets to fork pull requests.","A failed verifier must never produce a passing required check; report any missing GitHub environment as blocked."]}, + {"id":"PL-SEED-03","title":"Prove willingness to pay with pilots","phase":"design","owner":"lane-c","depends_on":["PL-SEED-02"],"requirements":[],"description":"After the GitHub check is approved and validated and the owner approves this task, run a 30-day paid pilot. Pre-register baselines and measures for human validation minutes per agent-authored PR, missed acceptance criteria, false blocks, false verified results on seeded negatives, setup time, CI latency, usage, and willingness to pay. Targets are hypotheses until measured: three decision-maker-approved protocols, two paid commitments with price and start date, at least 20 percent lower median validation time, false-block rate below 5 percent, zero false verified seeded negatives, and under two minutes of added CI latency per PR. The owner, not the agent or its tests, attests protocol approvals, signed paid commitments, prices, dates, and actual commercial outcomes.","scope":{"allow":["docs/seed/**","docs/pilots/**"]},"criteria":[{"id":"PL-SEED-03-AC01","mandatory":true,"statement":"Pilot protocol documents informed consent, a baseline, data minimization, and retention limits","verifier":{"type":"grep","file":"docs/pilots/protocol.md","pattern":"consent","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC02","mandatory":true,"statement":"Protocol explicitly documents anonymization and data minimization","verifier":{"type":"grep","file":"docs/pilots/protocol.md","pattern":"anonym","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC03","mandatory":true,"statement":"Protocol documents data retention limits","verifier":{"type":"grep","file":"docs/pilots/protocol.md","pattern":"retention","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC04","mandatory":true,"statement":"Protocol defines a baseline and post-integration measurements","verifier":{"type":"grep","file":"docs/pilots/protocol.md","pattern":"baseline","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC05","mandatory":true,"statement":"Protocol pre-registers validation-time, false-block, false-verified, and CI-latency measures and targets","verifier":{"type":"grep","file":"docs/pilots/protocol.md","pattern":"validation minutes","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC06","mandatory":true,"statement":"Pilot evidence ledger exists","verifier":{"type":"file_exists","path":"docs/pilots/evidence-ledger.md"}},{"id":"PL-SEED-03-AC07","mandatory":true,"statement":"Evidence ledger contains a pilot counts table","verifier":{"type":"grep","file":"docs/pilots/evidence-ledger.md","pattern":"Teams participating","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC08","mandatory":true,"statement":"Evidence ledger separates observed facts from hypotheses","verifier":{"type":"grep","file":"docs/pilots/evidence-ledger.md","pattern":"Observed facts","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC09","mandatory":true,"statement":"Evidence ledger labels hypotheses separately","verifier":{"type":"grep","file":"docs/pilots/evidence-ledger.md","pattern":"Hypotheses","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC10","mandatory":true,"statement":"Evidence ledger records methods, target comparisons, and limitations","verifier":{"type":"grep","file":"docs/pilots/evidence-ledger.md","pattern":"Limitations","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC11","mandatory":true,"statement":"Seed claims ledger exists and links every commercial claim to evidence or labels it as a hypothesis","verifier":{"type":"file_exists","path":"docs/seed/claims-ledger.md"}},{"id":"PL-SEED-03-AC12","mandatory":true,"statement":"The owner signs (owner key, verified against guard/owner.pub) at least three approved pilot protocols and at least two signed paid commitments with price and start date. An agent cannot produce this signature.","verifier":{"type":"command","cmd":"node --input-type=module -e \"import fs from \\\"node:fs\\\"; import { verifyDSSE } from \\\"@optitransfer/agentkey\\\"; try { const e = JSON.parse(fs.readFileSync(\\\"docs/pilots/owner-attestation.dsse.json\\\", \\\"utf8\\\")); const r = verifyDSSE(e, [fs.readFileSync(\\\"guard/owner.pub\\\", \\\"utf8\\\")]); const s = JSON.parse(Buffer.from(r.payload).toString()); process.exit(r.ok && s.task === \\\"PL-SEED-03\\\" ? 0 : 1); } catch { process.exit(1); }\"","expect_exit":0,"timeout_s":60}},{"id":"PL-SEED-03-AC13","mandatory":true,"statement":"Claims ledger cites sources and clearly labels measured outcomes versus hypotheses","verifier":{"type":"grep","file":"docs/seed/claims-ledger.md","pattern":"Hypothes","flags":"i","must":"present"}},{"id":"PL-SEED-03-AC14","mandatory":true,"statement":"Changes stay in scope","verifier":{"type":"scope"}},{"id":"PL-SEED-03-AC15","mandatory":true,"statement":"Committed and pushed to main","verifier":{"type":"pushed"}}],"stop_rules":["Do not contact pilot customers, collect pilot data, or make commercial claims until PL-SEED-02 is approved and complete and the owner approves this task.","Do not retain customer source code or secrets; minimize and anonymize collected data.","Report measured outcomes, sample sizes, limitations, and misses; never pass a target by attestation or alter a target after measurement."]}], "notes": "Each task carries the requirement ids it covers; next --owner hands out the tasks of one owner. Cross-repository needs are written into task text as an external dependency and reported BLOCKED when absent. PL-SELF stays: proofline verifies itself with its own contract. | 2026-10-17: 15 review tasks appended (COVERAGE.md maps every finding and open issue). Scope criterion added to PL-SELF, DG-PL so the contract passes its own validator. | 2026-10-17: PL-SETUP01 (setup pins the owner key) and PL-NEXT1 (0.2.0-next.1 carries the bin) appended. | 2026-10-20: PL-CRIT01 (crit: claims for tasks proved by a command; leading (?i)/(?s) grep flags) and PL-NEXT2 (0.2.0-next.2) appended.", "ci": { "tasks": [ diff --git a/proofline.json.sig b/proofline.json.sig index a3b520a..611474a 100644 --- a/proofline.json.sig +++ b/proofline.json.sig @@ -1 +1 @@ -{"payloadType":"application/vnd.proofline.contract-sha256","payload":"OWQzM2VjOWJlZWUxYmQyMmViNmJjZjk5NzVhZmRkN2UyZGJkZTc0MmVjMDQwYjE4NzdkMTE3YzMyMTBlZDMzNA==","signatures":[{"keyid":"kb71a7ce9e7b76859","sig":"ckpux3El8CYsS74U7YeISFDbO7cKboLT8U/Luj/4XXoKUXNLV3h0AOSTwPMKMi/B0HfuL4EGv2e61LD2AnGADA=="}]} +{"payloadType":"application/vnd.proofline.contract-sha256","payload":"YzI2YTJhMzcxZjc1OTdjMjdlNmNmYmVkMzA2MGRiM2QyNzViNWJmN2M0Y2VkYjg1YWFiYmE1MzNlYmM1Zjg5Mw==","signatures":[{"keyid":"kb71a7ce9e7b76859","sig":"mhMJiYkyOgLN8CEuU/zZnAeF48dLppmdPrHrzuLOHusj6zUmNwAosFn6BLqsCHEy1cWohuqcLZpuwi7SQxd2Aw=="}]} From 52720805506b400f67e76df0e414d7a995f45023 Mon Sep 17 00:00:00 2001 From: mgillr <36207807+mgillr@users.noreply.github.com> Date: Mon, 30 Nov 2026 09:49:12 +0000 Subject: [PATCH 3/3] contract: record the owner approval marker for the PL-SEED tasks The approvals entry names the exact approved bytes (file sha256 b3b7dac6395d1f0b4007cc6a9f5b6c1f332b9627f30a2d3ebb9ed76379422071), so the self-gate sees the owner approval in CI and not only on this machine. Signed-off-by: mgillr <36207807+mgillr@users.noreply.github.com> --- ...b7dac6395d1f0b4007cc6a9f5b6c1f332b9627f30a2d3ebb9ed76379422071 | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .proofline/approvals/b3b7dac6395d1f0b4007cc6a9f5b6c1f332b9627f30a2d3ebb9ed76379422071 diff --git a/.proofline/approvals/b3b7dac6395d1f0b4007cc6a9f5b6c1f332b9627f30a2d3ebb9ed76379422071 b/.proofline/approvals/b3b7dac6395d1f0b4007cc6a9f5b6c1f332b9627f30a2d3ebb9ed76379422071 new file mode 100644 index 0000000..e69de29