22
33This experiment compares two agent paths for a launch-readiness workflow:
44
5- - ** Locality path:** hydrate Notion through Locality, let the agent read mounted Markdown files, and write local Markdown artifacts under ` OUT_DIR ` .
6- - ** Notion MCP path:** let the agent use Notion MCP search/fetch for context, without reading mounted Locality files or using ` loc ` .
5+ - ** Locality path:** hydrate or reuse prehydrated Locality files, let the agent
6+ read mounted Markdown/text/JSON files across connected sources, and write
7+ local Markdown artifacts under ` OUT_DIR ` .
8+ - ** MCP path:** let the agent use MCP tools for Notion, Linear, and Slack when
9+ configured, plus local git/` gh ` for repository evidence, without reading
10+ mounted Locality files or using ` loc ` .
711
812The benchmark case lives in Notion at:
913
@@ -33,6 +37,8 @@ The output parent page is:
3337 to measure prompt handoff, tool calls, model thinking spans, and final output
3438 response spans while the session is running.
3539- ` scripts/summarize-codex-events.py ` - summarizes one Codex JSON trace.
40+ - ` scripts/deep-dive-report.py ` - writes a per-run Markdown index of phase
41+ timings, tool buckets, timelines, and trace artifact paths.
3642- ` scripts/summarize-runs.py ` - summarizes multiple run folders.
3743
3844## Separation Rules
@@ -86,6 +92,34 @@ ssh -o StrictHostKeyChecking=accept-new "$ssh_target" '
8692'
8793```
8894
95+ For a sandbox that already has the desired Locality connections and hydrated
96+ files, use the existing state instead of creating an isolated temporary Notion
97+ mount:
98+
99+ ``` bash
100+ export SANDBOX=aseem-locality
101+ export SSH_TARGET=" $( amika sandbox ssh --print " $SANDBOX " ) "
102+ export LOCALITY_SANDBOX=" $SANDBOX "
103+ export LOCALITY_USE_EXISTING_STATE=1
104+ export LOCALITY_CONTEXT_HYDRATE=0
105+ ```
106+
107+ If the multi-source roots are known, pass them explicitly. Use newline
108+ separation when paths contain spaces:
109+
110+ ``` bash
111+ export LOCALITY_CONTEXT_DIRS=" $( cat << 'EOF '
112+ /home/amika/notion/Go To Market/Locality Launch - Amika Environment
113+ /home/amika/slack
114+ /home/amika/linear
115+ EOF
116+ ) "
117+ ```
118+
119+ The worker still locates and pulls the target Notion output page unless the run
120+ is MCP-only. ` LOCALITY_CONTEXT_HYDRATE=0 ` applies only to the listed context
121+ directories and is intended for prehydrated sandboxes.
122+
89123Verify Locality:
90124
91125``` bash
@@ -181,8 +215,11 @@ also retrieves compatibility outputs written under
181215such as ` /home/amika/report-body.md ` .
182216
183217Only ` scenario1.md ` receives precomputed git metadata at
184- ` GIT_DATA_FILE ` . Other scenarios should not require that file; if they need
185- repository context, they should inspect the repository directly with git.
218+ ` GIT_DATA_FILE ` . The multi-source scenarios ` scenario7.md ` and ` scenario8.md `
219+ also receive this file so the agent can compare local git evidence with
220+ connected-source evidence. Other scenarios should not require that file; if
221+ they need repository context, they should inspect the repository directly with
222+ git.
186223
187224## Run Once
188225
@@ -191,6 +228,21 @@ CODEX_MODEL=gpt-5.6-luna CODEX_REASONING_EFFORT=low \
191228 ./experiment/locality-mcp-comparison/run-agent-comparison.sh
192229```
193230
231+ Run only the two multi-source scenarios against prehydrated Locality state:
232+
233+ ``` bash
234+ export SANDBOX=aseem-locality
235+ export SSH_TARGET=" $( amika sandbox ssh --print " $SANDBOX " ) "
236+ export LOCALITY_SANDBOX=" $SANDBOX "
237+ export MCP_SANDBOX=aseem-mcp
238+ export LOCALITY_USE_EXISTING_STATE=1
239+ export LOCALITY_CONTEXT_HYDRATE=0
240+
241+ CODEX_MODEL=gpt-5.6-luna CODEX_REASONING_EFFORT=low \
242+ ./experiment/locality-mcp-comparison/run-agent-comparison.sh \
243+ --scenario scenario7,scenario8
244+ ```
245+
194246By default this is artifact-only. It writes local Markdown reports under
195247` target/launch-readiness-amika/<run-id>/artifacts/{locality,notion-mcp} ` after
196248syncing the remote sandbox ` OUT_DIR ` s back to the local machine. It does not
@@ -330,6 +382,10 @@ Important artifacts:
330382 scenarios and trials.
331383- ` token-usage/token-usage.tsv ` , ` token-usage/cost-usage.tsv ` , and
332384 ` token-usage/token-usage.json ` - chart data, cost data, pricing, and manifest.
385+ - ` deep-dive.md ` - local wrapper report that indexes each scenario/strategy
386+ with phase timings, event counts, token totals, tool buckets, chronological
387+ tool calls, and links to the report, transcript, spans, Speedscope, Perfetto,
388+ SnakeViz, and Locality trace artifacts.
333389
334390Cost charts default to the ` gpt-5.6-luna ` Standard short-context rates used by
335391the benchmark harness. Override them for Azure/internal billing with
0 commit comments