Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
be6047d
Core: harden codebase
Fellmonkey Nov 24, 2026
396152c
Core: tighten paths and expand regression coverage
Fellmonkey Nov 24, 2026
f2a75dc
Core: finish hardening sweep
Fellmonkey Nov 24, 2026
a32e356
Core: gate bridge commands and propagate cancellation
Fellmonkey Nov 24, 2026
5cd6954
Tests: parallelize suite and align test file names
Fellmonkey Nov 24, 2026
56628f6
CI: avoid duplicate runs and drop vet
Fellmonkey Nov 24, 2026
74ff4b8
Core: reject relation primary keys and harden seed generation
Fellmonkey Nov 24, 2026
dcc5963
Bridges: fail closed on contracts and restrict network and cache paths
Fellmonkey Nov 24, 2026
393164b
Renderer: stage writes and make snapshot rewrites atomic
Fellmonkey Nov 24, 2026
4614a4c
CLI: honor non-interactive mode and verify self-update checksums
Fellmonkey Nov 24, 2026
2af7f74
Tests: gate CI on race, lint and vulnerabilities
Fellmonkey Nov 24, 2026
da53e20
Tests: use absolute temp root in safeRelPath check
Fellmonkey Nov 24, 2026
6948d3a
Core: unstutter public IR and specmeta names
Fellmonkey Nov 24, 2026
bbb446c
Refactor: share path containment and JSON write helpers
Fellmonkey Nov 24, 2026
a4ea102
Refactor: consolidate spec rules and field parsing
Fellmonkey Nov 24, 2026
ec0726f
Refactor: share bounded HTTP helper and URL redaction
Fellmonkey Nov 24, 2026
e6efc62
Renderer: use absolute bridge dir in symlink check
Fellmonkey Nov 24, 2026
10431c4
Core: make snapshot.json byte-deterministic
Fellmonkey Nov 24, 2026
cd89002
Validator: reject fractional seeds and validate rename hints
Fellmonkey Nov 24, 2026
a720012
Renderer: fail closed on unknown conditions and preserve resolved ver…
Fellmonkey Nov 24, 2026
c0bbda4
Snapshot: preserve file modes and single-source rename rules
Fellmonkey Nov 24, 2026
5dad21b
CI: align local lint with CI and gate WASM and TypeScript TCK
Fellmonkey Nov 24, 2026
32ff53c
Bridges: validate fetch branches and preserve update failures
Fellmonkey Nov 24, 2026
9799a76
CLI: fail closed on prune errors and harden self-update
Fellmonkey Nov 24, 2026
813fc9f
Parser: keep explicit numeric zeros in domain.yaml
Fellmonkey Nov 24, 2026
e921666
Core: remove quadratic scans and add pipeline benchmarks
Fellmonkey Nov 24, 2026
f0a1d1b
CI: fix regression references and lint findings
Fellmonkey Nov 24, 2026
f8bf5d2
Bridges: share local path normalization across resolver and renderer
Fellmonkey Nov 24, 2026
519c522
Tests: make relative bridge symlink test volume-independent
Fellmonkey Nov 24, 2026
0db694c
Renderer: cache the first symlink containment pass
Fellmonkey Nov 24, 2026
e6884af
Bridges: embed underscore-prefixed helper templates
Fellmonkey Nov 24, 2026
e3a1958
CI: register missing regression checks and require assertions
Fellmonkey Nov 24, 2026
a267c00
Seed: share numeric bound clamping and use min/max for length
Fellmonkey Nov 24, 2026
3de87a1
Snapshot: fail closed on incompatible snapshot format versions
Fellmonkey Nov 24, 2026
954ac3c
Core: harden field parsing, validation and IR contracts
Fellmonkey Nov 24, 2026
5d79725
Bridges: isolate caches by owner and gate contract and redirects
Fellmonkey Nov 24, 2026
5abb07c
Renderer: keep language syntax in bridge type mappings
Fellmonkey Nov 24, 2026
47fb358
CLI: harden prune paths, command display and update install
Fellmonkey Nov 24, 2026
16e26ea
Renderer: split Render phases and bridge function registration
Fellmonkey Nov 24, 2026
f4735fd
CLI: split runGenerate and cover migration execution
Fellmonkey Nov 24, 2026
306f54a
Contract: resolve bridge chains in a shared package and certify compo…
Fellmonkey Nov 24, 2026
0ebdffd
CI: drop stale nolint directives and use Fprintf for format runs
Fellmonkey Nov 24, 2026
20dd422
Bridges: declare array and framework syntax instead of core fallbacks
Fellmonkey Nov 25, 2026
cd9b691
CI: drive scoped TCK matrix from one script with Docker k6
Fellmonkey Nov 25, 2026
b059e1e
CI: speeds up and repairs test gates
Fellmonkey Nov 25, 2026
bd31ad6
Snapshot: makes scaffold replacement transactional under prune
Fellmonkey Nov 25, 2026
2a4ebd6
Security: confines prune and cache writes to rooted directories
Fellmonkey Nov 25, 2026
ce94a7e
CLI: separates diagnostics from output and bounds update probes
Fellmonkey Nov 25, 2026
c1b73e9
Core: unblocks registry resolution and hardens shared contracts
Fellmonkey Nov 25, 2026
68bdffb
Tests: names subtests and aligns docs
Fellmonkey Nov 25, 2026
b7143c8
Core: hardens caches, contracts and compiler hot paths
Fellmonkey Nov 25, 2026
61546c4
CLI: consolidates cancellation, update probes and admin coverage
Fellmonkey Nov 25, 2026
3d66c3b
Docs: aligns prerequisites and TCK status
Fellmonkey Nov 25, 2026
a82c6e5
Core: rejects symlinked parents at render commit
Fellmonkey Nov 25, 2026
478a3dc
Core: removes shared slices from IR projections
Fellmonkey Nov 25, 2026
943da00
Core: joins update errors and bounds shared caches
Fellmonkey Nov 25, 2026
67f97bb
CLI: disables colors outside a terminal
Fellmonkey Nov 25, 2026
3d7c3f3
CI: aligns integration gates and test streams
Fellmonkey Nov 25, 2026
f9dda26
Core: closes validation holes
Fellmonkey Nov 25, 2026
15fb9de
Core: makes rewrites and rendering safe
Fellmonkey Nov 25, 2026
5c49856
Bridges: hardens resolution and caches
Fellmonkey Nov 25, 2026
22499f5
CLI: aligns diagnostics and gates
Fellmonkey Nov 25, 2026
cbb285a
Core: hardens validation, parsing, seed generation and spec vocabulary
Fellmonkey Nov 25, 2026
dea54f8
IR and Bridge: hardens ordering, clones, updates and custom files
Fellmonkey Nov 25, 2026
c46f5a6
CLI: linearizes generation and cleanup flow
Fellmonkey Nov 25, 2026
4834795
Tooling: unblocks contributors, names cases and compacts regression i…
Fellmonkey Nov 25, 2026
cbb4b1c
Core: removes dead branches and unifies contract predicates
Fellmonkey Nov 26, 2026
492163f
Bridges: hardens cache metadata and bridge resolution
Fellmonkey Nov 26, 2026
bdffe3d
CLI: consolidates generation, cleanup and version checks
Fellmonkey Nov 26, 2026
d8f8195
Renderer: routes path checks through root transactions
Fellmonkey Nov 26, 2026
0822190
Tests: pins benchmark behavior and reports performance in CI
Fellmonkey Nov 26, 2026
2df3261
Bridges: consolidate contract gate and SSRF checks
Fellmonkey Nov 26, 2026
eac8418
Core: collapse wrappers and unify contract types
Fellmonkey Nov 26, 2026
ea66917
CLI: remove chain wrappers and parameter sprawl
Fellmonkey Nov 26, 2026
941be2c
Core: unify symlink policy and TTY navigation
Fellmonkey Nov 26, 2026
7db0d2c
Bridges: share manifest reader and lock specmeta
Fellmonkey Nov 26, 2026
7176d0e
Validator: group checks and drop fixture goldens
Fellmonkey Nov 26, 2026
536b939
CLI: split command module and simplify cleanup protocol
Fellmonkey Nov 26, 2026
8ccf20d
Core: inject update dependencies and renderer hook
Fellmonkey Nov 26, 2026
a53e7bd
Core: remove unused update wrappers
Fellmonkey Nov 26, 2026
7398c4e
Core: harden compiler pipeline and bridge contract
Fellmonkey Nov 26, 2026
14af4e4
Core: harden cache, migration and filesystem layers
Fellmonkey Nov 26, 2026
d9b0fc0
CLI: streamline generation, cleanup and CI gates
Fellmonkey Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
groups:
go-minor-patch:
patterns:
- "*"
update-types:
- minor
- patch

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions-minor-patch:
patterns:
- "*"
update-types:
- minor
- patch
81 changes: 81 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: bench

# Timing benchmarks are reported, not gated: a CI runner is too noisy for a
# fixed time budget. Both sides run on the SAME runner, so benchstat can tell
# whether a change is real without a committed baseline from someone's laptop.
# Behavior is gated separately by the golden tests inside `go test ./...`.
on:
pull_request:
paths:
- 'internal/**/*.go'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/bench.yml'
workflow_dispatch:

permissions:
contents: read

env:
GO_VERSION: '1.27.4'

concurrency:
group: bench-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
compare:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout PR
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

- name: Resolve base commit
shell: bash
run: |
if [ -n "${{ github.event.pull_request.base.sha }}" ]; then
echo "${{ github.event.pull_request.base.sha }}" > "$RUNNER_TEMP/base.sha"
else
git rev-parse HEAD~1 > "$RUNNER_TEMP/base.sha"
fi
cat "$RUNNER_TEMP/base.sha"

- name: Benchmark base
shell: bash
run: |
git worktree add "$RUNNER_TEMP/base" "$(cat "$RUNNER_TEMP/base.sha")"
# The base commit predates the bench target in some PRs. Use the PR's
# Makefile so both sides run the exact same benchmark command.
cp "$GITHUB_WORKSPACE/Makefile" "$RUNNER_TEMP/base/Makefile"
cd "$RUNNER_TEMP/base"
make bench BENCH_COUNT=5 > "$RUNNER_TEMP/base.txt"

- name: Benchmark PR
shell: bash
run: |
make bench BENCH_COUNT=5 > "$RUNNER_TEMP/pr.txt"

- name: Compare with benchstat
shell: bash
run: |
go run golang.org/x/perf/cmd/benchstat@v0.0.0-20261117185222-4febdb082b2c \
"$RUNNER_TEMP/base.txt" "$RUNNER_TEMP/pr.txt" | tee "$RUNNER_TEMP/benchstat.txt"

- name: Upload results
if: always()
uses: actions/upload-artifact@v7
with:
name: benchstat
path: ${{ runner.temp }}/benchstat.txt
if-no-files-found: warn
51 changes: 0 additions & 51 deletions .github/workflows/bridges.yml

This file was deleted.

87 changes: 78 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: ci

on:
# PR checks cover feature branches. Push runs only after a merge to main,
# so the same commit is not tested twice.
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
pull_request:
paths-ignore:
- '**/*.md'
- 'docs/**'
workflow_dispatch:

permissions:
contents: read

env:
GO_VERSION: '1.27.4'

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# Independent gates run in parallel. On a local 16-core machine the sequential
# steps cost ~13s lint + ~8s govulncheck + ~23s race tests; one job serialized
# all of them.
jobs:
test:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -27,12 +38,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: '1.27'
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

Expand All @@ -42,24 +53,82 @@ jobs:
- name: Build
run: go build ./cmd/domaincraft

- name: Vet
run: go vet ./...
- name: Build WASM validator (js/wasm smoke)
# The validator entry point is build-tagged js&&wasm, so the native
# build above cannot see parser/validator/lexer/specmeta breakage.
# Cross-compile to a temp path: no .wasm artifact is committed here.
# The committed GUI binary is refreshed by hand with make build-wasm-gui.
shell: bash
run: GOOS=js GOARCH=wasm go build -o "$RUNNER_TEMP/validate.wasm" ./cmd/wasm-validator

- name: Test
run: go test ./...
# Shuffles order because suites mutate package-global seams.
# CI must never skip the bundled-bridge contract gate via local opt-out.
# -count=1 keeps the result deterministic; on this repo the test cache
# costs more to hash (~25s of embedded bridge files) than to rebuild.
# Step-level env works on both bash and PowerShell runners.
env:
DOMAINCRAFT_LOCAL_DEV: ""
run: go test -race -count=1 -shuffle=on ./...

- name: Integration tests
run: go test -race -count=1 -shuffle=on -tags=integration ./internal/bridge

lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

- name: Download dependencies
run: go mod download

- name: Check go.mod/go.sum are tidy
run: make check-tidy

- name: Lint
# Same command as the local gate; the version lives in the Makefile.
run: make lint

vuln:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

- name: Vulnerability scan
# Pinned in the Makefile, not @latest, so the gate is reproducible.
run: make vulncheck

schema-check:
name: Verify generated schema is up to date
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: '1.27'
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

Expand Down
56 changes: 52 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,75 @@ on:
push:
tags:
- 'v*'
# Manual dry run: build and test the current ref without publishing.
workflow_dispatch:

permissions:
contents: write

env:
GO_VERSION: '1.27.4'

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
verify:
name: Verify tagged commit
# A tag can be pushed without a preceding green main CI run. Run the same
# gates as ci.yml before allowing a release to be published.
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

- name: Check go.mod/go.sum are tidy
run: make check-tidy

- name: Lint
run: make lint

- name: Vulnerability scan
run: make vulncheck

- name: Verify generated schema is up to date
run: |
go run ./cmd/schema-gen -o "$RUNNER_TEMP/domain.schema.json"
diff -u spec/domain.schema.json "$RUNNER_TEMP/domain.schema.json"

- name: Build WASM validator (js/wasm smoke)
run: GOOS=js GOARCH=wasm go build -o "$RUNNER_TEMP/validate.wasm" ./cmd/wasm-validator

- name: Test
env:
DOMAINCRAFT_LOCAL_DEV: ""
run: go test -race -count=1 -shuffle=on ./...

build-and-release:
name: Build binaries and publish release
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 25

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: '1.27'
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum

- name: Build all platforms
run: |
Expand All @@ -43,7 +90,8 @@ jobs:
sha256sum * > checksums.txt

- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
if: github.event_name == 'push'
uses: softprops/action-gh-release@v3
with:
generate_release_notes: true
files: |
Expand Down
Loading
Loading