code wiki / _hdl_build / nx_project_roadmap.nx
nx_project_roadmap.nx source
↩ module page · 39 lines · 2597 B
1// nx_project_roadmap.nx -- FLAG A PROJECT, the team generates + works its OWN L8->L0 roadmap
2// (operator: close the black-box loop -- flag andelinwest.com, the team works through it by
3// benchmarking; clone the team across many projects, each returns its experiences and we ingest them
4// to grow project-based AND operationally). This is the REUSABLE functionality: the same machinery
5// scoped to any project. Per project it computes progress (gate-driven), the next build (deepest
6// TODO, bits-up), and whether the project has reached a BS-checked S-class exceed. Across projects it
7// AGGREGATES (the shadow-clones return and ingest) so operational data compounds. RACI: PM emits per
8// project, Builder works the next item, Examiner grades, Council flags LLM-gaps. license_tier: ORIGINAL.
9
10import "nx_roadmap.nx" // rm_progress / rm_next -- the per-project roadmap machinery
11
12// ---- per project (the project's own item arrays: layer[], gate_passed[]) ----
13func proj_progress(n: i64, gate_passed: *i64) -> i64 { return rm_progress(n, gate_passed) }
14func proj_next(n: i64, layer: *i64, gate_passed: *i64) -> i64 { return rm_next(n, layer, gate_passed) }
15
16// has the project reached S-class? (>=1 BS-verified exceed for THIS project).
17func proj_at_sclass(sclass_verified_count: i64) -> i64 { if sclass_verified_count >= 1 { return 1 } return 0 }
18
19// ---- across projects (shadow-clones return + ingest -> operational growth) ----
20func proj_agg_sum(np: i64, vals: *i64) -> i64 { var s: i64 = 0; var i: i64 = 0; while i < np { s = s + vals[i]; i = i + 1 } return s }
21
22// aggregate progress across the fleet (total gated-green items / total items).
23func proj_agg_progress(np: i64, done: *i64, total: *i64) -> i64 {
24 let d: i64 = proj_agg_sum(np, done); let t: i64 = proj_agg_sum(np, total)
25 if t <= 0 { return 0 }
26 return (d * 1000) / t
27}
28
29// total S-class exceeds across the fleet, and a combined experience tally (data points ingested).
30func proj_total_sclass(np: i64, sclass: *i64) -> i64 { return proj_agg_sum(np, sclass) }
31func proj_total_experience(np: i64, experience: *i64) -> i64 { return proj_agg_sum(np, experience) }
32
33// the fleet's leading project for a target (most progress that still has a next build) -- where to
34// focus, or which clone's experience to mine first. returns the project index with max progress < 1000.
35func proj_fleet_focus(np: i64, progress: *i64) -> i64 {
36 var best: i64 = 0 - 1; var bp: i64 = 0 - 1; var i: i64 = 0
37 while i < np { if progress[i] < 1000 { if progress[i] > bp { bp = progress[i]; best = i } } i = i + 1 }
38 return best
39}