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 1d6f5ac
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Inputs such as `planText` and the ledger must come from the caller. The future `
43
43
44
44
## Current limits and safety
45
45
46
-
- History must be linear and descend from the requested base. Merge histories are rejected with a rebase instruction; repositories using object alternates or symlinked object storage are rejected (storage inspection is limited to 100,000 entries). Reads are bounded to 500 commits, 32 MiB per Git response, 64 MiB of unique blob bytes across the history (callers may lower `maxBlobBytes`), and a 2-second budget per line diff; oversized work fails explicitly.
46
+
- History must be linear and descend from the requested base. Merge histories are rejected with a rebase instruction; repositories using object alternates or symlinked object storage are rejected (storage inspection is limited to 100,000 entries). Reads are bounded to 500 commits, 32 MiB per Git response, 64 MiB of unique blob bytes across the history (callers may lower `maxBlobBytes`), 8 MiB of cumulative diff output, 20,000 cumulative file records (including the final diff), and a 2-second budget per line diff; oversized work fails explicitly.
47
47
- The caller selects and trusts the repository and its Git administrative directory. Normal Git discovery, linked-worktree gitfiles, and symlinked gitdirs are supported; object-storage links and alternates inside that selected gitdir are rejected. This adapter is not a filesystem-containment boundary for untrusted repository roots.
48
48
- Object storage must remain unchanged during a read; these library checks do not isolate a concurrently hostile filesystem.
49
49
- Ownership uses line diffs, not semantic inference. Within one replacement block, new lines inherit all affected owners conservatively. Function context comes from Git hunk headers, not an AST.
Copy file name to clipboardExpand all lines: docs/implementation/build-step-1.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@ Declined the YAML finding: the pinned yaml 2.9.1 implementation and types explic
63
63
64
64
Clarified the gitdir policy rather than rejecting normal linked worktrees. The caller selects and trusts the repository and its administrative directory; gitfiles and symlinked gitdirs are supported, while object-storage symlinks and alternates within that gitdir are rejected. Real-Git fixtures exercise both administrative layouts. Filesystem containment of an untrusted repository root belongs to the runner, not this read-only library.
65
65
66
+
## Review round 8
67
+
68
+
Fixed aggregate diff retention outside the blob budget. The adapter limits total raw-diff and context-patch output to 8 MiB and total file records across commit and final diffs to 20,000. Both budgets can be lowered by callers. Small-budget cases first failed and now reject explicitly; the exact file-record boundary succeeds.
69
+
66
70
## Remaining gates
67
71
68
72
This is a working foundation, not a completed application or a claim that all implementation tasks are done. T18's pure validation/edit core is present; its agent adapters, import UI, and persistence are pending. Ledger storage, rebase mappings, and the read-only review screen remain next. The already-fixed GitHub check belongs to the later GitHub/runner integration.
if(!Number.isSafeInteger(maxBlobBytes)||maxBlobBytes<1||maxBlobBytes>64*1024*1024)thrownewError('Blob byte budget must be a positive integer no larger than 64 MiB.');
if(!Number.isSafeInteger(maxObjectEntries)||maxObjectEntries<1||maxObjectEntries>100_000)thrownewError('Object entry budget must be a positive integer no larger than 100000.');
if(!Number.isSafeInteger(maxDiffBytes)||maxDiffBytes<1||maxDiffBytes>8*1024*1024)thrownewError('Diff byte budget must be a positive integer no larger than 8 MiB.');
if(!Number.isSafeInteger(maxFileEntries)||maxFileEntries<1||maxFileEntries>20_000)thrownewError('File entry budget must be a positive integer no larger than 20000.');
16
+
letblobBytes=0,diffBytes=0,fileEntries=0;
17
+
constaccountDiff=(data: Buffer): Buffer=>{
18
+
diffBytes+=data.length;
19
+
if(diffBytes>maxDiffBytes)thrownewError('Review history exceeds the cumulative diff byte budget; choose a narrower base.');
20
+
returndata;
21
+
};
13
22
// Inherited Git variables can redirect repository, index, config, and object lookup.
0 commit comments