Skip to content

lint: the hook-body capability extractor's bound-handle look-back stops at a newline or line comment inside the binding, where the rule binds the handle #38777

Todo

Description

@objectstack-fleet

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Filed as a finding by seat repo:objectstack#3. It comes from the L2 delta record on PR #38755 (#38690 step 2, record 7281568831, nit N2). Not triaged and not claimed. Read from the two patterns; not run.

Class: b · Grade: p3 candidate · Reach: a direct caller of the published ./hook-body entry whose handler binds a handle across a newline or a line comment (const repo = ctx.api then .object('x'); on the next line). os build is not reached: it loads the config through bundleRequire, which reprints the handler on one line without comments.

What

  • The capability rule binds the handle across the line break.
  • The extractor's look-back stops at the newline, so the build-side inference reads less than the rule for this spelling.
  • The bound-handle receiver is not in the PARITY pin's enumeration, so nothing catches the gap.

Ask

Make the extractor's bound-handle look-back take the rule's own whitespace and comment step, add the spelling to the PARITY enumeration in both directions, and ablate it.

Likely lane: domain:spec (lint), area:build. Related: #38690, #38755, #37815.

Activity

  1. added
    finding
    on Nov 30, 2026
  2. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · Bug · p3 · domain:spec · area:build · pm:blocked · finding removed.
    Grading: area:build · Bug · Impeded, narrow (build-side inference reads less than the rule for one spelling) · reach: direct callers of the published ./hook-body entry only; os build reprints handlers on one line and is not reached · evidence: L2 delta on PR #38755 (7281568831, N2), read from the two patterns; not run.

    Blocked-by: #38755

  3. added
    bug
    domain:spec
    pm:blocked
    and removed
    finding
    on Nov 30, 2026
  4. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock · pm:blocked → pm:queue · grade unchanged.
    Its only blocker, PR #38755, merged at 2026-11-30T15:41:22Z, so the bound-handle look-back and the PARITY pin are on main.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 30, 2026
  6. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt

    Claim: PM loop round 1 · 2026-12-03T14:27Z
    Session: session_01Utp6Cb7xdFx3kJYWTmyntt
    Account: os-bill
    Branch: claude/issue-38777-bound-handle-lookback
    Worktree: objectstack-issue-38777
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    Area: build-1203
    File surface: packages/cli/src/utils/extract-hook-body.ts (the bound-handle look-back, ~:699), packages/cli/test/extract-hook-body-local-alias-38690.test.ts (the PARITY enumeration), packages/lint/src/validate-action-body-capabilities.ts (read; edit only if the rule side of the PARITY pin lives there), a patch changeset. Stop on any other breach and explain in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: medium
    Clause-②: no
    Metadata-protocol: none (seat reading: the extractor reads one more spelling the rule already binds; the dev re-measures whether any author-visible accept set moves and amends this line in the report if it does)
    Responsibility: the build-side capability extractor in packages/cli (objectstack) reads less than the lint rule for a handle bound across a newline or line comment; no platform path covers it; direct callers of the published ./hook-body entry only (os build reprints handlers on one line), rarely today.
    Thread-read: 7284065624
    Premise: holds — at origin/main 850d240 the look-back regex at extract-hook-body.ts:699 ends in [\w$.? \t]*$, which cannot cross a newline or a // comment.
    Pre-claim lane: packages/cli/** ⇒ domain:server (file ownership only; the card's domain:spec reads as the lint side).
    Pre-claim deps: Blocked-by: #38755 merged 2026-11-30 (unlock 7284065624).
    Prior rulings read: check-prior-rulings.mjs --card 38777: card thread 0 rulings; ADR hits are title-term matches only.
    Serial constraints cleared: check-handover.mjs --inflight --card=38777 → OVERLAP by directory only with this seat's #38174 (claim 7378145399 names packages/cli/src/commands/meta/register.ts, not these files). The dev runs overlap-check.mjs before each push.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt

    2026-12-03T14:48Z · Paused (zone build-1203). Maintainer order relayed by the seat: 「你为什么 p3 也派了,相关任务先暂停」 (Bill, project thread of seat repo:objectstack@os-bill, 2026-12-03 14:46Z). Work stopped; claim, assignee and branch left as they are.
    State: branch claude/issue-38777-bound-handle-lookback @ 089376ed pushed (the look-back fix); two changeset commits were local only and are not on the branch; no PR, no report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:specpm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions