nukadoko 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +553 -3
- data/README.ja.md +22 -6
- data/README.md +13 -7
- data/docs/ci.ja.md +542 -0
- data/docs/ci.md +635 -0
- data/docs/commands.ja.md +1524 -0
- data/docs/commands.md +1281 -0
- data/docs/engines.json +19 -0
- data/docs/execution-events.ja.md +336 -0
- data/docs/execution-events.md +423 -0
- data/docs/glossary.json +1348 -0
- data/docs/guide.ja.md +733 -0
- data/docs/guide.md +815 -0
- data/docs/intent.ja.md +133 -0
- data/docs/intent.md +156 -0
- data/docs/layout.ja.md +442 -0
- data/docs/layout.md +399 -0
- data/docs/releasing.ja.md +186 -0
- data/docs/releasing.md +237 -0
- data/docs/ruby/reference.ja.md +302 -0
- data/docs/ruby/reference.md +368 -0
- data/docs/spec.ja.md +8916 -0
- data/docs/spec.md +11250 -0
- data/docs/tutorial.ja.md +451 -0
- data/docs/tutorial.md +458 -0
- data/docs/typescript/adopting.ja.md +231 -0
- data/docs/typescript/adopting.md +251 -0
- data/docs/typescript/doors.ja.md +301 -0
- data/docs/typescript/doors.md +329 -0
- data/docs/typescript/migration-playwright-test.ja.md +189 -0
- data/docs/typescript/migration-playwright-test.md +212 -0
- data/docs/typescript/migration.ja.md +391 -0
- data/docs/typescript/migration.md +505 -0
- data/docs/typescript/reference.ja.md +176 -0
- data/docs/typescript/reference.md +197 -0
- data/docs/typescript/upgrading.ja.md +1774 -0
- data/docs/typescript/upgrading.md +2224 -0
- data/docs/web-app.ja.md +627 -0
- data/docs/web-app.md +659 -0
- data/docs/writing-scenarios.ja.md +544 -0
- data/docs/writing-scenarios.md +563 -0
- data/lib/nukadoko/base.rb +12 -5
- data/lib/nukadoko/changed_files.rb +95 -0
- data/lib/nukadoko/check.rb +459 -51
- data/lib/nukadoko/claim_drops.rb +271 -0
- data/lib/nukadoko/claim_line.rb +24 -4
- data/lib/nukadoko/claim_rules.rb +143 -1
- data/lib/nukadoko/claim_sides.rb +157 -9
- data/lib/nukadoko/cli.rb +403 -50
- data/lib/nukadoko/codes.json +246 -21
- data/lib/nukadoko/codes.rb +21 -4
- data/lib/nukadoko/command.rb +120 -13
- data/lib/nukadoko/command_help.rb +128 -0
- data/lib/nukadoko/compat.rb +469 -0
- data/lib/nukadoko/criteria.rb +1 -1
- data/lib/nukadoko/definition.rb +157 -7
- data/lib/nukadoko/error_frames.rb +6 -3
- data/lib/nukadoko/events/count.rb +146 -0
- data/lib/nukadoko/events/counted.rb +114 -0
- data/lib/nukadoko/events/format.rb +257 -0
- data/lib/nukadoko/events/lists.rb +154 -0
- data/lib/nukadoko/events/path.rb +285 -0
- data/lib/nukadoko/events/read.rb +284 -0
- data/lib/nukadoko/events/reader.rb +490 -0
- data/lib/nukadoko/events/selection.rb +252 -0
- data/lib/nukadoko/events/tally.rb +438 -0
- data/lib/nukadoko/features.rb +2 -2
- data/lib/nukadoko/fixtures.rb +160 -35
- data/lib/nukadoko/http_recording.rb +6 -2
- data/lib/nukadoko/intent.rb +364 -0
- data/lib/nukadoko/intent_file.rb +81 -0
- data/lib/nukadoko/intent_view.rb +190 -0
- data/lib/nukadoko/js_json.rb +2 -1
- data/lib/nukadoko/judge.rb +2 -2
- data/lib/nukadoko/judgment_file.rb +22 -1
- data/lib/nukadoko/judgments.rb +33 -3
- data/lib/nukadoko/measure_mcp.rb +202 -0
- data/lib/nukadoko/parts.rb +8 -2
- data/lib/nukadoko/path_view.rb +252 -0
- data/lib/nukadoko/place_rows.rb +161 -0
- data/lib/nukadoko/program.rb +1265 -51
- data/lib/nukadoko/program_log.rb +122 -0
- data/lib/nukadoko/program_shape.rb +385 -0
- data/lib/nukadoko/project_fixtures.rb +43 -10
- data/lib/nukadoko/project_program.rb +5 -4
- data/lib/nukadoko/repeated_prefix.rb +310 -0
- data/lib/nukadoko/report_run.rb +3 -3
- data/lib/nukadoko/run.rb +1156 -159
- data/lib/nukadoko/run_record.rb +70 -46
- data/lib/nukadoko/scaffold.rb +24 -6
- data/lib/nukadoko/schema.rb +15 -2
- data/lib/nukadoko/secrets.rb +55 -5
- data/lib/nukadoko/states.rb +478 -0
- data/lib/nukadoko/step.rb +71 -2
- data/lib/nukadoko/step_fixtures.rb +52 -3
- data/lib/nukadoko/summary.rb +803 -30
- data/lib/nukadoko/table.rb +4 -2
- data/lib/nukadoko/text_fit.rb +20 -7
- data/lib/nukadoko/trace.rb +152 -45
- data/lib/nukadoko/tree_passes.rb +95 -33
- data/lib/nukadoko/underneath.rb +311 -0
- data/lib/nukadoko/verdict.rb +18 -1
- data/lib/nukadoko/version.rb +1 -1
- data/lib/nukadoko/vocabulary.rb +166 -23
- data/lib/nukadoko/walk.rb +2 -2
- data/lib/nukadoko/walk_step.rb +1 -1
- data/lib/nukadoko.rb +23 -0
- data/llms.txt +42 -35
- data/sig/generated/nukadoko/base.rbs +4 -4
- data/sig/generated/nukadoko/changed_files.rbs +42 -0
- data/sig/generated/nukadoko/check.rbs +147 -10
- data/sig/generated/nukadoko/claim_drops.rbs +135 -0
- data/sig/generated/nukadoko/claim_line.rbs +11 -0
- data/sig/generated/nukadoko/claim_rules.rbs +49 -4
- data/sig/generated/nukadoko/claim_sides.rbs +63 -12
- data/sig/generated/nukadoko/cli.rbs +80 -7
- data/sig/generated/nukadoko/codes.rbs +19 -4
- data/sig/generated/nukadoko/command.rbs +68 -1
- data/sig/generated/nukadoko/command_help.rbs +18 -0
- data/sig/generated/nukadoko/compat.rbs +392 -0
- data/sig/generated/nukadoko/criteria.rbs +1 -1
- data/sig/generated/nukadoko/definition.rbs +50 -0
- data/sig/generated/nukadoko/error_frames.rbs +1 -1
- data/sig/generated/nukadoko/events/count.rbs +69 -0
- data/sig/generated/nukadoko/events/counted.rbs +70 -0
- data/sig/generated/nukadoko/events/format.rbs +163 -0
- data/sig/generated/nukadoko/events/lists.rbs +47 -0
- data/sig/generated/nukadoko/events/path.rbs +161 -0
- data/sig/generated/nukadoko/events/read.rbs +109 -0
- data/sig/generated/nukadoko/events/reader.rbs +226 -0
- data/sig/generated/nukadoko/events/selection.rbs +100 -0
- data/sig/generated/nukadoko/events/tally.rbs +227 -0
- data/sig/generated/nukadoko/features.rbs +6 -4
- data/sig/generated/nukadoko/fixtures.rbs +67 -11
- data/sig/generated/nukadoko/http_recording.rbs +1 -1
- data/sig/generated/nukadoko/intent.rbs +132 -0
- data/sig/generated/nukadoko/intent_file.rbs +46 -0
- data/sig/generated/nukadoko/intent_view.rbs +69 -0
- data/sig/generated/nukadoko/judgment_file.rbs +7 -1
- data/sig/generated/nukadoko/judgments.rbs +10 -0
- data/sig/generated/nukadoko/measure_mcp.rbs +104 -0
- data/sig/generated/nukadoko/parts.rbs +2 -2
- data/sig/generated/nukadoko/path_view.rbs +105 -0
- data/sig/generated/nukadoko/place_rows.rbs +43 -0
- data/sig/generated/nukadoko/program.rbs +627 -23
- data/sig/generated/nukadoko/program_log.rbs +67 -0
- data/sig/generated/nukadoko/program_shape.rbs +147 -0
- data/sig/generated/nukadoko/project_fixtures.rbs +16 -3
- data/sig/generated/nukadoko/project_program.rbs +2 -1
- data/sig/generated/nukadoko/repeated_prefix.rbs +172 -0
- data/sig/generated/nukadoko/report_run.rbs +1 -1
- data/sig/generated/nukadoko/run.rbs +286 -41
- data/sig/generated/nukadoko/run_record.rbs +20 -12
- data/sig/generated/nukadoko/scaffold.rbs +3 -0
- data/sig/generated/nukadoko/schema.rbs +5 -0
- data/sig/generated/nukadoko/secrets.rbs +26 -3
- data/sig/generated/nukadoko/states.rbs +214 -0
- data/sig/generated/nukadoko/step.rbs +58 -1
- data/sig/generated/nukadoko/step_fixtures.rbs +39 -0
- data/sig/generated/nukadoko/summary.rbs +256 -2
- data/sig/generated/nukadoko/table.rbs +3 -2
- data/sig/generated/nukadoko/trace.rbs +108 -33
- data/sig/generated/nukadoko/tree_passes.rbs +36 -8
- data/sig/generated/nukadoko/underneath.rbs +141 -0
- data/sig/generated/nukadoko/verdict.rbs +8 -0
- data/sig/generated/nukadoko/vocabulary.rbs +45 -6
- data/skills/nukadoko/SKILL.md +18 -18
- data/skills/nukadoko/references/checking-steps.md +16 -83
- data/skills/nukadoko/references/diagnosing.md +6 -6
- data/skills/nukadoko/references/done.md +22 -0
- data/skills/nukadoko/references/evidence.md +19 -6
- data/skills/nukadoko/references/exploring.md +22 -7
- data/skills/nukadoko/references/fixtures.md +12 -32
- data/skills/nukadoko/references/judgments.md +18 -0
- data/skills/nukadoko/references/maintenance.md +1 -1
- data/skills/nukadoko/references/merge-risk.md +1 -1
- data/skills/nukadoko/references/parts.md +46 -23
- data/skills/nukadoko/references/{perturbed-worlds.md → perturbed-systems.md} +30 -12
- data/skills/nukadoko/references/program.md +168 -169
- data/skills/nukadoko/references/reviewing.md +20 -20
- data/skills/nukadoko/references/ruby/checking-steps.md +106 -0
- data/skills/nukadoko/references/ruby/examples/cli.md +212 -0
- data/skills/nukadoko/references/ruby/fixtures.md +34 -0
- data/skills/nukadoko/references/ruby/program.md +112 -0
- data/skills/nukadoko/references/ruby/step-files.md +115 -0
- data/skills/nukadoko/references/running.md +34 -34
- data/skills/nukadoko/references/scenario-rules.md +7 -6
- data/skills/nukadoko/references/states.md +7 -1
- data/skills/nukadoko/references/step-files.md +41 -120
- data/skills/nukadoko/references/typescript/checking-steps.md +129 -0
- data/skills/nukadoko/references/{examples → typescript/examples}/cli.md +1 -1
- data/skills/nukadoko/references/{examples → typescript/examples}/http-api.md +6 -6
- data/skills/nukadoko/references/{examples → typescript/examples}/workflow.md +1 -1
- data/skills/nukadoko/references/typescript/fixtures.md +56 -0
- data/skills/nukadoko/references/typescript/program.md +111 -0
- data/skills/nukadoko/references/typescript/step-files.md +104 -0
- data/skills/nukadoko/references/verdicts.md +10 -10
- data/skills/nukadoko/references/writing-steps.md +67 -67
- data/skills/nukadoko/references/writing-the-feature.md +1 -1
- data/skills/nukadoko-verification/SKILL.md +13 -8
- metadata +103 -7
- data/skills/nukadoko/references/ruby.md +0 -80
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba93b4d22a21dd9d8fbe352bb5dd8041a05b64819c7206783bd4fcfc4c3d1659
|
|
4
|
+
data.tar.gz: 6a550b4bb35dd2fba7e3d49a4efce7f8564cf1460eb44f1a681cb50f6e9da9c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '086601664cec1b99dcf6007407e777e8f51fecd15eefc1db36c043d26c6f7b3fca2e334d7db372f522b45f71036543e653c346637a1017fd641da18e589b7750'
|
|
7
|
+
data.tar.gz: 52aa510125d6cddc3080c297e4a059d8215e0b6c938fa5e66cb08194024d2096dfbe80ff5c0c0ff61e96819740df1697774db3556ef24c67db11977597ce4f4e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,560 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
Notable changes to the `nukadoko` gem, the Ruby engine. The npm package has
|
|
4
|
-
its own changelog, `../CHANGELOG.md`, and its own versions.
|
|
5
|
-
notes come from the section below whose heading starts with `## [<version>]`.
|
|
4
|
+
its own changelog, `../typescript/CHANGELOG.md`, and its own versions.
|
|
5
|
+
Each release's notes come from the section below whose heading starts with `## [<version>]`.
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [0.7.0] - 2026-12-06
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `nuka check` reports `program-placeholder-renamed`, an error, for a
|
|
12
|
+
field of the program that writes `{world}`, what `{system}` was called
|
|
13
|
+
before, and `nuka run` and `nuka do` refuse before any command runs.
|
|
14
|
+
Such a field has no gap, since nukadoko fills no name it does not know,
|
|
15
|
+
so the program would be handed those characters as they stand; the
|
|
16
|
+
message names the field and the fix names `{system}`. The same as the
|
|
17
|
+
TypeScript engine, and a conformance case holds both to it.
|
|
18
|
+
- `nuka steps <target>` lists the vocabulary of the scenarios a feature
|
|
19
|
+
file, a `file:line`, or a directory selects: the steps their lines bind
|
|
20
|
+
and the steps those call through `parts`. Each listed step names `lines`,
|
|
21
|
+
the lines that bind it, and a step listed through `parts` names
|
|
22
|
+
`part_of`, the listed steps that call it. A selected line that binds no
|
|
23
|
+
single step is an `undefined-step` or `ambiguous-step` finding, which
|
|
24
|
+
makes the exit code 1. An agent that changes one scenario reads only the
|
|
25
|
+
steps it uses.
|
|
26
|
+
- `nuka run` reports `repeated-scenario-prefix`: one note per opening that
|
|
27
|
+
two or more of its scenarios begin with, up to the first When, with the
|
|
28
|
+
same docstrings and tables. The note says how long that opening took
|
|
29
|
+
across them, its share of the run's summed scenario time, and where it
|
|
30
|
+
can go: a `"process"`-scope fixture when every shared step declares
|
|
31
|
+
`mutates false`, and otherwise the first shared step that may write,
|
|
32
|
+
with a Background for the rest. An opening under 2% of the run's
|
|
33
|
+
scenario time is noise and gets no note, and a note never changes the
|
|
34
|
+
exit code. It is in run.json's findings, in the summary, and in the text
|
|
35
|
+
at the end of the run. The same as the TypeScript engine.
|
|
36
|
+
- A program can start several services in one system. `services:` names
|
|
37
|
+
each one, with its own `build`, `prepare`, `serve` or `url`, `env`,
|
|
38
|
+
`lists`, and `root`, the directory its commands run in: a path under the
|
|
39
|
+
project, or one outside it, such as another repository's checkout beside
|
|
40
|
+
it. `external: true` names a service nukadoko only reaches at its `url`,
|
|
41
|
+
and `primary:` names the service the steps reach. Every port is chosen
|
|
42
|
+
before any service starts, so `{service.<name>.url}` and
|
|
43
|
+
`{service.<name>.port}` hand one service another's address, and the
|
|
44
|
+
`services` fixture gives a step each service by name
|
|
45
|
+
(`services[:billing].url`, with `port`, `root`, `dir`, and `env`); a
|
|
46
|
+
name the program does not write raises `Nukadoko::UnknownServiceError`,
|
|
47
|
+
a `KeyError` that names the ones it does. Every request a step sends to
|
|
48
|
+
a service that is not external carries the step's `traceparent`, so one
|
|
49
|
+
trace runs through every service the step reaches, and each service's
|
|
50
|
+
log is sliced into `program-log.<service>.txt` beside the step record.
|
|
51
|
+
An environment moves services to URLs under its own `services:`, so one
|
|
52
|
+
set of scenarios and steps runs against local services and against
|
|
53
|
+
deployed ones alike. A program that writes no `services` is one service
|
|
54
|
+
named `main`. The same as the TypeScript engine.
|
|
55
|
+
- Every service's execution events count, not the primary service's
|
|
56
|
+
alone. Each service that names `{events}` gets a file of its own, a
|
|
57
|
+
step's slice of it is `events.<service>.jsonl` beside the step record,
|
|
58
|
+
and `observed.events` holds one entry per service under `services`,
|
|
59
|
+
with `nil` for a service whose events nukadoko does not read. The
|
|
60
|
+
files are read together, since a request to one service can make
|
|
61
|
+
another write, and `whole` and `open` stay one answer for the step:
|
|
62
|
+
the trace is one, so a line a service wrote for a request another
|
|
63
|
+
passed on closes the work that one left open. A gap about one service
|
|
64
|
+
carries its `service`, and the new gap `service-unrecorded` says the
|
|
65
|
+
step sent a service a request and nukadoko reads none of its events,
|
|
66
|
+
so no line says where that service's work ended. A step's `path`
|
|
67
|
+
counts each service apart: its `entries` and `requests` carry
|
|
68
|
+
`service`, each service's tables list marks its own `db` lines, and
|
|
69
|
+
run.json's `flags` has one row per service, flag, and side. An events
|
|
70
|
+
key of a claim step takes `service:` to count one service's lines
|
|
71
|
+
alone, and leaves it out to count every service's; `nuka check`
|
|
72
|
+
reports `events-service-unknown`, an error, for a `service` no service
|
|
73
|
+
of a system the run would start has. Each line of a step's http.jsonl
|
|
74
|
+
names the `service` of the system that answered it, absent for a
|
|
75
|
+
request to no service's origin. The same as the TypeScript engine, and
|
|
76
|
+
a conformance scenario holds both to it.
|
|
77
|
+
- `nuka check`, `nuka run`, and `nuka do` report
|
|
78
|
+
`program-service-root-missing` for a service whose `root` is no
|
|
79
|
+
directory, before anything builds.
|
|
80
|
+
- Under `nuka run --base`, a service whose code is a checkout outside the
|
|
81
|
+
repository is the same directory for head's system and the base's, so
|
|
82
|
+
its `build` runs once a run, and each system starts it in a directory and
|
|
83
|
+
on a port of its own. run.json names the commit the checkout had and
|
|
84
|
+
whether it held an uncommitted change, and the run summary names each
|
|
85
|
+
checkout on a line of its own. A dirty checkout fails nothing.
|
|
86
|
+
- One set of scenarios and steps runs against services nukadoko starts and
|
|
87
|
+
against services that are only URLs, such as a shared staging
|
|
88
|
+
environment. `stepsReach`, on the program or on one environment, says how
|
|
89
|
+
far the code that runs with the scenarios may reach into it: `"any"`, the
|
|
90
|
+
default, leaves every helper as it is, and `"url"` says a service URL is
|
|
91
|
+
the only way in. In a system that declares `"url"`,
|
|
92
|
+
`Nukadoko.run_command` starts no process and raises
|
|
93
|
+
`Nukadoko::CommandRefused` wherever it is called, in a step, a project
|
|
94
|
+
fixture, a hook, or the system's own `setup`, naming the helper, where it
|
|
95
|
+
was called, the environment that declared the rule, and the request to
|
|
96
|
+
send instead. The step record keeps the command it would have started
|
|
97
|
+
with `refused: "steps-reach-url"` and no exit code, that execution's cell
|
|
98
|
+
is `broke` whatever the step came to, and the run reports
|
|
99
|
+
`command-refused` once per scenario and environment. `nuka check` reports
|
|
100
|
+
a step or project fixture whose body calls `Nukadoko.run_command` while a
|
|
101
|
+
system the run starts declares `"url"` as a `steps-reach-command` note,
|
|
102
|
+
which `nuka check --fail-on steps-reach-command` makes fail a job. The
|
|
103
|
+
same as the TypeScript engine, and a conformance scenario holds both
|
|
104
|
+
engines to it.
|
|
105
|
+
- A system's `setup` makes the system's own test tenant through the program's
|
|
106
|
+
test API, and every step reads what it returns as the `setup_result`
|
|
107
|
+
fixture (`setupResult` in a step that names it that way): one value per
|
|
108
|
+
system, the same in every scenario of it, inherited by a `--concurrency`
|
|
109
|
+
worker, and in run.json as `systems[].setup_result`, redacted like every
|
|
110
|
+
other recorded value. The system `setup` receives gains `services` and
|
|
111
|
+
`conditions`, so it reaches another service at its URL and switches the
|
|
112
|
+
environment's declared flags for the tenant it is making. A hash with
|
|
113
|
+
symbol keys is accepted, and `setup_result` reads it back with string
|
|
114
|
+
keys, as every value a project hands the engine. Reading `setup_result`
|
|
115
|
+
in a system whose program declares no `setup`, or whose `setup` returns
|
|
116
|
+
nothing, raises `Nukadoko::SetupResultMissing`, and `nuka check` reports
|
|
117
|
+
`setup-result-missing` before anything runs.
|
|
118
|
+
|
|
119
|
+
### Changed
|
|
120
|
+
|
|
121
|
+
- Breaking: one pass of a run against one program is a system, not a
|
|
122
|
+
world. The word was nukadoko's own for one pass of the scenarios against
|
|
123
|
+
one program, started for one environment and one tree, and cucumber-js
|
|
124
|
+
gives the same name to the per-scenario `this` object the compat door
|
|
125
|
+
carries: two different things under one word, and a program that starts
|
|
126
|
+
several services holds the system under test as started, not a bag of
|
|
127
|
+
scenario state. Nothing about how a run works changed. What a project
|
|
128
|
+
reads and writes does: write `{system}` in the program where it wrote
|
|
129
|
+
`{world}`, and read `systems` and `table.systems` in run.json, a cell's
|
|
130
|
+
and a scenario execution's `system`, a step record's `system_name`, and
|
|
131
|
+
a claim's `after_system_stop`. The run directory keeps
|
|
132
|
+
`systems/<environment>/`, and `nuka do` its record's `system/`; a
|
|
133
|
+
redacted record writes `{{secret.SYSTEM_TOKEN}}`; an unjudged events
|
|
134
|
+
claim's gap word is `system-unread`; and stderr opens those lines
|
|
135
|
+
`system <name>:`. A field that still writes `{world}` is refused by name
|
|
136
|
+
(`program-placeholder-renamed`, above), so nothing passes those
|
|
137
|
+
characters to the program in silence. cucumber-js's `World` keeps its
|
|
138
|
+
name wherever the compat door is what is being written about. The same
|
|
139
|
+
as the TypeScript engine.
|
|
140
|
+
- Breaking: what a system's `setup` returns has to be a JSON value, because
|
|
141
|
+
a `--concurrency` worker and run.json read it as JSON. A value that is
|
|
142
|
+
not, such as a `Time` or an object of a class of the project's own, fails
|
|
143
|
+
the system with `program-start-failed`, naming the path of the part that
|
|
144
|
+
cannot cross (`setup returned a value that is not JSON at
|
|
145
|
+
.customer.created`). A `setup` that only prepares data returns nothing,
|
|
146
|
+
as before: the gem no longer ignores what it returns.
|
|
147
|
+
- Breaking: the `env` fixture leaves out the variable whose value names the
|
|
148
|
+
system's execution events file, as the `services` fixture's `env` already
|
|
149
|
+
did and as the TypeScript engine's `env` does. Only the program may write
|
|
150
|
+
that file, so a step that spread `env` into a process it started handed
|
|
151
|
+
it the path. A step that read that variable from `env` reads
|
|
152
|
+
`observed.events` instead.
|
|
153
|
+
- Breaking: `exit_code` and `duration_ms` of a step record's
|
|
154
|
+
`observed.processes[]` entry are optional. The entry of a command a
|
|
155
|
+
system's `stepsReach: "url"` refused holds `refused: "steps-reach-url"`
|
|
156
|
+
and neither of them, because a measurement of a process that never ran
|
|
157
|
+
would be a lie.
|
|
158
|
+
- Breaking: run.json's system entry holds its services, the same as the
|
|
159
|
+
TypeScript engine's. `systems[]` keeps `name`, `tree`, `url`, and
|
|
160
|
+
`error`, gains `primary`, and keeps the `setup_ms` and `stop_ms`
|
|
161
|
+
timings; `commands`, `log`, `program_log`, `events`, `lists`, and the
|
|
162
|
+
other timings move to `systems[].services[]`, where a program of one
|
|
163
|
+
service has the one entry `main`. To upgrade, read
|
|
164
|
+
`systems[0].services[0].log` where you read `systems[0].log`. The system's
|
|
165
|
+
log moves from `systems/<environment>/program.log` to
|
|
166
|
+
`systems/<environment>/main/program.log`, its events copy to
|
|
167
|
+
`systems/<environment>/main/events.jsonl`, and `{dir}` names
|
|
168
|
+
`systems/<environment>/main/`; `nuka do` keeps the log at
|
|
169
|
+
`system/main/program.log`. A step's `observed.program_log` is
|
|
170
|
+
`{ trace_id, stamped, services: { main: { lines, file, stamped } } }`,
|
|
171
|
+
its slice is in `program-log.main.txt` rather than `program-log.txt`,
|
|
172
|
+
its late lines in `program-log-late.main.txt`, and run.json's
|
|
173
|
+
`program_log_late` is keyed by service. A system at a `url` records
|
|
174
|
+
`observed.program_log` with `services: { main: null }` where it was
|
|
175
|
+
`nil`. A CI step or a script that opens these files by path takes the
|
|
176
|
+
new path. A step may now attach evidence named `program-log.txt`, and a
|
|
177
|
+
name of the shape `program-log.<service>.txt` or
|
|
178
|
+
`program-log-late.<service>.txt` is refused instead.
|
|
179
|
+
- Breaking: a step record's execution events are keyed by service, the
|
|
180
|
+
same as the TypeScript engine's. `observed.events` is
|
|
181
|
+
`{ trace_id, stamped, services, process_spans, whole, open }`:
|
|
182
|
+
`lines`, `file`, `kinds`, `stamped`, `stamped_spans`, `unreadable`,
|
|
183
|
+
`unowned`, and `process_requests` move into `services[<name>]`, where
|
|
184
|
+
a program of one service has the one entry `main`. To upgrade, read
|
|
185
|
+
`observed.events.services.main.lines` where you read
|
|
186
|
+
`observed.events.lines`. A step's slice moves from `events.jsonl` to
|
|
187
|
+
`events.<service>.jsonl`, and its late lines to
|
|
188
|
+
`events-late.<service>.jsonl`; run.json's `events_late` is one entry
|
|
189
|
+
per service, each `{ lines, file, truncated? }`, where it was one
|
|
190
|
+
object. A CI step or a script that opens these files by path takes the
|
|
191
|
+
new path, and a step may now attach evidence named `events.jsonl`,
|
|
192
|
+
while a name of the shape `events.<service>.jsonl` or
|
|
193
|
+
`events-late.<service>.jsonl` is refused instead. A gap of `open`
|
|
194
|
+
that is about one service carries `service`, and its sentence names it
|
|
195
|
+
(`1 of the step's requests to service shop has no request line`). A
|
|
196
|
+
`flags` row carries `service`, and a `path` entry and request do too;
|
|
197
|
+
a key with no service is never the same key as one that has it.
|
|
198
|
+
- Breaking: an environment that writes `url` no longer takes the top
|
|
199
|
+
level's `build`, `prepare`, or `root`. They are for the code the top
|
|
200
|
+
level starts, and a `url` reaches code nukadoko does not start, so an
|
|
201
|
+
environment at a deployed server had to write `build: []` and
|
|
202
|
+
`prepare: []`. To upgrade, those two can go; an environment at a `url`
|
|
203
|
+
that counted on the top level's `prepare`, to seed the deployed server
|
|
204
|
+
for one, writes its own.
|
|
205
|
+
- The JSON Schema `nuka describe` and `nuka steps --json` print for a
|
|
206
|
+
`null: true` field is a type list, `"type": ["string", "null"]`, written
|
|
207
|
+
after the field's `default` and `description`, when the field has no
|
|
208
|
+
bounds; a bounded one keeps `anyOf`. This is what zod 4.6 writes, and the
|
|
209
|
+
TypeScript engine moved to zod 4.6.7, so both engines print the same
|
|
210
|
+
schema again.
|
|
211
|
+
- A refusal is written to stderr in text mode, and a finding's message,
|
|
212
|
+
fix, and do are each folded onto one line, as in the TypeScript engine.
|
|
213
|
+
- `nuka steps` and `nuka describe` report only the findings about the step
|
|
214
|
+
definitions, and `nuka do` without `--env` runs in the environment named
|
|
215
|
+
`default`, as in the TypeScript engine.
|
|
216
|
+
- **Breaking.** The program's `serve.command` no longer goes through a
|
|
217
|
+
shell: a String is split on whitespace, as in the TypeScript engine, and
|
|
218
|
+
an Array is the words as written. A command that used the shell (`&&`,
|
|
219
|
+
a pipe, a redirect, `VAR=value` in front) is now one program with odd
|
|
220
|
+
arguments. To move: write it as `["sh", "-c", "the same text"]`, or
|
|
221
|
+
move a variable into `env:`.
|
|
222
|
+
- **Breaking.** The program is checked before anything starts, and a key
|
|
223
|
+
it does not know is refused (`config-invalid`), with the known key it
|
|
224
|
+
matches when only its case differs: a misspelt `ready` used to leave the
|
|
225
|
+
system ready on any answer from `/`. To move: correct or remove the key
|
|
226
|
+
the message names.
|
|
227
|
+
- **Breaking.** A system is ready once `ready` answers 2xx, as in the
|
|
228
|
+
TypeScript engine; any answer counted before, a 404 or a 503 from a
|
|
229
|
+
server still starting included. `serve` takes `timeout_ms` (default
|
|
230
|
+
60000, was a fixed 30 s) and `port` (`"auto"`, the default, or a fixed
|
|
231
|
+
number nothing answers on yet). A program that exits first, or never
|
|
232
|
+
answers 2xx, now fails the run with `program-start-failed` and the end
|
|
233
|
+
of the system's `program.log`, and runs none of that system's scenarios;
|
|
234
|
+
it used to crash the run. To move: point `ready` at a path that answers
|
|
235
|
+
2xx once the program can take requests.
|
|
236
|
+
- The gem ships `docs/` beside `skills/` and `llms.txt`, as the npm
|
|
237
|
+
package does, so a finding that cites `docs/spec.md` and a skill that
|
|
238
|
+
links to a document open in the installed gem.
|
|
239
|
+
- The bundled skill shows step code on each engine's own pages:
|
|
240
|
+
`skills/nukadoko/references/ruby/` and `references/typescript/` hold the
|
|
241
|
+
same pages under the same headings (step files, claim steps, fixtures,
|
|
242
|
+
the program), an example that names a conformance case copied from it, and
|
|
243
|
+
SKILL.md tells an agent which folder to read from the config file it
|
|
244
|
+
finds. `references/ruby.md`, which translated TypeScript shapes into
|
|
245
|
+
Ruby, is gone, and the worked examples moved to
|
|
246
|
+
`references/typescript/examples/`.
|
|
247
|
+
|
|
248
|
+
### Fixed
|
|
249
|
+
|
|
250
|
+
- A `url` function that answers the base tree with the URL head reached
|
|
251
|
+
leaves that base system unavailable, and the message says to branch on
|
|
252
|
+
`tree`, so a row the base cannot prove reads as unproven rather than as
|
|
253
|
+
proven against head's own code. The base's pass used to start at head's
|
|
254
|
+
URL and judge head's program as the base's. A service of a checkout or
|
|
255
|
+
an external service is the same code for both trees, so only a service
|
|
256
|
+
of the tree is compared. The same as the TypeScript engine.
|
|
257
|
+
- `nuka do` names the lines of the program's log that carry its step's
|
|
258
|
+
trace id and arrived after the step ended: a `program-log-late` note per
|
|
259
|
+
service on stderr, with the file beside the record that holds them,
|
|
260
|
+
`program-log-late.<service>.txt`. `nuka do` stops its system right after
|
|
261
|
+
its one step, so a program that buffers its output writes every line
|
|
262
|
+
then, and the command used to leave those lines on disk with nothing
|
|
263
|
+
saying they were there. The same as the TypeScript engine.
|
|
264
|
+
- What the program prints is redacted in the system's `program.log` as it
|
|
265
|
+
is written: a value of a secret source and the system's `{token}` read
|
|
266
|
+
as `{{secret.NAME}}` there, and so in each step's `program-log.txt` and
|
|
267
|
+
`program-log-late.txt`. The program used to write the file itself, so
|
|
268
|
+
`api_key=...` in a request line it logged reached the run as it was.
|
|
269
|
+
nukadoko now reads the program's stdout and stderr and writes each line
|
|
270
|
+
redacted, as the TypeScript engine does. A trace id, and a `traceparent`
|
|
271
|
+
that holds one, stays as it is wherever the system's secrets redact, so
|
|
272
|
+
a step still finds its lines in the log when a secret happens to occur
|
|
273
|
+
inside an id.
|
|
274
|
+
- What a `setup` or a `url` function prints goes, redacted, to stderr (to
|
|
275
|
+
nothing under `nuka run --json`) and to the system's `program.log`. It
|
|
276
|
+
used to reach nukadoko's own stdout and stderr as it was, which also
|
|
277
|
+
broke the `--json` envelope on stdout. The same as the TypeScript engine.
|
|
278
|
+
- A system's URL is redacted in `run.json` and `summary.md`, so a url system
|
|
279
|
+
whose URL holds a secret's value names it as `{{secret.NAME}}`. A system
|
|
280
|
+
that fails to start redacts its `{token}` in the commands and the error
|
|
281
|
+
`run.json` keeps for it, and in the `program-start-failed` message under
|
|
282
|
+
`nuka run` and `nuka do`. Both used to be written as they were. The same
|
|
283
|
+
as the TypeScript engine.
|
|
284
|
+
- A fixture that calls `use` a second time raises there, with a message
|
|
285
|
+
that names the fixture, and the run reports it as that fixture's
|
|
286
|
+
`fixture-teardown-failed` warning, as `docs/spec.md` says. The second
|
|
287
|
+
call used to suspend the fixture again, so the code after it never ran
|
|
288
|
+
and nothing said so. The same as the TypeScript engine.
|
|
289
|
+
- Under `--concurrency`, a `:process` fixture's teardown error is a
|
|
290
|
+
`fixture-teardown-failed` finding of the run, one per worker, as it is
|
|
291
|
+
in a serial run. A worker used to print it to stderr only, so the
|
|
292
|
+
`--json` envelope left it out.
|
|
293
|
+
- A failed step record's `error.at` leaves out every frame under an
|
|
294
|
+
installed gem directory (`Gem.path`, which holds the bundle wherever
|
|
295
|
+
`BUNDLE_PATH` puts it). Only a bundle under `vendor/.../bundle/` was
|
|
296
|
+
left out, so a project that installs its gems into `.bundle/` got gem
|
|
297
|
+
frames in place of its own.
|
|
298
|
+
- `nuka scaffold --command` takes an absolute path to a program that
|
|
299
|
+
exists, and the stub keeps it absolute. The check joined the path to
|
|
300
|
+
the project directory, so it refused the file as missing. The same as
|
|
301
|
+
the TypeScript engine.
|
|
302
|
+
- A step past its deadline (its `timeout`, or `stepTimeout`) stops a
|
|
303
|
+
program `Nukadoko.run_command` still runs for it, and the step ends at
|
|
304
|
+
the deadline. The engine waited for the program to exit, so a program
|
|
305
|
+
that hung held the step, and the run, past its deadline.
|
|
306
|
+
- `nuka scaffold --feature` writes one stub with captures for a line when
|
|
307
|
+
a line in another feature file reads as the same pattern, no step
|
|
308
|
+
binds it, it is a Then where this line is one (and not where it is
|
|
309
|
+
not), and it carries the same docstring or table (or none). The stub
|
|
310
|
+
binds both lines. That line counted as a line
|
|
311
|
+
the capture would also match, so the stub's pattern was the line as
|
|
312
|
+
written, and a Then line got no stub at all. The same as the
|
|
313
|
+
TypeScript engine.
|
|
314
|
+
- A `fits-text` claim whose reading breaks the text against two earlier
|
|
315
|
+
readings at once names the reading that was read first, so the pair a
|
|
316
|
+
reader is given is the first two readings that break the text. A pair
|
|
317
|
+
from later in the text stood where an earlier pair belonged, and the
|
|
318
|
+
explanation did not read from the top as the text does.
|
|
319
|
+
- A claim that reads a value an earlier step returned is left unjudged
|
|
320
|
+
when its answer turns on a key that step's `returns` dropped. A
|
|
321
|
+
`returns` object keeps the keys it declares, so a claim judged on the
|
|
322
|
+
parsed copy alone measured the schema rather than the behaviour; the
|
|
323
|
+
reason now names the step, the place, and the keys. `nuka check`
|
|
324
|
+
already refused such a claim, so this is what a run under
|
|
325
|
+
`--no-check`, and `nuka do --use`, report. The same as the TypeScript
|
|
326
|
+
engine.
|
|
327
|
+
- A claim's refusal text, a step record's expected value, and `nuka
|
|
328
|
+
steps` write a number as JavaScript writes one, so a literal `2.0` a
|
|
329
|
+
step states reads as `2`.
|
|
330
|
+
- A claim on each item of a list is left unjudged, once, when a
|
|
331
|
+
parameter type's transformer made the expected value of one of its
|
|
332
|
+
declarations, rather than reporting the same reason per item.
|
|
333
|
+
- A cell whose tree pass wrote no result says how that pass ended. A
|
|
334
|
+
signal leaves no exit code, so the reason read `ended with exit ` and
|
|
335
|
+
nothing after it; it now names the signal.
|
|
336
|
+
- A page's line in http.jsonl carries `duration_ms`, and the
|
|
337
|
+
`traceparent` it went out with and `traceparent_sent_to`, as in the
|
|
338
|
+
TypeScript engine.
|
|
339
|
+
- A page of a `page_as` context gets the step's trace context on its
|
|
340
|
+
requests to the system too. Only the step's `page` got it, so a request a
|
|
341
|
+
named context sent was never part of the step's trace.
|
|
342
|
+
- `nuka check` reports its findings in the TypeScript engine's order:
|
|
343
|
+
fixture findings first, then the feature files, and a scenario's
|
|
344
|
+
findings about the order of its lines right after its own lines.
|
|
345
|
+
- A `{x:bigdecimal}` capture is text, as the engine hands it to the step,
|
|
346
|
+
so an args field declared as a string no longer gets a
|
|
347
|
+
`capture-type-mismatch` finding.
|
|
348
|
+
- A program whose `serve` names no `ready` path is ready once `/` answers
|
|
349
|
+
2xx, as in the TypeScript engine. It crashed while it waited for the program.
|
|
350
|
+
- A claim's json view reads a text that holds one key twice as
|
|
351
|
+
JavaScript's `JSON.parse` does, keeping the last value, instead of
|
|
352
|
+
refusing it as no JSON.
|
|
353
|
+
- `nuka do` starts its system in `system/` beside the record, as the
|
|
354
|
+
TypeScript engine does, so its `program.log` and `{dir}` are there, not
|
|
355
|
+
in the record's own directory.
|
|
356
|
+
|
|
357
|
+
### Added
|
|
358
|
+
|
|
359
|
+
- The compat door: a cucumber-ruby suite comes in as it is. Every `.rb`
|
|
360
|
+
file under `features/` loads in cucumber-ruby's order, with `Given`,
|
|
361
|
+
`When`, `Then`, `Before`, `After`, `AfterStep`, `BeforeAll`, `AfterAll`,
|
|
362
|
+
`World`, and `ParameterType` at the top level. Each line a compat step
|
|
363
|
+
binds runs on the scenario's World with a step record of its own, named
|
|
364
|
+
`compat: <pattern>`, and its hooks are entries in the scenario record's
|
|
365
|
+
`hooks`, as in the TypeScript engine's door from cucumber-js. `nuka
|
|
366
|
+
check` warns of a compat step in Then position (`then-compat-step`) and
|
|
367
|
+
refuses a hook tag it does not read (`unsupported-hook-tag-expression`),
|
|
368
|
+
`nuka steps` and `nuka describe` list compat steps, and `nuka do` refuses
|
|
369
|
+
them (`compat-step-not-runnable`). A glue file that raises is
|
|
370
|
+
`step-file-import-failed`, and the others still load. The gem does not
|
|
371
|
+
measure the World's reads and writes. A project with no glue sees no
|
|
372
|
+
change, except that a typed step file that raises when it loads is now
|
|
373
|
+
that finding too.
|
|
374
|
+
|
|
375
|
+
- The program's `{events}` placeholder: a served system whose program
|
|
376
|
+
names it gets an empty file outside the run directory, made with mode
|
|
377
|
+
0600 in a directory of its own, and the program appends its execution
|
|
378
|
+
events there. Each step's lines, the ones whose `trace` holds the
|
|
379
|
+
step's trace id, are kept redacted in `events.jsonl` beside its record,
|
|
380
|
+
and its `observed.events` says what they add up to: the lines of each
|
|
381
|
+
kind, the lines that did not read, and whether the work the step sent
|
|
382
|
+
is whole (`whole`, `open`). Once the system stops, run.json's
|
|
383
|
+
`systems[].events` counts the whole file, the system's redacted copy goes
|
|
384
|
+
beside `program.log`, and a step's lines that arrived after its record
|
|
385
|
+
go to `events-late.jsonl` beside it, named by the step's `events_late`
|
|
386
|
+
(by the record itself, and the `events-late` note, under `nuka do`).
|
|
387
|
+
`{events}` in a system at a `url`, or in a system with neither `serve` nor
|
|
388
|
+
`url`, is `program-placeholder-unfilled`, and every
|
|
389
|
+
`program-placeholder-unfilled` finding now names the edit for its own
|
|
390
|
+
field, as the TypeScript engine's does.
|
|
391
|
+
- A claim on a count of an earlier step's execution events:
|
|
392
|
+
`events writes: { of: PlaceScore, count: { kind: "db", op: %w[insert
|
|
393
|
+
update delete other], committed: true } }` names the lines to count,
|
|
394
|
+
a value of which can come from the sentence (`{ sentence: "table" }`),
|
|
395
|
+
and a claim reads the key as its actual. Before it judges its claims,
|
|
396
|
+
the step reads that step's trace from where its slice began, waiting up
|
|
397
|
+
to its `timeout` (10 seconds, or `stepTimeout` when shorter) while the
|
|
398
|
+
events may still become whole, and writes the lines it counted to
|
|
399
|
+
`events-read.jsonl`. The count is a range: a claim holds or breaks only
|
|
400
|
+
when every count in it does, and is `unjudged` otherwise, naming the
|
|
401
|
+
first gap. The record keeps each reading in `events_read`, and the claim
|
|
402
|
+
record carries `actual` or `actual_range`, `counted`, `left_out`, and
|
|
403
|
+
`measured` on `events_read.<key>`. `nuka do --use` reads a recorded step's
|
|
404
|
+
events, and `nuka do` waits for its own step's events before it stops
|
|
405
|
+
its system. `nuka check` reports a selection the format cannot judge, a
|
|
406
|
+
claim that reads inside a count, `events-producer-missing`,
|
|
407
|
+
`events-producer-ambiguous`, `events-inlet-missing`, and
|
|
408
|
+
`events-unread`, and `nuka steps` and `nuka describe` list each key.
|
|
409
|
+
The same as the TypeScript engine.
|
|
410
|
+
- A claim step reads the files an earlier step's commands changed:
|
|
411
|
+
`files written: { of: RunBuild, change: "added", under: "src" }` names
|
|
412
|
+
the paths each `Nukadoko.run_command` of that step added, changed, or
|
|
413
|
+
removed, as its record lists them, and a claim reads the key as its
|
|
414
|
+
actual, compared whole or counted. The claim record names the list as
|
|
415
|
+
`files:<step>@<line>` and its `measured` channel in the producer's
|
|
416
|
+
record. `nuka check` reports `files-producer-missing` and
|
|
417
|
+
`files-producer-ambiguous` for a line whose key no single earlier line
|
|
418
|
+
can supply, `nuka do --use` names the record to read, `nuka steps`
|
|
419
|
+
lists each key, and a key that no list could fill is
|
|
420
|
+
`step-file-import-failed`.
|
|
421
|
+
- `nuka steps` writes each claim as the TypeScript engine does (`count of`
|
|
422
|
+
a counted claim, `each of` a claim on each item), wraps a long line at
|
|
423
|
+
80 columns, and marks a step that opens a browser.
|
|
424
|
+
- A step declares states: `requires` the states a line needs held,
|
|
425
|
+
`gives` the states it leaves held, and `ends` the states it leaves not
|
|
426
|
+
held, each a name or a name and the args key that tells holders apart
|
|
427
|
+
(`requires ["signed-in", :person]`). `nuka check` walks each scenario
|
|
428
|
+
and reports `state-missing` at a line that can only run without its
|
|
429
|
+
state, with the line to add, and `state-shape-mismatch` for a state
|
|
430
|
+
written with a key in one step and bare in another; `nuka run` refuses
|
|
431
|
+
such a scenario before any step runs, `--no-check` included. An entry
|
|
432
|
+
that is no state, and `gives` or `ends` on a claim step, are
|
|
433
|
+
`step-file-import-failed`. `nuka steps` lists each step's states, a
|
|
434
|
+
required one with the steps that give it.
|
|
435
|
+
- The program reads `build`, `prepare`, `url`, and `setup`, and an
|
|
436
|
+
environment's `policy` and `version`, as the TypeScript engine does. A
|
|
437
|
+
system runs `build` once per tree, then `prepare`, then `serve` or `url`,
|
|
438
|
+
then `setup`, each under its `timeout_ms`, and run.json names each
|
|
439
|
+
command and phase time. A `url` system is not started and its log is not
|
|
440
|
+
read. `policy: "read-only"` fails a step that declares it mutates, and
|
|
441
|
+
`nuka do` refuses one with `read-only-environment`. `version` goes into
|
|
442
|
+
run.json and every record as `target_version`, and a version that fails
|
|
443
|
+
is the warning `version-probe-failed`. The placeholders `{root}`,
|
|
444
|
+
`{system}`, `{url}`, and `{token}` are filled, and one a system has no
|
|
445
|
+
value for is `program-placeholder-unfilled` in `nuka check`.
|
|
446
|
+
- A step can name more than one wording: `patterns "another wording"`
|
|
447
|
+
adds wordings after `pattern`, and `nuka check` reports
|
|
448
|
+
`alias-key-mismatch` when they capture different keys. `nuka steps`
|
|
449
|
+
lists every wording.
|
|
450
|
+
- `timeout <ms>` on a step, and `stepTimeout:` in the config (default
|
|
451
|
+
twenty minutes), bound a step's `run` or `observe`. A step past its
|
|
452
|
+
deadline fails with `error.kind` `timeout` and a message naming which
|
|
453
|
+
of the two fired; `nuka steps` shows a step's own timeout.
|
|
454
|
+
- `nuka check --fail-on <code>` makes a finding of that code fail the
|
|
455
|
+
check, a note included, and the envelope lists each hit under
|
|
456
|
+
`fail_on_hits`. A code the check never reports, and a note under
|
|
457
|
+
targets, are refused, as in the TypeScript engine. `nuka check --codes`
|
|
458
|
+
lists every code with its meaning without reading the project.
|
|
459
|
+
`lib/nukadoko/codes.json` now records which registry each code comes
|
|
460
|
+
from, and `bin/sync-codes` reads it from
|
|
461
|
+
`typescript/scripts/ruby-codes.ts`.
|
|
462
|
+
- `nuka <command> --help` prints that command's usage, what it is for, and
|
|
463
|
+
the flags it reads, and exits 0. A refusal of an unknown flag already
|
|
464
|
+
pointed at it, and until now it did not exist. `docs/engines.json` lists
|
|
465
|
+
each engine's commands and flags, and a conformance case holds that list
|
|
466
|
+
to this help.
|
|
467
|
+
- The gem declares itself a [Rails Hyperdrive](https://github.com/rails-hyperdrive/rails-hyperdrive) companion in its metadata (`hyperdrive_targets: "*"`, `hyperdrive_artifacts: skill`). In a Rails app that bundles it, `bin/rails hyperdrive:init` installs the two skills the gem ships to `.claude/skills/nukadoko/` and `.claude/skills/nukadoko-verification/`.
|
|
468
|
+
- Each step's record holds its `path`: the requests and the counted kinds of
|
|
469
|
+
its execution events, with the gates of each flag line, as in the
|
|
470
|
+
TypeScript engine.
|
|
471
|
+
- When the system stops, a claim on a count of execution events is counted
|
|
472
|
+
again over every line that arrived. A claim judged otherwise then is
|
|
473
|
+
`after_system_stop` on the claim, turns the cell broke, and is a
|
|
474
|
+
`claim-judged-early` finding. run.json's `limits` and the summary now
|
|
475
|
+
list `after-record`, `unrecorded-log`, and `unrecorded-events`, as the
|
|
476
|
+
TypeScript engine does.
|
|
477
|
+
- run.json's `flags`: one row per flag and side the steps' execution
|
|
478
|
+
events evaluated, with the criteria that evaluated it, their cells there,
|
|
479
|
+
and the gates their lines named, and the summary's Flags section.
|
|
480
|
+
- An `undeclared-write` note: a step that declares `mutates false` and
|
|
481
|
+
whose trace holds a write the program committed to a table that holds
|
|
482
|
+
state.
|
|
483
|
+
- The program's `lists`: one command per kind of place (`routes`, `flags`,
|
|
484
|
+
`tables`), each printing one JSON object per line. A system nukadoko
|
|
485
|
+
serves reads them once the program answers. The tables list decides
|
|
486
|
+
which tables a count of writes leaves out, and run.json gains `routes`,
|
|
487
|
+
each system's `lists`, and a `program-list-unread` warning for a list
|
|
488
|
+
that was not read, as in the TypeScript engine.
|
|
489
|
+
- run.json's `paths` and the summary's Changed paths: for two
|
|
490
|
+
environments whose conditions differ in one, and under `--base` for the
|
|
491
|
+
base system and head, what each criterion's steps did differently on one
|
|
492
|
+
side, as their execution events report it, with a count a side's missing
|
|
493
|
+
lines could still reach listed as open. Under `--base`, where both
|
|
494
|
+
programs name `{events}`, the base system also runs each row whose head
|
|
495
|
+
cell is required and ran, for its path alone (`for_paths`), so an
|
|
496
|
+
unchanged criterion shows what the code change did to it; the base tree
|
|
497
|
+
is now made for this too when no criterion is new or changed. The same
|
|
498
|
+
as the TypeScript engine.
|
|
499
|
+
- A change's intent (docs/intent.md): under `--base`, an `INTENT.md` at
|
|
500
|
+
the repository's top that differs from the base's is read, each row is
|
|
501
|
+
judged against the base pairs of `paths`, and run.json gains `intent`,
|
|
502
|
+
the summary an Intent section, and each difference the row that
|
|
503
|
+
declares it. A difference nothing declares (`intent-unintended`), a row
|
|
504
|
+
that did not happen (`intent-not-happening`), and a file that cannot be
|
|
505
|
+
read (`intent-unread`) fail the run. A writer's own kind counts in a
|
|
506
|
+
path by the fields the rows read on it. The same as the TypeScript
|
|
507
|
+
engine.
|
|
508
|
+
- Failures underneath (docs/spec.md "Failures underneath"): a passed
|
|
509
|
+
scenario whose steps got a response from 500 to 599, whose program
|
|
510
|
+
reported an error with `handled: false`, or whose page threw an error
|
|
511
|
+
nothing caught, is broke in its cell unless an `@expects:` tag of the
|
|
512
|
+
scenario names the failure, with an `unexpected-failure` finding that
|
|
513
|
+
spells the tag. A tag that matched nothing that happened gets an
|
|
514
|
+
`expects-unseen` note. run.json's scenarios carry `expects`, rows
|
|
515
|
+
`expects`, and steps `underneath`. A step record gains `page_events`
|
|
516
|
+
(console errors, page errors, failed requests) and `http_omitted`, and
|
|
517
|
+
the page's requests in http.jsonl are its documents, fetches, and
|
|
518
|
+
XMLHttpRequests with their status. The same as the TypeScript engine.
|
|
519
|
+
|
|
520
|
+
- A fixture's `use` returns how its scope ended, `"passed"` or
|
|
521
|
+
`"failed"`, so a teardown can keep what a failure left. A teardown that
|
|
522
|
+
raises no longer stops the run: it is a `fixture-teardown-failed`
|
|
523
|
+
warning on stderr (in the envelope's findings under `--json`), the
|
|
524
|
+
scenario keeps its status, and the scenario's record keeps the error in
|
|
525
|
+
`teardown_errors`. The same as the TypeScript engine.
|
|
526
|
+
- `nuka check <targets>` checks only the files and directories named, and
|
|
527
|
+
refuses a `file:line` (`line-not-supported`) or a path that does not
|
|
528
|
+
exist (`target-not-found`). The same as the TypeScript engine.
|
|
529
|
+
- A system prints its progress on stderr as it starts: a line as each of
|
|
530
|
+
build, prepare, serve, and setup starts, and one with each phase's time
|
|
531
|
+
and the path of `program.log` once it is ready. The same as the
|
|
532
|
+
TypeScript engine.
|
|
533
|
+
|
|
534
|
+
- `Nukadoko.measure_mcp(transport)` (docs/spec.md "MCP calls") wraps an
|
|
535
|
+
MCP client's transport, such as the mcp gem's `MCP::Client::HTTP` or
|
|
536
|
+
`MCP::Client::Stdio`. Each request and notification a step sends
|
|
537
|
+
through it is a line of the step's `mcp.jsonl` (`evidence.mcp`,
|
|
538
|
+
counted by `observed.mcp`) and carries the step's trace context in
|
|
539
|
+
`params._meta.traceparent`; over HTTP to the system the request goes out
|
|
540
|
+
with the same value as its header, so the program's request line closes
|
|
541
|
+
the call, and a call that never reaches the system leaves the step's
|
|
542
|
+
events open with `mcp-unbounded`. `nuka check` notes
|
|
543
|
+
`mcp-transport-unmeasured` for `MCP::Client.new(transport:
|
|
544
|
+
MCP::Client::Stdio.new(...))`, whose transport nothing can wrap. The
|
|
545
|
+
same as the TypeScript engine's `measureMcp`.
|
|
546
|
+
|
|
547
|
+
## [0.6.0] - 2026-11-17
|
|
548
|
+
|
|
549
|
+
### Added
|
|
550
|
+
|
|
551
|
+
- `nuka verdict --trailer` prints one git trailer line,
|
|
552
|
+
`Nukadoko-Verdict: <passed|failed|stale|none|unknown> run <id> tree <id>`,
|
|
553
|
+
to stamp a commit, and exits 0 whatever it says. `--json` carries the
|
|
554
|
+
same line as `trailer`. The same as the TypeScript engine.
|
|
555
|
+
- Under `--base`, each judgment a read cites carries `in_base`, and a row
|
|
556
|
+
that stands on a judgment the change added says so in its `judgment`
|
|
557
|
+
limit. The same as the TypeScript engine.
|
|
8
558
|
|
|
9
559
|
## [0.5.0] - 2026-11-16
|
|
10
560
|
|