Skip to content

Commit beb8412

Browse files
committed
Clean public repo artifacts
1 parent c4fa743 commit beb8412

14 files changed

Lines changed: 54 additions & 72 deletions

scripts/experiments/audit-judge.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Public-claims gate: only `reviewer-confirmed` rows are eligible for public
1212
artifacts (README, viz, talk). See METHODOLOGY.md.
1313
14-
Audit log: `~/agent-context-reruns/q2-2026-private/audit-log/<timestamp>.jsonl`
14+
Audit log: `<audit-log-dir>/<timestamp>.jsonl`
1515
1616
Stdlib-only, Python 3.8+.
1717
"""
@@ -21,6 +21,7 @@
2121
import argparse
2222
import datetime as _dt
2323
import json
24+
import os
2425
import pathlib
2526
import random
2627
import sys
@@ -123,10 +124,13 @@ def main(argv: list[str]) -> int:
123124
parser.add_argument("--all", action="store_true", help="Audit every llm-provisional row instead of sampling")
124125
parser.add_argument(
125126
"--audit-log-dir",
126-
default=str(pathlib.Path.home() / "agent-context-reruns" / "q2-2026-private" / "audit-log"),
127-
help="Directory to write audit JSONL log",
127+
default=os.environ.get("AGENT_CONTEXT_AUDIT_LOG_DIR", ""),
128+
help="Directory to write audit JSONL log, or AGENT_CONTEXT_AUDIT_LOG_DIR",
128129
)
129130
args = parser.parse_args(argv)
131+
if not args.audit_log_dir:
132+
print("ERROR: audit log dir required: pass --audit-log-dir or set AGENT_CONTEXT_AUDIT_LOG_DIR", file=sys.stderr)
133+
return 1
130134

131135
rerun = pathlib.Path(args.rerun).expanduser()
132136
results_root = rerun / "results"

scripts/experiments/extract-events-from-chorus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
5757
Usage:
5858
scripts/experiments/extract-events-from-chorus.py \\
59-
--rerun ~/agent-context-reruns/q2-2026-private/agent-chorus
59+
--rerun /path/to/rerun-root/agent-chorus
6060
6161
# Optional: feed ground-truth path arrays for one or more tasks. The value
6262
# may be a JSON file (output of parse-ground-truth.py) or a GROUND_TRUTH.md

scripts/experiments/extract-events-from-codex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
5353
Usage:
5454
scripts/experiments/extract-events-from-codex.py \\
55-
--rerun ~/agent-context-reruns/q2-2026-private/agent-chorus
55+
--rerun /path/to/rerun-root/agent-chorus
5656
5757
# Optional: feed ground-truth path arrays for one or more tasks.
5858
scripts/experiments/extract-events-from-codex.py \\

scripts/experiments/extract-tokens-from-chorus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
Usage:
2929
scripts/experiments/extract-tokens-from-chorus.py \\
30-
--rerun ~/agent-context-reruns/q2-2026-private/agent-chorus
30+
--rerun /path/to/rerun-root/agent-chorus
3131
3232
# Override which agents to process (default: claude + codex)
3333
scripts/experiments/extract-tokens-from-chorus.py \\

scripts/experiments/launch-tmux-batch.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Usage:
2020
scripts/experiments/launch-tmux-batch.sh [--start] [--force] [--dry-run-lanes]
2121
2222
Environment:
23-
RERUN_ROOT=/custom/path default: ~/agent-context-reruns/q2-2026-private
23+
RERUN_ROOT=/path/to/rerun-root required unless each lane is run manually
2424
2525
Options:
2626
--start Press Enter in all lanes immediately after creating tmux.
@@ -55,8 +55,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5555
RUN_LANE="$SCRIPT_DIR/run-agent-lane.sh"
5656
[[ -x "$RUN_LANE" ]] || die "lane runner is not executable: $RUN_LANE"
5757

58-
RERUN_ROOT="${RERUN_ROOT:-$HOME/agent-context-reruns/q2-2026-private}"
58+
RERUN_ROOT="${RERUN_ROOT:-}"
5959
RERUN_ROOT="${RERUN_ROOT/#\~/$HOME}"
60+
[[ -n "$RERUN_ROOT" ]] || die "RERUN_ROOT is required"
6061
[[ -d "$RERUN_ROOT" ]] || die "rerun root not found: $RERUN_ROOT"
6162

6263
SESSION="rerun-q2-batch"

scripts/experiments/launch-tmux-matrix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ if [[ "${1:-}" == "" || "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
6969
fi
7070

7171
ALIAS="$1"
72-
RERUN_ROOT="${RERUN_ROOT:-$HOME/agent-context-reruns/q2-2026-private}"
72+
RERUN_ROOT="${RERUN_ROOT:-}"
73+
[[ -n "$RERUN_ROOT" ]] || die "RERUN_ROOT is required" 2
7374
RERUN_DIR="$RERUN_ROOT/$ALIAS"
7475
SESSION="rerun-$ALIAS"
7576

scripts/experiments/normalize-model-id.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import argparse
2929
import json
30+
import os
3031
import pathlib
3132
import re
3233
import sys
@@ -274,12 +275,16 @@ def normalize_repo(repo_dir: pathlib.Path) -> dict[str, int]:
274275

275276
def main(argv: list[str]) -> int:
276277
parser = argparse.ArgumentParser(description=__doc__.split("\n", 1)[0])
277-
parser.add_argument("--rerun-root", default="~/agent-context-reruns/q2-2026-private",
278+
parser.add_argument("--rerun-root", default=os.environ.get("AGENT_CONTEXT_RERUN_ROOT", ""),
278279
help="Matrix root containing per-repo subdirs")
279280
parser.add_argument("--repo", action="append", default=[],
280281
help="Restrict to specific repo subdirs (repeatable)")
281282
args = parser.parse_args(argv)
282283

284+
if not args.rerun_root:
285+
print("ERROR: rerun root required: pass --rerun-root or set AGENT_CONTEXT_RERUN_ROOT", file=sys.stderr)
286+
return 1
287+
283288
root = pathlib.Path(args.rerun_root).expanduser().resolve()
284289
if not root.is_dir():
285290
print(f"ERROR: rerun root not found: {root}", file=sys.stderr)

scripts/experiments/run-agent-lane.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# scripts/experiments/run-agent-lane.sh --agent codex --condition structured_fresh --force
1616
#
1717
# Defaults:
18-
# RERUN_ROOT=$HOME/agent-context-reruns/q2-2026-private
19-
# aliases=the active Q2 2026 seven-repo slate
18+
# rerun root must be passed with --rerun-root or RERUN_ROOT
19+
# aliases=the active public rerun slate
2020

2121
set -euo pipefail
2222

@@ -58,7 +58,7 @@ warn() { echo "WARN: $*" >&2; }
5858
AGENT=""
5959
CONDITION=""
6060
MODEL=""
61-
RERUN_ROOT="$HOME/agent-context-reruns/q2-2026-private"
61+
RERUN_ROOT="${RERUN_ROOT:-}"
6262
# org-second-brain dropped from default 2026-05-10 — interactive claude
6363
# session ran in circles without writing results; pack/EXPERIMENT setup
6464
# needs review before re-including. Other agents' results for that repo
@@ -111,6 +111,7 @@ if [[ -n "$MODEL" && "$AGENT" != "cursor" ]]; then
111111
fi
112112

113113
RERUN_ROOT="${RERUN_ROOT/#\~/$HOME}"
114+
[[ -n "$RERUN_ROOT" ]] || die "rerun root required: pass --rerun-root PATH or set RERUN_ROOT"
114115
[[ -d "$RERUN_ROOT" ]] || die "rerun root not found: $RERUN_ROOT"
115116

116117
case "$AGENT" in

scripts/experiments/run-claude-interactive-lane.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ die() { echo "ERROR: $*" >&2; exit 1; }
4242
warn() { echo "WARN: $*" >&2; }
4343

4444
CONDITION=""
45-
RERUN_ROOT="$HOME/agent-context-reruns/q2-2026-private"
45+
RERUN_ROOT="${RERUN_ROOT:-}"
4646
# org-second-brain dropped from default 2026-05-10 — see anomalies log.
4747
ALIASES_CSV="agent-chorus,ml-pipeline-reference,react-frontend-reference,backend-service-reference,polyglot-monorepo-reference,daemon-reference"
4848
FORCE=0
@@ -65,6 +65,7 @@ case "$CONDITION" in
6565
esac
6666

6767
RERUN_ROOT="${RERUN_ROOT/#\~/$HOME}"
68+
[[ -n "$RERUN_ROOT" ]] || die "rerun root required: pass --rerun-root PATH or set RERUN_ROOT"
6869
[[ -d "$RERUN_ROOT" ]] || die "rerun root not found: $RERUN_ROOT"
6970
command -v claude >/dev/null || die "claude not found on PATH"
7071

scripts/experiments/scrub-aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Usage:
1313
scripts/experiments/scrub-aliases.py \\
14-
--aliases ~/agent-context-reruns/q2-2026-private/aliases.json \\
14+
--aliases /path/to/aliases.json \\
1515
--in <input-dir-or-file> \\
1616
--out <output-dir-or-file>
1717

0 commit comments

Comments
 (0)