Develop the companion alpha through its ordered work items.
The user requires real model inference, real Spamuel history, and the real Minecraft server for behavioral acceptance.
Every delivery must include readable code comments, detailed implementation documentation, and regenerated HTML.
General rules for every change are in AGENTS.md at the repository root.
Session progress belongs in the copyable handoff at the end of each session.
Parent: engineering manual.
- Read
AGENTS.mdand this page before implementation. - Read the alpha plan and the selected work item.
- Read its linked design and the latest handoff that the user supplies.
- Read applicable repository instructions and inspect uncommitted changes in every affected repository.
- Open the
simple-englishskill before writing comments, docstrings, or documentation. - Open the
project-documentationskill before updating the engineering manual. - Inspect the current implementation and live configuration before assuming that an older guide still applies.
- Complete the selected item, its relevant checks, documentation, and handoff before moving to another item.
The installed skills use these locations:
C:/Users/rick/.agents/skills/simple-english/SKILL.mdC:/Users/rick/.agents/skills/project-documentation/SKILL.md
If a skill path changes, locate the installed skill before using a replacement procedure. Use simple-english in its pragmatic mode unless the user requests strict STE compliance.
The prototype phase with dummy acceptance is over. Use the production path, actual services, and real input data to establish behavior. Do not replace a difficult live gate with a fake world, fixed model response, or dummy conversation. Do not introduce dummy tests as a substitute for a required live test.
Use test_data/personas/spamuel/canon.yaml as the primary companion seed.
It contains the real Spamuel/Jesse history and approximately 11,200 records.
Do not replace this history with a tiny invented seed to obtain passing companion results.
Keep the source seed unchanged and use separate runtime checkpoints for experiments.
An existing checkpoint takes precedence over a changed seed. Use a fresh instance to establish a new baseline from the real seed. Use the same checkpoint for a continuity or restart scenario. Preserve transcripts, state changes, task receipts, and observed world effects.
The alpha plan also requires a cheerful comparison persona.
Its existing fixture is test_data/personas/cheerful/config.yaml.
Keep that control separate from the primary Spamuel acceptance evidence.
Its small, empty-history seed cannot establish behavior with the real Spamuel history.
Retain the existing foundation tests for state, routing, and protocol contracts. Passing those tests does not establish model quality, memory recall, or gameplay success. Use captured real protocol data and real failure conditions for new boundary checks. Keep generated routing examples visibly distinct from captured application reports.
If a required service is unavailable, diagnose its actual connection and startup configuration. If the configuration is available, start the service through the documented procedure. If essential deployment information is missing, ask the user for that information. Record an unavailable gate explicitly until it runs against the real service. Never report dummy execution as a replacement pass.
Fix engineering failures before asking the owner to review companion quality.
Retain failed receipts as development evidence outside the ready review package.
Register the completed capture with python -m simulation.review, then open the browser review desk.
Give the owner its direct review URL.
The review must show actual chat, private thought excerpts, codelet output, and relevant knoxel content.
Show recorded links from memory through attention to the later routing choice.
Keep human ratings beside that content and leave them empty until the owner supplies them.
Do not substitute Markdown reports, hashes, timing statistics, or model scores for this review.
Read conversation review for the current capture path.
Current development selects config.alpha.openrouter.yaml explicitly.
Chat, evaluation, managed agents, and embeddings use OpenRouter for this procedure.
Do not start Strata or another local model for development gates.
The LLM wrapper owns provider discovery, reasoning fields, and transport behavior.
Workflow code uses the same model interface for every endpoint.
The local deployment uses the following locations and endpoints. The table preserves the earlier local deployment. Verify the selected config before each live run.
| Component | Real location or endpoint | Identity |
|---|---|---|
| Main repository | C:/source/pm/pm_next_v2 |
Python 3.12, uv, Git |
| Local model configuration | config.alpha.example.yaml |
Local chat, OpenRouter embeddings, environment credential reference |
| Chat and comparison LLM | http://127.0.0.1:8080/v1 |
Alias qwen |
| Embeddings | https://openrouter.ai/api/v1 |
perplexity/pplx-embed-v1-0.6b, 1024 dimensions, OPENROUTER_API_KEY |
| Decisions | http://127.0.0.1:8082/v1/systemone |
Alias laya |
| Decision server binary | C:/workspace/llama-systemone-b11374/llama-server.exe |
Build 11374, revision b92761a51 |
| Decision model | C:/source/ai/Laya-BF16.gguf |
Laya BF16 |
| Real Minecraft server | C:/source/minecraft-server-real |
Fabric 1.19.4, Babymode 0.5.0 |
| Game socket | 127.0.0.1:12345 |
Normal survival world |
| Minecraft MCP | http://127.0.0.1:6767/mcp |
Body HTTP 6768, viewer 6769 |
| RCON | 127.0.0.1:25575 |
Credentials stay in local configuration |
| MCP repository | C:/source/pm/pm-minecraft |
Real-server environment: .env_real |
| Normal console | http://127.0.0.1:8090 |
Separate instance checkpoints |
Both example configurations use OpenRouter embeddings.
Select config.alpha.example.yaml explicitly for local chat with OpenRouter embeddings.
Chat currently runs through C:/source/strata2/serve/server.py with C:/source/strata2/strata-orca-iq3_xxs.json.
It serves Qwen3.8-Flash-Next-Uncensored under alias qwen, with 262,144 serving tokens.
The externally owned chat service remains running across Minecraft fixture shutdowns.
Earlier receipts used the C:/workspace/llama13/ chat binary.
The unused local embedding endpoint on 8081 has a recorded invalid-vector defect.
Use the decision-capable binary listed above for Laya.
Do not launch a second decision server on a port that the console smoke uses.
The real server directory is C:/source/minecraft-server-real.
The user explicitly selected this server for baseline and acceptance work.
Its world is normal terrain with structures, survival mode, and normal difficulty.
The recorded seed is 23452352345.
If you cannot find or identify the real Minecraft server, ask the user where it is.
Do not conclude that Minecraft acceptance is impossible after inspecting the superflat TDD template.
Do not substitute C:/source/minecraft-server-tdd for this real server.
The generic historical W8 autostart path uses that TDD template.
Use the real-server wrapper below to select the actual server.
The real server provides wipe-world.ps1 and start-server.ps1.
The wipe script removes world, logs, and .fabric while the server is stopped.
Its printed seed is outdated.
Read the actual seed from server.properties.
The active Babymode configuration is config/agentic_babymode.json.
The user authorized the required real-server world resets for this testing procedure. Before a reset, verify that the server is stopped. Verify that every resolved removal target remains inside the named server directory. Use the provided wrapper for an automated, owned server and MCP lifecycle:
$stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
uv run --locked python dev/work_items/alpha_minecraft_gate.py --config config.alpha.example.yaml --out ".runtime/alpha/$stamp-minecraft" --reset-world
The wrapper uses the actual server directory and a separate test character.
It copies .env_real into the ignored run directory and enables test control routes there.
Its character directory stays inside that run's .runtime folder.
/test/reset clears those character files.
It does not reset the game world or the normal companion's character files.
The wrapper stops the game server and MCP processes that it owns and retains their evidence.
For later gameplay fixtures, record spawn, inventory, terrain, available resources, and the complete reset procedure.
Babymode /commit and /revert restore blocks and block entities only.
They do not restore inventory, player state, entities, time, weather, gamerules, advancements, or scoreboards.
If the fixture requires complete restoration of initial state, use a complete world reset.
Do not supply iron or a pickaxe to a scenario that requires self-mined iron and self-crafted tools.
Do not treat taking village supplies as mining iron.
The wrapper currently runs the existing narrow one-action gate. It does not establish a finished house, an iron pickaxe, sustained survival, or visual interpretation. Screenshot files alone do not establish that a planner understood their pixels.
Use the normal LLM as the default for selection, classification, and interpretation. Laya was planned for frequent classification, but A02 found poor interpretation quality, including confidently wrong answers. Retain its technology for later use. Use Laya only for the simplest classifications after realistic live-endpoint unit tests establish that specific use. If making Laya work requires expensive effort, use the normal LLM and stop the experiment. Do not enforce a percentage of Laya usage or require adoption for an alpha item to pass. Read the model policy before implementing classification or selecting a cognitive backend.
Each classifier needs use-specific classes, descriptions, input limits, and an uncertainty policy. Always provide an INVALID route to a scoped LLM handler for missing, ambiguous, stale, oversized, or unusable evidence. Do not rely on confidence alone to catch wrong answers. Write unit tests that call the real endpoint with realistic synthetic inputs and independently defined expected results. Include captured application inputs when available, and preserve input digests. Synthetic inputs do not permit fixed model responses or simulated inference. Simple fact-based test assertions need no separate human-label approval. Keep human review for ambiguous interpretation and persona immersion. Preserve the historical A01 corpus, holdout, and their pending review status. Use untouched cases before enabling a specific optional classifier.
The normal LLM path is a core requirement. Diagnose and repair direct Python failures or lost required context immediately. Preserve pm-coder's automatic compaction for accumulated agent execution history. Direct chat callers must select suitable task context or explicitly compact it while preserving necessary evidence. Do not treat Laya's decision-head limits as limits on chat or pm-coder.
Use the project-documentation skill with simple-english for the engineering manual. Explain the actual implementation in enough detail for a human to modify, operate, and diagnose it. Brief prototype summaries are insufficient for the real modules. Keep each page focused and add linked child pages when a mechanism needs a separate explanation.
For every delivered mechanism, document:
- Its purpose, entry points, callers, and owning repository.
- Its exact inputs, output schemas, accepted values, and user-visible results.
- Its real execution path, workflow stages, routing conditions, and fallback path.
- Its state owner, revisions, durable commit boundary, and publication behavior.
- Its external effects, cancellation boundaries, retries, restart behavior, and uncertain outcomes.
- Its configuration, live endpoints, activation procedure, model and tool requirements, and effective limits.
- Its memory provenance, evidence files, trace fields, and steps to inspect a real result.
- Its concrete failure modes, diagnostic steps, and tested recovery procedures.
- Its exact commands, representative real-input examples, measured results, and remaining limits.
- Its API docstrings and links from the conceptual explanation to the exact Python objects.
Separate active behavior, verified results, known defects, proposals, and unverified assumptions. After a contract, workflow, or procedure changes, update affected guides and navigation. Describe failure and recovery as thoroughly as the successful path. Do not copy dummy examples into a guide and label them as real execution. Use observed data and actual receipts for worked examples. Link deeper pages back to their parent and related mechanisms. Keep the API reference generated from source and docstrings. Do not duplicate API declarations by hand in conceptual pages.
The user authorized commits and pushes for related projects under C:/source/pm.
Commit and push the tested changes and documentation within the selected item's scope.
Preserve unrelated uncommitted work and local credentials.
Record changed contracts, exact revisions, lock changes, commands, real receipts, and remaining limits.
Retain diagnosed failures until the owning item fixes them with new real evidence.
If the session makes changes, write a self-contained, copyable handoff in the final response.
Include completed work, affected repositories and commits, validation commands and results, known failures, pending work, and the next item.
Include exact evidence paths and deployment changes that the next agent needs.
The user copies that handoff into the next session.
Do not append session history, current progress, next-item status, or handoff notes to this page or AGENTS.md.
Update this page only when the work-item procedure or deployment facts change.