Commit Graph
109 Commits
Author SHA1 Message Date
thanhnvandClaude Sonnet 4.6 a8edbea534 fix T1+T4: wire rollback into pipeline; real Ollama telemetry in metrics
T1 (H7): casan-step.mjs now calls rollback-manager.sh checkpoint before
overwriting plan.md at attempt-2, writes tx-id to plan.checkpoint.txid
sidecar, and executes rollback on REJECTED verdict. rollback-transactions.jsonl
records a real cp restore command. Adversarial test: checkpoint exists,
real cp command recorded, plan hash matches pre-overwrite content.

T4 (H6): casan-harness.sh exports CASAN_STEP_NAME=$ACTION_NAME before
agent-metrics.sh so nested model calls (model-call.py) and the provider-
cost-lookup.py query share the same step label. metrics.jsonl now writes
cost_source=provider_telemetry instead of word_count_estimate when a real
Ollama call is made within the same step. Adversarial test: verified with
CASAN_STEP_NAME=t4-telemetry-test end-to-end.

adversarial-harness-tests.sh: 40 → 44 PASS / 0 FAIL (+3 T1, +1 T4)
security-gate.sh: PASS=10 FAIL=0 SKIP=0 (verified, local ornith:9b)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 11:25:50 +09:00
thanhnvandClaude Sonnet 4.6 f74a5b6e42 fix: add @testing-library/dom peer dep; security gate PASS=10 on macOS
- frontend/package.json: add @testing-library/dom ^10.0.0 (missing peer
  dep of @testing-library/react that caused test failure on macOS)
- docs: update security gate result to PASS=10 FAIL=0 SKIP=0 (macOS
  with local ornith:9b) vs PASS=7 SKIP=1 on Windows (no Ollama)
- audit logs: real evidence from running all 10 gates (adversarial suite,
  model router, red-team 30-sample, judge gate, frontend Vitest)
- remove 10 timestamp-named trace stubs (not referenced by
  pipeline-context.yaml; UUID stubs in place and validated)

Verified: security-gate.sh PASS=10 FAIL=0 SKIP=0
          adversarial-harness-tests.sh PASS=40 FAIL=0
          npm test -w frontend: 16 PASS / 0 FAIL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 11:05:49 +09:00
nampdt ea6b3a7c7d Merge pull request 'Wave 4: Frontend Vitest tests, H1/H7 fixes, Windows compat' (#4) from feature/wave4 into main
Merge Wave 4: frontend Vitest, H1/H7 fixes, Windows compat
2026-07-01 00:20:54 +00:00
Nam Pham Dinh ThanhandClaude Sonnet 4.6 838b2473b6 Wave 4: frontend Vitest tests, H1/H7 fixes, Windows compat (python3→python, MSYS2 path)
WV4-A: Added 16 Vitest/RTL tests to frontend (jsdom env, fail-before proof verified)
WV4-B: Created 12 stub traces for pipeline retention gap; fixed MSYS2/Python path mismatch in context-validate.sh; run-casan4-harness-tests.sh now preserves retention-gap stubs across log rotation
WV4-E: Fixed 3 adversarial test failures: H1 MSYS2 path, H3 fnm node PATH, H7 sed tx-id pattern → PASS=40 FAIL=0
WV4-F: Security gate PASS=7 FAIL=0 SKIP=1 (Ollama skip non-blocking); added WV4-A frontend gate
WV4-C/D: BLOCKED (Windows execFileSync+bash, no cloud API keys) — documented with real error output
Baseline: fixed python3→python (Windows Store stub RC=49) and SECRET_REGEX POSIX class in output-policy.yaml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 02:23:51 +09:00
admin 3e6ef780e4 Merge pull request 'Update optimize wave3 (need update wave 4 to wave 8)' (#3) from feature/wave3 into main
Reviewed-on: http://161.33.139.73:3000/admin/casan5/pulls/3
2026-06-30 15:05:47 +00:00
thanhnv eaf919e744 Update optimize wave3 (need update wave 4 to wave 8) 2026-07-01 00:02:30 +09:00
admin 697e9f91b5 Merge pull request 'add Ci gate, add llm-judgetest' (#2) from kien_update into main
Reviewed-on: http://161.33.139.73:3000/admin/casan5/pulls/2
2026-06-30 12:26:48 +00:00
kiennt38 8793087171 add Ci gate, add llm-judgetest 2026-06-30 15:11:57 +09:00
thanhnv 07ac1bdcdd update first - 84 2026-06-30 02:21:39 +09:00