Repository navigation
Repo quality: 30-second start, CI, community files, AGENTS.md - #12
Merged
Merged
Conversation
Jobs: Go (conformance-go, vectors reproducible via make vectors + git diff, hub-test with -race, hub-consumer-check), Python conformance, TypeScript conformance + tsc typecheck (ts/NOTES.md), the hub guard mutation battery (make hub-mutate, ~4 min locally), and smoke-local. Go version from go.mod. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
First screen now answers "how do I try it": the Clanksquare paste-to-agent prompt, then one minimal Go / Python / TypeScript example that signs a handle, runs the §4 pipeline and submits it to a local hub. Each snippet was extracted from this README and run against the README's own hub command (200 + stored handle for all three; the Go one via go get @latest). Adds a CI badge, a Contributing and security pointer, and an About line disclosing that most of the code was written by AI coding agents (Claude Code) under @ZacxDev's direction and that he runs the hosted hub. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
CONTRIBUTING: build/test per language from the Makefile; a spec change ships SPEC.md + regenerated vectors + every implementation together; agents may contribute. SECURITY: private reporting via GitHub security advisories; this repo owns protocol, signature, verification and reference-hub flaws. AGENTS.md: layout, the spec => vectors => every implementation rule, test commands, and the public-repo rule. Templates: bug, spec-change proposal, PR. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first CI run failed hub-test on go.mod's Go 1.22: TestDigestMemoryBounded "one digest allocated 64.7 MiB, bound 64 MiB". Reproduced locally; under -race the digest allocates 64.7 MiB on Go 1.22, 1.23 and 1.25 and 64.8 MiB on 1.24, but 59.8 MiB on 1.26 (without -race: 52.7 MiB on 1.22-1.24, 37.6 MiB on 1.26). The test is unchanged; hub-test moves to its own job on 1.26.x, the other Go steps stay on the go.mod version. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner
Author
|
Audit round 0 (requirements & deletion) at |
scripts/readme-snippets.sh (make readme-snippets) extracts the Go, Python and TypeScript blocks from README.md's "Try it in 30 seconds" section, starts a throwaway hub on 127.0.0.1:8080 and runs each one: it must exit 0, print an m_ id, and leave its handle resolvable. Exactly one block per language must be found. The Go snippet builds against this checkout through a replace, so CI tests the commit, not @latest. Mutation controls, each in a scratch copy: an invalid handle in the Go snippet, a misspelt function in the Python one, a wrong path in the TS one, KeyID renamed in the working tree's go/clankmail ("undefined: clankmail.KeyID", which proves the replace), and the ts block relabelled all exit 1 with the matching FAIL line; the unmutated copy exits 0. Also trims the section's prose and references #13 from the hub-test Go pin. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
AGENTS.md had copies of CONTRIBUTING's command table and the spec => vectors => every implementation rule, and they had already drifted (no Go 1.26 note for hub-test, an unpinned typescript). CONTRIBUTING now holds both, with the hub-test Go 1.26 note (#13), typescript@7.0.2 pinned as in CI, the readme-snippets row and the full public-repo rule. AGENTS.md links to it and keeps only the agent-specific points. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Round 1 Y1: with another hub already answering on 127.0.0.1:8080 (the README's own start command), this script's hub failed to bind but the readiness probe got a 200 from the foreign one, so the snippets were tested against a hub not built from the checkout and could pass. It now refuses up front when :8080 already answers, and checks after startup that its own hub is still running. G1: curl gets --max-time and each snippet a 120 s timeout, so a port that accepts but never answers fails instead of hanging. Checked: clean run ok go/python/ts; with a stand-in server answering 200 on :8080 the script exits non-zero with "127.0.0.1:8080 is already in use"; port free afterwards. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner
Author
|
Audit round 1 (nine axes) at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repo-quality pass ahead of promoting ClankMail alongside Clanksquare. No protocol, vector or library code changes.
What changes
handle, run the §4 pipeline, submit to a local hub). Adds a CI badge, a pointer to the community files, and an About line: built by @ZacxDev, most code written by AI coding agents (Claude Code) under his direction, hosted hub run by him..github/workflows/ci.yml, push + pull_request tomain), using existing Makefile targets, the typecheck fromts/NOTES.md, and one new target:go.mod, 1.22):make conformance-go,make vectors+git diff --exit-code -- vectors/,make hub-consumer-checkmake hub-test(-race) on Go 1.26.x, a workaround for a pre-existing failure tracked in hub: TestDigestMemoryBounded fails under -race on Go < 1.26 (64.7 MiB vs 64 MiB bound) #13make conformance-pythonmake conformance-ts,tsc -p ts --noEmit(typescript@7.0.2)make hub-mutate(200 mutants, about 5 min)make smoke-local, thenmake readme-snippets(new:scripts/readme-snippets.sh)CONTRIBUTING.md(the single source for test commands, the spec ⇒ vectors ⇒ every implementation rule, and the public-repo rule),SECURITY.md,AGENTS.md(links to CONTRIBUTING, keeps only agent-specific points),.github/ISSUE_TEMPLATE/{bug,spec-change}.md,.github/pull_request_template.md.Round 0 deletion candidates, applied
D1: the README snippets are guarded.
make readme-snippetspulls the Go, Python and TS blocks out of the README's "Try it in 30 seconds" section (exactly one per language, or it fails), starts a throwaway hub on127.0.0.1:8080and runs each one. Each must exit 0, print anm_id, and leave its handle resolvable. The Go snippet builds against this checkout through areplace, so CI tests the commit and not@latest. The README text is unchanged except for trimmed prose.Red/green, each case in a scratch copy:
ok go,ok python,ok tsFAIL go: exited non-zeroclankmail.singFAIL python: exited non-zero/v1/submitxFAIL ts: no m_ id in outputKeyIDrenamed ingo/clankmailFAIL go,undefined: clankmail.KeyID(proves thereplace)```tsrelabelledwant exactly one ```ts block in the sectionD2: no duplicated rules. The commands and the spec rule now live only in
CONTRIBUTING.md. That copy also fixes the drift: the hub-test Go 1.26 note andtypescript@7.0.2pinned as in CI.D3: the hub-test pin is tracked. hub: TestDigestMemoryBounded fails under -race on Go < 1.26 (64.7 MiB vs 64 MiB bound) #13 describes the failure and the two fix options, and the
ci.ymlcomment references it.Pre-existing failure behind the Go 1.26 hub-test pin (#13)
Under
-race,TestDigestMemoryBoundedallocates 64.7–64.8 MiB on Go 1.22–1.25 against its 64 MiB bound, and 59.8 MiB on 1.26. Without-raceit allocates 52.7 MiB on 1.22–1.24 and 37.6 MiB on 1.26. That makesmake hub-testred on thego 1.22floor and on the Dockerfile's 1.24. The test itself is unchanged.hub-mutatestill exercises it without-raceand kills its mutant.Verification
CI run https://github.com/ZacxDev/clankmail/actions/runs/41560315979 at
4011c94is green, and its logs show the counts: ts 165 passed; python 165/165; Go referenceok; hubokon Go 1.26.10; mutation 200/200 killed, 75 controls; smoke 10oksteps; readme-snippetsok go,ok python,ok ts.Local results at
4011c94(Go 1.26.8, Node 24.21, Python 3.12):-race)make vectorshub-consumer-checksmoke-localreadme-snippetstschub-mutateChecked that two of the CI steps can fail: a type error in
ts/makes the tsc step exit 1, and a changedvectors.jsonmakes the vectors diff step exit 1.Private vulnerability reporting is enabled (
GET /repos/ZacxDev/clankmail/private-vulnerability-reporting→{"enabled":true}), so theSECURITY.mdlink works. Nothing in the snippets or tests touched the hosted hub.🤖 Generated with Claude Code