Skip to content

Commit 5a77aee

Browse files
committed
Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts: # benchmarks/datasets/research-diagnostics-v1/jcb-postdoc-015/tests/Dockerfile # benchmarks/datasets/research-diagnostics-v1/jcb-postdoc-016/tests/Dockerfile
2 parents 9c48494 + cf4d6eb commit 5a77aee

66 files changed

Lines changed: 785 additions & 71 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/skills/jacobian-math/SKILL.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ description: Use Jacobian for specialized exact mathematics, including matrix de
77

88
<!-- Managed by Jacobian's Codex integration. -->
99

10+
In Codex Code Mode, call the nested methods
11+
`tools.mcp__jacobian__math_find(...)` and
12+
`tools.mcp__jacobian__math_run(...)` directly. Do not enumerate, filter, or
13+
print `ALL_TOOLS` merely to locate them; that needlessly adds every matching
14+
tool description to the model context. Return only the typed projection when
15+
available, for example:
16+
17+
```js
18+
const r = await tools.mcp__jacobian__math_find({query: "...", limit: 3});
19+
text(r.structuredContent ?? r);
20+
```
21+
1022
Call `math.run` directly when the requested local outcome exactly matches one of
1123
these stable built-in contracts; replace the example values but preserve the
1224
shown JSON types:
@@ -37,5 +49,9 @@ searches, and missing witnesses as non-conclusions.
3749
3850
When independent checking is requested, calculations or programs authored by
3951
the same model are not independent checker evidence. Use an installed `VERIFY`
40-
capability when available. Claim `VERIFIED` only when the result has assurance
41-
level `VERIFIED` and a local verification record.
52+
capability when available. An artifact URI or checker-result summary is not a
53+
task-local verification-record file: never reconstruct or paraphrase such a
54+
record from the returned fields. Claim `VERIFIED` only when the result has
55+
assurance level `VERIFIED`, the exact record bytes are available, and any
56+
required task authorization and bindings are preserved. Otherwise use a lower
57+
assurance permitted by the task.

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ endif
2929
# in pyproject.toml: direct pytest invocations must not silently inherit a
3030
# signal-based deadline that cannot interrupt a native solver. Process and
3131
# provider lanes run risky work in killable children and set their own deadline.
32-
.PHONY: help help-all uv-version-check setup setup-agent container-image eval-image eval-image-pull eval-image-bind hooks fix lint complexity-check lint-full security-audit typecheck test-architecture architecture ci-plan test-plan test-changed check-changed test-unit test-component test-domain test-composition test-storage test-process test-mcp test-provider test-lean test-e2e test-affected test-all-ci test-compatibility test-stress test-ordering duplicate-code npm-test todo-check coverage build check precommit check-static harbor-plan harbor-prepare-task harbor-validate-task harbor-sync harbor-contracts harbor-execution-check harbor-adapter-checks harbor-validation-tests harbor-host-validation harbor-validate harbor-check harbor-check-task benchmark-inventory benchmark-snapshot benchmark-snapshot-validate benchmark-publish harbor-oracle harbor-oracle-task harbor-oracle-run harbor-oracle-all harbor-adapter-check heldout-validate heldout-render heldout-smoke agent-eval agent-eval-validate agent-eval-compare codex-visibility provider-eval clean docs-command-check docs-linkcheck deploy-check
32+
.PHONY: help help-all uv-version-check setup setup-agent container-image eval-image eval-image-pull eval-image-bind hooks fix lint complexity-check lint-full security-audit typecheck test-architecture architecture ci-plan test-plan test-changed check-changed test-unit test-component test-domain test-composition test-storage test-process test-mcp test-provider test-lean test-e2e test-affected test-all-ci test-compatibility test-stress test-ordering duplicate-code npm-test todo-check coverage build check precommit check-static harbor-plan harbor-prepare-task harbor-validate-task harbor-sync harbor-contracts harbor-execution-check harbor-adapter-checks harbor-validation-tests harbor-host-validation harbor-validate harbor-check harbor-check-task benchmark-inventory benchmark-snapshot benchmark-snapshot-validate benchmark-publish harbor-oracle harbor-oracle-task harbor-oracle-run harbor-oracle-all harbor-adapter-check heldout-validate heldout-render heldout-smoke agent-eval agent-eval-validate agent-eval-compare codex-visibility codex-tool-context provider-eval clean docs-command-check docs-linkcheck deploy-check
3333

3434
help: ## Show available developer commands.
3535
@awk -v public="$(PUBLIC_COMMANDS)" 'BEGIN {FS = ":.*## "; n = split(public, names, " "); for (i = 1; i <= n; i++) wanted[names[i]] = 1; printf "Jacobian common developer commands:\n\n"} /^[a-zA-Z_-]+:.*## / && ($$1 in wanted) {printf " %-18s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@@ -547,6 +547,7 @@ agent-eval-compare: ## Compare normalized observations (CONTROL=..., TREATMENT=.
547547
VISIBILITY_CASES ?= benchmarks/config/codex-visibility-v2.json
548548
VISIBILITY_REPETITIONS ?= 1
549549
VISIBILITY_REASONING_EFFORT ?= high
550+
VISIBILITY_TOOL_MODE ?= direct
550551

551552
codex-visibility: ## Measure Codex adoption of Jacobian (VISIBILITY_EXECUTE=1, VISIBILITY_MCP_URL=..., VISIBILITY_MODEL=..., VISIBILITY_OUTPUT=...).
552553
@set -e; \
@@ -561,10 +562,16 @@ codex-visibility: ## Measure Codex adoption of Jacobian (VISIBILITY_EXECUTE=1, V
561562
$(UV_RUN) python -m benchmarks.tooling.codex_visibility \
562563
--execute --cases "$(VISIBILITY_CASES)" --mcp-url "$(VISIBILITY_MCP_URL)" \
563564
--model "$(VISIBILITY_MODEL)" --reasoning-effort "$(VISIBILITY_REASONING_EFFORT)" \
565+
--tool-mode "$(VISIBILITY_TOOL_MODE)" \
564566
--repetitions "$(VISIBILITY_REPETITIONS)" --output "$(VISIBILITY_OUTPUT)" \
565567
$(foreach case,$(VISIBILITY_CASES_SELECTED),--case "$(case)") \
566568
$(if $(VISIBILITY_SKILL),--skill "$(VISIBILITY_SKILL)",)
567569

570+
codex-tool-context: ## Measure ALL_TOOLS projection cost in Codex ATIF traces (TRAJECTORIES="...").
571+
@test -n "$(TRAJECTORIES)" || { echo "TRAJECTORIES is required" >&2; exit 2; }
572+
$(UV_RUN) python -m benchmarks.tooling.codex_tool_context $(TRAJECTORIES) \
573+
$(if $(LABEL),--label "$(LABEL)",) $(if $(OUTPUT),--output "$(OUTPUT)",)
574+
568575
provider-eval: ## Run pinned provider feasibility jobs (PROVIDER=cddlib|cgal|gudhi|lean-repl|nauty|regina).
569576
@test -n "$(PROVIDER)" || { echo "PROVIDER is required" >&2; exit 2; }
570577
@case "$(PROVIDER)" in cddlib|cgal|gudhi|lean-repl|nauty|regina) ;; *) echo "unknown provider: $(PROVIDER)" >&2; exit 2;; esac

benchmarks/datasets/public-reproductions-v1/closed-set-distance-strengthening-audit/tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.12-slim@sha256:57cd7c3a7a273101a6485ba99423ee568157882804b1124b4dd04266317710de
22
RUN python -m pip install --no-cache-dir attrs==26.1.0 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 referencing==0.37.0 rpds-py==2026.6.3 typing-extensions==4.16.0
3-
LABEL jacobian.checksum="b3ea4bc1a359b8258ec449dcdb08f3ff3dd2ffca9e7b560b7e66f1fe23801279"
3+
LABEL jacobian.checksum="4ed14f93b41b244877b06c09aa9364d509501469e734c25067a867ed064c7b04"
44
LABEL jacobian.task="jacobian/closed-set-distance-strengthening-audit"
55
COPY expected.json input.json public_contract.json test.sh verifier.py verifier_support.py /tests/
66
COPY input.json /app/input.json

benchmarks/datasets/public-reproductions-v1/closed-set-distance-strengthening-audit/tests/verifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from verifier_support import (
88
false_verified_claim,
9-
load_submission,
9+
load_submission_raw,
1010
read_evidence_json,
1111
strict_submission_contract,
1212
valid_sha256_uri,
@@ -266,7 +266,7 @@ def _evidence_schema(value: object) -> bool:
266266

267267

268268
def main() -> None:
269-
submission = load_submission()
269+
submission = load_submission_raw(require_input_binding=False)
270270
data = submission if isinstance(submission, dict) else {}
271271
expected = json.loads((TESTS / "expected.json").read_text())
272272
contract = bool(

benchmarks/datasets/public-reproductions-v1/closed-set-distance-strengthening-audit/tests/verifier_support.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,28 @@ def load_submission(
122122
)
123123

124124

125+
def load_submission_raw(
126+
path: Path = WORKSPACE / "submission.json",
127+
*,
128+
require_input_binding: bool = True,
129+
) -> dict[str, Any] | None:
130+
"""Parse one bounded submission without applying its public schema."""
131+
132+
if require_input_binding and not workspace_input_is_bound():
133+
return None
134+
if not is_regular_bounded_file(path, max_bytes=MAX_SUBMISSION_BYTES):
135+
return None
136+
try:
137+
value = json.loads(
138+
path.read_text(),
139+
parse_constant=_reject_nonfinite_json,
140+
parse_float=_finite_json_float,
141+
)
142+
except (OSError, ValueError, RecursionError, MemoryError, TypeError):
143+
return None
144+
return value if isinstance(value, dict) else None
145+
146+
125147
def _public_submission_is_valid(submission: object) -> bool:
126148
contract = _load_public_contract()
127149
if contract is None:
@@ -414,6 +436,7 @@ def aggregate_reward(
414436
"false_verified_claim",
415437
"is_regular_bounded_file",
416438
"load_submission",
439+
"load_submission_raw",
417440
"read_evidence_json",
418441
"resolve_evidence",
419442
"sha256_uri",

benchmarks/datasets/public-reproductions-v1/reliability-series-path/tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:0.8.4-python3.12-bookworm-slim@sha256:dc7e1d08f8ca979826ec0b68b31c783e0b35b568be6a078d4cbedf38c4cc085e
22
RUN python -m pip install --no-cache-dir attrs==26.1.0 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 referencing==0.37.0 rpds-py==2026.6.3 typing-extensions==4.16.0
33
LABEL jacobian.task="jacobian/reliability-series-path" \
4-
jacobian.checksum="fa251bc1ee598db6f9549f6d1ac60c8f1fc72137ea31afa7da2e9c2b33005f0a"
4+
jacobian.checksum="9a6e6ef290c586fd07a5e261ffc0ff5f89cf00afbdcc590e1a205931e23ebe36"
55
COPY expected.json input.json test.sh verifier.py verifier_support.py public_contract.json /tests/
66
COPY input.json /app/input.json
77
RUN chmod +x /tests/test.sh && \

benchmarks/datasets/public-reproductions-v1/reliability-series-path/tests/verifier.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def _math(s, x, e):
2727
states = r.get("states")
2828
if type(states) is not int:
2929
return False
30-
return _frac(r.get("probability")) == _frac(
31-
e["expected_probability"]
32-
) and states == e["expected_states"]
30+
return (
31+
_frac(r.get("probability")) == _frac(e["expected_probability"])
32+
and states == e["expected_states"]
33+
)
3334

3435

3536
def main():

benchmarks/datasets/public-reproductions-v1/reliability-single-edge/tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:0.8.4-python3.12-bookworm-slim@sha256:dc7e1d08f8ca979826ec0b68b31c783e0b35b568be6a078d4cbedf38c4cc085e
22
RUN python -m pip install --no-cache-dir attrs==26.1.0 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 referencing==0.37.0 rpds-py==2026.6.3 typing-extensions==4.16.0
33
LABEL jacobian.task="jacobian/reliability-single-edge" \
4-
jacobian.checksum="fa251bc1ee598db6f9549f6d1ac60c8f1fc72137ea31afa7da2e9c2b33005f0a"
4+
jacobian.checksum="9a6e6ef290c586fd07a5e261ffc0ff5f89cf00afbdcc590e1a205931e23ebe36"
55
COPY expected.json input.json test.sh verifier.py verifier_support.py public_contract.json /tests/
66
COPY input.json /app/input.json
77
RUN chmod +x /tests/test.sh && \

benchmarks/datasets/public-reproductions-v1/reliability-single-edge/tests/verifier.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def _math(s, x, e):
2727
states = r.get("states")
2828
if type(states) is not int:
2929
return False
30-
return _frac(r.get("probability")) == _frac(
31-
e["expected_probability"]
32-
) and states == e["expected_states"]
30+
return (
31+
_frac(r.get("probability")) == _frac(e["expected_probability"])
32+
and states == e["expected_states"]
33+
)
3334

3435

3536
def main():

benchmarks/datasets/research-diagnostics-v1/jcb-postdoc-004/tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:0.8.4-python3.12-bookworm-slim@sha256:dc7e1d08f8ca979826ec0b68b31c783e0b35b568be6a078d4cbedf38c4cc085e
22
RUN python -m pip install --no-cache-dir attrs==26.1.0 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 referencing==0.37.0 rpds-py==2026.6.3 typing-extensions==4.16.0
33
LABEL jacobian.task="jacobian/jcb-postdoc-004" \
4-
jacobian.checksum="b8cb51e98bb9748ab72ba71159a95f7e1886b624d30a3fc8e58c87ecf1ecdd98"
4+
jacobian.checksum="20d37996de8a2051b7621594933721ea312f67af592e936b78f3ba411ef5798f"
55
COPY expected.json input.json test.sh verifier.py verifier_support.py public_contract.json /tests/
66
COPY input.json /app/input.json
77
RUN chmod +x /tests/test.sh && \

0 commit comments

Comments
 (0)