Devin AI
|
38b48e30d2
|
fix: preserve semantic differences in refactored shared utilities
- q16_lut_generator.py: revert to local unsigned-wrapping Q16 functions
(hardware LUT uses 32-bit wrapping + 0xFFFFFFFF div-by-zero sentinel)
- dataset_ingest_rds.py: import load_json (not load_jsonl) — files are
standard JSON arrays, not JSONL
- tiddlywiki_ene_bridge.py: use canonical_json (ensure_ascii=False) to
preserve non-ASCII hash stability
- ollama_deepseek_review_emitter.py: restore "sha256:" prefix wrapper
- md_to_jsonl_converter.py: restore "sha256:" prefix via compute_sha256
- text_container_to_jsonl.py: restore "sha256:" prefix via compute_sha256
- kotc_sim.py: restore "sha256:" prefix on sha256_text
- gccl_waveprobe.py: restore Q16_MIN/Q16_MAX clamping on q16_add/sub/mul
- vcn_famm_transport.py: restore Q16_MIN/Q16_MAX clamping on q16_add/sub/mul
- lib/jsonl.py: add canonical_json() with ensure_ascii=False
Build: py_compile verified on all 71 modified files
Co-Authored-By: Allaun Silverfox <bigdataiscoming+9i37y6j2@protonmail.com>
|
2026-06-15 02:26:45 +00:00 |
|
Devin AI
|
e5f04ee6c3
|
refactor(infra): extract shared utilities from duplicated code patterns
Create 4-Infrastructure/lib/ with canonical implementations of:
- hashing.py: sha256_bytes, sha256_text, sha256_file
- q16.py: Q16_16 fixed-point constants and arithmetic
- jsonl.py: load_json, load_jsonl, write_jsonl, stable_json, canonical_json_bytes
- fraction_utils.py: Fraction serialization helpers for hardware probes
Refactor 66 files across 4-Infrastructure/{hardware,shim,infra} and
5-Applications/{scripts,tools-scripts,hutter_prize,text-to-cad} to import
from the shared library instead of maintaining local copies.
4-Infrastructure/auto/lib/q16.py now re-exports from lib.q16.
Net: -743 lines (490 added, 1233 removed)
Build: not applicable (Python-only change, py_compile verified on all 71 files)
Co-Authored-By: Allaun Silverfox <bigdataiscoming+9i37y6j2@protonmail.com>
|
2026-06-15 02:26:45 +00:00 |
|
devin-ai-integration[bot]
|
0f6ebe36dd
|
test(coverage): add 138 unit tests for least-covered modules (#78)
Four test files covering the modules with zero or near-zero test coverage:
- scripts/qc-flag/test_lean_qc_flagger.py (55 tests)
Covers all pure helpers, code-line detection, QCIssue/FileResult classes,
and all 5 check functions (structural, naming, Q16, proof quality, deps).
- 4-Infrastructure/shim/test_braid_diat_codec.py (22 tests)
Covers Q0_2 encode/decode, ChiralityDIAT roundtrips and verify_b,
MountainPacked dict↔bytes, BraidResidualPacked bracket↔bytes.
- 5-Applications/tools-scripts/llm/test_emitter_utils.py (33 tests)
Covers sha256_bytes, canonical_json_bytes, repo_relative, safe_slug,
timestamps, context bundles, message building, extract_answer,
auth guard, and verify_receipt schema rules.
- 4-Infrastructure/shim/test_validate_rrc_predictions.py (28 tests)
Covers require_path, parse_equation, build_proof_metrics,
build_receipt with all domain mappings, and MATH_* constant sets.
Build: all 138 tests pass (pytest), py_compile clean
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Allaun Silverfox <bigdataiscoming+9i37y6j2@protonmail.com>
|
2026-06-14 19:31:16 -05:00 |
|