Skip to content

Commit 343488f

Browse files
authored
feat(taxonomy): rename thinking_correction to plan_correction (#1145)
1 parent 6146f65 commit 343488f

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ class ExploreTrajectoryBlockTaxonomy(str, enum.Enum):
1616
THINKING_RECALL = "thinking_recall"
1717
THINKING_UNDERSTAND = "thinking_understand"
1818
THINKING_HYPOTHESIZE = "thinking_hypothesize"
19-
THINKING_CORRECTION = "thinking_correction"
2019

2120

2221
class ImplementTrajectoryBlockTaxonomy(str, enum.Enum):
23-
# Ordered as the work happens: plan, build, correct, test, debug.
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.
2425
WRITING_PLAN = "writing_plan"
26+
PLAN_CORRECTION = "plan_correction"
2527
IMPLEMENTING = "implementing"
2628
IMPLEMENTING_CORRECTION = "implementing_correction"
2729
WRITING_TESTS = "writing_tests"

frontend/src/app/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
--tc-thinking-recall: #0f8fa8;
229229
--tc-thinking-understand: #1baf7a;
230230
--tc-thinking-hypothesize: #a184ea;
231-
--tc-thinking-correction: #4a3aa7;
231+
--tc-plan-correction: #4a3aa7;
232232
--tc-writing-plan: #008300;
233233
--tc-implementing: #b8860b;
234234
--tc-implementing-correction: #c62828;
@@ -296,7 +296,7 @@
296296
--tc-thinking-recall: #2aa5bd;
297297
--tc-thinking-understand: #199e70;
298298
--tc-thinking-hypothesize: #9085e9;
299-
--tc-thinking-correction: #7a68d8;
299+
--tc-plan-correction: #7a68d8;
300300
--tc-writing-plan: #14923f;
301301
--tc-implementing: #b5860e;
302302
--tc-implementing-correction: #e05252;

frontend/src/lib/trajectory-metrics.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ const COMPONENT_COLOR_VARS: Record<string, string> = {
9696
thinking_recall: "var(--tc-thinking-recall)",
9797
thinking_understand: "var(--tc-thinking-understand)",
9898
thinking_hypothesize: "var(--tc-thinking-hypothesize)",
99-
thinking_correction: "var(--tc-thinking-correction)",
10099
writing_plan: "var(--tc-writing-plan)",
100+
plan_correction: "var(--tc-plan-correction)",
101101
implementing: "var(--tc-implementing)",
102102
implementing_correction: "var(--tc-implementing-correction)",
103103
writing_tests: "var(--tc-writing-tests)",
@@ -108,7 +108,8 @@ const COMPONENT_COLOR_VARS: Record<string, string> = {
108108
// Retired kinds, kept so stored summaries keep their fixed color rather than
109109
// falling through to appearance-order phase slots. Each shares the slot its
110110
// replacement took over; the two vocabularies never co-occur in one summary.
111-
thinking_diagnose: "var(--tc-thinking-correction)",
111+
thinking_correction: "var(--tc-plan-correction)",
112+
thinking_diagnose: "var(--tc-plan-correction)",
112113
testing_custom_edge_cases: "var(--tc-testing-edge)",
113114
// Synthetic bucket for steps no component claims — always neutral gray.
114115
other: "var(--phase-other)",

frontend/src/lib/trajectory-segments.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ const COMPONENT_LABELS: Record<TrajectoryComponentKind, string> = {
1010
thinking_recall: "Recalling",
1111
thinking_understand: "Understanding",
1212
thinking_hypothesize: "Hypothesizing",
13-
thinking_correction: "Correcting course",
1413
writing_plan: "Planning",
14+
plan_correction: "Correcting the plan",
1515
implementing: "Implementing",
1616
implementing_correction: "Correcting implementation",
1717
writing_tests: "Writing tests",
1818
testing_public: "Running public tests",
1919
testing_custom: "Running custom tests",
2020
testing_edge_cases: "Testing edge cases",
2121
debugging: "Debugging",
22+
// Retired kinds, kept so stored summaries still render a real label.
23+
thinking_correction: "Correcting course",
2224
thinking_diagnose: "Diagnosing",
2325
testing_custom_edge_cases: "Testing edge cases",
2426
};

frontend/src/lib/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ export type TrajectoryComponentKind =
703703
| "thinking_recall"
704704
| "thinking_understand"
705705
| "thinking_hypothesize"
706-
| "thinking_correction"
707706
| "writing_plan"
707+
| "plan_correction"
708708
| "implementing"
709709
| "implementing_correction"
710710
| "writing_tests"
@@ -713,6 +713,7 @@ export type TrajectoryComponentKind =
713713
| "testing_edge_cases"
714714
| "debugging"
715715
// Retired from the backend enum, but stored summaries still carry them.
716+
| "thinking_correction"
716717
| "thinking_diagnose"
717718
| "testing_custom_edge_cases";
718719

0 commit comments

Comments
 (0)