DevForgeKit v3.0.1-rc1
Pre-releaseRelease engineering for v3.0.1-rc1: distribution channels and release
process, plus the verification work that preceded them. No new product
features.
Added
- npm distribution -
npm install -g devforgekitis now a real,
verified install path: a publishable rootpackage.json, a
self-healingdevforgekitdispatcher (populatescli/node_modules
on first run if npm's postinstall didn't - confirmed live that npm
11.x's allow-scripts gate can skip it silently), and
.github/workflows/npm-package.ymlvalidating the real packed
tarball end-to-end on macOS and Ubuntu. - Homebrew distribution -
Formula/devforgekit.rb, verified with a
realbrew install/brew test/brew uninstallcycle against a
local test tap. Installs the launcher only; toolchain provisioning
staysdevforgekit install's job..github/workflows/homebrew-formula.yml
validates it on every change. - Shell completions -
completions/devforgekit.{bash,zsh,fish},
generated from the CLI's real command tree
(scripts/generate-completions.mjs), installed by the Homebrew
formula and CI-checked for drift. docs/CommandSafety.md- every command classified READ ONLY or
MUTATING, with the naming rule that drove it: a command without an
explicit mutating verb must never modify the machine.docs/CompatibilityReport.md- a backward compatibility matrix
across every public command: exit codes,--help,--jsonvalidity,
error paths, mutation status, CI safety.docs/ApiFreeze.md- every public command, config field, schema,
output format, and env var classified Stable/Experimental/Internal.
Stable surfaces cannot change before v4.docs/ReleaseReadinessReport.mdanddocs/DistributionReadiness.md- the release-readiness rollup and the per-channel packaging status
(what's actually Ready vs. Pending vs. Blocked, and why).
- the release-readiness rollup and the per-channel packaging status
RELEASE.md- the release checklist, tag process, rollback
process, publishing order, and verification steps for v3.0.1-rc1 and
beyond.devforgekit doctor --release-check- a single-command
release-readiness gate: version consistency acrossVERSION/
package.json/cli/package.json/Formula/devforgekit.rb, required
documentation, distribution artifacts, registry health, outstanding
pending-work markers, experimental/debug flags, git tree cleanliness,
and the current commit's own CI status. Blocks (non-zero exit) if
anything fails.devforgekit rc-validate(scripts/rc-validate.sh) - the full
Distribution Verification & RC Validation checklist against real
artifacts: GitHub Release, npm (a real scratch-prefix global install/
uninstall cycle), Homebrew (a realbrew install --build-from-source
against a local test tap), a fresh-install lifecycle, smoke tests,
and the full regression suite - writesdocs/RCValidationReport.md
with a real PASS/FAIL verdict.- Draft-first GitHub Releases - pushing a version tag now creates a
draft release rather than auto-publishing: real checksums
(SHA256SUMS.txt), a real SBOM (CycloneDX and SPDX, vianpm sbom
againstcli/'s actual dependency tree), and optional GPG signing
(if a signing key is configured - none is yet) are attached, plus a
doctor --release-checkgate that blocks the release outright if the
commit isn't ready. Publishing is always a separate, deliberate
gh release edit <tag> --draft=false. - Homebrew
livecheck-Formula/devforgekit.rbnow tracks GitHub
releases directly (verified live viabrew livecheckbefore adding,
not guessed).
Fixed
-
cli/package.json's test script had no per-test timeout -
node --testdefaults to unbounded, so a genuinely hung test worker
(found live during this pass: atui-reduced-motion.test.jsprocess
stuck for over two hours with near-zero CPU usage) hangs silently
forever instead of failing loudly. Added--test-timeout=600000
(an initial180000broke real CI -package.test.js's
analyzePackages()test already had its own deliberately-set,
CI-confirmed 300s internal bound, documented inline from a prior
session's own live CI failure; the global timeout needs real margin
above the slowest already-known-legitimate test, not just above
local timing), with a regression test guarding the script definition
itself. -
docs/DistributionReadiness.md- npm and Homebrew were still
listed as "Pending" long after both shipped (PRs 18-19); updated to
reflect that packaging is done and only real publishing remains,
deliberately deferred. -
docs/CommandReference.md-doctor's real flag set (--json,
--skip-bash,--skip-compatibility,--export,--release-check)
was undocumented (only--fixwas listed), and the newrc-validate
command was missing entirely. -
README.md/CONTRIBUTING.md test-count badges - stale at 1,088;
the real current count is 1,299. -
gh release downloadoutside a git working tree - needs an
explicit-R owner/repo; a scratch directory has no git context to
infer the repository from otherwise. -
registry verifyandworkspace benchmark- two commands that
mutated the machine by default despite read-only names.registry verifynow only attempts an install behind an explicit--install
flag;workspace benchmarkno longer switches live git identity
unless--opsexplicitly asks for it. Both fixes shipped with
canary-file regression tests. -
check --jsonand thepackage/repaircommand family - four
separate instances of the same bug (a full registry scan running
strictly sequentially instead of using the shared bounded-concurrency
worker pool) made these commands hang indefinitely instead of
completing in seconds. Found by actually running the compatibility
sweep, not by reading the source. -
repair history --jsonandbenchmark history --json- both
silently broke their own--jsoncontract on an empty result,
printing a human-readable sentence instead of[]. -
CI running the full test suite twice per commit -
pushand
pull_requestboth triggering the identical ~7-minute suite for the
same commit on a feature branch.pushnow runs a fast subset;
the full suite runs once, on the pull request. -
Two real, timing-sensitive test bugs surfaced while investigating
a CI failure: a polling helper that could resolve in zero event-loop
ticks (starving Ink's raw-mode listener setup and silently dropping
the next keypress), and a fixed-delay assertion too short for real
CI contention. Both replaced with a poll-until-condition pattern that
always yields at least once. -
Fish shell completion generation - incomplete backslash escaping
in generated descriptions (caught live by CodeQL), fixed and verified
against a synthetic backslash-and-quote input. -
scripts/release.sh rccould produce a version lower than the
already-shipped release - cutting an RC directly from a clean,
already-tagged version (e.g. runningrcagainst3.0.0after
v3.0.0had already shipped) appended-rc1without bumping the base
version first, producing3.0.0-rc1- semver-lower than the real
release it was supposedly a candidate for. This is exactly what
happened cutting this cycle's first RC tag; corrected to3.0.1-rc1
andrcnow refuses outright when the current clean version is
already tagged on origin, pointing atpatch/minor/majorinstead
of guessing which bump was intended. -
scripts/release.sh createnever syncedpackage.json's or
cli/package.json's own"version"field withVERSION- caught
for real bydoctor --release-check's version-consistency gate
failing the release workflow on the actual RC tag.createnow bumps
all three together;Formula/devforgekit.rbis deliberately left
alone (itsurl/sha256can't reference a tag that doesn't have a
real tarball yet) andcheckVersionConsistency()now excludes it from
the comparison for the whole lifetime of a pre-release cycle instead
of deadlocking every RC. -
checkVersionConsistency()'scli/package.jsoncheck ignored its
ownrootparameter - read viacliRoot()(always this checkout's
real path) instead of the passed-in root, so a test exercising it
against a scratch directory was silently checking this repo's actual
file instead. Found while adding a regression test for the sync fix
above; now readspath.join(root, "cli", "package.json"). -
WindowsPlatform.osVersion()shelled out unconditionally -
cmd /c ver 2>nulis cmd.exe syntax, but the command runs through
whatever shell is native to the current host; on a POSIX host (every
CI runner, every dev machine here)2>nulis interpreted by/bin/sh
as a literal file redirect, leaving a stray file namednulincli/
after every test run. Caught bydoctor --release-check's
working-tree-clean gate immediately after CI's own test run left the
file behind. Now returnsnullimmediately on any non-Windows host
without spawning a process at all.
Security
- Full security audit - shell-injection, tar zip-slip,
unattended-plugin-execution, AES-256-GCM tag-pinning, and TOCTOU
fixes across the credential backends, archive handling, and plugin
trust system, each with a regression test. SeeSECURITY.md. npm audit: 0 vulnerabilities.gitleaks: 0 secrets.
Performance
- Package/repair size and version lookups (
du -sk,which) gained a
real timeout instead of running unbounded - a single large real
directory could previously stall an entire scan.
Breaking Changes
- None.