Skip to content

Commit f67f3fa

Browse files
Source archive: generic placeholders in examples
Use placeholder bucket and bot names in the example commands and a test instead of environment-specific ones. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 30fa3f1 commit f67f3fa

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

code_tests/unit_tests/test_agents_and_tools/test_source_archive/test_trace_extraction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_harvest_run_walks_bot_and_question_dirs(tmp_path: Path):
185185

186186

187187
def test_harvest_run_flat_layout_without_bot_dirs(tmp_path: Path):
188-
# Butler-style: <run>/<question>/traces_*.jsonl with no bot_* grouping.
188+
# Flat layout: <run>/<question>/traces_*.jsonl with no bot_* grouping.
189189
run = tmp_path / "s3_backfill"
190190
qdir = run / "2026-05-20_metac_43538"
191191
qdir.mkdir(parents=True)
@@ -196,10 +196,10 @@ def test_harvest_run_flat_layout_without_bot_dirs(tmp_path: Path):
196196
qdir / "traces_forecast_1.jsonl",
197197
[{"type": "tool_result", "content": "https://a.test/x"}],
198198
)
199-
records = harvest_run(str(run), bot="butler")
199+
records = harvest_run(str(run), bot="mybot")
200200
assert len(records) == 1
201201
rec = records[0]
202-
assert rec.bot == "butler" # the flat-layout bot override
202+
assert rec.bot == "mybot" # the flat-layout bot override
203203
assert rec.metaculus_id == "43538" # still read from question.json
204204

205205

forecasting_tools/agents_and_tools/source_archive/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ each captured URL's **screenshot, markdown, and HTML** side by side, filterable
152152
by bot and question:
153153

154154
```bash
155-
AWS_PROFILE=default WEB_ARCHIVE_S3_BUCKET=metaculus-web-archive \
155+
AWS_PROFILE=default WEB_ARCHIVE_S3_BUCKET=my-web-archive \
156156
streamlit run forecasting_tools/agents_and_tools/source_archive/viewer.py
157157
```
158158

forecasting_tools/agents_and_tools/source_archive/reindex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Run it::
2121
2222
# against the configured S3 bucket (read-only audit)
23-
WEB_ARCHIVE_S3_BUCKET=metaculus-web-archive WEB_ARCHIVE_AWS_PROFILE=default \\
23+
WEB_ARCHIVE_S3_BUCKET=my-web-archive WEB_ARCHIVE_AWS_PROFILE=default \\
2424
python -m forecasting_tools.agents_and_tools.source_archive.reindex
2525
2626
# against a local capture dir

forecasting_tools/agents_and_tools/source_archive/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Run it::
99
1010
# uses the same env as the rest of the archive (WEB_ARCHIVE_S3_BUCKET, etc.)
11-
AWS_PROFILE=default WEB_ARCHIVE_S3_BUCKET=metaculus-web-archive \\
11+
AWS_PROFILE=default WEB_ARCHIVE_S3_BUCKET=my-web-archive \\
1212
streamlit run forecasting_tools/agents_and_tools/source_archive/viewer.py
1313
1414
Nothing here is deployment-specific: bucket/prefix/profile come from

0 commit comments

Comments
 (0)