Skip to content

[fix] One harness normalizer, shared by every identity view - #6399

Merged
mmabrouk merged 1 commit into
release/v0.114.4from
fix/lifecycle-harness-normalizer
Aug 31, 2026
Merged

[fix] One harness normalizer, shared by every identity view#6399
mmabrouk merged 1 commit into
release/v0.114.4from
fix/lifecycle-harness-normalizer

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

Cold/warm audit findings 3 and 6 (docs/design/lifecycle-cold-warm-audit).

What was wrong

Three call sites re-derived the harness wire-spelling map with their own inline literals. That is the exact shape of the #6364 bug: a literal plus a silent fall-through. On top of that, the config fingerprint normalized the Codex harness mode while the facet digest took the raw value, so the two identity views could disagree about whether anything changed and poison later plans into rebuilding.

The fix

  • New src/harness-kind.ts is THE one normalizer. harnessKindOf resolves every wire spelling, with the non-string fail-closed guard from [fix] Key the lifecycle capability table by the wire harness spellings #6364 inside it. normalizedHarnessMode resolves the one effective mode (Codex resolves defaults, every other harness gets null).
  • The reconciliation router, run-plan.ts, pi-model-config.ts, the config fingerprint, and the facet digests all delegate to it.
  • A round-trip test pins every wire spelling, including null/0/false. A drift test pins that a mode change moves the fingerprint and the facets together.

How to verify

Run pnpm exec vitest run tests/unit/harness-kind.test.ts tests/unit/lifecycle-desired-state.test.ts in services/runner.

Stacked on #6398.

https://claude.ai/code/session_0165tsjmvf3qvTPFcb9EV44g

Cold/warm audit findings 3 and 6. Three call sites re-derived the wire-spelling
map with inline literals, which is the exact shape of #6364 (a literal plus a
silent fall-through). And the config fingerprint normalized the Codex harness
mode while the facet digest took it raw, so the two views could disagree and
poison later plans into rebuilding.

harness-kind.ts is now THE normalizer: harnessKindOf resolves every wire
spelling (with #6364's non-string fail-closed guard inside it) and
normalizedHarnessMode resolves the one effective mode. The router, run-plan,
pi-model-config, the fingerprint and the facet digests all delegate. A
round-trip test pins every spelling, a drift test pins that the fingerprint and
the facets move together on a mode change.

Claude-Session: https://claude.ai/code/session_0165tsjmvf3qvTPFcb9EV44g
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview Aug 31, 2026 4:04pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • release/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: a60c44db-659a-4014-83c5-7b681029e7fb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mmabrouk
mmabrouk changed the base branch from fix/lifecycle-agent-artifact-id to release/v0.114.4 August 31, 2026 16:37
@mmabrouk
mmabrouk merged commit 820d3b6 into release/v0.114.4 Aug 31, 2026
43 of 44 checks passed
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.

1 participant