Open History to see the last commit
1import type { ThreadTitleMessage } from "@t3tools/provider-core/server/threadTitleContext";
2
3export const threadTitleEvaluationCases = [
4 {
5 id: "linked-reset-credits",
6 source: "https://github.com/pingdotgg/t3code/pull/10462",
7 request: "Review the reset credit routing change.",
8 previousTitle: "Review PR 10462",
9 messages: [{ role: "user", text: "Review https://github.com/pingdotgg/t3code/pull/10462" }],
10 rubric: "Name reset credit routing. Distinguish it from displaying credit balances.",
11 },
12 {
13 id: "onboarding-merge",
14 source: "https://github.com/pingdotgg/t3code/pull/10465",
15 request: "Make onboarding one shared wizard across computers, then merge when green.",
16 previousTitle: "Finish onboarding PR",
17 messages: [
18 { role: "user", text: "Make onboarding one shared wizard across computers." },
19 {
20 role: "assistant",
21 text: "The wizard now handles pairing, agent selection, and project import.",
22 },
23 { role: "user", text: "File a PR and merge it when green." },
24 ],
25 rubric: "Keep the multi-computer onboarding subject. Do not title it after merging.",
26 },
27 {
28 id: "vague-opening",
29 source: "Existing lazy thread feed title scenario",
30 request: "A failing test is later identified as a lazy thread feed mismatch.",
31 previousTitle: "Fix failing test",
32 messages: [
33 { role: "user", text: "Fix this failing test." },
34 {
35 role: "assistant",
36 text: "The lazy thread feed test expects a full message body before the client requests it.",
37 },
38 ],
39 rubric: "Name the lazy thread feed test. Do not invent a wider mobile regression.",
40 },
41 {
42 id: "scope-change",
43 source: "Title context budget scenario",
44 request: "Change the goal from QR layout to pairing expiry, despite long assistant replies.",
45 previousTitle: "Improve QR layout",
46 messages: [
47 { role: "user", text: "Improve QR sharing layout." },
48 {
49 role: "user",
50 text: "Change of plan. Fix pairing token expiry. Keep remote access working.",
51 },
52 {
53 role: "assistant",
54 text: "The token expires before redemption. " + "Implementation detail. ".repeat(800),
55 },
56 { role: "user", text: "Ship it." },
57 ],
58 rubric: "Name pairing expiry and honor the explicit scope change.",
59 },
60 {
61 id: "review-umbrella",
62 source: "Existing subagent monitoring title scenario",
63 request: "Review subagent monitoring risks. A Codex roster issue is one finding.",
64 previousTitle: "Review subagent monitoring risks",
65 messages: [
66 { role: "user", text: "Review subagent monitoring risks." },
67 {
68 role: "assistant",
69 text: "One finding is a stale Codex roster. " + "Roster detail. ".repeat(800),
70 },
71 { role: "user", text: "Fix the findings and babysit CI." },
72 ],
73 rubric: "Preserve the monitoring review scope. The previous title can stay unchanged.",
74 },
75 {
76 id: "long-opening",
77 source: "Title message truncation scenario",
78 request: "Investigate Android pairing while preserving the iOS flow.",
79 previousTitle: "Inspect logs",
80 messages: [
81 {
82 role: "user",
83 text:
84 "Investigate Android pairing. " +
85 "Connection logs. ".repeat(800) +
86 " Preserve the iOS pairing flow.",
87 },
88 ],
89 rubric: "Name Android pairing. Logs are supporting evidence.",
90 },
91 {
92 id: "research",
93 source: "Maintainer title generation request",
94 request: "How can we improve title generation in T3 Code?",
95 previousTitle: "Research title gen improvements",
96 messages: [
97 { role: "user", text: "How can we improve title gen further in T3 Code?" },
98 {
99 role: "assistant",
100 text: "Prioritize user messages, refine vague titles once, and resolve PR subjects.",
101 },
102 {
103 role: "user",
104 text: "Make these changes and file a PR. Babysit until everything is green.",
105 },
106 ],
107 rubric: "Keep title generation as the subject. Do not focus on filing the PR.",
108 },
109] satisfies ReadonlyArray<{
110 id: string;
111 source: string;
112 request: string;
113 previousTitle: string;
114 messages: ReadonlyArray<ThreadTitleMessage>;
115 rubric: string;
116}>;