lint: drop the rule for a case written with its type (named in torb-lint.md, not built) #168

Closed
opened 2026-10-08 00:58:18 +00:00 by orion · 10 comments
Collaborator

Context

docs/tooling/torb-lint.md, section "What is not decided", names a rule it does not build: a case written with its type where the expected type already names it (DecisionNode.SwitchCase(path) for .SwitchCase(path)). Split from #9, which kept the closure rule.

Source

Owner decision q1 on this issue: the answer of 2026-10-29 is option drop ("Drop the rule"), which replaces the earlier wait-phase-1a of 2026-10-08. The option reads: "Phase 1a makes it moot; remove the named-not-built entry from docs and ROADMAP". ROADMAP.md does not name the rule (its torb lint line lists only built rules), so only docs/tooling/torb-lint.md changes.

Goal

The rule is no longer announced: the lint page stops naming a rule nobody will build.

Acceptance criteria

  • docs/tooling/torb-lint.md no longer lists "the rule named and not built" (the section "What is not decided" goes if nothing else is left in it)
  • No other page under docs/ or CONCEPT.md announces the rule (grep -rn "named and not built" docs CONCEPT.md finds nothing); the copy under skills/torbscript/ follows when tools/land.sh regenerates the skill
  • torb docs check (tier A) stays green

Dependencies

None. CLOSED-TRAITS phase 1a is not a dependency any more.

Seed

No: documentation only.

Size

One PR, one commit docs(lint): drop the rule that was named and not built.

## Context `docs/tooling/torb-lint.md`, section "What is not decided", names a rule it does not build: a case written with its type where the expected type already names it (`DecisionNode.SwitchCase(path)` for `.SwitchCase(path)`). Split from #9, which kept the closure rule. ## Source Owner decision q1 on this issue: the answer of 2026-10-29 is option `drop` ("Drop the rule"), which replaces the earlier `wait-phase-1a` of 2026-10-08. The option reads: "Phase 1a makes it moot; remove the named-not-built entry from docs and ROADMAP". ROADMAP.md does not name the rule (its `torb lint` line lists only built rules), so only `docs/tooling/torb-lint.md` changes. ## Goal The rule is no longer announced: the lint page stops naming a rule nobody will build. ## Acceptance criteria - [ ] `docs/tooling/torb-lint.md` no longer lists "the rule named and not built" (the section "What is not decided" goes if nothing else is left in it) - [ ] No other page under `docs/` or `CONCEPT.md` announces the rule (`grep -rn "named and not built" docs CONCEPT.md` finds nothing); the copy under `skills/torbscript/` follows when `tools/land.sh` regenerates the skill - [ ] `torb docs check` (tier A) stays green ## Dependencies None. CLOSED-TRAITS phase 1a is not a dependency any more. ## Seed No: documentation only. ## Size One PR, one commit `docs(lint): drop the rule that was named and not built`.
Author
Collaborator

[loop:torbscript] owner decision: which spelling should the rule "a case written with its type where the expected type names it" move code to, and when?

Facts: today .Case is the short form (cases-and-match rule 2; CONTRIBUTING: "Prefer the short form where the expected type says which type is meant"). The accepted record CLOSED-TRAITS section 6 removes .Case in favour of the bare Case in phase 1a, which is not built yet and needs a seed refresh. About 1000 candidate sites in std and compiler/src.

Options:

  1. Build the rule now, target .Case, sweep now. Phase 1a later rewrites the same sites again (.Case to bare); two big mechanical diffs.
  2. Wait for phase 1a, then build the rule with the bare target; one sweep. This issue stays open and blocked on phase 1a.
  3. Drop the rule: phase 1a's migration makes it moot (the dot form is gone, Type.Case stays the spelling where no type is known); remove the "named, not built" entry from the docs and the ROADMAP.

Recommendation: 2 (or 3 if phase 1a is soon): no churn twice, and the target spelling is the one that stays.

[loop:torbscript] owner decision: which spelling should the rule "a case written with its type where the expected type names it" move code to, and when? Facts: today `.Case` is the short form (cases-and-match rule 2; CONTRIBUTING: "Prefer the short form where the expected type says which type is meant"). The accepted record CLOSED-TRAITS section 6 removes `.Case` in favour of the bare `Case` in phase 1a, which is not built yet and needs a seed refresh. About 1000 candidate sites in `std` and `compiler/src`. Options: 1. Build the rule now, target `.Case`, sweep now. Phase 1a later rewrites the same sites again (`.Case` to bare); two big mechanical diffs. 2. Wait for phase 1a, then build the rule with the bare target; one sweep. This issue stays open and blocked on phase 1a. 3. Drop the rule: phase 1a's migration makes it moot (the dot form is gone, `Type.Case` stays the spelling where no type is known); remove the "named, not built" entry from the docs and the ROADMAP. Recommendation: 2 (or 3 if phase 1a is soon): no churn twice, and the target spelling is the one that stays.
Author
Collaborator

Question q1 for torben (decision, blocking): Which spelling should the "case written with its type" lint rule move code to, and when?

v: 1
id: q1
to: torben
kind: decision
blocking: true
question: "Which spelling should the lint rule for a case written with its type move code to, and when? Details in the owner decision comment above."
options:
  - id: build-now
    label: Build now, target .Case
    detail: Sweep now; phase 1a rewrites the same sites again to bare Case (two large diffs)
  - id: wait-phase-1a
    label: Wait for phase 1a
    detail: Build the rule with the bare Case target after phase 1a; one sweep, issue stays blocked
  - id: drop
    label: Drop the rule
    detail: Phase 1a makes it moot; remove the named-not-built entry from docs and ROADMAP
recommendation: wait-phase-1a
asked_by: orion
**Question q1** for torben (decision, blocking): Which spelling should the "case written with its type" lint rule move code to, and when? ```hos-question v: 1 id: q1 to: torben kind: decision blocking: true question: "Which spelling should the lint rule for a case written with its type move code to, and when? Details in the owner decision comment above." options: - id: build-now label: Build now, target .Case detail: Sweep now; phase 1a rewrites the same sites again to bare Case (two large diffs) - id: wait-phase-1a label: Wait for phase 1a detail: Build the rule with the bare Case target after phase 1a; one sweep, issue stays blocked - id: drop label: Drop the rule detail: Phase 1a makes it moot; remove the named-not-built entry from docs and ROADMAP recommendation: wait-phase-1a asked_by: orion ```
Author
Collaborator

[loop:torbscript] refine: owner decision filed (q1), next: waiting (owner decision q1)

[loop:torbscript] refine: owner decision filed (q1), next: waiting (owner decision q1)
Author
Collaborator

[loop:torbscript] owner decision recorded (torben via WhatsApp, 2026-10-08 16:35 Europe/Berlin): "Okay, empfehulung akzeptiert" (option wait-phase-1a).

Resolution: the rule is built after phase 1a with the bare Case target, one sweep. The issue stays blocked on phase 1a (not ready); next: waiting (phase 1a), no owner question left.

[loop:torbscript] owner decision recorded (torben via WhatsApp, 2026-10-08 16:35 Europe/Berlin): "Okay, empfehulung akzeptiert" (option `wait-phase-1a`). Resolution: the rule is built after phase 1a with the bare `Case` target, one sweep. The issue stays blocked on phase 1a (not `ready`); next: waiting (phase 1a), no owner question left.
Owner

[owner-answer] q=q1 option=drop „Drop the rule“ 2026-10-29T22:52:43Z

[owner-answer] q=q1 option=drop „Drop the rule“ 2026-10-29T22:52:43Z
orion changed title from lint: a case written with its type where the expected type names it to lint: drop the rule for a case written with its type (named in torb-lint.md, not built) 2026-11-07 22:36:45 +00:00
Author
Collaborator

[loop:torbscript] re-sweep: the newest owner answer on q1 (2026-10-29, option drop) replaces the earlier wait-phase-1a (2026-10-08); the issue no longer waits on CLOSED-TRAITS phase 1a. Body and title rewritten to that decision: the remaining work is removing the announcement from docs/tooling/torb-lint.md (ROADMAP.md does not name the rule). Goal, criteria, seed statement and size are written; refine confirms and sets ready.

[loop:torbscript] re-sweep: the newest owner answer on q1 (2026-10-29, option `drop`) replaces the earlier `wait-phase-1a` (2026-10-08); the issue no longer waits on CLOSED-TRAITS phase 1a. Body and title rewritten to that decision: the remaining work is removing the announcement from `docs/tooling/torb-lint.md` (ROADMAP.md does not name the rule). Goal, criteria, seed statement and size are written; refine confirms and sets `ready`.
Author
Collaborator

[loop:torbscript] refine: the owner decision is recorded (q1, option drop) and the body states goal, testable acceptance criteria, source, no dependencies, no seed impact and size (one PR, one commit). Decided by the loop: ready, documentation only. Model sonnet/medium.

next: implement #168

[loop:torbscript] refine: the owner decision is recorded (q1, option drop) and the body states goal, testable acceptance criteria, source, no dependencies, no seed impact and size (one PR, one commit). Decided by the loop: ready, documentation only. Model sonnet/medium. next: implement #168
Author
Collaborator

[loop:torbscript] claim implement by torbscript-168-impl until 2026-11-15T09:30:00Z

[loop:torbscript] claim implement by torbscript-168-impl until 2026-11-15T09:30:00Z
Author
Collaborator

[loop:torbscript] release implement by torbscript-168-impl: PR #813 open, CI pending (queued, not started after ~5 min). next: review (merge gate)

[loop:torbscript] release implement by torbscript-168-impl: PR #813 open, CI pending (queued, not started after ~5 min). next: review (merge gate)
argus closed this issue 2026-11-15 05:36:15 +00:00
Author
Collaborator

Merged as 61573e86 (PR #813, argus). Post-merge state at 05:36 UTC: CI on main still pending (ci gates, pdisc, site:edge). Next step, not done in this run: the merged docs change is in no release yet (v0.1.0-rc.1 was published 04:04 UTC, before the merge). Cut the next release once main CI is green (tag per docs/design/RELEASE.md), then verify the published images. Issue stays closed: the rule is removed, its evidence is the PR.

Merged as 61573e86 (PR #813, argus). Post-merge state at 05:36 UTC: CI on main still pending (ci gates, pdisc, site:edge). Next step, not done in this run: the merged docs change is in no release yet (v0.1.0-rc.1 was published 04:04 UTC, before the merge). Cut the next release once main CI is green (tag per docs/design/RELEASE.md), then verify the published images. Issue stays closed: the rule is removed, its evidence is the PR.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
torbscript/language#168
No description provided.