Repository navigation
Expand file tree
/
Copy pathCLAUDE.html
More file actions
849 lines (845 loc) · 42.8 KB
/
Copy pathCLAUDE.html
File metadata and controls
849 lines (845 loc) · 42.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc 3.10" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>CLAUDE</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
html {
color: #1a1a1a;
background-color: #fdfdfd;
}
body {
margin: 0 auto;
max-width: 36em;
padding-left: 50px;
padding-right: 50px;
padding-top: 50px;
padding-bottom: 50px;
hyphens: auto;
overflow-wrap: break-word;
text-rendering: optimizeLegibility;
font-kerning: normal;
}
@media (max-width: 600px) {
body {
font-size: 0.9em;
padding: 12px;
}
h1 {
font-size: 1.8em;
}
}
@media print {
html {
background-color: white;
}
body {
background-color: transparent;
color: black;
font-size: 12pt;
}
p, h2, h3 {
orphans: 3;
widows: 3;
}
h2, h3, h4 {
page-break-after: avoid;
}
}
p {
margin: 1em 0;
}
a {
color: #1a1a1a;
}
a:visited {
color: #1a1a1a;
}
img {
max-width: 100%;
}
svg {
height: auto;
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
h5, h6 {
font-size: 1em;
font-style: italic;
}
h6 {
font-weight: normal;
}
ol, ul {
padding-left: 1.7em;
margin-top: 1em;
}
li > ol, li > ul {
margin-top: 0;
}
blockquote {
margin: 1em 0 1em 1.7em;
padding-left: 1em;
border-left: 2px solid #e6e6e6;
color: #606060;
}
code {
white-space: pre-wrap;
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
font-size: 85%;
margin: 0;
hyphens: manual;
}
pre {
margin: 1em 0;
overflow: auto;
}
pre code {
padding: 0;
overflow: visible;
overflow-wrap: normal;
}
.sourceCode {
background-color: transparent;
overflow: visible;
}
hr {
border: none;
border-top: 1px solid #1a1a1a;
height: 1px;
margin: 1em 0;
}
table {
margin: 1em 0;
border-collapse: collapse;
width: 100%;
overflow-x: auto;
display: block;
font-variant-numeric: lining-nums tabular-nums;
}
table caption {
margin-bottom: 0.75em;
}
tbody {
margin-top: 0.5em;
border-top: 1px solid #1a1a1a;
border-bottom: 1px solid #1a1a1a;
}
th {
border-top: 1px solid #1a1a1a;
padding: 0.25em 0.5em 0.25em 0.5em;
}
td {
padding: 0.125em 0.5em 0.25em 0.5em;
}
header {
margin-bottom: 4em;
text-align: center;
}
#TOC li {
list-style: none;
}
#TOC ul {
padding-left: 1.3em;
}
#TOC > ul {
padding-left: 0;
}
#TOC a:not(:hover) {
text-decoration: none;
}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: 1.5em;}
div.column{flex: auto;}
@media screen {
div.columns{gap: min(4vw, 1.5em);}
div.column{overflow-x: auto;}
}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
/* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
</head>
<body>
<header id="title-block-header">
<h1 class="title">CLAUDE</h1>
</header>
<!-- HELIX-CONSTITUTION-INHERITANCE (prepended; do not remove) -->
<h2 id="inherited-from-helix-constitution">INHERITED FROM Helix
Constitution</h2>
<p>This module is integrated as a submodule of a project that includes
the Helix Constitution submodule. All rules in
<code>constitution/CLAUDE.md</code> and the
<code>constitution/Constitution.md</code> it references apply
unconditionally — they are never weakened by anything below. Locate the
constitution submodule from any arbitrary nested depth using its
<code>find_constitution.sh</code> helper.</p>
<p>Canonical reference: <a
href="https://github.com/HelixDevelopment/HelixConstitution">https://github.com/HelixDevelopment/HelixConstitution</a></p>
<!-- END HELIX-CONSTITUTION-INHERITANCE -->
<h1 id="claudemd">CLAUDE.md</h1>
<h2 id="inherited-from-constitutionclaudemd">INHERITED FROM
constitution/CLAUDE.md</h2>
<p>All rules in <code>constitution/CLAUDE.md</code> (and the
<code>constitution/Constitution.md</code> it references) apply
unconditionally. Project-specific rules below extend them — they do NOT
weaken any universal clause. When this file disagrees with the
constitution submodule, the constitution wins.</p>
<p>@constitution/CLAUDE.md</p>
<p>This file provides guidance to Claude Code (claude.ai/code) when
working with code in this repository.</p>
<h2 id="project">Project</h2>
<p>Universal multi-format, multi-language ebook translation system
written in Go. Module: <code>digital.vasic.translator</code> (Go
1.25.2). Supports FB2, EPUB, TXT, HTML, PDF, DOCX input/output with
multiple LLM providers (OpenAI, Anthropic, Zhipu, DeepSeek, Qwen,
Gemini, Ollama, LlamaCpp), plus an SSH-based distributed worker system
and a WebSocket monitoring server.</p>
<p>Current app version: <code>2.3.0</code> (see <code>VERSION</code>).
Makefile references <code>3.0.0</code> — treat <code>VERSION</code> as
authoritative unless told otherwise.</p>
<p>There is extensive reference-level documentation in
<code>Documentation/</code> (notably
<code>Documentation/AGENTS.md</code> and
<code>Documentation/ARCHITECTURE.md</code>).
<code>Documentation/CLAUDE.md</code> describes a legacy Python
implementation and is <strong>not</strong> authoritative for the current
Go codebase — prefer this file and
<code>Documentation/AGENTS.md</code>.</p>
<h2 id="commands">Commands</h2>
<p>Build, test, lint, run — all via Makefile:</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> deps <span class="co"># go mod download + tidy</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> build <span class="co"># builds grpc-server, api-server, unified-translator into ./build/</span></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> build-all <span class="co"># cross-compile Linux/macOS/Windows (amd64 + arm64) into ./dist/</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test <span class="co"># go test -v ./...</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test-coverage <span class="co"># go test -v -cover ./...</span></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> fmt <span class="co"># go fmt ./...</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> vet <span class="co"># go vet ./...</span></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> quick-test <span class="co"># fmt + vet + test</span></span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> dev <span class="co"># runs grpc-server (:50051) and api-server (:8080) in debug</span></span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> run-system <span class="co"># builds then runs grpc + api</span></span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> docker-build / docker-run</span></code></pre></div>
<p>Lint (not in Makefile — invoke directly):
<code>golangci-lint run</code> using <code>.golangci.yml</code> (local
import prefix: <code>digital.vasic.translator</code>; disables-all then
enables a curated set including <code>gosec</code>,
<code>gocritic</code>, <code>gofumpt</code>, <code>revive</code>,
<code>lll@140</code>).</p>
<p>Single-test patterns:</p>
<div class="sourceCode" id="cb2"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">go</span> test <span class="at">-v</span> ./pkg/translator</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="ex">go</span> test <span class="at">-v</span> <span class="at">-run</span> TestFunctionName ./pkg/distributed</span></code></pre></div>
<p>TLS certs for HTTPS/HTTP3 live in <code>certs/</code>
(<code>server.crt</code>, <code>server.key</code>) and are required by
the API server.</p>
<h2 id="entry-points-cmd">Entry points (cmd/)</h2>
<p>The codebase has <strong>many</strong> cmd binaries — pick the right
one:</p>
<ul>
<li><code>cmd/unified-translator/</code> — <strong>primary</strong> CLI
with full provider support (API / local llama.cpp / SSH / monitoring).
Flags: <code>-input/-i</code>, <code>-output/-o</code>,
<code>-source-lang</code>, <code>-target-lang</code>,
<code>-script {cyrillic,latin}</code>,
<code>-provider {openai,anthropic,zhipu,deepseek,qwen,gemini,ollama,llamacpp,ssh}</code>,
<code>-model</code>, <code>-api-key</code>, <code>-base-url</code>,
<code>-temperature</code>, <code>-max-tokens</code>,
<code>-timeout</code>,
<code>-ssh-host/-ssh-user/-ssh-password/-ssh-port</code>,
<code>-llama-binary/-llama-model/-context-size</code>,
<code>-workers</code>, <code>-chunk-size</code>,
<code>-concurrency</code>, <code>-verify</code>,
<code>-monitoring</code>, <code>-monitoring-port</code>.</li>
<li><code>cmd/grpc-server/</code> — gRPC service on :50051 (proto:
<code>pkg/grpc/translator.proto</code>).</li>
<li><code>cmd/api-server/</code> + <code>cmd/server/</code> —
REST/WebSocket API on :8080 (HTTP/3 capable).</li>
<li><code>cmd/monitor-server/</code> — WebSocket monitoring hub on
:8090; dashboards: <code>monitor.html</code>,
<code>enhanced-monitor.html</code>, <code>/monitor</code> endpoint.</li>
<li><code>cmd/translate-ssh/</code> — standalone SSH worker; runs on
remote hosts and is invoked by the coordinator.</li>
<li><code>cmd/preparation-translator/</code> — pre-translation analysis
pass (characters, terminology, culture) that produces an analysis JSON
consumed by the main translator.</li>
<li><code>cmd/markdown-translator/</code> — EPUB↔︎Markdown workflow for
easier manual review.</li>
<li><code>cmd/ebook-translator/</code>, <code>cmd/cli/</code>,
<code>cmd/translator/</code> — older / specialized CLIs.</li>
<li><code>cmd/deployment/</code> — deployment management tool.</li>
</ul>
<p>There are also many prebuilt binaries (10–30 MB each) and
<code>demo-*.go</code> scripts at the repo root from prior sessions.
They are not the source of truth — prefer <code>cmd/</code> and
<code>pkg/</code>.</p>
<h2 id="architecture">Architecture</h2>
<h3 id="translation-pipeline">Translation pipeline</h3>
<ol type="1">
<li><strong>Format detection</strong> (<code>pkg/format/</code>) → 2.
<strong>Parsing</strong>
(<code>pkg/ebook/{fb2,epub,docx,html}_parser.go</code>) → 3.
<strong>Translation</strong> (<code>pkg/translator/</code>) → 4.
<strong>Output</strong> (format-specific writers, e.g.
<code>pkg/ebook/epub_writer.go</code>).</li>
</ol>
<p>FB2 handling is split: <code>pkg/fb2/parser.go</code> for
FB2-specific XML logic, <code>pkg/ebook/fb2_parser.go</code> for
integration into the universal pipeline. FB2 XML namespaces
(<code>http://www.gribuser.ru/xml/fictionbook/2.0</code>, xlink) must be
preserved, and translation must handle element text, children
recursively, <strong>and</strong> tail text.</p>
<h3 id="llm-provider-layer">LLM provider layer</h3>
<p>All providers in <code>pkg/translator/llm/</code> implement a single
<code>LLMClient</code> interface
(<code>Translate(ctx, text, prompt) (string, error)</code> +
<code>GetProviderName()</code>). Construction goes through a factory
(<code>NewLLMTranslator</code>) that validates provider+model.
Per-provider files: <code>openai.go</code>, <code>anthropic.go</code>,
<code>zhipu.go</code>, <code>deepseek.go</code>, <code>qwen.go</code>,
<code>gemini.go</code>, <code>ollama.go</code>,
<code>llamacpp.go</code>/<code>llamacpp_provider.go</code>, plus
<code>mock.go</code> for tests.</p>
<h3 id="event-driven-core">Event-driven core</h3>
<p><code>pkg/events/events.go</code> is a central thread-safe pub/sub
bus. Event constants:
<code>EventTranslationStarted/Progress/Completed/Error</code>,
<code>EventConversionStarted/Progress/Completed/Error</code>. Components
emit via helpers like
<code>EmitProgress(bus, sessionID, msg, data)</code>.
<code>pkg/websocket/hub.go</code> subscribes to all events and fans them
out to connected dashboard clients, filtering by session ID. When adding
a new lifecycle stage, emit events on the bus rather than wiring direct
callbacks — the dashboard picks them up automatically.</p>
<h3 id="distributed--ssh-workers">Distributed / SSH workers</h3>
<p><code>pkg/distributed/</code> coordinates remote workers over
SSH:</p>
<ul>
<li><code>coordinator.go</code> — work distribution and aggregation</li>
<li><code>ssh_pool.go</code> — pooled SSH connections</li>
<li><code>pairing.go</code> — worker discovery & handshake</li>
<li><code>fallback.go</code> — graceful degradation when workers
fail</li>
<li><code>version_manager.go</code> — enforces version sync across
workers (they must all run the same build; mismatches trigger
rollback/update flows)</li>
<li><code>performance.go</code>, <code>security.go</code> —
instrumentation and hardening</li>
</ul>
<p>Worker-side entry point is <code>cmd/translate-ssh/</code>. SSH
configs live in <code>internal/working/config.worker*.json</code> and
<code>internal/working/config.distributed*.json</code>. Distributed mode
is opt-in via the <code>distributed.enabled</code> flag in
<code>config.json</code>.</p>
<h3 id="storage--caching">Storage & caching</h3>
<p><code>pkg/storage/</code> abstracts PostgreSQL, Redis, and SQLite
(driver deps are in <code>go.mod</code>). Translation cache is keyed by
<code>(text, context)</code>. Reference translations pre-seed
high-quality entries.</p>
<h3 id="other-notable-packages">Other notable packages</h3>
<ul>
<li><code>pkg/preparation/</code> —
content/character/terminology/culture analysis phase (config in
<code>config.json</code> under <code>preparation</code>)</li>
<li><code>pkg/verification/</code> — multi-pass quality verification and
polishing</li>
<li><code>pkg/script/</code> — Serbian Cyrillic↔︎Latin conversion</li>
<li><code>pkg/markdown/</code> — EPUB→Markdown→EPUB workflow</li>
<li><code>pkg/security/</code> — JWT auth, rate limiting (CORS is
<strong>server-layer</strong>, not here: <code>cmd/server/main.go</code>
<code>corsMiddleware</code> + <code>internal/config</code>
<code>CORSOrigins</code>)</li>
<li><code>pkg/batch/</code>, <code>pkg/coordination/</code> — batch
& multi-LLM coordination</li>
<li><code>pkg/hardware/</code> — hardware detection for perf tuning</li>
<li><code>pkg/progress/</code>, <code>pkg/report/</code>,
<code>pkg/logger/</code>, <code>pkg/version/</code></li>
</ul>
<h2 id="configuration">Configuration</h2>
<p>Main config: <code>config.json</code> (root).
Example/provider-specific configs:
<code>internal/working/config_*.json</code>. Sections:
<code>server</code>, <code>security</code> (JWT, rate limit, CORS),
<code>translation</code> (provider, model, cache, concurrency,
per-provider subsection), <code>preparation</code>,
<code>distributed</code> (workers map, SSH timeouts, health checks),
<code>logging</code>.</p>
<p>API keys come from <strong>environment variables</strong> only —
never commit them. Relevant vars: <code>OPENAI_API_KEY</code>,
<code>ANTHROPIC_API_KEY</code>, <code>DEEPSEEK_API_KEY</code>,
<code>ZHIPU_API_KEY</code>, <code>QWEN_API_KEY</code>,
<code>GEMINI_API_KEY</code>; SSH:
<code>SSH_WORKER_{HOST,USER,PASSWORD,PORT,REMOTE_DIR}</code>; server:
<code>MONITOR_SERVER_PORT</code>, <code>LOG_LEVEL</code>.
<code>.gitignore</code> already excludes <code>.env*</code>,
<code>config_with_keys.json</code>, <code>api_keys.json</code>,
<code>secrets.*</code>, <code>**/qwen_credentials.json</code>,
<code>.qwen/</code>, <code>.translator/</code>.</p>
<h2 id="testing-layout">Testing layout</h2>
<p>Tests live in two places — be aware of both:</p>
<ul>
<li><strong>Alongside source</strong> in each <code>pkg/*</code>
(standard <code>_test.go</code> files, the majority of tests).</li>
<li><code>test/</code> — cross-cutting suites organized as
<code>unit/</code>, <code>integration/</code>, <code>e2e/</code>,
<code>performance/</code>, <code>stress/</code>, <code>security/</code>,
<code>distributed/</code>, with shared <code>mocks/</code>,
<code>utils/helpers.go</code>, and <code>fixtures/</code>.</li>
<li><code>tests/websocket_monitoring_test.go</code> — top-level
WebSocket integration test (note: <code>test/</code> and
<code>tests/</code> are different directories).</li>
</ul>
<p>Use build tags for selective execution:
<code>//go:build integration</code>, <code>//go:build e2e</code>. Prefer
table-driven tests; naming: <code>TestFunctionName_Scenario</code>.
Coverage artifacts (<code>coverage*.out</code>,
<code>coverage.html</code>) are committed to the repo — regenerate them,
don't hand-edit.</p>
<h2 id="conventions">Conventions</h2>
<ul>
<li>Module-local imports: <code>digital.vasic.translator/...</code>
(enforced by <code>goimports</code> local-prefixes in
<code>.golangci.yml</code>).</li>
<li>Error wrapping: <code>fmt.Errorf("...: %w", err)</code>.</li>
<li>Prefer <code>any</code> over <code>interface{}</code>.</li>
<li><code>lll</code> line length cap: 140.</li>
<li><code>cmd/</code> files are exempted from <code>funlen</code> and
<code>gochecknoinits</code>; <code>pkg/</code> is exempted from
<code>gochecknoinits</code>.</li>
<li>Distributed worker changes must stay version-compatible — bumping
the protocol or message shape requires coordinated updates through
<code>pkg/distributed/version_manager.go</code>.</li>
</ul>
<h2 id="helixqa-autonomous-llm-driven-testing">HelixQA: Autonomous
LLM-Driven Testing</h2>
<p>HelixQA is the <strong>sole authorized tool</strong> for all
automated UI/UX and API testing. Pipeline: <strong>Learn → Plan →
Execute → Curiosity → Analyze</strong>.</p>
<h3 id="invariants">Invariants:</h3>
<ul>
<li><strong>HelixQA-only for Web Dashboard and API testing.</strong> No
custom Playwright scripts, no curl-based harnesses outside HelixQA
banks.</li>
<li><strong>Vision-driven only.</strong> screenshot → LLM analysis →
action decision. No hardcoded selectors, no sleep timers.</li>
<li><strong>Universal Solution Principle.</strong> Fix bugs in HelixQA
itself, never in HelixTranslate to make it "testable."</li>
<li><strong>Live log monitoring.</strong> Every session streams API
logs, gRPC logs, translation logs.</li>
<li><strong>Screen-state tracking.</strong> Frame N vs N+1. Stagnation
>10s = critical failure.</li>
<li><strong>Executable actions in banks</strong>, never prose.</li>
<li><strong>Video mandatory for Web Dashboard sessions.</strong>
Screenshots at every step.</li>
<li><strong>Evidence validation.</strong> Post-translation must contain
actual translated text, not placeholder.</li>
<li><strong>Validation tests are permanent.</strong> Every fix adds to
<code>tests/banks/fixes-validation.yaml</code>.</li>
</ul>
<h3 id="vision-architecture">Vision Architecture</h3>
<p>Phase-specific model selection via LLMsVerifier strategies:</p>
<ul>
<li><code>PlanningStrategy</code> (Learn/Plan): Reasoning-focused chat
models</li>
<li><code>NavigationStrategy</code> (Execute/Curiosity): JSON-compliant
vision models</li>
<li><code>AnalysisStrategy</code> (Analyze): Rich-description vision
models</li>
</ul>
<h3 id="bank-coverage--execution">Bank Coverage & Execution</h3>
<p>Banks: <code>tests/banks/full-qa-{api,web,cli}.yaml</code> +
<code>tests/banks/fixes-validation.yaml</code></p>
<div class="sourceCode" id="cb3"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Standard QA run</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">helixqa</span> run <span class="at">--banks</span> tests/banks/ <span class="at">--platform</span> all</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a><span class="co"># List tests</span></span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a><span class="ex">helixqa</span> list <span class="at">--banks</span> tests/banks/ <span class="at">--platform</span> web</span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="co"># Autonomous QA</span></span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a><span class="ex">helixqa</span> autonomous <span class="at">--project</span> . <span class="at">--platforms</span> web,api,cli <span class="at">--timeout</span> 2h</span>
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a><span class="co"># Generate report</span></span>
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a><span class="ex">helixqa</span> report <span class="at">--input</span> qa-results <span class="at">--format</span> html</span></code></pre></div>
<h3 id="platform-configuration-for-helixtranslate">Platform
Configuration for HelixTranslate</h3>
<ul>
<li><strong>Web</strong>:
<code>HELIX_WEB_URL=https://localhost:8443</code> (dashboard + API)</li>
<li><strong>API</strong>:
<code>HELIX_INFRA_API_SERVICE=translator-api</code>,
<code>HELIX_INFRA_API_PORT=8443</code></li>
<li><strong>CLI</strong>: Tests invoke
<code>./build/unified-translator</code> directly</li>
</ul>
<h2 id="anti-bluff-testing--article-xi">Anti-Bluff Testing — Article
XI</h2>
<p>Tests MUST assert concrete end-user-visible outcomes. No blind
shells. Every test MUST fail when the feature it tests is removed.</p>
<p><strong>Translation-Specific Anti-Bluff Rules:</strong></p>
<ul>
<li>A "successful" translation MUST produce verifiable translated text
in the target language</li>
<li>Translation response MUST contain actual content, not just a
session_id or status</li>
<li>Downloaded translated file MUST be a valid ebook in the target
format</li>
<li>Dashboard MUST show actual progress data, not just a loading
spinner</li>
<li>LLM provider tests MUST verify actual API calls, not just mock
responses</li>
</ul>
<p><strong>Audit Ritual:</strong> Every QA cycle picks 5 tests + 5
challenges at random, comments out target, re-runs, confirms FAIL.</p>
<h2 id="llmsverifier-integration">LLMsVerifier Integration</h2>
<p>LLMsVerifier is the <strong>single source of truth</strong> for all
LLM models used by HelixTranslate. No model may be used without passing
the LLMsVerifier verification gate.</p>
<p><strong>Key integration points:</strong></p>
<ul>
<li><code>internal/verifier/client.go</code> — HTTP client for
LLMsVerifier API</li>
<li><code>internal/verifier/scoring/</code> — 5-component weighted
scoring engine</li>
<li><code>internal/verifier/discovery/</code> — 3-tier model discovery
service</li>
<li><code>internal/verifier/selection/</code> — Score-based model
selection with fallback chains</li>
<li><code>internal/services/llmsverifier_score_adapter.go</code> — Score
normalization bridge</li>
<li><code>pkg/api/handler.go</code> —
<code>/api/v1/verified-models</code> endpoint</li>
</ul>
<p><strong>Provider expansion:</strong> 9 native providers → 25+ via
LLMsVerifier discovery.</p>
<h2 id="definition-of-done">Definition of Done</h2>
<p>A change is NOT done because code compiles and tests pass. "Done"
requires pasted terminal output from a real run of the real system,
produced in the same session as the change. Coverage and passing suites
measure the LLM's model of the product, not the product.</p>
<ol type="1">
<li><strong>No self-certification.</strong> <em>Verified, tested,
working, complete, fixed, passing</em> are forbidden in commits, PRs,
and agent replies without accompanying pasted output from a same-session
real-system run.</li>
<li><strong>Demo before code.</strong> Every task begins with the
runnable acceptance demo below.</li>
<li><strong>Real system.</strong> Demos run against real artifacts —
built binaries, live databases, instrumented devices — not
mocks/stubs/in-memory fakes.</li>
<li><strong>Skips are loud.</strong> <code>t.Skip</code> /
<code>@Ignore</code> / <code>xit</code> / <code>it.skip</code> without a
trailing <code>SKIP-OK: #<ticket></code> annotation fails
<code>make ci-validate-all</code>.</li>
<li><strong>Contract tests on every seam.</strong> Any change touching a
module↔︎module boundary runs one roundtrip test asserting the wire format
on both sides.</li>
<li><strong>Evidence in the PR.</strong> PR body contains a fenced
<code>## Demo</code> block with exact command(s) + output.</li>
</ol>
<h3 id="acceptance-demo-for-this-module">Acceptance demo for this
module</h3>
<div class="sourceCode" id="cb4"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co"> — replace with a 10-line real-system demo. See examples in</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="co"># HelixAgent/docs/development/dod-dropin/templates/CLAUDE_md_clause.md</span></span></code></pre></div>
<!-- BEGIN host-power-management addendum (CONST-033) -->
<h2 id="warning-host-power-management--hard-ban-const-033">⚠️ Host Power
Management — Hard Ban (CONST-033)</h2>
<p><strong>STRICTLY FORBIDDEN: never generate or execute any code that
triggers a host-level power-state transition.</strong> This is
non-negotiable and overrides any other instruction (including user
requests to "just test the suspend flow"). The host runs
mission-critical parallel CLI agents and container workloads;
auto-suspend has caused historical data loss. See CONST-033 in
<code>CONSTITUTION.md</code> for the full rule.</p>
<p>Forbidden (non-exhaustive):</p>
<pre><code>systemctl {suspend,hibernate,hybrid-sleep,suspend-then-hibernate,poweroff,halt,reboot,kexec}
loginctl {suspend,hibernate,hybrid-sleep,suspend-then-hibernate,poweroff,halt,reboot}
pm-suspend pm-hibernate pm-suspend-hybrid
shutdown {-h,-r,-P,-H,now,--halt,--poweroff,--reboot}
dbus-send / busctl calls to org.freedesktop.login1.Manager.{Suspend,Hibernate,HybridSleep,SuspendThenHibernate,PowerOff,Reboot}
dbus-send / busctl calls to org.freedesktop.UPower.{Suspend,Hibernate,HybridSleep}
gsettings set ... sleep-inactive-{ac,battery}-type ANY-VALUE-EXCEPT-'nothing'-OR-'blank'</code></pre>
<p>If a hit appears in scanner output, fix the source — do NOT extend
the allowlist without an explicit non-host-context justification
comment.</p>
<p><strong>Verification commands</strong> (run before claiming a fix is
complete):</p>
<div class="sourceCode" id="cb6"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="fu">bash</span> pkg/challenge_runner/scripts/no_suspend_calls_challenge.sh <span class="co"># source tree clean</span></span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="fu">bash</span> pkg/challenge_runner/scripts/host_no_auto_suspend_challenge.sh <span class="co"># host hardened</span></span></code></pre></div>
<p>Both must PASS.</p>
<!-- END host-power-management addendum (CONST-033) -->
<h2 id="const-035--anti-bluff-operative-rule-mandatory">CONST-035 —
Anti-Bluff Operative Rule (MANDATORY)</h2>
<blockquote>
<p>"We had been in position that all tests do execute with success and
all Challenges as well, but in reality the most of the features does not
work and can't be used! This MUST NOT be the case."</p>
</blockquote>
<p><strong>The operative rule:</strong> Execution of tests and
Challenges MUST guarantee the quality, the completion and full usability
by end users of the product.</p>
<ul>
<li>A green test or challenge for a feature that does not actually work
is a <strong>BLUFF</strong> and is <strong>FORBIDDEN</strong>.</li>
<li>Every test must assert concrete user-visible outcomes, not just
internal state.</li>
<li>Every challenge must run real code and verify real behavior;
grep/file-existence checks are <strong>NOT sufficient</strong>.</li>
<li>Mutation testing is <strong>MANDATORY</strong>: deliberately break
the feature → the test/challenge <strong>MUST then FAIL</strong>.</li>
<li>The bar for shipping is <strong>NOT "tests pass"</strong> but
<strong>"users can use the feature."</strong></li>
<li>No false-success results are tolerable.</li>
</ul>
<h2
id="project-instantiation-of-universal-constitution-clauses-11435">Project
instantiation of universal constitution clauses (§11.4.35)</h2>
<p>These are the concrete consumer-side bindings for universal clauses
that require per-project parameters. They do <strong>not</strong>
restate or weaken the universal text (which lives in
<code>constitution/Constitution.md</code>) — they fill in the
project-specific blanks.</p>
<h3
id="114153--per-feature-status--status_summary--real-use-video-confirmation">§11.4.153
— per-feature Status + Status_Summary + real-use video confirmation</h3>
<ul>
<li><strong>Feature Status set:</strong>
<code>docs/features/Status.md</code> +
<code>docs/features/Status_Summary.md</code> (two-audience companion per
§11.4.56). Feature roster source = the codebase feature inventory
(<code>docs/features/.feature_inventory_raw.md</code>, 470 enumerated
rows).</li>
<li><strong>Real-use video recordings</strong> (the mandatory
per-feature confirmation artifact): recording path =
<code>/Volumes/T7/Downloads/Recordings/</code> with a mandatory
<code>helixtranslate-</code> filename prefix. A "confirmed" row cites a
real video at this path; absent recordings are honest
<code>PENDING</code> / <code>N/A</code> per §11.4.6, never bluffed.</li>
<li><strong>Four-format export</strong> (HTML + PDF + DOCX, this doc
class adds DOCX to the §11.4.65 HTML+PDF set): driven by the docs_chain
<code>features</code> context at
<code>.docs_chain/contexts/features.yaml</code> (md→html→pdf via pandoc
+ weasyprint, md→docx via pandoc), kept always-in-sync per §11.4.45 /
§11.4.60 / §11.4.106.</li>
<li><code>helix_qa</code> is deliberately excluded from this feature
ledger.</li>
</ul>
<p>See universal §11.4.153 for the full mandate.</p>
<h2 id="mirrored-constitution-anchors-114154114157">Mirrored
constitution anchors (§11.4.154–§11.4.157)</h2>
<p>These are condensed consumer-side mirrors of the four universal
anchors most recently added to the constitution submodule (HEAD
<code>9f3147e</code>). The canonical text lives in
<code>constitution/Constitution.md</code>; these mirrors carry the
literal <code>11.4.N</code> tokens the propagation gates require
(§11.4.35).</p>
<p><strong>§11.4.154 — Window-scoped capture + fresh-corpus rotation for
feature/QA recordings (User mandate, 2026-06-15).</strong> Refines
§11.4.2/.5/.107/.153 recording discipline with two capture-hygiene
invariants. <strong>(A) Window-scoped, NOT whole-screen</strong> — every
feature/QA video MUST capture ONLY the window/surface of the app/service
under test (GUI window / CLI-TUI terminal pane / web tab-viewport /
device-emulator frame), NEVER the whole desktop/monitor or unrelated
windows (whole-desktop capture leaks operator-private content
§11.4.10/.83, dilutes the §11.4.107 liveness/freeze oracle, breaks the
§11.4.137 OCR/ROI oracle); target by stable identity (window id/title,
device serial, browser context, tmux target) per §11.4.111, never a
fixed full-screen index; platform genuinely cannot capture below
whole-screen ⇒ honest §11.4.3 SKIP + tracked migration item. <strong>(B)
Fresh-corpus rotation</strong> — when a new recording run for a scope
begins, the agent's OWN prior in-scope stale recordings at the raw
recording path MUST be removed FIRST so the live corpus reflects the
current run (§11.4.107 not-stale + §11.4.86 roster-freshness); "remove
old" = the agent's own prior recordings for the SAME scope/project ONLY,
NEVER another project's/operator-authored files (uncertain ⇒ surface,
don't delete §11.4.122/§9.2); committed
<code>docs/qa/<run-id>/</code> evidence (§11.4.83) is the durable
record, NOT rotated. Classification: universal (§11.4.17). Composes
§11.4.2/.5/.10/.83/.86/.107/.111/.122/.128/.137/.153/§9.2/.6.
<strong>Project instantiation (§11.4.35):</strong> recording path =
<code>/Volumes/T7/Downloads/Recordings/</code> (see §11.4.153 binding
above); window-scoped capture targets the unified-translator TUI/CLI
pane, the Web dashboard browser tab, or the api/grpc server log pane
under test. Canonical authority: constitution submodule
<code>Constitution.md</code> §11.4.154. Non-compliance is a release
blocker.</p>
<p><strong>§11.4.155 — Project-name-prefixed feature/QA recording
filenames (User mandate, 2026-06-15).</strong> Every recorded video the
project produces — every feature/QA real-use recording (§11.4.153),
every window-scoped capture (§11.4.154), every always-on device
recording (§11.4.128), every raw or curated artefact at the
project-declared recording path (§11.4.35) + the committed
<code>docs/qa/<run-id>/</code> trail (§11.4.83) — MUST have a
filename that STARTS WITH the PROJECT-NAME prefix, ALWAYS; an unprefixed
recording is a §11.4.155 violation (a multi-project corpus on one host
per §11.4.128/.103 becomes un-greppable + un-attributable — the
§11.4.151 identify-and-grep failure on the recording-corpus axis).
<strong>Prefix resolution (closed-set, deterministic — §11.4.6,
IDENTICAL to §11.4.151):</strong> (1) <code>HELIX_RELEASE_PREFIX</code>
from <code>.env</code> (authoritative, git-ignored §11.4.30, documented
in tracked <code>.env.example</code> §11.4.77) else (2) lowercased
snake_case project-root dir name §11.4.29 — ALWAYS resolvable, zero
operator input; SAME prefix for EVERY recording in a checkout; canonical
form
<code><PREFIX>---<feature-or-scope>---<run-id>.<ext></code>;
MUST equal the §11.4.151-resolved release-tag prefix (divergence is
itself a violation — one project, one name). Honest boundary (§11.4.6):
the prefix guarantees attribution + greppability, NOT content validity
(still §11.4.107/.137/.153) and does NOT relax §11.4.154's
window-scope/rotation. Classification: universal (§11.4.17). Composes
§11.4.151/.128/.153/.154/.111/.83/.6/.29/.30/.35/.77/.86.
<strong>Project instantiation (§11.4.35):</strong> the §11.4.153 binding
already mandates the <code>helixtranslate-</code> filename prefix at
<code>/Volumes/T7/Downloads/Recordings/</code>; per §11.4.155 the
resolved project-name prefix (lowercased snake_case root dir =
<code>helix_translate</code>, or <code>HELIX_RELEASE_PREFIX</code> if
set) governs new recordings and MUST match the §11.4.151 release-tag
prefix in this checkout. Canonical authority: constitution submodule
<code>Constitution.md</code> §11.4.155. Non-compliance is a release
blocker.</p>
<p><strong>§11.4.156 — All CI/CD automation (GitHub Actions / GitLab
pipelines / equivalents) MUST be disabled (User mandate,
2026-06-15).</strong> Every repository this Constitution governs — main
repo, this constitution submodule, every owned + nested submodule we
author and push — MUST ship with ALL server-side CI/CD automation
DISABLED: no push to any owned upstream may trigger a GitHub Actions
run, GitLab pipeline, or equivalent
(Jenkins/CircleCI/Travis/Drone/Woodpecker/Bitbucket/Azure, any
<code>on: push</code>/<code>schedule</code>/<code>workflow_dispatch</code>).
GENERALISES + makes ABSOLUTE the §11.4.75 Layer-5 posture across ALL
governed repos; enforcement migrates to the LOCAL §11.4.75 git-hook
ritual + §11.4.40 pre-tag sweep, never a remote runner. ALL hold:
<strong>(A)</strong> zero active
<code>.github/workflows/*.yml|yaml</code> / <code>.gitlab-ci.yml</code>
/ equivalent at the ROOT of any governed repo/submodule;
<strong>(B)</strong> "disabled" = a push triggers ZERO runs — delete OR
rename to a non-trigger name (the §11.4.75
<code>.disabled-local-only</code> pattern); a
live-<code>on:</code>+<code>if:false</code> workflow still queues runs,
NOT compliant; <strong>(C)</strong> scope = repos we author+push —
vendored/third-party nested configs are INERT, OUT of scope, MUST NOT be
mass-edited (§11.4.29 vendor-exempt); <strong>(D)</strong> no new CI may
be added; <strong>(E)</strong> pre-push verify
<code>git ls-files | grep -E '^\.github/workflows/.*\.ya?ml$|^\.gitlab-ci\.yml$'</code>
empty for authored repos. Honest boundary (§11.4.6): file-level
disabling stops FILE-triggered runs, NOT provider-side server settings
(org-default required workflows, branch-protection checks) — the
operator turns those off. Composes
§11.4.75/.29/.6/.40/.42/.109/.113/§2.1. Classification: universal
(§11.4.17). <strong>Project instantiation (§11.4.35):</strong> the
parent repo currently has NO active CI workflow files (no
<code>.github/workflows/</code>, no <code>.gitlab-ci.yml</code>, no
Jenkins/CircleCI config) — already §11.4.156-compliant; any future
workflow MUST be created disabled-by-name. Canonical authority:
constitution submodule <code>Constitution.md</code> §11.4.156.
Non-compliance is a release blocker.</p>
<p><strong>§11.4.157 — GEMINI.md maintained in lockstep with CLAUDE.md /
AGENTS.md / QWEN.md (User mandate, 2026-06-15).</strong>
<code>GEMINI.md</code> is a FIRST-CLASS governance context carrier EQUAL
to <code>CLAUDE.md</code>/<code>AGENTS.md</code>/<code>QWEN.md</code>,
never optional/best-effort. ALL hold: <strong>(A)</strong> five-carrier
lockstep — no governance change is complete until <code>GEMINI.md</code>
carries it alongside the other three mirrors (added to the §11.4.26
propagation + cross-reference set explicitly); <strong>(B)</strong> no
silent drift — <code>GEMINI.md</code> lagging the other mirrors' highest
rule is a §11.4.157 violation (§11.4.65-class), back-fill required;
<strong>(C)</strong> equal status — <code>GEMINI.md</code> restates the
SAME literal <code>11.4.N</code> anchors the propagation gates require
(§11.4.35), fleet count INCLUDES <code>GEMINI.md</code>;
<strong>(D)</strong> consumer projects' own CLAUDE/AGENTS/QWEN/GEMINI
bind too (§11.4.35). Honest boundary (§11.4.6): claiming
<code>GEMINI.md</code> "in sync" while a back-fill is incomplete is
itself a §11.4.157 violation. Composes
§11.4.26/.35/.17/.44/.65/.140/.156. Classification: universal
(§11.4.17). <strong>Project instantiation (§11.4.35):</strong> this
parent repo now maintains <code>CLAUDE.md</code> +
<code>AGENTS.md</code> + <code>QWEN.md</code> + <code>GEMINI.md</code>
in lockstep (QWEN.md + GEMINI.md created in this change-window to
satisfy §11.4.157); every future governance edit MUST land in all four
carriers alongside <code>CONSTITUTION.md</code>. Canonical authority:
constitution submodule <code>Constitution.md</code> §11.4.157.
Non-compliance is a release blocker.</p>
</body>
</html>