arborist/make.bat
russell@unturf.com 2c98fc964e
feat: cross-language Q&A (Operation Sandwich) + Windows quickstart — all default-OFF
Three workstreams, full suite 2482 passed, experimental paths default-OFF.

#000055 — Windows quickstart without make
  tasks.py (pure-stdlib runner) + make.bat shim + .gitattributes;
  README Windows section rewritten. Quickstart needs only Python
  3.10+ (no make/bzip2/curl/bash). Mirrors the Makefile quickstart
  subset; drift-pinned by tests/test_tasks_runner.py.

#000001 §7 Phase 0 — deterministic cross-language guard
  arborist/qa/crosslang.py: non-English signal (¿/¡/non-ASCII) + an
  es function-word stoppack. Fail-closed to UNGROUNDED before
  retrieval/LLM (mirrors the quantifier reject-DAG) when no content
  token survives, else strips es stopwords from the retrieval query
  only. English path byte-identical by construction. Default OFF
  (crosslang_guard_enabled). Measured: the anarcocapitalismo field
  case 10.4s -> 1.6s.

#000056 — Operation Sandwich (cross-language grounding)
  arborist/qa/mt/: opus-mt es/fr/ru<->en, lazy per-pair memoised
  singleton (fixes the 88%-engine-error concurrency defect),
  manifest-pinned, [mt] extra; entity_mask wrapper. Sandwich =
  translate query in (retrieval + LLM prompt) -> English answer ->
  UNTOUCHED verifier grounds English-vs-English -> translate the
  verified answer out as display-only (banner-labelled, zero
  grounding). question_hash + verifier_policy_hash invariant; MT
  engine identity binds into RetrievalPlan, not governance. CLI
  --crosslang-translate / make XLANG_MT=1. Default OFF; entity_mask
  default OFF (measured net-negative at bench scale). Fan-out bench
  (bench/*.py): Spanish ~0% -> 71% grounded vs the real no-support
  baseline; the round-trip predictor was tried and refuted; the
  entity-mask lever failed at scale (corpus-title anchoring untried).

CLAUDE.md: cross-language bright-line convention + module map.
Pre-existing modified diagram files are intentionally excluded.
2026-05-18 12:12:23 -04:00

33 lines
1.2 KiB
Batchfile

@echo off
rem ===========================================================================
rem arborist - Windows shim so `make <target>` works without GNU make.
rem
rem Forwards every argument to tasks.py (the cross-platform quickstart
rem runner). The Makefile stays canonical on Unix; this only exists so the
rem README quickstart runs on native Windows (cmd / PowerShell).
rem
rem cmd : make query Q="What is anarcho-capitalism?"
rem PowerShell : .\make.bat query Q="What is anarcho-capitalism?"
rem
rem Windows ships the `py` launcher rather than `python3`, so prefer it.
rem Ticket: docs/tickets/ticket-000055-windows-quickstart-no-make.md
rem ===========================================================================
setlocal
set "_PY="
where py >NUL 2>NUL && set "_PY=py -3"
if not defined _PY (
where python >NUL 2>NUL && set "_PY=python"
)
if not defined _PY (
where python3 >NUL 2>NUL && set "_PY=python3"
)
if not defined _PY (
echo [make.bat] Python 3.10+ was not found on PATH. 1>&2
echo Install it from https://www.python.org/downloads/ 1>&2
echo and tick "Add python.exe to PATH" during setup. 1>&2
exit /b 1
)
%_PY% "%~dp0tasks.py" %*
exit /b %ERRORLEVEL%