You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 44df5ff
Browse filesBrowse the repository at this point in the historyBrowse files
// resolution, compaction-lost evidence) with a stated reason and bounded
24
+
// scope. Named export rather than a family row: it travels the
21
25
// ModelFamilyPolicy.promptResidual seam, composed over the gpt narrate note.
22
26
exportconstastraResidual: string=
23
27
"Tool discipline (gpt-6-astra worker):\n"+
24
28
"- Never re-issue a tool call that repeats a prior call with only trivial argument changes (path prefix, offset, limit, whitespace).\n"+
25
-
"- Never re-read a file you have already read this session.";
29
+
"- Avoid re-reading content you already have; do not loop full-file re-reads that add no new information.\n"+
30
+
"- A re-read is permitted when it adds information: unread pages (a new offset/limit range), content that changed since the last read, a targeted re-read to resolve a specific uncertainty, or evidence lost to compaction.\n"+
31
+
"- A necessary re-read states its reason and bounded scope first (path, range, and the question it answers) and does not restart a broad investigation.\n"+
32
+
"- Boundary: the same path with default offset/limit after a full read is redundant; the same path with a new page range or after an edit is necessary.";
test("compacted-evidence scenario: targeted re-reads that resolve uncertainty or recover compaction-lost evidence are permitted, with a stated reason and bounded scope",()=>{
expect(ASTRA_PROMPT_RESIDUAL).toContain("reason and bounded scope");
21
+
});
22
+
23
+
test("unchanged-repetition negative control: unchanged full-file re-read loops stay discouraged, the absolute ban is gone, and the boundary is stated",()=>{
0 commit comments