Repository navigation
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Description
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Filing gate: ② follow-up out of #37658. The source is seat 5's contract record 7206884238 on PR #37716: nits N1 and N2, accepted as deviations in ACCEPT 7206892683, which sends both to one follow-up card. The owning area files it under the source card, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · Task · p3 · reach: the cause-chain parity tests in @objectstack/types, @objectstack/core and @objectstack/observability · evidence: read.
维护者速读
- 做什么:错误原因链的格式化代码在三个包里各有一份,测试用来防止三份走样;现在“某一份新增了词”和两个共用分支(空堆栈、经过非 Error 对象继续往下的原因链)不会被测试发现,补齐。
- 谁受益:维护日志代码的人,三份代码一旦不一致会立刻有测试变红。
- 不做会怎样:只改了其中一份时测试仍然全绿,三处日志输出悄悄不一致。
- 需要你做的:无。
What
- N1, the drift guard is one-directional. The parity fixtures are hand-copied lists. A qualifier or default word removed or changed in any copy reds parity, but one added to a single copy (
CONCATENATED_SECRET_QUALIFIERSorDEFAULT_REDACTED_WORDSinpackages/types,packages/coreorpackages/observability/src/loggers.ts) fails nothing. Make the guard two-directional, for example by asserting each copy's list equals the one exported list in@objectstack/types, or by deriving the fixture from that list. - N2, two shared branches have no fixture. Add parity fixtures, run against
faultCauseChainand both observability loggers (andObjectLoggerwhere core pins parity), for:- an
Errorcause with an emptystack(the stack-omitted branch ofcauseLine); - a chain that continues through a non-
Errorobject cause which itself carriescause.
- an
Acceptance
- Adding one word to any single copy, and nothing else, reds a test. Show it with an ablation in the PR body.
- Both N2 fixtures are green in every parity block, and an ablation of each branch in one copy reds its case.
- Test-only: no runtime source line changes.
Clause-②: no,Metadata-protocol: none, no changeset needed beyond what the gate asks.
Blocked-by: #37658 (PR #37716)
Parent: #37658
Size: XS
Dedupe (objectstack, is:issue is:open): "causeLine" 0 · "GLUED_QUALIFIERS" → only #37658 (source). No duplicate.
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:server · Task · priority:p3 ·
pm:blocked· size XS; rationale: make the cause-chain drift guard two-way and add the empty-stack and non-Error cases. Test hygiene: p3. Its named blocker #37658 is open, so it moves frompm:queuetopm:blocked.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie
Claim: PM loop round 1 · area o1-B (epic #36996 follow-ups; card from seat 5 knock 7207018454 on mailbox #37561) · 2026-11-27T03:02Z
Session:
session_016WV4cxBECSPtHxQMZDHSieAccount:
os-elon-muskBranch:
claude/area-o1B-37744Worktree:
objectstack-issue-37744Domain:
domain:serverArea: o1-B
Seat:
repo:objectstack#1File surface: the cause-chain parity test files in
packages/types,packages/coreandpackages/observability(test files only; new test files named for the card where no shared harness holds the parity block). ⛔ No runtime source line (stop on breach; explain in the report)Container & model: XS,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"; making the guard two-directional is a small design choice), effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (Task)
Thread-read: 7207152745
Premise: holds as filed, read not measured — source PR #37716 merged (
80855b22b0); the dev measures each N1/N2 gap red-first on main before adding the guard.Serial constraints cleared:
none: source PR #37716 merged; no open o1-B PR touches these packages' test files(overlap-check runs before each push)Pre-claim lane:
packages/types,packages/core,packages/observability⇒domain:server(file ownership only); test-only, ≤50 lines likely ⇒ in-area self-review or L1-a.Pre-claim deps: #37658 / PR #37716 merged ⇒
pm:blocked→pm:dispatched.Prior rulings read:
check-prior-rulings.mjs --card 37744 --terms CONCATENATED_SECRET_QUALIFIERS,DEFAULT_REDACTED_WORDS,causeLineover the three packages: surface grepruling350 ·maintainer98 ·⛔450 (whole-package glob; hits sit in unrelated core files); the dev reads hit lines in the files it edits.Fold-or-serial: not folded with #37745 (different mechanism and files).
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie
os-dev-report
{ "issue": 37744, "status": "done", "branch": "claude/area-o1B-37744", "pr": "https://github.com/objectstack-ai/objectstack/pull/37791", "head": "99ccb26c6e941b4ad0e284146a0e17a74bb714c6", "session": "session_016WV4cxBECSPtHxQMZDHSie", "premise_still_valid": true, "summary": "Test-only, 3 files, +122/-0, no runtime source line. N1: each package test reads its own copy's source (types server-fault-log.ts, core logger.ts, observability loggers.ts), extracts CONCATENATED_SECRET_QUALIFIERS and the default redact list (core: the inline ObjectLogger redact default, no named constant), asserts exactly one declaration and sorted equality with the fixture, so an added word now reds as a dropped one already did. Mechanism assumption falsified: none of the three packages exports either list, so a shared exported comparison list would need a source edit; each copy is pinned to its own package fixture instead. N2: empty-stack Error cause and non-Error object cause carrying its own cause added to the core parity block and both observability parity blocks, plus direct faultCauseChain assertions in types.", "tests": "head 99ccb26c: types src/server-fault-log-cause.test.ts 20/20 (main 15), core src/logger-error-cause.test.ts 24/24 (main 20), observability src/__tests__/loggers.test.ts 50/50 (main 44); typecheck types+core+observability VERDICT command-exit 0. Red-first on main 14908557: all six word-add mutations together, and all six N2 branch ablations together, stayed green (15/15, 20/20, 44/44). Ablations on new tests, one copy one edit each, restored by git restore, porcelain empty after each: qualifier +foo types/core/obs -> exit 1, 1 failed each (CONCATENATED_SECRET_QUALIFIERS); default +pin types/core/obs -> exit 1, 1 failed each (DEFAULT_REDACTED_WORDS / the default redact list); stack branch unconditional types/core/obs -> exit 1, failed 1/1/2 (empty-stack case); causeOf Error-only types/core/obs -> exit 1, failed 1/1/2 (object-carried cause case). Ablation ran on 99ccb26c's predecessor a438bb01 test bytes for core/obs (unchanged since) and types (only the source-lookup line changed after, re-run green).", "gates": "dispatch-gates --commands: 52 derived; --ran with exit codes: 52 accounted, 47 run exit 0, 5 NOT MEASURED, 0 UNRUN. NOT MEASURED exit 3 PREREQUISITE NOT MET: check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads, check:lean-entry-closure (need full build). NOT MEASURED exit 124 under local 240s cap: check:query-options-erasure, check:type-check-debt (repo-wide). overlap-check --branch=claude/area-o1B-37744: VERDICT clean exit 0 before push. PR check-runs: in_progress at report time, not awaited.", "line_budget": "+122/-0 over 3 test files; under the 3000 human-merge threshold", "files_changed": ["packages/types/src/server-fault-log-cause.test.ts", "packages/core/src/logger-error-cause.test.ts", "packages/observability/src/__tests__/loggers.test.ts"], "deviations": "Harness reminder asked for a model-named Co-Authored-By trailer and a robot-emoji PR footer; used the AGENTS.md model-free trailer pair and session-URL footer instead. Ablation results for types were measured before the import.meta to __dirname switch (a438bb01); the switch touches only the file lookup and the suite re-ran 20/20 on 99ccb26c.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (branch), fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees + labels skip-changeset, one dispatch), post-stamped os-dev-report comment on #37744", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted in PR Acceptance notes, not filed: the three test fixtures are still hand-copied, so a word added to one source copy together with its own test fixture stays green; closing that needs an exported shared list (runtime source change) or cross-package source reads"] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie
Close-out (area o1-B) · 2026-11-27T04:41Z
Delivered: PR #37791 merged: the cause-chain parity drift guard is two-directional (each of
@objectstack/types,@objectstack/coreand@objectstack/observabilitypins its own default redact words andCONCATENATED_SECRET_QUALIFIERSto an exact set, so a word added to one copy reds a test), and the empty-stack and non-Errorobject-cause branches have fixtures in every parity block. Test-only; no runtime line changed. L1 ACCEPT 7209649774; no contract review owed.State:
pm:dispatchedremoved with the close. Remaining: none on this card.