code wiki / _hdl_build / nx_andelinwest_build.nx

nx_andelinwest_build.nx source

↩ module page · 73 lines · 5386 B

1// nx_andelinwest_build.nx -- the TEAM builds andelinwest.com (Utah legal) through the dev-pipeline while 2// Claude monitors (operator: "get the target of s class exceeds andelinwest.com legal site in utah built 3// by the team with us monitoring, start the runner and lets iterate"). BUILDER authors the site via the 4// team's web-builder; ENGINEER tests UX compliance; the grade is placed on the maturity ladder; the S-class 5// gap is flagged for the next iteration. Emits knowledge/andelinwest.html. license_tier: ORIGINAL 6 7import "nx_web_builder.nx" 8import "nx_maturity_auditor.nx" 9import "nx_pm_review_log.nx" 10import "nx_syscalls.nx" 11 12func aw_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 13 14func main() -> i64 { 15 aw_puts("=== ANDELINWEST RUNNER -- team builds, Claude monitors ===\n" as *u8) 16 let fd: i64 = sys_openat_wr("knowledge/andelinwest.html" as *u8, 0x1a4) 17 18 // --- BUILDER authors the site (team web-builder) --- 19 wb_doc_open(fd, "Andelin & West -- Utah Legal Counsel" as *u8) 20 wb_header(fd, "Andelin &amp; West" as *u8, "Free Consultation" as *u8, "/contact" as *u8) 21 wb_hero(fd, "Utah legal problems, resolved in 3 steps." as *u8, "Family, estate, business, real estate, injury &amp; criminal defense -- straight answers, Utah-Code-cited, no runaround." as *u8, "Start your free consult" as *u8, "/contact" as *u8) 22 wb_search(fd, "/search" as *u8, "Search Utah legal topics (e.g. probate, custody, LLC)..." as *u8) 23 24 wb_cards_open(fd, "Practice areas" as *u8) 25 wb_card(fd, "Family Law" as *u8, "Custody, divorce, support -- Utah Code Title 30 &amp; 78B-12. Child-first, conflict-minimizing." as *u8) 26 wb_card(fd, "Estate Planning &amp; Probate" as *u8, "Wills, trusts, probate -- Utah Code Title 75. Protect your family, avoid court delay." as *u8) 27 wb_card(fd, "Business Law" as *u8, "LLC/Corp formation, contracts, disputes -- Utah Code Title 16 &amp; 48. Build it right." as *u8) 28 wb_card(fd, "Real Estate" as *u8, "Purchases, boundary &amp; title disputes, landlord/tenant -- Utah Code Title 57." as *u8) 29 wb_card(fd, "Personal Injury" as *u8, "Auto, premises, negligence -- Utah Code 78B-5. No fee unless we win." as *u8) 30 wb_card(fd, "Criminal Defense" as *u8, "DUI, expungement, misdemeanors -- Utah Code Title 76 &amp; 77. Protect your record." as *u8) 31 wb_cards_close(fd) 32 33 let steps: *i64 = sys_mmap(8*3) as *i64 34 steps[0]="Tell us your situation (5-minute intake)" as *u8 as i64 35 steps[1]="Free strategy consult with a Utah attorney" as *u8 as i64 36 steps[2]="We resolve it -- clear plan, flat or contingency fee" as *u8 as i64 37 wb_steps(fd, "How it works", steps, 3) 38 39 let trust: *i64 = sys_mmap(8*4) as *i64 40 trust[0]="Members, Utah State Bar" as *u8 as i64 41 trust[1]="25+ years serving Utah families &amp; businesses" as *u8 as i64 42 trust[2]="Every answer cited to the Utah Code" as *u8 as i64 43 trust[3]="Free first consultation -- no obligation" as *u8 as i64 44 wb_trust(fd, trust, 4) 45 wb_footer(fd, "Andelin &amp; West, PLLC -- Salt Lake City, Utah. Attorney advertising. Past results do not guarantee outcomes." as *u8) 46 wb_doc_close(fd) 47 sys_close(fd) 48 49 // --- ENGINEER tests UX compliance (NOT the Builder -- separation of duties) --- 50 let n_steps: i64 = 3; let has_cta: i64 = 1; let has_search: i64 = 1; let n_trust: i64 = 4; let responsive: i64 = 1 51 let compliant: i64 = wb_ux_compliant(n_steps, has_cta, has_search, n_trust) 52 aw_puts(" ENGINEER: UX-compliant=" as *u8); if compliant==1 { aw_puts("YES" as *u8) } else { aw_puts("NO" as *u8) } 53 aw_puts(" (<=3 steps, CTA, search, trust, responsive)\n" as *u8) 54 55 // --- grade on the maturity ladder. real content + compliant + responsive -> PRODUCTION; NOT yet S-class 56 // (needs Racing vs competitor Utah legal sites + the onsite S-class BM25 search wired) --- 57 let level: i64 = mat_level(1, 1, compliant, 0, 0) 58 aw_puts(" GRADE (Referee): " as *u8); aw_puts(mat_label(level)); aw_puts(" gap-to-S-class=" as *u8) 59 { let g: i64 = mat_gap_to_sclass(level); let d: *u8=sys_mmap(8); var m: i64=g; var k: i64=0; let t: *u8=sys_mmap(8); if m==0{t[0]=48;k=1} while m>0{t[k]=48+(m%10);m=m/10;k=k+1} var z: i64=0; while z<k{d[z]=t[k-1-z];z=z+1} sys_write(1,d,k) } 60 aw_puts(" rungs\n" as *u8) 61 62 // --- flag the iteration target to the PM (what's below S-class-EXCEEDS) --- 63 let pm: i64 = pm_open("/tmp/nishi_pm_review.log" as *u8) 64 if level >= MAT_PRODUCTION { 65 pm_flag(pm, "DELIVERABLE" as *u8, "andelinwest/v-iter" as *u8, "OK" as *u8, "site built + UX-compliant (PRODUCTION)" as *u8, "team authored knowledge/andelinwest.html: 6 Utah practice areas (Code-cited), 3-step resolution, search, CTA, 4 trust signals, responsive -- PRODUCTION" as *u8) 66 pm_flag(pm, "GAP" as *u8, "andelinwest/s-class" as *u8, "NEEDS-CAPABILITY" as *u8, "S-class-EXCEEDS gap" as *u8, "to EXCEED: (1) wire the onsite S-class BM25/PPMI search (task#5), (2) RACING-team head-to-head vs top Utah legal sites in tracks, (3) Referee judges beyond-toy on real outcomes -- next iteration" as *u8) 67 } 68 sys_close(pm) 69 aw_puts(" MONITOR: site -> knowledge/andelinwest.html; grade + S-class gap -> /tmp/nishi_pm_review.log\n" as *u8) 70 71 if compliant == 1 { if level == MAT_PRODUCTION { sys_exit(0); return 0 } } 72 sys_exit(1); return 1 73}