Seed the mock startup option into the system settings scope #190

Merged
weichen merged 1 commits from fix/mock-startup-system-scope into main 2026-10-13 04:46:44 +00:00
Owner

Why: #188 made runtime.* system-managed; user-scope writes are rejected, so serve --mock exited at startup and never became healthy (Dev multi-instance integration regression).

Evidence: internal/app + internal/settings suites green (SELF); Dev follow-up PR CI re-runs make test-multi-instance against this fix (GATE).

Impact: --mock seeds via MergeSystem (operator-trusted, effective for all tenants through the Effective chain); no HTTP surface change.

Refs: Dev PR #508; #188.

Why: #188 made runtime.* system-managed; user-scope writes are rejected, so serve --mock exited at startup and never became healthy (Dev multi-instance integration regression). Evidence: internal/app + internal/settings suites green (SELF); Dev follow-up PR CI re-runs make test-multi-instance against this fix (GATE). Impact: --mock seeds via MergeSystem (operator-trusted, effective for all tenants through the Effective chain); no HTTP surface change. Refs: Dev PR #508; #188.
weichen added 1 commit 2026-10-13 04:45:13 +00:00
Seed the mock startup option into the system settings scope
ci / vet-and-test (pull_request) Successful in 48s
0af1ebc915
Why: Since the system-managed settings change (#188), runtime.* writes
at the user scope are rejected, so the mock startup flag failed with
"system-managed settings require admin" and the serve process never
became healthy - the Dev multi-instance integration regression.

Evidence: go build ok; internal/app and internal/settings suites green
(SELF); the Dev composite CI on the follow-up PR re-runs
make test-multi-instance against this fix (GATE).

Impact: The mock startup flag now seeds runtime.mock via MergeSystem
(trusted operator input, effective for every tenant through the
Effective merge chain); no HTTP surface changes.

Refs: Dev PR #508; backend #188.
weichen merged commit 741da4a0b6 into main 2026-10-13 04:46:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#190