Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 31 Aug 13:06
· 1941 commits to main since this release
v0.4.0
e5bfa4a

Feature release on the v0.x local-pilot line. Headline: opt-in project analysis for coach codesignal. You declare layers and forbidden import pairs; Coach reports architecture.layer_violation. Default file-local analysis is unchanged if you omit --project-config. Coach remains experimental and stays on the 0.x line. This is a local CLI preview, not a 1.0 product, hosted API, or merge gate.

What’s new

Opt-in project analysis (--project-config)

Pass --project-config with a repository-relative JSON document, read at the analyzed revision (not your worktree). You name roots, layers, and forbidden_imports. Coach reports architecture.layer_violation only for import edges that violate that policy. It does not guess your architecture.

Reports that include --project-config use schema_version: "2" and add project-level keys. Without the flag, output stays schema_version: "1".

--project-language go (the default) evaluates layer violations from Go import facts. --project-language typescript evaluates the same layers / forbidden_imports policy from TypeScript import facts. The TypeScript path still expects this repository’s js/semantics layout in the checkout being analyzed. That is not a foreign-repository TypeScript product. required_layer has no CLI effect for TypeScript.

Go required_layer (architecture.layer_bypass)

For Go, an optional required_layer enables architecture.layer_bypass. The check is a pinned, narrow registry: a net/http HandlerFunc source reaching database/sql DB Exec / Query (including the *Context variants) by a statically resolved call path that never passes through the named layer.

Absence is not compliance. Zero findings often means nothing matched the registry, not that no bypass exists.

--suggest-project-config (Go only)

coach codesignal --baseline --suggest-project-config prints a candidate document with roots discovered from committed HEAD. It does not invent layers or forbidden_imports. You add that policy, commit the file, then pass it to --project-config. An uncommitted candidate is not visible to --project-config.

Honest reports

  • An incomplete analysis no longer prints an unqualified “no findings” verdict. The text states that the analysis is incomplete.
  • JSON always includes signals, diagnostics, and coverage (empty-typed when there is nothing to report). With --project-config, the schema-2 project keys are present the same way.
  • --project-config load or validation failures exit 2 and write only to stderr — no report on stdout.

Try it

Download the coach binary for your platform from the release assets. From a Git checkout:

# candidate roots only (Go); review, add layers, commit
coach codesignal --baseline --suggest-project-config

# after the file is committed
coach codesignal --baseline --project-config project.json
coach codesignal --base main --project-config project.json

File-local use is unchanged:

coach codesignal --baseline
coach codesignal --base main

See the coach codesignal section of README.md for the JSON key contract and config examples.

Limits and trust notes

Advisory static analysis only. It does not execute code, prove runtime behavior, write to GitHub, or block merges.

Project analysis reports only edges that violate the policy you wrote. A clean report is not proof the codebase follows an architecture. Check coverage before treating absence as a guarantee.

TypeScript project analysis is not a first-class feature for other repositories. architecture.layer_bypass is not wired for TypeScript in this CLI. Reachability facts are not Signals and are not proof of architecture.

This release also includes coach codesignal --baseline --check-project --project-language typescript: a read-only fit check of committed HEAD. It exits 0 even when there are gaps. Compiler and package-manager checks are not_checked. ready means no gaps among the checks that ran — not that a TypeScript project scan will succeed, and not that Coach has left pilot. It does not install a compiler or package manager.

As in v0.3.0: local CLI preview, no hosted/AWS deployment, no web UI. Coach stays on 0.x / pilot.

Binaries

GoReleaser publishes archives for macOS (Apple silicon darwin_arm64 and Intel darwin_x86_64), Linux (linux_x86_64), and Windows (windows_x86_64), plus signed checksums.txt and its cosign signature bundle.

Related

Area Issue / release
TypeScript project-analysis journey (in progress) #280
Previous release v0.3.0