You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Multi-step fixtures with captured values, a restart step and quiet test output #256
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestimportantHigh-priority work selected for near-term focus
Tried: test a create -> read -> update -> restart lifecycle with urlcode test. Expected: multi-step fixtures. Got: fixtures are single requests with no captured values, so both runs added a separate node:test harness that spawns npx urlcode serve (slow; killing npx can orphan the server; run 2 copied the project to a temp dir to isolate data). Run 1 also found urlcode test prints noisy JSON request logs by default. Suggestion: fixture step chaining with captured variables and a restart step; an in-process test helper (start server on port 0 with data isolation); quiet output by default with --verbose. Evidence: an A/B benchmark on URLCode 0.4.1 with Sonnet 5 agents building the same Todo app from the repo docs. Run 1 (benchmark Agent B, no authoring skill, no browser check) and run 2 (session "Todo application with URLCode", authoring skill loaded, tightened prompt) hit this independently. n=1 each; single small app, so treat frequency as anecdotal. The Agent A control (no URLCode) needed 2 shell calls and 0 dependencies for the same app.
Add ordered steps to a tests/requests.json fixture, with capture (from a JSON body or header) and {{name}} substitution between steps.
Add a restart step that closes and restarts the runtime on the same project and data directory, so a create -> read -> update -> restart lifecycle needs no hand-written node:test harness.
Export the existing startServer({port: 0}) with a data-isolation option as the in-process test helper.
Update the fixture schema, docs/READINESS.md (coverage counting for multi-step cases) and add an executable example in the same PR. Evidence is n=1 per run; proceeding is a maintainer decision.
Progress: PR #303 opened: steps/capture/restart fixtures and startServer data-dir isolation. Held for a maintainer check of the narrow grantDataDir test-harness grant.
Implemented in #303: ordered steps in tests/requests.json with capture and {{name}} substitution, a restart step on the same project and data directory, and startServer data-dir isolation. urlcode test is quiet by default (#273). A follow-up commit keeps urlcode test working on a read-only filesystem, which the container smoke test caught. verify-deployment skips fixtures that contain a restart step.
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestimportantHigh-priority work selected for near-term focus
Activity
Make urlcode test quiet by default; record multi-step fixture decision (
Make urlcode test quiet by default; record multi-step fixture decision (
jimhoyd commentedon Sep 20, 2026
Decision: build it.
stepsto atests/requests.jsonfixture, withcapture(from a JSON body or header) and{{name}}substitution between steps.restartstep that closes and restarts the runtime on the same project and data directory, so a create -> read -> update -> restart lifecycle needs no hand-writtennode:testharness.startServer({port: 0})with a data-isolation option as the in-process test helper.urlcode testoutput with--verbose(Quiet urlcode test output by default; record multi-step fixture decision #273).Update the fixture schema,
docs/READINESS.md(coverage counting for multi-step cases) and add an executable example in the same PR. Evidence is n=1 per run; proceeding is a maintainer decision.jimhoyd commentedon Sep 20, 2026
Progress: implementation started by an agent against the maintainer decision on this issue; a PR will be linked here when it opens.
Record decisions for eight benchmark-driven authoring requests (#297)
jimhoyd commentedon Sep 20, 2026
Progress: PR #303 opened:
steps/capture/restartfixtures andstartServerdata-dir isolation. Held for a maintainer check of the narrowgrantDataDirtest-harness grant.Add multi-step fixtures with capture, restart steps and a data-isolat…
Multi-step fixtures: capture, restart step, data-isolation helper (refs
jimhoyd commentedon Sep 20, 2026
Implemented in #303: ordered steps in tests/requests.json with capture and {{name}} substitution, a restart step on the same project and data directory, and startServer data-dir isolation. urlcode test is quiet by default (#273). A follow-up commit keeps urlcode test working on a read-only filesystem, which the container smoke test caught. verify-deployment skips fixtures that contain a restart step.