Repository navigation
feat: stage 1 skeleton - #1
Merged
Merged
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
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.
Stage 1 from CLAUDE.md: skeleton.
What
S3_ENDPOINTmust be HTTPS. A bad config logs ERROR and exits 1.log/slogwithLOG_LEVEL/LOG_FORMAT. Each record has acomponentfield.request_id. Shuts down cleanly on SIGTERM.GET /healthz(200 ok/503 not ready), plus ahealthchecksubcommand for Compose.golang:1.27.3builder, static-trimpathbinary, distroless static (Debian 13) nonroot runtime, user 10001. Base images are pinned by digest. Image size is about 17 MB.docker-compose.ymlfollows SPEC → Container. Also adds.env.example,.gitignoreand.dockerignore.go test -race, docker build. Also CodeQL, a tag-triggered release (GHCR +actions/attest, semver tags only) and Dependabot. All actions are pinned to commit SHAs.SPEC.md,SPEC.ru.mdandCLAUDE.md, which were not committed before.SECURITY.md+SECURITY.ru.md: report vulnerabilities through GitHub private vulnerability reporting.Decisions (recorded in both SPEC files and the decision log)
POLL_INTERVAL60s (min 10s),READING_WPM200,LOG_LEVELinfo,LOG_FORMATjson,DATA_DIR/data,VAULT_DIR/vault,ALTCHA_MAX_NUMBER100000,S3_REGIONgarage.mainfor startup, config and shutdown.Notes
/healthzreports ready right after startup for now. Stage 2 will gate it on the first sync.create-storage-record: falsebecause storage records need an org-owned repo../dataand./vaultfolders must be writable by uid 10001. README (stage 6) will cover this.Checked
go vet,staticcheck,govulncheck,go test -race, a 15 s fuzz ofParseRate, actionlint. Docker smoke test: healthz 200, POST 405,healthcheckexits 0, SIGTERM exits 0, bad config exits 1.