Skip to content

feat(cli): drop pure-rename curated shadows (insight team/channel/responder, member list)#48

Merged
ysyneu merged 1 commit into
feat/ai-srefrom
feat/cli-drop-insight-shadow
Jun 15, 2026
Merged

feat(cli): drop pure-rename curated shadows (insight team/channel/responder, member list)#48
ysyneu merged 1 commit into
feat/ai-srefrom
feat/cli-drop-insight-shadow

Conversation

@ysyneu

@ysyneu ysyneu commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

What

Third step of the generated-as-single-source convergence (after #46 table renderer + #47 relative-time). Deletes the curated "shadow" commands whose only difference from their generated twin is flag spelling — a clean rename, made non-regressing by #47 (generated --start-time/--end-time now accept relative time).

Dropped curated Generated twin takes over Delta
insight team/channel/responder same paths --since/--until--start-time/--end-time (relative-capable) + twin exposes severities, *_ids, fields, aggregate-unit, …
member list same path --name/--email--query (curated already folded both into the SDK Query field); keeps --role-id/--orderby/--asc, adds the rest

Kept curated (NOT pure renames — deferred): insight top-alerts (--limit--k), insight incidents (offset→cursor pagination).

Preserving the human tables

The generic renderer (#46) only auto-formats timestamps, so dropping the curated insight tables would print raw floats (0.85, 150). Added an optional per-column formatter (colSpec.Format) + DimensionInsightItem/ResponderInsightItem seeds so ACK%/MTTA/MTTR render with the same percent/duration formatting as before. json/toon output is unchanged.

Verification

  • go build/vet/test ./... green; go vet -tags=e2e ./e2e/ clean; gofumpt clean.
  • New TestRenderGenericTable_FormattedColumns (percent/duration path) + TestDisplayColumns_FieldsResolve extended with the two new row types (guards field-name typos against go-flashduty v0.5.4 — all verified present).
  • Live testback: member list --query a returns a formatted table; insight team --start-time 30d --end-time now accepted with the rich flag set; old --since correctly gone.
  • Quality gates (simplify + adversarial review) clean — review confirmed no lost functionality and all field names/formatter semantics correct.

Lockstep / release-gating

The agent skill-doc + scan.sh references in fc-safari migrate in a paired PR. The dropped commands only disappear for agents once a new flashduty-cli is released into the sandbox image, so the CLI release and the fc-safari doc PR land together (no mid-window breakage on the dev env).

Known cosmetic: DimensionInsightItem backs both insight team and insight channel, so the table shows both TEAM and CHANNEL columns (the irrelevant one empty per query).

…ponder, member list)

Continues the generated-as-single-source convergence (after the table
renderer and relative-time keystones). Removes the curated commands whose
only difference from their generated twin is flag spelling — a clean rename,
now that generated --start-time/--end-time accept relative time:

  - insight team/channel/responder: curated --since/--until → generated
    --start-time/--end-time (relative-time capable) PLUS the generated twin
    exposes severities, *_ids, fields, aggregate-unit, … (net gain).
  - member list: curated --name/--email → generated --query (the curated
    command already folded both into the SDK Query field; generated also
    keeps --role-id/--orderby/--asc and adds the rest of the member API).

To preserve the curated human tables, the generic renderer gains an
optional per-column formatter (colSpec.Format); DimensionInsightItem and
ResponderInsightItem seeds render ACK%/MTTA/MTTR with the same percent/
duration formatting the curated tables used. json/toon output unchanged.

insight top-alerts and incidents are KEPT curated for now — their generated
twins differ by more than flag spelling (--limit→--k, offset→cursor
pagination), so they're not pure renames.

e2e: member filter tests migrated to --query.

Doc/scan.sh references in fc-safari migrate in a paired PR; the dropped
commands only disappear for agents once a new CLI is released into the
sandbox, so the two land together.
@ysyneu ysyneu merged commit a9ea711 into feat/ai-sre Jun 15, 2026
12 checks passed
@ysyneu ysyneu deleted the feat/cli-drop-insight-shadow branch June 15, 2026 10:20
ysyneu added a commit that referenced this pull request Jun 15, 2026
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