Skip to content

fix: loud embedding-engine health check + tighten over-firing way patterns#197

Merged
aaronsb merged 2 commits into
mainfrom
fix/embedding-health-and-pattern-overfire
Jun 29, 2026
Merged

fix: loud embedding-engine health check + tighten over-firing way patterns#197
aaronsb merged 2 commits into
mainfrom
fix/embedding-health-and-pattern-overfire

Conversation

@aaronsb

@aaronsb aaronsb commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Addresses the two concrete issues from the recent transcribbler session (#194, #195).

Commit 1 — functional embedding health check (check-setup.sh)

The session-start embedding check was broken three ways:

  • Wrong path — looked for way-embed at $XDG_WAY/way-embed; it lives at ~/.claude/bin/way-embed, so healthy installs false-positived "not installed."
  • Existence, not function — never verified the engine can actually embed.
  • Per-day suppression — a once-a-day marker, the opposite of loud.

Now it probes functionally (ways match) and warns only on real failure — catching corrupt models / load-but-error binaries, resolving identically across all ADR-140 topologies (in-place / copy-subdir / symlink-subdir) instead of hardcoding paths that become symlinks under projection, and firing every session while broken. Silent when healthy. This is the answer to #195: fail loud, don't build degraded-mode precision gating. Topology-safety contract recorded in ADR-140 Consequences.

Commit 2 — tighten over-firing patterns (#194)

Dropped bare generic tokens from five ways' pattern: regexes (verified misfires):

Way dropped
migrations schema
performance profile
release tag, version.?bump, bump.?version
patches patch, apply.*change (lean on files:/commands:)
errors bare catch

vocabulary: fields untouched. Semantic vocabulary-breadth collisions (e.g. "version bump") are a separate concern, noted in #194 and left out of scope.

Test plan

Closes #194
Refs #195

aaronsb added 2 commits June 29, 2026 02:14
…sion

The old session-start check was broken three ways: it looked for way-embed at
$XDG_WAY/way-embed (it lives at ~/.claude/bin/way-embed, so healthy installs
false-positived "not installed"), it only checked file existence (never that the
engine can actually embed), and it suppressed the notice once per day.

Replace it with a functional probe: ask the binary to embed a query (`ways match`)
and warn only when that fails. This catches corrupt models and load-but-error
binaries that existence checks miss, resolves identically across all ADR-140
topologies (in-place / copy-subdir / symlink-subdir) instead of hardcoding paths
that become symlinks under projection, and fires EVERY session while broken — a
degraded engine drops matching to coarse pattern-only triggers and must not be
skimmable. Silent when it works.

Records the topology-safety contract in ADR-140 Consequences (closes the
embeddings-off observation in #195 by failing loud rather than building
degraded-mode precision gating).

Refs #195
Five ways had pattern: regexes matching bare high-frequency tokens that collide
with unrelated domains — they fired (in pattern-only mode especially) on prompts
with nothing to do with the way:

- migrations: drop bare `schema` (JSON/GraphQL/config schemas collide); add
  add.?column / drop.?(table|column)
- performance: drop bare `profile` (homonym of perf profiling); add cpu.?profil /
  flamegraph
- release:    drop bare `tag`, `version.?bump`, `bump.?version` (collide with data/
  schema versioning); add semver / git.?tag / release.?(notes|candidate)
- patches:    drop bare `patch` and `apply.*change`; lean on the precise files:/
  commands: triggers, keep tight `\.patch\b|git.?(apply|am)|patch.?(set|series)`
- errors:     drop bare `catch` (matches "catch up", ordinary prose)

The vocabulary: fields stay domain-specific; only the coarse pattern fallbacks were
the problem. Semantic vocabulary-breadth collisions (e.g. "version bump") are a
separate concern, as noted in #194.

Closes #194
@aaronsb aaronsb merged commit 042400c into main Jun 29, 2026
3 checks passed
@aaronsb aaronsb deleted the fix/embedding-health-and-pattern-overfire branch June 29, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Way pattern triggers over-fire on generic tokens (schema, profile, version, patch)

1 participant