chore: bump to aos-precommit-v0.18.0 and clear the linter backlog #103
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!103
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/aos-precommit-v0.18-lint-backlog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The managed hook block was pinned at
v0.65.0on the retired bare-vtag train, so this repo never saw six hooks the rest of the fleet runs. Repinning toaos-precommit-v0.18.0turns them on and drops the legacy hygiene block that grandfatheredagent/rendered/out of whitespace enforcement.Newly active hooks
actions-run-one-line,source-doc-refs,actionlint,forgejo-runner-validate,shellcheck,typos.Failures worked down
python3 -c 'exec("...")'string, invisible to ruff, review, andgit diff. Replaced withscripts/alert-telegram.py, copied byte-for-byte frominfrastructure/scripts/actions/alert-telegram.pyso the fleet keeps one shape. The step now passes onlyBOT_TOKENandCHAT_ID; the rest falls back to the runner's ownGITHUB_*variables, and a missing field degrades to?rather than raising.scripts/ci-command.showns that setup and execs its argv.dockeranddeployrunner labels..github/actionlint.yamldeclares them, and re-running the rollout wires the-config-fileflag through.unparseable->unparsable, andPNGsreworded toPNG rendersso the checker stops splitting the acronym. No allowlist added.One exclusion kept
[tool.agentic-os.code-comments]still excludes.pre-commit-config.yaml. Its three flagged comments are the BEGIN/END markers and the actionlint note, all emitted byapply-agentic-os-hooks.pyat fixed positions, so no in-repo edit survives the next rollout. agentic-os excludes its own copy for the same reason. The real fix is teaching the hook to skip managed marker regions, which belongs upstream.Verification
pre-commit run --all-filesgreen.go build ./...,go vet ./..., andgo test ./...all pass.The managed block was pinned at v0.65.0 on the retired bare-`v` train, so the repo never saw actions-run-one-line, source-doc-refs, actionlint, forgejo-runner-validate, shellcheck, or typos. Repinning to the current aos-precommit train turns all six on and drops the legacy hygiene block that grandfathered `agent/rendered/` out of whitespace enforcement. Working the resulting failures down: * Both Telegram alert steps carried a ~50-line Python program escaped into one `python3 -c 'exec("...")'` string, invisible to ruff, review, and git diff. Replaced with `scripts/alert-telegram.py`, copied byte-for-byte from infrastructure's tracked source so the fleet keeps one shape. The step now passes only BOT_TOKEN and CHAT_ID; everything else falls back to the runner's own GITHUB_* variables. * The build and pre-commit steps inlined the egress-proxy exports as block scalars. `scripts/ci-command.sh` owns that setup and execs its argv. * `.github/actionlint.yaml` declares the `docker` and `deploy` runner labels, which actionlint cannot otherwise resolve. Re-running the rollout wires the `-config-file` flag through. * Three typos: two `unparseable` -> `unparsable`, and `PNGs` reworded to `PNG renders` so the checker stops splitting the acronym. The code-comments exclusion on .pre-commit-config.yaml stays. Its three flagged comments are the BEGIN/END markers and the actionlint note, all emitted by apply-agentic-os-hooks.py at fixed positions, so no in-repo edit survives the next rollout. agentic-os excludes its own copy for the reason. `pre-commit run --all-files` is green and `go test ./...` passes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Kai Siren <coilysiren@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>CI is red here on an infrastructure gap, not on this diff.
The pre-commit step dies after 3s.
forgejo-runner-validate, one of the hooks this bump newly enables, pulls fromcode.forgejo.org, and that host is absent from the runner egress proxy's Squid allowlist. Because the step routes throughFORGEJO_EGRESS_PROXY, the proxy denies it outright.Evidence, all inside the same
agentic-os:releasecontainer this job uses:pre-commit run --all-filesis green--add-host code.forgejo.org:127.0.0.1- fails atInitializing environment for https://code.forgejo.org/forgejo/runner, matching the CI signature and timingFix is coilyco-flight-deck/infrastructure#779, which adds the one
dstdomainentry. This PR should go green on a re-run once that lands and Flux rolls the proxy. Merging this before then leaves main red.The suite is otherwise green locally and in-container, and
go build,go vet, andgo testall pass.