feat(mentor): editorial pane chrome (#156)
CI / ci (push) Canceled after 0s

Wayfinder map #153, build slice 2 of the #154 contract: the pane's
chrome joins the transcript's editorial voice (#155).

Header per .pane-head — serif-15/600 "Mentor", engine status, mono-10
session chip; ready is the semantic green dot (DesignTokens.readyGreen,
the palette's sole exception) + lowercase mono "ready", base version in
the tooltip, the drift note kept visible. The segmented Pass 1 | Pass 2
| Chat picker is dead (settled #4): PassBarView always carries and owns
the compact text-tab selector (2pt accent underline) over a PASS N ·
STATE status line, the cost line, and the actions as MonoButton —
accent solid / surface+border / accent outline, the danger voice.
Fix-cards row is the ruled plain mono link; crash, missing-engine, and
starting states render as the quiet state-cards.

Finish-audit fanout: security clean; orphaned MARK, stale doc comment,
and a phantom-border comment fixed; pass-selector remount reset and
solid-button contrast parked in the devlog (swift-wiki gotcha #28).

Suite 592/592 (xcresult count), swiftformat + swiftlint clean at the
error tier.

Closes #153
This commit is contained in:
AlexKucera committed 2026-11-04 10:37:13 +01:00
1 parent 2aa8bdabd8
commit d6c4712aaa
8 files changed
+317 -140

No files matched your search

+20 -16
View File
@@ -283,7 +283,8 @@ struct EngineStatusCard: View {
/// The mentor pane header's mono-10 engine states, one per gate verdict:
/// "checking the engine…" muted + mini spinner / "engine missing" accent
/// with help / "setup failed" accent / `hermes <base>` once ready. The
/// with help / "setup failed" accent / #156: the green ready-dot +
/// lowercase `ready` once ready (the base version rides the tooltip). The
/// gate's phase machine is the source; nil gate (previews) derives from
/// the mentor model alone.
struct MentorEngineStatus: View {
@@ -340,24 +341,27 @@ struct MentorEngineStatus: View {
.foregroundStyle(DesignTokens.accent)
.help("Profile setup didn't finish — retry from the rail's status card")
case .ready:
// The BASE version (handshake answer first, the gate's derived
// string `+`-stripped meanwhile — the drift-note contract),
// plus the advisory drift note when they diverge.
if !readyVersion.isEmpty {
HStack(spacing: 8) {
Text("hermes \(readyVersion)")
// #156 (contract `.pane-head`): the ready signal is the semantic
// green dot + lowercase mono "ready" (#153 settle #6). The base
// version rides the tooltip; the advisory drift note stays visible
// (orange, pre-existing advisory) the rare time gate and handshake
// disagree.
HStack(spacing: 5) {
Circle()
.fill(DesignTokens.readyGreen)
.frame(width: 6, height: 6)
Text("ready")
if let note = model.versionNote {
Text(note)
.foregroundStyle(.orange)
.lineLimit(1)
.truncationMode(.middle)
if let note = model.versionNote {
Text(note)
.help(note)
.foregroundStyle(.orange)
}
.help(note)
}
.font(.system(size: 10, design: DesignTokens.mono))
.foregroundStyle(.tertiary)
.layoutPriority(1)
}
.font(.system(size: 10, design: DesignTokens.mono))
.foregroundStyle(DesignTokens.muted)
.help(readyVersion.isEmpty ? "Engine ready" : "hermes \(readyVersion)")
.layoutPriority(1)
}
}