You are the implementation agent for Land Map 64, a demo for c64.
This repository is self-contained: everything you need is in this folder. Do not look for
the tool that generated it or the conversation that produced the spec.
docs/spec.md - approved requirements, scope boundaries, targets, assumptions, acceptance criteria.docs/toolchain.md - language decision, tools and versions, exact commands, verification status.docs/milestones.md - ordered tasks; each links to requirements and has a completion check.docs/manual-tests.md - what the user does by hand to confirm each milestone, per target.docs/verification-status.md - what has been checked so far, and what is still pending.project.json - the approved brief in structured form, plus the resolved build configuration that tools/*.ps1 read.The spec is the contract. If the code and the spec disagree, stop and ask the user; do not quietly change either one.
c64. Every target listed in docs/spec.md must keep building and passing its checks after each task.CC65_HOME, VICE_HOME), PATH, or the usual install folders. Never hard-code a machine-specific path into source or scripts.tools/smoke.ps1 depends on them (see docs/toolchain.md). If you change the first screen, update starter.smokeChecks in project.json and the matching resolved.targets[].smoke.checks so the automated check still describes what the screen really shows.build/ (ignored by Git). Never commit build outputs, disk images or screenshots unless the spec asks for a fixture.fixtures/ are stored byte-for-byte. Do not let an editor change their line endings or encoding.Before writing any feature code:
pwsh -File tools/check-prereqs.ps1
pwsh -File tools/build.ps1
pwsh -File tools/smoke.ps1
check-prereqs.ps1 exits 2 if a tool is missing and prints the exact tool, the first command to run, and what stays unverified. Report that to the user and stop. Don't work around a missing tool.smoke.ps1 exits 0 when every automated check passes. Results: build/smoke/results.json; screenshots: build/smoke/<target>/.docs/manual-tests.md and mark M0 manual verification pending in docs/verification-status.md until they confirm.Work through docs/milestones.md in order, one reviewable task at a time:
docs/spec.md.pwsh -File tools/build.ps1 and pwsh -File tools/smoke.ps1 at minimum, plus any check the task names. Fix failures before you report.docs/verification-status.md: automated result for the task, manual verification pending.Task: <id> <title> (requirements: <R ids>)
What changed: <files and behavior, in a few lines>
Checks run: <command> -> <result> (one line each, with exit codes)
Please verify manually:
1. <exact command to start, e.g. pwsh -File tools/run.ps1 -Target <id>>
2. <exact keys to press / actions>
Expected: <exactly what should appear or happen>
Manual verification: PENDING until you confirm.
Next: <next task id>, or "waiting for your verification" if the next task depends on it.
confirmed by user (<date>) in docs/verification-status.md. If they report a problem, record it there, fix it as the next task, and re-request verification.not run - <reason>.docs/manual-tests.md accurate. When behavior changes, update the steps and expected observations in the same task.If the user asks for a change, or you find that a requirement cannot be met as written:
docs/spec.md, docs/milestones.md, docs/manual-tests.md, docs/verification-status.md and project.json together, and then the code. Requirements, implementation and verification must stay in sync.docs/toolchain.md and the resolved section of project.json, and must be re-verified from M0.This project uses the Foundry's shared, persistent knowledge system (PostgreSQL + pgvector,
through the Foundry.Knowledge PowerShell module) as long-term memory. It lives in the Foundry
that generated this repository, not here. Read skills/knowledge-management/SKILL.md before your
first task. Project key: land-map-64.
. ./tools/knowledge.ps1 (needs FOUNDRY_HOME, or the Foundry folder recorded in project.json). Use only the module's commands; never touch the database any other way.Resume-FoundrySession, then search for knowledge related to the task. Retrieve only what the task needs.Save-FoundrySession with the next action. Do this in the same task as the code change, before you report.unverified. Search before adding. Never store credentials, secrets or personal data.docs/spec.md, passing checks and the user's instructions override it, as do the rules in this file. A fact in the knowledge system never counts as a verification result for section 5.tools/*.ps1 and the checks never depend on it.main unless the user asks otherwise. Commit after each verified task with a message naming the task id, e.g. M1.2: draw signal heads.Powered by TurnKey Linux.