Adaptive Loop — a deterministic microfluidic strategy puzzle. Pure serializable nextState(state,action) owns every committed turn; previews call the same function on a clone. 5 handcrafted scenarios, bounded solver with verified win/lose routes + shared-ownership counterfactual, exact localStorage persistence/replay, accessible SVG interface, Vitest truth/solver/persistence tests, and Playwright black-box browser proof. Scenarios 3 and 4 retuned per SPEC §9 (provably unwinnable as originally specified); proofs and exact changes in docs/scenario-tuning.md. Invariants preserved. See CONTEXT-MANIFEST.md for the disclosure boundary and residual risks. Aggregate verified: tsc --noEmit, vitest (59), vite build, playwright (10).
8.8 KiB
Context Manifest — Adaptive Loop
This manifest closes the disclosure boundary for the Agentic Labs one-prompt run. It records the one prompt, all staged local context, the effective harness (model, extensions, steering), provenance verification of the session log, and the precondition status at kickoff. Generated in-session; not edited after freeze.
1. Prompt source
- Authoritative private prompt path:
/Users/alex/Projects/scripting/agentic-labs-challenge/adaptive-loop/PROMPT.md - sha256 (raw, with leading
/goal):52e8fa98a54858fcc55e1db0216be85677b688d76a2e1f646a5b13b97786e070 - sha256 (goal-state text,
/goalprefix stripped):9ea54d7d51b2a0d67e01de5ff62e9b3eb12218e84d84750a5a0ae8aa6626021b - The prompt is preserved privately at its path and is not duplicated into the public game repo by default (operator DMs it per competition rules).
2. Effective model / provider
- Provider:
zai(Zhipu AI) - Effective model:
glm-5.2(first entry of~/.pi/fallback-chains.jsondefaultchain; matches the session logmodel_changeentry). - Reasoning: GLM-5.2 thinking mode (set via
thinking_level_changein the session log). - Multimodal note: GLM-5.2 is not multimodal in this harness; the parent cannot read images/screenshots. Browser verification is therefore performed via DOM-based semantic UI tooling and, for the one visual QA pass, by a delegated vision subagent. No judging-affecting visual fact is asserted without a DOM-level check.
3. Pi harness
- Pi core:
@earendil-works/pi-coding-agent0.84.1(nodev26.5.1). - Expected isolated config (per PROMPT): context/skills/prompts/themes/ ambient extensions disabled; only the four extensions in §4 loaded.
- Effective config (observed): the isolated config was not applied.
Ambient project context (
AGENTS.md), global skills, and additional extensions (e.g.pi-hermes-memory,ponytail,gitnexus,pi-design-deck,glimpse, MCP adapters) are active;~/.pi/disabled-skills.jsonis[](no skills disabled). These are agent-side steering only — they inject no game domain state and nolocalStorage. The build honors the SPEC's hard scope and forbidden list regardless. This deviation is disclosed here rather than hidden.
4. Loaded extensions / packages (versions)
Expected four (all present at expected versions):
| Package | Expected | Effective |
|---|---|---|
@narumitw/pi-goal |
0.51.0 | 0.51.0 |
@juicesharp/rpiv-todo |
2.4.0 | 2.4.0 |
pi-subagents |
0.47.1 | 0.47.1 |
@injaneity/pi-computer-use |
0.5.0 | 0.5.0 |
Build toolchain (dev dependencies, package.json): vite@6.4.3,
typescript@5.9.3, vitest@2.1.9, @playwright/test@1.62.1,
@types/node@22. Playwright Chromium browser is pre-cached locally
(~/Library/Caches/ms-playwright), so black-box tests run offline.
5. Staged local context (human-authored)
| Path | sha256 | Role |
|---|---|---|
SPEC.md |
50d3c46a0d42b9308eb015f788331cb5d0ede96071828fc266d5c13978029f21 |
Authoritative implementation spec |
PROMPT.md |
52e8fa98…77e070 |
The one prompt (private) |
.agents/skills/pi-game-factory/SKILL.md |
b44005242a71ee2a8c087c6f13ca51f8675f31c99e8d55dc5a9db1f5245969a6 |
Steering: orchestration |
.agents/skills/deterministic-game-core/SKILL.md |
e63356c9ccb28a9d62d8266b788019df2bc266a378b7a8d771998e179bce824b |
Steering: simulation rules |
.agents/skills/game-ui-proof/SKILL.md |
665b66af96efd40abe38c512bcf7259e1d34243122d51c7e40dafeca0814049c |
Steering: UI proof |
docs/brainstorming-summary.md |
46a2ed3d76ea9436077319891b54049ff4b359429fb32fa8f08710a7cc40585d |
Pre-staged design summary (consistent with SPEC) |
6. Session log provenance (inspection, not copied live)
PI_SESSION_FILE(env var unset; canonical path resolved from session id):/Users/alex/.pi/agent/sessions/--Users-alex-Projects-scripting-agentic-labs-challenge-adaptive-loop--/2026-08-12T15-16-35-418Z_019ff68b-f5da-72ad-a434-20f6da130066.jsonl- Session id:
019ff68b-f5da-72ad-a434-20f6da130066. - First user-role entry: message index
3— the solerole:userentry in the log; carries api-goal-promptmarker (Goal kickoff). - Later user-role entries: none. Subsequent goal turns are recorded as
embedded
pi-goal-continuationmarkers (6 observed), i.e. Goal-owned continuations for the same objective/goal id — no human follow-ups. - Structural
parentSession: absent from the session-metadata line (type:sessionkeys arecwd,id,timestamp,type,version). The substringparentSessionappears only inside message bodies (system/AGENTS text and this manifest's own discussion), not as a structural parent link. This is a root session, not a subagent child. - The verbatim prompt body is not inlined as a single string in the log (pi-goal
stores a reference). Exact byte-reconstruction of
goal-state.textvsPROMPT.mdis the operator-owned post-exit submission step, explicitly excluded from the in-session game-code freeze (SPEC §15 Gate 0).
7. Precondition status at kickoff (deviations disclosed)
PROMPT/SPEC Gate 0 expects: a fresh standalone directory containing only
SPEC.md and the three .agents/skills/*/SKILL.md files, no Git history.
Observed (not matching):
- Git history exists — this
adaptive-loop/directory is part of a shared repo that also contains sibling challenges (Body Snatcher, Underdepths). Head:6c2eef0 (Adaptive Loop) Initial Plan. Nuking sibling history is out of scope and forbidden; the run instead commits new game work onto this branch. - Extra staged files present:
PROMPT.md(the prompt itself) anddocs/brainstorming-summary.md(a pre-staged design summary, consistent with SPEC). Adocs/brainstorming-session-…mdwas staged by the initial-plan commit but is not present in the working tree. .pi/contains prior subagent artifacts/missions from earlier runs; these are agent infrastructure (gitignored), not game code.
The three steering SKILL files and SPEC.md are preserved at their original paths, unmodified (hashes in §5). No game-code edits occur before Gate 1.
8. Post-exit operator procedure (not performed in-session)
# Copy the authoritative session log out, then parse/validate provenance + hash.
SESS="/Users/alex/.pi/agent/sessions/--Users-alex-Projects-scripting-agentic-labs-challenge-adaptive-loop--/2026-08-12T15-16-35-418Z_019ff68b-f5da-72ad-a434-20f6da130066.jsonl"
cp "$SESS" ./adaptive-loop.session.jsonl
shasum -a 256 ./adaptive-loop.session.jsonl # record hash
# Validate: exactly one role:user entry (pi-goal-prompt kickoff); every later
# user-role entry (if any) carries a pi-goal-continuation marker for the same
# goal id; the session-metadata line has no structural parentSession field;
# reconstruct goal-state.text and confirm it byte-equals PROMPT.md without the
# leading "/goal " prefix.
Per SPEC, this copy/parse is operator-owned and excluded from the in-session freeze; the parent does not copy the live log during the run.
9. Residual risks & known deviations
- Scenario tuning (documented): Scenarios 3 and 4 were provably unwinnable as
originally specified and minimally retuned per SPEC §9. Full proofs and exact
changes are in
docs/scenario-tuning.md. All invariants preserved. - Heat carrier cost scope: SPEC §8 Heat row carrier cost says "while hot, growth/feeding cannot add population." The implementation applies this at the producer growth phase (SPEC §7 phase 3, which explicitly mentions trait-cost suppression of reproduction). It is not additionally applied to grazer/phage feeding gains in phase 4 (SPEC §7 phase 4 is silent on heat suppression). This is latent: no verified campaign route unlocks a heat-adapted grazer/phage feeding in a hot chamber, so no verified play is affected. It is documented here rather than applied to avoid destabilizing the exhaustively-proven scenario solvability.
- Counterfactual (Scenario 5): s5's frozen-ownership state space exceeds
8,000,000 reachable states, so the exhaustive proof is
complete === false. Two independent bounded searches (greedy beam to width 20,000; exhaustive DFS to 8M states) found no frozen win while the normal game is trivially winnable — concordant bounded-search evidence that shared-slot ownership materially affects s5 solvability. - Solver
fastHashuses raw (insertion-order) JSON rather than sorted-key canonical form for dedup; this is correct because all states are constructed by the same code path (stable key order) but is weaker than the canonical hash used for domain equality. It affects only offline solver node counts, never game correctness. - GLM-5.2 is non-multimodal in this harness; the one visual QA pass was performed via DOM-level Playwright checks rather than pixel inspection.