GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing snappea.dev — Model a feature with your agent · Snap Pea docs Work with your agent Model a feature with your agentUse a model to improve the design, then carry its rules and counterexamples into implementation tests. Prerequisites: an installed Snap Pea CLI, an application repository, and a feature involving shared state, concurrency, retries or recovery. For an introduction to P, start with your first model. Give the agent the contractDescribe what must remain true, the storage primitives that are actually atomic, and the failures you expect. Ask the agent to record assumptions and model bounds alongside the design. A useful starting instruction is: The guide ships with the binary, so the agent can read it without browsing documentation. For a complete model-to-application example, ask it to read Review the model before implementationCheck that separate operations can interleave where the real system allows them to. A model that treats a read and a later write as one atomic operation assumes away the lost-update bug. Review specs against the contract independently of the implementation algorithm. Use the reported replay command to inspect a failure. Fix the design when the trace exposes a real bug; fix the model when its assumptions are wrong. Keep the scenario that exposed it. Coverage identifies behavior the workload did not exercise. Lints catch common weak models. Mutation testing asks whether checks reject changed behavior. Investigate findings rather than removing the checks to obtain a pass. Connect the implementation to the specAsk the agent to implement the reviewed design and record actual operation arguments and results. Use the helpers for Python, Rust, Go or Java to check those events against the model's specs. Force the important interleavings in implementation tests: for example, ensure two calls read the same value before either writes. Run the real application calls; do not replace them with invented event lists. Keep each model counterexample as a regression test where practical. The inventory model and application examples share a stock-reservation spec across languages. Start from a runnable exampleExport a complete queue model, independent contract, Python implementation and saved pytest regressions: The tests force load/CAS conflicts without matching private storage-key names, retry through new objects after state changes, distinguish an empty result from zero, and show the shared P monitor rejecting an actual implementation defect. Sequential observations have a known operation order; concurrent races use ordinary assertions because response order is not commit order. For immutable staging, root-CAS publication and saved crash/retry tests, export Keep the loop running in CIAdd Review search completion, model bounds, quality findings and instrumentation alongside a passing status. The model and observed events can both omit requirements. Update the design, model and tests together as the feature changes. For how we measure agent outcomes, see the minimal-prompt eval. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |