Skip to content

skills: data-hooks.md teaches the hook/job js-body compile refusal (follow-up of PR #35713) #35714

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Filing gate: ③ an owed Skills-docs: follow-up, filed by the seat before ACCEPT of PR #35713 (card #34987), per SKILL.md's Skills-docs: follow-up owed rule · Source: fleet

What is owed

PR #35713 (card #34987) makes the save door refuse a hook or job js body that does not compile. The new rule ids are hook-body-does-not-compile and job-body-does-not-compile, sharing hookBodyFunctionExpression with the runtime's wrapper. Its PR body reads Metadata-protocol: narrowed and Clause-②: no (narrowing).

skills/objectstack-data/references/data-hooks.md, in its "Sandbox restrictions" section, teaches what a hook body may contain, and it names no compile check. An author who follows the skill today learns of a syntax error only when the hook first runs. After #35713 lands, the save is refused with a coded sentence. The skill should say so, and say it for job bodies too wherever the skill teaches them.

Done when

Reader: the domain:skills lane. Blocked-by: #34987 (PR #35713).

Grading: area:build · Task · docs follow-up of a narrowing change · evidence: PR #35713 body and data-hooks.md on origin/main.
Suggested grade: p2 (an owed Skills-docs follow-up of a narrowing change; authors meet the new refusal without the skill naming it).

Dedupe: repo:objectstack-ai/objectstack is:issue hook-body-does-not-compile → 0 hits; data-hooks.md compile → 0 open hits.

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills · pm:queue; rationale: area:build · Bug (once PR #35713 lands, shipped data-hooks.md omits the new save-door refusal of a hook or job js body that does not compile, hook-body-does-not-compile / job-body-does-not-compile) · builders, often → p2: the maintainer weighs skills changes as important (2026-11-20, 「adr和skills修改相对是重要的」). Claim after PR #35713 merges.

  2. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

    Claim: PM loop round 1 — area b1-D (published skills docs; maintainer 2026-11-20 04:26Z 「skills 都派」)
    Session: session_01L6bhgTRf6qBRCqPh4JZaZL
    Account: os-sales
    Branch: claude/issue-35714-data-hooks-compile-refusal
    Worktree: objectstack-issue-35714
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: b1-D
    File surface: skills/objectstack-data/references/data-hooks.md, one eval case in skills/objectstack-data/evals/hooks-security-seeds-datasources.json, the data-hooks.md row of scripts/check-skills-token-ratchet.mjs only if a measured remainder is left after deletion in the same file, one changeset or the skip-changeset label as the published-files reading decides
    Container & model: S, mode:subagent, model: claude-fable-5-2 — dispatch-gates --tier: MANDATORY, clause ① (skills/**, no one-line exit), effort: medium (S docs follow-up); governed register: skills/** is a governed surface, the area does not land it and hands the PR to the seat
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack — the published data skill teaches hook and job js bodies without the save-time compile refusal | PR #35713 (merged 5ecf9374) makes the save door refuse them under hook-body-does-not-compile and job-body-does-not-compile | app authors, mostly AI, who install the skills
    Thread-read: 7028132257
    Premise: holds — on origin/main a457b51 PR #35713 is merged (5ecf937); both rule ids are in the packages tree (8 and 9 files) and in no file under skills/; data-hooks.md "Sandbox restrictions" (line 331) names no compile check
    Serial constraints cleared: none — no open PR changes data-hooks.md or hooks-security-seeds-datasources.json (open skills PRs #35709, #35673, #35665, #35662 read by file list); the same eval file is also in the #35480 fold of this area, which queues behind this PR by overlap-check if the two meet textually
    Pre-claim lane: skills/objectstack-data/** → area b1-D (published skills text)
    Pre-claim deps: Blocked-by: #34987 closed; PR #35713 merged 5ecf937
    Prior rulings read: skills,data-hooks,teaches,hook,js-body,compile,refusal,follow-up → 82 hits; ADR-0119 D1, ADR-0138 D7, ADR-0139 D3, ADR-0144 D8, ADR-0148 D1, ADR-0148 D6, ADR-0150 D9; thread: none; repo: objectstack-ai/objectstack. None rules on this text.

    Fold answer: serial, not folded — the other open cards of this area teach different mechanisms in different files (seeds, filters, relationships, actions); one PR per file group.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL
    os-dev-report

    {
     "issue": 35714,
     "status": "done",
     "branch": "claude/issue-35714-data-hooks-compile-refusal",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35746",
     "session": "session_01L6bhgTRf6qBRCqPh4JZaZL",
     "premise_still_valid": true,
     "summary": "data-hooks.md 'Sandbox restrictions' gains one bullet teaching the js-body compile refusal: both rule ids, the (ctx) wrapper, the refused `const ctx = ctx.input || {};` and its repair, the doors, the regex-pattern warning. Paid by six same-file restatement cuts; the file ends 3 lines and 5 tokens shorter and the ceiling row is not moved. One eval case (id 33) appended at the end of hooks-security-seeds-datasources.json; a patch changeset for @objectstack/skills. One deliberate difference from the card and the dispatch wording: main refuses a JOB body at os validate / os build / os lint only, because no door publishes a job (allowRuntimeCreate: false, runtimeTypes: ['hook']); the skill says exactly that and does not say a job save is refused. No published skill teaches a job js body, so no second file was edited (stated in the PR body). Card assignee not written.",
     "tests": "Text only, no ablation. Facts read on main 598a34d04 with file:line in the PR body, and probed: tsx over validateHookAndJobBodyCompiles after `pnpm --filter @objectstack/spec build` (lock VERDICT command-exit 0): `const ctx = ctx.input || {};`, `let ctx;`, `let x = 1; let x = 2;`, a grammar error each give hook-body-does-not-compile + job-body-does-not-compile at error with \"(SyntaxError: Identifier 'ctx' has already been declared, line 1)\"; a duplicate-named-group regex gives both at warning; `const input = ctx.input || {};` and an expression body give no finding. Doors pinned on main by packages/lint/src/validate-hook-body-compiles.test.ts:137-160 (read, not re-run).",
     "gates": "head 03b9383fe. dispatch-gates --commands derived 48 families; --ran: '48 derived, 48 run, 0 NOT-MEASURED (claimed), 0 UNRUN', exit 0. Exit codes captured per command before any pipe: 45 exit 0, incl. check-skills-token-ratchet ('59 authored bundle file(s) within their ceilings') and its --self-test (104 cases), check:skill-refs ('10 generated files in sync'), check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:pm-skill-id-lint, check:doc-authoring, check:nul-bytes, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration. Outside the derivation, run as the dispatch asked: check:skill-docs exit 0 ('Skill docs in sync'), check:skill-served-sections exit 0. NOT MEASURED: check:doc-formula-expressions, check:dual-build-cjs-loads, check:lean-entry-closure (derived) and check:skill-examples (outside the derivation), reason: each exit 3 PREREQUISITE NOT MET, needs built packages the diff does not touch; declared to CI. overlap-check: 'VERDICT clean exit 0'. PR check-runs at report time: all in_progress or queued (Check Changeset, Governed Surface Queue Guard, the Lint and Type Check lanes, PR-body guards); none concluded.",
     "line_token_budget": {
      "data-hooks.md": {
       "lines": [
        888,
        885
       ],
       "bytes": [
        40467,
        40445
       ],
       "tokens": [
        10117,
        10112
       ],
       "ceiling": 10122,
       "ceiling_row_moved": false,
       "added_bytes": 691,
       "deleted_bytes": 713
      },
      "bundle_all_skills_md": {
       "lines": [
        18564,
        18561
       ],
       "bytes": [
        858354,
        858332
       ],
       "tokens_sum_of_per_file_ceil": [
        214612,
        214607
       ]
      },
      "bundle_SKILL_md_only": {
       "lines": [
        4861,
        4861
       ],
       "bytes": [
        256347,
        256347
       ]
      },
      "trees": "before 598a34d04, after 03b9383fe"
     },
     "files_changed": [
      "skills/objectstack-data/references/data-hooks.md (+14 -17)",
      "skills/objectstack-data/evals/hooks-security-seeds-datasources.json (+10 -0)",
      ".changeset/35714-data-hooks-body-compile-refusal.md (+15 -0)"
     ],
     "deviations": [
      "The new bullet is +9 lines against the suggested +8; the file is net -3 lines.",
      "The card was read with plain `gh api` GETs: `with-fleet.sh --read` refused in this shell (exit 3, the fleet identity cannot be minted here).",
      "Four gates NOT MEASURED locally (listed in gates), declared to CI.",
      "test:repo not run locally; declared to CI.",
      "The PR body carries the harness attribution comment on line 1 and the signed trailer as its last line, both as the dispatch ordered.",
      "Worktree base is origin/main 598a34d04, not a457b515: main had moved when the worktree was cut."
     ],
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, then POST /issues/35746/assignees; read-back identical, 10046 bytes, assignee os-sales, no labels sent); this os-dev-report comment (POST /issues/35714/comments via post-stamped.mjs). Plus git pushes of the branch.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed — data-hooks.md 'Registration Methods' item 3 says 'the layout both real hook modules in the repo use', a sentence about this repository in text that ships to customer projects; observation only, no wrong answer at a public door."
     ]
    }
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

    Claim: re-posted for a re-created branch — same seat, same session, same card; supersedes the branch named in claim 7030494506
    Session: session_01L6bhgTRf6qBRCqPh4JZaZL
    Account: os-sales
    Branch: claude/issue-35496-skills-docs-fold
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: b1-D

    Why: at the seat request this card is folded with four others of area b1-D into one pull, #35757, which closes it. The earlier pull for this card is closed as superseded; its commits are in #35757 unchanged. The five fold gates are answered on #35496 (comment 7031854511).

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

Metadata

Metadata

Assignees

Labels

area:builddomain:skillspm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions