* build(bazel): add side-by-side Bazel scaffold (module + gazelle) Add a Bzlmod Bazel build alongside the Go toolchain. `go build` and `go test` are unchanged; nothing in CI invokes Bazel yet. - MODULE.bazel: rules_go 0.63.0, gazelle 0.53.0, Go SDK 1.26.7 (matches the go.mod toolchain directive), go_deps from go.mod. - ICU policy (engdocs/ICU-POLICY.md): a go-mysql-server gazelle_override selects the pure-Go regex backend and excludes regex_cgo.go, and .bazelrc builds with --@rules_go//go/config:tags=gms_pure_go, so no target depends on go-icu-regex or links libicu. - third_party/patches: three module_override patches for dolt deps that ship WORKSPACE-era BUILD files, adapted from the gascity project. - .bazelrc: prcore/ci test configs (inert for now; they match pr-core's test selection, not yet its environment isolation) and a generic remote-exec config with a bounded remote timeout. Executor endpoints and TLS credentials come only from a gitignored .bazelrc.local/user.bazelrc or a CI rc outside the workspace. - .bazelversion pins Bazel 9.2.0; .bazelignore skips separate modules, non-Go trees, nested agent worktrees (.claude, .worktrees) and local data/output dirs (.beads, .dolt, dist, .runtime, tmp), so a primary checkout neither builds nor gazelle-rewrites nested worktree copies. - Gazelle-generated BUILD.bazel files for every Go package. - Makefile: `make bazel-sync` (gazelle + bazel mod tidy). - .gitignore: bazel-* output symlinks and machine-local rc files. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * test(bazel): policy tests for the Bazel configuration Add scripts/bazel_policy_test.go, plain Go tests that run under both `go test ./scripts` and `bazel test //scripts:scripts_test`: - MODULE.bazel go_sdk.download version equals the go.mod toolchain. - ICU policy: .bazelrc sets gms_pure_go for build, the go-mysql-server gazelle_override excludes regex_cgo.go, and the root BUILD.bazel carries `# gazelle:build_tags gms_pure_go`. - .bazelversion pins an exact Bazel release. - .bazelrc.local and user.bazelrc are gitignored (parsed from .gitignore and cross-checked with git check-ignore when in a checkout). - No remote-execution endpoints or credentials in committed bazelrc-like files, Markdown docs or .github/**: remote/BES/TLS flags (--remote_executor, --remote_cache, --bes_backend, --remote_header, --tls_client_certificate, ...) with a literal value, with or without a URL scheme, and non-loopback gRPC URLs in rc/.github files. Placeholders, $VARIABLES, and loopback are allowed; Markdown gRPC URLs (OTel exporter docs) are not flagged. Skipped outside a git checkout, e.g. in the Bazel sandbox. Each check is a pure function also exercised against fixtures that break the invariant. The files the tests read are declared as data via //:bazel_policy_files so they resolve from runfiles under Bazel. scripts/check-build-tags.sh now treats Bazel invocations as governed by .bazelrc: the shell command segment that invokes Bazel (split on &&, ||, ;, |, $( and backticks) is exempt from the per-line `go` tag check, while a bare `go` in another segment of the same line is still flagged. When any scanned file invokes Bazel (or .bazelrc exists) .bazelrc must set --@rules_go//go/config:tags=gms_pure_go for build. scripts/check_build_tags_test.go covers both in a temp repository. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(scripts): split bazel lines in pure bash so check-build-tags works with BSD sed BSD sed (macOS) does not expand \n in s/// replacements, so the segment split never happened and the Bazel-exemption tests failed on macos-latest. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * test(scripts): skip check-build-tags tests when bash lacks mapfile macOS runners use /bin/bash 3.2, which has no mapfile; check-build-tags.sh has always required bash >= 4, so the new tests are skipped there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
263 lines
5.3 KiB
Text
263 lines
5.3 KiB
Text
# Binaries
|
|
/beads
|
|
/bd
|
|
*.exe
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
|
|
# Test binaries
|
|
*.test
|
|
*.out
|
|
/bd-test
|
|
|
|
# Go workspace file
|
|
go.work
|
|
|
|
# Go build cache
|
|
pkg/
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# Agent local state (skills, settings, etc.)
|
|
.amp/
|
|
|
|
# Claude Code - local/runtime state
|
|
.claude/settings.local.json
|
|
.claude/worktrees/
|
|
.claude/*.log
|
|
.claude/*.lock
|
|
|
|
# Codex CLI - local marker
|
|
.codex
|
|
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Dolt database files
|
|
.dolt/
|
|
|
|
# Legacy SQLite database files
|
|
*.db
|
|
*.db-journal
|
|
*.db-wal
|
|
*.db-shm
|
|
|
|
# Runtime files
|
|
.beads/bd.sock
|
|
.beads/.exclusive-lock
|
|
|
|
# .beads directory files
|
|
.beads/.gitignore
|
|
.beads/db.sqlite
|
|
.beads/bd.db
|
|
|
|
# Ignore nix result
|
|
result
|
|
|
|
# direnv (machine-specific environment)
|
|
.direnv
|
|
.envrc
|
|
|
|
# GoReleaser build artifacts
|
|
dist/
|
|
Formula/bd.rb
|
|
.zig-cache/
|
|
|
|
# Windows PE resource files (generated by go-winres at build time)
|
|
*.syso
|
|
|
|
# Git worktrees
|
|
.worktrees/
|
|
|
|
# npm package - exclude downloaded binaries and archives
|
|
npm-package/bin/bd
|
|
npm-package/bin/*.tar.gz
|
|
npm-package/bin/*.zip
|
|
npm-package/bin/CHANGELOG.md
|
|
npm-package/bin/LICENSE
|
|
npm-package/bin/README.md
|
|
npm-package/node_modules/
|
|
npm-package/package-lock.json
|
|
.beads/beads.db?*
|
|
bd-original
|
|
mcp_agent_mail/
|
|
bd-test
|
|
bd-fixed
|
|
.cursor/
|
|
|
|
# Python cache files
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
.envrc
|
|
|
|
# Performance profiling files (benchmarks, bd doctor --perf, and bd --cpu-profile)
|
|
*.prof
|
|
*.out
|
|
beads-perf-*.prof
|
|
bench-cpu-*.prof
|
|
bd-profile-*.prof
|
|
bd-trace-*.out
|
|
# AI planning documents (ephemeral)
|
|
history/
|
|
|
|
# Orchestrator agent state
|
|
state.json
|
|
.beads/redirect
|
|
|
|
# Claude Code runtime
|
|
.runtime/
|
|
|
|
# Augment AI configuration (user-specific)
|
|
.augment/
|
|
.agents/
|
|
output
|
|
bd_test
|
|
.beads/export-state/
|
|
.beads/beads.db
|
|
|
|
# Orchestrator (added by gt)
|
|
.logs/
|
|
.beads/*
|
|
!.beads/formulas/
|
|
!.beads/formulas/**
|
|
.opencode/
|
|
|
|
# Beads / Dolt files (added by bd init)
|
|
.beads-credential-key
|
|
|
|
# Beads / Dolt files (added by bd init)
|
|
.beads/proxieddb/
|
|
/build/
|
|
node_modules/
|
|
tmp/build/cli-docs/admin.md
|
|
tmp/build/cli-docs/ado.md
|
|
tmp/build/cli-docs/assign.md
|
|
tmp/build/cli-docs/audit.md
|
|
tmp/build/cli-docs/backup.md
|
|
tmp/build/cli-docs/batch.md
|
|
tmp/build/cli-docs/blocked.md
|
|
tmp/build/cli-docs/bootstrap.md
|
|
tmp/build/cli-docs/branch.md
|
|
tmp/build/cli-docs/children.md
|
|
tmp/build/cli-docs/close.md
|
|
tmp/build/cli-docs/comment.md
|
|
tmp/build/cli-docs/comments.md
|
|
tmp/build/cli-docs/compact.md
|
|
tmp/build/cli-docs/completion.md
|
|
tmp/build/cli-docs/config.md
|
|
tmp/build/cli-docs/context.md
|
|
tmp/build/cli-docs/cook.md
|
|
tmp/build/cli-docs/count.md
|
|
tmp/build/cli-docs/create-form.md
|
|
tmp/build/cli-docs/create.md
|
|
tmp/build/cli-docs/defer.md
|
|
tmp/build/cli-docs/delete.md
|
|
tmp/build/cli-docs/dep.md
|
|
tmp/build/cli-docs/diff.md
|
|
tmp/build/cli-docs/doctor.md
|
|
tmp/build/cli-docs/dolt.md
|
|
tmp/build/cli-docs/duplicate.md
|
|
tmp/build/cli-docs/duplicates.md
|
|
tmp/build/cli-docs/edit.md
|
|
tmp/build/cli-docs/epic.md
|
|
tmp/build/cli-docs/export.md
|
|
tmp/build/cli-docs/federation.md
|
|
tmp/build/cli-docs/find-duplicates.md
|
|
tmp/build/cli-docs/flatten.md
|
|
tmp/build/cli-docs/forget.md
|
|
tmp/build/cli-docs/formula.md
|
|
tmp/build/cli-docs/gate.md
|
|
tmp/build/cli-docs/gc.md
|
|
tmp/build/cli-docs/github.md
|
|
tmp/build/cli-docs/gitlab.md
|
|
tmp/build/cli-docs/graph.md
|
|
tmp/build/cli-docs/heartbeat.md
|
|
tmp/build/cli-docs/history.md
|
|
tmp/build/cli-docs/hooks.md
|
|
tmp/build/cli-docs/human.md
|
|
tmp/build/cli-docs/import.md
|
|
tmp/build/cli-docs/index.md
|
|
tmp/build/cli-docs/info.md
|
|
tmp/build/cli-docs/init-safety.md
|
|
tmp/build/cli-docs/init.md
|
|
tmp/build/cli-docs/jira.md
|
|
tmp/build/cli-docs/kv.md
|
|
tmp/build/cli-docs/label.md
|
|
tmp/build/cli-docs/linear.md
|
|
tmp/build/cli-docs/link.md
|
|
tmp/build/cli-docs/lint.md
|
|
tmp/build/cli-docs/list.md
|
|
tmp/build/cli-docs/mail.md
|
|
tmp/build/cli-docs/memories.md
|
|
tmp/build/cli-docs/merge-slot.md
|
|
tmp/build/cli-docs/metrics.md
|
|
tmp/build/cli-docs/migrate-personal.md
|
|
tmp/build/cli-docs/migrate.md
|
|
tmp/build/cli-docs/mol.md
|
|
tmp/build/cli-docs/note.md
|
|
tmp/build/cli-docs/notion.md
|
|
tmp/build/cli-docs/onboard.md
|
|
tmp/build/cli-docs/orphans.md
|
|
tmp/build/cli-docs/ping.md
|
|
tmp/build/cli-docs/preflight.md
|
|
tmp/build/cli-docs/prime.md
|
|
tmp/build/cli-docs/priority.md
|
|
tmp/build/cli-docs/promote.md
|
|
tmp/build/cli-docs/prune.md
|
|
tmp/build/cli-docs/purge.md
|
|
tmp/build/cli-docs/q.md
|
|
tmp/build/cli-docs/query.md
|
|
tmp/build/cli-docs/quickstart.md
|
|
tmp/build/cli-docs/ready.md
|
|
tmp/build/cli-docs/recall.md
|
|
tmp/build/cli-docs/reclaim.md
|
|
tmp/build/cli-docs/recompute-blocked.md
|
|
tmp/build/cli-docs/remember.md
|
|
tmp/build/cli-docs/rename-prefix.md
|
|
tmp/build/cli-docs/rename.md
|
|
tmp/build/cli-docs/reopen.md
|
|
tmp/build/cli-docs/repo.md
|
|
tmp/build/cli-docs/restore.md
|
|
tmp/build/cli-docs/rules.md
|
|
tmp/build/cli-docs/search.md
|
|
tmp/build/cli-docs/set-state.md
|
|
tmp/build/cli-docs/setup.md
|
|
tmp/build/cli-docs/ship.md
|
|
tmp/build/cli-docs/show.md
|
|
tmp/build/cli-docs/sql.md
|
|
tmp/build/cli-docs/stale.md
|
|
tmp/build/cli-docs/state.md
|
|
tmp/build/cli-docs/status.md
|
|
tmp/build/cli-docs/statuses.md
|
|
tmp/build/cli-docs/supersede.md
|
|
tmp/build/cli-docs/swarm.md
|
|
tmp/build/cli-docs/tag.md
|
|
tmp/build/cli-docs/todo.md
|
|
tmp/build/cli-docs/types.md
|
|
tmp/build/cli-docs/unclaim.md
|
|
tmp/build/cli-docs/undefer.md
|
|
tmp/build/cli-docs/update.md
|
|
tmp/build/cli-docs/upgrade.md
|
|
tmp/build/cli-docs/vc.md
|
|
tmp/build/cli-docs/version.md
|
|
tmp/build/cli-docs/where.md
|
|
tmp/build/cli-docs/worktree.md
|
|
tmp/docs/CLI_REFERENCE.md
|
|
*.gate.lock*
|
|
|
|
# Bazel: output symlinks and machine-local rc files (remote executor endpoint,
|
|
# TLS credentials). Never commit these.
|
|
/bazel-*
|
|
/.bazelrc.local
|
|
/user.bazelrc
|