Skip to content

Code Health: raise all files to 9.5 #106

Open

Description

@woksin

Follow-up from the .NET 10/11 retargeting (#105). Raise the repository's Code Health to at least 9.5 for every file, and make it pass the whole-solution format check, without changing behavior.

Known gaps

  • dotnet format Screenplay.CritterStack.slnx --verify-no-changes exits with code 2. These are existing issues, not ones the retargeting introduced.
  • No per-file Code Health baseline has been taken yet. The only C# file the retargeting changed scores 10.

Acceptance criteria

  • A CodeScene baseline lists every file below 9.5, and each of those files is raised to at least 9.5.
  • dotnet format Screenplay.CritterStack.slnx --verify-no-changes passes.
  • Specs pass, and the Release build has zero warnings.
  • No behavior change.

Status

State: Paused — Paused for a change of focus. PRs #110 and #113 are merged. Still below 9.5: the WolverineFacts partials, WolverineProductionPlan, CanonicalRunner (8.45) and the canonical Expectations. Unblock condition: Code Health work is reprioritized for this repository. No technical dependency blocks it.
Branch: dotnet11 (#110, #113)
Scope: Lane D4: planning (design note + two-perspective review) while Generation #90 batches run; branch critterstack-106-code-health
Plan: Batches 5-8 per the accepted plan: characterization specs first on unmodified code, then behaviour-preserving extractions per file with re-score gain >= 0.3, plus C# 15 idioms inside owned files (agreed with the adoption lane). Per-batch Sol review, one whole-change review and whole-solution gate in an L0 slot, then a no-release PR.
Delivered: Nothing yet.
Remaining: To be confirmed.
Follow-ups: None.

Activity

  1. woksin commented on Nov 10, 2026

    @woksin
    CollaboratorAuthor

    Decision for this issue: a Code Health score alone is not a reason to refactor. Before implementing, write a short design note covering the current behavior, a measured baseline, at least two alternative approaches with sources, the chosen approach and what could break. Have that plan reviewed from two perspectives: behavior preservation plus a reviewer on the other model provider. Keep specs green on main and on the branch, and bisect any failure before calling it pre-existing. Never move ambient state (AsyncLocal, scopes, transactions, principal, tenant) into async helpers. Drop any refactor that does not measurably improve the code or that makes it harder to understand.

  2. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions