8000 The passive pass is not reported at note severity, as story 138 requires by kiran-brahma · Pull Request #86 · kiran-brahma/writing-tool · GitHub
[go: up one dir, main page]

Skip to content

The passive pass is not reported at note severity, as story 138 requires - #86

Merged
kiran-brahma merged 1 commit into
v1.3from
v1.3-53
Sep 26, 2026
Merged

kiran-brahma merged 1 commit into
v1.3from
v1.3-53

Conversation

@kiran-brahma
Copy link
Copy Markdown
Owner

Closes #53.

What changed

  • src/core/finding.ts: adds an optional severity?: FindingSeverity ("note" only) to Finding. Its comment says it is for rule passes only.
  • src/core/rulePass.ts: RuleMatch can carry the severity, and findingsFromMatches copies it onto the Finding. Only the passive rule (passiveVoiceAuxiliaries) sets severity: "note". Orwell 4's passive, on the same span, does not.
  • src/core/reconcile.ts: severity comes from the Run, like inVoiceList does. A passive Finding stored before this change gets the severity on the next save, and a stale severity is dropped.
  • src/editor/FindingRow.tsx: a NoteLabel component, a quiet outlined "Note" chip (border-rule, text-muted-ink). A note row shows it before the issue, and its issue text is lighter (font-normal, text-quiet-ink).
  • src/editor/FindingCallout.tsx: the Callout uses the same label and the same lighter weight.

Checklist

  • The passive pass is reported at note severity (story 138; spec v1.1 §Passive voice). Verified: runRulePass tests cover the Starter passive pass and a Writer's own pass that carries passiveVoiceAuxiliaries.
  • The exception is still stated. Verified: the test checks that the diagnosis still carries the Williams exception.
  • Other rule passes carry no severity. Verified: a test runs every Starter pass, and a separate test covers Orwell's passive on the same span.
  • Severity is for rule passes only, and the model schema is unchanged. Verified: findingsSchema.ts and parseFindings.ts are untouched. A new critique test sends a model response containing severity: "note" through the send seam. The resulting Finding has no severity key, and neither the request's response_format nor FINDINGS_SCHEMA contains "severity". The parser reads only the schema's fields, so an unknown field never reaches a Finding.
  • Constitution harness. Verified: pnpm harness passes (24 tests).
  • The row and the queue treat a note differently. Verified in the app, with headless Chromium against pnpm dev, in the light and dark schemes: the row in the All view and the Callout both show the "Note" label and the lighter weight. Queue ordering and Band membership are unchanged, so ADR 0010's four properties hold.
  • No Dexie migration. Verified: the findings store is indexed on id, documentId, [documentId+passId] (src/storage/obelusDatabase.ts, version 8). The new field is optional and not indexed, and the version is unchanged. docs/migrations.md covers only schema and version changes.
  • Existing colour names only. Verified: the palette gate passes, and src/index.css is untouched.
  • No affordance inserts model-derived text, and no Highlight styling changed. Verified: the forbidden-affordance gate passes.
  • pnpm test (1096), pnpm typecheck, pnpm run gates and pnpm build all pass.

Note on vocabulary

CONTEXT.md lists "note" under Avoid as a synonym for Finding. Here it is used only as the spec's severity name ("note severity"), never for a Finding itself. If it needs a CONTEXT.md entry, that is for /domain-modeling.

🤖 Generated with Claude Code


Generated by Claude Code

Story 138 asks for the passive pass at note severity. A Finding now carries
an optional `severity: "note"`, set only by the `passive` rule. Orwell's
passive, on the same span, and every other rule pass leave it unset.
Reconciliation takes the severity from the Run, so a stored passive Finding
picks it up on the next save.

The findings schema and its parser are unchanged. The parser reads only the
schema's fields, and a test shows that a model returning `severity` gets no
severity on its Finding.

The Rail's row and the Callout give a note a quiet outlined "Note" label and
a lighter issue weight. They use existing colour names only. Queue order and
Band membership are unchanged.

No Dexie migration: the field is optional and unindexed, and the schema
version is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FjB3Gu8vhg5enkAneTdqga
@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Sep 26, 2026 •
Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-26T10:37:52.496755Z b67976c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

0