Lane Li: a refusal token names what was looked up #810

Manually merged
binjovi-bot merged 1 commit from lane-i-refusal-operand-20261117 into trunk 2026-11-17 03:58:58 +00:00
Owner

Lane Li: a refusal token names what was looked up

The Debug refusal trace line gains one operand from a closed comptime set
(rpg_trace.Operand, every member [a-z_]+): refusal <file>.<function> <site> <operand>.
The first three fields and the sNN numbers are unchanged, so the old three-field
regex still matches. A Release build compiles every call to nothing; no emit byte moves;
rpg_statements.zig is untouched (net growth 0).

Operand set per reader:

  • rpg_eval.catalogOperation s01: no_call, unnamed_procedure, not_in_catalog, not_operation_role (the last lookup that missed).
  • rpg_eval.runValues s01..s09: value_unit, ccsid, unicode, trim, frame, program, choice (the unit that read nothing, s01..s07), no_step_rule (s08), leftover (s09).
  • rpg_render_ctx.unhandledOperation s01..s05: control_flow, call, value_flow, type_inference, classification (the stage).
  • rpg_shape.compilerOrigin s01..s03: statement_marker, shape_marker, entry_procedure.
  • rpg_loops.recoverWith s06..s19, s23..s25: variable_operand, pointer_operand, control_operand, initial_operand, initial_constant, limit_operand, limit_constant, step_operand, step_constant, symbol_type, symbol_class, symbol_owner.

Negative results (written, not instrumented):

  • rpg_loops.recoverWith s01..s05, s20..s22, s26..s31 test a length, a range, a shape, an
    operation code or a label count. None has an enum-class name for what was looked up, so they keep the three-field token.
  • unhandledOperation and runValues s01..s07: the operand repeats the site (the site already
    fixes the stage or the unit). It is added for a uniform token and carries no new information.
  • symbol_class at s12, s16, s17, s23, s25 merges a class test with an owner test in one
    condition; the operand names the class and does not tell which half failed.

Tests: src/rpg_trace_operand_test.zig (new: the set is [a-z_]+ and unique, the line shape, the
silence when off, the sites of the five readers); the scanner of src/rpg_trace_test.zig accepts the operand forms.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"current","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":738,"new":738},"twins":{"groups":1022,"recovered":1015,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"unit":{"exit":0,"last":"ship-unit: src/rpg_trace_test.zig ok"},"full_check":{"exit":0,"seconds":1798}}
# Lane Li: a refusal token names what was looked up The Debug refusal trace line gains one operand from a closed comptime set (`rpg_trace.Operand`, every member `[a-z_]+`): `refusal <file>.<function> <site> <operand>`. The first three fields and the `sNN` numbers are unchanged, so the old three-field regex still matches. A Release build compiles every call to nothing; no emit byte moves; `rpg_statements.zig` is untouched (net growth 0). Operand set per reader: - `rpg_eval.catalogOperation` s01: `no_call`, `unnamed_procedure`, `not_in_catalog`, `not_operation_role` (the last lookup that missed). - `rpg_eval.runValues` s01..s09: `value_unit`, `ccsid`, `unicode`, `trim`, `frame`, `program`, `choice` (the unit that read nothing, s01..s07), `no_step_rule` (s08), `leftover` (s09). - `rpg_render_ctx.unhandledOperation` s01..s05: `control_flow`, `call`, `value_flow`, `type_inference`, `classification` (the stage). - `rpg_shape.compilerOrigin` s01..s03: `statement_marker`, `shape_marker`, `entry_procedure`. - `rpg_loops.recoverWith` s06..s19, s23..s25: `variable_operand`, `pointer_operand`, `control_operand`, `initial_operand`, `initial_constant`, `limit_operand`, `limit_constant`, `step_operand`, `step_constant`, `symbol_type`, `symbol_class`, `symbol_owner`. Negative results (written, not instrumented): - `rpg_loops.recoverWith` s01..s05, s20..s22, s26..s31 test a length, a range, a shape, an operation code or a label count. None has an enum-class name for what was looked up, so they keep the three-field token. - `unhandledOperation` and `runValues` s01..s07: the operand repeats the site (the site already fixes the stage or the unit). It is added for a uniform token and carries no new information. - `symbol_class` at s12, s16, s17, s23, s25 merges a class test with an owner test in one condition; the operand names the class and does not tell which half failed. Tests: `src/rpg_trace_operand_test.zig` (new: the set is `[a-z_]+` and unique, the line shape, the silence when off, the sites of the five readers); the scanner of `src/rpg_trace_test.zig` accepts the operand forms. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"current","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":738,"new":738},"twins":{"groups":1022,"recovered":1015,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"unit":{"exit":0,"last":"ship-unit: src/rpg_trace_test.zig ok"},"full_check":{"exit":0,"seconds":1798}} ```
rpg_trace: a refusal token carries one closed-set operand at five readers
All checks were successful
binjovi/ci Binjovi completed the frozen plan
fba2d22295
binjovi-bot manually merged commit fba2d22295 into trunk 2026-11-17 03:58:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!810
No description provided.