Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

5.2KB

Manual verification guide

Use this guide to check the Foundry by hand after changing it, or to accept it on a new machine. The automated suite (pwsh -File tests/Run-FoundryTests.ps1) covers the mechanics. These steps cover what needs human judgment: the interview, the screens, and the handoff to a fresh agent.

Mark each item pass or fail, and note the date and the VICE/cc65 versions used.

A. Environment

  1. pwsh -v reports 7.x. git --version works.
  2. Run pwsh -File tests/Run-FoundryTests.ps1. Expect Summary: N passed, 0 failed, 0 skipped and a fresh tests/results/latest.md.
    • If VICE or cc65 is missing, the toolchain checks show SKIP with the missing tool. Install it (README, Prerequisites) and run again.

B. Interview (in your coding agent, from the Foundry root)

  1. Send: Read AGENTS.md and run the Foundry interview. My idea: a C64 game where you herd sheep into a pen with a dog.
    • The agent summarizes the idea and proposes a smallest playable version.
    • It asks 2-4 questions about the target first (machine, PAL/NTSC, real hardware).
    • drafts/<slug>.json exists after the first round.
  2. Answer one round, then close the session. Start a new session: Read AGENTS.md and resume the Foundry interview from drafts/.json.
    • The agent states what was already decided and continues at the stage printed by tools/Test-FoundryBrief.ps1. It does not re-ask answered questions.
  3. Say you have no preference on controls. The spec marks controls as a practical default.
  4. Ask for BASIC V2 when the design needs smooth animation of many sprites.
    • The agent quotes the conflict and asks which constraint to change. It does not pick one itself.
  5. Ask instead for 6502 assembly.
    • The agent accepts it as a compatible override and records it.
  6. Ask for a change after the spec is shown.
    • The agent updates the draft and shows the revised spec. Nothing is generated.
  7. Approve the spec.
    • The spec you saw included scope, assumptions, target and toolchain, the first milestone, acceptance checks and the destination.
    • The agent generates the project and reports the path, Git status, starter verification per target, and the exact message for a fresh session.

C. Generated example: Traffic Control 64

Folder: ..\Foundry Projects\traffic-control-64

  1. pwsh -File tools/check-prereqs.ps1 lists cl65 and x64sc as found.
  2. pwsh -File tools/smoke.ps1 prints [PASS] c64 with six ok lines.
  3. pwsh -File tools/run.ps1: within about 5 seconds VICE shows the intersection screen.
    • Title on row 0, score line on row 1, and a frame counter Fnnn that changes continuously.
    • Green grass, a grey crossroads and white crosswalk stripes.
    • North-east signal head with the bottom (green) lamp lit; south-west head with the left (red) lamp lit.
    • Row 23: N-S: GREEN E-W: RED WALK: OFF.
  4. Press a key: VICE returns to the BASIC screen with READY.
  5. pwsh -File tools/run.ps1 -Video ntsc: row 1 shows NTSC.

D. Generated example: C128 Text Viewer

Folder: ..\Foundry Projects\c128-text-viewer

  1. pwsh -File tools/smoke.ps1 prints [PASS] c128-80 with the title, SAMPLE OPENED OK: 6423 BYTES, DRIVE STATUS: 00, ok,00,00 and the $D7 = $80 check.
  2. pwsh -File tools/run.ps1: x128 starts, loads VIEWER from the disk image, and the 80-column (VDC) window shows those four lines. Disk loading at normal speed takes several seconds.
  3. c1541 -attach build\c128-text-viewer-c128-80.d64 -list lists VIEWER (prg), SAMPLE, LFSAMPLE and CRLFSAMPLE (seq).
  4. docs/milestones.md M1.3 and M2.3 contain the automated page-view checks to be added during implementation.
  5. docs/manual-tests.md MT1.2 and MT1.3 describe what the sample file must look like on the 80-column screen.

E. Handoff from a fresh agent session

  1. Open a new coding-agent session in a generated folder (not in the Foundry), with no other context.
  2. Send the message from the generated README (“Start the implementation agent”).
  3. Expect the following:
    • The agent reads the docs in the order AGENTS.md lists.
    • It runs check-prereqs, build and smoke first.
    • It implements one task, then reports what changed, the checks it ran with their results, and numbered manual steps with the expected result.
    • It marks manual verification as PENDING and waits at the end of the milestone.
  4. Confirm the task works. The agent records confirmed by user (<date>) in docs/verification-status.md.

F. Safety (spot check)

  1. Run the generator twice with the same destination. The second run fails with already contains a Git repository, and the folder is unchanged.
  2. Interrupt a generation with Ctrl+C while it runs.
    • No destination folder appears, and no .<name>.foundry-staging-* folder is left. A stale one from a hard kill is removed by the next run.
    • Re-running succeeds.

Real hardware (pending until done)

Neither example requires real hardware. To check one anyway, follow the “Real hardware” section of the generated docs/manual-tests.md. For example, copy build\c128-text-viewer-c128-80.d64 to an SD2IEC card, use a C128 with the 40/80 key down and an 80-column monitor, and run LOAD"*",8 then RUN. Record the result in that project's docs/verification-status.md.

Powered by TurnKey Linux.