Skip to content

Fix stale 30-point references in contract_rubric.py docstring + comments#47

Merged
dilawarabbas1 merged 2 commits into
mainfrom
claude/push-code-dotagent-SloI4
May 20, 2026
Merged

Fix stale 30-point references in contract_rubric.py docstring + comments#47
dilawarabbas1 merged 2 commits into
mainfrom
claude/push-code-dotagent-SloI4

Conversation

@dilawarabbas1

Copy link
Copy Markdown
Owner

Summary

Tiny docstring-only fix surfaced while triaging a user report of "6 failing tests against 30/33 scoring." All six tests already pass on main (root causes fixed in PR #15 and PR #45 — the user was on a stale checkout). But while verifying, I found three places in contract_rubric.py where the comments + docstring still claimed the old 30-point scale, even though the actual constant TOTAL_MAX = 33 has been correct for weeks.

Changes

  1. Module docstring: "10-signal rubric (0-3 each, 30 total)" → "11-signal rubric (0-3 each, 33 total)". "refuse convergence below 27/30" → "below 30/33".
  2. BAND_READY / BAND_POLISH / BAND_REWORK / BAND_NOT_READY inline comments updated to match the actual band ranges enforced by band_for():
    • BAND_READY = "ready" # 30-33
    • BAND_POLISH = "polish" # 24-29
    • BAND_REWORK = "rework" # 18-23
    • BAND_NOT_READY = "not_ready" # 0-17

Test plan

  • No code change. TOTAL_MAX = 33 and the band_for() thresholds untouched.
  • Full suite: 733 passed, 2 skipped.

Version

No bump — docstring/comment-only.


Generated by Claude Code

claude added 2 commits May 20, 2026 21:37
Doc-only release. Brings the root-level docs in line with what shipped
in v0.4.7 through v0.5.0 (manifest as default, hand-maintained docs
convention, doc-coverage CLI, derived-files orchestrator) and removes
implemented planning artifacts.

### Updated

- **README.md** — full rewrite. v0.5.0 status, 733 tests. Adds: four-
  layer model, ownership rule, tier model (project-root / service-repo
  / single-repo), table of what dotagent generates, table of what it
  never writes (hand-maintained convention), doc-coverage CLI section,
  derived files (service-registry / HISTORY / dashboard), v3 manifest
  architecture diagram, refreshed comparison table, troubleshooting.
  Old text emphasizing CCO migration + Auto-Dream details kept but
  scaled back.

- **CHANGELOG.md** — backfilled entries for 0.4.7 → 0.5.0 (was stuck
  at 0.4.6). Plus this PR's 0.5.1 entry.

- **USING_WITH_CLAUDE_CODE.md** — trimmed to a focused practical guide.
  Updated to v3-default + auto-regen-on-docs-change + doc-coverage
  prompt for Claude. Drops the "what's not yet built" section that
  listed long-shipped items.

- **CODA_PROMPT.md** — added Section 8.5 (~140 lines) covering every
  v0.5 change for the Coda orchestrator team:
  · render default flipped + adapter body identical across tools
  · four invariant layers in every manifest
  · hand-maintained docs convention (FM-### + ops/* + sharded
    registries)
  · `dotagent doc-coverage` CLI with severity model
  · derived-files orchestrator (service-registry / HISTORY / dashboard)
  · service-repo as child of project-root (../-INHERITED pointers)
  · auto-regeneration on docs change
  · manifest preview CLI
  · quick v0.5 cheat sheet

### Removed

- **CLAUDE_MD_V2_PLAN.md** (494 lines) — v2/v3 design plan; manifest
  shipped and stable since 0.5.0.
- **IMPLEMENTATION_PLAN.md** (856 lines) — v0.4 layered architecture
  plan; all 14 PRs shipped.
- **CODE_AUDIT_PLAN.md** (706 lines) — future-feature plan that's not
  yet started; spec lives in git history if revived.
- **PROJECT_CONTEXT.md** (259 lines) — last updated for v0.3.0;
  superseded by README + docs/.

Total removed: 2315 lines of pre-implementation planning docs.

### Internal

Two stale code-comment references to the removed plan docs updated:
- `src/dotagent/render/__init__.py` — points at `docs/CLAUDE_MD_DESIGN.md`
- `src/dotagent/migration/detector.py` — inlined the description

### Untouched

- CONTRIBUTING.md (current, well-written)
- CODE_OF_CONDUCT.md (standard)
- LICENSE
- examples/

Full suite: 733 passed, 2 skipped.

Version: 0.5.0 → 0.5.1.
Module-level docstring still said "10-signal rubric (0-3 each, 30 total)"
and "refuse convergence below 27/30". The actual constant `TOTAL_MAX = 33`
has been correct since PR #15 added S11 (business traceability); only the
prose was stale.

Three comment lines next to BAND_* constants likewise listed pre-S11
ranges (27-30 / 22-26 / 16-21 / 0-15). Updated to match the band_for()
implementation (>=30 / >=24 / >=18 / else).

No code change. No test change (all 733 still pass).
@dilawarabbas1 dilawarabbas1 merged commit 2dfa9e5 into main May 20, 2026
0 of 3 checks passed
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.

2 participants