Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7230591
wip: restructure — extract Flutter UI to app/ with scaffold submodule…
Super-Genius Aug 11, 2026
9ac490b
docs: capture exploration — GCS chat architecture
Super-Genius Aug 16, 2026
b9aefb2
docs: expand GCS chat architecture — spaces, room invites, auto-join …
Super-Genius Aug 16, 2026
4b90fdd
docs: add membership types and moderation model to GCS chat architecture
Super-Genius Aug 16, 2026
7fd16da
docs: add extension model — genius-tube as superset of gcs-chat-core
Super-Genius Aug 16, 2026
713295f
docs: start milestone v1.0 GCS Chat — PROJECT.md, MILESTONES.md, REQU…
Super-Genius Aug 16, 2026
d684180
docs: create milestone v1.0 roadmap (7 phases) — Phase 1 includes cro…
Super-Genius Aug 16, 2026
40eb5f9
docs: tag 2 pending todos with resolves_phase after v1.0 roadmap
Super-Genius Aug 16, 2026
e2283b5
docs: fix Phase 1 — all 5 platforms (macOS, Linux, Windows, iOS, Andr…
Super-Genius Aug 16, 2026
7b80a5f
docs(01): capture phase context
Super-Genius Aug 16, 2026
54ed0bc
docs(state): record phase 1 context session
Super-Genius Aug 16, 2026
8b26e97
docs(1): research phase 1 foundation domain
Super-Genius Aug 16, 2026
ca58617
docs(phase-1): add validation strategy
Super-Genius Aug 16, 2026
ccbaaea
fix(01): revise phase 1 plans based on checker feedback
claude Aug 16, 2026
b66cff4
docs(01): create phase plan
Super-Genius Aug 16, 2026
346c646
wip for app-restructure
Super-Genius Aug 17, 2026
c00aa36
Compilation fixes
itsafuu Aug 19, 2026
d229193
chore: bump GNUS-NEO-SWARM for SGProcessing bridge fixes and test ven…
itsafuu Aug 21, 2026
418c475
Bump neo swarm
itsafuu Aug 21, 2026
c916f36
docs(260825-pgu): pre-dispatch plan for MNN sgfp4-pivot / GNUS-NEO-SW…
itsafuu Aug 25, 2026
f1a6b46
docs(260825-pgu): SGFP4 integration evaluation report
itsafuu Aug 25, 2026
fb81353
docs(quick-260825-pgu): Evaluate MNN sgfp4-pivot FP4 implementation i…
itsafuu Aug 25, 2026
698abd7
docs(quick-260825-pgu): re-evaluate MNN sgfp4-pivot after phases 5-12…
itsafuu Sep 2, 2026
5356fee
Merge origin/develop into dev_phase04
itsafuu Sep 3, 2026
cc6280f
fix(app): align gcs_storage/gcs_core with current GeniusSDK API and C…
itsafuu Sep 3, 2026
c4176cd
chore: point GNUS-NEO-SWARM at develop tip (d3f941c)
itsafuu Sep 3, 2026
b3ef131
Vulkan discovery
itsafuu Sep 18, 2026
4a7982b
Submodule bump
itsafuu Sep 18, 2026
b63b61e
Merge remote-tracking branch 'origin/develop' into dev_phase04
itsafuu Sep 21, 2026
341584b
fix(submodule): restore scaffold pin to pushed commit 6016e3f — devel…
itsafuu Sep 21, 2026
62e6326
fix(storage): repair auto-merge corruption in gcs_global_db.cpp Initi…
itsafuu Sep 21, 2026
3cc81b9
ci: manual dispatch controls, AlmaLinux 8 migration, tag-release race…
itsafuu Sep 21, 2026
d4ed6b6
ci+build: explicit zkLLVM download step and consumer-side libsecret d…
itsafuu Sep 21, 2026
45321a3
ci+ffi: fix Linux test failures - keyring capability and MNN double r…
itsafuu Sep 21, 2026
d9eaa33
ci: decouple dependency downloads from the dispatch tag input
itsafuu Sep 23, 2026
086ae2c
fix(build): pin zlib to the vendored static lib before any module-mod…
itsafuu Sep 23, 2026
ce9ac9c
ci+build: fix follow-on failures from run 35810498890
itsafuu Sep 23, 2026
555c69c
refactor(build): replace the zlib cache-variable bridge with PREFER_C…
itsafuu Sep 23, 2026
4bb1d9c
fix(ci): define download_with_retry in every download step
itsafuu Sep 23, 2026
66325a6
fix(build): close the libsecret guard's missing endif
itsafuu Sep 23, 2026
a993c6d
fix(build): move the libsecret phantom-path override after all SuperG…
itsafuu Sep 23, 2026
603dddf
fix(build): rewrite the libsecret fix against INTERFACE_LINK_LIBRARIES
itsafuu Sep 23, 2026
1e55392
fix(build): repoint each phantom libsecret dep at its own library
itsafuu Sep 23, 2026
3223787
fix(ci): actually wipe the workspace on self-hosted container jobs
itsafuu Sep 23, 2026
25eb983
ci: adopt SuperGenius's cleanup step shape (runner.workspace + named …
itsafuu Sep 23, 2026
d6f8700
ci: also rm -rf the four dep dirs at workspace level in cleanup
itsafuu Sep 23, 2026
396ceec
Merge remote-tracking branch 'origin/develop' into dev_phase04
itsafuu Sep 23, 2026
8908516
fix(ci): deploy vulkan-1.dll and gcs_ffi.dll next to Windows test exes
itsafuu Sep 23, 2026
a5e5d68
fix(test): skip static teardown in SDK-node-booting test binaries
itsafuu Sep 23, 2026
2301925
fix(test): inject in-memory secure storage for node-booting tests
itsafuu Sep 23, 2026
909a02e
fix(test): own main for test_gcs_ffi - embedded node boots via gcs_init
itsafuu Sep 23, 2026
e4ae25b
ci: apt-get update before apt install on hosted Ubuntu runners
itsafuu Sep 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
486 changes: 371 additions & 115 deletions .github/workflows/cmake.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Quick Task 260825-pgu: Evaluate MNN sgfp4-pivot FP4 implementation integration with GNUS-NEO-SWARM neo workspace FP4 codec and SGProcessingManager verification layer; assess MNN-side implementation quality; scope potential new GNUS-NEO-SWARM workstream for required updates - Context

**Gathered:** 2026-08-25
**Status:** Ready for planning

<domain>
## Task Boundary

Evaluate how MNN's `sgfp4-pivot` workstream (implementing the FP4 codec described in
`.planning/sgfp4-arxiv-v2.{pdf,txt}` at `W:\gnus\GeniusNetwork\thirdparty\MNN`) integrates
with GNUS-NEO-SWARM's own FP4 implementation (`GNUS-NEO-SWARM/src/core/fp4/fp4_codec.*`)
and the SGProcessingManager/SuperGenius verification layer that sits between
GeniusCognitiveSystem and MNN (`GNUS-NEO-SWARM/src/core/sgprocessing/*`). Assess how well
the MNN side of sgfp4-pivot was executed (architecture, phase completion, test coverage,
fidelity to the arxiv spec). Determine whether GNUS-NEO-SWARM's FP4 codec is compatible
with / already updated for MNN's current sgfp4-pivot output, and identify concrete gaps.

</domain>

<decisions>
## Implementation Decisions

### Deliverable scope
- Produce a written evaluation report only. Do NOT scaffold a new GSD workstream as part
of this quick task.
- If the evaluation concludes a new workstream is warranted (to track GeniusCognitiveSystem
/ SuperGenius / SGProcessingManager updates needed to catch up with MNN's sgfp4-pivot),
the report must say so explicitly and recommend it as a follow-up — but must not create
the workstream files itself.

### Workstream location (if/when created later, as a follow-up — not in this task)
- Should live as a new top-level entry under `GeniusCognitiveSystem/.planning/workstreams/`
(sibling to the existing `neo` / `neo-poc` entries), pointing at the GNUS-NEO-SWARM
submodule the same way `.planning/workstreams/neo/config.json` does — not nested inside
`GNUS-NEO-SWARM/.planning/workstreams/`.

### Claude's Discretion
- Report structure/format (sections, level of technical depth) is left to the planner/
researcher — organize around: MNN-side quality assessment, GNUS-NEO-SWARM FP4 codec
compatibility, SGProcessingManager verification-layer implications, and a clear
yes/no recommendation on the new workstream with rationale.

</decisions>

<specifics>
## Specific Ideas

Known landscape from initial recon (for the researcher to verify/expand, not to take on faith):
- MNN: `.planning/workstreams/sgfp4-pivot/{REQUIREMENTS,ROADMAP,STATE}.md` with 4 phases
(affine dual-mode decode core CPU uniform layouts; adaptive quadtree layout CPU mixed;
Vulkan decode uniform layouts; Vulkan decode adaptive quadtree mixed layouts).
- MNN: `.planning/quick/260821-p1q-evaluate-current-fp4-ultra-fp4-implement/SGFP4-PIVOT-ANALYSIS.md`
and `.planning/quick/260825-backfill-sgfp4-pivot-phase2-completion/` — recent related
quick-task history worth reading directly.
- GNUS-NEO-SWARM: `src/core/fp4/fp4_codec.{cpp,hpp}`, `src/core/sgprocessing/{sg_processing_bridge,tensor_interpreter}.{cpp,hpp}`,
`test/core/test_fp4_codec.cpp`, `test/integration/test_sgprocessing_pipeline.cpp`.
- Recent GNUS-NEO-SWARM history (per top-level git log) includes "SGProcessing bridge fixes
and test vendoring" (commit d229193) — worth checking whether this already accounts for
MNN's current sgfp4-pivot state.

</specifics>

<canonical_refs>
## Canonical References

- `W:\gnus\GeniusNetwork\thirdparty\MNN\.planning\sgfp4-arxiv-v2.txt` (and `.pdf`) — the FP4 spec MNN's sgfp4-pivot implements.
- `W:\gnus\GeniusNetwork\thirdparty\MNN\.planning\workstreams\sgfp4-pivot\{REQUIREMENTS,ROADMAP,STATE}.md`
- `GeniusCognitiveSystem\.planning\workstreams\neo\config.json` — pattern to follow if/when a new workstream is scaffolded later.

</canonical_refs>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
---
phase: quick-260825-pgu
plan: 01
type: execute
wave: 1
depends_on: []
files_modified:
- .planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md
autonomous: true
requirements:
- QUICK-260825-pgu-evaluate-mnn-sgfp4-pivot
must_haves:
truths:
- "EVALUATION.md exists and delivers a decision-oriented synthesis (not a copy) of RESEARCH.md."
- "The report leads with the three-FP4-formats clarification and the 'SGFP4 is weight-compression, not an input format' distinction."
- "The report gives an explicit MNN-side quality verdict, GNUS-NEO-SWARM compatibility status, and SGProcessingManager verification-layer implications."
- "The report gives an explicit CONDITIONAL yes/no workstream recommendation and, if warranted, sites it as a new top-level GeniusCognitiveSystem/.planning/workstreams/ entry mirroring the neo config.json pattern — as a recommendation only."
- "The report lists concrete follow-up items (dead-code cleanup, stale-test fixes, ownership reconciliation) without executing any of them."
artifacts:
- ".planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md"
key_links:
- "Recommendation is grounded in the three-formats distinction and the weight-compression-vs-input-format finding, not in version drift."
- "No new workstream/config.json/ROADMAP files are created; recommendation is prose only."
---

<objective>
Synthesize the completed research (`260825-pgu-RESEARCH.md`) into a single, decision-oriented
evaluation document at `260825-pgu-EVALUATION.md`. The evaluation assesses (a) how well MNN's
`sgfp4-pivot` workstream was executed, (b) whether GNUS-NEO-SWARM's FP4 codec / SGProcessing
verification layer are compatible with MNN's current SGFP4 output, and (c) whether a new
GeniusCognitiveSystem workstream is warranted to close the gap.

Purpose: Give the developer a clear, evidence-backed verdict and an actionable conditional
recommendation, so the decision on whether to open a new workstream can be made without
re-reading two full codebases.

Output: `.planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md`

This is a WRITE-ONLY task. Per the locked CONTEXT.md decision it MUST NOT create or scaffold a
new workstream (no `.planning/workstreams/` entry, no `config.json`, no `ROADMAP.md`) — a
workstream may only be *recommended* in the report. It MUST NOT make any code changes to
GNUS-NEO-SWARM or MNN (no deleting orphaned `fp4_codec`, no fixing stale tests) — those are
follow-up items to be *listed* as recommendations, not executed.
</objective>

<execution_context>
@$HOME/.claude/gsd-core/workflows/execute-plan.md
</execution_context>

<context>
@.planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-CONTEXT.md
@.planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-RESEARCH.md

# The research is complete and evidence-based (both codebases read in full, concrete
# file:line evidence). Do NOT re-open the codebases to redo research — synthesize from
# RESEARCH.md. Consult a source file only to confirm a single load-bearing quote if needed.
</context>

<tasks>

<task type="auto">
<name>Task 1: Write the SGFP4 integration evaluation report</name>
<files>.planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md</files>
<action>
Write a decision-oriented evaluation that synthesizes (does not copy) `260825-pgu-RESEARCH.md`
into a document a decision-maker can act on. Preserve the concrete file:line evidence from the
research as support, but restructure around decisions rather than around the research's Q1-Q5
question order.

Use this section structure (exact H2 headings, since the verify step greps for them):

1. `# SGFP4 Integration Evaluation` — title + one-line framing (date 2026-08-25).

2. `## Verdict at a Glance` — a 4-6 bullet TL;DR. Must state up front: MNN sgfp4-pivot is
high-quality and complete; GNUS-NEO-SWARM is NOT compatible and does not reference SGFP4;
the codec in GNUS-NEO-SWARM is orphaned NF4 dead code; and the workstream recommendation is
CONDITIONAL on a scoping decision (defined below).

3. `## The Three FP4 Formats` — LEAD the technical body with this. Explain the three distinct,
mutually-incompatible "FP4" formats and why conflating them is the central risk:
(a) GNUS-NEO-SWARM `fp4_codec` NF4-style non-uniform LUT (orphaned dead code);
(b) MNN E2M1 "Ultra FP4" behind `InputFormat::FP4_ULTRA` (the only live cross-repo FP4 path);
(c) MNN SGFP4 v2 affine dual-mode (FP4_AFFINE + T158 ternary) quadtree from the arxiv spec.
Include the key distinction that reframes the whole evaluation: SGFP4 is a MODEL-WEIGHT
compression format decoded inside MNN's graph via the `OpType_SGFP4Dequant` sidecar op — NOT
an input-tensor decode path like `dequant_fp4_packed_cpu`. State that most of the apparent
integration gap dissolves or refocuses once this is understood. Use the comparison table from
RESEARCH.md Q2 (code space / reconstruction / scale granularity / nibble order / container /
dual-mode) to make the incompatibility concrete.

4. `## MNN-Side Implementation Quality` — deliver the verdict: HIGH quality, genuinely complete
for its locked v2-only scope. Summarize the phase-completion evidence (all 4 phases in real
source with tests; Phase 4 verified on live RTX 4070 Ti SUPER hardware), fidelity to
`sgfp4-arxiv-v2.txt` (affine w = S·c + bias, FP16 packed S+bias, self-framed 'SGF4' stream,
5 uniform layouts + MIXED quadtree, bounds-checked), and test coverage. Then list the minor
red flags as a bulleted list, each labeled as doc-hygiene vs. deferred-perf vs. test-breadth:
stale REQUIREMENTS.md checkboxes, missing 02-VERIFICATION.md, the unrelated FP4ModelTest.cpp
build blocker, single true LAYOUT_MIXED GPU fixture, and the correctness-first (not perf-tuned)
Vulkan per-thread re-walk. Make explicit that NONE of these block correctness.

5. `## GNUS-NEO-SWARM Compatibility` — verdict: NOT compatible and not trying to be. Explain that
`fp4_codec` is a third, unrelated NF4 format (the exact format the SGFP4 paper explicitly
rejects), that it is self-flagged orphaned dead code (D-13; consumer removed in commit
`8ee7fa4`), and that a grep for `sgfp4|affine|quadtree|t158` across GNUS-NEO-SWARM `src`
returns nothing. Conclude that the incompatibility is architectural (different integration
surface), not version drift.

6. `## SGProcessingManager Verification-Layer Implications` — explain that the verification layer
lives in SuperGenius/SGProcessingManager (not in the GNUS-NEO-SWARM files read), that the
bridge is a thin client and TensorInterpreter only ever sees already-dequantized FLOAT32, and
that there is NO silent-mis-verify risk today because no `InputFormat::SGFP4` enum exists — an
SGFP4 job simply cannot be expressed and would be rejected at the format gate. Surface the two
unresolved / flagged items honestly: (a) the FP4_ULTRA live-decode-vs-stub ambiguity (MEDIUM
confidence, SuperGenius repo not read this session) and (b) the stale, self-contradicting
`test_sg_connectivity.cpp` fp4_ultra assertion (static inference, not executed). Note SGFP4 is
a separate concern from FP4_ULTRA — resolving the E2M1 wiring does NOT address SGFP4.

7. `## Integration Gaps` — present the two conditional gap sets from RESEARCH.md Q4 as clearly
separated lists: "If SGFP4 stays a model-weight concern (likely correct reading)" (MNN build
must include `OpType_SGFP4Dequant` + `MNN_SUPPORT_TRANSFORMER_FUSE`; model export to SGFP4
sidecars belongs to gnus-poc; bridge/interpreter need little-to-no change; orphaned `fp4_codec`
should be deleted) vs. "Additionally, if GCS/SuperGenius must speak SGFP4 as an input/wire
format" (new `InputFormat::SGFP4_V2`, new format-map cases, new ProcessingManager/MNN_Tensor
validation branch, and the arxiv §8 verifiable-execution/attestation story which has no anchor
anywhere yet). Also call out the ownership-reconciliation gap: GCS `neoswarm/ROADMAP.md:173`
still assigns SGFP4 GPU decode shaders to GNUS-NEO-SWARM, but MNN already built them — that
roadmap row is now duplicative/obsolete and needs an explicit decision.

8. `## Workstream Recommendation` — give an EXPLICIT CONDITIONAL recommendation, not an
unconditional one. State the condition as a scoping decision the developer must make:
- If the goal is "run SGFP4-quantized models through MNN via the existing SGProcessing path":
a dedicated workstream is NOT warranted — it is a handful of quick tasks (confirm/bump the
linked MNN build to include `OpType_SGFP4Dequant`; add SGFP4 export in gnus-poc; one
end-to-end SGFP4-weighted-model test; a cleanup task for the orphaned NF4 codec + two stale
tests).
- If the goal is the full cross-repo story (GCS/SuperGenius speaking SGFP4 as a first-class
format and/or wiring the arxiv §8 verifiable-execution/attestation use case): YES, a
dedicated workstream IS warranted — it spans three repos with real sequencing/dependencies
and touches the reputation/consensus verification layer.
Include the non-binding P1-P4 phase sketch from RESEARCH.md Q5 for the full-workstream case.
Then state the SITING recommendation explicitly and as a recommendation ONLY: if/when created
later, it should live as a new top-level `GeniusCognitiveSystem/.planning/workstreams/` entry
(sibling to `neo`/`neo-poc`), pointing at the GNUS-NEO-SWARM submodule the same way
`.planning/workstreams/neo/config.json` does (submodule + planning_root + workstream_name),
NOT nested inside `GNUS-NEO-SWARM/.planning/workstreams/`. Add an explicit sentence stating
this task does NOT create that workstream and only recommends it.

9. `## Recommended Follow-Ups` — a checklist of concrete, listed-not-executed items: delete
orphaned `fp4_codec.{hpp,cpp}` + `test/core/test_fp4_codec.cpp`; fix the stale
`test_sg_connectivity.cpp` fp4_ultra assertion; reconcile the ROADMAP SGFP4-shader ownership
row; resolve the FP4_ULTRA live-vs-stub ambiguity against the SuperGenius repo; MNN-side doc
hygiene (REQUIREMENTS.md checkboxes, missing 02-VERIFICATION.md). Prefix the section with one
sentence stating these are recommendations for future work and are intentionally NOT performed
in this evaluation task.

10. `## Confidence and Caveats` — carry forward the research's confidence posture: HIGH on both
codebases' source and the three-formats finding; MEDIUM on SuperGenius/SGProcessingManager
internals (repo not read this session); the FP4_ULTRA live-vs-stub ambiguity is unresolved;
the stale-test failure is a static inference; no builds or tests were run.

Writing constraints:
- Synthesize and reorganize around decisions; do not paste RESEARCH.md verbatim. Keep concrete
file:line evidence as inline support where it strengthens a claim.
- Do NOT use scope-reduction language (no "v1/v2 simplification", "for now", "placeholder") when
describing the recommendation — split the recommendation by scope condition as instructed above.
- Honor CONTEXT.md locked decisions: report only; recommend the workstream, do not create it;
list follow-ups, do not execute them. Do not touch any file other than the EVALUATION.md.
</action>
<verify>
<automated>f=".planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md"; test -f "$f" || { echo "MISSING FILE"; exit 1; }; for h in "The Three FP4 Formats" "MNN-Side Implementation Quality" "GNUS-NEO-SWARM Compatibility" "Verification-Layer Implications" "Integration Gaps" "Workstream Recommendation" "Recommended Follow-Ups"; do grep -q "$h" "$f" || { echo "MISSING HEADING: $h"; exit 1; }; done; grep -qi "conditional" "$f" || { echo "MISSING conditional recommendation"; exit 1; }; grep -q "workstreams/neo" "$f" || { echo "MISSING neo config siting reference"; exit 1; }; test ! -e .planning/workstreams/sgfp4 || { echo "ERROR: workstream was scaffolded (forbidden)"; exit 1; }; echo "OK"</automated>
</verify>
<done>
`260825-pgu-EVALUATION.md` exists with all ten required sections; leads with the three-formats
clarification and the weight-compression-vs-input-format distinction; states the MNN quality
verdict (HIGH/complete), the GNUS-NEO-SWARM incompatibility (orphaned NF4 dead code), the
verification-layer implications, the two conditional gap sets, and an explicit CONDITIONAL
workstream recommendation with the top-level `.planning/workstreams/` siting stated as a
recommendation only. No workstream files, config.json, ROADMAP.md, or code changes were created.
</done>
</task>

</tasks>

<verification>
- `260825-pgu-EVALUATION.md` exists and contains all required H2 sections (automated grep).
- Recommendation is explicitly conditional and cites the neo `config.json` siting pattern.
- No new `.planning/workstreams/` entry, `config.json`, or `ROADMAP.md` was created.
- No source files in GNUS-NEO-SWARM or MNN were modified (git status shows only the new
EVALUATION.md under the quick-task directory).

Note: No `<threat_model>` — this plan produces a single Markdown document with no code, no
package installs, and no runtime attack surface, so STRIDE analysis is not applicable.
</verification>

<success_criteria>
- A single evaluation document synthesizes the research into an actionable, decision-oriented
verdict covering all five required dimensions plus a conditional workstream recommendation.
- The locked CONTEXT.md decisions are honored: report only, recommend-don't-create the
workstream, list-don't-execute the follow-ups.
</success_criteria>

<output>
Write `.planning/quick/260825-pgu-evaluate-mnn-sgfp4-pivot-fp4-implementat/260825-pgu-EVALUATION.md`.
(No SUMMARY file required for this quick task unless the quick orchestrator requests one.)
</output>
Loading
Loading