Skip to content

Commit 631950b

Browse files
Jonathan D.A. Jewellclaude
andcommitted
feat(cli): add integrity command group with generate/verify/hash/diff
- Add IntegrityCommands enum with dedicated subcommands - Implement `wharf integrity generate` for BLAKE3 manifest creation - Implement `wharf integrity verify` for local and remote validation - Implement `wharf integrity hash` for single file hashing - Implement `wharf integrity diff` for manifest comparison - Update STATE.scm with session accomplishments The integrity commands provide comprehensive file integrity management: - generate: Create manifests with configurable exclusions - verify: Validate against manifests locally or via SSH to remote yachts - hash: Quick BLAKE3 hash of individual files - diff: Compare two manifests showing added/removed/changed files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 577658e commit 631950b

2 files changed

Lines changed: 336 additions & 15 deletions

File tree

STATE.scm

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
((version . "1.0.0")
1010
(schema-version . "1")
1111
(created . "2025-01-10T13:50:29+00:00")
12-
(updated . "2025-01-12T08:00:00+00:00")
12+
(updated . "2025-01-12T09:00:00+00:00")
1313
(project . "project-wharf")
1414
(repo . "https://github.com/hyperpolymath/project-wharf")))
1515

@@ -20,7 +20,7 @@
2020

2121
(current-position
2222
((phase . "Alpha Development")
23-
(overall-completion . 65)
23+
(overall-completion . 70)
2424
(components
2525
((wharf-core
2626
((status . "functional")
@@ -31,9 +31,9 @@
3131
(completion . 70)
3232
(notes . "DB proxy, API, eBPF loader, nftables, config, mooring endpoints complete")))
3333
(wharf-cli
34-
((status . "in-progress")
35-
(completion . 35)
36-
(notes . "Basic commands implemented")))
34+
((status . "functional")
35+
(completion . 60)
36+
(notes . "Fleet, moor, integrity commands wired up")))
3737
(wharf-ebpf
3838
((status . "functional")
3939
(completion . 80)
@@ -47,15 +47,15 @@
4747
"rsync-based file synchronization"
4848
"Configuration file loading (TOML)"
4949
"Mooring protocol definition (init/verify/commit)"
50-
"Mooring API endpoints in yacht-agent"))))
50+
"Mooring API endpoints in yacht-agent"
51+
"CLI integrity commands (generate/verify/hash/diff)"))))
5152

5253
(route-to-mvp
5354
((milestones
5455
((core-hardening
5556
((target-completion . 70)
56-
(items . ("Wire integrity ops in CLI"
57-
"Add config loading to wharf-cli"))
58-
(status . "in-progress")))
57+
(items . ("Add config loading to wharf-cli"))
58+
(status . "nearly-complete")))
5959
(nebula-integration
6060
((target-completion . 85)
6161
(items . ("Wire mooring protocol to CLI"
@@ -73,19 +73,29 @@
7373
(blockers-and-issues
7474
((critical . ())
7575
(high . ())
76-
(medium . ("CLI integrity commands not wired"))
76+
(medium . ())
7777
(low . ("Some unused function warnings in wharf-cli"))))
7878

7979
(critical-next-actions
80-
((immediate . ("Wire integrity commands in CLI"
81-
"Start Nebula/Mooring integration"))
80+
((immediate . ("Wire mooring protocol to CLI"
81+
"Add config loading to wharf-cli"))
8282
(this-week . ("Test nftables on production system"
83-
"Test eBPF compilation with bpf-linker"))
84-
(this-month . ("Implement Mooring protocol"
83+
"Test eBPF compilation with bpf-linker"
84+
"Begin Nebula mesh VPN coordination"))
85+
(this-month . ("Complete Nebula integration"
8586
"Performance optimization"))))
8687

8788
(session-history
88-
(((timestamp . "2025-01-12T08:00:00Z")
89+
(((timestamp . "2025-01-12T09:00:00Z")
90+
(session-id . "cli-integrity-commands")
91+
(accomplishments
92+
("Added IntegrityCommands enum to CLI"
93+
"Implemented wharf integrity generate command"
94+
"Implemented wharf integrity verify command (local + remote)"
95+
"Implemented wharf integrity hash command"
96+
"Implemented wharf integrity diff command"
97+
"All medium-priority blockers resolved")))
98+
((timestamp . "2025-01-12T08:00:00Z")
8999
(session-id . "mooring-protocol")
90100
(accomplishments
91101
("Created wharf-core mooring module with protocol types"

0 commit comments

Comments
 (0)