lint: drop the rule for a case written with its type (named in torb-lint.md, not built) #168
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#168
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 earlierwait-phase-1aof 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 (itstorb lintline lists only built rules), so onlydocs/tooling/torb-lint.mdchanges.Goal
The rule is no longer announced: the lint page stops naming a rule nobody will build.
Acceptance criteria
docs/tooling/torb-lint.mdno longer lists "the rule named and not built" (the section "What is not decided" goes if nothing else is left in it)docs/orCONCEPT.mdannounces the rule (grep -rn "named and not built" docs CONCEPT.mdfinds nothing); the copy underskills/torbscript/follows whentools/land.shregenerates the skilltorb docs check(tier A) stays greenDependencies
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.[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
.Caseis 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.Casein favour of the bareCasein phase 1a, which is not built yet and needs a seed refresh. About 1000 candidate sites instdandcompiler/src.Options:
.Case, sweep now. Phase 1a later rewrites the same sites again (.Caseto bare); two big mechanical diffs.Type.Casestays 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.
Question q1 for torben (decision, blocking): Which spelling should the "case written with its type" lint rule move code to, and when?
[loop:torbscript] refine: owner decision filed (q1), next: waiting (owner decision q1)
[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
Casetarget, one sweep. The issue stays blocked on phase 1a (notready); next: waiting (phase 1a), no owner question left.[owner-answer] q=q1 option=drop „Drop the rule“ 2026-10-29T22:52:43Z
lint: a case written with its type where the expected type names itto lint: drop the rule for a case written with its type (named in torb-lint.md, not built)[loop:torbscript] re-sweep: the newest owner answer on q1 (2026-10-29, option
drop) replaces the earlierwait-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 fromdocs/tooling/torb-lint.md(ROADMAP.md does not name the rule). Goal, criteria, seed statement and size are written; refine confirms and setsready.[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] claim implement by torbscript-168-impl until 2026-11-15T09:30:00Z
[loop:torbscript] release implement by torbscript-168-impl: PR #813 open, CI pending (queued, not started after ~5 min). next: review (merge gate)
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.