Development Lifecycle and Release Notes
This page inventories four aspects of this repo's development lifecycle (branching model, release cadence, versioning policy, testing and release gates), each with file:line evidence; items where the repo has no corresponding mechanism are labeled as gaps honestly. Facts verified as of 2026-10-20; line numbers may drift with later evolution, so treat the verification date as authoritative.
Branching Model
- Single-main trunk development: every workflow trigger points at main only —
ci.yml:5/:14(both push and pull_request usebranches: [main]),ci-analytics.yml:4/:13,ci-mobile.yml:12/:17, and the sixci-sdk-*.ymlfollow the same pattern; no develop/release branches exist in the repo. - PR as a supplement, direct push as the norm:
git log --mergesmeasures 88 merges on main, of which only 4 are PR merges (#72–#76, including dependabot); the rest are merges of temporary worktree branches. The current day-to-day shape is direct pushes to main (CI gates fully at push time). - Merge discipline: PRs must state what changed, why, and how it was verified, and
make testmust pass before merging —docs/zh/development/repository-guidelines.md:93-96. - Gap (branch protection): no
CODEOWNERSand no branch-protection config files under.github/; branch protection is a GitHub repository setting with no citable evidence inside repo files, honestly labeled "no in-repo mechanism".
Release Cadence
- Nightly daily build:
scheduletriggerscron: "0 2 * * *"(daily 02:00 UTC,.github/workflows/nightly.yml:5), withworkflow_dispatchmanual trigger (:6);concurrency.group: nightly-releasewithout canceling in-flight runs (:14-16).resolve-commitpins the one SHA every job uses (:33-35): if the rollingnightlytag exists and its release is already published it advances to current main HEAD (daily rolling); if the release is missing or still a draft it reuses the old pin (rerun recovery); with no tag it pins HEAD (first run). Aquality-gatejob runs full tests + e2e + contracts against that SHA before release (:63-101); the release job then force-moves the tag to the pinned SHA (git tag -f+git push -f,:1009-1018), collects artifacts, computesSHA256SUMS(:999-1006), signs it via cosign keyless (:1037-1048), and republishes the single rollingnightlyprerelease in place so only the latest build is kept (:1022-1051). Re-verified 2026-11-17: before this fix the tag stayed pinned at its first commit, so the gate ran stale code and failed on scripts introduced later (three consecutive red days 2026-11-15/16/17). - Gap (change detection): nightly builds unconditionally every day; there is no "only release if something changed in 48 hours" change-detection logic (no hits across
nightly.ymland full history greps); that claim is process convention only. - Stable releases: the only effective entry is a manually pushed
v*tag —release.yml:4-6(push: tags: ["v*"]);workflow_dispatchexists (:7) but all three jobs guard withif: startsWith(github.ref, 'refs/tags/v')(:22/:151/:201), so a manual run is a no-op.docker.yml:4-6responds tov*tags too (plus push main). - SDK releases: one standalone manual workflow per language,
workflow_dispatchonly, never auto-triggered (:3comment in eachrelease-sdk-*.yml; inrelease-sdk-go.yml:5-11an emptyversioninput falls back to the latest release tag, logic at:24-34). - Security scan cadence: CodeQL every Monday 03:00 UTC (
codeql.yml:24).
Versioning Policy
- The root
VERSIONfile is the single version source of truth (currently0.1.6):Makefile:2VERSION := $(shell cat VERSION ...);:10assemblesLDFLAGS := -X main.Version=$(FULL_VERSION) .... - Injection points: the server uses the
Versionvariable atcmd/server/root.go:34andServerVersionatinternal/svc/version.go:6(full import-path injection atMakefile:89); devops/capture/synthetics injectagents/*/runner.Version(Makefile:117/:122/:128). - Re-stamping at release time: the VERSION file value can lag behind the release tag (
release.yml:58-60records the v0.1.5 evidence staying 0.1.4), so the release surface uniformly re-stamps viagit describe(release.yml:61); the nightly surface re-stamps asnightly-YYYYMMDDon all three platforms (Linux/macOSnightly.yml:262, Windows:307; the--versionassertion at:371requires thenightly-prefix). Unified on 2026-11-17 — previously Linux/macOS stamped a barenightlythat could never satisfy the assertion (G2 audit, docs/审计-文档一致性.md). - SDK version sync: after bumping the root VERSION, run
make version-sync(scripts/sync-sdk-versions.sh:2-16). - Version drift observed (recorded honestly): as of the 2026-10-20 audit, root
VERSION(0.1.6) > latest tag (v0.1.5) > SDK manifests (all 0.1.4) — three layers coexisting. Re-verified 2026-11-10: the SDK-manifest layer has since been re-aligned to VERSION bycheck-version-sync.shenforcement (all six manifests now 0.1.6), so the live state isVERSION (0.1.6) = SDK manifests (0.1.6) > latest tag (v0.1.5)— the guard's documented normal between-releases state. Dependency-bump and override policy: see Versioning and dependency policy. - Tag naming: Server/Agent use
v*; SDKs use submodule tags (docs/operations/sdk-release.md:96:sdks/go/vX.Y.Z; actually executed atrelease-sdk-go.yml:40-46). Thesdk-go-v*wording inrepository-guidelines.md:104-110has drifted from the current implementation — submodule tags are authoritative. - Convention boundary (not a mechanism): "version numbers are only user-given and manually triggered" is currently process convention — mechanically true (the only release entry is a manually pushed
v*tag), but no workflow or code in the repo enforces it; anyone with push access could in theory tag and trigger a release. Honestly labeled a convention, not an in-repo enforcement mechanism.
Testing and Release Gates
CI - Core (ci.yml)
- Six jobs:
lint(:27),security(:119),test(:161) run as three parallel tracks;e2e(:225),migrate-matrix(:321),capture-matrix(:418) withneeds: [test](:232/:331/:432). - Lint guard chain: architecture guard
ci.yml:45, contracts:48, API response contracts:51, dashboard vnext guard and self-test:54/:57, SDK matrix:60, demo contract baseline:63,buf lint proto:89, gofmt:106,go vet:114, transport dependency boundary (thetransport-no-grpcguard):117. - security: govulncheck (wrapped with an exemption list,
ci.yml:159). - test: full
go test ./internal/... ./core/... ./agents/...without-race(ci.yml:208) + targeted-race(:212, register/devops/capture/sidecar) + Codecov upload (:214-223). - e2e: starts the server on SQLite and runs happy-path and task lifecycle scripts (
:311-312, SQLite config at:282). - migrate-matrix: MySQL 8.4 / Postgres 16 / MSSQL 2022 containers run the migration matrix (
:332-367) +atlas migrate validate(:416). - capture-matrix: container integration tests for the four sources MySQL/MariaDB/Postgres/MongoDB (
:460-528).
CI - Dashboard (ci-dashboard.yml)
- Four jobs in parallel: quality gates (
:41, including dashboard guard:94, localization text guard:99,tsc --noEmit:122, sharded jest:136), mock E2E (:223), real E2E (:245), Docker image and nginx smoke (:355,:402-417). - Note:
:16-18makes v* tag pushes run the full dashboard quality gate automatically, but it runs in parallel withrelease.ymland does not block releases.
The Rest
- Analytics E2E (
ci-analytics.yml:39), Mobile (ci-mobile.yml:24, release APK manual only:48-49), docs checks (docs-check.yml:49/:53link and term guards;:60architecture-asset and todo DAG guard, ARCH-020). - Local gates: pre-commit hooks run BOM and gofmt checks (
scripts/git-hooks/pre-commit:29-43, one section each);make test-changedis a local selective-testing tool, while CI gates stay full (repository-guidelines.md:71).
Gaps (pre-release gates)
- Enforced since 2026-11-06 (CR-FIX-04):
release.ymlandnightly.ymleach gain aquality-gatejob (scripts/release-quality-gate.sh) that runsgo test ./..., contract guards, and e2e before any packaging/publishing;release/releasejobs declareneeds: [.., quality-gate]so CI red blocks packaging. The six SDK release workflows still publish directly with no tests — honestly labeled.
Known Gaps Summary
| Aspect | Status | Notes |
|---|---|---|
| Branch protection | Not in repo | A GitHub repository setting; no citable evidence inside files |
| Nightly change detection | None | Unconditional daily build; "release only on change" is process convention |
| Pre-release gates | Enforced (core) | release/nightly core gate via quality-gate job; SDK workflows still publish directly |
| Manually given version numbers | Convention, not mechanism | Mechanically the only entry is a manual v* tag; no in-repo enforcement |
| SDK tag convention | Drifted | Current submodule tags (sdks/go/vX.Y.Z); repository-guidelines.md's sdk-go-v* is the old wording |
