Repository navigation
qa(checklist): name the persona and status of three approvals refusals a non-reader gets as 404 - #33327
Merged
Conversation
…s a non-reader gets as 404 approvals.request-page-reply-and-reader-visibility acceptance[1], approvals.quorum-m-of-n steps[4] and approvals.decision-action-matrix acceptance[6] expected 403 FORBIDDEN from a caller who cannot read the request. ApprovalService.refuseUnreadableRequest answers that caller REQUEST_NOT_FOUND (404) before any slate or submitter check, so the request's existence never leaks; 403 stays the answer to a reader who holds no slot. Each item gets a revision bump and a history row. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
This was referenced Nov 14, 2026
Contributor
Author
|
domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX 席位核对 · ACCEPT · head
|
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
… 18.0 pre-release restore keeps its activity shard (objectstack-ai#33376) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5XzfhFryaGx3eajZAWLK24)_ domain:devx#4 · os-project-manager · session_01FEkQ5kWURVLmS49GR3jwxs Part of objectstack-ai#33351 (section A only; this PR lands the two rows that are fixture additions on main today. Section B and the rows listed below as owed, decided or out of scope stay on the card.) Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:示例应用 showcase 给三张外币发票(INV-1007 日元、INV-1009 和 INV-1010 欧元)各补一行发票明细;18.0 预发布数据库的恢复脚本在恢复时把活动日志分片改成“昨天”的日期。 - 为什么改:多币种测试项原先只有两张外币发票金额非零,其余三张只能看到汇率选择、看不到换算;恢复出来的活动日志分片日期停在 10 月 27 日,首次启动就被 7 天保留策略删掉,测试项读不到那 66 行。 - 风险与回滚:只动示例应用种子数据和测试夹具脚本,都不发布(两个包都是 private);回滚即 revert 本 PR。 - 先看:`examples/app-showcase/src/data/seed/index.ts` 新增的三行发票明细;`packages/qa/dogfood/test/upgrade-harness/cli-prerelease-fixture.ts` 的 `restore`。 - 两分钟验证:`pnpm --filter @objectstack/dogfood exec tsx test/upgrade-harness/cli-prerelease-fixture.ts restore --to /tmp/x/n5.db`,预期多打印一行 `re-dated shard sys_activity__r20261027 → sys_activity__r<昨天>`。 - 需要你做的:无,席位落地。卡上另有三个待决问题(第 92、135、263 行,以及 90+153 合并的一问),见下文与报告评论。 ## What changes Two files, fixture space only. 1. **Row 220 · `records-forms.multi-currency-invoice`** (`examples/app-showcase/src/data/seed/index.ts`): one invoice line each under INV-1007 (JPY), INV-1009 (EUR) and INV-1010 (EUR), so all five foreign invoices carry a non-zero total and both rate rows of each currency are exercised. Measured on a stock boot of this head (a throwaway probe, deleted after the run): ``` INV-1004 EUR amount=450 home=500 rate=0.9 INV-1007 JPY amount=95400 home=629.7 rate=151.5 INV-1008 JPY amount=237864 home=1593.73 rate=149.25 INV-1009 EUR amount=2016 home=2191.3 rate=0.92 INV-1010 EUR amount=276 home=300 rate=0.92 ``` Before this PR, INV-1007, INV-1009 and INV-1010 had no lines (amount 0), as the QA record measured. 2. **Row 209 · `cli-18-prerelease-db` restore** (`packages/qa/dogfood/test/upgrade-harness/cli-prerelease-fixture.ts`): `restore` now passes both dumps through the harness's own `fixture-as-of.ts` (`shardRenamesAsOf` + `renameShardTables`), so the restored telemetry sibling's `sys_activity` shard is dated the day before the run and the first boot's rotation retention keeps it. It prints each rename. Measured: at base `d3f3f4ab` the restore writes `sys_activity__r20261027`; at this head it writes `sys_activity__r20261113` (66 rows) on 2026-11-14. Neither `manifest.json` nor the recipe names the shard, so no census read changes. ## Per-row dispositions (all 16 section A rows, re-measured on `origin/main` `d3f3f4ab`) | row | disposition | evidence | |---|---|---| | 80 | already done on main | `packages/services/service-storage/src/attachment-member-grant.ts` contributes read + create on `sys_attachment` to every member's baseline since `fd6374713` (2026-11-13 07:58Z); the QA run was at `ee9ad834` (03:17Z), which does not contain it (`merge-base --is-ancestor fd63747 ee9ad83` exit 1; `fd6374713` in HEAD exit 0; control `ee9ad834` in HEAD exit 0) | | 89 | out of scope (product) | app packages cannot author settings namespaces (spec migration `18.translation-per-app-settings-platform-only`), and no built-in manifest declares `scope: 'user'` (`packages/services/service-settings/src/manifests/*.ts`). A user-scope secret is a platform manifest change, not a fixture | | 90 | needs_decision (with 153) | the item needs one item name held by two installed packages; no stock boot carries a second package, and the showcase is one app package | | 91 | already runnable; item text owed | `identity-auth.self-signup-gate` knownGaps[0] records the env door (`OS_AUTH_AUDIENCE_POSTURE`, `OS_AUTH_AUDIENCE_ALLOWED_EMAIL_DOMAINS`, `OS_AUTH_AUDIENCE_SELF_REGISTRATION_PERMISSION_SET`) measured live; variants[1]/[2] still say blocked(fixture). `identity-auth.json` is held by batch A PR objectstack-ai#33362, so the re-point is owed there | | 92 | premise does not hold; not changed; needs_decision | `showcase_task.assignee` is `Field.text` and the showcase stores an EMAIL in it on purpose: the seed writes persona emails (`seed/index.ts` "objectstack-ai#7746" block), the notify flows read it as a recipient, `invoice.owner` and `private_note.owner` follow the same email convention, and `search.json` / `records-forms.json` tell runners to assign by email. The QA run had PATCHed a user id into it by hand (record 6846028996: "the run had set assignee to a user id"). Switching the rule to ids would hide every seeded task from its assignee | | 135 | needs_decision | Ada holding `showcase_finance` or `showcase_legal` also makes her a required approver of the seeded invoice dual sign-off (`showcase_invoice_signoff`, unanimous over finance + legal, `flows/index.ts`), so the stock demo changes beyond the quorum item | | 151 | out of scope (product) | `mandatoryTopics` is reachable only as a `MessagingServicePlugin` constructor option (`packages/services/service-messaging/src/messaging-service-plugin.ts`); a declarative door is product work. Carrier: objectstack-ai#33352 | | 152 | environment-bound | the agent catalog is served only by the Cloud/Enterprise `@objectstack/service-ai`; `platform-core.keyboard-shortcut-surface` knownGaps[1] already scores that half blocked(environment). Belongs with section B | | 153 | needs_decision (with 90) | measured: a second app (`active: false`) in the showcase is refused at build, "An 'app' package must define at most one app" (defineStack single-app validation, ADR-0019). The fixture needs a module package composed beside the showcase. Tried in `d2faa4b58`, withdrawn in the next commit | | 155 | recipe text owed | the flow is runner-built from `studio-authoring.flow-edge-type-authoring` fixtures.requires[1] ("Start → Decision → two End nodes"); adding a loop is text in `studio-authoring.json`, held by batch B PR objectstack-ai#33360 | | 208 | held | `scripts/qa/qa-fixture.mjs walled-boot` is held by objectstack-ai#33334 | | 209 | **landed here** | see What changes 2. The recipe text in `cli.json` is routed to batch D (objectstack-ai#33330) | | 218 | out of scope (product) | stamping environment rows with a host package is hosted-runtime behaviour, not seed data. Carrier: objectstack-ai#33352 | | 220 | **landed here** | see What changes 1. The item text ("only INV-1004 and INV-1008") lives in `records-forms.json`, held by batch B PR objectstack-ai#33360 | | 227 | recipe text owed | there is no committed 18.3.0 fixture: the file is runner-built (`platform-core.activation-ledger-package-key-upgrade` route (a)/(b)). Planting a connector instance and an assignment rule is recipe text in `platform-core.json` / `cli.json`, held by batch D (objectstack-ai#33330) | | 263 | needs_decision | `records-forms.gantt-interactions`: the stock task gantt view declares no `lockField` / `dependenciesField`; either the showcase task gains them (plus a dependency field and seed), or the item keeps the documented overlay route and narrows | Totals: 16 rows · 2 landed here (209, 220) · 2 already right (80, 91) · 4 needs_decision questions over 5 rows (92; 135; 90+153; 263) · 3 owed as recipe or item text in held area files (155, 227, plus the 91 and 220 text) · 1 held by objectstack-ai#33334 (208) · 3 out of scope as product (89, 151, 218) · 1 environment-bound (152). No `packages/**` outside `packages/qa`, no new door, no area file (every one this card would touch is held by an open batch PR or card: objectstack-ai#33362, objectstack-ai#33360, objectstack-ai#33359, objectstack-ai#33327, objectstack-ai#33330), no RUNNER.md. ## Why The v18.4.0 sweep parked 22 fixture rows (objectstack-ai#32908 ledger `/mnt/project-files/pm-orders/devx/32908-ledger.md`, routed to objectstack-ai#33351 by triage). Section A is the 16 rows that looked like seed or fixture additions. Each was re-measured on main here first; two are fixture additions that hold today and land in this PR, and the rest are answered row by row in the table above. Source records: objectstack-ai#32908 comments 6844741021, 6846028996, 6846283471, 6850382730, 6850413952, 6850460138, 6850495479 and 6852480973. ## Tests <details><summary>showcase suite + typecheck, dogfood typecheck (head 2b2bca1)</summary> ``` pnpm --filter @objectstack/example-showcase test Test Files 48 passed (48) · Tests 545 passed (545) pnpm --filter @objectstack/example-showcase typecheck exit 0 pnpm --filter @objectstack/dogfood typecheck exit 0 os-verify-lock: VERDICT command-exit 0 ``` </details> <details><summary>dogfood suites that boot the showcase and read invoice lines</summary> ``` pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 \ test/showcase-invoice-seed-isolation.dogfood.test.ts test/showcase-invoice-cbp.dogfood.test.ts \ test/showcase-invoice-line-contributor-pair.dogfood.test.ts test/showcase-readonly-when-parent.dogfood.test.ts \ test/showcase-crud-persona-matrix.dogfood.test.ts test/master-detail-batch-atomic.dogfood.test.ts \ test/home-amount-projection.test.ts test/upgrade-harness-fixture-as-of.test.ts test/external-member-directory.dogfood.test.ts Test Files 9 passed (9) · Tests 153 passed | 15 skipped (168) os-verify-lock: VERDICT command-exit 0 ``` </details> No ablation: the diff adds seed rows and changes a fixture script, and pins no new tested behaviour. ## Acceptance notes - Rows 90 and 153 want the same thing: a second package on the stock boot (one holding a name the showcase also holds; one carrying a switched-off app). One module package composed beside the showcase would serve both; that is a choice about the example's shape, so it is a question on the card, not a change here. - Row 92's ruling rested on "`assignee` stores a user id". On main it stores an email by the showcase's own convention, so the rule was left as it is and the question goes back on the card. ## Verification Local subset at head `2b2bca197`, derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (73 changed lines at derivation; 33 after the withdrawn app, same path families): - `dispatch-gates --ran`: 54 derived, 53 run with exit 0, 1 NOT MEASURED: `pnpm check:dual-build-cjs-loads` exit 3 PREREQUISITE NOT MET (reads every package's dist; studio, client-react, scenarios and others are unbuilt here). The diff changes no published package's build output; CI's Build Core runs it. - `check-plugin-teardown-shape.mjs --self-test` first answered exit 3 on the shallow clone (pinned control `621a4876` unreachable); after `git fetch --depth=1` of that commit it answered exit 0, 48 cases. - `pnpm exec eslint --no-inline-config` on both touched files: exit 0. - Changeset: none. `@objectstack/example-showcase` and `@objectstack/dogfood` are both `"private": true`, so nothing publishes (`skip-changeset`). - CI families (Test Core, lint farm, type-check lanes) are read off this PR's check runs by the seat. Full record: `/mnt/project-files/pm-orders/devx/33351-gates-ran.txt`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (no names added) - [x] 3. No formatter ran; `pnpm lint` passes. (eslint on both touched files: exit 0) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: both packages are private, `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block is the seat's required Chinese summary) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kWURVLmS49GR3jwxs)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…rovals items to what main does (objectstack-ai#33400) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XXfKbgM3JofG6dFmRe16ZKu)_ domain:devx#4 · os-project-manager · session_01FEkQ5kHpQrXX5yTHRb5h4F Fixes objectstack-ai#33332 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:objectstack-ai#32908 收尾的 C 批,测试清单三个区(access-security、api-backend、approvals)共 36 个条目的文字按 main 上的源码改了口径,覆盖账本 38 行,加上从 E 批转来的第 85 行 api-backend 一半,共 39 行。只改这三个 JSON 文件。 - 为什么改:v18.4.0 那轮 QA 记下的「清单写错了、产品是对的」:拒绝码和状态码、控制台点按钮实际走的门(动作门 /api/v1/actions/…)、审批请求页落在哪个应用下、跑测试需要的运行时夹具、长大了的计数(路由账本 16 个、退役定义 249 条)。不改,下一轮 QA 会把正确的产品判成失败。 - 风险与回滚:只改清单文字,不动产品代码;每个条目升一版并加一条历史记录。两条反例按设计放宽了口径(status-mirror-field negative[2]、ooo-delegation-reroute negative[3]),见 Acceptance notes。回滚即还原本 PR。 - 先看:`approvals.request-page-reply-and-reader-visibility`(第 102 行):main 上普通成员已经能读 sys_approval_request(objectstack-ai#32442 裁决 1B),所以 404 那条腿不再需要临时授权;再看 `approvals.record-page-decisions`(第 159 行)acceptance[2] 的 clause 改了措辞。 - 两分钟验证:`pnpm check:platform-checklist`,预期退出码 0。 - 需要你做的:无,席位落地。 ## What changes `docs/qa/platform-checklist/areas/access-security.json` (16 items), `api-backend.json` (9 items) and `approvals.json` (11 items), text only. Each item gets exactly one `revision` bump and one `history` row citing objectstack-ai#33332, the QA record(s) the row came from, and the base it was read at (`fca5f89c`). No other file. Every row was re-measured from source on `origin/main` `fca5f89c` before its edit. None turned out already right as a whole (row 211's knownGaps half was), none needs a live drive to settle, and none needs a ruling, so there are no `needs_decision` rows. | row # | item | disposition | evidence on main | |---|---|---|---| | 5 | `access-security.ai-service-account-agent-ceiling` | re-pointed | current-user-endpoints.ts credentials session-only (L632); rest-route-ledger.ts L427 POST /api/v1/security/explain; explain-engine.ts L852 principalKind; task.object.ts sharingModel public_read_write (L24) | | 15 | `approvals.account-app-entry` | re-pointed | ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx L715-L737 requestPagePath via objectHostAppSegment (ui/packages/app-shell/src/utils/objectHostApp.ts L71-L84); spec system/platform-locales.ts L26 zh-Hans 简体中文; showcase objectstack.config.ts L192 supportedLocales en, zh-CN | | 22 | `approvals.account-app-entry` | re-pointed | ui/apps/console/src/components/RootLandingRedirect.tsx L19-L23, L133-L136 (one visible non-Setup app lands in it; two or more land on /home) | | 24 | `access-security.walled-environment-metadata-operator-only` | re-pointed | examples/app-showcase/package.json L33 @objectstack/organizations; packages/spec/src/kernel/manifest.zod.ts L336-L409 reverse-domain id rule | | 25 | `access-security.no-active-org-session-semantics` | re-pointed | app-showcase permission-sets.ts showcase_member_default: showcase_project/showcase_account allowCreate false, showcase_task/private_note create true; task.object.ts L38 project masterDetail required; plugin-audit audit-writers.ts L1295 telemetry datasource | | 31 | `access-security.permission-set-package-resolution` | re-pointed | app-showcase permission-sets.ts showcase_member_default object list (no showcase_contact); NOT_OVERRIDABLE in error-code-ledger.zod.ts L758 | | 33 | `api-backend.automation-namespace-address` | re-pointed | app-showcase automation/flows/index.ts showcase_batch_reminders variables tasks isInput (L944-L959); plugin-hono-server adapter.ts L1440 adds HEAD to Allow | | 35 | `access-security.credential-use-audit-row` | re-pointed | plugin-audit credential-use-audit.ts L304-L322: metadata {credential_kind, credential_id, used_at, ip_address_absent}; ip_address/user_agent columns | | 36 | `api-backend.client-sdk-namespace-address` | re-pointed | client package-addressing.test.ts (30 it( sites, each-loops expand them; QA objectstack-ai#32940 read 83 at 5fb79bc) | | 56 | `api-backend.api-methods-verb-gate` | re-pointed | spec data/api-derivation.ts L135-L155 restore/purge derive from delete | | 57 | `api-backend.retired-def-refusal` | re-pointed | spec migrations/entries/retired-defs: 249 files (53 17.*, 196 18.*); kernel/manifest.zod.ts ManifestSchema strictObject has no loading key; ai/agent.zod.ts L363 lifecycle retiredKey | | 58 | `api-backend.aggregate-contract-matrix` | re-pointed | spec data/query.zod.ts L99-L118 withRefusalHead (objectstack-ai#32279): head as message, prescription as hint | | 69 | `access-security.activation-write-operator-gate` | re-pointed | platform-objects sys-metadata-activation.object.ts L206-L208 apiMethods ['get','list'] (verb gate only) | | 75 | `approvals.status-mirror-field` | re-pointed | plugin-approvals status-mirror-cascade.integration.test.ts L8-L14 (the flow fires user-less; since objectstack-ai#3760 its data operations are refused) and L388-L400 (dead-run release: cascaded stays falsy) | | 85 | `api-backend.automation-namespace-address` | re-pointed (api-backend half; routed from batch E objectstack-ai#33331, automation.json half stays with E) | same as row 33: steps[2] body now {"params":{"tasks":[]}} | | 98 | `access-security.share-link-landing-page` | re-pointed | ui/apps/console/src/App.tsx L338 Route /s/:token; packages/cli/src/utils/console.ts L55 CONSOLE_PATH /_console | | 100 | `access-security.security-catalog-one-holder-and-boot-report` | re-pointed | plugin-security catalog-reference-report.ts L115 LOGGED_LIMIT 50 on grant ids (L590), set names via nameCounts; clean-boot logger.info L675 | | 102 | `approvals.request-page-reply-and-reader-visibility` | re-pointed | plugin-security objects/default-permission-sets.ts L625 member_default, L856-L872 sys_approval_request allowRead (objectstack-ai#32442); plugin-approvals request-read-gate.ts L1-L60; lint validate-security-posture.ts L155 security-owd-unset; plugin-security objects/sys-user-permission-set.object.ts L84-L113 | | 132 | `access-security.capability-declaration-lifecycle` | re-pointed | runtime domains/permission-set-clone.ts L69-L93: source in read-only package X lands in X.custom | | 134 | `approvals.quorum-m-of-n` | re-pointed | examples/app-showcase/src/data/objects/expense-report.object.ts L164-L199 (expense_report and merchant required, amount required, category optional, line status options submitted/approved/rejected) | | 136 | `approvals.inbox-metadata-actions` | re-pointed | ui/packages/app-shell/src/utils/approvalOverride.ts L81-L85 isOverrideOnlyViewer, L147-L151; ui/packages/app-shell/src/utils/apiActionDoor.ts L18-L31; plugin-approvals sys-approval-request.object.ts L620-L636, L789-L794 type api targets | | 138 | `approvals.decision-action-matrix` | re-pointed | plugin-approvals approval-service.ts L10295-L10312 (first_response carries no decision_progress); examples/app-showcase/src/data/objects/project.object.ts L141-L149 spent_within_budget | | 156 | `api-backend.route-ledger-live-parity` | re-pointed | git ls-files '*route-ledger.ts' = 16 files; rest-route-ledger.ts 20 distinct families incl. recycle-bin (L395) and user-work (L459) | | 157 | `approvals.notification-deep-link` | re-pointed | ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx L715-L737 requestPagePath; ui/packages/app-shell/src/utils/objectHostApp.ts L71-L84 objectHostAppSegment (asked-from app, else owner app, else Setup) | | 158 | `approvals.ooo-delegation-reroute` | re-pointed | plugin-approvals lifecycle-hooks.ts L805-L823 bindDelegationWriteGuard FORBIDDEN 403 (no admin exemption); plugin-security objects/default-permission-sets.ts grants no sys_approval_delegation line | | 159 | `approvals.record-page-decisions` | re-pointed | ui/packages/app-shell/src/utils/apiActionDoor.ts L18-L31; ui/packages/app-shell/src/hooks/useRecordApprovals.ts L581-L640 seedRecordApprovals (objectstack-ai#27627); rest-route-ledger.ts L381 POST /data/:object/:id/page; showcase project.object.ts L141-L149 | | 161 | `approvals.sla-escalation` | re-pointed | plugin-approvals approval-service.ts L4622 DUPLICATE_REQUEST per object/record; service-automation subflow-guards.ts L299-L309 toggle refuses a runtime-authored flow 409 RESOURCE_CONFLICT | | 180 | `access-security.public-form-withdrawal-layers` | re-pointed | RUNNER.md L184-L201 customization-pair recipe; metadata-protocol protocol-packaged-base-refusal.ts packagelessOverlayWriteRefusal; dogfood showcase-public-form-withdrawal-layers.dogfood.test.ts L32-L38 saves into the pair | | 181 | `access-security.security-catalog-activation-and-clone-doors` | re-pointed | rest error-response.ts L645 details carries candidates only; core package-scoped-resolution.ts L406 internal reason | | 187 | `api-backend.action-activation-door-contract` | re-pointed | runtime domains/actions.ts L187-L191 (parts.length over 3 declined after the gates); dispatcher-plugin.ts L2198 addressed 4-segment mount; route-ledger.ts L804-L805 | | 188 | `api-backend.rest-crud-config-contract` | re-pointed | examples/app-showcase declares no apiEnabled:false object; qa/dogfood rest-config-contract-live.dogfood.test.ts L193-L198 sox_hidden OBJECT_API_DISABLED | | 189 | `approvals.decision-only-via-service` | re-pointed | examples/app-showcase/src/security/seed-approval-demo.ts L70, L376 admin holds finance and legal; flows/index.ts L1369-L1377 dual_signoff unanimous over both positions; plugin-approvals approval-service.ts L5158-L5167 isApprovalSatisfied | | 195 | `api-backend.package-rest-lifecycle` | re-pointed | service-package package-table.ts L95, L177, L204 PRIMARY KEY (id, version); runtime domains/packages.ts L2160-L2203 GET /packages lists registry.getAllPackages() | | 197 | `access-security.record-view-read-audit` | re-pointed | plugin-audit read-audit.test.ts L338 + describe L605 (once per cause) pin negative[0]; dogfood record-view-read-audit pin constructs new AuditPlugin() | | 199 | `access-security.suggested-binding-loop` | re-pointed | lint validate-security-posture.ts L1488-L1504 isDefault high-privilege refusal; plugin-security suggested-audience-bindings.test.ts L325 | | 200 | `access-security.agent-ceiling-set-assignment-refusal` | re-pointed | no lint/build rule names mcp_agent_* outside spec ai/mcp.zod.ts L253 (git grep packages/lint/src packages/spec/src) | | 201 | `access-security.share-link-capability-tokens` | re-pointed | app-showcase demo-personas.ts L118-L122 usr_showcase_phone_demo; positions.ts L85-L88 showcase_client_liaison; no seed binds it | | 211 | `access-security.walled-environment-metadata-operator-only` | re-pointed (personas); knownGaps[1] half already right | plugin-auth auth-manager-organization-plugin.ts L335 + core posture-ladder.ts L15 (auto-org-admin-grant); knownGaps[1] already says install-local is scored from the pins | | 261 | `access-security.readonly-package-locks-studio` | re-pointed | ui app-shell studio-design/StudioDesignSurface.tsx L6306-L6330 formViewReadOnly (override saved into the pair) | ## Why The card's readings are from the v18.4.0 sweep's QA records (the objectstack-ai#32908 ledger names each one) and were not driven live. The source on main confirms each, with three places where main had moved past the record: - Row 102: the run's runtime-grant recipe for acceptance[2]'s 404 leg is no longer needed. Since objectstack-ai#32442 (ruling 6849636735, 1B) `member_default` grants every internal member read on `sys_approval_request`, and the request read gate narrows the rows (`default-permission-sets.ts`, `request-read-gate.ts`), so the stock non-participant member drives the 404 leg itself. The runtime grant recipe moved to the reader leg's scratch object, where it is still needed. - Row 134: the record said the expense line needs merchant, category and status. On main only `merchant` and `amount` (plus the report) are required; `category` is optional and `status` defaults to `submitted`. The step names the source fields, and the record's 400 for status `pending` (not an option). - Row 195: the record suggested a new clause (the manifest served after a restart equals the last one written). That is coverage, not a re-point, so it is recorded in the history row and left for a coverage pass. ## Tests No test added or changed: the diff is checklist text. Nothing to ablate (os-dev.md: docs are not ablated). ## Acceptance notes - Two negatives now read the design rather than a stricter wording. `approvals.status-mirror-field` negative[2]: the flow fires on the sweep's user-less mirror by design, and since objectstack-ai#3760 its data operations are refused, so the FAIL is the data operation landing, as the QA record suggested. `approvals.ooo-delegation-reroute` negative[3]: a stock demo persona forging a delegation is refused 403 `PERMISSION_DENIED` at the object gate before the delegation guard's 403 `FORBIDDEN`; both are the refusal the entry asks for, and an accepted foreign-delegator write is still the FAIL. - `approvals.record-page-decisions` acceptance[2]'s clause now names the action door the bar posts, which forwards to the approvals route. What it requires is unchanged. - Row 85 is the api-backend half of ledger row 85, routed from batch E (objectstack-ai#33331); the automation.json half stays with E. Rows 33 and 85 share one item and one revision bump, as do rows 15 and 22, and rows 24 and 211. - The `api-backend.error-envelope-ledger` INVALID_FILTER face is out of scope, as the order says, and is not touched. - The re-measure is from source, not driven live. Each history row says so, so a prior live verdict on these clauses does not carry. - `skip-changeset`: `docs/qa/**` ships in no package. - Branch: the order asked to restart `claude/project-thread-v8xylo` from `origin/main` after objectstack-ai#33327 merged. A force-push is reserved for `claude/issue-*` branches (AGENTS.md section 3), so `origin/main` was merged into the branch instead; the diff against `origin/main` was empty before the edit commit. ## Verification On head `b4df2eaa` (branch `claude/project-thread-v8xylo`, merge base `origin/main` `fca5f89c`), the list from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (16 commands), each exit code captured before any pipe: <details><summary>16 derived, 16 run, all exit 0; --ran reconciliation exit 0</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `check:doc-formula-expressions` needs `@objectstack/lint` built in a fresh worktree; built first with `pnpm --filter "@objectstack/lint..." build` (exit 0). `dispatch-gates --ran`: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED", exit 0. `--tier`: no path-derived mandate; 451 changed lines, under the 3000 human-merge threshold. </details> No package is touched, so there is no package build, test, typecheck or scoped `pnpm lint` owed; every other family is CI's and is read from this PR's check-runs. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Leehom · project thread
domain:devx#4 · os-project-manager · session_01FEkQ5kHpQrXX5yTHRb5h4F
Fixes #33275
Clause-②: no
Metadata-protocol: none
维护者速读
docs/qa/platform-checklist/areas/approvals.json:回复请求页的「组织成员发评论」、法定人数的「不在任何审批岗位上的人再批一次」、决策动作矩阵的「非提交人撤回」。三条现在都点名是哪类人,以及这类人拿到什么回答。approvals.json里approvals.decision-action-matrix的 acceptance[6] verify(新增点名两类人,并排除管理员);其余两处是同一句口径。pnpm check:platform-checklist,预期退出码 0。What changes
docs/qa/platform-checklist/areas/approvals.json, three items, text only:approvals.request-page-reply-and-reader-visibilityREQUEST_NOT_FOUND, no row lands; 403 named as the answer to a caller who CAN read the request and is neither pending approver nor submitter (a past actor, or a record reader on an object that declares the flag); the service-layer pins it cites are named for what they holdapprovals.quorum-m-of-nREQUEST_NOT_FOUND, tally unchanged either wayapprovals.decision-action-matrixREQUEST_NOT_FOUND; ⛔ not the dev admin, whose override recalls a pending request by design (#3424)Each item gets a
historyrow citing this card. No clause sentence changed. No other item, no other file.Why
Re-measured from source on
origin/main87330e8 before any edit (the card's readings came from PR #33273's Acceptance notes and were not driven live):packages/plugins/plugin-approvals/src/approval-service.tsrefuseUnreadableRequest(L10154): a caller who is not the override actor and for whomrequestRowForCaller(…, enforceVisibility = true)finds nothing is thrownREQUEST_NOT_FOUND: ID, byte for byte what a missing id gets.packages/rest/src/approvals-routes.tshandleApprovalError(L199–L200) mapsFORBIDDEN→ 403 andREQUEST_NOT_FOUND→ 404.visibleRequestIds(L9706): the submitter, a current approver (any acting address), anyone whoseactor_idoracted_asis on asys_approval_actionrow of it, the override actor (sees everything), plus the record-reader tier only where the object declaresenable.approvalsVisibleToReaders.git grep approvalsVisibleToReaders -- examples/→ 0 hits (exit 1; control: the same grep inpackages/plugins/plugin-approvals/src→ hits inapproval-service.tsandapprovals-plugin.ts).comment(L7428) →loadPendingRow(L2341) →refuseUnreadableRequest, then the slot checkFORBIDDEN: actor '…' is not on this request(L7442). Clause 1 stale: the org member is no participant, so 404.decideNode(L5270) asks it, thenFORBIDDEN: actor '…' is not a pending approver(L5281). Clause 2 half stale: Ada acted, so she reads the request and gets the 403; a user on no position who never acted gets 404.recall(L6120) asks it, then the submitter / override check,FORBIDDENwith theapproval_recall_not_submittercopy (L6164). Clause 3 under-specified: 403 for a reader, 404 for a non-reader, and the dev admin's override admits a pending recall, so the admin is no persona for the denied leg.automated.ref, so per RUNNER rule 6 they are evidence of that layer only):approval-service.test.tsL2104 "comment: submitter and approver may reply; outsiders may not" (outsider →REQUEST_NOT_FOUND), L2925 "every caller shape…" (stranger →REQUEST_NOT_FOUND, override admin on no slot →FORBIDDEN);recall-refusal-user-copy.test.tsL316 "a plain non-submitter is still refused, and the request is untouched" (both legs: the pending approveru2, a reader who did not submit →FORBIDDEN; strangeru7→REQUEST_NOT_FOUND; the request stays pending).approvals.decision-action-matrixnegative[2] is not stale and is unchanged: it fails any accepted POST from an actor the service should deny, whatever status the refusal carries.Tests
No test added or changed: the diff is checklist text, and the product behaviour it now describes is already pinned at the service layer (above). Nothing to ablate (os-dev.md: docs are not ablated).
Acceptance notes
skip-changeset:docs/qa/**ships in no package. There is nopackage.jsonunderdocs/, the root package isprivate: true, and no workspacepackage.jsonnamesdocs/qaorplatform-checklist.areas/*.json; it is told to leave these three clauses alone.origin/mainhad not moved the file since PR qa(checklist): re-point eight stale checklist items across five cards to the product at e540baf8 #33273 at branch time.Verification
On head
fd55e259(branchclaude/project-thread-v8xylo, merge baseorigin/main87330e8), the list fromnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(16 commands), each exit code captured before any pipe:16 derived, 16 run, all exit 0; --ran reconciliation exit 0
check:doc-formula-expressionsfirst answered exit 3 (PREREQUISITE NOT MET, nothing measured:@objectstack/formulaand@objectstack/lintunbuilt in a fresh worktree). Built them under the verify lock (turbo run build --filter=@objectstack/formula --filter=@objectstack/lint, VERDICT command-exit 0), reran: exit 0.dispatch-gates --ran: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED", exit 0.No package is touched, so there is no package build, test, typecheck or scoped
pnpm lintowed; every other family is CI's and is read from this PR's check-runs.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F