#4 Code tab: index, files/raw, clone chain, snapshots
Context: First visible milestone. Depends on #2 scaffold + #3 gitx (+ R1 markdown for README). Tasks:
index.html: header (name, description, clone cmd w/ resolution flag>origin>none, branch+short sha, f0rge counts stub0until m3, CI verdict stub), file tree, README rendered to HTML. README chain (f0rge convention, READMEs live in wiki): root README.md>readme.md>README, else .forge/wiki/README.md>.forge/wiki/readme.md, else none./files/<path>.html: dir listing + parent link; file view escaped<pre>+ line numbers + raw link; markdown files rendered; binary/>256KB placeholder + download./raw/<path>byte-identical copies;repo.bundle+repo.tar.gzlinked with sizes.- Counts (issues/prs) read as
0with TODO marker wired to m3 readers (no dup logic later). Success rubric (dod §Site code-tab lines): -
Dogfood build of this repo renders;
file://+python -m http.serverboth fine, JS off. -
<script>in a fixture source file shows as text, not executed. -
diff <(git show) <(raw copy)clean on 10 sampled files; >256KB file shows placeholder. -
Clone chain verified: flag URL shown when passed; bundle clones; tarball extracts.
Swarm: Owl. Branch
m1/code-tab. Supervisor spot-checks escaping.
Security (from R1 spike docs/deps-decision.md): pulldown-cmark passes raw HTML through — map Html/InlineHtml events to escaped output. Diffs/logs never go through markdown (escaped <pre> only).
Uunknown ·
Merged PR c455884a (m1/code-tab): 25 tests, dogfood 49 files, raw byte-identical, hostile <script> escaped, bundle clones + tarball extracts. CI pass. M1 COMPLETE. Rubric verified.