mirror of
https://github.com/stablyai/orca.git
synced 2026-10-25 00:03:59 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user