-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCLAUDE_INDEX.html
More file actions
215 lines (210 loc) · 11.1 KB
/
Copy pathCLAUDE_INDEX.html
File metadata and controls
215 lines (210 loc) · 11.1 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
<!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_INDEX</title>
<style>
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;}
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;}
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; }
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.at { color: #7d9029; }
code span.bn { color: #40a070; }
code span.bu { color: #008000; }
code span.cf { color: #007020; font-weight: bold; }
code span.ch { color: #4070a0; }
code span.cn { color: #880000; }
code span.co { color: #60a0b0; font-style: italic; }
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.do { color: #ba2121; font-style: italic; }
code span.dt { color: #902000; }
code span.dv { color: #40a070; }
code span.er { color: #ff0000; font-weight: bold; }
code span.ex { }
code span.fl { color: #40a070; }
code span.fu { color: #06287e; }
code span.im { color: #008000; font-weight: bold; }
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.kw { color: #007020; font-weight: bold; }
code span.op { color: #666666; }
code span.ot { color: #007020; }
code span.pp { color: #bc7a00; }
code span.sc { color: #4070a0; }
code span.ss { color: #bb6688; }
code span.st { color: #4070a0; }
code span.va { color: #19177c; }
code span.vs { color: #4070a0; }
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; }
</style>
<style type="text/css">
table {
border-collapse: collapse;
}
table td,
table th {
border: 1px solid #cccccc;
padding: 4px 8px;
vertical-align: top;
}
tr.cell-status-obsolete > td {
background-color: #E0E0E0;
}
tr.cell-status-obsolete > td:nth-child(2),
tr.cell-status-obsolete > td:last-child {
text-decoration: line-through;
}
</style>
</head>
<body>
<header id="title-block-header">
<h1 class="title">CLAUDE_INDEX</h1>
</header>
<h1 id="claude_index.md-thin-always-loaded-index-11.4.141">CLAUDE_INDEX.md —
Thin Always-Loaded Index (§11.4.141)</h1>
<p><strong>Purpose:</strong> ~5-8K token entry point for fresh sessions.
Full rules in <code>constitution/Constitution.md</code>. <strong>Session
state:</strong> <code>.remember/remember.md</code> (§11.4.131)</p>
<h2 id="essential-rules-one-line-each-literal-anchors-for-propagation-gates">Essential
Rules (one line each, literal anchors for propagation gates)</h2>
<ul>
<li><strong>No CI/CD pipelines</strong> — no .github/workflows/,
.gitlab-ci.yml, Jenkinsfile (§11.4.156)</li>
<li><strong>No mocks in production</strong> — mocks/stubs only in unit
tests (§11.4.27/CONST-050)</li>
<li><strong>SSH-only Git</strong> — git@github.com:… URLs, never HTTPS
(CONST-043)</li>
<li><strong>Real data for non-unit tests</strong> — real DB, real HTTP,
real containers (§11.4.27)</li>
<li><strong>100% challenge coverage</strong> — every component needs
Challenge scripts (CONST-048)</li>
<li><strong>Reproduction-before-fix</strong> — reproduce bug BEFORE
fixing (§11.4.43)</li>
<li><strong>Definition of done</strong> — pasted terminal output from
real run required (§11.4.5)</li>
<li><strong>No self-certification</strong> — “verified/tested/working”
forbidden without evidence (§11.4.6)</li>
<li><strong>Zero-bluff mandate</strong> — tests must guarantee
Quality+Completion+Usability (CONST-035/§11.4)</li>
<li><strong>No force-push</strong> — merge-onto-latest-main, never force
(§11.4.113)</li>
<li><strong>No hardcoded content</strong> — all user-facing text from
LLM/i18n/metadata (CONST-046)</li>
<li><strong>Submodule-dependency manifest</strong> — every submodule
ships helix-deps.yaml (CONST-054)</li>
<li><strong>Fetch-before-edit</strong> — git fetch –all FIRST in every
session (CONST-060)</li>
<li><strong>Subagent-driven default</strong> — fresh implementer per
task (§11.4.70)</li>
<li><strong>Zero-idle</strong> — never sit idle if work is progressable
(§11.4.94)</li>
<li><strong>CodeGraph mandatory</strong> — codegraph init + index for
all AI-agent projects (§11.4.78)</li>
</ul>
<h2 id="build-test-commands">Build & Test Commands</h2>
<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="co"># Root governance gates (from repo root)</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> no-silent-skips <span class="co"># fail on bare t.Skip()</span></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> demo-all <span class="co"># run every submodule's demo</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="ex">./setup.sh</span> <span class="co"># first-time: submodules + deps + build</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="co"># Inner application (from helix_code/)</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> build <span class="co"># → bin/helixcode</span></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> verify-compile <span class="co"># quick compile sanity</span></span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test <span class="co"># all unit tests</span></span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test-coverage <span class="co"># coverage with -race</span></span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> dev <span class="co"># build + run with dev config</span></span>
<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a><span class="co"># Full integration (real PG + Redis + Ollama)</span></span>
<span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test-infra-up <span class="co"># start docker-compose stack</span></span>
<span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test-full <span class="co"># ALL tests, ZERO skips</span></span>
<span id="cb1-16"><a href="#cb1-16" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test-infra-down <span class="co"># tear down</span></span>
<span id="cb1-17"><a href="#cb1-17" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a><span class="co"># Anti-bluff smoke</span></span>
<span id="cb1-19"><a href="#cb1-19" aria-hidden="true" tabindex="-1"></a><span class="fu">grep</span> <span class="at">-rniE</span> <span class="st">"\bsimulated\b|\bfor now\b|TODO implement"</span> helix_code/internal helix_code/cmd <span class="kw">|</span> <span class="fu">grep</span> <span class="at">-v</span> _test.go <span class="kw">|</span> <span class="fu">grep</span> <span class="at">-q</span> . <span class="kw">&&</span> <span class="bu">echo</span> <span class="st">"BLUFF"</span> <span class="kw">||</span> <span class="bu">echo</span> <span class="st">"clean"</span></span></code></pre></div>
<h2 id="anti-bluff-checklist-5">Anti-Bluff Checklist (§5)</h2>
<ul class="task-list">
<li><label><input type="checkbox"></input>No simulation/placeholder in
production code</label></li>
<li><label><input type="checkbox"></input>Real HTTP calls (not
mocked)</label></li>
<li><label><input type="checkbox"></input>Real database
operations</label></li>
<li><label><input type="checkbox"></input>Real process execution
(os/exec)</label></li>
<li><label><input type="checkbox"></input>Tests validate reality, not function
call counts</label></li>
<li><label><input type="checkbox"></input>Challenge validates
end-to-end</label></li>
<li><label><input type="checkbox"></input>No bare t.Skip() without SKIP-OK
marker</label></li>
<li><label><input type="checkbox"></input>Evidence pasted in
commit/PR</label></li>
</ul>
<h2 id="technology-stack-3.1">Technology Stack (§3.1)</h2>
<p>Go 1.26 (inner app), Gin v1.11.0, PostgreSQL 15+, Redis 7+,
golang-jwt/v4, Viper v1.21.0, Cobra v1.8.0, AWS Bedrock, Azure azcore,
Fyne v2.7.0 (desktop), tview (TUI), stretchr/testify.</p>
<h2 id="repo-layout-3.2">Repo Layout (§3.2)</h2>
<pre><code>helix_code/ # meta-repo root (governance + submodules)
├── helix_code/ # inner Go application (dev.helix.code)
├── submodules/ # owned submodules (per .gitmodules)
├── constitution/ # constitution submodule (source of truth)
├── dependencies/ # third-party submodules
├── docs/ # architecture, QA evidence, research
├── scripts/ # init, governance, gates
└── .remember/ # session resumption (§11.4.131)</code></pre>
<h2 id="current-state">Current State</h2>
<p>See <code>.remember/remember.md</code> for live HEAD, branch, queue,
and execution plan.</p>
</body>
</html>