Skip to content

remaining-groups-move-into-the-register - #905

Merged
VeryComplexAndLongName merged 2 commits into
mainfrom
remaining-groups-move-into-the-register
Oct 12, 2026
Merged

VeryComplexAndLongName merged 2 commits into
mainfrom
remaining-groups-move-into-the-register

Conversation

@VeryComplexAndLongName

Copy link
Copy Markdown
Owner

Move the eight remaining message groups — HRN, AGT, TSK, VAL, ARC, WSP, KEY and NET — into the message register, so every message the product says to a person is said by its OSW-<GROUP>-<NNN> identifier from the one register in core.

What changes

  • packages/core/src/message-register.ts gains entries for all eight groups (~200 new identifiers); say/withMessageCode remain the single surface.
  • Every carrier that says a sentence now carries its code: reason: fields, refused(...), the describe* formatters, and the refusal error classes (InvalidHarnessConfigError, ForgeRefusal, EnrolmentRefusedError, JoinRefusedError, the server's Refused, the CLI's ReportRefusal).
  • The said-in-place ratchet in message-register.test.ts is widened from four carriers to every carrier, and re-baselined down to 330 (the documented residual of messages not yet in the register).
  • docs/messages.md regenerated; openspec/specs/messages/spec.md updated.
  • Adapters (cli, extension, server) surface the identifier instead of their openspec-ui-cli: / OpenSpec Workbench: prefixes where a core refusal has a code.

Checks

  • npm run typecheck clean; npm run lint 0 errors.
  • core 2298 passed, cli 285, extension 538, server 135, webui 768 (three flaky timing/git-lock failures pass in isolation).
  • openspec validate remaining-groups-move-into-the-register --strict valid.
  • No dead register identifiers remain (every registered code is said by some source site).

HRN, AGT, TSK, VAL, ARC, WSP, KEY and NET now say every message by its
OSW identifier from the one register in core. The said-in-place ratchet is
widened from four carriers to every carrier, and docs/messages.md is
regenerated. One change is one pull request.
@VeryComplexAndLongName
VeryComplexAndLongName merged commit 0c01678 into main Oct 12, 2026
10 checks passed
@VeryComplexAndLongName
VeryComplexAndLongName deleted the remaining-groups-move-into-the-register branch October 12, 2026 12:53
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