Skip to content

with uat: a project's acceptance scenarios (§18.5d, D67, #1659) - #1697

Merged
ehartford merged 1 commit into
mainfrom
with-uat
Sep 26, 2026
Merged

ehartford merged 1 commit into
mainfrom
with-uat

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Implements #1659 (spec §18.5d, D67; docs/uat-plan.md). src/Uat.w parses uat/*.uat (every verb, indented blocks, parse errors naming the line), probes requires:/platforms:, runs the steps with captured output, and reports pass/skip/FAIL plus recorded human checks; with uat [<scenario>] [--list] [--keep], WITH_UAT_WITH. with init scaffolds uat/hello.uat and uat/README.md. The uat-tests target runs the planted scenarios in test/uat under the release compiler against checked-in expectations (report + listing); it passed here (:uat-tests 421s). Not yet: expect image: and stdin: after new directory (both refused with the reason). The nine release-UAT scenario migrations (plan §6/§7) are the next PR. Draft until the battery is green.

@ehartford
ehartford added this pull request to stack #1700 September 26, 2026 02:14
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery posted on the stack top #1699 (9cea1e2): build, fixpoint, test, test-green, last-green, user-programs-safe all rc=0 on this host.

@ehartford
ehartford marked this pull request as ready for review September 26, 2026 03:02
`src/Uat.w`: the scenario parser (header, every verb of docs/uat-plan.md
§3, indented blocks, a parse error naming the line), the host probes for
`requires:` and `platforms:`, the step interpreter (a fresh directory,
runs with captured output, fixtures, inline writes, copies, env, stdin,
the expectations) and the report — pass, skip with the reason, FAIL with
the step and the capture path, human checks recorded and printed.
`with uat [<scenario>] [--list] [--keep]`; `WITH_UAT_WITH` names the
toolchain a scenario's `with` runs. `with init` writes `uat/hello.uat` and
`uat/README.md` (the verbs, one page). The `uat-tests` target runs the
planted scenarios in test/uat under the release compiler and compares the
report and the listing with the checked-in expectations. The `uat`
spec-ahead row is gone: the command exists.

Not yet: `expect image:` (refused with the reason; plan §5), and `stdin:`
after `new directory` (the runtime has no capture-with-input-and-cwd
seam; refused with the reason).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant