Development and releases
make depresolves checksums and refreshes the committed vendor directory.make format,make lint, andmake lint-fixrun in the pinned development image.make testruns the complete offline suite, including real FFmpeg/libass renders and CLI subprocess checks, with Go's race detector.make test-unitexcludes render tests;make test-integrationruns the renderer tests alone, includingburnon H.264, HEVC, VP9, AV1 and rotated videos. A missing renderer is a test failure.make test-coverageruns the complete offline suite, writes the badge percentage, and fails below 90% coverage.make test-fuzzfuzzes parser preservation and generated-script round trips with two workers and bounded runtimes. Their regression seeds also run in normal tests.make test-realdownloads every preset's pinned fonts into temporary user directories, verifies installation, checks that libass selects the intended font when rendering, and renders captions made with--embed-preset-fontswith no installed fonts. It requires upstream network access and checks verified offline reuse afterward. These tests, ininternal/pkg/fontsandcmd/assctl, sit behind therealbuild tag, so no other target compiles them.make test-imagebuilds the productionDockerfileunder a temporary tag, then checks it with networking off: the stamped version, and for every preset,captions --embed-preset-fontsand an FFmpeg render in which libass selects the installed preset font, andburnon a test video. It removes the image afterward. Building the image downloads the preset fonts.make helplists the available operations.make secchecks for secrets and known Go vulnerabilities. It writessec.sariffor GitHub Code Scanning.make docsbuilds the Docusaurus site and checks internal links. The output iswebsite/buildunder the/assctl/URL prefix.make docs-lockrefreshes the pinned documentation lockfile. Build tooling runs in a pinned Node container with a seven-day dependency age gate and install scripts disabled.
A push to the default branch builds the Docker image for linux/amd64 and linux/arm64 and publishes psyb0t/assctl:latest and psyb0t/assctl:sha-<commit>. Tag an already checked default-branch commit for a release. The tag workflow waits for that exact run, promotes its image to psyb0t/assctl:vX.Y.Z by digest without rebuilding, creates the GitHub release from the annotated tag, and publishes only the assctl skill to ClawHub. Git tags supply the Go module version. Keep the Codex manifest's version in sync when cutting the release.
The pipeline needs the repository's CLAWHUB_TOKEN secret with permission to publish the package, and DOCKERHUB_USERNAME and DOCKERHUB_TOKEN to push the image. GitHub supplies its own token for releases, scanning, and badges.
The code workflow runs coverage, bounded fuzzing, and real-font verification before publication. Its real-font stage requires upstream network access; local make test remains offline.
The normal renderer suite checks every appearance/position pair on portrait, landscape, and square canvases. It uses the development image's DejaVu font for deterministic geometry. It also checks drawing and clipping bounds, movement, transforms, rotation, transparency, comments, event intervals, wrapping, fades, and karaoke progression. The separate real-font suite verifies each preset's actual upstream family. No font binaries are stored in the repository.
Unit and boundary tests cover JSON ambiguity, record and tag injection, invalid UTF-8, input limits, numeric limits, interrupted downloads, archive size and checksum failures, immutable concurrent edits, and output failures. Tests follow their source filenames and use the same Go packages. CLI process tests assert exit status, stdout, and stderr.
The documentation caller uses the shared Pages workflow. Pull requests build the site; default-branch pushes deploy it. GitHub Pages must use GitHub Actions as its publishing source. Local search, the sitemap, and llms.txt are part of the static output. Visitor tracking loads the shared https://psyb0t.github.io/analytics.js script.