Skip to content

repo gates: check-closed-ceremony-text dies with ENOBUFS (git ls-files output past the 1 MiB default buffer) — every PR that adds a path under packages/, content/docs/ or .changeset/ now fails Lint & Repo Gates #39025

Description

@objectstack-fleet

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Filing gate: ① (a defect with a named landing point and a measured reproduction) · Source: fleet — measured by seat repo:objectstack@os-justin when PR #39020 was dequeued from the merge queue (CI_FAILURE, 2026-12-02 ~03:31Z). ⛔ Not a claim.

维护者速读

  • 出了什么事:仓库检查脚本 check-closed-ceremony-text.mjs 用 git ls-files 列出 packages/、content/docs/、.changeset/ 下的所有文件,Node 默认只给 1 MiB 输出缓冲。main 现在正好卡在 1 MiB 下面 11 个字节,任何新增一个文件(哪怕一个 changeset)的 PR 都会让这项检查崩掉,Lint & Repo Gates 变红、被合并队列踢出。
  • 影响:几乎所有 PR(几乎都带 changeset),全车队。
  • 修法:给这类 execFileSync('git', …) 调用显式加大 maxBuffer(先例:tooling(pm): dispatch-gates git maxBuffer for the merged tree; register matchers proven on the nested ui/ rows (4b PR 1, inert) #25732 给 dispatch-gates 加过)。
  • 要你做什么:无。

Measured

Expected

check-closed-ceremony-text.mjs (and every gate script whose git output scales with the tree) passes an explicit maxBuffer large enough for the tree's growth, or uses one shared helper; a self-test pins a listing above 1 MiB.

Dedupe: ENOBUFS open issues: 0; maxBuffer open PRs: none listed. #25732 (closed) is the precedent, not this script.

Grading: area:fleet · Bug · Suggested-grade: p1 (blocks the merge queue for every PR that adds a file; main is 11 bytes from red) · reach: measured in the merge queue.

Activity

  1. added
    bug
    priority:p1
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop round 1
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39025-gate-git-maxbuffer
    Worktree: objectstack-issue-39025
    Domain: domain:devx
    Seat: repo:objectstack@os-justin
    File surface: scripts/check-closed-ceremony-text.mjs, and the other gate scripts whose git listing scales with the tree and passes no maxBuffer (reason: the same defect, measured per site; the dev names each file in the report before editing it), plus a shared helper beside them if one exists (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the repo's gate script scripts/check-closed-ceremony-text.mjs (objectstack) reads a tree-sized git listing into Node's 1 MiB default buffer | precedent fix for dispatch-gates (#25732) | every PR that adds a path under packages/, content/docs/ or .changeset/; measured on PR #39020's queue group
    Thread-read: none
    Premise: holds (origin/main 444dce6, 2026-12-02T03:37Z: the listing is 1,048,565 bytes, 11 under the 1 MiB default; PR #39020's group crossed it and died with ENOBUFS)
    Serial constraints cleared: no in-flight claim names these paths (check-handover --inflight, 2026-12-02T03:37Z). Taken by this seat although area:fleet: it blocks this seat's PR #39020 and every PR in the queue (the blocker ranks with what it blocks).

  3. added
    pm:dispatched
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 39025,
      "status": "done",
      "branch": "claude/issue-39025-gate-git-maxbuffer",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39027",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "The premise held at origin/main 444dce61f2: the ls-files listing in check-closed-ceremony-text measured 1,048,565 bytes. trackedFiles() now passes maxBuffer GIT_MAX_BUFFER_BYTES (64 MiB, the same name and value as the dispatch-gates precedent; the repo has no shared helper) and takes cwd/env for a fixture. The sweep found one more tree-scaled read: the sh() wrapper in scripts/docs-audit/affected-docs.mjs runs git ls-files packages (953,424 bytes) in --self-test (check:docs-audit-scope) with execSync's 1 MiB default, and its git show readers caught ENOBUFS as 'file absent'. That wrapper got the same ceiling, declared in the hoisted-constants block to avoid the self-test TDZ. Every other git spawn under scripts/ without maxBuffer reads a fixture repo, a small fixed-path listing (each measured; the largest is 78,763 bytes) or a diff-scaled listing; the PR body names each one. Head is 4b802eaf2b.",
      "tests": "At 4b802eaf2b: check-closed-ceremony-text --self-test reports 38 assertion(s) passed. The new cases build a 16,000-path index-only fixture of about 1.3 MB; the CONTROL at the default buffer gets ENOBUFS, and trackedFiles must return every path, first and last included. affected-docs --self-test reports 607 cases pass; the new cases print 2 MiB from a child, the CONTROL execSync gets ENOBUFS, and sh() must return 2097152 bytes. Ablation (maxBuffer deleted on disk, then restored from HEAD): check-closed-ceremony-text goes '2 of 38 assertion(s) FAILED', exit 1; affected-docs goes 'sh() reads stdout past ... got \"ENOBUFS\"', exit 1. git status was clean after the restore.",
      "gates": "Local subset at 4b802eaf2b from dispatch-gates --commands (36 families): 35 exit 0, among them check:closed-ceremony-text (6622 files, clean), check:docs-audit-scope, check:nul-bytes, check:entry-guard, check:scripts-symbol-anchors, check-self-test-wired and check:pnpm-flag-spellings and check:pnpm-filter-targets. NOT MEASURED: check:pm-dispatch-gates, which exited 124 at the local 280 s per-command timeout; CI owns it. --ran reconciliation: 36 derived, 35 run, 1 NOT-MEASURED, 0 UNRUN. check-governed-merges --branch: 0 of 2 paths governed, 95 changed lines. PR check-runs were not yet concluded when this report was written; CI convergence belongs to the PM.",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: pr_create (draft #39027, labels skip-changeset, assignees os-justin) through fleet-write dispatch, plus this os-dev-report comment on #39025 through post-stamped.mjs. Also one git push (not REST).",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed: the git show readers in affected-docs.mjs map every failure (not only ENOBUFS) to 'absent'; this PR only removes the size trigger. Recorded in the PR's Acceptance notes."]
    }
  5. added
    domain:devx
    on Dec 2, 2026
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Landed 2026-12-02T04:44Z: PR #39027 merged (merge commit c748e7dfd6); this card closed by its Fixes. check-closed-ceremony-text.mjs and scripts/docs-audit/affected-docs.mjs now read their tree-scaled git listings with a 64 MiB maxBuffer (the dispatch-gates precedent of #25732); the other 19 git spawns under scripts/ were measured and left (fixtures, small fixed listings, diff-scaled). PRs that add a path no longer die with ENOBUFS in Lint · repo & tooling gates. pm:dispatched removed in this stroke.

  7. removed
    pm:dispatched
    on Dec 2, 2026
  8. added 4 commits that reference this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetbugdomain:devxpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions