@quolu/lattice 0.102.0 → 0.102.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.102.0",
3
+ "version": "0.102.1",
4
4
  "description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
5
5
  "author": {
6
6
  "name": "Quo / クオ at kitepon.dev",
@@ -440,6 +440,8 @@ export function projectTodoNoteContext(options = {}) {
440
440
  const notes = [];
441
441
  let usedBytes = 0;
442
442
  for (const entry of current) {
443
+ // 件数もvalidatorと同じ上限で切る。byteに収まる短いnoteが溜まると、自分の出力が自分の検証で落ちる。
444
+ if (notes.length >= TODO_LIMITS.tasksPerPlan) break;
443
445
  const bytes = Buffer.byteLength(entry.body, 'utf8');
444
446
  if (usedBytes + bytes > TODO_LIMITS.noteContextBytes) continue;
445
447
  notes.push(entry);