fix(agent-status): collapse the entry facets into one intersection

The previous attempt still tripped max-lines: two mixins on one intersection wrap
across two lines under oxfmt, so removing the field line bought nothing.

Expose a single AgentStatusRowFacets that already includes the observation facet, so
the entry intersects one short name on one line. The payload keeps intersecting the
observation facet alone — it must not carry the renderer-local ordinal.

Verified by formatting first and then linting, which is the order that catches this.
This commit is contained in:
Brennan Benson
2026-08-18 03:20:25 -07:00
parent f78d7fc3ac
commit d0ff4d4850
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export type WithAgentStatusObservation = { observation?: AgentStatusObservation
*
* Declared here beside the observation facet because both are per-write facets mixed into
* `AgentStatusEntry` rather than fields a reporter supplies. */
export type WithAcceptedStatusSeq = { acceptedStatusSeq?: number }
export type AgentStatusRowFacets = WithAgentStatusObservation & { acceptedStatusSeq?: number }
// ─── THE ORDERING RULE ──────────────────────────────────────────────────────
// `(authorityId, incarnation, revision)` is a total order ONLY within one authorityId.
+2 -3
View File
@@ -3,7 +3,7 @@
// a narrow interrupt fallback synthesizes a final `done` when an agent misses its cancellation hook.
import type { AgentProviderSessionMetadata } from './agent-session-resume'
import type { WithAcceptedStatusSeq, WithAgentStatusObservation } from './agent-status-observation'
import type { AgentStatusRowFacets, WithAgentStatusObservation } from './agent-status-observation'
import {
normalizeInteractivePromptField,
normalizeOptionalField,
@@ -152,8 +152,7 @@ export type AgentStatusEntry = {
* the transition may have been missed while no receiver was up, so freshness gates
* treat the row as stale immediately. Cleared by any accepted live event. */
restoredUnconfirmed?: boolean
} & WithAgentStatusObservation &
WithAcceptedStatusSeq
} & AgentStatusRowFacets
export type MigrationUnsupportedPtyEntry = {
ptyId: string