Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
211 lines (154 loc) · 6.28 KB
/
Copy pathjustfile
File metadata and controls
211 lines (154 loc) · 6.28 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
set shell := ["scripts/dev-shell", "-cu"]
# Domain command modules.
mod brain 'finite-brain/justfile'
mod chat 'finitechat/justfile'
mod computer 'finitecomputer-v2/justfile'
mod dashboard 'finitecomputer-v2/apps/dashboard/justfile'
mod dev 'devfinity/justfile'
mod identity 'finite-identity/justfile'
mod infra 'infra/justfile'
mod monitoring 'infra/monitoring/justfile'
mod nixos 'infra/nixos/justfile'
mod runtime-images 'finitecomputer-v2/deploy/finite-computer/images/justfile'
mod sites 'finite-sites/justfile'
mod skills 'finite-skills/justfile'
# Lists just commands
default:
just --list-submodules --list
# Cargo check across the workspace
check:
cargo check --workspace --locked
# Checks bounded Core files, Rust module/struct structure, and short agent guides.
source-structure-check:
cargo test --locked -p source-structure
cargo run --quiet --locked -p source-structure
# Ruff and the synthetic-fixture suite of the offline FIN-174 evidence tool.
ronin-ci-evidence-check:
ruff format --check tools/ronin-ci-evidence
ruff check tools/ronin-ci-evidence
python3 -B -m unittest discover -s tools/ronin-ci-evidence -p 'test_*.py' -v
# Formats all rust code
fmt:
cargo fmt --all
# Formats all Python code with the repo-pinned ruff (flake.nix `pyToolPkgs.ruff`
# — the exact attr CI's hermes-bridge-ci shell checks with). Never invoke
# `nix run nixpkgs#ruff` or a host ruff: format output differs between
# versions and that is how CI formatting gates go red.
fmt-py:
nix develop .#default -c ruff format .
# Lints all Python code with the repo-pinned ruff.
lint-py:
nix develop .#default -c ruff check .
# Prints the pinned toolchain versions (rust-toolchain.toml + flake ruff).
toolchain-versions:
@echo "rust: $$(cargo --version)"
@echo "ruff: $$(nix develop .#default -c ruff --version)"
# Runs all Rust tests with isolated devfinity-managed test infrastructure
test:
cargo run --quiet --locked -p devfinity -- run -- cargo test --workspace --locked
# Stable root wrappers for module-owned recipes.
brain-api-route-check:
just brain brain-api-route-check
brain-language-check:
just brain brain-language-check
brain-product-matrix:
just brain brain-product-matrix
chat-device-parity:
just chat chat-device-parity
chat-history-stress:
just chat chat-history-stress
chat-reliability-fast report="finitechat/target/hermes-adapter-regressions/report.json":
just chat chat-reliability-fast {{ quote(report) }}
[positional-arguments]
deploy-lat1-closure artifact_dir *args:
just nixos deploy-lat1-closure "$@"
[positional-arguments]
deploy-lat2-closure artifact_dir *args:
just nixos deploy-lat2-closure "$@"
[positional-arguments]
deploy-lat3-closure artifact_dir *args:
just nixos deploy-lat3-closure "$@"
[positional-arguments]
deploy-lat4-closure artifact_dir *args:
just nixos deploy-lat4-closure "$@"
[positional-arguments]
install-lat4-from-artifact artifact_dir target_host *args:
just nixos install-lat4-from-artifact "$artifact_dir" "$target_host" "$@"
finite-private-deepseek-contract:
just computer finite-private-deepseek-contract
finite-private-deepseek-release-contract:
just computer finite-private-deepseek-release-contract
finite-private-glm53-contract:
just computer finite-private-glm53-contract
finite-private-glm53-release-contract:
just computer finite-private-glm53-release-contract
finite-status-contract:
just infra finite-status-contract
hosted-recovery-contract:
just infra hosted-recovery-contract
kata-lifecycle-lab-contract:
just infra kata-lifecycle-lab-contract
sites-backup-contract:
just infra sites-backup-contract
identity-conformance:
just identity identity-conformance
identity-edge-contract:
just identity identity-edge-contract
lat1-healthcheck-contract:
just nixos lat1-healthcheck-contract
lat1-rollout-contract:
just nixos lat1-rollout-contract
lat1-secret-bootstrap-contract:
just nixos lat1-secret-bootstrap-contract
lat2-runner-guardrails-contract:
just nixos lat2-runner-guardrails-contract
lat3-runner-rollout-contract:
just nixos lat3-runner-rollout-contract
lat4-runner-rollout-contract:
just nixos lat4-runner-rollout-contract
litestream-recovery-contract:
just infra litestream-recovery-contract
monitoring-nixos-contract:
just monitoring monitoring-nixos-contract
nixos-build-lat1-closure rev out_dir="target/lat1-nixos-closure":
just nixos nixos-build-lat1-closure {{ quote(rev) }} {{ quote(out_dir) }}
nixos-build-lat2-closure rev out_dir="target/lat2-nixos-closure":
just nixos nixos-build-lat2-closure {{ quote(rev) }} {{ quote(out_dir) }}
nixos-build-lat3-closure rev out_dir="target/lat3-nixos-closure":
just nixos nixos-build-lat3-closure {{ quote(rev) }} {{ quote(out_dir) }}
nixos-build-lat4-closure rev out_dir="target/lat4-nixos-closure":
just nixos nixos-build-lat4-closure {{ quote(rev) }} {{ quote(out_dir) }}
runbook-facts-contract:
just infra runbook-facts-contract
runner-host-contract:
just nixos runner-host-contract
runtime-image-contract:
just runtime-images runtime-image-contract
stripe-billing-clock:
just dashboard stripe-billing-clock
stripe-price-contract:
just dashboard stripe-price-contract
web-check:
just dashboard web-check
# lat5 provisioning and artifact validation.
[positional-arguments]
deploy-lat5-closure artifact_dir *args:
just nixos deploy-lat5-closure "$@"
[positional-arguments]
install-lat5-from-artifact artifact_dir target_host *args:
just nixos install-lat5-from-artifact "$artifact_dir" "$target_host" "$@"
nixos-build-lat5-closure rev out_dir="target/lat5-nixos-closure":
just nixos nixos-build-lat5-closure {{ quote(rev) }} {{ quote(out_dir) }}
lat5-runner-rollout-contract:
just nixos lat5-runner-rollout-contract
# lat7 provisioning and artifact validation.
[positional-arguments]
deploy-lat7-closure artifact_dir *args:
just nixos deploy-lat7-closure "$@"
[positional-arguments]
install-lat7-from-artifact artifact_dir target_host *args:
just nixos install-lat7-from-artifact "$artifact_dir" "$target_host" "$@"
nixos-build-lat7-closure rev out_dir="target/lat7-nixos-closure":
just nixos nixos-build-lat7-closure {{ quote(rev) }} {{ quote(out_dir) }}
lat7-runner-rollout-contract:
just nixos lat7-runner-rollout-contract