This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Add AI development prompts for ObjectUI component system - #135
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
✅ All checks passed!
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add AI development prompts for core components
Add AI development prompts for ObjectUI component system
Jan 21, 2026
huangyiirene
approved these changes
Jan 21, 2026
Contributor
|
✅ All checks passed!
|
huangyiirene
approved these changes
Jan 21, 2026
huangyiirene
marked this pull request as ready for review
January 21, 2026 15:20
This was referenced Sep 15, 2026
This was referenced Sep 15, 2026
This was referenced Sep 15, 2026
hotlong
pushed a commit
that referenced
this pull request
Sep 16, 2026
… (objectui#8961) Executes the maintainer ruling of 2026-09-15, director batch #135 item 5, letter A. Not a decision; execution. ## What a user saw A view authored `sort: "name desc"` lit a descending arrow on the `name` header before anyone clicked anything, while the query that fetched those rows carried no ordering at all. The arrow stated something about the list that was not true of the rows beside it, and the first click on that column then asked for `asc` on a list that was in no declared order. The only signal was a `console.error` no end user reads. ## Why the two halves disagreed objectui#8221 retired the legacy string clause — one spelling, the array, everywhere — and objectui#8767 (route C) made this block's fetch path REFUSE a string `sort` and send no `$orderby`. That ruling deliberately left the other reader of the same key alone: `parseSchemaSort`, which feeds the header indicators, went on parsing `"name desc"` and `["name desc", ...]`. One key, two readers, opposite answers. ## What this does `parseSchemaSort` admits only `[{ field, order }, ...]` — the spelling `@objectstack/spec` declares for `ObjectGridPropsSchema.sort` and the only one the fetch path still lowers. A retired string yields nothing, so it lights no arrow. The refusal is per entry: a mixed array still lights the arrows for the keys spelled in the declared form. No second diagnostic is added. The author is already told once per spelling by PR #8758's reporter at the fetch path, which quotes the offending value and prescribes the array form; a second voice here would only restore the arrow the wire cannot honour. ## What is deliberately unchanged The wire shape. The array arm still lowers to this block's own `"field order"` join string; routing the key through the shared sink's `{field: direction}` map is route B on objectui#8767, which stays declined until the protocol declares that shape. Measured while here: the server-side export path reads `schema.sort` itself rather than through `parseSchemaSort`, so it was already array-only and does not move — the retired docblock claim that narrowing this reader "takes the export path with it" was not borne out. ## Pins, both directions `serverSorting.test.tsx`: the declared array lights the arrow (the case that already existed); a retired string lights NEITHER direction while the query carries no `$orderby` and the one diagnostic still fires once. That case previously pinned the divergence — the arrow drawn beside an empty query — so the arrow half is what flips. Its non-vacuity control is the neutral sort indicator, still rendered, so "no arrow" cannot pass by the column having quietly stopped offering sorting. The unit block re-judges every spelling it used to admit, each refusal paired with a declared-array control. `gridArrayArmOrderby-8973.test.tsx`'s docblock cited this card by a label that had already moved; it now names the ruling, which does not move. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 17, 2026
… (objectui#8961) (objectstack-ai#9604) Fixes objectstack-ai#8961 Executes the maintainer ruling of 2026-09-15 — director batch objectstack-ai#135 item 5, 「135 同意」, **letter A** (objectui#8961 comment 5682605192). Not a decision; execution. ## What a user saw A view authored `sort: "name desc"` lit a descending arrow on the `name` header **before anyone clicked anything**, while the query that fetched those rows carried no ordering at all. The arrow stated something about the list that was not true of the rows beside it, and the first click on that column then asked for `asc` on a list that was in no declared order. The only signal was a `console.error` no end user reads. ## Why the two halves disagreed objectui#8221 retired the legacy string clause — one spelling, the array, everywhere. objectui#8767 (route C) made this block's fetch path REFUSE a string `sort` and send no `$orderby`, and deliberately left the other reader of the same key alone: `parseSchemaSort`, which feeds the header indicators, went on parsing `"name desc"` and `["name desc", ...]`. One key, two readers, opposite answers. ## What this does `parseSchemaSort` admits only `[{ field, order }, ...]` — the spelling `@objectstack/spec` declares for `ObjectGridPropsSchema.sort` (read from the installed `@objectstack/spec@17.4.0`, not copied from the order) and the only one the fetch path still lowers. A retired string yields nothing, so it lights no arrow. The refusal is **per entry**: a mixed array still lights the arrows for the keys spelled in the declared form. No second diagnostic is added: the author is already told once per spelling by PR objectstack-ai#8758's reporter at the fetch path, which quotes the offending value and prescribes the array form. A second voice here would only restore the arrow the wire cannot honour. Route B remains declined and untouched — this diff routes nothing through `convertSortToQueryParams` and moves no wire shape. ## Pins, both directions - `serverSorting.test.tsx` — declared array lights the arrow (the case that already existed, unchanged); a retired string lights **neither** direction while the query carries no `$orderby` and the one diagnostic still fires exactly once. That case previously pinned the divergence (arrow drawn beside an empty query), so the **arrow** half is what flips; the wire half stays asserted because "no arrow" is only right while the query really carries no ordering. - Non-vacuity control in that case: the neutral sort indicator is still rendered, so the two "no arrow" nulls cannot pass by the column having quietly stopped offering sorting. - The unit block re-judges every spelling it used to admit (bare string, array-of-strings, mixed array), each refusal paired with a declared-array control, single- and multi-key. - `gridArrayArmOrderby-8973.test.tsx`'s docblock cited this card by a **label** that had already moved twice; it now names the ruling, which does not move. ## Reverse verification (one-off, not left in the tree) From the committed fix, `parseSchemaSort`'s narrowed body was reverted to its pre-fix form on disk and the pins re-run, then restored. Mutation and restoration were each proven on disk by occurrence counts, not by an editor's exit code. Numbers and the head they were taken at are in the report on objectui#8961. ## Gates and tests Commands, exit codes and the ratchet-bearing runs are listed in the report comment on objectui#8961. Repo-wide scans (`pnpm lint`, the full `pnpm test`) are CI's run, not this branch's claim. ## Measured while here, out of scope The docblock this diff replaces claimed that narrowing this reader "takes the export path with it". It does not: the server-side export path reads `schema.sort` itself (`Array.isArray(schemaSort)`), never through `parseSchemaSort`, so it was already array-only and does not move. The new docblock says so. ## Acceptance notes - `plugin-view`'s `ObjectView.tsx` carries a cross-package comment quoting this function's old opening line verbatim (`typeof sort === 'string' ? [sort] : ...`). Its load-bearing conclusion — a bare object yields an empty list — is still true; the quoted opening is not. Left untouched: that file is outside this claim's declared surface. Noted, not filed; the successor is whoever next edits that sort block. - The server-side export path maps an array of retired strings to an empty `sort` array rather than omitting the key (the entries are filtered out, the empty array is still sent). Pre-existing, unrelated to the arrow, not filed. --- _Generated by [Claude Code](https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
… -> 8, dist pins get their own job (objectstack-ai#9584) Fixes objectstack-ai#9499 Scope is the director-seat ruling (comment `5682566291`, batch objectstack-ai#135 item 1, letter **C**), not the card body, which predates it. All three changes land in one PR. ## What changed | | | |---|---| | `test-aggregate` (`name: Test`) | New. `needs: [test, test-dist-pins]`, `if: always() && github.event_name != 'push'`. The single required test context. | | `test` | Matrix 4 → 8, `pnpm test --shard=N/8`. `timeout-minutes: 20` **unchanged**; no test skipped, disabled or quarantined; the relevance gate **not** widened. | | `test-dist-pins` (`name: Test (dist pins)`) | New. The shard-1-only `Run built-artifact pins (dist project)` step, lifted out of the matrix, carrying the `test` job's relevance gate **verbatim**. | ## ⭐ The acceptance: a shard forced to `skipped` turns the aggregator red — measured, not argued `needs.test.result` alone is a phantom gate, and the measurement says so in two ways. Both readings are from a real Actions run on branch `claude/issue-9499-proto` (workflow `PROTO 9499`), which stands in for the shard matrix with trivial jobs so the mechanism is the only thing under test. Run [`35045618251`](https://github.com/objectstack-ai/objectui/actions/runs/35045618251), attempt 1. Read back with `GET /actions/runs/{id}/attempts/1/jobs` and `GET /check-runs/{id}/annotations` — raw job logs are served from a blob host this agent's egress is denied, so the proto emits its readings as annotations, which the REST API does serve. | job | conclusion | |---|---| | `Test (shard 1/4)`, `(2/4)`, `(4/4)` | `success` | | `Test (shard 3/4)` — **forced to skip** with `if: false` | `skipped` | | `PROTO allskip (…)` — a 2-leg matrix whose whole job carries `if: false` | `skipped` | | ⛔ `PROTO naive aggregator` — `needs: [test, test-shard-3]`, **no** `always()` | **`skipped`** | | ⭐ `Test` — the real `scripts/check-test-shard-results.mjs` | **`failure`** | **The gate's own annotation on that failure**, verbatim: > `Test` :: 1 test shard(s) did not report success: Test (shard 3/4) (skipped). ⛔ 'skipped' is not a pass here -- that is the whole reason this gate reads each shard instead of the matrix rollup (objectui#9499). > :: Process completed with exit code 3. **The rollup, on the same run**, verbatim: > `ROLLUP` :: needs.test.result=success (3-leg matrix, every leg success) | needs.test-shard-3.result=skipped (one job, if: false) | needs.allskip.result=skipped (2-leg matrix, whole job if: false) > `ROLLUP SEEN BY THE GATE` :: needs.test.result=success ⇒ two distinct phantom shapes, both measured on the same run: 1. **`needs.test.result` reads `success`** on a run where a job named `Test (shard 3/4)` was `skipped`. An aggregator that trusted the shard matrix's rollup would have been green there. The gate that reads each shard's own conclusion is red. 2. ⭐ **A `needs:`-without-`always()` aggregator is itself `skipped`** — and a skipped *required* context counts as **success** in branch protection, so that aggregator does not merely mis-report, it vanishes. `test-aggregate` carries `if: always()` for exactly this.⚠️ One shape could **not** be produced and is reported as such rather than asserted: GitHub does not expose the `matrix` context to a job-level `if:`, so a single leg cannot be skipped while its siblings succeed. The forced-skipped shard above is therefore its own job under the shard's name — which is what the gate looks at anyway, since it reads job names and conclusions, not matrix membership. The reachable shapes are the three the gate covers: the whole matrix skipped, a leg missing from the matrix, and a leg failed/cancelled/timed-out. ## How the gate works `scripts/check-test-shard-results.mjs` reads **this run's own job list** from `GET /actions/runs/{id}/attempts/{n}/jobs` (`actions: read`, nothing written) and asserts each shard **by name and by its own conclusion**. `skipped` is not a pass. It fails closed — an unreadable answer is exit 2 and a red context — and it refuses any verdict over a job list that does not contain its own job, because that endpoint answers `200` with an empty list for a run id that does not exist, which would otherwise make "no shards found" and "every shard was removed" the same reading. The dist-pin job is asserted straight from `needs.test-dist-pins.result`: a non-matrix job's result is its own conclusion and `skipped` is visible in it, so no API read says anything more. The shard **count** is the one thing the script does not derive. `scripts/__tests__/check-test-shard-results.test.ts` pins the `--shards` argument written in `ci.yml` against `ci.yml`'s own `shard: [...]` matrix, and pins the shard-name spelling against the workflow through the same parser `dependabot-merge-gate.test.ts` uses. Drift is red, locally and loudly — which is the difference from the repository-settings surface the count used to be welded to. ## Why the ruleset rename was the blocker Naming the legs made the shard count a member of GitHub ruleset `11776024`: 4 → 8 renames four live required contexts at once, and between the rename and the settings edit every pull request blocks forever on a check that can no longer report while every queue build burns the ruleset's 60-minute status-check timeout. ⛔ **This PR is not mergeable on its own** — the ruling sequences three steps around it (remove the four `Test (shard n/4)` contexts, merge, add `Test`), and that sequencing is the lane seat's and the maintainer's, not this PR's. Two consequences recorded rather than left to be discovered: - `WATCHED_CONTEXTS` in `scripts/check-required-check-set.mjs` now names the set the ruling installs. Between this merge and the third step the live answer is the old one, so the patrol reports **`drifted` — exit 0, printed in the run summary, never red**. That is objectui#9422's two-tier split doing exactly what it was built for. A new test pins that reading against the committed 2026-09-14 live fixture, naming both halves (`Test` missing, the four shard names unexpected). - `REQUIRED_CONTEXTS` names `Test` instead of the four shards; the eight shards and `Test (dist pins)` move to `NOT_A_GATE` with the reason. They are blocking legs — the difference is that one context reports their verdict. ## The objectstack-ai#4959 counterfactual, re-read `dependabot-merge-gate.test.ts` carries a frozen verbatim record of the 2026-08-17 incident. It is not edited. What changed is what today's required set makes of it: the four shard names moved from `pending` to one `missing` name, and the case now asserts that too, so the drop from nine pending contexts to five cannot stand for a weakened case.⚠️ That file used to end a case with *"a gate that waited for `Test` as one name, or for whichever shard reported first, would have merged this pull request"*. That warning is about a single check **produced by** a shard, which reports while its siblings still run. `test-aggregate` has a `needs:` edge to every leg, so it cannot report before the last of them, and it is red unless each leg's own conclusion is `success`. The replacement case states that difference as behaviour, with a control in the same command: the same snapshot with the same two failed shards is green when the aggregator says `success`, so the red is the aggregator speaking and not a residual shard name. ## Local verification Every exit code below was redirected to a file and captured before any pipe. Worktree `objectui-issue-9499`, tree clean, at `d3e01fe48`. | command | exit | |---|---| | `pnpm exec vitest run --project unit scripts/__tests__` | **0** — 165 files passed, 2 skipped; 4798 tests passed, 2 skipped | | `pnpm type-check:scripts` | 0 | | `pnpm check:control-bytes` | 0 — 7740 tracked text files scanned | | `pnpm check:required-check-set` | 0 | | `pnpm check:merge-queue-head` | 0 | | `pnpm check:entry-guard` | 0 | | `pnpm check:test-path-roots` | 0 | | `pnpm check:action-ref-convention` | 0 | | `pnpm check:shell-escape-residue` | 0 | | `pnpm check:pre-install-import-graph` | 0 | | `pnpm lint:coverage` | 0 | | `pnpm docs:check-links` | 0 | | `pnpm check:doc-fences` · `check:doc-types` · `check:doc-example-ids` · `check:spec-symbols` · `check:new-line-citations` | 0 | | `pnpm check:governed-queue-guard` | 0 | | `node scripts/check-changeset-presence.mjs` | 0 | | `pnpm check:doc-snippets` | **2 — NOT MEASURED** | **`check:doc-snippets` is exit 2, which its own output calls `PRECONDITION NOT MET (exit 2) — The snippet program was NOT run`, explicitly "not a verdict about any document".** It needs a 34-package build first. Recorded as not measured rather than as a pass or a failure. The bound on what that leaves open: this change adds **zero** code fences to the page (`git diff -- content/docs | grep -c '^+.*```'` → `0`), and `check:doc-fences` is green over it. **changeset — the gate's own verdict line, quoted:** > `✅ No source or published contract of a released package changed in this range, so no changeset is owed.` > `Compared the working tree with f7fcc2c (merge-base with origin/main): 16 file(s) changed, 0 of them published source of a package the release covers, 0 of them a manifest whose published contract moved, 0 under a package changesets ignores, 0 changeset(s) added.` ⛔ No `skip-changeset` label is applied and no empty-frontmatter changeset is written: `grep -rn skip-changeset .github/ scripts/` outside `__tests__` returns zero and `ci-cd-pipeline-doc.test.ts` pins that label as a phantom. **lint, narrowed and declared.** `eslint --no-inline-config` over the **11** changed JS/TS files (count read from `--format json`): exit 0, 0 errors, 0 warnings. Population: the repo-wide `pnpm lint` scan is CI's and is not run here. Invariance: this repo's flat config sets no `parserOptions.project` / `projectService`, so no rule in it is type-aware and nothing in this diff can move the verdict on a file the diff does not touch. ⛔ No build, no `dom` project and no package test run: this diff touches `.github/workflows/**`, `scripts/**` and `content/docs/**` only, and `scripts/` is not a workspace package, so the affected-package closure is empty. Every test that reads any file in this diff lives under `scripts/__tests__`, and all 167 of those files ran. ## Acceptance notes - **Zone 2 assumption 1 — the coverage lane is NOT coupled.** `test-coverage` declares its own `shard: [1, 2, 3, 4]`, its own `--shard=N/4` and its own `blob-N-4.json` file names; nothing is shared with the `test` matrix. The `ci.yml:741` sentence *"sharded the same 4 ways"* was a description, not a coupling, and it is now reworded to say so. **No coverage-lane change is required by this card**, which is the reading objectui#9271 needs. - **Zone 2 assumption 2 — half falsified.** `check:merge-queue-head` pins no check name at all. `check:required-check-set` pins only `Type Check`; the shard names are in the *watched* tier, whose absence is reported and never red — but a separate assertion (*"every pinned and watched name is declared blocking in `REQUIRED_CONTEXTS`"*) does couple them, so the update was in scope after all, for a different reason than the one assumed. - **Zone 2 assumption 4 — falsified.** `content/docs/guide/ci-cd-pipeline.md` is forced, and not by the add-a-workflow rule: `ci-cd-pipeline-doc.test.ts` pins the job table against `ci.yml`'s `jobs:` keys **in both directions**, pins each row's *Appears as* against the job's `name:`, and pins each row's *What it runs* against the job's first-party commands. Two new jobs means two new rows or a red test. - **A matrix leg cannot be skipped while its siblings succeed.** GitHub does not expose the `matrix` context to a job-level `if:`, so the literal "mixed rollup" shape cannot be produced from a matrix. The reachable forms are: the whole matrix skipped, a leg removed from the matrix, and a leg failing or cancelled. The gate covers all three, and the proto run demonstrates the first and third. - noted, not filed: the page's Core CI section stated *"Every job runs in parallel — there are no `needs:` edges between them"*, which `coverage-report` (`needs: test-coverage`, objectui#5403) had already falsified. Corrected here because this PR adds the second such edge and the sentence sits in the paragraph the new rows belong to. Successor: whoever next edits that section — this PR is that editor. - noted, not filed: three workflow comments (`changeset-release.yml`, `check-links.yml`, `labeler.yml`) enumerate the required set as it stood, each under an explicit `Re-measured … at 2026-09-06T17:20Z` dateline. A dated fact cannot drift, so they are left alone. The present-tense claims about the same set — `lint.yml`'s step comment, three `scripts/__tests__` headers and two paragraphs of the page — are corrected here, because this change is what made them false. Successor: none needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015h79niBMyoB1xcaQje3uiz --- _Generated by [Claude Code](https://claude.ai/code/session_015h79niBMyoB1xcaQje3uiz)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Steve Jobs <steve@objectstack.ai> Co-authored-by: os-zhuang <jack@objectstack.ai>
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
…ude/settings.json (objectui#9586) (objectstack-ai#10214) Fixes objectstack-ai#9586 ⛔ **GOVERNED — this pull request is a DRAFT and stays one.** The changed instruction-tree path is governed surface in this repository. Asked of the guard itself, in this worktree: ``` $ node scripts/check-governed-queue-guard.mjs --test .claude/settings.json .changeset/issue-9586-enqueue-class-deny-mirror.md ⛔ GOVERNED — 1 of 2 path(s) are on a governed surface: .claude/** x1 — the agent instruction tree (skills, hooks, settings) - .claude/settings.json One governed path governs the WHOLE pull request — proportion is not a question. ⛔ Do not flip it ready, enqueue it, or arm auto-merge. Park it as a DRAFT and leave the merge to the maintainer; a human merge IS the review record for a governed surface. The merge-queue run of "Governed Surface Queue Guard" refuses this diff unless an APPROVED review by an authorized approver (GOVERNED_APPROVERS: os-zhuang, hotlong) is on the pull request — on whichever commit it was left (maintainer ruling 2026-09-04). (exit 3) ``` ⇒ ⛔ never flipped ready, ⛔ never enqueued, ⛔ never armed with auto-merge, ⛔ never approved by a seat under any account. Under ruling C the claiming seat lands it only once an authorized APPROVED review exists. ## 维护者速读(草稿) **改了什么** 一个文件、三行:`.claude/settings.json` 的 `permissions.deny` 从 14 条加到 17 条,新增点名三个 MCP GitHub 工具 —— `update_pull_request`、`enable_pr_auto_merge`、`disable_pr_auto_merge`。改完之后,本仓的 deny 数组与 objectstack 的**逐元素相同、顺序也相同**。`allow` 与 `hooks` 两块字节未动。另附一个空 frontmatter 的 changeset(声明「不发版」,本仓惯例)。 **为什么改** 这是 objectstack 已裁决条款的跨仓镜像,不是本仓的新主张。objectstack#18282 裁决 A(批次 objectstack-ai#135 追认)把「声明即强制」扩到**入队类**:席位在两个板上真正用的入队通路只有 REST 的 `PUT .../pulls/{n}/ccr/auto_merge`(它就在同一个文件的 `allow` 里),所以把 MCP 的那两个入队工具关掉,**不损失任何能力**,只是把一条没人走的旁路封死。 第三条 `update_pull_request` 是本仓自己的事故教训:objectui#6183 里,一次只传 `reviewers` 的 MCP 调用**顺带**把 PR 的 `draft: false` 设了,于是一个受管草稿进了合并队列、零人工批准就落了地。本仓当时只镜像了 14 条内容写入类,这一条(objectstack 在 PR #18276 落地)和入队那两条(PR #18317)都没跟上 —— 本次一并补齐。 **风险与代价(含回滚)** - 代价:任何还想用 MCP 去翻 ready、挂/摘 auto-merge 的流程会被运行时拒绝。这是有意的。`gh pr ready`、`gh pr merge --auto` 与 REST 的 ccr 路径都不受影响。 -⚠️ 已知代价,需要你知道:AGENTS.md 里有两处**配方文本**仍然点名这两个工具(自行合并那条的「MCP 等价物」一行,以及受管面段「发现自己已经挂上了怎么办」那条补救 —— 后者写的是「只调 `disable_pr_auto_merge` …… 两个都要做」)。本卡的文件面只有 `.claude/settings.json`,且 AGENTS.md 当前被两个在途 PR 持有(objectstack-ai#10212 / objectstack-ai#10213),所以本 PR ⛔ 不碰它,改由席位另立卡。方向是安全的一侧:配方失效会**响亮地被拒**,不会静默做错事。 - 回滚:`git revert` 单个 commit 即可,无数据迁移、无构建产物、无已发布包字节变化。 **席位意见** (留空,交席位定稿) **你要做的** 确认「入队类 MCP 工具一并关掉」这个方向是你要的(objectstack 那边已经这么定了),然后在本 PR 上留一条 APPROVED review。批准之后由认领席翻 ready、入队落地,你不需要自己合并。上面那条⚠️ 只需要你知道,不需要你在这张卡里处理。 ## 前提核验(动手前,在 `origin/main` `0cf2d6644` 上实测) | # | 前提 | 读数 | 结论 | |:--|:--|:--|:--| | P1 | 卡片说本仓 deny 有 14 条 `mcp__github__*`,且三条都不在 | 实测 deny 总数 14,全部是 `mcp__github__*`;三条各命中 0 次,正控 `issue_write` 命中 1 次 | 成立 | | P2 | 本仓有没有 deny 名册门禁(objectstack 的 `scripts/pm/check-settings-deny-roster.mjs`) | 不存在;`scripts/pm/` 全部内容是 `board-snapshot.mjs` 与 `check-half-states.mjs`;全仓 grep `settings.json`,`scripts/` 与 `.github/` 内零个读取者 | 无 ⇒ ⛔ 不移植该门禁 | | P3 | 本仓有没有通道对照表(objectstack 的 `references/rest-channel.md`) | `.claude/` 下不存在任何 `references` 目录;`.claude/` 全部文件共 14 个(4 个 hook + 4 个 selftest + `launch.json` + `settings.json` + 2 个 skill 的 4 个 md) | 无 ⇒ 那一行事实无处可加 | | P4 | `.claude/settings.json` 是不是被 pin 的上游移植文件(改它会红 `check:upstream-port-parity`) | 不是。`scripts/upstream-port-pin.json` 13 条,`.claude/` 下只 pin 了 8 个 hook/selftest 文件 | 可以改;该门禁仍已跑,绿 | | P5 | 并发:有没有别的在途 PR 碰这个文件 | 7 个 open PR 的文件清单逐一读过,零个碰 `.claude/settings.json`;`objectstack-ai#10212` / `objectstack-ai#10213` 只有 `AGENTS.md`(hunk 分别在 468 与 323 行区) | 无冲突 | ## 执行判据(卡片的那一条) 推送之后,`GET /repos/objectstack-ai/objectui/contents/.claude/settings.json?ref=claude/issue-9586-settings-deny-auto-merge-mirror` 解码后的 `permissions.deny`(HTTP 200,blob sha `30c3367037de7ba000673e4da8caa2913a9c704c`,size 2255): ``` 1 mcp__github__issue_write 2 mcp__github__create_pull_request 3 mcp__github__update_pull_request ← 新增(objectstack PR #18276 的镜像) 4 mcp__github__add_issue_comment 5 mcp__github__add_comment_to_pending_review 6 mcp__github__add_reply_to_pull_request_comment 7 mcp__github__pull_request_review_write 8 mcp__github__push_files 9 mcp__github__create_or_update_file 10 mcp__github__delete_file 11 mcp__github__create_branch 12 mcp__github__sub_issue_write 13 mcp__github__merge_pull_request 14 mcp__github__create_repository 15 mcp__github__fork_repository 16 mcp__github__enable_pr_auto_merge ← 新增(本卡的判据) 17 mcp__github__disable_pr_auto_merge ← 新增(本卡的判据) ``` 两条判据条目都在 ⇒ 判据满足。 ## 改动的形状,实测而非声称 ⛔ 没有手打重排。两处锚点文本替换,锚点各自唯一,其余字节不动: ``` deny base: 14 branch: 17 objectstack: 17 branch deny === objectstack deny (order included): true allow identical to origin/main: true sha 46560076ce2be885 = 46560076ce2be885 hooks identical to origin/main: true sha 10e6c3a3ae991607 = 10e6c3a3ae991607 top-level keys / permissions keys: 与 origin/main 相同,无增删 added: ["mcp__github__update_pull_request","mcp__github__enable_pr_auto_merge","mcp__github__disable_pr_auto_merge"] removed: [] duplicate entries: 0 git diff --numstat: 4 1 .claude/settings.json ``` 顺序惯例是**按类分组、不是字母序**(实测:objectstack 把 `update_pull_request` 紧挨 `create_pull_request`、把入队对追加在末尾),本 PR 照同样的位置插入,结果两仓数组完全一致。 两个读者都能解析:`node JSON.parse OK` · `python json.load OK`。`settings.json` 里 wire 的 4 个 hook 命令全部落在磁盘上(4/4 OK)—— 这个文件正是点名它们的那一个。 ## 门禁 门禁族由本仓自己推导:objectui 没有 `scripts/pm/dispatch-gates.mjs`(不存在),所以逐个读 `.github/workflows/*.yml` 的触发条件,取「会判到这两个路径」的全集。 | 门禁 | exit | 判定行 | |:--|:--|:--| | JSON 有效性 | 0 | `node JSON.parse OK` · `python json.load OK` | | `check-control-bytes`(commit 后重跑) | 0 | `✅ check-control-bytes: OK (scanned 8217 tracked text file(s); skipped 85 binary).` | | `check-governed-queue-guard --self-test` | 0 | `OK check-governed-queue-guard self-test: 185 cases pass` | | `check-governed-queue-guard --test` | 3 | 本文顶部那段(受管,exit 3 是本 PR 的健康读数) | | `check-changeset-presence` | 0 | `✅ No source or published contract of a released package changed in this range, so no changeset is owed.` | | `check-changeset-no-major` | 0 | `✅ No changeset declares a major bump.` | | `check-changeset-overwrite` | 0 | `✅ No pre-existing changeset was modified or deleted.` | | `check-lint-coverage` | 0 | `✅ lint coverage: 46/46 packages linted, 0 with outstanding errors (0 total).` | | `check-entry-guard --self-test` / 全跑 | 0 / 0 | `63 cases pass` · `108 scripts/ file(s) — no entry guard outside the baseline` | | `check-upstream-port-parity --self-test` / 全跑 | 0 / 0 | `66 cases pass` · `13 ported file(s) match objectstack-ai/objectstack modulo their declared divergences` | | `check-bash32-floor --self-test` / 全跑 | 0 / 0 | `160 cases pass` · `13 tracked shell file(s) … name no bash 4+ construct` | | `check-skills-paths` | 0 | `✅ check-skills-paths: OK (88/89 stated path(s) resolve across 20 guide file(s); 1 baselined).` | | `check-new-cross-file-line-citations` | 0 | `VERDICT new-cross-file-line-citations: 0 new citation(s), enforcement report-only -> exit 0` | 退出码一律在任何管道之前捕获(先重定向到文件,再读 `$?`)。 **不欠的两族,连同不欠的理由:** `hook-selftests.yml` 的 paths 是 `.claude/hooks/**` 与它自己 —— 本 diff 不碰 hook 文件(hook 命令仍被 `settings.json` 点名,所以单独验了 4/4 落盘)。`check-shell-escape-residue` 的 `SCAN_ROOTS` 是 `AGENTS.md`、`CLAUDE.md`、`skills`、`.claude/skills`、`content/docs` 五条,`.changeset/**` 不在其中 ⇒ 新增的 changeset 不在它的总体里。 **lint 与 type-check:一次申报过的收窄,不是一次漏跑。** 三条读数里的两条来自仪器,第二条被替换,如实写明: 1. **总体读自 eslint 自己的配置**:`eslint.config.js` 里每一个 `files` 块都限定在 TS/TSX(`**/*.{ts,tsx}`、`scripts/**/*.{ts,tsx}`、`**/*.test.{ts,tsx}`、`**/__tests__/**/*.{ts,tsx}`、`**/examples/**/*.{ts,tsx}`、`**/*.tsx` 及三个具名单文件),没有 JSON 块,也没有 markdown 块。 2. **文件数**:⚠️ 本次**不是**读自 `--format json`,而是读自 diff 的扩展名普查 —— 本分支 `git diff --name-only` 两个文件,`.json` 与 `.md` 各一,`.ts/.tsx/.js/.mjs/.cjs` 命中 **0** ⇒ 落在 eslint 总体里的文件数必然为 0。这个容器里 objectui 没有 `node_modules`(共享检出与本 worktree 均无),而为一个 JSON + markdown 的 diff 做一次全仓 `pnpm install` 是这台共享机器上最贵的动作、且买不到任何判定。⇒ 这一格的仪器读数记 NOT MEASURED,理由如上;推翻它只需要一个 `.ts` 文件,而本 diff 没有。 3. **对未触碰文件的不变性**:type-aware linting 全仓未启用(`eslint.config.js` 里没有任何块设 `parserOptions.project` 或 `projectService`)⇒ 本 diff 移不动任何它没触碰的文件的判定。同一读数覆盖 `type-check`:tsc 的输入字节未变。 仓级 `pnpm lint` / `pnpm type-check` 农场是 CI 的运行。⚠️ 并且它**会**在本 PR 上跑满:`lint.yml` 的相关性判断只排除 `**/*.md`、`content/**`、`docs/**`、`.changeset/**`,而 `.claude/settings.json` 不在排除列里 ⇒ `should_run=true`,安装之后的那半边门禁由 CI 如常判定。 上述读数取自本分支最终 commit `45f22049`。 ## Acceptance notes 顺路看到、⛔ 本 PR 一律没动的: - **AGENTS.md 有两处配方点名了本 PR 刚关掉的工具。** 一处在「CI 全绿即自行合并」那条的代码块里(`# MCP 等价物:pull request update(draft: false) + enable_pr_auto_merge`),一处在受管面段的补救条(「只调 `disable_pr_auto_merge` 会摘掉 auto-merge 但不取消队列成员资格,两个都要做」)。本 PR 落地之后,照这两处文本行事的席位会撞上运行时拒绝。objectstack 那边的对应修复是改它的通道对照表那一行(「auto-merge 备用 MCP 未拒」→「auto-merge MCP 锁 1 同拒」);本仓的等价文本恰好落在 AGENTS.md 里,而 AGENTS.md **不在本卡的文件面内**,且当前被 objectstack-ai#10212 / objectstack-ai#10213 两个在途 PR 持有。⇒ 交席位另立卡,本 PR 不碰。方向安全:失效的配方会被响亮拒绝,不会静默做错。 - **`.changeset/issue-9418-write-identity-locks-port.md` 里有一句已经过时的话。** 那份(空 frontmatter、永不消费的)历史声明写着四个「状态形」工具 —— 含 `update_pull_request` 与 `enable_pr_auto_merge` —— 「stay allowed」。本 PR 之后其中两个不再 allowed。它是一份历史记录而非规程,读者为零,⛔ 不改、也不建议为它单独立卡;记在这里只是为了下一个读到那句话的人不被它误导。 - **`check-governed-queue-guard.mjs` 的拒绝文案仍写着「a human merge IS the review record」**,而 AGENTS.md 已按裁决 C 改成「获授权批准后由认领席落地」。这条在 objectui PR objectstack-ai#9448 的 Acceptance notes 里已经报过一次,至今仍在;本 PR 只是再次撞见,不重复立卡。 `Clause-②: no` 本次实现所在的会话,写成散文以便在正文被改写后仍可追溯:`session_01Wnstp2kTth7sGXfr8fXypc`。 ## 席位意见(`domain:skills` seat 1,session `session_01Wnstp2kTth7sGXfr8fXypc`) **建议:批准并由席位落地。** 一个文件三行,把 objectui 的 `permissions.deny` 补成与 objectstack 逐元素、同顺序相同(席位在复核工作树上解析两边数组比对为真);`allow` / `hooks` 未动;三条都在卡的裁决范围内(objectstack#18282 裁决 A、批次 objectstack-ai#135 追认;`update_pull_request` 是卡正文点名的「本仓一并缺失」项)。不损失能力:两个板上席位真正用的入队通路只有 REST `PUT …/ccr/auto_merge`,就在同一文件的 `allow` 里。卡留给取卡者的两个可选项 —— 移植 deny 计数门禁、频道表加一行 —— 本树都不存在对应物,均未做(新增门禁默认否)。 **你需要知道的一件事(不阻塞本 PR):** 落地后 objectui `AGENTS.md` :331 与 :531 两处配方文字仍写着 `enable_pr_auto_merge` / `disable_pr_auto_merge` 作为 MCP 等价物,届时会被响亮拒绝而非静默执行错;两个在途 AGENTS.md PR(objectstack-ai#10212 :468、objectstack-ai#10213 :323)不在那两段,不能顺带。席位身份过不了立卡门,已记到席位帖的维护者事项里,由你决定是否立卡。 复核记录:PR 评论 5778587633(PASS,在席按服务档渲染);ACCEPT 在卡 objectui#9586。CI 读数:42 latest-per-name check runs — 39 success, 3 skipped, 0 in progress, 0 other。 --- _Generated by [Claude Code](https://claude.ai/code/session_01Wnstp2kTth7sGXfr8fXypc)_ --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com>
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Provides structured prompts for AI agents (Copilot, ChatGPT, Claude) to develop ObjectUI components following canonical patterns and constraints.
Structure
16 markdown files in
.github/prompts/organized by concern:Content Model
Each prompt defines:
Key Constraints Enforced
Architecture flow:
types (protocol) → core (logic) → react (bindings) → components (UI)Usage
Covers 60+ component types with 200+ code examples. Bilingual (EN/中文).
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.