release: v0.9.6

Merged
SA
3mo ago
+330-4

Summary

Cuts v0.9.6 from main — a correctness release for check --checks * + native bridge resilience.

  • check --checks {validate,semantic,grade,pii,migration,safety,policy,compare} now surfaces findings it was previously missing. Teams gating CI on --fail-on error|warning may see new failures on unchanged SQL. These are real findings the tool previously missed, not regressions in your code. (#1090)
  • Truncated tool-output files were being deleted the moment they were written since 2026-08-14 due to a 48-bit Identifier timestamp wrap. Both cleanups now age by mtime; stat failures fail safe. (#1113, closes #1112)
  • Native bridge no longer poisons itself for the process lifetime on a transient NAPI load failure — surfaced by the v0.9.6 release-review Chaos Gremlin persona. Registration now caches an in-flight promise; on failure the cached promise is cleared so subsequent calls retry.

Release-review verdict

Ran the mandated 5-persona multi-model review before writing the CHANGELOG. 5/5 SHIP WITH NOTES, 0 HOLD.

PersonaVerdictKey concern
CTOSHIP WITH NOTESSilent behavior change on --fail-on; no rollout lever
PMSHIP WITH NOTESCHANGELOG framing must lead with the CI-impact warning
End User (DE)SHIP WITH NOTESunbalanced_quote rule undiscoverable pre-fire
Tech LeadSHIP WITH NOTESLegacy field-shape fallbacks are latent footguns
Chaos Gremlin (SRE)SHIP WITH NOTESNovel P1: dispatcher NAPI-load poisoning — fixed in this PR

Actionable P1s were fixed on this branch (dispatcher, CHANGELOG, docs). Everything else was deferred to filed issues below.

Deferred to follow-up issues

#TitlePriority
#1124opt-in --legacy-severity grace window on check severity remapP2
#1125publish rule catalog for check --checks safety (and lint/policy)P2
#1126remove legacy field-shape fallbacks in altimate-core-* toolsP1
#1127CI job exercising NAPI-load-failure graceful degradation pathP2
#1128consolidate truncate.ts and truncation.ts cleanup logicP2

Test plan

  • Preflight pre → PASS (8 PASS, 1 WARN untracked-only)
  • Preflight tag → PASS (8 PASS, 1 WARN untracked-only)
  • bun turbo typecheck → PASS (13/13 cached)
  • Marker guard --strict against origin/main → PASS (no upstream-shared files modified)
  • Adversarial tests (test/skill/release-v0.9.6-adversarial.test.ts — 4 new cases on dispatcher retry) → 4/4 PASS
  • Full suite (test/altimate + test/cli + test/tool + test/skill) → 5984 pass / 655 skip / 1 known-flaky fail (run-process.test.ts::--trace writes a session trace artifact — deterministic 5/5 pass in isolation, pre-existing subprocess flake called out in #1090's verification section)
  • Pre-release build (OPENCODE_VERSION=0.9.6 bun run pre-release) → PASS — binary reports 0.9.6, all 4 checks green

Merge order

Regular merge to main. After merge, v0.9.6 tag will be created from main HEAD and pushed, triggering .github/workflows/release.yml for npm publish + GitHub Release + Docker image.


🤖 Generated with Claude Code


Summary by cubic

Cuts v0.9.6: check --checks * now surfaces real findings previously hidden; the native dispatcher retries and dedupes after transient NAPI load failures and guards against stale settle handlers; truncated tool outputs are no longer deleted immediately. CI gated with --fail-on error|warning may now fail on unchanged SQL because these are real findings the tool previously hid.

  • Review focus

    • packages/opencode/src/altimate/native/dispatcher.ts: cache an in-flight registration promise across callers; clear the cache on failure; add a generation counter so stale settle handlers cannot clobber newer state; reset() clears the hook and cached promise and bumps the generation; comments document the concurrency contract.
    • packages/opencode/test/skill/release-v0.9.6-adversarial.test.ts: adds adversarial coverage for retry-after-failure, single registration across concurrent callers, memoization after success, reset() behavior, generation guard, and concurrent-failure dedup; restores any prior ALTIMATE_TELEMETRY_DISABLED value after tests.
    • docs/docs/usage/check.md: clarify that a finding’s rule appears in --format json when attached by the engine; some lint findings may omit it.
  • Rollout impact

    • If your CI uses check with --fail-on error|warning, expect new failures; triage and fix or temporarily adjust the threshold.
    • JSON consumers must treat rule as optional and switch on presence.

Summary by CodeRabbit

  • Bug Fixes

    • Improved check result accuracy for migration and comparison workflows, including error handling, risk reporting, and difference details.
    • Improved native integration reliability by safely retrying failed registrations and coordinating concurrent registration attempts.
  • Documentation

    • Clarified finding metadata, including when rule and code may be omitted for lint findings.
    • Documented that safety and policy findings always include a rule.
    • Updated version 0.9.6 release notes with current check commands and tools.