Skip to content

Commit 3dc0cf3

Browse files
authored
feat(taxonomy): add writing_report to the trajectory component vocabulary (#1153)
1 parent c7515f6 commit 3dc0cf3

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

backend/api/services/blocks/analyzer/trajectory/trajectory_component_block.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class ExploreTrajectoryBlockTaxonomy(str, enum.Enum):
1919

2020

2121
class ImplementTrajectoryBlockTaxonomy(str, enum.Enum):
22-
# Ordered as the work happens: plan, replan, build, correct, test, debug.
23-
# PLAN_CORRECTION sits beside WRITING_PLAN so the model reads the two as a
24-
# pair; the flat vocabulary below preserves this order in the prompt.
22+
# Ordered as the work happens: plan, replan, build, correct, test, debug,
23+
# report. PLAN_CORRECTION sits beside WRITING_PLAN so the model reads the
24+
# two as a pair; the flat vocabulary below preserves this order in the
25+
# prompt. WRITING_REPORT is last because it is what a run ends with.
2526
WRITING_PLAN = "writing_plan"
2627
PLAN_CORRECTION = "plan_correction"
2728
IMPLEMENTING = "implementing"
@@ -31,6 +32,7 @@ class ImplementTrajectoryBlockTaxonomy(str, enum.Enum):
3132
TESTING_CUSTOM = "testing_custom"
3233
TESTING_EDGE_CASES = "testing_edge_cases"
3334
DEBUGGING = "debugging"
35+
WRITING_REPORT = "writing_report"
3436

3537

3638
# One flat vocabulary built from the two sub-enums, so a component carries a

frontend/src/app/globals.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@
237237
--tc-testing-custom: #c94592;
238238
--tc-testing-edge: #852c5e;
239239
--tc-debugging: #eb6834;
240+
/* Dark, desaturated brown: writing_report is terminal bookkeeping, so it
241+
recedes rather than competing. The warm half is already past the
242+
categorical limit and every warm hue between implementing (43deg) and
243+
debugging (17deg) is taken, so this separates on value and chroma
244+
instead -- sat 0.30 against their 0.92/0.82, and much darker. */
245+
--tc-writing-report: #5c4033;
240246
}
241247

242248
.dark {
@@ -305,6 +311,7 @@
305311
--tc-testing-custom: #d55181;
306312
--tc-testing-edge: #9d3973;
307313
--tc-debugging: #d95926;
314+
--tc-writing-report: #836b5c;
308315
}
309316

310317
/*

frontend/src/lib/trajectory-metrics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const COMPONENT_COLOR_VARS: Record<string, string> = {
105105
testing_custom: "var(--tc-testing-custom)",
106106
testing_edge_cases: "var(--tc-testing-edge)",
107107
debugging: "var(--tc-debugging)",
108+
writing_report: "var(--tc-writing-report)",
108109
// Retired kinds, kept so stored summaries keep their fixed color rather than
109110
// falling through to appearance-order phase slots. Each shares the slot its
110111
// replacement took over; the two vocabularies never co-occur in one summary.

frontend/src/lib/trajectory-segments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const COMPONENT_LABELS: Record<TrajectoryComponentKind, string> = {
1919
testing_custom: "Running custom tests",
2020
testing_edge_cases: "Testing edge cases",
2121
debugging: "Debugging",
22+
writing_report: "Reporting",
2223
// Retired kinds, kept so stored summaries still render a real label.
2324
thinking_correction: "Correcting course",
2425
thinking_diagnose: "Diagnosing",

frontend/src/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ export type TrajectoryComponentKind =
712712
| "testing_custom"
713713
| "testing_edge_cases"
714714
| "debugging"
715+
| "writing_report"
715716
// Retired from the backend enum, but stored summaries still carry them.
716717
| "thinking_correction"
717718
| "thinking_diagnose"

0 commit comments

Comments
 (0)