Skip to content

Settings: auth switches show the manifest default, not the deployment declaration that runs, when nothing is stored #38098

Description

@objectstack-fleet

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Filing gate: ① a product defect, left open by PR #38094 (Fixes #38029), which marks the case with a banner and does not change the value (os-dev report 7232213655, open question 1). Dedupe: words source default declaration, email_password_enabled default, runtime declared default find only #38029 / #38094.

维护者速读

Facts (main after #38028; measured by the os-dev on #38029 at SettingsService.get and GET /api/settings/auth)

Options

  • B (recommended by the dev): a settings-service seam for a runtime-declared default, a per-key provider read wherever the manifest default is read. The value resolves to the declaration with source: 'default'. Fixes every auth key with a declaration and the managed no-change save, without a spec shape change, but redefines what source: 'default' means on the published ResolvedSettingValue.
  • C: widen the served live field to booleans and teach the console to draw live over values. Spec and ui change, a widening.

Done when

The switch (and the keys gated on it) shows the running value when nothing is stored, on self-hosted and cloud-managed runtimes, with the #38094 banner reduced to the cases the value still cannot say.

Activity

  1. added
    bug
    domain:server
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:cloud · domain:server · Bug · p2 · pm:queue · size S; rationale: when nothing is stored, the Settings auth switches show the manifest default instead of the deployment declaration that actually runs, so an admin reads the wrong state for sign-in methods. This is the general form of #38029 (the email-and-password case, p2); handle the two together. p2. Recorded 2026-11-28T03:12Z.

  3. added
    pm:queue
    priority:p2
    and removed on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Picked by card-pick.mjs --order area:cloud --seat repo:objectstack#6 at 04:10Z: rank 2, order 1. Rank 1 (#38109, area:package) is outside this seat's area:cloud intake. This seat filed the card from its own #38029 / PR #38094 (merged 03:05Z) and holds that context. The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.

    Claim: PM loop round 12
    Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
    Account: hotlong
    Branch: claude/issue-38098-runtime-declared-defaults
    Worktree: objectstack-issue-38098
    Domain: domain:server
    Seat: repo:objectstack#6
    File surface: packages/services/service-settings/** (a runtime-declared default seam read wherever the manifest default is read), packages/plugins/plugin-auth/** (registering the auth declarations; the #38094 banner reduced to what the value still cannot say), their tests, one changeset per package
    Container & model: S, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — settings shown value vs deployment declaration
    Thread-read: none
    Premise: holds per #38029's measurement (dev report 7232213655); the dev re-measures each auth key named on the card (email_password_enabled, signup_enabled, require_email_verification) on latest main first and records which ones differ
    Serial constraints cleared: #38094 (same plugin) merged 03:05Z; no other open PR of this seat names plugin-auth or service-settings.
    Scope this dispatch: option B of the card (seat ruling: no spec shape change). The dev declares Clause-② from the diff; a resolved value changing for an existing reader is read as a behaviour change of a published response, and the seat sends the PR to contract review whatever the line says. Fixes #38098.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 38098,
      "status": "done",
      "branch": "claude/issue-38098-runtime-declared-defaults",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38180",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Option B as ruled: service-settings gains registerDeclaredDefault(namespace, key, provider) and one private reader defaultOf that answers the cascade's bottom rung (declared value, else manifest default) at all three former manifest-default reads: the cascade walk (get/getMany/getNamespace, hence the HTTP route and the write-predicate change test), validatePatch's clear fallback, and the OS_* coercion type. Asked on each use, never recorded; undefined/null = nothing declared; a throwing provider is said once at warn and the manifest default answers. source stays 'default' (the spec enum admits nothing else): it now reads 'nothing stored, the deployment's default'; bindAuthSettings's isExplicit and the restore pass are unchanged by that. plugin-auth registers declarations for the three keys, re-measured on base 0e361201 and ALL THREE differ: email_password_enabled (declared off -> base resolved true/default), signup_enabled (declared disableSignUp -> base resolved true; formula extracted as public AuthManager.resolveDisableSignUp, used by getPublicConfig too, includes the SSO-only/cloud-managed forced-off and OS_DISABLE_SIGNUP), require_email_verification (declared true -> base resolved false; computed with resolveEmailVerificationRequirement under the posture in force). The #38094 banner is reduced to a stored value the runtime does not apply (managed hold, always warning) and any other disagreement; the declaredOff copy is removed from 11 locales. The #38028 managed save of true with nothing stored is now refused 400 SETTINGS_VALIDATION at the save door and pinned. ADR-0007 rung 4 amended in the PR (Prime Directive 13) and config-resolution.mdx updated, which makes the PR Tier H (docs/adr/**) and extends the claim's file surface; see open_questions.",
      "tests": "New service-settings/src/settings-declared-default.test.ts (7) and rewritten plugin-auth auth-settings-live-status.test.ts (9, real AuthPlugin + SettingsService + GET /api/settings/:namespace) and managed describe of sign-in-method-floor.test.ts (save of true with nothing stored refused: SettingsValidationError code SETTINGS_VALIDATION + field invalid_value + constraint, and HTTP 400 + SETTINGS_VALIDATION via the real PUT route; stored-on cases now seed a row before boot; Google case carries both refusals). Targeted: auth-settings-live-status 9/9, VERDICT command-exit 0. Packages at 783f52b5+tests: service-settings build+typecheck+test Test Files 79 passed, Tests 1550 passed; plugin-auth build+typecheck (tsc, examples, check:test-typecheck)+test Test Files 296 passed, Tests 6308 passed | 10 skipped; lock VERDICT command-exit 0. Reverse verification: fix committed, settings-service.ts restored from base 0e361201 via git restore --source (unstaged): settings-declared-default 7/7 failed (registerDeclaredDefault is not a function); live-status + sign-in-floor 7 failed | 65 passed, failures at declared-value assertions (expected false received true for email/password and signup; expected true received false for verification) after each running-config assertion passed, plus the managed refusal and Google cases; all CONTROL cases passed on base; restored with git restore --source=HEAD --staged --worktree, git status --porcelain empty. Final head 3d64e99f is a merge of origin/main (spec-only upstream, no overlap); spec rebuilt after it.",
      "gates": "Local at 3d64e99f: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 112; each run with exit captured before any pipe; --ran: 112 derived, 109 run exit 0, 3 NOT MEASURED (exit 3 prerequisite): check-plugin-teardown-shape.mjs --self-test (needs unshallowed clone), check:dual-build-cjs-loads and spec check:skill-examples (read dists outside the built closure). check:dts-closure first read a tree mid-rebuild (exit 1) and check:type-check-debt first queued on this run's own lock (exit 3); both re-ran exit 0. check:adr-0087-registration: 1 breaking changeset with not-required (no-migration-prescription). CI check-runs on #38180 at report time: in_progress/queued (Check Changeset, Governed Surface Queue Guard, Lint, Type Check lanes); not awaited. test:repo not run locally (diff touches no repo-project test).",
      "dogfood_battery": "3d64e99f · VERDICT command-exit 0 · Test Files 490/493 (3 skipped) · Tests 4144/4212 (68 skipped) · no failures",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38180/assignees); this os-dev-report comment via post-stamped.mjs (POST /issues/38098/comments). git push not counted.",
      "open_questions": [
        {
          "question": "Keep the ADR-0007 rung-4 amendment in this PR (making it Tier H: maintainer approval to land) or split it?",
          "options": [
            "A keep it here: code and the binding record change together, per Prime Directive 13; landing needs an authorized approval",
            "B split the ADR lines into a docs-only PR landed first or alongside; this PR becomes Tier S/ordinary but its code contradicts the ADR until the split lands"
          ],
          "recommendation": "A, because the amendment is two lines that record exactly this behaviour and Prime Directive 13 says the reversal needs the amended status line; the PR goes to contract review regardless."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: other auth.* keys whose deployment declaration can differ from the manifest default (password_min_length, password_max_length, membership_policy, mfa_required, session and lockout windows, rate limits; rows of AUTH_SETTING_RESTORE) still resolve the manifest default with nothing stored; inferred from the same bindAuthSettings shape, not measured through a public door; the new seam takes each with one formula; recorded in PR Acceptance notes",
        "carrier: none · noted: the served manifest still carries each specifier's manifest default; not observed rendered next to the switch in the console source read; PR Acceptance notes",
        "deviation: claim file surface named service-settings and plugin-auth only; the diff also touches docs/adr/0007 (amendment, Prime Directive 13) and content/docs/protocol/kernel/config-resolution.mdx; route note: env coercion reads defaultOf as the ruling listed (identical type for every registered key)"
      ]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Claim note against claim 7233770569, on PR #38180 (dev report 7234889808):

    • File surface widened to docs/adr/0007-* (the rung-4 amendment Prime Directive 13 requires for this behaviour change) and content/docs/protocol/kernel/config-resolution.mdx. Seat ruling on the dev's open question: A, the amendment stays in this PR so code and binding record change together; landing then follows whatever authorized approval that path requires.
    • Declarations are as the PR states; the PR goes to contract review as the claim said.
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 38098,
      "status": "done",
      "branch": "claude/issue-38098-runtime-declared-defaults",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38180",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Rework round on contract review 7235028565. S1: the plugin-auth changeset's Clause-② line (and the prepared PR body line) now names the accept-set change. On a declared-off deployment with nothing stored, the ten keys visible only while email_password_enabled !== false are hidden, so saves of them are no longer validated (password_min_length: 2 is now stored where it was refused), matching a stored false; turning email_password_enabled on re-judges them. A pin covers it, with a declared-on CONTROL. S2: the rung-4 comments in packages/spec/src/system/settings-manifest.zod.ts (file header and the SpecifierScope comment) and packages/platform-objects/src/system/sys-setting.object.ts now use the ADR's new wording. content/docs/references/system/settings-manifest.mdx was regenerated with check:generated --fix; the out-of-date reference page is what failed Type Check · source gates on 35b33541, and it is fixed at 35da5d7b. No spec or platform-objects changeset was added: the change is comments only, both packages are in the fixed release group, and Check Changeset requires no per-package coverage. N1: defaultOf now treats a promise answer like a throw (reported once, manifest default answers). The type is documented as synchronous and unjudged against the specifier's options. N5: new pins for signup_enabled under OS_DISABLE_SIGNUP and under cloud-managed, the validatePatch clear site (a required key gated on a cleared declared-off switch is not judged; CONTROL without a provider refuses), and the OS_* coercion site (where the manifest declares no default, 'yes' reads as true once a boolean declaration is registered). N2, N3 and N4 are left open and recorded in the body's Acceptance notes, with reasons. The acceptance notes reference #38184 for the other auth keys and N6. origin/main is merged; it touched service-settings, so the closure was rebuilt and both suites and the dogfood battery re-ran. The updated PR body is written to scratchpad/pr-38180/body.md and the live body is unchanged.",
      "tests": "At 35da5d7b, after rebuilding the dogfood dependency closure: service-settings typecheck+test, Test Files 79 passed, Tests 1545 passed; plugin-auth typecheck (tsc, examples, check:test-typecheck)+test, Test Files 296 passed, Tests 6310 passed | 10 skipped; lock VERDICT command-exit 0. Targeted before the merge: settings-declared-default 10/10; auth-settings-live-status + sign-in-method-floor 74/74 (live-status 11). The new pins assert the envelope: code SETTINGS_VALIDATION plus the field and its code. The base reverse verification from the first round still holds for the seam; the new cases are CONTROL-paired within the tests (provider vs no provider, declared off vs declared on).",
      "gates": "Local at 35da5d7b: dispatch-gates --commands derived 127 families, each with its exit code captured; --ran: 127 derived, 124 run exit 0, 3 NOT MEASURED (exit 3 prerequisite): check-plugin-teardown-shape --self-test (needs an unshallowed clone), check:dual-build-cjs-loads and spec check:skill-examples (dists outside the closure). spec check:generated: 14/14 current after --fix. CI check-runs on head 35da5d7b: 70 runs, 60 success, 10 skipped, 0 failed, none pending, including Type Check · source gates, which failed on 35b33541.",
      "dogfood_battery": "35da5d7b · VERDICT command-exit 0 · Test Files 491/494 (3 skipped) · Tests 4148/4216 (68 skipped) · no failures",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment via post-stamped.mjs (POST /issues/38098/comments). PR body not patched (written to scratchpad/pr-38180/body.md for the seat). git push not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #38184 · other auth.* keys with a deployment declaration, and N6 (signup_enabled stored on under SSO-only or cloud-managed shows on with no statement), referenced in the PR acceptance notes",
        "carrier: none · noted: contract-review nits N2 (OS_* coercion type follows the declaration), N3 (provider takes no context) and N4 (differs banner says 'saved setting' when the seam is missing or throws) left open; recorded in the PR acceptance notes"
      ]
    }
  9. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Landed by #38180. Follow-up: #38184 (other auth keys with a deployment declaration).

  10. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cloudbugdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions