Skip to content

Setup: replace developer wording and hand-written JSON with fields a business administrator can use #30208

Closed

Description

@objectstack-fleet

epic:#26676#1 · zhuangjianguo · session_cdb7a717def74e719988f089fbaa18ff

From a real-user walkthrough of Setup, filed on the maintainer's word: 「以上都同意,立卡」 (2026-11-05). Measured on main b7075d9908, with the console in dev mode, unless a line says otherwise. Test app scaffolded with create-objectstack@18.3.0.

Items

# Where Observed Suggestion
1 New permission set assignment fail-closed, 半开区间 [from, until), 智能体授权 in help text Business wording
2 New business unit 图谱语义, Null 表示租户根节点, HRIS, 图谱查询 Business wording
3 Edit organization 「为 true 时…」 「开启后…」
4 Permission set assignment 已绑定到 everyone 锚点 「所有登录成员都有」
5 Settings → 数据生命周期 Retention, row quota and class quota are raw JSON boxes Rows with an object picker and a duration
6 通知偏好 Topic and channel are free text, default *, and a wrong value silently matches nothing; 免打扰 is JSON Pick from known topics and channels; a time range control
7 队列, 队列成员 Whole pages are English in a Chinese console: titles, columns, help (新建Queue) Add the translations
8 邮件投递 Status banner No mail leaves this machine, and the test toast Sent test email to…, are English Localize
9 Setup list headers Badges 身份, 管理配置, 平台架构 say nothing to an administrator Remove, or explain

Take the rows independently. Translation rows are the cheapest and do not wait on the others.

Activity

  1. removed
    domain:ui
    on Nov 5, 2026
  2. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#6 · os-sales · session_01L6bhgUR8Nu4M7tbtgES7q2

    Release: 2026-11-05T14:01Z — PR #30488 landed (merge commit fa9c0aa2a, merged 2026-11-05T13:58Z; seat ACCEPT 6659389599 on head a5f5ec0b), Refs #30208, so this card stays open. Re-routed to domain:server for the rest.

    probe on origin/main after the merge reading
    Configured here in ui/packages/i18n/src/locales/en.ts 1 hit
    「所有登录成员都持有此权限集。」 in ui/packages/app-shell/src/views/metadata-admin/AssignedUsersSection.tsx 1 hit
    • Landed, row 4: the permission set assignment note no longer names the everyone anchor.
    • Landed, row 9 (the "explain" arm): the three Setup header tags read 在此配置 / 平台预置 · 可编辑 / 经身份服务写入, in all ten ui language packs.
    • Remaining → domain:server: rows 1, 2, 3, 7 and 8 are text the server serves: packages/plugins/plugin-security (row 1, also 半开区间 in plugin-approvals) and packages/platform-objects (rows 2, 3) translation bundles; packages/plugins/plugin-sharing, which ships no translation bundle for sys_queue / sys_queue_member (row 7); packages/plugins/plugin-email live-transport-status.ts and email-plugin.ts (row 8).
    • Remaining → domain:server, shape first: row 5 (数据生命周期 retention / row quota / class quota as JSON boxes) needs a settings shape the console can draw rows from, owned by packages/objectql/src/lifecycle/lifecycle-settings.ts; the ui control follows on a new card once the shape exists.
    • Remaining → maintainer: row 6 and comment 6651344343 (pick 通知偏好 / 通知模板 topic and channel from known values) would reverse the route A ruling on Setup → Notification Preferences: Topic and Channel are free-text boxes, so muting one topic means typing its machine name — offer pickers over the topics and channels the platform knows (hotcrm#2194 T2-U15, the remainder) #25346, under which channel is open free text at runtime (cited in notification-preference.object.ts). The seat files that as a decision card; ⛔ no lane builds it before the ruling. The 免打扰 time-range control is not part of that question and can follow on its own.
    • One more finding from this card's thread is filed as Setup sidebar: the People & Organization and Access Control entries read English on a zh-CN console #30504 (Setup sidebar entries in English on a zh-CN console).
  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 5, 2026
  4. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE

    Claim: PM loop round 2 (server half: rows 1, 2, 3, 7, 8)
    Session: session_01Utp6CXCS98uhsFQYk64epE (seat) · dev = project card thread session_01Utp6CbDNK83SuSb8zsRt2s
    Account: os-bill
    Branch: claude/project-thread-q572zu (harness-pinned thread branch; platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-30208
    Domain: domain:server
    Seat: domain:server#6
    File surface: packages/plugins/plugin-security/**, packages/plugins/plugin-approvals/** (one string), packages/platform-objects/**, packages/plugins/plugin-sharing/**, packages/plugins/plugin-email/**, with tests and extract-regenerated bundles; content/docs/** only for sentences this PR makes false (not releases/**); changesets. ⛔ packages/spec/**, ui/**, skills/**, docs/adr/**, .claude/**, AGENTS.md, packages/objectql/** (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier (opus; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no — served text changes only; no key, option value or accept set moves
    Metadata-protocol: none
    Responsibility: the server serves developer wording (rows 1–3), no sys_queue translations (row 7) and English mail-delivery status text (row 8) to a zh-CN Setup, per the ui seat's release 6659910397 | none: rows 4 and 9 landed in PR #30488 | every administrator using Setup in Chinese
    Thread-read: 6659910397
    Premise: holds per the ui seat's producer reading on origin/main after PR #30488; the dev re-measures each row. Rows 5 (settings shape) and 6 (reverses the #25346 route A ruling) are excluded.
    Serial constraints cleared: none (PR #30488 merged; no open PR on these packages' translation bundles at claim time, dev re-checks)

    Order: project file server-seat6/dispatch-30208.md, delivered to the card thread.

  5. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE

    席位核对 · Amendment · 2026-11-05T14:15Z · claim on #30208, file surface widened for row 8

    File surface: the claim's surface plus packages/services/service-settings/src/** for row 8's test toast only: SettingsActionHandler's input gains an optional locale, and the settings action route passes the request's display locale (the dev measured the handler has no locale today, so the toast cannot be localized inside plugin-email alone). Same lane (domain:server), no packages/spec change.
    Clause-②: no for the served text; the exported handler input gains one optional field (additive; existing handlers compile unchanged). The dev states the arm from the diff (yes (widening) if the field is exported public surface), and the seat reviews the declaration at TIER_DEFAULT.

    Everything else in the claim stands.

  6. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE
    os-dev-report

    Dev thread session session_01Utp6CbDNK83SuSb8zsRt2s, branch claude/project-thread-q572zu, PR #30551 at head 7e4a3272.

    {
     "issue": 30208,
     "status": "done",
     "branch": "claude/project-thread-q572zu",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/30551",
     "session": "session_01Utp6CbDNK83SuSb8zsRt2s",
     "premise_still_valid": true,
     "summary": "Rows 1, 2, 3, 7, 8 of the card, Refs not a closing keyword (rows 5 and 6 stay). Rows 1-3: administrator wording in the English source and zh-CN help of sys_user_permission_set / sys_user_position valid_from, valid_until, reason; sys_approval_delegation.valid_until; sys_business_unit kind, parent, active, effective_from/to, external_ref; sys_organization.require_mfa (keeps PR 30529's two-factor sentence); sys_user banned, must_change_password. Row 7: SysQueue and SysQueueMember join plugin-sharing's extract config, zh-CN written. Row 8: plugin-email's live-status statement and mail/test answers come from an en/zh-CN copy table by the caller's locale; service-settings SettingsActionHandler gains optional locale, runAction a display argument, the POST action route passes requestLocaleOf(req) (file surface amendment 6660228108).",
     "tests": "Red on pin commit 0f390750 (main fa9c0aa2 + pins): security 10F/2P, approvals 2F, platform-objects 18F, sharing 4F, email 4F/9P, settings-routes 1F/34P. Green: pnpm --filter PKG test + typecheck for service-settings, platform-objects, plugin-security, plugin-approvals, plugin-sharing (66 files/1409), plugin-email, all exit 0 under the verify lock on e205cf31; on final head 7e4a3272 platform-objects 112 files/1544 tests, plugin-approvals (07d639c3) 112/1471. Ablation once via scripts/ablation-replace.mjs: live-status provider without the locale, anchor 1->0, mail-log-provider.pin 2F/11P (the two zh-CN statement pins), restored blob == HEAD, git diff HEAD empty. Relative src imports, no dist in the path.",
     "gates": "dispatch-gates --commands on f63ad0b2 (post main merge): 66 derived; --ran 66 derived, 65 run, 1 NOT-MEASURED (check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET, left to CI), 0 UNRUN. check:i18n-stale-fill exit 1 on first pass (approvals valid_until ja-JP/es-ES old fill) fixed in 07d639c3, exit 0 on 07d639c3 and 7e4a3272. Re-run on final head 7e4a3272: check:i18n 0, check:i18n-stale-fill 0, i18n:extract byte-identical, pnpm lint 0, eslint on changed files 0. CI check-runs on PR 30551: not yet read (report not held for CI). Path set: 32 paths at f63ad0b2, 36 at 7e4a3272 (07d639c3 added the four approvals ja-JP/es-ES bundle and source-hashes files); --commands on 7e4a3272 derives the identical 66-command list (diff empty), and --ran against the recorded file answers 66 derived, 65 run, 1 NOT-MEASURED.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "7 — issue_read x4 (30208 get + comments x2, 30504 get), pull_request_read x2 (30529 get_files, get), ToolSearch not counted; no MCP write tool",
     "api_writes": "2 — fleet-write relay pr_create (run 42053830272, 30551, 11956 bytes read back identical, no assignees) and this os-dev-report comment via post-stamped. git push is not a REST write.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: PR 30529 (seat 2) · overlap on sys_organization.require_mfa help (source, en, zh-CN): this PR carries 30529's two-factor sentence beside the new wording; the second lander takes this text on merge",
      "carrier: seat 2 seven-language pass · ja-JP / es-ES leaves for the rows 1-3 help still translate the old source (es-ES valid_from 'modo fail-closed'), legacy-trusted; queue objects are English fills there",
      "carrier: seat (noted, not filed) · same wording class outside these forms: sys_setting / sys_platform_setting encrypted and locked help 为 true 时; sys_user_position.business_unit_id help names readScope/writeScope; mail/test input refusals (SMTP host is required, api_key is required, unsupported provider) stay English"
     ],
     "deviations": "(1) Closing line: the dispatch's How names a closing keyword, its rulings and os-dev say Refs for a partial card; the PR says Refs #30208 (rows 1, 2, 3, 7, 8). (2) ja-JP / es-ES touched despite the seat's en/zh-CN note in two mechanical places only: sys_queue_member recipient_type options copy the sibling sharing objects' existing renderings (recipient-vocabulary-consistency pin), and approvals valid_until fill follows the new source (check:i18n-stale-fill). (3) require_mfa help extended with PR 30529's sentence to pre-resolve the overlap. (4) Commits carry the model-free trailer pair; the harness's model-named trailer is not used (pre-push hook). (5) The PR body's Verification sentence 'The changed-path set did not move' is wrong: paths went 32 to 36; the derived family list did not move (66, identical). Body is dev-written once; seat may amend that sentence.",
     "line_budget": "36 files, +768/-106 vs merge base c3224219 (generated bundles included)",
     "files_changed": 36
    }
  7. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE

    ACCEPT → PR #30551 comment 6662414490 · 2026-11-05T15:49Z · head 7e4a3272:server 半边(第 1、2、3、7、8 行)全绿,契约复核 TIER_DEFAULT PASS(6662396863),已 ready + auto-merge。PR 写 Refs,本卡保持开,等其余行。

  8. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE

    PR #30551 re-armed at head adc94da5 after the main-conflict merge (no rebase). Delta contract review PASS posted on the PR; every check green, mergeable clean, auto-merge enabled 2026-11-05T17:14Z. Landing note follows here on merge; this card stays open for its other rows.

  9. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-bill · session_01Utp6CXCS98uhsFQYk64epE

    Landed · 2026-11-05T17:36Z · PR #30551 (rows 1, 2, 3, 7, 8)

    Probe Reading
    PR #30551 merged, merge commit bdbaf80cdb, merged at 2026-11-05T17:36Z through the merge queue (contract review 6662396863 + delta 6664349607 on adc94da5, seat record 6662414490)
    #30208 open: the PR says Refs, not Fixes

    State change: pm:dispatched removed; card stays open for rows 5 and 6, which this order did not build. Row 5 (lifecycle JSON → a settings shape) touches packages/objectql; row 6 (topic/channel pickers) reverses the #25346 route A ruling, so it needs a maintainer ruling before anyone builds it. ja/es fills for the reworded fields belong to seat 2's seven-language pass (#30512).

  10. removed
    pm:dispatched
    on Nov 5, 2026
  11. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-bill · session_01Utp6Cbvcmv8YWFhFJwzjKL

    Ruling confirmed: row 6 = E (decision card #30527, now closed) · recorded by domain:server#2; the cards below are not cut yet (the maintainer ended the server lane's shift) and are owed by the next server seat.

    Maintainer: 「同意」, in the decision thread, 2026-11-05T21:42Z (project files decisions/30208-第6行-通知偏好主题渠道下拉-呈批-fable复审.md, §7).

    1. Server card first (non-breaking, patch, no packages/spec edit): a read-only list route (channels = those getRegisteredChannels has mounted, plus known-but-unmounted ones marked "not configured"; topics = the platform's fixed topics + literal topics in this organization's flow notify steps + stored sys_notification.topic values; * first); sys_notification_preference.topic / channel and sys_notification_template.topic declare the widget; the help text gains push (present since Push channel: build the device registry routes (/notifications/devices) and the APNs + FCM transport that ADR-0012 marks "MUST ship M1" #29041) and notification-preference-topic-channel-help.test.ts ~L63 is re-pinned.
    2. ui card (after the server card merges): register two fillable dropdowns (a fillable arm on RegistryRefField, or new beside FlowReferenceField); no list ⇒ plain text box; a typed value not in the list is stored and marked "not in the list"; the template channel keeps channel_renders_template as is. Row 6 closes when the ui card lands.
    3. Quiet-hours time-range control: its own ui card, not waiting on this ruling.

    State change: none (rows 5 and 6 stay open on this card).

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibyvxbrLP4jm4PargoH

    Claim: PM loop round 1 · row 6, server half (ruling E, #30527 record 6670386759; steps comment 6670396132 item 1) · 2026-11-06T15:39Z
    Session: session_01L9qibyvxbrLP4jm4PargoH
    Account: os-tesla (the card's assignee; the stale os-bill assignee, left after that seat's sign-off, is removed in the same stroke)
    Branch: claude/project-thread-py5oh8 (the card thread's designated branch; dev session session_01L9qibwBQRERS1JhPWT48RW)
    Worktree: objectstack-issue-30208
    Domain: domain:server
    Seat: domain:server#2
    File surface: packages/services/service-messaging/**: a read-only route mounted by service-messaging on http-server (as service-settings / service-print / service-storage do), its route ledger and package-local ledger conformance test, src/objects/notification-preference.object.ts (topic / channel widget hint + help text gains push), src/objects/notification-template.object.ts (topic widget hint only), src/objects/notification-preference-topic-channel-help.test.ts (re-pin), route tests, one changeset; plus three one-line wiring edits the live-mount parity gate owes: packages/qa/dogfood/test/route-ledger-live-mount-parity.dogfood.test.ts, scripts/cross-package-test-inputs.mjs, turbo.json. ⛔ No packages/spec edit, ⛔ no packages/runtime edit (stop on breach).
    Container & model: M, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path mandate), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: the free-text topic/channel inputs are ours (service-messaging, objectstack); no route serves the known topics or channels today (getRegisteredChannels reaches only a boot log line); every administrator who edits 通知偏好 meets it.
    Thread-read: 6670396132
    Premise: holds. The dev measured on origin/main af1d59b6: service-messaging mounts no HTTP route; the sibling /api/v1/notifications routes live in packages/runtime behind INotificationService (a spec contract), so the route is mounted by service-messaging itself (route B), not by runtime (A would need a spec card).
    Serial constraints cleared: none (no open PR or in-flight claim names service-messaging's objects or route ledger)

    Partial: the PR says Refs #30208 (row 6, server half), never Fixes. On merge the seat releases this card for the ui half (comment 6670396132 item 2) and row 5.
    Order: /mnt/project-files/server-seat-2/r2026-11-06/dispatch-30208-r6.md (frame FRAME.md beside it).

  14. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibwBQRERS1JhPWT48RW
    os-dev-report

    Written 2026-11-06T16:38Z.

    {
      "issue": 30208,
      "status": "done",
      "branch": "claude/project-thread-py5oh8",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/31004",
      "head": "d49306949c61b8f206d726364b7d46beb68cbfff",
      "session": "session_01L9qibwBQRERS1JhPWT48RW",
      "premise_still_valid": true,
      "summary": "Row 6, server half (ruling E on #30527, execution step 1 of comment 6670396132), route B of the seat's claim 6688765720. service-messaging mounts a read-only GET /api/v1/messaging/preference-options on http-server at kernel:ready that answers the topics (platform fixed topics, this environment's flow notify-step topics, the caller's organization's stored sys_notification topics) and channels (every known channel, configured:false when its transport is absent), '*' first in both. sys_notification_preference.topic/.channel and sys_notification_template.topic declare widget hints on the existing free FieldSchema.widget string; the preference channel help names push in all 11 languages. Fields stay free text, '*' is stored as written, nothing new is refused; no packages/spec and no packages/runtime edit.",
      "route": {
        "request": "GET /api/v1/messaging/preference-options, no query parameter (closed set is empty), session or API key",
        "refusals_in_order": [
          "authz store unavailable -> SERVICE_UNAVAILABLE 503, relayed as declared; API key lifecycle refusal -> its own 403 + code",
          "held sign-in (ADR-0069) -> 403 with the auth policy's code (e.g. PASSWORD_EXPIRED)",
          "anonymous -> 401 UNAUTHENTICATED (ADR-0056 D2 floor)",
          "any query parameter -> 400 VALIDATION_ERROR naming it",
          "a source that cannot be read -> 500 INTERNAL_ERROR, error in the fault log, never a partial list"
        ],
        "response_200": "{ success: true, data: { topics: Array<{ value: string; wildcard: boolean; sources: Array<'platform'|'flow'|'stored'> }>, channels: Array<{ value: string; wildcard: boolean; configured: boolean }> } }",
        "ordering": "topics: { value:'*', wildcard:true, sources:[] } then sorted, de-duplicated, sources in platform/flow/stored order; channels: { value:'*', wildcard:true, configured:true } then MessagingService.getKnownChannels() order (direct channels, then lazy providers)",
        "organization_boundary": "stored topics: one aggregate on sys_notification grouped by topic with where { organization_id: <caller tenantId> } under PREFERENCE_OPTIONS_SYSTEM_CONTEXT; a caller with no organization gets no stored topic. Flow topics are environment metadata (ADR-0131 D6), the same for every organization of the environment."
      },
      "tests": "pnpm --filter @objectstack/service-messaging test && typecheck under the verify lock on 00bd47c0: Test Files 69 passed (69), Tests 874 passed (874), VERDICT command-exit 0. New: src/preference-options-routes.integration.test.ts 8/8 (real resolver over a fake auth service, real ObjectQL over SqlDriver/better-sqlite3, org_a + org_b on the isolated posture); src/messaging-route-ledger.conformance.test.ts; notification-preference-topic-channel-help.test.ts re-pinned. Dogfood route-ledger-live-mount-parity 8/8 on the showcase boot, which logged '[messaging] preference options list mounted at GET /api/v1/messaging/preference-options'.",
      "ablations": [
        "organization term deleted (where: { organization_id: organizationId }, anchor 1 -> 0): 'a topic stored in one organization never appears for another' FAILED: AssertionError: expected [ '*', 'approval.comment', …(18) ] to not include 'org_b.secret_topic'",
        "anonymous branch replaced by 'if (false as boolean) {': 'refuses an anonymous caller 401 UNAUTHENTICATED' FAILED: expected [ 'INTERNAL_ERROR', 500 ] to deeply equal [ 'UNAUTHENTICATED', 401 ]. A first, narrower mutation (shouldDenyAnonymous removed, '!context' kept) stayed GREEN, because the fail-closed composition already answers no context for an unauthenticated request; recorded, not hidden.",
        "held sign-in gate disabled: 'refuses a held sign-in 403 ...' FAILED",
        "query refusal disabled: 'refuses a query parameter 400 VALIDATION_ERROR naming it, never ignoring it' FAILED",
        "notify-type filter disabled (every node read as a notify step): the list case FAILED on 'not.a.notify.topic'",
        "every ablation through scripts/ablation-replace.mjs; restored blob == HEAD and git diff HEAD empty after each"
      ],
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on 00bd47c0 (25 paths): 86 commands, each run with </dev/null, all ':: exit 0'; --ran: '86 derived, 86 run, 0 NOT-MEASURED, 0 UNRUN'. npx eslint --no-inline-config on packages/services/service-messaging/src, the dogfood parity test and scripts/cross-package-test-inputs.mjs: exit 0 (neither touched package has a lint script of its own). After merging origin/main (d4930694, 8 commits, only turbo.json overlapping): pnpm check:turbo-task-graph, check:cross-package-test-inputs, check:ci-filter-parity, check:i18n: exit 0 each. PR check-runs at report time: filter success, Check PR Size success, Governed Surface Queue Guard success, PR-body guards success; Build Core, Type Check (workspace, source, consumer, debt ledger), Lint families, Dogfood Regression Gate, Live E2E UI, Check Changeset, Spec property liveness in_progress. The thread watches the PR and fixes any red.",
      "dogfood_battery": "n/a — no '!' in the PR title and no (narrowing) arm",
      "line_budget": "25 files, +921 / -35 vs main; no generated file except the regenerated en bundle; under the 3,000-line human-approval line",
      "files_changed": [
        ".changeset/30208-messaging-preference-options.md",
        "packages/qa/dogfood/test/route-ledger-live-mount-parity.dogfood.test.ts",
        "packages/services/service-messaging/src/messaging-route-ledger.ts",
        "packages/services/service-messaging/src/messaging-route-ledger.conformance.test.ts",
        "packages/services/service-messaging/src/messaging-service.ts",
        "packages/services/service-messaging/src/messaging-service-plugin.ts",
        "packages/services/service-messaging/src/preference-options.ts",
        "packages/services/service-messaging/src/preference-options-routes.ts",
        "packages/services/service-messaging/src/preference-options-routes.integration.test.ts",
        "packages/services/service-messaging/src/objects/notification-preference.object.ts",
        "packages/services/service-messaging/src/objects/notification-template.object.ts",
        "packages/services/service-messaging/src/objects/notification-preference-topic-channel-help.test.ts",
        "packages/services/service-messaging i18n bundles: en (regenerated) + ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-CN, zh-Hant",
        "scripts/cross-package-test-inputs.mjs",
        "turbo.json"
      ],
      "deviations": [
        "The harness's assignee/reviewer step after PR creation was skipped: the frame forbids GitHub MCP writes and assigning/requesting review; the PR was opened only through the fleet-write relay (draft forced, no reviewers, no assignees).",
        "The anonymous-floor ablation needed a second, wider mutation to go red (see ablations); both runs are recorded in the PR body.",
        "PLATFORM_NOTIFICATION_TOPICS is a measured constant (no topic registry exists; ADR-0030 defineTopic() was never built): a feature that starts sending a new fixed topic must add it there, and no gate catches a miss.",
        "check-i18n-bundles --write needed a full build of the CLI first (exit 3 before it); no code change."
      ],
      "mcp_calls": "7 at posting — reads only: mcp__github__issue_read x5 (#30208 get, #30208 comments x2, #30527 get + comments), mcp__github__pull_request_read x2 (#31004 get, get_check_runs); the read-back of this comment follows as one more issue_read. 0 writes.",
      "api_writes": "2 — fleet-write relay pr_create (request fw-20261106T163601Z-93f083, run 42253907848, read-back 10930 bytes sent = stored, assignees none) -> #31004; this comment via scripts/pm/post-stamped.mjs.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  15. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibyvxbrLP4jm4PargoH

    Claim amendment · 2026-11-06T17:06Z · amends the row-6 claim on this card

    File surface (added): scripts/check-route-envelope.mjs, one MODULES entry declaring packages/services/service-messaging/src/preference-options-routes.ts (responses: 0, ok: 0, err: 0; the module writes every body through the shared sendOk / sendError / sendServerFault) plus its comment. The "Response-envelope guard" (pnpm check:route-envelope) reds PR #31004 without it. dispatch-gates --commands did not derive that gate for service-messaging paths; the dev records the blind spot in the PR's Acceptance notes. Everything else in the claim stands.

  16. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibyvxbrLP4jm4PargoH

    ACCEPT on PR #31004 (row 6, server half; head 581fce5c, 6691264164) · 2026-11-06T17:35Z · the seat readies it and arms auto-merge. On merge the card goes back to pm:queue for the ui half (step 2) and row 5, and the seat files the ui card.

  17. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibyvxbrLP4jm4PargoH

    Landing · 2026-11-06T18:26Z · PR #31004 (row 6, server half) MERGED 2026-11-06T18:08Z as 4fae0be8: GET /api/v1/messaging/preference-options serves the topic and channel lists, and the three fields declare their picker hint.

    The card stays open: row 6's ui half (ruling E step 2 of 6670396132: the console's picker reads this route) and row 5 remain. The card goes back to pm:queue with no assignee; the ui half is domain:ui work and the seat files it as its own card.

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-tesla · session_01L9qibyvxbrLP4jm4PargoH

    Child filed · 2026-11-06T23:20Z · row 6, step 2 (the ui pickers over GET /api/v1/messaging/preference-options, from #31004) is #31062 (domain:ui, pm:queue). Row 6 closes when #31062 lands. Row 5 and the quiet-hours control (step 3) remain on this card.

  20. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-tesla · session_01L9qibw7DekEe3wx5f3zphf

    Row 6, UI half, landed at 2026-11-07T02:00Z: PR #31069 (3f61e4f8, card #31062) registers field:notification-topic and field:notification-channel as fillable pickers. They read GET /api/v1/messaging/preference-options (#31004) through the host's authenticated fetch. A typed value is stored verbatim and marked "not in the list", a not-configured channel is listed and selectable, and a failed or empty answer falls back to the text box. With the server half (#31004), row 6 is done. Quiet hours (step 3) and row 5 are untouched by this card.

  21. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 7, 2026
  22. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Claim: PM loop round 1 · #30208 row 5 (Settings → Data Lifecycle: retention / row quota / class quota are raw JSON boxes) · 2026-11-07T19:10Z · shape first, then build
    Session: session_017ihL2fBJ6xsLWJsnNJGMMx
    Account: marchtian
    Branch: claude/project-thread-4ntp5s (the card thread's harness-pinned branch, cut from main 4c318214; platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-30208
    Domain: domain:server
    Seat: domain:server#2
    File surface (phase 0, read-only): none written. The phase 0 output is a shape analysis posted on this card. (phase 1, after the maintainer's ruling): packages/objectql/src/lifecycle/lifecycle-settings.ts and its readers (lifecycle-service.ts, the services that read retention_overrides / quotas / quota_defaults), service-settings translations, and packages/spec/src/system/settings-manifest.zod.ts only if the ruling grants a specifier widening. ⛔ ui/** (the console control is its own card once the shape exists).
    Container & model: M, mode:thread, model: TIER_DEFAULT, effort: default
    Clause-②: no — phase 0 writes no code; phase 1 re-derives it from the ruled shape (a new specifier type would be yes (widening)) and the seat posts a fresh Claim: before the build
    Metadata-protocol: none
    Responsibility: what a business administrator edits on the Data Lifecycle settings page | the lifecycle settings namespace | Setup → Settings → Data Lifecycle
    Thread-read: 6700719349
    Premise: holds. On origin/main 714dda8faa, lifecycle-settings.ts declares retention_overrides, quotas and quota_defaults as type: 'json'. SpecifierType in settings-manifest.zod.ts is a closed enum with no row or map specifier, so no rows-with-an-object-picker shape exists today (#30208 release 6659910397: "shape first").
    Serial constraints cleared: rows 1–4 and 6–9 have landed or been filed elsewhere. Seat 3 released this row. The quiet-hours control goes to the ui lane as its own card.

    Phase 0 is a design question, not a build. The shape needs either a new settings specifier (a packages/spec widening plus a ui renderer) or a move of the overrides to records. Either way it goes to the maintainer through a decision thread before any code is written. Order: project file server-seat-2/orders/30208-row5.md.

  23. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2dxcqiQvzKhr5odTPe

    Row 5 shape analysis (phase 0)

    Read-only, on origin/main 4c318214, posted 2026-11-07T19:17Z. No code, no branch push, no PR.

    1. Readers and writers of the three keys

    Who Reads / writes Shape relied on
    lifecycle-service.ts:1147-1150 loadGovernance reads all three, global layer Record<object, {maxAge?, expireAfter?}>, Record<object, number>, Record<class, number>; ?? {}
    lifecycle-service.ts:1180-1192 reads retention_overrides per organization, keeps only source === 'tenant' same map; non-object entries skipped
    lifecycle-service.ts:1313 quotas[obj] ?? quota_defaults[class], used only if typeof === 'number' && > 0 numbers
    lifecycle-service.ts:1371, 1693 → effectiveWindowMs (1480) override string parsed by parseLifecycleDuration (`^(\d+)(h d
    service-queue db-queue-adapter.ts:343, queue-service-plugin.ts:164 no read; the retention-floor remedy text names the path lifecycle.retention_overrides.sys_job_queue.maxAge prose that quotes the JSON path
    service-messaging, -job, -automation, metadata-protocol identity-index migration, sys-setting.object.ts:214 comments only none
    env OS_LIFECYCLE_RETENTION_OVERRIDES / _QUOTAS / _QUOTA_DEFAULTS (envKeyOf), JSON.parsed because the default is an object (settings-service.ts:4294); OS_LIFECYCLE_DISABLED is a separate process flag JSON text
    docs, skills, translations rules/lifecycle.md:138, objects.mdx:210, backup-restore.mdx:177, production-readiness.mdx:191, ADR-0057 §3.2; settings.lifecycle.keys.* in 10 languages name the keys

    Nothing validates the value. validatePatch has no type or shape check for json, so a typo in an object name, a quota of "1e6" or a duration of 30 days is stored and then silently does nothing (only the bad duration logs a warning).

    2. How the console draws it today

    ui/apps/console/src/pages/settings/SettingsField.tsx:1054 draws json as a monospace <Textarea> with onChange(e.target.value); SettingsView.tsx:740 drafts that string and api.ts:155 PUTs it as is (no JSON.parse in pages/settings/). Traced by reading, not measured: editing the box saves a JSON string, loadGovernance then indexes a string, and every override and quota silently stops applying. ADR-0007 says json "persists object". These are the only json settings specifiers in packages/; phase 1 should confirm with a live PUT first. Under A or B the box goes away.

    A row editor needs: (a) a key column, an object picker over objects that declare lifecycle (others ignore an override) or a LifecycleClass select; (b) value columns, a duration (number + h/d/w/y, LIFECYCLE_DURATION_REGEX) or a positive integer; (c) per-column labels in the translation tree. The runtime option source (registerOptionSource, as localization.locale uses) can serve the object list.

    3. Candidate shapes

    A: new specifier type (keyed rows / map with columns) B: json plus an optional structure hint C: records (a system object with object lookup + duration fields)
    Changes enum value + columns; 3 specifiers; settings-service write check; ui card optional hint on json; same check off the hint; ui rows when hinted new object + list/form; lifecycle-service reads records; action_button navigate to the list
    Clause-② yes (widening); ADR-0007 says "New types require an ADR amendment" yes (widening), no new type; ADR-0007's "json = code editor" line needs a note yes (narrowing): three settings keys and their env vars go away
    Stored values unchanged, no migration unchanged, no migration sys_setting rows migrate to records (tenant → organization_id); lossless only if bad entries carry over
    Cascade unchanged (env, lock, config audit) unchanged env override, global lock and settings audit lost or rebuilt
    ui card one new control (rows, picker, duration) same control, keyed off a hint standard list and form, no new control
    Old console shows "Unsupported specifier type" (ui ships in this repo, so skew is short) falls back to the textarea n/a

    Also considered: a per-object panel on each object's setup page (the Salesforce place). It scatters the overrides and still needs A or B underneath.

    How others present this: all show one row per target (table/service + window), none a free-form map.

    ServiceNow and Dataverse store rules as records (C). What transfers is the row look; our per-organization cascade already does what their record scoping does.

    4. Recommendation

    A. The three keys really are maps (object or class → window or count). A keyed-rows specifier draws them as the rows the platforms above show, keeps every stored value, env var, lock and audit row as it is, and gives service-settings a declaration to refuse a wrong object, duration or count at both the save door and the env door. Today none of these is refused. B is A without the new enum value, at the cost of one type with two renderings. C fits ServiceNow/Dataverse but trades the cascade and a data migration for a page with three knobs. A needs an ADR-0007 amendment and a spec widening, so it takes the Fable spec review. The control itself is the domain:ui follow-up card.

    Search terms: json specifier string, retention_overrides console, settings keyed rows, SpecifierType map.

  24. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Row 5 ruling record — A (a typed map specifier)

    Ruled · 2026-11-08T02:08Z

    田騏, 2026-11-08 02:07:52Z, in the project's Fable decision thread: 「同意」 (project message cmsg_01VmuUhXU9SSUzqJYyXSmYSiAbe9LctoxZJq1geQKD7KXc). That accepts option A of the decision card: "spec 加一个带列定义的映射类型,三个键改用它;值和环境变量不变,保存口和环境变量口开始校验;修订 ADR-0007,另开 ui 控件卡。" The analysis is the phase 0 comment 6711865649 plus the Fable thread's write-up (platform survey: VS Code object grid, ServiceNow Table Cleanup, Dataverse retention, Salesforce HistoryRetentionPolicy, Google Vault, S3 Lifecycle).

    What A means here. SpecifierType (packages/spec/src/system/settings-manifest.zod.ts) gains one typed-map member with column definitions. The working name is map; the spec PR and its Fable review settle the final name. retention_overrides, quotas and quota_defaults move from json to it. ADR-0007 is amended under its own rule "New types require an ADR amendment". The console control is a separate domain:ui card.

    Hard constraints carried by the ruling:

    1. Stored shape unchanged, zero migration. A single-column map stores scalars (quotas, quota_defaults); a multi-column map stores objects (retention_overrides). One type covers both, and the rule is written in the spec docs.
    2. One shape judgement shared by both doors, as options and pattern already are (env 来源的 settings 值绕过 manifest 的 options 表校验 —— #5094 在写入 API 上堵住的洞,在 OS_* 覆盖这一侧原样敞开 #5204, settings env 门不执行 pattern:写入门拒的形状非法值,OS_* 覆盖照收——#5204 不对称的最后一族 #6580): the save door (validatePatch) and the env door (effectiveEnvOverride). The key must name a real lifecycle object or class, a duration must match LIFECYCLE_DURATION_REGEX, and a quota must be a positive integer.
    3. The key column's domain comes from a runtime option source: objects that declare lifecycle, or LifecycleClassSchema. It is never hard-coded in the manifest.
    4. json stays in the enum for genuinely raw config. The ADR-0007 amendment adds the new type and notes that json is no longer the home for maps.
    5. The 12 translation packs drop the JSON examples from the three keys' help text.
    6. The ui card follows immediately. Until it lands, the console shows the three keys as an unsupported type; 田騏 has been told. Env overrides are unaffected.

    Phase 1 is dispatched to this card's thread after #31279 (Fixes #31241, the json-stored-as-text defect) lands, because both touch settings-service.ts and lifecycle-service.ts.

  25. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Claim: PM loop round 1 · #30208 row 5 phase 1 (build ruling A: a typed map specifier for the three lifecycle map keys) · 2026-11-08T02:09Z · build
    Session: session_017ihL2fBJ6xsLWJsnNJGMMx
    Account: marchtian
    Branch: claude/project-thread-4ntp5s (the card thread's harness-pinned branch; the phase 1 PR is cut from it after merging main once #31279 has landed; platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-30208
    Domain: domain:server
    Seat: domain:server#2
    File surface: packages/spec/src/system/settings-manifest.zod.ts (+ its test, generated reference docs and the spec's settings docs), docs/adr/0007-settings-manifest-and-kv-store.md (the amendment row), packages/services/service-settings/src/** (the shared map shape judgement in validatePatch and effectiveEnvOverride, the runtime option source for a map's key column, the 12 translation packs' settings.lifecycle.keys.* help text), packages/objectql/src/lifecycle/lifecycle-settings.ts and lifecycle-service.ts (readers unchanged in shape), skills/** lines that teach the three keys as JSON (if any), .changeset/. ⛔ ui/** (the console control is its own domain:ui card). ⛔ No change to any stored value, env variable name or cascade.
    Container & model: M, mode:thread, model: TIER_DEFAULT, effort: default
    Clause-②: yes (widening) — SpecifierType gains a member; the save and env doors also start refusing malformed values for the three keys (a narrowing on values that never took effect, named in the PR's BREAKING note)
    Metadata-protocol: none
    Responsibility: business administrators set retention windows and row quotas as checked rows instead of raw JSON | settings manifest specifier set (spec), service-settings save/env doors | Settings → Data Lifecycle
    Thread-read: 6711865649
    Premise: holds. On main, the three keys are the only type: 'json' specifiers in packages/. Their values pass both doors unchecked: a misspelt object, "1e6" or 30 days is stored and silently ignored. Ruling record above.
    Serial constraints cleared: waits for #31279 (settings-service.ts, lifecycle-service.ts) to merge. Tier H (docs/adr/**): human merge. Fable reviews the spec + ADR hunks and the code implementing that contract (the shape judgement).

    Order: project file server-seat-2/orders/30208-row5-phase1.md.

  26. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Claim: PM loop round 1 · #30208 row 5 phase 1 (build ruling A: a typed map specifier for the three lifecycle map keys) · 2026-11-08T02:28Z · build (amended: Metadata-protocol added)
    Session: session_017ihL2fBJ6xsLWJsnNJGMMx
    Account: marchtian
    Branch: claude/project-thread-4ntp5s (the card thread's harness-pinned branch; the phase 1 PR is cut from it after merging main once #31279 has landed; platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-30208
    Domain: domain:server
    Seat: domain:server#2
    File surface: packages/spec/src/system/settings-manifest.zod.ts (+ its test, generated reference docs and the spec's settings docs), docs/adr/0007-settings-manifest-and-kv-store.md (the amendment row), packages/services/service-settings/src/** (the shared map shape judgement in validatePatch and effectiveEnvOverride, the runtime option source for a map's key column, the 12 translation packs' settings.lifecycle.keys.* help text), packages/objectql/src/lifecycle/lifecycle-settings.ts and lifecycle-service.ts (readers unchanged in shape), skills/** lines that teach the three keys as JSON (if any), .changeset/. ⛔ ui/** (the console control is its own domain:ui card). ⛔ No change to any stored value, env variable name or cascade.
    Container & model: M, mode:thread, model: TIER_DEFAULT, effort: default
    Clause-②: yes (widening) — SpecifierType gains a member; the save and env doors also start refusing malformed values for the three keys (a narrowing on values that never took effect, named in the PR's BREAKING note)
    Metadata-protocol: added — a package author can now declare a map specifier in a settings manifest (a new accepted value of SpecifierType)
    Responsibility: business administrators set retention windows and row quotas as checked rows instead of raw JSON | settings manifest specifier set (spec), service-settings save/env doors | Settings → Data Lifecycle
    Thread-read: 6711865649
    Premise: holds. On main, the three keys are the only type: 'json' specifiers in packages/. Their values pass both doors unchecked: a misspelt object, "1e6" or 30 days is stored and silently ignored. Ruling record above.
    Serial constraints cleared: waits for #31279 (settings-service.ts, lifecycle-service.ts) to merge. Tier H (docs/adr/**): human merge. Fable reviews the spec + ADR hunks and the code implementing that contract (the shape judgement).

    Order: project file server-seat-2/orders/30208-row5-phase1.md.

  27. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2dxcqiQvzKhr5odTPe
    os-dev-report

    Written 2026-11-08T05:24Z.

    {
      "issue": 30208,
      "status": "done",
      "branch": "claude/project-thread-4ntp5s",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/31386",
      "head": "32b54d4d94b4d90ab561fe62098cba565e4ad421",
      "session": "session_017ihL2dxcqiQvzKhr5odTPe",
      "premise_still_valid": true,
      "row": "5, phase 1 (ruling A, record 6715997428)",
      "proposed_type_name": "map",
      "summary": "spec: SpecifierType gains 'map' (value-bearing, in SPECIFIERS_REQUIRING_KEY); Specifier gains keyColumn {label, description?} and columns [{name, label, description?, kind: duration | positive_integer}]; a map requires both (at least one column, unique names), any other type declaring either is refused at parse; storage rule documented (one column -> Record<key, value>, several -> Record<key, {[column]: value}>). ADR-0007 amended (status line, a map row, json row 'not for maps', dated note citing 6715997428). service-settings: map-shape.ts is the one shape judgement (firstMapShapeMiss: not_a_map / key / not_an_entry / unknown_column / cell) called by SettingsService.mapShapeVerdict at validatePatch (one FieldError per key: invalid_type / invalid_option / unknown_field / invalid_shape, constraint {type:'map', entry, column?, kind?, allowed?}, a sentence naming the entry and the expected form) and at the env door (reportRejectedEnvOverride, the same sentence, value described by shape); key domain read through optionTableOf, so a registered runtime option source moves both doors; it subsumes jsonShapeMiss for these keys (they are no longer json; jsonShapeMiss stays for json keys). objectql: retention_overrides (maxAge, expireAfter: duration), quotas and quota_defaults (max_rows: positive_integer) are map specifiers, stored values / env names / cascade unchanged; lifecycle-key-options.ts serves the keys (objects with a lifecycle class other than record, read at each ask; LifecycleClassSchema minus record), registered by ObjectQLPlugin at kernel:ready before the manifest. Translations: JSON examples dropped from the help text in the ten packs. Docs: config-resolution.mdx map paragraph; generated reference, authorable surface, ledger counts. Changeset: spec minor, service-settings and objectql patch, both declaration lines, BREAKING with migration, ADR-0087 not-required marker.",
      "claim_lines": {
        "clause_2": "yes (widening) — `SpecifierType` gains a member; the save and env doors also start refusing malformed values for the three keys (a narrowing on values that never took effect, named in the PR's BREAKING note)",
        "metadata_protocol": "added — a package author can now declare a `map` specifier in a settings manifest (a new accepted value of `SpecifierType`)",
        "skills_docs": "no skill teaches the specifier set; skills/objectstack-platform/references/plugin-development.md:355 names SettingsManifest only and skills/objectstack-data/rules/lifecycle.md:137-139 names the three keys by name only, never their value form, so no skill change and no follow-up owed. Docs updated in the PR."
      },
      "tests": "All on the final head 32b54d4d under os-verify-lock. New: service-settings src/settings-map-shape-30208.test.ts 16/16 (real ObjectQL + platform setting objects + real route + shipped lifecycleSettingsManifest + the two key sources); objectql src/lifecycle/lifecycle-key-options.test.ts 6/6 (incl. a real ObjectKernel wiring case); spec settings-manifest.test.ts +6. settings-json-shape-31241.test.ts 8/8 moved onto a raw-config json manifest. Packages: @objectstack/spec 912 files / 27528 tests exit 0; @objectstack/objectql 569 / 11501 exit 0; @objectstack/service-settings 73 / 1397 + typecheck exit 0; spec + objectql typecheck (test layer included) exit 0; pnpm lint exit 0.",
      "ablations": [
        "B1 a misspelt key accepted (mapShapeVerdict admitsKey -> undefined): 4/16 red (misspelt object, record/no-lifecycle objects, record and misspelt class at the save door, misspelt object at the env door)",
        "B2 a bad duration accepted (cellFits duration drops LIFECYCLE_DURATION_REGEX): 2/16 red ('30 days' at the save door and at the env door)",
        "B3 an env value bypasses the judgement (env door map verdict -> null): 3/16 red (misspelt object, bad duration, unparseable text in force)",
        "each through scripts/ablation-replace.mjs on head 32b54d4d: mutation landed, restored blob == HEAD and git diff HEAD empty after each"
      ],
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on 32b54d4d: 121 commands, each with stdin from /dev/null after a full packages/** build, all ':: exit 0'; --ran: '121 derived, 121 run, 0 NOT-MEASURED, 0 UNRUN'. The pre-merge round caught check:error-code-casing (field codes in the new test, now adr0112-ok: D6) and check:slot-lookup + eslint no-restricted-syntax (an `as any` in the kernel wiring test, removed); its check:skill-examples / check:dual-build-cjs-loads exit 3 were a missing dist, green after the full build.",
      "dogfood": "full battery on 32b54d4d: every packages/** package built, then pnpm --filter @objectstack/dogfood test under the lock, no shard, no path: Test Files 437 passed | 3 skipped (440), Tests 3618 passed | 41 skipped (3659), VERDICT command-exit 0",
      "dogfood_battery": "437 passed | 3 skipped files; 3618 passed | 41 skipped tests; exit 0",
      "line_budget": "28 files, +1361 / -220 vs main (generated: the settings-manifest reference page, authorable-surface/system.json, ledger counts); under the 3,000-line human-approval line",
      "files_changed": [
        ".changeset/30208-settings-map-specifier.md",
        "content/docs/protocol/kernel/config-resolution.mdx",
        "content/docs/references/system/settings-manifest.mdx",
        "docs/adr/0007-settings-manifest-and-kv-store.md",
        "docs/audits/2026-07-unknown-key-strictness-ledger.counts/system.md",
        "packages/objectql/src/index.ts",
        "packages/objectql/src/lifecycle/lifecycle-key-options.test.ts",
        "packages/objectql/src/lifecycle/lifecycle-key-options.ts",
        "packages/objectql/src/lifecycle/lifecycle-settings.ts",
        "packages/objectql/src/plugin.ts",
        "packages/services/service-settings/src/__tests__/settings-door.testkit.ts",
        "packages/services/service-settings/src/map-shape.ts",
        "packages/services/service-settings/src/settings-json-shape-31241.test.ts",
        "packages/services/service-settings/src/settings-map-shape-30208.test.ts",
        "packages/services/service-settings/src/settings-service.ts",
        "packages/services/service-settings/src/translations/ar.ts",
        "packages/services/service-settings/src/translations/de.ts",
        "packages/services/service-settings/src/translations/es-ES.ts",
        "packages/services/service-settings/src/translations/fr.ts",
        "packages/services/service-settings/src/translations/ja-JP.ts",
        "packages/services/service-settings/src/translations/ko.ts",
        "packages/services/service-settings/src/translations/pt-BR.ts",
        "packages/services/service-settings/src/translations/ru.ts",
        "packages/services/service-settings/src/translations/zh-CN.ts",
        "packages/services/service-settings/src/translations/zh-Hant.ts",
        "packages/spec/authorable-surface/system.json",
        "packages/spec/src/system/settings-manifest.test.ts",
        "packages/spec/src/system/settings-manifest.zod.ts"
      ],
      "ui_card_body": "## Console: draw the `map` settings specifier as a table of keyed rows\n\nFollows #30208 row 5 (ruling record 6715997428, option A). The server half adds a `map` member to `SpecifierType` and moves `lifecycle.retention_overrides`, `lifecycle.quotas` and `lifecycle.quota_defaults` to it. Until this card lands, Setup → Data Lifecycle draws those three rows as \"Unsupported specifier type: map\" (`console.settingsView.unsupportedSpecifierType`). Env overrides and the settings API are unaffected.\n\n### The contract the control renders (from `packages/spec/src/system/settings-manifest.zod.ts`)\n\n- `type: 'map'`, `key`, `label`, `description`, `default` (an object, `{}` for the three lifecycle keys), `scope`, the usual lock and source badges.\n- `keyColumn: { label, description? }`: the header over the key column.\n- `columns: [{ name, label, description?, kind }]`, at least one, in display order. `kind` is `'duration'` or `'positive_integer'`.\n- `options` (served, not declared): the namespace read (`GET /api/settings/:namespace`) serves the keys the map admits as the specifier's `options` (`[{ value, label }]`), from a runtime option source (the objects that declare a lifecycle class other than `record`; the lifecycle classes other than `record` for `quota_defaults`). The manifest declares no list.\n\n### Stored value (unchanged from what these keys store today)\n\n- One value column: `Record<key, value>`, e.g. `{ \"sys_audit_log\": 1000000 }`. The column's `name` is not stored.\n- Several value columns: `Record<key, { [column.name]: value }>`, e.g. `{ \"sys_job_run\": { \"maxAge\": \"1y\", \"expireAfter\": \"30d\" } }`. An entry carries at least one declared column and no other property; an empty cell is left out of the entry.\n\n### What to build\n\n1. **Rows.** One row per entry of the effective value, in the order stored; add a row and remove a row. The control keeps a local draft with stable row ids (the starting point is `ui/packages/app-shell/src/views/metadata-admin/inspectors/FlowKeyValueField.tsx`, which already has a local draft, stable row ids and a searchable key picker, `keysByLabel`).\n2. **Key picker.** A searchable picker over the served `options` (`value`, shown by `label`). A key already used by another row is not offered again. A stored key that is no longer in `options` stays on its row, marked as not offered, so the save door's `invalid_option` refusal is explained before Save.\n3. **Duration input** for a `duration` column: a whole number plus a unit select (`h`, `d`, `w`, `y`), stored as the literal (`'90d'`, `'7y'`). The server judges it against `LIFECYCLE_DURATION_REGEX` (`/^\\d+(h|d|w|y)$/`).\n4. **Positive-integer input** for a `positive_integer` column: whole numbers above 0, sent as a number, never as text.\n5. **Save** sends the object (never JSON text), through the page's existing patch. A cleared map sends `null`.\n6. **Errors.** The save door answers one `FieldError` for the key, with `constraint: { type: 'map', entry, column?, kind?, allowed? }`. Codes: `invalid_type` (the value is not an object), `invalid_option` (a key not admitted), `unknown_field` (a property no column declares), `invalid_shape` (an entry or a cell not in its column's form). Mark the row named by `entry` and the cell named by `column`; the message is the server's English sentence until the codes get console translations.\n7. **Column labels.** `keyColumn.label` and `columns[].label` are English literals in the manifest. Translating them needs a `columns` group in the settings `keys.<key>` translation entry (`packages/spec/src/system/translation.zod.ts`) and ui's copies of that schema; it belongs to this card if the console translates the headers.\n8. **Unsupported fallback** stays for any other unknown type.\n\n### Tests to carry\n\nA map with one column and with several renders its rows from the stored value; the key picker lists the served options and hides used keys; a duration typed as number + unit is stored as `'90d'`; Save PUTs the object; an `invalid_option` answer marks the row; a locked (env) map renders read-only.\n\nOut of scope: any server change. The server half is the #30208 row 5 phase 1 PR.\n",
      "deviations": [
        "File surface: content/docs/protocol/kernel/config-resolution.mdx (the env paragraph this change extends) and the generated content/docs/references/system/settings-manifest.mdx, packages/spec/authorable-surface/system.json and docs/audits/2026-07-unknown-key-strictness-ledger.counts/system.md are not in the claim; skills/** lines in the claim needed no change.",
        "Branch: the merge queue deleted claude/project-thread-4ntp5s when #31279 landed; recreated from main at b85190a8 with this work on top, then origin/main 2ba7a9d4 merged in (no rebase). Nothing of #31279 is re-carried.",
        "Spec takes minor (claim amended to Metadata-protocol: added).",
        "Column labels (keyColumn.label, columns[].label) are English literals; translating them needs a columns group in the settings keys translation entry and ui's copies, written into the ui card body.",
        "retention_overrides columns are not judged against the object's declared policy (an expireAfter on an object with no ttl is admitted); per-column domains are not part of ruling A.",
        "New shared test kit packages/services/service-settings/src/__tests__/settings-door.testkit.ts (the #31241 suite's scaffolding, now used by both suites).",
        "PR body ends with the Generated-with line only (no session URL), as in #31279; line 2 links this card thread."
      ],
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (request fw-20261108T052312Z-ff0ef0, run 42450576765, read-back 14148 bytes sent = stored, assignees none) -> #31386 (draft); this comment via scripts/pm/post-stamped.mjs. Plus own git push (new branch, no force).",
      "open_questions": [
        "Type name: `map` proposed (alternatives keyed_rows, table); Fable review decides. Renaming is mechanical."
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  28. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Row 5 phase 1: PR #31386 ACCEPTed and waiting for the maintainer's merge (Tier H, ADR-0007) · 2026-11-08T05:33Z

    Server seat 2 is clocking out (田騏, 2026-11-07 23:57Z). The follow-up and the remaining rows of this card go into the handoff brief on #20966.

  29. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · marchtian · session_017ihL2fBJ6xsLWJsnNJGMMx

    Release: session_017ihL2fBJ6xsLWJsnNJGMMx · seat clock-out on the maintainer's order 「当前任务处理完,合并后就下班」 (田騏, 2026-11-07T23:57Z) · back to pm:queue for a sibling domain:server seat · 2026-11-08T06:08Z
    Resume-from: claude/project-thread-4ntp5s@32b54d4d94b4d90ab561fe62098cba565e4ad421
    Seat: domain:server#2

    Row 5 phase 1 (ruling A) is PR #31386 on that head. It has a Fable PASS (6717755004), a seat ACCEPT, and green CI. It amends ADR-0007, so it is Tier H and waits on 田騏's merge; nothing more is owed on it before then. The PR says Refs #30208 (a partial landing), so this card does not stay behind with the seat.

    Owed by whoever holds this card next, once #31386 merges:

    The card's other rows remain unclaimed. The handoff brief on #20966 (6718032182) records it.

  30. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 8, 2026
  31. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

    Landed · row 5 phase 1 · 2026-11-08T07:08Z

    ⛔ Not a claim. Server seat 5 holds this card after the domain:server#2 release (6718063348) and the seat 2 → seat 5 hand-off.

    Where every row stands

    Row State
    1, 2, 3, 7, 8 landed: PR #30551
    4, 9 landed: PR #30488
    5 server half landed: PR #31386. ui half: #31391
    6 topic and channel pickers landed: PR #31004 and #31069. Quiet hours: #31421
    通知模板 topic/channel (6651344343) covered by #31004's widget on sys_notification_template.topic

    No server work is left on this card itself. It closes when #31391 and #31421 land.

  32. added
    pm:blocked
    and removed
    pm:queue
    on Nov 8, 2026
  33. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: unblocked · pm:blocked → pm:queue · 2026-11-09T02:17Z

    ⛔ Not a claim.


    Generated by Claude Code

  34. added
    pm:queue
    and removed
    pm:blocked
    on Nov 9, 2026
  35. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-steve · session_01ADHkmQKZzp4DLtqiCkZZRM

    Every row has landed: ready to close · 2026-11-09T03:52Z

    The triage unblock (2026-11-09T02:17Z) put this card back in the queue. Seat 5's last state comment (6718573992) says no server work is left on it, and that it closes once #31391 and #31421 land. Both are now closed as completed, as read at this close.

    Row Landed
    1, 2, 3, 7, 8 PR #30551
    4, 9 PR #30488
    5 server half: PR #31386; ui half: #31391 (closed, completed)
    6 topic/channel pickers: PR #31004 and #31069; quiet hours: #31421 (closed, completed)

    Nothing is left on this card for any lane. ⛔ Not a claim: this seat does not take it. To: triage#1, please close it as completed instead of dispatching it.

  36. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw

    Closed in W0 of the area-lease pilot (#33059) · 2026-11-14T14:58Z

    All nine rows have landed: PRs #30551, #30488, #31386, #31004 and #31069 on the server side, and the ui half in #31391 and #31421 (both completed; see comment 6731817036). Nothing remains. Read on origin/main e540baf by area A2.

    The maintainer approved this W0 close list in the project thread: 「以上都同意」.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:serverenhancementpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions