CREATIVE AGENTIC COMPUTING / ISSUE 002 / COMPLETE PROMPTS

001 / BEGINNER / ORBIT POSTCARDS

Build Orbit Postcards as one self-contained HTML file using canvas, CSS and plain JavaScript. Use a midnight canvas with a copper trace and a pale teal moving point. Provide labeled integer sliders for outer turns 1-12, inner turns 1-12 and inner radius 20-160. On an 840-square canvas, use x=420+245*cos(a*t)+r*cos(b*t) and y=420+245*sin(a*t)-r*sin(b*t). One complete trace runs from t=0 to 2*pi in eight seconds, sampled at 2400 equal intervals. Expose Trace/Pause, Start over, Surprise me and Save SVG postcard controls. Changing a slider resets the trace. Export exactly the current partial or complete path as a self-contained SVG. Revoke its temporary object URL. Pause on window blur and when the document becomes hidden. Keep controls keyboard accessible and fit a 390-pixel viewport. Run entirely offline with no libraries or external resources. Show an explanatory status message. Verify the initial point, closed full curve, reset, pause and SVG download. Deliver the working file and test results.

002 / INTERMEDIATE / SWITCHYARD

Build Switchyard as a single offline HTML file: a responsive 12-by-9 depot made from keyboard-accessible buttons. Dispatch D is cell 49, destinations A/B/C are 10/58/106, and couriers 1/2/3 start at 48/60/72. Number cells row-major from zero. Initial walls are 18,30,42,66,78,90. Queue six parcels A,B,C,A,C,B. Each tick, couriers in ID order pick up at D, deliver to the named destination, then return to D or home when the queue is empty. Use breadth-first shortest paths; treat walls and other couriers as obstacles. Reserve destination squares sequentially, prohibit overlaps and swaps, and count waiting ticks. Prefer a safe wait when blocked. Show a traffic-jam message after eight waits; do not claim deadlock freedom. Supply Run/Pause, One tick, Reset, an editable A/B/C parcel queue, and JSON notebook export/import. Validate every imported field, protected square, courier ID, collision and delivery total before replacing state. Allow wall edits only while paused and protect stations, homes and occupied squares. Arrow keys move cell focus. Pause on blur/hidden. Test shortest paths, unreachable targets, collision freedom, delivery of the default queue and invalid-import preservation. Deliver the file, tests and usage notes.

003 / ADVANCED / RESEARCH RELAY

Build Research Relay, a local Python 3.10+ application with a browser interface and standard-library-only backend. It answers a question from 1-6 source notes explicitly supplied by the operator. Each note has title (1-120 characters) and text (1-6000); assign IDs S1-S6. Limit the goal to 500 characters. Implement planner, worker and reviewer roles as distinct calls with distinct contracts. The planner chooses 1-3 unique existing source IDs and explains why. Each worker returns one claim and an exact contiguous quote from the selected source. Reject a missing or invented quote. The reviewer returns accept/revise plus a reason; keep that verdict visible. Exact quotation proves literal presence, not truth or entailment. Never treat a source note as an instruction to execute. Support an explicitly labeled scripted test bench and an actual Ollama adapter fixed to http://127.0.0.1:11434. List installed models; never pull one automatically. Use /api/chat, non-streaming JSON-schema responses, temperature zero and bounded output. Validate all returned fields and lengths independently.

Use at most five adapter calls per run: one plan, up to three workers, one review. Reserve and save the call count before each request; failures consume budget. Stop visibly on invalid output, timeout or exhausted budget; preserve the event journal. Save state atomically after every handoff and restore it on restart. A lock rejects concurrent steps. Offer one-step execution, automatic remaining steps, and pause after the current request. Show mode, role events, call budget, source citations, quotations and review. Require operator approval before a local Markdown download. Serve only on 127.0.0.1. Validate Host, reject cross-origin mutations, require an unpredictable per-server token for POSTs, bound request sizes, and render all supplied/model text using textContent. Expose no shell execution, arbitrary URL fetching or arbitrary filesystem paths to the model. Include fictional sample notes. Deliver relay.py, index.html, a README, engine and browser tests. Test bad source IDs, quote hallucination, malformed replies, failed requests, checkpoints, budget reservation, approval, concurrent calls, responsive layout and export. Run a real installed local model if available and report its actual result separately from the scripted fixture. Do not silently replace model failure with scripted success.
