Align the svc.sh startup precheck with binary auth semantics and keep the reused DSN #317

Merged
weichen merged 12 commits from fix/svc-dsn-reuse-dbref into main 2026-10-11 08:55:14 +00:00
12 Commits
Author SHA1 Message Date
weichen 66962a517c Merge authoritative main into the task branch
ci / test (pull_request) Successful in 2m21s
ci / test-pg (pull_request) Successful in 58s
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=80a518628c526fd6ddece4abeb707ab4bb0b5618.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 08:27:35 +00:00
weichen e734de9c6b Close 1 merged task card(s) and archive them
ci / test (pull_request) Successful in 2m17s
ci / test-pg (pull_request) Successful in 1m10s
Why: branches merged into main had left their task cards open; backfill status and archive to prevent bookkeeping debt.
Evidence: fix-svc-dsn-reuse-dbref.md(already-complete) — merges verified via git log --merges against origin/main.
Impact: .task/*.md moved to .task/archive/ with status backfilled; no code or submodule change.
Refs: task.sh close (card-autoclose-r1)
2026-10-11 08:15:02 +00:00
weichen c1466c2c51 Mark the card complete and record the merge/cleanup plan
Why: Fold the card close into PR #317 per the post-merge cleanup instruction.
Evidence: make test exit=0 re-run at the synced head 0303040 (receipt in card).
Impact: Task card only.
Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 08:14:54 +00:00
weichen 0303040155 Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=95992d751f0a6ea8e345109dbb6b9367d9055e92; candidate=da5b92c3a168c913e60900b814c27d809eca4e0e.

Impact: task metadata only.

Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 08:13:26 +00:00
weichen da5b92c3a1 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=95992d751f0a6ea8e345109dbb6b9367d9055e92.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 08:13:02 +00:00
weichen cd05692e80 Fill the task record PR link (PR #317)
ci / test (pull_request) Successful in 2m19s
Why: The card's primary record must point at the real PR per the delivery gate.
Evidence: PR #317 open (API verified).
Impact: Task card only.
Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 02:14:05 +00:00
weichen 9e1b3c601f Record the test evidence and backfill the self-check results
ci / test (pull_request) Successful in 2m18s
Why: Complete the three-stage evidence (precheck/task-sync/tests) and the
self-check stage row per the evidence and delivery gates.
Evidence: make test exit=0 and make test-governance exit=0 receipts written
by make evidence at HEAD 8d73075.
Impact: Task card only.
Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 02:13:40 +00:00
weichen 8d73075a06 Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=73c901fa341a3653d6e0826d0da3497507995482; candidate=51bce59d282ccb6f33e9cfd61b03ea5f353e18be.

Impact: task metadata only.

Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 02:10:56 +00:00
weichen 51bce59d28 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=73c901fa341a3653d6e0826d0da3497507995482.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 02:10:26 +00:00
weichen 7acf3186ca Align the svc.sh startup precheck with the binary auth semantics and keep the reused DSN
Why: G1-7 moved the DSN into AGENT_SYSTEM_DSN, but the precheck only read
the arg string, so a non-loopback restart with auth auto was wrongly
rejected (2026-10-10 dev incident); the reuse path no longer restored the
dbref-bound DSN and would silently fall back to SQLite; and DSN_ENV leaked
across same-process starts (update --all) into other services' env.
Evidence: tests/test_svc_precheck.py 19 cases green (auth matrix vs
config.go AuthEnabled, reuse migration/dbref restore, scope isolation);
full governance suite 123 green; incident-scenario replay allowed + DSN
carried. Recorded via make evidence.
Impact: scripts/svc.sh precheck and reuse-start DSN handling only; no
binary change, no persistence-format change.
Refs: .task/fix-svc-dsn-reuse-dbref.md; config.go AuthEnabled (on || (not
off && DSN non-empty), env DSN counts).
2026-10-11 02:10:21 +00:00
weichen 675b740ce4 Fill the fix-svc-dsn-reuse-dbref task card and import the resume receipt
Why: Resume the pre-started task with the defect analysis (G1-7 precheck
mismatch, reuse-path DSN loss, DSN_ENV leakage) recorded per delivery policy.
Evidence: make precheck receipt (SELF) imported via make evidence.
Impact: Task card only; no code change yet.
Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-11 02:05:55 +00:00
weichen 582b753a48 Record the task card for fix-svc-dsn-reuse-dbref
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/fix-svc-dsn-reuse-dbref.md; R0=890b9b2bf2e9b356351d373a21f358ea04ca958b.

Impact: task metadata only; the feature workspace starts at 890b9b2bf2.

Refs: .task/fix-svc-dsn-reuse-dbref.md
2026-10-10 05:43:09 +00:00