Skip to content

feat(spec): ask-question envelope for the question card, with legacy ask_which reading - #37930

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-8w7xfx
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-8w7xfx

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibvQHY8a6PKzfR6E7SD

Requested by Tesla · project thread

Fixes #37872

Clause-②: yes
Metadata-protocol: added
Skills-docs: none — the envelope is a tool result between the AI service's question tool and the console's chat; no skill teaches tool-result envelopes, and nobody authors one as metadata

维护者速读

  • 用户能看到什么变化:暂时看不到;这是问题卡的数据格式,控制台的问题卡和云端提问工具都按它来写。
  • 为什么做:问题卡专题第一步,AI 反问时把纯文字问题换成可点选的卡片,先在协议里定好格式并兼容现有的歧义提问。
  • 出错会怎样:格式不对的结果读不出卡,控制台照旧显示文字,不会报错;只新增、不改旧行为,可直接撤回。
  • 要你做什么:无。

What changes

New module packages/spec/src/ai/ask-question.zod.ts, exported from @objectstack/spec/ai:

  • AskQuestionEnvelopeSchema — { success: true, status: 'asked', reply, preface?, questions }; questions is 1–2 of AskQuestionSchema ({ header?, question, options }), options is 2–4 of AskQuestionOptionSchema ({ label, description?, recommended? }). Limits exactly as the card states (preface 80, header 16, question 120, label 24, description 60), exported as ASK_QUESTION_LIMITS so the card component and the producer read the same numbers. Labels unique within a question (compared trimmed), at most one recommended. Every level is closed (strictObject): an unknown key is refused, never dropped. Blank strings are refused.
  • parseAskQuestionEnvelope(value) — takes the already-unwrapped object (peeling the stream's text wrapper stays with the console's parseResultEnvelope), answers the parsed envelope or null.
  • Legacy: { success: true, status: 'asked_which', question, readings, reply } reads as one question whose options are the readings with no description. The converted value is held to the same AskQuestionEnvelopeSchema, so one contract and one set of limits; a legacy result the card cannot draw answers null and stays text as today. The legacy reader is open (extra keys ignored) and not exported: it reads a shape an existing producer writes and stored conversations hold.
  • Constants ASK_QUESTION_STATUS, ASK_WHICH_LEGACY_STATUS; types AskQuestionEnvelope / AskQuestion / AskQuestionOption and their …Parsed pairs (ADR-0122).
  • Regenerated: api-surface/, export-origins/, declaration-map/, json-schema.manifest/, authorable-surface/, content/docs/references/**, the strictness-ledger counts. llms.txt inventory count for ai 16 → 17.
  • dropped-refinements.baseline.json: two new rows (ai/AskQuestion root, ai/AskQuestionEnvelope questions.element). The unique-label and single-recommended rules are superRefines over object items, which no arm of the closed projection list covers (unique-items is scalar-only), so the published JSON Schema is wider than the runtime there; the build printed the rows and they are declared as it asks.

Tests

packages/spec/src/ai/ask-question.test.ts, 17 cases: full shape round-trips; unknown key refused at all three levels; status / success literals; reply empty or missing; 1 and 2 questions pass, 0 and 3 refused; 2–4 options pass, 1 and 5 refused; every length limit at max and max+1 with its path; blank question and empty label; duplicate labels (including a trailing-space duplicate) refused within a question and allowed across questions; one recommended passes, two refused; the parser on a valid envelope, on contract breaks, on garbage (null, undefined, strings, numbers, arrays, {}, another status, the un-peeled text wrapper); legacy conversion, legacy extra keys, legacy over the limits (1 or 5 readings, duplicates, an over-long reading), malformed legacy (success false, readings not a string array, missing reply or question). Refusal legs assert zod's issue code and path.

Acceptance notes

  • Legacy limits are a reading choice: the card says the legacy result "reads as one question whose options have no description", so the converted value is an AskQuestionEnvelope and carries its limits. If the cloud ask_which readings commonly exceed 24 characters or 4 entries, stage 1 shows fewer cards than hoped (they stay text, no regression). The cloud producer is outside this session's repositories: reading lengths and the exact legacy key set (ask-which.tool.ts:116) are NOT MEASURED here and rest on the card's Fable-checked citation.
  • Metadata-protocol: added is copied from the claim; the envelope is a wire shape rather than authored metadata, so the minor level follows the kind as declared.
  • parseAskQuestionEnvelope is a pure parse helper in packages/spec, as the card asks; precedent parseFilterAST, parseDateMacroParam.

Verification

  • Two-minute check: pnpm --filter @objectstack/spec exec vitest run src/ai/ask-question.test.ts — 17 passed.

  • Read first: packages/spec/src/ai/ask-question.zod.ts (the superRefine on AskQuestionSchema and parseAskQuestionEnvelope), then dropped-refinements.baseline.json.

  • Local, head a8d843b: @objectstack/spec build, check:generated (all 14 artifacts current), typecheck, vitest src/ai + src/shared + the ADR-0122 pin (65 files, 1634 tests) and scripts (81 files, 1656 tests) green. Derived gate list: 109 commands, 101 exit 0, check:llms-txt fixed in this PR, 7 exit 3 (prerequisite not built on this clone: NOT MEASURED locally, all covered by CI). CI on a8d843b: 70 check-runs, 60 success, 10 skipped, 0 failed. Full report: the os-dev-report comment on 问题卡专题 Q1:spec 问题信封(AskQuestionEnvelope、兼容旧 asked_which、parseAskQuestionEnvelope) #37872.


Generated by Claude Code

@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:ai tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

24 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 8 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/declaration-map/ai.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/declaration-map/ai.json, …) — pages documenting those are invisible to this run
  • 5 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json ad632a23a8cadbe8cfae8f1c3fee1052defada29 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 1ec515b6b1d6e773119cad58cc4d0626d7158299 — the merge of head a8d843b398bb67c6bbac2719943e599cf8f9b01c into base ad632a23a8cadbe8cfae8f1c3fee1052defada29, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1ec515b6b1d6e773119cad58cc4d0626d7158299 && git checkout 1ec515b6b1d6e773119cad58cc4d0626d7158299
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ad632a23a8cadbe8cfae8f1c3fee1052defada29 a8d843b398bb67c6bbac2719943e599cf8f9b01c && git checkout -B drift-repro ad632a23a8cadbe8cfae8f1c3fee1052defada29 && git merge --no-ff a8d843b398bb67c6bbac2719943e599cf8f9b01c

node scripts/docs-audit/affected-docs.mjs --json ad632a23a8cadbe8cfae8f1c3fee1052defada29

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i

L1-c, the seat's L1 thread · 2026-11-27T12:56Z — the brief handed to the isolated contract reviewer whose record follows, posted for the seat to read before adopting it.

Contract review brief — PR #37930 @ a8d843b398bb67c6bbac2719943e599cf8f9b01c (card #37872)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/ai/ask-question.zod.ts packages/spec/src/ai/index.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37872: its body and EVERY comment (rulings and earlier records included)
· PR #37930: its body, its file list, and the net diff against main at a8d843b398bb67c6bbac2719943e599cf8f9b01c
· the check-runs on a8d843b398bb67c6bbac2719943e599cf8f9b01c: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/ai/ask-question.zod.ts, packages/spec/src/ai/index.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is SCRATCHPAD/pr-37930/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a8d843b398bb67c6bbac2719943e599cf8f9b01c
Local-runs: none
Scope: packages/spec/src/ai/ask-question.zod.ts, packages/spec/src/ai/index.ts + packages/spec/dropped-refinements.baseline.json

Read, not reviewed: packages/spec/src/shared/strict-object.ts and ui/packages/plugin-chatbot/src/toolResultParsers.ts on main; ui/packages/plugin-chatbot/src/QuestionCard.tsx at the head of Q2a PR #37932; card #37872 with its two comments; topic #37871; Q2b card #37874. Not readable from this seat: objectstack-ai/cloud (the ask_which producer, ask-which.tool.ts).

Check-runs on this head: 70 in total, 60 success, 10 skipped, 0 failed. Test Core (10 shards), Build Core, TypeScript Type Check, Lint & Repo Gates, Spec property liveness, Check Changeset, Governed Surface Queue Guard, Type Check UI and Test UI are all success.

① Derived judgments

  • Public surface, added only. @objectstack/spec/ai gains 13 exports: 3 constants (ASK_QUESTION_LIMITS, ASK_QUESTION_STATUS, ASK_WHICH_LEGACY_STATUS), 3 schemas, 6 types (input and Parsed pairs) and parseAskQuestionEnvelope. api-surface/ai.json lists exactly these. Nothing existing is removed, renamed or re-typed. Right.
  • Accept set, new only. No existing schema's accept set moves. The three new schemas are closed at every level through strictObject; the test asserts unrecognized_keys at all three levels. Right.
  • Shape and limits against the card. success: true, status: 'asked', reply (required, non-empty), preface? at most 80, questions 1 to 2, header? at most 16, question at most 120, options 2 to 4, label at most 24, description? at most 60, recommended? boolean. Labels are unique within a question and at most one option is recommended, both by superRefine. No "type something else" key and no multi-select key. This matches the card's block line by line. Two things go beyond the card and both tighten it: blank strings are refused, and label uniqueness compares trimmed text. Right.
  • Published JSON Schema is wider than the runtime in two places, and both are declared. The unique-label and single-recommended rules do not project. The two new ledger rows (ai/AskQuestion at the root, ai/AskQuestionEnvelope at questions.element) and the totals (279 to 281 schemas, 1223 to 1225 sites) agree with the one superRefine and its one embedding. AskQuestionOption has no refinement and correctly has no row. Right.
  • Legacy accept set. A value with status: 'asked_which' is read through an unexported loose object (success: true, question, readings: string[], reply; other keys ignored), converted, and then parsed by the same AskQuestionEnvelopeSchema. So a legacy result with 1 reading, 5 or more readings, a duplicate or blank reading, a reading over 24, a question over 120 or an empty reply answers null. The tests cover count, duplicate and length. Right as built; see ③ E1 for what it rests on.
  • Authorable surface. authorable-surface/ai.json gains 11 rows for a tool-result shape nobody authors as metadata. The repo's instrument classifies every published schema this way, and Spec property liveness is green, so this is consistent with the instrument, and it is what makes Metadata-protocol: added the matching kind.

② Semver level

@objectstack/spec minor, Clause-②: yes, Metadata-protocol: added, present and identical in the PR body and the changeset. The diff publishes new exports and three new JSON Schemas and removes nothing, so no BREAKING banner and no ADR-0087 disposition is owed. The kind added takes at least minor; minor is right. The card orders this same level and kind. Check Changeset is success.

③ Boundary flags

  • Dev flag, out_of_scope_findings: legacy readings over 24 characters or more than 4 entries answer null; cloud reading lengths not measured. Not answerable from this seat: the cloud repository cannot be read here. Escalated as E1 to seat epic:#5027#1, which owns the cloud side and filed the card with the ask-which.tool.ts citation. The question to answer with a measurement: what does ask_which allow and typically produce for the number of readings and the length of each reading and of the question? This decides how many of today's ambiguity questions get a card in stage 1 (topic acceptance 1). It does not decide this PR: the envelope schema is the same either way, the failure direction is the text the user sees today (topic acceptance 6 holds), and loosening only the legacy arm later is an additive change to one function. It must be answered before Q2b 问题卡专题 Q2b:问题卡接进对话(findPendingQuestion、顶替输入框且不卸载、对话内摘要、隐藏重新生成、跳过记号) #37874 claims topic acceptance 1.
  • Dev flag, PR acceptance notes: Metadata-protocol: added for a wire shape. Answered in ① and ②: consistent with the instrument and with the card.
  • Dev flag, PR acceptance notes: a parse helper in packages/spec. Answered: the card orders it there, and parseFilterAST and parseDateMacroParam on main are the precedent. It holds no state and no I/O.
  • Legacy reading against Prime Directive 12. The legacy arm is a tolerated second shape. It is not a consumer-side fallback: it is declared once in the contract package, tested, held to the contract's limits, and ordered by the card (item 2) under topic decision D1 ("no rewrite of stored tool results"). It reads a tool result, not authored metadata, so no ADR-0087 entry is owed. Answered.
  • open_questions: empty in the dev report. Nothing to answer.
  • SQL push-down: the diff holds no query, no id materialisation and no join. Not applicable.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/ai/ask-question.zod.ts against card #37872, topic decisions D1 and D2, and its first consumer (Q2a PR #37932).

  • The schema implements the card exactly (① above). Tried to break it: an unknown key at any level, 0 or 3 questions, 1 or 5 options, each length at max plus one, a blank question, an empty label, a trailing-space duplicate label, two recommended, the un-peeled { type: 'text', value } wrapper, arrays and primitives. All are refused or answer null, with a test for each.
  • First consumer. Q2a's local QuestionCardQuestion (header?, question, options: readonly QuestionCardOption[]) and QuestionCardOption (label, description?, recommended?) are structurally what AskQuestionParsed and AskQuestionOptionParsed are; exactOptionalPropertyTypes is not set anywhere in the repo, so parsed.questions is assignable to the card's questions prop without a cast. The card keys options with the digits 1 to 4, which agrees with maxOptions: 4; it composes a two-question answer as header: answer and falls back to the question text when header is absent, which agrees with header being optional. preface has no reader in Q2a; Q2b step 5 names its reader (the in-thread message) and Q3 its producer. Compatible.
  • Holding the legacy reading to the same limits is the sound structure: one contract, one exported type whose limits the card component can rely on, and a safe fallback. Whether it yields enough cards in stage 1 is E1.
  • N1 (nit) — three sentences describe readers and producers that do not exist on this head. (a) The reply describe, which ships in the package, the JSON Schema and the reference page: "The console draws the card only when this equals the last assistant text". No console code compares reply today. The sentence is not false (the console draws no card at all), and it is rule 3 of Q2b 问题卡专题 Q2b:问题卡接进对话(findPendingQuestion、顶替输入框且不卸载、对话内摘要、隐藏重新生成、跳过记号) #37874 word for word in substance, so it is a commitment Q2b must keep. (b) The module JSDoc says the console "hands the object to parseAskQuestionEnvelope"; nothing calls it yet. (c) The ASK_QUESTION_LIMITS JSDoc says "the card component lays out against them"; Q2a does not import the limits and hard-codes its four digit keys. Accepted deviation: Q2b 问题卡专题 Q2b:问题卡接进对话(findPendingQuestion、顶替输入框且不卸载、对话内摘要、隐藏重新生成、跳过记号) #37874 makes (a) and (b) true and must change the describe in its own PR if its rule 3 changes; the changeset already says nothing produces or reads the envelope yet.
  • N2 (nit) — the label describe says it is "the answer text sent when it is picked". That is exact for one question; for two, the card sends header: label lines. Also, uniqueness compares trimmed labels but the stored value is not trimmed, so a label with leading or trailing spaces is accepted and sent as written, and reply accepts a whitespace-only string while every other text refuses one. Left as written; a producer-side matter for Q3.
  • N3 (nit) — alias tables. They are sensible and collide with no declared key. Three small gaps: the envelope's question to questions row is one edit away, so the distance fallback already answers it; the two exclusions the JSDoc names (multi-select, and an "other" option) have no guidance row, although those are the keys a producer is most likely to try and the ones a rename hint cannot explain; a legacy-shaped readings at envelope level gets no pointer. The messages reach only a producer that calls the schema itself, since parseAskQuestionEnvelope answers null without the issue. Follow-up material for Q3, where the producer is written.

packages/spec/src/ai/index.ts: one export * line and one docblock line. The docblock line ("the envelope a question tool's result carries, from which the console draws a question card") carries the same forward tense as N1 and is covered by it. No name collision in api-surface/ai.json.

packages/spec/dropped-refinements.baseline.json (implementing): the rows and totals agree with the code (①). N4 (nit) — the two rows sit between ai/Agent and ai/AiContext, out of the file's alphabetical order; the build accepts it. Left as is.

Implemented-by: claude/project-thread-8w7xfx
Reviewed-by: session_01L9qibvMMgnKA797JY46H9i

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i

L1-c, the seat's L1 thread · 2026-11-27T12:58Z

席位核对 — L1 @ a8d843b398bb67c6bbac2719943e599cf8f9b01c

Verdict: ACCEPT. The contract review on this head is PASS (comment 7218887245, CONTRACT_REVIEW_TIER, no must-fix, no should-fix). No governed path is in the diff, and it is 655 changed lines, so the seat lands it once this record is in place.

Checklist

  • Shape and relation. Draft against base main. The first line is Fixes #37872, and no closing keyword binds any other card. Fixes is right because the diff delivers all four steps on the card: the module, the legacy reading, parseAskQuestionEnvelope, and the export with regenerated artifacts and a changeset. Every acceptance case the card names appears in ask-question.test.ts: limits, 1 vs 3 questions, 1 vs 5 options, duplicate labels, two recommended, legacy asked_which, and garbage → null.
  • Scope. 16 files, all inside the claim's surface (7217053229): the new module, the ai/index.ts export, its test, the generated baselines and references, the hand-edited dropped-refinements ledger rows, llms.txt, and one changeset. The two new ledger rows are declared, which is the reviewed line the ledger asks for. L2 ① judges them correct: neither superRefine has an arm in the closed projection list.
  • Changeset, read sentence by sentence (.changeset/37872-ask-question-envelope.md). @objectstack/spec minor fits an additive public surface. Each of the following is true against ask-question.zod.ts at this head:
    • the named exports and their …Parsed pairs;
    • one or two questions, two to four options, labels unique within a question, at most one recommended;
    • the limits are exported as ASK_QUESTION_LIMITS, and every level is closed;
    • parseAskQuestionEnvelope answers the envelope or null;
    • legacy ask_which is read as one question and held to the same limits;
    • "nothing produces the new envelope yet".
      The reference pages under content/docs/references/ai/ are generated, and check:generated is green.
  • Test and gate evidence. The os-dev-report (7218700562) runs the 17-case file plus src/ai + src/shared and the ADR-0122 pin: 65 files, 1634 tests. Its refusal legs assert zod's issue code and path, so they are not just failures on a null. The delta from the first head (3ce827f5 → a8d843b3) changes only the ledger's two header totals (279→281, 1223→1225), which is the Test Core 2/10 red it fixed. Check-runs at this head: 60 success, 10 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are both green. No dogfood battery is owed.
  • Skills-docs: none. True: the envelope is a tool-result wire shape, and no metadata author writes it.

Accepted deviations and carriers

  • L2 nits N1–N4 are accepted with no head move. N1 is three sentences that describe the console reader before it exists (reply describe, module JSDoc, ASK_QUESTION_LIMITS JSDoc). It closes in Q2b 问题卡专题 Q2b:问题卡接进对话(findPendingQuestion、顶替输入框且不卸载、对话内摘要、隐藏重新生成、跳过记号) #37874, which must either build that reader as described or change the describe in its own PR.
  • E1 (L2 ③, escalated, not graded). Whether real ask_which readings fit 24 characters and 2–4 entries cannot be measured from this repo. It goes to seat epic:#5027#1 (cloud) and must be answered before Q2b claims topic acceptance 1. It does not gate this PR: an over-limit legacy result stays text, as it is today, and loosening the legacy arm later is additive.
  • The os-dev-report's head_sha and served_tier are null. Its readings name a8d843b3 in prose, which matches this head.
  • The body's Verification bullet still says gates are "still running". The thread patches the body on this head, which is a prose-only change.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-27T13:02Z · zone o3-askai (seat card thread, Q1 of topic #37871)
Head-sha: a8d843b398bb67c6bbac2719943e599cf8f9b01c

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 13:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46003823620 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (6/10) — 失败步骤: Run this shard's tests

    @objectstack/lint:test:  FAIL  src/authored-site-expression.test.ts > sharedValidatorRunByCaller reaches no gate run (#32872) > is spelled in code only where it is declared, read, and passed by this e
      ↳ 失败原因: @objectstack/lint:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/authored-site-expression.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 5 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Re-queue · 2026-11-27T13:32Z · zone o3-askai
Head-sha: a8d843b398bb67c6bbac2719943e599cf8f9b01c (unchanged; landing record 7218989303 stands)

  • Dequeued at 13:30Z for CI_FAILURE in merge-group run 46003823620: one test, packages/lint/src/authored-site-expression.test.ts:402 ("sharedValidatorRunByCaller reaches no gate run (mcp: validate_expression still answers ok where the validation/formula gate refuses (null-guard, undeclared hop field, and the rest of the gate's private passes) #32872) › is spelled in code only where it is declared, read, and passed by this entry"), timed out at 5000 ms (job 140523275356, Test Core 6/10). It is a whole-tree spelling scan in @objectstack/lint; this PR adds packages/spec/src/ai/ask-question.zod.ts and touches no lint source or that identifier. Every other job in the run passed; the same test passed on this PR's own head (Test Core green, 62 success).
  • One re-queue, as allowed for a job; if it times out again in the queue it is treated as real and taken up as a finding against the test's budget, not re-tried.
  • Action: auto-merge (queue) re-armed.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit b316afa Nov 27, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-8w7xfx branch November 27, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ai size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

问题卡专题 Q1:spec 问题信封(AskQuestionEnvelope、兼容旧 asked_which、parseAskQuestionEnvelope)

2 participants