-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
executable file
·3740 lines (2865 loc) · 137 KB
/
Justfile
File metadata and controls
executable file
·3740 lines (2865 loc) · 137 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 🚀 Cryptlz Dashboard Launcher & Testing - Justfile
#
# 🚨 IMPORTANT: WE USE PODMAN + K8S ONLY - NOT DOCKER!
# - All container operations use PODMAN
# - Docker is BANNED from this project
# - See PODMAN_ONLY.md for full policy
# - See docs/k8s-testing/K8S_DNS_SERVICE_DISCOVERY_ARCHITECTURE.md for K8s patterns
# Default recipe
default:
@just --list
# 🏗️ Build All 7 Pillars and Import to K3s
build-pillars:
./scripts/k3s/build-7-pillars.sh
# --- 🛡️ PROJECT CONSTITUTION GATES ---
# 🛡️ Run Fortress BDD Invariants
bdd:
@bash -lc 'source scripts/env/use-dreamfields.sh gemini && CARGO_TARGET_DIR=/mnt/Dreamfields/rust-builds/gemini cargo test -p vault-testing-bdd'
# 🧠 Evaluate Amoeba Trust Matrix
amoeba-eval:
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin eval-rules -- \
--rules conductor/virtual-team/amoeba/rules.json \
--signals amoeba/signals.json \
--out amoeba/decision.json
@cat amoeba/decision.json
# 🚀 Emit automated Q-Yoke from decision
amoeba-emit:
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin emit-qyoke -- \
--decision amoeba/decision.json \
--out-dir conductor/virtual-team/amoeba/yokes/
# 🔍 Full Amoeba Scan (Diff + Boundary + Eval)
amoeba-scan:
@mkdir -p amoeba
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin diff-scan -- --out amoeba/signals.json
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin boundary-check -- --out amoeba/signals.json
@just amoeba-eval
@just amoeba-emit
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin constitution-guard -- --skip-scan
# 🛡️ Constitution Guard - Autonomous Remediation Gate
amoeba-guard:
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin constitution-guard
# 🛡️ Boundary Sovereignty Audit (Diamond³ Wonder Test)
boundary-sovereignty-audit:
@bash -c 'source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin boundary-sovereignty-auditor'
# 🛡️ Boundary Sovereignty Audit (JSON Output for Agents)
boundary-sovereignty-audit-json out_path="boundary_audit.json":
@bash -c 'source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin boundary-sovereignty-auditor -- --json --out {{out_path}}'
# --- 🧪 CI LANE RECIPES (from justfiles/ci.just) ---
import 'justfiles/searchlight.just'
# 🛡️ Iron Core Sentinel - Regression Gate (P0)
sentinel:
@./scripts/ci/iron-core-sentinel.sh
# Run all high-performance Rust CI gates (All-in-one)
ci-gate-keeper-all:
@bash -c 'source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin gate-keeper -- all'
# 🧪 Rainbow Shakeout (Phase 1) - Full Pillar Validation
rainbow-shakeout-p1:
@just --justfile justfiles/deploy.just rainbow-shakeout-p1
# 🛡️ Ultimate Protection System: Launch K3s Cloud Backend (Pop)
launch-ultimate-protection-pop:
@bash scripts/ops/launch-ultimate-protection-pop.sh
# 🛡️ Ultimate Protection System: Launch Tauri Client (K3s-Connected)
ci-crate-doc-sync-gate:
@just --justfile justfiles/ci.just ci-crate-doc-sync-gate
# Crate documentation sync gate (strict mode)
ci-crate-doc-sync-gate-strict:
@just --justfile justfiles/ci.just ci-crate-doc-sync-gate-strict
# Crate documentation sync gate (fix mode - automatically aligns READMEs)
ci-crate-doc-sync-gate-fix:
@bash -c 'source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin doc-sync-gate -- --fix'
# Doc tests gate (report mode)
ci-doc-tests-gate:
@just --justfile justfiles/ci.just ci-doc-tests-gate
# Doc tests gate (strict mode)
ci-doc-tests-gate-strict:
@just --justfile justfiles/ci.just ci-doc-tests-gate-strict
# Run doc tests locally (convenience command)
doc-tests:
@just --justfile justfiles/ci.just doc-tests
# Deny-patterns security gate
ci-deny-patterns-check:
@just --justfile justfiles/ci.just ci-deny-patterns-check
@just lint-standards
# 🛡️ standards-lint: Enforce PROTOG/SEC security standards
lint-standards:
@source scripts/env/use-dreamfields.sh gemini && cargo run --release -p vault-cli-ops-tools --bin gate-keeper -- hardening
# Deny-patterns gate with single strict ML policy checkpoint
ci-deny-patterns-check-ml-policy-strict:
@just --justfile justfiles/ci.just ci-deny-patterns-check-ml-policy-strict
# Deny-patterns gate via ML strict policy preset wrapper
ci-deny-patterns-check-ml-policy-preset:
@just --justfile justfiles/ci.just ci-deny-patterns-check-ml-policy-preset
# AI usage policy gate (report mode)
ci-ai-policy-gate:
@just --justfile justfiles/ci.just ci-ai-policy-gate
# AI usage policy gate (strict mode)
ci-ai-policy-gate-strict:
@just --justfile justfiles/ci.just ci-ai-policy-gate-strict
# MCP doc consistency gate (report mode)
ci-mcp-doc-consistency:
@just --justfile justfiles/ci.just ci-mcp-doc-consistency
# MCP doc consistency gate (strict mode)
ci-mcp-doc-consistency-strict:
@just --justfile justfiles/ci.just ci-mcp-doc-consistency-strict
# Diamond Ticket gate (report mode)
ci-diamond-ticket:
@just --justfile justfiles/ci.just ci-diamond-ticket
# Diamond Ticket gate (strict mode)
ci-diamond-ticket-strict:
@just --justfile justfiles/ci.just ci-diamond-ticket-strict
# 7-Layer namespace freeze gate (report mode)
ci-namespace-freeze:
@bash scripts/ci/namespace-freeze-gate.sh report
# 7-Layer namespace freeze gate (strict mode)
ci-namespace-freeze-strict:
@bash scripts/ci/namespace-freeze-gate.sh strict
# Everything App convergence gate (RN deprecated → Rust+Tauri canonical)
ci-everything-app-convergence:
@bash scripts/ci/everything-app-convergence-gate.sh
# AgentPortal sync gate (report mode)
ci-agentportal-sync:
@just --justfile justfiles/ci.just ci-agentportal-sync
# AgentPortal sync gate (strict mode)
ci-agentportal-sync-strict:
@just --justfile justfiles/ci.just ci-agentportal-sync-strict
# VT 5 Obsessions gate (report mode)
ci-vt-obsessions:
@just --justfile justfiles/ci.just ci-vt-obsessions
# VT 5 Obsessions gate (strict mode)
ci-vt-obsessions-strict:
@just --justfile justfiles/ci.just ci-vt-obsessions-strict
# Incremental Doc Sync - Check for changes
ci-doc-sync:
@python3 scripts/ci/incremental_doc_sync.py --check
# Incremental Doc Sync - Sync changes to cache
ci-doc-sync-sync:
@python3 scripts/ci/incremental_doc_sync.py --sync
# Incremental Doc Sync - Show status
ci-doc-sync-status:
@python3 scripts/ci/incremental_doc_sync.py --status
# K8s naming convention gate (report mode)
ci-k8s-naming:
@just --justfile justfiles/ci.just ci-k8s-naming
# K8s naming convention gate (strict mode)
ci-k8s-naming-strict:
@just --justfile justfiles/ci.just ci-k8s-naming-strict
# Telemetry dashboard contract gate (report mode)
ci-telemetry-dashboard-contract:
@just --justfile justfiles/ci.just ci-telemetry-dashboard-contract
# Telemetry dashboard contract gate (strict mode)
ci-telemetry-dashboard-contract-strict:
@just --justfile justfiles/ci.just ci-telemetry-dashboard-contract-strict
# Automated binary build lane (report mode)
ci-automated-binaries-build:
@just --justfile justfiles/ci.just ci-automated-binaries-build
# Automated binary build lane (strict mode)
ci-automated-binaries-build-strict:
@just --justfile justfiles/ci.just ci-automated-binaries-build-strict
# Automated binary rollout lane (dry-run/report mode)
ci-automated-binaries-rollout:
@just --justfile justfiles/ci.just ci-automated-binaries-rollout
# Automated binary rollout lane (strict dry-run)
ci-automated-binaries-rollout-strict:
@just --justfile justfiles/ci.just ci-automated-binaries-rollout-strict
# Automated binary rollout lane (strict apply mode)
ci-automated-binaries-rollout-apply:
@just --justfile justfiles/ci.just ci-automated-binaries-rollout-apply
# Automated binary rollout lane (strict apply + verify command)
ci-automated-binaries-rollout-apply-verified:
@just --justfile justfiles/ci.just ci-automated-binaries-rollout-apply-verified
# Automated binaries ledger -> Cypher export
ci-automated-binaries-ledger-cypher:
@just --justfile justfiles/ci.just ci-automated-binaries-ledger-cypher
# Automated binaries ledger -> Cypher export + apply (requires cypher-shell)
ci-automated-binaries-ledger-cypher-apply:
@just --justfile justfiles/ci.just ci-automated-binaries-ledger-cypher-apply
# Automated binaries ledger dashboard (markdown)
ci-automated-binaries-ledger-dashboard:
@just --justfile justfiles/ci.just ci-automated-binaries-ledger-dashboard
# Show autobin query pack path
ci-automated-binaries-ledger-query-pack:
@just --justfile justfiles/ci.just ci-automated-binaries-ledger-query-pack
# All-in-one ledger shine pack
ci-automated-binaries-ledger-shine:
@just --justfile justfiles/ci.just ci-automated-binaries-ledger-shine
# Full CI parallel matrix (report mode)
ci-full-ci-parallel-matrix:
@just --justfile justfiles/ci.just ci-full-ci-parallel-matrix
# Full CI parallel matrix (strict mode)
ci-full-ci-parallel-matrix-strict:
@just --justfile justfiles/ci.just ci-full-ci-parallel-matrix-strict
# ML stabilization parallel matrix (report mode)
ci-ml-stabilization-parallel-matrix:
@just --justfile justfiles/ci.just ci-ml-stabilization-parallel-matrix
# ML stabilization parallel matrix (strict mode)
ci-ml-stabilization-parallel-matrix-strict:
@just --justfile justfiles/ci.just ci-ml-stabilization-parallel-matrix-strict
# Frequent CI watch quick mode (single cycle)
ci-frequent-watch-quick-once:
@just --justfile justfiles/ci.just ci-frequent-watch-quick-once
# Rust warnings gate (strict by default)
ci-warnings-gate:
@just --justfile justfiles/ci.just ci-warnings-gate
# Rust warnings gate (explicit strict mode)
ci-warnings-gate-strict:
@just --justfile justfiles/ci.just ci-warnings-gate-strict
# Rust warnings gate escape hatch (requires WARNINGS_ALLOW_* metadata)
ci-warnings-gate-allow:
@just --justfile justfiles/ci.just ci-warnings-gate-allow
# CryptlzAI retraining controls gate (report mode)
ci-cryptlzai-retraining-gate:
@just --justfile justfiles/ci.just ci-cryptlzai-retraining-gate
# CryptlzAI retraining controls gate (strict mode)
ci-cryptlzai-retraining-gate-strict:
@just --justfile justfiles/ci.just ci-cryptlzai-retraining-gate-strict
# ProtoG ML runtime QUIC proof bundle (report mode)
ci-protog-ml-runtime-proof:
@just --justfile justfiles/ci.just ci-protog-ml-runtime-proof
# ProtoG ML runtime QUIC proof bundle (strict mode)
ci-protog-ml-runtime-proof-strict:
@just --justfile justfiles/ci.just ci-protog-ml-runtime-proof-strict
# ONNX runtime gate (report mode)
ci-onnx-runtime-gate:
@just --justfile justfiles/ci.just ci-onnx-runtime-gate
# ONNX runtime gate (strict mode)
ci-onnx-runtime-gate-strict:
@just --justfile justfiles/ci.just ci-onnx-runtime-gate-strict
# 🛡️ Config Integrity Gate (Lock & Key)
ci-config-integrity-check:
@python3 scripts/ci/config-integrity-gate.py check
# 🛡️ Config Integrity Init (Update Baseline)
ci-config-integrity-init:
@python3 scripts/ci/config-integrity-gate.py init
# 🛡️ Config Hierarchy Gate (3-Layer Precedence)
ci-config-hierarchy:
@just --justfile justfiles/ci.just ci-config-hierarchy
# 🛡️ Config Hierarchy Gate (Strict Mode)
ci-config-hierarchy-strict:
@just --justfile justfiles/ci.just ci-config-hierarchy-strict
# ONNX runtime env bootstrap helper
ci-onnx-runtime-bootstrap:
@just --justfile justfiles/ci.just ci-onnx-runtime-bootstrap
# ONNX runtime strict gate with auto-detected ORT_LIB_LOCATION
ci-onnx-runtime-gate-strict-autodetect:
@just --justfile justfiles/ci.just ci-onnx-runtime-gate-strict-autodetect
# ONNX runtime K3s node install (dry-run)
ci-onnx-runtime-node-install-dry-run version="latest":
@just --justfile justfiles/ci.just ci-onnx-runtime-node-install-dry-run {{ version }}
# ONNX runtime K3s node install
ci-onnx-runtime-node-install version="latest":
@just --justfile justfiles/ci.just ci-onnx-runtime-node-install {{ version }}
# eBPF lane: compile-only/report
ci-ebpf-lane-compile:
@just --justfile justfiles/ci.just ci-ebpf-lane-compile
# eBPF lane: compile + runtime-lite/report
ci-ebpf-lane-runtime-lite:
@just --justfile justfiles/ci.just ci-ebpf-lane-runtime-lite
# eBPF lane: strict + blocking nightly/beta classification
ci-ebpf-lane-strict:
@just --justfile justfiles/ci.just ci-ebpf-lane-strict
# eBPF runtime family lane: report mode (artifact emitting)
ci-ebpf-runtime-family-gate:
@just --justfile justfiles/ci.just ci-ebpf-runtime-family-gate
# eBPF runtime family lane: strict mode
ci-ebpf-runtime-family-gate-strict:
@just --justfile justfiles/ci.just ci-ebpf-runtime-family-gate-strict
# ML federated rollout Phase A gate (report mode)
ci-ml-phasea-gate:
@just --justfile justfiles/ci.just ci-ml-phasea-gate
# ML federated rollout Phase A gate (strict mode)
ci-ml-phasea-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phasea-gate-strict
# ML federated rollout Phase B shadow gate (report mode)
ci-ml-phaseb-gate:
@just --justfile justfiles/ci.just ci-ml-phaseb-gate
# ML federated rollout Phase B shadow gate (strict mode)
ci-ml-phaseb-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phaseb-gate-strict
# ML federated rollout Phase C controlled-enforcement gate (report mode)
ci-ml-phasec-gate:
@just --justfile justfiles/ci.just ci-ml-phasec-gate
# ML federated rollout Phase C controlled-enforcement gate (strict mode)
ci-ml-phasec-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phasec-gate-strict
# ML federated rollout Phase D broad-enforcement gate (report mode)
ci-ml-phased-gate:
@just --justfile justfiles/ci.just ci-ml-phased-gate
# ML federated rollout Phase D broad-enforcement gate (strict mode)
ci-ml-phased-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phased-gate-strict
# ML federated rollout Phase D latest checklist/summary view
ci-ml-phased-latest:
@just --justfile justfiles/ci.just ci-ml-phased-latest
# ML federated rollout Phase D latest promotion decision only
ci-ml-phased-latest-decision:
@just --justfile justfiles/ci.just ci-ml-phased-latest-decision
# ML federated rollout Phase D recent decision history
ci-ml-phased-history:
@just --justfile justfiles/ci.just ci-ml-phased-history
# ML federated rollout Phase D soak report generator
ci-ml-phased-soak-report:
@just --justfile justfiles/ci.just ci-ml-phased-soak-report
# ML federated rollout Phase D latest soak report view
ci-ml-phased-soak-report-latest:
@just --justfile justfiles/ci.just ci-ml-phased-soak-report-latest
# ML federated rollout Phase D latest soak report JSON view
ci-ml-phased-soak-report-latest-json:
@just --justfile justfiles/ci.just ci-ml-phased-soak-report-latest-json
# ML federated rollout Phase D promotion gate (report mode)
ci-ml-phased-promotion-gate:
@just --justfile justfiles/ci.just ci-ml-phased-promotion-gate
# ML federated rollout Phase D promotion gate (strict mode)
ci-ml-phased-promotion-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phased-promotion-gate-strict
# ML federated rollout Phase D promotion gate (strict mode, latest-pass source)
ci-ml-phased-promotion-gate-latest-pass-strict:
@just --justfile justfiles/ci.just ci-ml-phased-promotion-gate-latest-pass-strict
# ML federated rollout Phase D promotion gate (strict mode, both sources)
ci-ml-phased-promotion-gate-both-strict:
@just --justfile justfiles/ci.just ci-ml-phased-promotion-gate-both-strict
# ML federated rollout Phase D readiness stack
ci-ml-phased-readiness:
@just --justfile justfiles/ci.just ci-ml-phased-readiness
# ML federated rollout Phase D source status
ci-ml-phased-source-status:
@just --justfile justfiles/ci.just ci-ml-phased-source-status
# ML federated rollout Phase D guardian gate
ci-ml-phased-guardian-gate:
@just --justfile justfiles/ci.just ci-ml-phased-guardian-gate
# ML federated rollout Phase D policy gate (strict, artifact-driven)
ci-ml-phased-policy-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phased-policy-gate-strict
# ML federated rollout Phase D policy drift gate (report mode)
ci-ml-phased-policy-drift-gate:
@just --justfile justfiles/ci.just ci-ml-phased-policy-drift-gate
# ML federated rollout Phase D policy drift gate (strict mode)
ci-ml-phased-policy-drift-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phased-policy-drift-gate-strict
# UniSim + ML guardian lane (simulation + strict policy + strict drift)
ci-ml-unisim-guardian:
@just --justfile justfiles/ci.just ci-ml-unisim-guardian
# ML federated rollout Phase D divergence gate (report mode)
ci-ml-phased-divergence-gate:
@just --justfile justfiles/ci.just ci-ml-phased-divergence-gate
# ML federated rollout Phase D divergence gate (strict mode)
ci-ml-phased-divergence-gate-strict:
@just --justfile justfiles/ci.just ci-ml-phased-divergence-gate-strict
# --- 🛡️ SECURITY & CRYPTO GATES ---
# Certification crypto truth gate (report mode)
ci-cert-crypto-truth:
@just --justfile justfiles/ci.just ci-cert-crypto-truth-report
# Certification crypto truth gate (strict mode)
ci-cert-crypto-truth-strict:
@just --justfile justfiles/ci.just ci-cert-crypto-truth-strict
# Certification crypto profile matrix gate (report mode)
ci-cert-crypto-profile-matrix:
@just --justfile justfiles/ci.just ci-cert-crypto-profile-matrix-report
# Certification crypto profile matrix gate (strict mode)
ci-cert-crypto-profile-matrix-strict:
@just --justfile justfiles/ci.just ci-cert-crypto-profile-matrix-strict
# Certification crypto profile delta gate (report mode)
ci-cert-crypto-profile-delta:
@just --justfile justfiles/ci.just ci-cert-crypto-profile-delta-report
# Certification crypto profile delta gate (strict mode)
ci-cert-crypto-profile-delta-strict:
@just --justfile justfiles/ci.just ci-cert-crypto-profile-delta-strict
# Crypto SHA eradication gate (report mode)
ci-crypto-sha-eradication:
@just --justfile justfiles/ci.just ci-crypto-sha-eradication-report
# Crypto SHA eradication gate (strict mode)
ci-crypto-sha-eradication-strict:
@just --justfile justfiles/ci.just ci-crypto-sha-eradication-strict
# Crypto auth doc drift gate (report mode)
ci-crypto-auth-doc-drift:
@just --justfile justfiles/ci.just ci-crypto-auth-doc-drift-report
# Crypto auth doc drift gate (strict mode)
ci-crypto-auth-doc-drift-strict:
@just --justfile justfiles/ci.just ci-crypto-auth-doc-drift-strict
# Crypto docs governance gate (report mode)
ci-crypto-docs-governance:
@just --justfile justfiles/ci.just ci-crypto-docs-governance-report
# Crypto docs governance gate (strict mode)
ci-crypto-docs-governance-strict:
@just --justfile justfiles/ci.just ci-crypto-docs-governance-strict
# AI policy gate
ci-ai-policy:
@just --justfile justfiles/ci.just ci-ai-policy-gate
# AI policy gate (strict mode)
ci-ai-policy-strict:
@just --justfile justfiles/ci.just ci-ai-policy-gate-strict
# Cryptlzai retraining controls gate
ci-cryptlzai-retraining:
@just --justfile justfiles/ci.just ci-cryptlzai-retraining-gate
# Cryptlzai retraining controls gate (strict mode)
ci-cryptlzai-retraining-strict:
@just --justfile justfiles/ci.just ci-cryptlzai-retraining-gate-strict
# --- 📚 DOCS & SYNC GATES ---
# MCP domain coverage gate (report mode)
ci-mcp-domain-coverage:
@just --justfile justfiles/ci.just ci-mcp-domain-coverage-gate
# MCP domain coverage gate (strict mode)
ci-mcp-domain-coverage-strict:
@just --justfile justfiles/ci.just ci-mcp-domain-coverage-gate-strict
# --- 📱 ANDROID SDK RECIPES (from justfiles/dev.just) ---
# Download Android SDK to sda9 (offline-friendly, one-time download)
android-sdk-download:
@just --justfile justfiles/dev.just android-sdk-download
# Download Android SDK essentials only (minimal download, ~500MB)
android-sdk-download-minimal:
@just --justfile justfiles/dev.just android-sdk-download-minimal
# Download emulator components only (if you already have SDK)
android-sdk-download-emulator:
@just --justfile justfiles/dev.just android-sdk-download-emulator
# Backup Android SDK for offline use
android-sdk-backup:
@just --justfile justfiles/dev.just android-sdk-backup
# Restore Android SDK from backup
android-sdk-restore backup_file:
@just --justfile justfiles/dev.just android-sdk-restore {{ backup_file }}
android-sdk-restore-from-borg:
@just --justfile justfiles/dev.just android-sdk-restore-from-borg
android-sdk-install-build-tools-35:
@just --justfile justfiles/dev.just android-sdk-install-build-tools-35
gradle-cache-backup:
@just --justfile justfiles/dev.just gradle-cache-backup
gradle-cache-restore backup_file:
@just --justfile justfiles/dev.just gradle-cache-restore {{ backup_file }}
cargo-cache-backup:
@just --justfile justfiles/dev.just cargo-cache-backup
cargo-cache-restore backup_file:
@just --justfile justfiles/dev.just cargo-cache-restore {{ backup_file }}
build-cache-backup-all:
@just --justfile justfiles/dev.just build-cache-backup-all
# --- 🔨 BUILD RECIPES (from justfiles/build.just) ---
# Build Android app
android-build:
@just --justfile justfiles/build.just android-build
# Build Android app (release)
android-build-release:
@just --justfile justfiles/build.just android-build-release
# Build Android app (offline)
android-build-offline:
@just --justfile justfiles/build.just android-build-offline
# --- 📱 ANDROID APK RECIPES (from justfiles/android.just) ---
# Build signed release APK and print signer + sha256
apk:
@just --justfile justfiles/android.just apk
# Build debug APK
apk-debug:
@just --justfile justfiles/android.just apk-debug
# Print current versionName/versionCode
version:
@just --justfile justfiles/android.just version
# Bump version: KIND=patch|minor|major (default patch)
bump KIND="patch":
@just --justfile justfiles/android.just bump {{ KIND }}
# Format code
fmt:
@just --justfile justfiles/android.just fmt
# Format code (alias)
fmt-write:
@just --justfile justfiles/android.just fmt-write
# Run clippy
clippy:
@just --justfile justfiles/android.just clippy
# Check (lint + compile)
check:
@just --justfile justfiles/android.just check
# Gate (format + clippy + check)
gate:
@just --justfile justfiles/android.just gate
# Mount MTP device
mtp-mount:
@just --justfile justfiles/android.just mtp-mount
# Push APK to MTP device
mtp-push:
@just --justfile justfiles/android.just mtp-push
# Unmount MTP device
mtp-umount:
@just --justfile justfiles/android.just mtp-umount
# Bump Cargo versions across workspace
bump-cargo VERSION:
@just --justfile justfiles/android.just bump-cargo {{ VERSION }}
# Release with version bump
release-with-bump VERSION:
@just --justfile justfiles/android.just release-with-bump {{ VERSION }}
# Build Tauri desktop app
tauri-build:
@just --justfile justfiles/build.just tauri-build
# Build Tauri desktop app (debug)
tauri-build-debug:
@just --justfile justfiles/build.just tauri-build-debug
# Build Tauri desktop app (offline)
tauri-build-offline:
@just --justfile justfiles/build.just tauri-build-offline
# 🏠 Install Cryptlz Home Security Suite (Zero-Config)
install-home-security-suite:
@bash scripts/install-home-security-suite.sh
# Launch IAM1 Web Dashboard from repo root
iam-dashboard-dev:
#!/usr/bin/env bash
set -euo pipefail
TOKEN_FILE="${CRYPTLZ_IAM_BOSS_TOKEN_FILE:-$HOME/.config/cryptlz/iam-boss-token}"
if [ -f "$TOKEN_FILE" ]; then
echo "🔐 Sourcing Boss Token from $TOKEN_FILE"
export CRYPTLZ_IAM_BOSS_TOKEN=$(cat "$TOKEN_FILE")
fi
cd apps/cryptlz-web-apps/cryptlz-iam-dashboard
bun run dev
# Launch IAM2 Dashboard Tauri app from repo root
launch-iam-dashboard:
@just iam2-dashboard-dev
iam2-dashboard-dev:
#!/usr/bin/env bash
set -euo pipefail
export PATH="$HOME/.bun/bin:$PATH"
KCFG="${KUBECONFIG:-/tmp/k3s-user-readable.kubeconfig}"
if [[ ! -f "$KCFG" ]]; then
KCFG="/etc/rancher/k3s/k3s.yaml"
fi
export KUBECONFIG="$KCFG"
export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-/mnt/Dreamfields/rust-builds}"
export RUST_LOG="${RUST_LOG:-info}"
TOKEN_FILE="${CRYPTLZ_IAM_BOSS_TOKEN_FILE:-$HOME/.config/cryptlz/iam-boss-token}"
TOKEN_FILE_FALLBACK="/tmp/cryptlz-iam-boss-token"
if [[ -z "${CRYPTLZ_IAM_BOSS_TOKEN:-}" ]] && [[ ! -f "$TOKEN_FILE" ]] && [[ ! -f "$TOKEN_FILE_FALLBACK" ]]; then
echo "ℹ️ Token missing. Attempting shaded Boss auto-arm..."
just iam-boss-auto-arm || true
fi
if [[ -z "${CRYPTLZ_IAM_BOSS_TOKEN:-}" ]] && [[ -f "$TOKEN_FILE" ]]; then
export CRYPTLZ_IAM_BOSS_TOKEN="$(<"$TOKEN_FILE")"
elif [[ -z "${CRYPTLZ_IAM_BOSS_TOKEN:-}" ]] && [[ -f "$TOKEN_FILE_FALLBACK" ]]; then
export CRYPTLZ_IAM_BOSS_TOKEN="$(<"$TOKEN_FILE_FALLBACK")"
fi
if [[ -z "${CRYPTLZ_IAM_BOSS_TOKEN:-}" ]]; then
echo "❌ CRYPTLZ_IAM_BOSS_TOKEN is required for IAM BOSS-mode RBAC."
echo " Set env var directly, or run: just iam-boss-auto-arm"
exit 1
fi
cd apps/cryptlz-web-apps/cryptlz-iam-dashboard
bun run tauri dev
# Configure first-launch K3s + IAM Orchestrator bootstrap (Rust Tauri Pop surface)
iam-dashboard-k3s:
@bash scripts/desktop/k3s-iam-first-launch.sh configure
# Show status of IAM Orchestrator K3s bootstrap
iam-dashboard-k3s-status:
@bash scripts/desktop/k3s-iam-first-launch.sh status
# Reset IAM Orchestrator K3s bootstrap sentinel and services
iam-dashboard-k3s-reset:
@bash scripts/desktop/k3s-iam-first-launch.sh reset
# (Legacy) Launch IAM Dashboard from LIVE K3s via port-forward
iam-dashboard-k3s-legacy namespace="iam" local_port="18080":
#!/usr/bin/env bash
set -euo pipefail
export PATH="$HOME/.bun/bin:$PATH"
NS="{{ namespace }}"
LOCAL_PORT="{{ local_port }}"
NS="${NS#namespace=}"
LOCAL_PORT="${LOCAL_PORT#local_port=}"
# Ensure K3s is running
if ! sudo -n systemctl is-active --quiet k3s; then
echo "ℹ️ K3s is not active. Starting k3s..."
sudo -n systemctl start k3s
fi
IAM_OVERLAY="k3s/pillars/cryptlz-iam"
OVERLAY_NS="$(awk -F': *' '/^namespace:/ {print $2; exit}' "$IAM_OVERLAY/kustomization.yaml" 2>/dev/null || true)"
if [[ -n "${OVERLAY_NS:-}" && "$OVERLAY_NS" != "$NS" ]]; then
echo "ℹ️ Overlay namespace '$OVERLAY_NS' differs from requested namespace '$NS'"
fi
K3S_LEASE_KUBECTL_BIN=k3s K3S_LEASE_KUBECTL_USE_SUDO=1 \
K3S_LEASE_ACTOR="${K3S_LEASE_ACTOR:-${USER:-unknown}}" \
bash scripts/ops/k3s-namespace-lease.sh guard-deploy --namespace "$NS"
# Ensure namespace exists
sudo -n k3s kubectl get namespace "$NS" >/dev/null 2>&1 || sudo -n k3s kubectl create namespace "$NS"
TOKEN_FILE="${CRYPTLZ_IAM_BOSS_TOKEN_FILE:-$HOME/.config/cryptlz/iam-boss-token}"
TOKEN_FILE_FALLBACK="/tmp/cryptlz-iam-boss-token"
TOKEN_VALUE="${CRYPTLZ_IAM_BOSS_TOKEN:-}"
TOKEN_FROM_K3S="$(sudo -n k3s kubectl -n "$NS" get secret cryptlz-iam-boss-auth -o jsonpath='{.data.boss_token}' 2>/dev/null | base64 -d 2>/dev/null || true)"
if [[ -n "$TOKEN_FROM_K3S" ]]; then
TOKEN_VALUE="$TOKEN_FROM_K3S"
echo "ℹ️ Using IAM boss token from running K3s secret ($NS/cryptlz-iam-boss-auth)"
elif [[ -z "$TOKEN_VALUE" ]] && [[ -f "$TOKEN_FILE" ]]; then
TOKEN_VALUE="$(<"$TOKEN_FILE")"
elif [[ -z "$TOKEN_VALUE" ]] && [[ -f "$TOKEN_FILE_FALLBACK" ]]; then
TOKEN_VALUE="$(<"$TOKEN_FILE_FALLBACK")"
fi
if [[ -z "$TOKEN_VALUE" ]]; then
echo "❌ IAM boss token missing in K3s secret and local fallback."
echo " Set env var directly, or run: just iam-boss-token-set <YOUR_SECRET_TOKEN>"
exit 1
fi
IAM_POP_MANIFEST="k3s/pillars/cryptlz-verticals/iam-dashboard-pop.yaml"
if [[ "$NS" == "${OVERLAY_NS:-}" ]]; then
sudo -n k3s kubectl apply -k "$IAM_OVERLAY"
elif [[ "$NS" == "cryptlz-internal" ]]; then
IAM_POP_MANIFEST="k3s/pillars/cryptlz-internal-7p5s/iam-dashboard-pop.yaml"
sudo -n k3s kubectl -n "$NS" get deploy cryptlz-iam-dashboard >/dev/null 2>&1 || \
sudo -n k3s kubectl -n "$NS" apply -f "$IAM_POP_MANIFEST"
else
sudo -n k3s kubectl -n "$NS" get deploy cryptlz-iam-dashboard >/dev/null 2>&1 || \
sudo -n k3s kubectl -n "$NS" apply -f "$IAM_POP_MANIFEST"
fi
# Ensure IAM Boss secret exists in target namespace (idempotent apply)
sudo -n k3s kubectl -n "$NS" create secret generic cryptlz-iam-boss-auth \
--from-literal=boss_token="$TOKEN_VALUE" \
--dry-run=client -o yaml | sudo -n k3s kubectl apply -f -
# Ensure IAM deployment is healthy in K3s
sudo -n k3s kubectl -n "$NS" rollout restart deploy/cryptlz-iam-dashboard >/dev/null 2>&1 || true
sudo -n k3s kubectl -n "$NS" rollout status deploy/cryptlz-iam-dashboard --timeout=120s
# Attach to running K3s IAM service without local build
PF_LOG="/tmp/cryptlz-iam-k3s-portforward.log"
PF_PID="/tmp/cryptlz-iam-k3s-portforward.pid"
if [[ -f "$PF_PID" ]] && kill -0 "$(cat "$PF_PID")" 2>/dev/null; then
kill "$(cat "$PF_PID")" 2>/dev/null || true
rm -f "$PF_PID"
fi
pkill -f "k3s kubectl -n $NS port-forward svc/cryptlz-iam-dashboard" 2>/dev/null || true
nohup sudo -n k3s kubectl -n "$NS" port-forward svc/cryptlz-iam-dashboard "${LOCAL_PORT}:8080" >"$PF_LOG" 2>&1 &
echo $! > "$PF_PID"
sleep 2
URL="http://127.0.0.1:${LOCAL_PORT}"
echo "✅ K3s IAM is live at $URL (namespace=$NS)"
echo "ℹ️ Port-forward log: $PF_LOG"
xdg-open "$URL" >/dev/null 2>&1 || true
# Launch IAM Dashboard in K3s+Tauri mode (requires local dev build toolchain)
iam-dashboard-k3s-tauri namespace="iam":
#!/usr/bin/env bash
set -euo pipefail
export PATH="$HOME/.bun/bin:$PATH"
NS="{{ namespace }}"
NS="${NS#namespace=}"
IAM_OVERLAY="k3s/pillars/cryptlz-iam"
OVERLAY_NS="$(awk -F': *' '/^namespace:/ {print $2; exit}' "$IAM_OVERLAY/kustomization.yaml" 2>/dev/null || true)"
if [[ -n "${OVERLAY_NS:-}" && "$OVERLAY_NS" != "$NS" ]]; then
echo "ℹ️ Overlay namespace '$OVERLAY_NS' overrides requested namespace '$NS'"
NS="$OVERLAY_NS"
fi
K3S_LEASE_KUBECTL_BIN=k3s K3S_LEASE_KUBECTL_USE_SUDO=1 \
K3S_LEASE_ACTOR="${K3S_LEASE_ACTOR:-${USER:-unknown}}" \
bash scripts/ops/k3s-namespace-lease.sh guard-deploy --namespace "$NS"
# Ensure K3s is active and IAM is deployed/running in-cluster before Tauri starts.
if ! sudo -n systemctl is-active --quiet k3s; then
echo "ℹ️ K3s is not active. Starting k3s..."
sudo -n systemctl start k3s
fi
sudo -n k3s kubectl get namespace "$NS" >/dev/null 2>&1 || sudo -n k3s kubectl create namespace "$NS"
TOKEN_FILE="${CRYPTLZ_IAM_BOSS_TOKEN_FILE:-$HOME/.config/cryptlz/iam-boss-token}"
TOKEN_FILE_FALLBACK="/tmp/cryptlz-iam-boss-token"
TOKEN_VALUE="${CRYPTLZ_IAM_BOSS_TOKEN:-}"
TOKEN_FROM_K3S="$(sudo -n k3s kubectl -n "$NS" get secret cryptlz-iam-boss-auth -o jsonpath='{.data.boss_token}' 2>/dev/null | base64 -d 2>/dev/null || true)"
if [[ -n "$TOKEN_FROM_K3S" ]]; then
TOKEN_VALUE="$TOKEN_FROM_K3S"
echo "ℹ️ Using IAM boss token from running K3s secret ($NS/cryptlz-iam-boss-auth)"
elif [[ -z "$TOKEN_VALUE" ]] && [[ -f "$TOKEN_FILE" ]]; then
TOKEN_VALUE="$(<"$TOKEN_FILE")"
elif [[ -z "$TOKEN_VALUE" ]] && [[ -f "$TOKEN_FILE_FALLBACK" ]]; then
TOKEN_VALUE="$(<"$TOKEN_FILE_FALLBACK")"
fi
if [[ -z "$TOKEN_VALUE" ]]; then
echo "❌ IAM boss token missing in K3s secret and local fallback."
echo " Set env var directly, or run: just iam-boss-token-set <YOUR_SECRET_TOKEN>"
exit 1
fi
sudo -n k3s kubectl apply -k "$IAM_OVERLAY"
sudo -n k3s kubectl -n "$NS" create secret generic cryptlz-iam-boss-auth \
--from-literal=boss_token="$TOKEN_VALUE" \
--dry-run=client -o yaml | sudo -n k3s kubectl apply -f -