@hunter-harness/workflow-harness 0.2.61 → 0.2.62
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/harness/bundles/general/claude-code/.harness-build.json +1 -1
- package/harness/bundles/general/claude-code/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/general/codebuddy/.harness-build.json +1 -1
- package/harness/bundles/general/codebuddy/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/general/codex/.harness-build.json +1 -1
- package/harness/bundles/general/codex/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/codex/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/general/cursor/.harness-build.json +1 -1
- package/harness/bundles/general/cursor/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/cursor/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/java/claude-code/.harness-build.json +1 -1
- package/harness/bundles/java/claude-code/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/java/codebuddy/.harness-build.json +1 -1
- package/harness/bundles/java/codebuddy/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/java/codex/.harness-build.json +1 -1
- package/harness/bundles/java/codex/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/codex/scripts/harness_events_sync.py +191 -26
- package/harness/bundles/java/cursor/.harness-build.json +1 -1
- package/harness/bundles/java/cursor/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/cursor/scripts/harness_events_sync.py +191 -26
- package/harness/manifests/general/claude-code.json +14 -14
- package/harness/manifests/general/codebuddy.json +14 -14
- package/harness/manifests/general/codex.json +14 -14
- package/harness/manifests/general/cursor.json +14 -14
- package/harness/manifests/java/claude-code.json +16 -16
- package/harness/manifests/java/codebuddy.json +16 -16
- package/harness/manifests/java/codex.json +16 -16
- package/harness/manifests/java/cursor.json +16 -16
- package/hunter-workflow-family.json +5 -5
- package/package.json +1 -1
|
@@ -350,36 +350,97 @@ def _state_dir(change_dir: Path) -> Path:
|
|
|
350
350
|
return Path(harness_paths.resolve_state_dir_for_contract(change_dir))
|
|
351
351
|
|
|
352
352
|
|
|
353
|
-
def
|
|
353
|
+
def _cursor_values(path: Path) -> tuple[int, int, bool]:
|
|
354
|
+
if not path.is_file():
|
|
355
|
+
return 0, 0, True
|
|
356
|
+
try:
|
|
357
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
358
|
+
except (OSError, json.JSONDecodeError):
|
|
359
|
+
return 0, 0, False
|
|
360
|
+
raw_acked = data.get("acked_lines") if isinstance(data, dict) else None
|
|
361
|
+
raw_base = data.get("producer_seq_base", 0) if isinstance(data, dict) else None
|
|
362
|
+
acked_valid = (
|
|
363
|
+
not isinstance(raw_acked, bool)
|
|
364
|
+
and isinstance(raw_acked, int)
|
|
365
|
+
and raw_acked >= 0
|
|
366
|
+
)
|
|
367
|
+
base_valid = (
|
|
368
|
+
not isinstance(raw_base, bool)
|
|
369
|
+
and isinstance(raw_base, int)
|
|
370
|
+
and raw_base >= 0
|
|
371
|
+
)
|
|
372
|
+
return (
|
|
373
|
+
raw_acked if acked_valid else 0,
|
|
374
|
+
raw_base if base_valid else 0,
|
|
375
|
+
acked_valid and base_valid,
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
def _complete_line_count(path: Path) -> int:
|
|
380
|
+
if not path.is_file():
|
|
381
|
+
return 0
|
|
382
|
+
try:
|
|
383
|
+
data = path.read_bytes()
|
|
384
|
+
except OSError:
|
|
385
|
+
return 0
|
|
386
|
+
if not data:
|
|
387
|
+
return 0
|
|
388
|
+
return data.count(b"\n")
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
def _initial_producer_seq_base(change_dir: Path) -> int:
|
|
392
|
+
"""Keep producer sequence monotonic when a legacy stream becomes split-v1."""
|
|
393
|
+
state_dir = _state_dir(change_dir).resolve()
|
|
394
|
+
contract_dir = change_dir.resolve()
|
|
395
|
+
if state_dir == contract_dir:
|
|
396
|
+
return 0
|
|
397
|
+
legacy_acked, legacy_base, _ = _cursor_values(
|
|
398
|
+
contract_dir / "meta" / "events-sync-cursor.json"
|
|
399
|
+
)
|
|
400
|
+
legacy_lines = _complete_line_count(contract_dir / "events.ndjson")
|
|
401
|
+
return legacy_base + max(legacy_acked, legacy_lines)
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
def load_cursor_state(
|
|
354
405
|
change_dir: Path,
|
|
355
406
|
*,
|
|
356
407
|
maximum_lines: int | None = None,
|
|
357
408
|
repair: bool = False,
|
|
358
|
-
) -> int:
|
|
409
|
+
) -> dict[str, int]:
|
|
359
410
|
path = cursor_path(change_dir)
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
data = json.loads(path.read_text(encoding="utf-8"))
|
|
365
|
-
except (OSError, json.JSONDecodeError):
|
|
366
|
-
data = None
|
|
367
|
-
valid = False
|
|
368
|
-
raw = data.get("acked_lines") if isinstance(data, dict) else None
|
|
369
|
-
if isinstance(raw, bool) or not isinstance(raw, int) or raw < 0:
|
|
370
|
-
valid = False
|
|
371
|
-
value = 0
|
|
372
|
-
else:
|
|
373
|
-
value = raw
|
|
411
|
+
exists = path.is_file()
|
|
412
|
+
acked, producer_seq_base, valid = _cursor_values(path)
|
|
413
|
+
if not exists:
|
|
414
|
+
producer_seq_base = _initial_producer_seq_base(change_dir)
|
|
374
415
|
if maximum_lines is not None:
|
|
375
416
|
if maximum_lines < 0:
|
|
376
417
|
raise ValueError("maximum_lines must be non-negative")
|
|
377
|
-
if
|
|
418
|
+
if acked > maximum_lines:
|
|
419
|
+
acked = 0
|
|
378
420
|
valid = False
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
421
|
+
if (not valid or not exists) and repair:
|
|
422
|
+
save_cursor(
|
|
423
|
+
change_dir,
|
|
424
|
+
acked,
|
|
425
|
+
producer_seq_base=producer_seq_base,
|
|
426
|
+
)
|
|
427
|
+
return {
|
|
428
|
+
"acked_lines": acked,
|
|
429
|
+
"producer_seq_base": producer_seq_base,
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
def load_cursor(
|
|
434
|
+
change_dir: Path,
|
|
435
|
+
*,
|
|
436
|
+
maximum_lines: int | None = None,
|
|
437
|
+
repair: bool = False,
|
|
438
|
+
) -> int:
|
|
439
|
+
return load_cursor_state(
|
|
440
|
+
change_dir,
|
|
441
|
+
maximum_lines=maximum_lines,
|
|
442
|
+
repair=repair,
|
|
443
|
+
)["acked_lines"]
|
|
383
444
|
|
|
384
445
|
|
|
385
446
|
def _fsync_parent(path: Path) -> None:
|
|
@@ -392,14 +453,31 @@ def _fsync_parent(path: Path) -> None:
|
|
|
392
453
|
os.close(descriptor)
|
|
393
454
|
|
|
394
455
|
|
|
395
|
-
def save_cursor(
|
|
456
|
+
def save_cursor(
|
|
457
|
+
change_dir: Path,
|
|
458
|
+
acked_lines: int,
|
|
459
|
+
*,
|
|
460
|
+
producer_seq_base: int | None = None,
|
|
461
|
+
) -> None:
|
|
396
462
|
if isinstance(acked_lines, bool) or not isinstance(acked_lines, int) or acked_lines < 0:
|
|
397
463
|
raise ValueError("acked_lines must be a non-negative integer")
|
|
398
464
|
path = cursor_path(change_dir)
|
|
465
|
+
if producer_seq_base is None:
|
|
466
|
+
_, producer_seq_base, _ = _cursor_values(path)
|
|
467
|
+
if (
|
|
468
|
+
isinstance(producer_seq_base, bool)
|
|
469
|
+
or not isinstance(producer_seq_base, int)
|
|
470
|
+
or producer_seq_base < 0
|
|
471
|
+
):
|
|
472
|
+
raise ValueError("producer_seq_base must be a non-negative integer")
|
|
399
473
|
path.parent.mkdir(parents=True, exist_ok=True)
|
|
400
474
|
temporary = path.with_name(f".{path.name}.{uuid.uuid4().hex}.tmp")
|
|
401
475
|
encoded = (
|
|
402
|
-
json.dumps({
|
|
476
|
+
json.dumps({
|
|
477
|
+
"schemaVersion": 2,
|
|
478
|
+
"acked_lines": acked_lines,
|
|
479
|
+
"producer_seq_base": producer_seq_base,
|
|
480
|
+
}, indent=2) + "\n"
|
|
403
481
|
).encode("utf-8")
|
|
404
482
|
descriptor = os.open(
|
|
405
483
|
str(temporary), os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o600
|
|
@@ -489,6 +567,85 @@ def _event_lines_snapshot(events_file: Path) -> list[str]:
|
|
|
489
567
|
return data.decode("utf-8-sig").splitlines()
|
|
490
568
|
|
|
491
569
|
|
|
570
|
+
def _complete_stream_bytes(path: Path) -> bytes:
|
|
571
|
+
data = path.read_bytes() if path.is_file() else b""
|
|
572
|
+
if data and not data.endswith(b"\n"):
|
|
573
|
+
last_newline = data.rfind(b"\n")
|
|
574
|
+
data = b"" if last_newline < 0 else data[:last_newline + 1]
|
|
575
|
+
return data
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
def _atomic_replace_bytes(path: Path, data: bytes) -> None:
|
|
579
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
580
|
+
temporary = path.with_name(f".{path.name}.{uuid.uuid4().hex}.tmp")
|
|
581
|
+
descriptor = os.open(
|
|
582
|
+
str(temporary), os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o600
|
|
583
|
+
)
|
|
584
|
+
try:
|
|
585
|
+
with os.fdopen(descriptor, "wb") as stream:
|
|
586
|
+
descriptor = -1
|
|
587
|
+
stream.write(data)
|
|
588
|
+
stream.flush()
|
|
589
|
+
os.fsync(stream.fileno())
|
|
590
|
+
os.replace(temporary, path)
|
|
591
|
+
_fsync_parent(path)
|
|
592
|
+
finally:
|
|
593
|
+
if descriptor >= 0:
|
|
594
|
+
os.close(descriptor)
|
|
595
|
+
try:
|
|
596
|
+
temporary.unlink()
|
|
597
|
+
except FileNotFoundError:
|
|
598
|
+
pass
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
def _migrate_pending_legacy_stream(change_dir: Path) -> None:
|
|
602
|
+
"""Prefix unsent colocated events before the first split-v1 state upload."""
|
|
603
|
+
contract_dir = change_dir.resolve()
|
|
604
|
+
state_dir = _state_dir(change_dir).resolve()
|
|
605
|
+
legacy_events = contract_dir / "events.ndjson"
|
|
606
|
+
target_events = state_dir / "events.ndjson"
|
|
607
|
+
target_cursor = state_dir / "meta" / "events-sync-cursor.json"
|
|
608
|
+
if state_dir == contract_dir or not legacy_events.is_file() or target_cursor.exists():
|
|
609
|
+
return
|
|
610
|
+
legacy_cursor = contract_dir / "meta" / "events-sync-cursor.json"
|
|
611
|
+
legacy_acked, _, _ = _cursor_values(legacy_cursor)
|
|
612
|
+
legacy_line_count = _complete_line_count(legacy_events)
|
|
613
|
+
if legacy_acked >= legacy_line_count:
|
|
614
|
+
return
|
|
615
|
+
|
|
616
|
+
locks = [
|
|
617
|
+
_CrossProcessLock(path.with_name(path.name + ".lock"))
|
|
618
|
+
for path in sorted((legacy_events, target_events), key=lambda item: str(item).casefold())
|
|
619
|
+
]
|
|
620
|
+
for lock in locks:
|
|
621
|
+
lock.acquire(blocking=True)
|
|
622
|
+
try:
|
|
623
|
+
if target_cursor.exists() or not legacy_events.is_file():
|
|
624
|
+
return
|
|
625
|
+
legacy_data = _complete_stream_bytes(legacy_events)
|
|
626
|
+
target_data = _complete_stream_bytes(target_events)
|
|
627
|
+
if target_data.startswith(legacy_data):
|
|
628
|
+
merged = target_data
|
|
629
|
+
else:
|
|
630
|
+
merged = legacy_data + target_data
|
|
631
|
+
_atomic_replace_bytes(target_events, merged)
|
|
632
|
+
|
|
633
|
+
target_cursor.parent.mkdir(parents=True, exist_ok=True)
|
|
634
|
+
if legacy_cursor.is_file():
|
|
635
|
+
os.replace(legacy_cursor, target_cursor)
|
|
636
|
+
else:
|
|
637
|
+
save_cursor(change_dir, 0, producer_seq_base=0)
|
|
638
|
+
|
|
639
|
+
legacy_quarantine = contract_dir / "meta" / "events-sync-quarantine.ndjson"
|
|
640
|
+
target_quarantine = state_dir / "meta" / "events-sync-quarantine.ndjson"
|
|
641
|
+
if legacy_quarantine.is_file() and not target_quarantine.exists():
|
|
642
|
+
os.replace(legacy_quarantine, target_quarantine)
|
|
643
|
+
legacy_events.unlink()
|
|
644
|
+
finally:
|
|
645
|
+
for lock in reversed(locks):
|
|
646
|
+
lock.release()
|
|
647
|
+
|
|
648
|
+
|
|
492
649
|
def sync_change(
|
|
493
650
|
project: Path,
|
|
494
651
|
change_dir: Path,
|
|
@@ -525,6 +682,7 @@ def sync_change(
|
|
|
525
682
|
if heartbeat_only:
|
|
526
683
|
return {"ok": True, "heartbeat": True, "run_id": rid, "change_key": resolved_key}
|
|
527
684
|
|
|
685
|
+
_migrate_pending_legacy_stream(change_dir)
|
|
528
686
|
events_file = _state_dir(change_dir) / "events.ndjson"
|
|
529
687
|
if not events_file.is_file():
|
|
530
688
|
return {
|
|
@@ -536,11 +694,13 @@ def sync_change(
|
|
|
536
694
|
}
|
|
537
695
|
|
|
538
696
|
lines = _event_lines_snapshot(events_file)
|
|
539
|
-
|
|
697
|
+
cursor = load_cursor_state(
|
|
540
698
|
change_dir,
|
|
541
699
|
maximum_lines=len(lines),
|
|
542
700
|
repair=True,
|
|
543
701
|
)
|
|
702
|
+
acked = cursor["acked_lines"]
|
|
703
|
+
producer_seq_base = cursor["producer_seq_base"]
|
|
544
704
|
pending_raw = lines[acked:]
|
|
545
705
|
phase_plan = _workflow_plan(change_dir)
|
|
546
706
|
uploaded = 0
|
|
@@ -571,7 +731,7 @@ def sync_change(
|
|
|
571
731
|
event_id = str(event.get("id") or f"{resolved_key}:{line_number}")
|
|
572
732
|
item: dict[str, Any] = {
|
|
573
733
|
"event_id": event_id,
|
|
574
|
-
"producer_seq": line_number,
|
|
734
|
+
"producer_seq": producer_seq_base + line_number,
|
|
575
735
|
"event_type": str(event.get("type") or "unknown"),
|
|
576
736
|
"occurred_at": str(event.get("timestamp") or event.get("ts") or client_time),
|
|
577
737
|
"payload": _event_payload(event, phase_plan),
|
|
@@ -664,7 +824,11 @@ def sync_change(
|
|
|
664
824
|
status="local_invalid",
|
|
665
825
|
)
|
|
666
826
|
quarantined += 1
|
|
667
|
-
save_cursor(
|
|
827
|
+
save_cursor(
|
|
828
|
+
change_dir,
|
|
829
|
+
acked + chunk_start + len(raw_chunk),
|
|
830
|
+
producer_seq_base=producer_seq_base,
|
|
831
|
+
)
|
|
668
832
|
|
|
669
833
|
return {
|
|
670
834
|
"ok": True,
|
|
@@ -674,6 +838,7 @@ def sync_change(
|
|
|
674
838
|
"quarantined": quarantined,
|
|
675
839
|
"batch_size": min(MAX_BATCH_SIZE, len(pending_raw)),
|
|
676
840
|
"acked_lines": len(lines),
|
|
841
|
+
"producer_seq_base": producer_seq_base,
|
|
677
842
|
"server": last_result,
|
|
678
843
|
}
|
|
679
844
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schema_version": 2,
|
|
3
3
|
"profile": "general",
|
|
4
4
|
"adapter": "claude-code",
|
|
5
|
-
"bundle_version": "0.2.
|
|
5
|
+
"bundle_version": "0.2.51",
|
|
6
6
|
"requires": {
|
|
7
|
-
"minimumCliVersion": "0.2.
|
|
7
|
+
"minimumCliVersion": "0.2.68",
|
|
8
8
|
"capabilities": [
|
|
9
9
|
"sync@2",
|
|
10
10
|
"rules-sync@1",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
{
|
|
25
25
|
"path": ".harness-build.json",
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "c1f3c7f7e536fb4f9c6af6b1ef01f6302801e7e6264b14db20cf97992a1b3bfb"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "agents/harness-evaluator.md",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"path": "harness-archive/SKILL.md",
|
|
98
|
-
"sha256": "
|
|
98
|
+
"sha256": "ead34baca8c7349cc78ea6b78faac4cd582f3e6121a249843924808cff5c17a4"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"path": "harness-archive/templates/summary-data-template.json",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"path": "harness-codebase-map/SKILL.md",
|
|
114
|
-
"sha256": "
|
|
114
|
+
"sha256": "b1a3c0af84882f76b923a866aba9e2d2c9925a9540fa2dff2ad771de7282dd90"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"path": "harness-codebase-map/templates/ARCHITECTURE.md",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"path": "harness-knowledge-ingest/SKILL.md",
|
|
154
|
-
"sha256": "
|
|
154
|
+
"sha256": "1595cb9be754158355b3c0d50de0b629b296203d8a8a0af71bf880827d258d04"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"path": "harness-knowledge-query/SKILL.md",
|
|
158
|
-
"sha256": "
|
|
158
|
+
"sha256": "511ad681c398cd0ed53cf9442ccb301f3d92a680df20a2a3732e07408c9dfa12"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"path": "harness-plan/checklist.md",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"path": "harness-plan/SKILL.md",
|
|
174
|
-
"sha256": "
|
|
174
|
+
"sha256": "821364fc56326e3c257312540a9b41c2a818c33e17102eb3cf079d18620c84e7"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "harness-review/checklist.md",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"path": "harness-review/SKILL.md",
|
|
190
|
-
"sha256": "
|
|
190
|
+
"sha256": "1649e9d30a0d3c500d0da3dd0f112ab96f4ce84662466a8935ed5d7f3d77b969"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"path": "harness-run/checklist.md",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"path": "harness-run/SKILL.md",
|
|
206
|
-
"sha256": "
|
|
206
|
+
"sha256": "f4e253c66a14e53a5608b8121e80f78e02d118ab89cb0702a9593a939fbd3618"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"path": "harness-submit/checklist.md",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "harness-submit/SKILL.md",
|
|
218
|
-
"sha256": "
|
|
218
|
+
"sha256": "4374bf2898a29882b080b584b4279a661f9dbfcf89abfab6f21ad46c38620421"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
"path": "harness-sync/reference.md",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"path": "harness-sync/SKILL.md",
|
|
226
|
-
"sha256": "
|
|
226
|
+
"sha256": "982dfb27a958b7337fbd2d53fbdcad2956a9460dcfe84eb4d31b2d047338cdef"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"path": "harness-test/checklist.md",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"path": "harness-test/SKILL.md",
|
|
250
|
-
"sha256": "
|
|
250
|
+
"sha256": "360b72705fe7bea7fdedf696ea31ca2dc87f815d48c618e98855d6657b1c589b"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"path": "protocols/archive-report-protocol.md",
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"path": "scripts/harness_events_sync.py",
|
|
350
|
-
"sha256": "
|
|
350
|
+
"sha256": "20176a0a7695a4a29ef9a9ac619f977b3aea98ca25298daa3f223db101e3197c"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"path": "scripts/harness_events.py",
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schema_version": 2,
|
|
3
3
|
"profile": "general",
|
|
4
4
|
"adapter": "codebuddy",
|
|
5
|
-
"bundle_version": "0.2.
|
|
5
|
+
"bundle_version": "0.2.51",
|
|
6
6
|
"requires": {
|
|
7
|
-
"minimumCliVersion": "0.2.
|
|
7
|
+
"minimumCliVersion": "0.2.68",
|
|
8
8
|
"capabilities": [
|
|
9
9
|
"sync@2",
|
|
10
10
|
"rules-sync@1",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
{
|
|
25
25
|
"path": ".harness-build.json",
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "302c4a967bbea4c1f640b5617c7e5cc565a67e92e9cdb0634a89256d927c6aaa"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "agents/harness-evaluator.md",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"path": "harness-archive/SKILL.md",
|
|
98
|
-
"sha256": "
|
|
98
|
+
"sha256": "60a3f7fc6f69ccf56d7019f13c184108b07d064beb2860d1d7304f48d1d605cb"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"path": "harness-archive/templates/summary-data-template.json",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"path": "harness-codebase-map/SKILL.md",
|
|
114
|
-
"sha256": "
|
|
114
|
+
"sha256": "d6588fb7ab4c3b829a948e7bb968cfe2ec2f47ab2a78c02cedb6b6f8741e575b"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"path": "harness-codebase-map/templates/ARCHITECTURE.md",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"path": "harness-knowledge-ingest/SKILL.md",
|
|
154
|
-
"sha256": "
|
|
154
|
+
"sha256": "494227a9c2a0a6650f0f81e21f6e42503a78fb72d63ebfe8f22f4c05d35746b5"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"path": "harness-knowledge-query/SKILL.md",
|
|
158
|
-
"sha256": "
|
|
158
|
+
"sha256": "66c382744d91e500d2eb8e803cc6f4e8b8242f9606abd01b5f16c9f0c9113f72"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"path": "harness-plan/checklist.md",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"path": "harness-plan/SKILL.md",
|
|
174
|
-
"sha256": "
|
|
174
|
+
"sha256": "d5cb605279d5121f6c96d12ae4c0a091aa697f4690d6979e6ff96d31a7c7b3f8"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "harness-review/checklist.md",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"path": "harness-review/SKILL.md",
|
|
190
|
-
"sha256": "
|
|
190
|
+
"sha256": "f41c12f3c82a82e1dc3c0af83f457d71d6a8b4d7f7a721073756174dcd340126"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"path": "harness-run/checklist.md",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"path": "harness-run/SKILL.md",
|
|
206
|
-
"sha256": "
|
|
206
|
+
"sha256": "ac9d975807c7c0667d9a109a2b2d317e44e0268a0603f02902a4c41b1901412d"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"path": "harness-submit/checklist.md",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "harness-submit/SKILL.md",
|
|
218
|
-
"sha256": "
|
|
218
|
+
"sha256": "338f9539ffa5a7662ebe7fad8ef783a5468aced92f15030409b510124adf294f"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
"path": "harness-sync/reference.md",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"path": "harness-sync/SKILL.md",
|
|
226
|
-
"sha256": "
|
|
226
|
+
"sha256": "16f0555d1c11faae326611807349a952d6301f927abd43541e11da657a453960"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"path": "harness-test/checklist.md",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"path": "harness-test/SKILL.md",
|
|
250
|
-
"sha256": "
|
|
250
|
+
"sha256": "268eba7ad2251b8c7ffe206a0d2b2f0d9f1919da1794d6ff3816ad984eab5060"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"path": "protocols/archive-report-protocol.md",
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"path": "scripts/harness_events_sync.py",
|
|
350
|
-
"sha256": "
|
|
350
|
+
"sha256": "20176a0a7695a4a29ef9a9ac619f977b3aea98ca25298daa3f223db101e3197c"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"path": "scripts/harness_events.py",
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schema_version": 2,
|
|
3
3
|
"profile": "general",
|
|
4
4
|
"adapter": "codex",
|
|
5
|
-
"bundle_version": "0.2.
|
|
5
|
+
"bundle_version": "0.2.51",
|
|
6
6
|
"requires": {
|
|
7
|
-
"minimumCliVersion": "0.2.
|
|
7
|
+
"minimumCliVersion": "0.2.68",
|
|
8
8
|
"capabilities": [
|
|
9
9
|
"sync@2",
|
|
10
10
|
"rules-sync@1",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
{
|
|
25
25
|
"path": ".harness-build.json",
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "e4277b73e6c0af8d8a8b88cd662eda586a54aa5a9a46508a0ea190050c3fade7"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "CONTEXT.md",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"path": "harness-archive/SKILL.md",
|
|
86
|
-
"sha256": "
|
|
86
|
+
"sha256": "793c8206a86cf5f42acbcdcb62078777302c85cb81d170877735363f08f152aa"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"path": "harness-archive/templates/summary-data-template.json",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"path": "harness-codebase-map/SKILL.md",
|
|
102
|
-
"sha256": "
|
|
102
|
+
"sha256": "054151b43d65036667ca502fadb10a967dc78433bff3eb0055204b9e20e4b172"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"path": "harness-codebase-map/templates/ARCHITECTURE.md",
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"path": "harness-knowledge-ingest/SKILL.md",
|
|
142
|
-
"sha256": "
|
|
142
|
+
"sha256": "150d2891c2140d7ae52e3ccd25beaf96487714b522306447574229955d6734f3"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"path": "harness-knowledge-query/SKILL.md",
|
|
146
|
-
"sha256": "
|
|
146
|
+
"sha256": "bea08eae27aee90219579c6de220ec9d65202d47cbb38a936dfeaddfeb049f24"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "harness-plan/checklist.md",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"path": "harness-plan/SKILL.md",
|
|
162
|
-
"sha256": "
|
|
162
|
+
"sha256": "c15e5601d66e1ed6ea1ea6104f945c069c40e4016fa95533958c771daa6b3592"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"path": "harness-review/checklist.md",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "harness-review/SKILL.md",
|
|
178
|
-
"sha256": "
|
|
178
|
+
"sha256": "c405823c92f687343d4428e4b93cdeb9259ebef5ec42689b70c66d59e144e4fb"
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"path": "harness-run/checklist.md",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"path": "harness-run/SKILL.md",
|
|
194
|
-
"sha256": "
|
|
194
|
+
"sha256": "5ad922c4519820d65f4f8dca214f797428164c2c58d49b305a74b92f80748c42"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"path": "harness-submit/checklist.md",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"path": "harness-submit/SKILL.md",
|
|
206
|
-
"sha256": "
|
|
206
|
+
"sha256": "e4bc31a55ce643d38c095a546a0aa7c8970dc19335754f10b2e17558ab882b64"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"path": "harness-sync/reference.md",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"path": "harness-sync/SKILL.md",
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "cd3a050885474562cbba18630af3cfabd807916ff9cfddfe8db73fd02a42bbbf"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "harness-test/checklist.md",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"path": "harness-test/SKILL.md",
|
|
238
|
-
"sha256": "
|
|
238
|
+
"sha256": "ce2d365dd1b8abb470d0d72b0fbde916aca5af3153889691a142b92764effb50"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
"path": "protocols/archive-report-protocol.md",
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"path": "scripts/harness_events_sync.py",
|
|
338
|
-
"sha256": "
|
|
338
|
+
"sha256": "20176a0a7695a4a29ef9a9ac619f977b3aea98ca25298daa3f223db101e3197c"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "scripts/harness_events.py",
|