From ccdc65b9a0a7e476c4f925ba23329b3b96abb2fc Mon Sep 17 00:00:00 2001 From: Emir Yenikale Date: Thu, 27 Aug 2026 14:59:55 +0300 Subject: [PATCH] chore: add copyright headers to keeper, agent, and receipt-cli sources Prepend the per-file copyright line to the 17 sources listed in #202. In services/receipt-cli/src/index.ts the header goes on line 2 rather than line 1, because the file is an executable whose `#!` shebang must stay first. Placing the comment above it invalidates the shebang and makes tsc report TS18026. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_0187tinPTSTLHxYcEa62BreS --- services/agent/src/bidder.ts | 1 + services/agent/src/index.ts | 1 + services/agent/src/mandate.ts | 1 + services/agent/src/write-demo-trace.ts | 1 + services/keeper/src/dry-run.ts | 1 + services/keeper/src/index.ts | 1 + services/keeper/src/keeper.ts | 1 + services/keeper/src/queue.ts | 1 + services/keeper/src/run.ts | 1 + services/keeper/src/serve.ts | 1 + services/keeper/src/settlement-guard.ts | 1 + services/keeper/src/status-server.ts | 1 + services/keeper/src/status.ts | 1 + services/keeper/src/store.ts | 1 + services/keeper/src/watch-loop.ts | 1 + services/keeper/src/watch.ts | 1 + services/receipt-cli/src/index.ts | 1 + 17 files changed, 17 insertions(+) diff --git a/services/agent/src/bidder.ts b/services/agent/src/bidder.ts index 70ed125..c0d6f97 100644 --- a/services/agent/src/bidder.ts +++ b/services/agent/src/bidder.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Autonomous bidder agent — appraisal (x402) → seal → commit. // // The agent never uses the principal key on-chain. It verifies its session diff --git a/services/agent/src/index.ts b/services/agent/src/index.ts index c591929..4e37d7a 100644 --- a/services/agent/src/index.ts +++ b/services/agent/src/index.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors export { MANDATE_VERSION, createSessionMandate, diff --git a/services/agent/src/mandate.ts b/services/agent/src/mandate.ts index 6c34fd1..a8f8aa6 100644 --- a/services/agent/src/mandate.ts +++ b/services/agent/src/mandate.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Session mandate — scoped authorization for an autonomous bidder agent. // // A human/principal wallet signs a mandate that binds a session public key to a diff --git a/services/agent/src/write-demo-trace.ts b/services/agent/src/write-demo-trace.ts index de0149f..c32c24d 100644 --- a/services/agent/src/write-demo-trace.ts +++ b/services/agent/src/write-demo-trace.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import { mkdir, writeFile } from "node:fs/promises"; import { dirname, resolve } from "node:path"; diff --git a/services/keeper/src/dry-run.ts b/services/keeper/src/dry-run.ts index d3f48ff..a4e7906 100644 --- a/services/keeper/src/dry-run.ts +++ b/services/keeper/src/dry-run.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import type { BidState, Round, SubRosaClient } from "@sub-rosa/sdk"; import { VOID_GRACE_SECONDS } from "./keeper.js"; diff --git a/services/keeper/src/index.ts b/services/keeper/src/index.ts index ff5db50..a38b039 100644 --- a/services/keeper/src/index.ts +++ b/services/keeper/src/index.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors export { keepRound, closeRound, diff --git a/services/keeper/src/keeper.ts b/services/keeper/src/keeper.ts index 6fc9e06..7339a13 100644 --- a/services/keeper/src/keeper.ts +++ b/services/keeper/src/keeper.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Permissionless reveal keeper. // // Once Drand round R is published, *anyone* can force a sealed round open and diff --git a/services/keeper/src/queue.ts b/services/keeper/src/queue.ts index ec4e587..5e45dec 100644 --- a/services/keeper/src/queue.ts +++ b/services/keeper/src/queue.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import { KeeperStore, normalizeRoundId } from "./store.js"; function usage() { diff --git a/services/keeper/src/run.ts b/services/keeper/src/run.ts index df3484e..68f6623 100644 --- a/services/keeper/src/run.ts +++ b/services/keeper/src/run.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Keeper CLI entry. Runs one full pass over a round (wait for R → open → reveal // all) and prints the result. Re-running is safe: completed work is skipped. // diff --git a/services/keeper/src/serve.ts b/services/keeper/src/serve.ts index 774e2e0..5e4203d 100644 --- a/services/keeper/src/serve.ts +++ b/services/keeper/src/serve.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Standalone status server for the keeper. // // Runs the watch-mode keeper AND a status HTTP API on the same process so diff --git a/services/keeper/src/settlement-guard.ts b/services/keeper/src/settlement-guard.ts index f1834de..e5283af 100644 --- a/services/keeper/src/settlement-guard.ts +++ b/services/keeper/src/settlement-guard.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // settlement-guard.ts // // In-memory duplicate-settlement suppression for the keeper. diff --git a/services/keeper/src/status-server.ts b/services/keeper/src/status-server.ts index a3046bb..c378929 100644 --- a/services/keeper/src/status-server.ts +++ b/services/keeper/src/status-server.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import http from "node:http"; import type { DrandClient } from "@sub-rosa/tlock"; diff --git a/services/keeper/src/status.ts b/services/keeper/src/status.ts index 9611cd2..0ac4582 100644 --- a/services/keeper/src/status.ts +++ b/services/keeper/src/status.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import type { SubRosaClient } from "@sub-rosa/sdk"; import { fetchRoundSignature, type DrandClient } from "@sub-rosa/tlock"; diff --git a/services/keeper/src/store.ts b/services/keeper/src/store.ts index 665bf0a..55fba8e 100644 --- a/services/keeper/src/store.ts +++ b/services/keeper/src/store.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors import * as fs from "fs"; import * as path from "path"; diff --git a/services/keeper/src/watch-loop.ts b/services/keeper/src/watch-loop.ts index 660693e..b0b9515 100644 --- a/services/keeper/src/watch-loop.ts +++ b/services/keeper/src/watch-loop.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Shared watch loop. Keeps in-flight rounds moving through // void-if-stale → keep → close, persisting status into the KeeperStore and // emitting lightweight logs. Independent of how the loop is started diff --git a/services/keeper/src/watch.ts b/services/keeper/src/watch.ts index 2f5428c..d27275a 100644 --- a/services/keeper/src/watch.ts +++ b/services/keeper/src/watch.ts @@ -1,3 +1,4 @@ +// Copyright (c) 2026 Sub Rosa contributors // Watch-mode keeper — standalone entry. For a combined status-API + watch // process, use `serve.ts` instead. // diff --git a/services/receipt-cli/src/index.ts b/services/receipt-cli/src/index.ts index 84317c4..ec9a0b4 100644 --- a/services/receipt-cli/src/index.ts +++ b/services/receipt-cli/src/index.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +// Copyright (c) 2026 Sub Rosa contributors // receipt-cli — export a round receipt from RPC or verify a local file. import { readFileSync, writeFileSync } from "node:fs";