repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

build: align foundation gates with spec

4e1f4975e578f7f2a961ab25a0a870a63e975831

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

+80 / −23 text lines

Diff layout

.config/nextest.toml

Modified

+10 / −10 text lines

22# Source of truth: .system/specs/SMH-SPEC-SPEC0001-smith-specification/index.md.
44[profile.default]
5retries = 2
5retries = 3
66slow-timeout = "30s"
7failure-output = "final"
8
9[profile.ci]
107fail-fast = false
11retries = 2
12slow-timeout = "60s"
13failure-output = "final"
14junit = { path = "target/nextest/junit.xml" }
169[profile.fast]
10test-group = "fast"
1711retries = 0
18slow-timeout = "10s"
12fail-fast = true
13slow-timeout = "5s"
15[profile.integration]
16filter = 'test(integration::) or test(cli::) or test(tui::)'
17retries = 2
18slow-timeout = "30s"
2020[profile.thorough]
21retries = 3
21retries = 1
2222slow-timeout = "120s"

.system/plans/SMH-PLAN-WSPC0001-foundation-and-gates/index.md

Modified

+1 / −1 text lines

44title: "Foundation and Gates Plan"
55spec: SMH-SPEC-SPEC0001
66phase: SMH-PHASE-XCICUUJD
7status: draft
7status: done
88---
1010# Foundation and Gates Plan

pup.ron

Added
new file mode 100644

+57 / −0 text lines

1// cargo-pup's source-level counterpart to xtask's stable metadata checks.
2(
3 lints: [
4 Module((
5 name: "hygienic-mod-files",
6 matches: Module(".*"),
7 rules: [MustHaveEmptyModFile(Error)],
8 )),
9 Module((
10 name: "no-wildcard-imports",
11 matches: Module(".*"),
12 rules: [NoWildcardImports(Error)],
13 )),
14 Module((
15 name: "smith-core-import-boundary",
16 matches: Module("^smith_core($|::.*)"),
17 rules: [RestrictImports(
18 allowed_only: None,
19 denied: Some([
20 "^smith_ai($|::.*)",
21 "^smith_tui($|::.*)",
22 "^smith_harness($|::.*)",
23 "^smith_cli($|::.*)",
24 ]),
25 severity: Error,
26 )],
27 )),
28 Module((
29 name: "smith-ai-import-boundary",
30 matches: Module("^smith_ai($|::.*)"),
31 rules: [RestrictImports(
32 allowed_only: None,
33 denied: Some([
34 "^smith_core($|::.*)",
35 "^smith_tui($|::.*)",
36 "^smith_harness($|::.*)",
37 "^smith_cli($|::.*)",
38 ]),
39 severity: Error,
40 )],
41 )),
42 Module((
43 name: "smith-tui-import-boundary",
44 matches: Module("^smith_tui($|::.*)"),
45 rules: [RestrictImports(
46 allowed_only: None,
47 denied: Some([
48 "^smith_core($|::.*)",
49 "^smith_ai($|::.*)",
50 "^smith_harness($|::.*)",
51 "^smith_cli($|::.*)",
52 ]),
53 severity: Error,
54 )],
55 )),
56 ],
57)

xtask/src/main.rs

Modified

+12 / −12 text lines

2828 match command.to_str() {
2929 Some("check") => check(),
3030 Some("lint") => lint(),
31 Some("fmt") => cargo(&["fmt", "--check"]),
32 Some("test") => cargo(&["test", "--workspace", "--all-features"]),
31 Some("fmt") => cargo(&["fmt"]),
32 Some("test") => cargo_nextest(),
3333 Some("doc") => cargo(&["doc", "--workspace", "--no-deps"]),
3434 Some("arch") => arch(),
35 Some("pup") => cargo(&["+nightly-2026-01-22", "pup"]),
35 Some("pup") => cargo_pup(),
3636 Some("audit") => audit(),
3737 _ => fail(HELP),
3838 }
4141fn check() -> ExitCode {
4242 sequence(&[
43 cargo_check,
4443 cargo_fmt,
4544 cargo_clippy,
46 cargo_test,
47 cargo_doc,
4845 arch,
46 cargo_pup,
47 cargo_nextest,
48 cargo_doc,
4949 ])
6969 sequence(&[cargo_deny, cargo_audit])
72fn cargo_check() -> ExitCode {
73 cargo(&["check", "--workspace", "--all-features"])
74}
7672fn cargo_fmt() -> ExitCode {
7773 cargo(&["fmt", "--check"])
8177 cargo(&["clippy", "--workspace", "--all-targets", "--all-features"])
84fn cargo_test() -> ExitCode {
85 cargo(&["test", "--workspace", "--all-features"])
80fn cargo_nextest() -> ExitCode {
81 cargo(&["nextest", "run", "--workspace", "--all-features"])
82}
84fn cargo_pup() -> ExitCode {
85 cargo(&["+nightly-2026-01-22", "pup"])
8888fn cargo_doc() -> ExitCode {