asciidoc-pubkit 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +153 -0
- data/README.md +65 -5
- data/data/review-rules.ja.yml +50 -0
- data/data/writing/ja/criteria.md +603 -1
- data/data/writing/ja/headings.md +33 -0
- data/docs/explanatory-guidance-research.md +174 -0
- data/docs/prose-evaluation.md +140 -2
- data/docs/rules-and-coverage.md +75 -0
- data/docs/writing.md +179 -0
- data/examples/skills/review-asciidoc-manuscript/SKILL.md +53 -0
- data/lib/asciidoc_pubkit.rb +1 -1
- metadata +2 -1
data/data/writing/ja/headings.md
CHANGED
|
@@ -25,6 +25,39 @@ section ID, use the exact permitted_id_anchor only when the saved session explic
|
|
|
25
25
|
authorizes it. Otherwise record the proposed title and ID concern for separate
|
|
26
26
|
authorized preservation. Protection does not justify an editorial keep decision.
|
|
27
27
|
|
|
28
|
+
## Distinguish comparison subjects from distinguishing actions
|
|
29
|
+
|
|
30
|
+
For headings containing `区別`, establish whether the section explains a
|
|
31
|
+
difference between subjects or an action that tells them apart or treats them
|
|
32
|
+
separately. Compare `違い` or `相違` for differences in properties, behavior,
|
|
33
|
+
purposes or evaluation targets. Both are noun phrases; nominal headings do not
|
|
34
|
+
require `相違`. Follow the book's preferred tone instead of imposing the more
|
|
35
|
+
formal word on every book.
|
|
36
|
+
|
|
37
|
+
When the section explains source correspondence, compare `関係`; when it explains
|
|
38
|
+
what observations establish, name the supported confirmation scope. Recheck the
|
|
39
|
+
comparison subjects themselves against the body. Replacing only the final word
|
|
40
|
+
can preserve an inaccurate comparison. Retain `区別` when distinguishing or
|
|
41
|
+
separate treatment is the actual action, including an established technical term.
|
|
42
|
+
These comparisons do not ban `区別` or authorize uniform replacements in prose.
|
|
43
|
+
|
|
44
|
+
| Source heading | Contextual comparison and supporting section content |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| 修正案の提示と編集実行の区別 | 修正案の提示と編集実行の違い: the user applies a suggested edit, while a program checks permission and applies a requested edit. |
|
|
47
|
+
| 構成検証と作業品質の区別 | 構成検証と作業品質評価の違い: compare configuration checks with evaluation of the resulting artifact, making the second evaluation target explicit. |
|
|
48
|
+
| 共有知識と元の履歴の区別 | 共有知識と元の履歴の関係: the section explains an edited excerpt and its reference to the original message. |
|
|
49
|
+
| 観測形式と実行証拠の区別 | 観測情報から確認できる範囲: the section explains missing spans and the limits of inferring execution, test success or saved history from observations. |
|
|
50
|
+
| 証拠の欠落と新規測定の区別 | 評価処理の検証と新規測定の違い: compare tests using modified records with new task executions that measure artifacts and resource use. |
|
|
51
|
+
| 型タグによる正常値とエラー値の区別 | Retain when the section explains using a type tag to tell value variants apart; changing it to 型タグによる正常値とエラー値の違い would promise a different topic. |
|
|
52
|
+
| 停止要求と処理終了の違い | Keep the comparison when the body says a stop request does not establish termination. 停止要求による処理終了の保証 adds an unsupported guarantee. |
|
|
53
|
+
|
|
54
|
+
Record the actual alternative and body evidence even when no candidate is emitted.
|
|
55
|
+
Leave body text, tables, figures and alternative text unchanged in a heading-only
|
|
56
|
+
session; report any separately needed synchronization. These advisory examples
|
|
57
|
+
add no detector or automatic replacement rule. Saved sessions retain their original
|
|
58
|
+
heading criteria. Mechanical verification does not evaluate these comparisons
|
|
59
|
+
or measure AI proofreading quality.
|
|
60
|
+
|
|
28
61
|
## Compare headings with the same role
|
|
29
62
|
|
|
30
63
|
Read the complete outline and compare parent, sibling and child headings.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Explanatory guidance and checking actors: research and proposal
|
|
2
|
+
|
|
3
|
+
Status: implemented for v1.2.2 on 2026-10-12. Release authorized separately after the source update.
|
|
4
|
+
The proposal below is retained as design evidence. Shared criteria, the judge
|
|
5
|
+
rubric, eight affected calibration examples (seven new, one narrowed), tests,
|
|
6
|
+
and bundled/publisher-local skill instructions were updated. Detector rules,
|
|
7
|
+
installed gem/skill versions, old sessions and manuscripts were not changed.
|
|
8
|
+
Validation results are recorded separately from the original proposal.
|
|
9
|
+
Research date: 2026-10-12. Pubkit baseline: `095b06d` (v1.2.1).
|
|
10
|
+
Publisher evidence: cybergarage-pub commit `909de49833`, limited Orbit review.
|
|
11
|
+
|
|
12
|
+
This proposal separates a book's description of its contents from a reader's
|
|
13
|
+
checking procedure and a program's runtime checks. The first implementation
|
|
14
|
+
should update shared criteria, calibration examples, and review-workflow
|
|
15
|
+
instructions without changing detector rules, automatic replacement behavior,
|
|
16
|
+
verification semantics, or installed skills.
|
|
17
|
+
|
|
18
|
+
## Evidence and limits
|
|
19
|
+
|
|
20
|
+
The Orbit pass reviewed 193 source lines containing `確認します` across its
|
|
21
|
+
active manuscripts. It revised 49 matching lines, retained 144 after individual
|
|
22
|
+
comparisons, and revised two neighboring lines containing `確認し` and
|
|
23
|
+
`理解します`. These are author-specific editorial decisions from one book,
|
|
24
|
+
not measured detector accuracy or proof that another book needs the same edits.
|
|
25
|
+
The target expressions span 129 selected prose paragraphs and 56 protected
|
|
26
|
+
table lines. Book guidance, user approval, runtime checks, and test procedures
|
|
27
|
+
must not receive one lexical replacement rule.
|
|
28
|
+
|
|
29
|
+
The owning sources inspected in pubkit are:
|
|
30
|
+
|
|
31
|
+
- `data/writing/ja/criteria.md`, "Review sentence endings by their role": it
|
|
32
|
+
already distinguishes scope announcements, operations, capabilities, checks,
|
|
33
|
+
and history, but recommends keeping useful scope/reading-order guidance for
|
|
34
|
+
introductory `確認します`. This does not explicitly assess a switch from the
|
|
35
|
+
book's explanatory voice to a reader's learning or checking activity.
|
|
36
|
+
- `test/fixtures/prose_evaluation.ja.json`, `ending-scope-guide-kept`: the source
|
|
37
|
+
and accepted unchanged revision are `本節では、接続設定、依頼の送信、終了確認の順に手順を確認します。`.
|
|
38
|
+
Its reason rewards concrete reading order without resolving who performs a
|
|
39
|
+
check. This example should be narrowed rather than teaching unconditional keep.
|
|
40
|
+
- `test/prose_benchmark_test.rb`: fixture integrity, required axes, and unchanged
|
|
41
|
+
keep pairs are checked. These tests do not measure an AI's editorial judgment.
|
|
42
|
+
- `benchmark/prose.rb` and `docs/prose-evaluation.md`: optional AI trials keep
|
|
43
|
+
detector scores separate from readability and preservation. The judge receives
|
|
44
|
+
editorial constraints without gold dispositions or reasons. Changed rubric or
|
|
45
|
+
calibration fingerprints require a fresh compatible evaluation baseline.
|
|
46
|
+
- `data/review-rules.ja.yml`: generic framing already includes `本章では`, but
|
|
47
|
+
a candidate is not a diagnosis of an ambiguous actor. Adding every occurrence
|
|
48
|
+
of `確認` would also flag legitimate operational checks.
|
|
49
|
+
|
|
50
|
+
The publisher's review workflow already requires neighboring context, faithful
|
|
51
|
+
alternatives, individual decisions, and separate scopes. Its missing operational
|
|
52
|
+
step is to record whether a targeted sentence is content guidance, an actual
|
|
53
|
+
procedure, runtime behavior, or a learning objective before choosing its verb.
|
|
54
|
+
|
|
55
|
+
## Proposed shared-criteria change
|
|
56
|
+
|
|
57
|
+
Keep the existing sentence-role section and revise its introductory-ending row.
|
|
58
|
+
Do not add a banned-word list. Suggested English instruction:
|
|
59
|
+
|
|
60
|
+
> Keep useful subject and reading-order guidance, but separately assess its actor
|
|
61
|
+
> and predicate. Distinguish the book explaining a subject from a reader checking
|
|
62
|
+
> evidence and a program validating state. When the author requests explanatory
|
|
63
|
+
> narration, prefer `説明します`, `示します`, or `比較します` for content guidance.
|
|
64
|
+
> A useful sequence alone does not justify retaining `確認します`. Preserve a
|
|
65
|
+
> genuine exercise, checking instruction, or runtime check with its supported
|
|
66
|
+
> actor, target, conditions, and timing.
|
|
67
|
+
|
|
68
|
+
Add a paragraph-level check for transitions among `説明します`, `確認します`,
|
|
69
|
+
`理解します`, and related inflections. A reader's learning objective is valid
|
|
70
|
+
when presented as an objective; it must not be treated as an operation performed
|
|
71
|
+
by the book. Read neighboring sentences and table column roles before adding
|
|
72
|
+
an actor. Do not repeat subjects where the context already identifies them.
|
|
73
|
+
|
|
74
|
+
For actual checks, compare equally faithful alternatives such as `照合します`,
|
|
75
|
+
`検査します`, `参照します`, or an explicit actor plus `確認します`. Use a more
|
|
76
|
+
specific operation only when the source establishes it. A configuration review
|
|
77
|
+
must not become automatic validation; a connection owner's shutdown check must
|
|
78
|
+
not become only a developer's test. Do not turn an unknown result into confirmed
|
|
79
|
+
completion or add a guarantee from naming a checking actor.
|
|
80
|
+
|
|
81
|
+
Treat `説明`/`解説` as contextual choices: content guidance can use `説明`, while
|
|
82
|
+
in-depth background or design discussion can use `解説`. Do not rename tool or
|
|
83
|
+
Skill description data, formal titles, quotations, or identifiers for variety.
|
|
84
|
+
The exact preference remains with the author and the book.
|
|
85
|
+
|
|
86
|
+
## Proposed calibration cases
|
|
87
|
+
|
|
88
|
+
Use original, compact fixtures instead of importing a manuscript or private
|
|
89
|
+
review session. Include full paragraph context and explicit editorial constraints
|
|
90
|
+
when the expected choice depends on the author's voice.
|
|
91
|
+
|
|
92
|
+
| Case | Source and proposed revision | Expected judgment and purpose |
|
|
93
|
+
| --- | --- | --- |
|
|
94
|
+
| Content guidance revised | `本章では、依頼の受付と結果の返却を確認します。` -> `本章では、依頼の受付と結果の返却を説明します。` | Accept under an explicit author preference for explanatory narration; preserve both subjects. |
|
|
95
|
+
| Ambiguous guidance retained | The same content-guidance source remains unchanged under that preference. | Reject the editorial decision; do not excuse it because its subjects are concrete. |
|
|
96
|
+
| Paragraph viewpoint repaired | A paragraph begins with `本章では…説明します` and ends with a reader's `役割を理解します` / `仕組みを確認します`; revise to presenting roles and explaining mechanisms. | Accept when the paragraph is entirely a content guide; retain all subjects and reading order. |
|
|
97
|
+
| Reader exercise retained | `この演習では、利用者が接続設定、依頼の送信、終了状態を順に確認します。` remains unchanged. | Accept: an explicit actor actually performs an exercise. Use this to narrow the current `ending-scope-guide-kept` example, retaining its historical identifier. |
|
|
98
|
+
| User check retained | `利用者は、変更するファイルと内容を確認してから編集を承認します。` remains unchanged. | Accept: preserve actor, target, order, and approval. |
|
|
99
|
+
| Runtime check made exposition | `実行側は、承認後にも対象の変更を検査します。` -> a sentence merely explaining changes to the reader. | Reject: runtime behavior was replaced with exposition. |
|
|
100
|
+
| Owner responsibility made test | `接続を生成した側は、終了後の資源の状態を確認します。` -> only a developer checks shutdown during a test. | Reject: the connection owner's runtime responsibility was lost. |
|
|
101
|
+
| Unsupported actor assignment | A check whose neighboring evidence cannot identify its performer is rewritten as an Agent's automatic check. | Needs-evidence: do not invent automatic execution or assign ownership. |
|
|
102
|
+
|
|
103
|
+
Keep the legitimate keep cases. The change should reduce ambiguous guidance
|
|
104
|
+
without rewarding mechanical replacement of every check. Adjust fixture counts,
|
|
105
|
+
required axes, judge rubric, and evaluation documentation together. Do not
|
|
106
|
+
compare the expanded calibration's scores directly with the old calibration.
|
|
107
|
+
|
|
108
|
+
## Proposed skill changes
|
|
109
|
+
|
|
110
|
+
Use pubkit as the single source of prose criteria. Add the following workflow
|
|
111
|
+
step to its bundled `examples/skills/review-asciidoc-manuscript/SKILL.md` and the
|
|
112
|
+
publisher's `review-japanese-technical-book/references/review-workflow.md`:
|
|
113
|
+
|
|
114
|
+
1. For a targeted ending, classify the sentence's role before judging its verb.
|
|
115
|
+
2. Read the complete paragraph and neighboring sentences; inspect table context
|
|
116
|
+
separately when it is outside the selected prose scope.
|
|
117
|
+
3. Record the supported actor, target, condition, actual alternative, comparison,
|
|
118
|
+
and disposition. Do not derive keep from the presence of a concrete subject
|
|
119
|
+
or a useful reading sequence.
|
|
120
|
+
4. Apply author preferences from the current project instructions. Leave factual
|
|
121
|
+
uncertainty unresolved instead of inventing an actor or mechanism.
|
|
122
|
+
|
|
123
|
+
The publisher's `japanese-technical-writing/SKILL.md` only needs a routing note
|
|
124
|
+
that paragraph viewpoint is assessed using the saved common criteria; do not
|
|
125
|
+
copy the new criteria there. Its OSS prose style profile can point to the same
|
|
126
|
+
criteria if needed. Book-specific AGENTS.md remains the owner of the exact
|
|
127
|
+
`説明`/`解説` preference. Do not impose Orbit's wording on sibling books.
|
|
128
|
+
|
|
129
|
+
Update the publisher-local skills as a separately scoped change. Do not use
|
|
130
|
+
`skill upgrade` to replace locally customized skills or modify old review
|
|
131
|
+
sessions during this work. Skill changes are not an installed gem release.
|
|
132
|
+
|
|
133
|
+
## Recommended implementation and validation order
|
|
134
|
+
|
|
135
|
+
1. Revise shared criteria and add/narrow calibration examples; align the judge
|
|
136
|
+
rubric and evaluation guide. Add focused regression assertions for prompt
|
|
137
|
+
delivery, contextual axes, and retained actual-check controls.
|
|
138
|
+
2. Update the bundled and publisher-local workflow instructions with the role
|
|
139
|
+
classification step, keeping prose criteria in pubkit.
|
|
140
|
+
3. Run `bundle exec rake test` with real MeCab/IPADIC, relevant skill tests,
|
|
141
|
+
reference checks, and `git diff --check`. Preserve old sessions and their
|
|
142
|
+
saved criteria. Tests prove plumbing and fixture integrity, not improved AI
|
|
143
|
+
proofreading.
|
|
144
|
+
4. If AI evaluation is explicitly requested, fix the expanded calibration and
|
|
145
|
+
rubric first. Compare old/new criteria using that same setup and identical
|
|
146
|
+
agent/model settings. Record per-case judgments; distinguish ambiguity repair,
|
|
147
|
+
preservation failures, and needless changes to valid checks. Keep logs and
|
|
148
|
+
treat a small fixture set as diagnostics rather than a general ranking.
|
|
149
|
+
5. Consider detector hints only after evaluating remaining missed cases and
|
|
150
|
+
review noise. A later hint must be advisory, cover supported inflections and
|
|
151
|
+
exclusions, preserve positions, and have MeCab/literal regression tests.
|
|
152
|
+
It must never authorize automatic replacements or semantic verification.
|
|
153
|
+
|
|
154
|
+
The original research proposal did not authorize a version bump, publication,
|
|
155
|
+
installed-skill upgrade, old-session mutation, new manuscript edits or external
|
|
156
|
+
model invocation. The author subsequently requested the implementation and
|
|
157
|
+
v1.2.2 release as separate steps. Old sessions and manuscript sources remain
|
|
158
|
+
outside the release work.
|
|
159
|
+
|
|
160
|
+
## Implementation validation (2026-10-12)
|
|
161
|
+
|
|
162
|
+
- The full suite passed with Homebrew Ruby 4.0.7 and real MeCab/IPADIC:
|
|
163
|
+
247 tests, 3,625 assertions, no failures, errors or skips.
|
|
164
|
+
- The bundled review skill and both affected publisher-local skill directories
|
|
165
|
+
passed skill-creator's structural validator. This validates skill structure,
|
|
166
|
+
not the quality of an agent's judgments.
|
|
167
|
+
- Fixture integrity, explicit author constraints and unchanged valid-check
|
|
168
|
+
controls are covered. Shared criteria reach writing and all review scopes;
|
|
169
|
+
saved sessions retain their original criteria.
|
|
170
|
+
- No external model evaluation was run. No measured AI proofreading improvement
|
|
171
|
+
or publication readiness is claimed.
|
|
172
|
+
- At the source-update checkpoint, the installed gem remained v1.2.1 and no
|
|
173
|
+
version bump, publication, commit or push had been performed. The subsequent
|
|
174
|
+
author-authorized release targets v1.2.2.
|
data/docs/prose-evaluation.md
CHANGED
|
@@ -1,18 +1,58 @@
|
|
|
1
1
|
# Prose evaluation
|
|
2
2
|
|
|
3
|
+
## Actor clarity comparisons (v1.2.3)
|
|
4
|
+
|
|
5
|
+
Twelve additional calibration pairs cover conditional actor changes, user refusal
|
|
6
|
+
versus program control, caller investigation, continued subjects, optional
|
|
7
|
+
repetition, table roles, unsupported actors/approvers, invented automatic checks,
|
|
8
|
+
and capability changed into behavior. The judge rubric checks each clause's actor
|
|
9
|
+
and evidence. Candidate-free paragraphs remain in review prompts. Mechanical
|
|
10
|
+
verification can accept a wrong actor while keeping `meaning_verified: false`;
|
|
11
|
+
these regression tests and calibration data do not measure AI review quality.
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
Use a fixed set of Japanese technical paragraphs to compare detector or review
|
|
4
15
|
criteria changes against a project-defined baseline. Keep detection performance,
|
|
5
16
|
readability, and meaning preservation separate so that a clearer rewrite cannot
|
|
6
17
|
hide a lost condition or invented fact.
|
|
7
18
|
|
|
8
19
|
This guide describes the development checkout, including the
|
|
9
|
-
`technical-prose-v3` corpus and
|
|
20
|
+
`technical-prose-v3` corpus and 155 revision calibration pairs. The sentence-ending
|
|
10
21
|
criteria and twelve additional pairs, plus the flow guidance and four further
|
|
11
22
|
pairs, are included in version 1.2.0.
|
|
12
23
|
The evaluation runner is not an
|
|
13
24
|
installed gem command. It does not measure Japanese naturalness or AI authorship
|
|
14
25
|
as a single validated score.
|
|
15
26
|
|
|
27
|
+
## Stopping comparisons (v1.2.3)
|
|
28
|
+
|
|
29
|
+
`test/fixtures/stop_wording.ja.json` contains manual source/revision pairs for
|
|
30
|
+
stopping, ending iteration, cancellation requests, pre-execution refusal,
|
|
31
|
+
unstarted work, disabled operations and supported temporary pauses. Rejection
|
|
32
|
+
cases cover lost conditions, capability strengthened into behavior, requests
|
|
33
|
+
misreported as completion, invented forceful termination or resumption, and
|
|
34
|
+
idiomatic `受け止める` misread as a stopping operation.
|
|
35
|
+
|
|
36
|
+
The fixture is separate from the runner's revision calibration corpus. Its
|
|
37
|
+
regression tests check fixture integrity and delivery of the criteria through
|
|
38
|
+
writing and saved review prompts; they do not run an AI judge, measure Japanese
|
|
39
|
+
quality, or establish semantic correctness. Detector rules are unchanged.
|
|
40
|
+
|
|
41
|
+
## Classification and related relationships (v1.2.3)
|
|
42
|
+
|
|
43
|
+
`test/fixtures/classification_wording.ja.json` contains fourteen manually labeled
|
|
44
|
+
source/revision pairs. Accepted examples identify classification axes, defined
|
|
45
|
+
categories, responsibilities, branching, partition boundaries, loading routes
|
|
46
|
+
and table correspondences. Rejection examples cover invented runtime classifiers,
|
|
47
|
+
weakened defined categories, classification substituted for branching, lost
|
|
48
|
+
conditions or joins, invented parallel execution and inspection success.
|
|
49
|
+
|
|
50
|
+
This fixture is separate from the runner's calibration corpus. The judge rubric
|
|
51
|
+
also distinguishes these relationships. Tests check fixture integrity, rubric
|
|
52
|
+
instructions, delivery through writing and all three review scopes, and historical
|
|
53
|
+
session preservation. They do not invoke an AI judge or measure editing accuracy.
|
|
54
|
+
No detector or automatic replacement rules are added.
|
|
55
|
+
|
|
16
56
|
## Three different evaluations
|
|
17
57
|
|
|
18
58
|
| Evaluation | Input and method | What the number means |
|
|
@@ -45,7 +85,7 @@ of Japanese writing.
|
|
|
45
85
|
| [prose_benchmark.ja.adoc](../test/fixtures/prose_benchmark.ja.adoc) | 26 paragraphs used as the actual AsciiDoc input |
|
|
46
86
|
| [prose_benchmark.ja.json](../test/fixtures/prose_benchmark.ja.json) | Matching paragraph IDs and text, 11 annotated detector targets, and preservation checklists |
|
|
47
87
|
| [prose_benchmark.yml](../test/fixtures/prose_benchmark.yml) | Fixed empty configuration that isolates the benchmark from discovered manuscript settings |
|
|
48
|
-
| [prose_evaluation.ja.json](../test/fixtures/prose_evaluation.ja.json) | Detection examples and
|
|
88
|
+
| [prose_evaluation.ja.json](../test/fixtures/prose_evaluation.ja.json) | Detection examples and 155 manual revision pairs with expected `accept`, `reject`, or `needs-evidence` dispositions |
|
|
49
89
|
|
|
50
90
|
The corpus includes framing such as `重要なのは`, metaphorical operations such
|
|
51
91
|
as `地味に効く`, inflected and negative forms, and repeated endings. Controls
|
|
@@ -119,6 +159,42 @@ its three existing kinds; its scores do not measure the new `流れ` cue. The
|
|
|
119
159
|
calibration fingerprint changes, so establish a fresh AI baseline before comparing
|
|
120
160
|
rewrite quality. Normal tests do not evaluate an AI's editorial judgments.
|
|
121
161
|
|
|
162
|
+
The version 1.2.2 explanatory-guidance update narrows the existing
|
|
163
|
+
`ending-scope-guide-kept` case to an actual user exercise and adds seven pairs
|
|
164
|
+
(77 total). They distinguish content guidance, an explicit author voice,
|
|
165
|
+
paragraph viewpoint, user approval, runtime checks, connection ownership and
|
|
166
|
+
unsupported automatic actors. The judge rubric and calibration fingerprints
|
|
167
|
+
change, while the 26-paragraph detector corpus and rules remain unchanged.
|
|
168
|
+
Establish a fresh compatible AI baseline before measuring the criteria change.
|
|
169
|
+
Normal tests validate fixture integrity, prompt delivery and saved criteria;
|
|
170
|
+
they do not establish improved AI proofreading. See the
|
|
171
|
+
[research and proposal](explanatory-guidance-research.md) for the design rationale.
|
|
172
|
+
|
|
173
|
+
## Reader learning objectives and paragraph guidance
|
|
174
|
+
|
|
175
|
+
The development criteria add six calibration pairs for reader-subject-only
|
|
176
|
+
repairs, potential-ending-only repairs, concrete learning goals, vague goals,
|
|
177
|
+
actual learning activities, and paragraph-level consolidation with a failure
|
|
178
|
+
condition retained. Goals identify supported explanation, distinction or decision
|
|
179
|
+
targets without promising comprehension. Understanding is not a banned term.
|
|
180
|
+
The judge rubric and calibration fingerprints change; establish a compatible AI
|
|
181
|
+
baseline before comparing rewrite quality. The detector corpus, rules and
|
|
182
|
+
mechanical verification are unchanged. Normal tests exercise fixture integrity
|
|
183
|
+
and evaluator data delivery, not the correctness of an AI's editorial decisions.
|
|
184
|
+
|
|
185
|
+
## Rules, definitions, and configured values
|
|
186
|
+
|
|
187
|
+
Ten v1.2.3 calibration pairs compare rule specification, structure and workflow
|
|
188
|
+
definition, configured destinations, mixed operations, and limit types. They include
|
|
189
|
+
faithful revisions and controls, newly invented enforcement (`needs-evidence`),
|
|
190
|
+
permissions changed into obligations, plans changed into runtime checks, and a
|
|
191
|
+
rejected unchanged passage under an explicit terminology preference. These are
|
|
192
|
+
project-authored examples, not measurements of AI proofreading improvement.
|
|
193
|
+
The calibration and judge rubric fingerprints change, so a compatible fresh AI
|
|
194
|
+
baseline is needed before measuring rewrite quality. The detector corpus, rules,
|
|
195
|
+
and mechanical verification are unchanged. Regression tests check criteria
|
|
196
|
+
propagation to new prompts and preserve historical session criteria.
|
|
197
|
+
|
|
122
198
|
## What normal tests check
|
|
123
199
|
|
|
124
200
|
Run the complete suite from the repository root with MeCab and UTF-8 IPADIC
|
|
@@ -304,3 +380,65 @@ results establish detector and workflow regression checks only.
|
|
|
304
380
|
|
|
305
381
|
[Development](development.md) · [Manuscript scoring](scoring.md) ·
|
|
306
382
|
[Back to README](../README.md)
|
|
383
|
+
|
|
384
|
+
## Receiving and returning calibration (v1.2.3)
|
|
385
|
+
|
|
386
|
+
Thirteen additional pairs cover request intake, stream reception,
|
|
387
|
+
function arguments, stdout output, model generation, input assembly, an accurate
|
|
388
|
+
unchanged value return, an explicit terminology preference, established
|
|
389
|
+
throw/catch, changed execution/display responsibilities, unsupported HTTP, and
|
|
390
|
+
signal-delivery versus cancellation timing. The evaluator rubric names these
|
|
391
|
+
operation and ownership distinctions without supplying the gold decisions.
|
|
392
|
+
The fixed detector corpus still measures only its original three kinds, so its
|
|
393
|
+
scores do not measure the new `受け取る` cue. Regression tests check that cue in
|
|
394
|
+
MeCab and literal modes and check prompt delivery and fixture integrity.
|
|
395
|
+
No AI rewrite/judge trials were run for this change; improved proofreading is
|
|
396
|
+
unmeasured. Old AI reports have different criteria/calibration fingerprints and
|
|
397
|
+
need a fresh compatible baseline for quality comparison.
|
|
398
|
+
|
|
399
|
+
## Direct-negation calibration (v1.2.3)
|
|
400
|
+
|
|
401
|
+
Ten added calibration pairs compare direct operation denial, unavailable
|
|
402
|
+
capability, insufficient conditions, partial negation and necessary inference
|
|
403
|
+
limits. Reject partial negation made into total denial, missing observation
|
|
404
|
+
made into an asserted non-event, and inability made into a discretionary action.
|
|
405
|
+
An invented OS enforcement mechanism needs evidence. These controls and the
|
|
406
|
+
judge rubric require compatible new AI baselines; no model evaluation was run
|
|
407
|
+
and no improvement in AI proofreading has been measured. Mechanical verification
|
|
408
|
+
continues to report `meaning_verified: false`.
|
|
409
|
+
|
|
410
|
+
## Replacement, interpretation, and use limits
|
|
411
|
+
|
|
412
|
+
Nine added calibration pairs cover `置き換えません`: five faithful revisions
|
|
413
|
+
for approval, fixed-response testing, missing usage, progress notices and impression
|
|
414
|
+
scoring; one retained actual history-replacement description; and three rejected
|
|
415
|
+
changes that lose history construction, assert non-completion from missing evidence,
|
|
416
|
+
or turn an unavailable use into a discretionary choice. The judge rubric names
|
|
417
|
+
these distinctions. Normal tests check fixture integrity, existing MeCab detection,
|
|
418
|
+
and saved criteria delivery, not whether an AI judges the pairs correctly.
|
|
419
|
+
AI proofreading improvement has not been measured. Fix a fresh calibration and
|
|
420
|
+
rubric baseline before comparing AI results with an earlier run.
|
|
421
|
+
|
|
422
|
+
## Direct interpretation-limit calibration (v1.2.3)
|
|
423
|
+
|
|
424
|
+
Ten additional pairs cover direct summary, observation, evaluation and missing-usage
|
|
425
|
+
limits; nonzero usage inferred from missing counts; unconditional evaluation denial;
|
|
426
|
+
non-execution inferred from missing observation; a retained interpretation policy;
|
|
427
|
+
a policy weakened into uncertainty; and an ignored explicit author preference.
|
|
428
|
+
The earlier fixed-response and missing-usage replacement examples now use direct
|
|
429
|
+
predicates. Fixture and rubric fingerprints change, requiring compatible new AI
|
|
430
|
+
baselines. Normal tests check detector behavior, fixture integrity and saved-prompt
|
|
431
|
+
contracts; no AI evaluation or improvement measurement was performed.
|
|
432
|
+
|
|
433
|
+
## Transfer wording comparisons (v1.2.3)
|
|
434
|
+
|
|
435
|
+
`test/fixtures/transfer_wording.ja.json` contains 18 manual examples: nine accept,
|
|
436
|
+
eight reject and one needs-evidence. They contrast input with transport, arguments
|
|
437
|
+
with events, value delivery with delegation, continuity with persistence, and
|
|
438
|
+
handoff with acceptance or completion. They also preserve bidirectional contracts,
|
|
439
|
+
negation and capability. This standalone fixture is not added to the measured
|
|
440
|
+
benchmark corpus or calibration runner. Tests check fixture integrity and delivery
|
|
441
|
+
of criteria to writing and saved review prompts, including historical-session
|
|
442
|
+
preservation; they do not establish AI judgment accuracy. The updated judge rubric
|
|
443
|
+
requires a compatible fresh baseline for future AI comparisons. No AI evaluation
|
|
444
|
+
was run; improvement remains unmeasured and `meaning_verified` remains false.
|
data/docs/rules-and-coverage.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Rules and coverage
|
|
2
2
|
|
|
3
|
+
## General operation wording (v1.2.3)
|
|
4
|
+
|
|
5
|
+
`行う` is an advisory `weak-predicate` cue in prose and supported list text.
|
|
6
|
+
MeCab detects dictionary forms, including `行える`, and retains inflection,
|
|
7
|
+
negation and Unicode positions. Literal mode matches only listed surfaces.
|
|
8
|
+
Compare direct action verbs with responsibility wording through the shared
|
|
9
|
+
"Distinguish operations from responsibility" criteria. Neither the cue nor
|
|
10
|
+
`担当します` is an automatic replacement rule. Inline masking, allow lists
|
|
11
|
+
and complete custom rule sets still apply; saved sessions retain their rules
|
|
12
|
+
and criteria. Candidate detection does not establish an editorial defect.
|
|
13
|
+
|
|
14
|
+
## Arrival wording (v1.2.3)
|
|
15
|
+
|
|
16
|
+
The checkout adds `届く` as an advisory `weak-predicate` cue in prose and list
|
|
17
|
+
text. MeCab matches its dictionary form and retains inflection, negation and
|
|
18
|
+
Unicode source positions. Explicit literal mode matches only listed surface
|
|
19
|
+
forms; it does not provide morphological coverage. Allow lists, custom complete
|
|
20
|
+
rule sets and inline masking remain applicable.
|
|
21
|
+
|
|
22
|
+
Compare reception, runtime input, model-call retrieval, late result settlement,
|
|
23
|
+
and missing trial reports using the shared writing criteria. A notification is
|
|
24
|
+
not proof of completion, and a missing report is not proof of non-execution.
|
|
25
|
+
Literal physical arrival can remain. No fixed replacement is prescribed, and
|
|
26
|
+
scanning never rewrites manuscripts. Existing sessions retain saved rules and
|
|
27
|
+
criteria; mechanical verification does not establish meaning or writing quality.
|
|
28
|
+
|
|
3
29
|
| Rule | Severity | Purpose |
|
|
4
30
|
| --- | --- | --- |
|
|
5
31
|
| `abstract-reference` | hint | Ask what an abstract noun refers to |
|
|
@@ -167,3 +193,52 @@ one-based Unicode character positions, not byte offsets or display widths.
|
|
|
167
193
|
An empty findings array does not establish full coverage or good prose.
|
|
168
194
|
|
|
169
195
|
[Back to README](../README.md)
|
|
196
|
+
|
|
197
|
+
## Operation-effect cues (v1.2.3)
|
|
198
|
+
|
|
199
|
+
`作用` is an advisory `abstract-reference` candidate in prose and list text.
|
|
200
|
+
Compare the actual operation, operation classification (such as an `effect`
|
|
201
|
+
field), execution result, or state change against the paragraph and implementation.
|
|
202
|
+
Established terminology can remain; findings do not prescribe a fixed synonym
|
|
203
|
+
or an automatic replacement. Heading rules and shared writing criteria are unchanged.
|
|
204
|
+
|
|
205
|
+
MeCab matches the noun token, including in `外部作用`. Literal mode searches
|
|
206
|
+
the exact substring and may also flag `操作用`; inspect context rather than
|
|
207
|
+
treating this overlap as the noun `作用`. Allow lists, custom complete rule sets,
|
|
208
|
+
and protected-inline exclusions still apply. Existing sessions retain saved
|
|
209
|
+
rules; start a new session to adopt this candidate.
|
|
210
|
+
|
|
211
|
+
## Receiving cues (v1.2.3)
|
|
212
|
+
|
|
213
|
+
`受け取る` is a `weak-predicate` hint, including inflected forms and the potential
|
|
214
|
+
lemma `受け取れる` in MeCab mode. Literal mode matches the packaged listed
|
|
215
|
+
surfaces; it does not analyze arbitrary inflections. Allow lists, complete custom
|
|
216
|
+
rule replacement, positions, and protected-inline exclusions still apply.
|
|
217
|
+
`返す` remains advisory even when a function correctly returns a value. A finding
|
|
218
|
+
requests contextual comparison, not a mandatory change or automatic replacement.
|
|
219
|
+
Use the [shared operation comparisons](../data/writing/ja/criteria.md#distinguish-receiving-returning-and-their-actual-operations)
|
|
220
|
+
to decide whether intake, reception, retrieval, arguments, output, or a retained
|
|
221
|
+
plain verb best describes the evidence. Saved sessions retain their old rules
|
|
222
|
+
and criteria; use a new session to adopt the additions.
|
|
223
|
+
|
|
224
|
+
## Indirect negation candidates (v1.2.3)
|
|
225
|
+
|
|
226
|
+
`わけではありません`, `わけではなく`, and `わけではない` are advisory
|
|
227
|
+
`contextual-phrase` candidates in running prose and supported lists, in both
|
|
228
|
+
MeCab and literal modes. Matching preserves the existing inline masking, exact
|
|
229
|
+
allow-list behavior and longest-overlap selection. Protected code and quotations
|
|
230
|
+
are not edited. These are explicit surfaces, not exhaustive negation detection.
|
|
231
|
+
Review operation denial, capability, partial negation and inference limits using
|
|
232
|
+
[the writing criteria](writing.md#direct-negation-and-inference-limits-v123).
|
|
233
|
+
No candidate prescribes a fixed replacement. Existing sessions retain their saved
|
|
234
|
+
rules and criteria; the new defaults apply to new scans.
|
|
235
|
+
|
|
236
|
+
## Interpretation-limit candidates (v1.2.3)
|
|
237
|
+
|
|
238
|
+
`contextual-phrase` flags the explicit surfaces `とはみなしません` and
|
|
239
|
+
`とみなしません` in prose and supported list text with either tokenizer.
|
|
240
|
+
Longest-overlap selection yields one cue for `とはみなしません`; allow lists,
|
|
241
|
+
custom replacement rule sets and protected-inline masking still apply. These
|
|
242
|
+
are not exhaustive inflection detection or automatic substitutions. Compare
|
|
243
|
+
[direct interpretation limits](writing.md#direct-interpretation-limits-v123),
|
|
244
|
+
keeping policies separate from evidence shortages. Old sessions retain saved rules.
|