Skip to content

pm-dispatch SKILL structural optimization: role-split loading, issue-ID removal (lessons distilled in place), probe-first startup (maintainer-directed) #7885

Closed

Description

@os-zhuang

Filed by the skills seat (session session_012Gg6rMAti8ZaueWb6BRsDn) on the maintainer's instruction, skills-seat PM session chat, 2026-08-12. Direct routing under the 2026-08-10 standing authorization (maintainer-directed cards are routed by the handling PM session; provenance below).

Provenance (maintainer, verbatim, untranslated)

我开了4个项目经理,还没开始干活,5小时额度就用掉了 33% 。你评估一下项目经理的skills 是不是应该优化。

我之前看到有很多历史的 issue id,是不是没有意义并且反而浪费时间。

立一张结构卡,我觉的 处理 issue 时犯的错应该总结成经验,保留 issue id没有意义,如果ai去查原始issue,得不偿失。

还有我觉得现有的项目经理 skills 应该大幅简化,只需要说原则,不需要写细节。

The third quote rules the ID question: incident learnings are distilled into the rules themselves as self-contained lessons; issue IDs carry no value in the skill text; an AI dereferencing original issues costs more than it returns. The fourth quote (2026-08-12, later the same session) supersedes the earlier ~50–70% role-split compression target: the rewrite target is a principles-only text — state the principles, drop the procedural detail.

Measured baseline (origin/main, 2026-08-12)

  • SKILL.md: 2568 lines, 118,324 chars (~33.7k CJK + ~84.6k ASCII) ≈ ~59k tokens, loaded in full by every PM session at start.
  • Issue-ID citations in SKILL.md: 370 mentions, 223 unique, on 263 of 2568 lines.
  • references/incidents.md: 1517 lines of ID-keyed narratives (on-demand load).
  • Startup protocol reads per seat: ~50–100k tokens measured; four concurrent seats share no cache ⇒ ~150k input per seat before its first dispatch — consistent with the observed "33% of the 5-hour window before any work".

Scope — three deltas, one PR chain (design round held jointly with #7899's)

1. Principles-only drastic simplification (per the fourth ruling). Rewrite SKILL.md as principles + the state machine + role duties; delete procedural narration. Working division for the design round: a detail survives in prose only if it is (a) a genuine principle/invariant, (b) operational lookup data (e.g., the domain→package table), or (c) irreplaceable by mechanical enforcement — everything the hooks/gates/scripts already enforce (worktree guard, stash guard, ratchet, half-state checker) loses its prose twin. The earlier role-split-into-modules idea is downgraded to a design choice: at principles-only size a single small file with role sections may suffice, which is simpler than multi-file loading.

2. Issue-ID removal, lessons distilled in place (the third ruling). Every incident-backed rule rewritten to carry its lesson self-contained (failure mode + discipline + boundary), no issue-ID citations in operative text, no expectation that any reader dereferences an original issue. Design round settles: disposition of references/incidents.md (deprecated by the ruling; git history remains the archive), handling of maintainer-ruling provenance (dates + verbatim quotes carry authority; numbers go), and a mechanical guard so IDs do not creep back (lint for #[0-9]+ in skill operative text).

3. Probe-first startup. A seat's first action becomes one cheap lane-inventory query; empty queue + nothing in flight + nothing awaiting review ⇒ self-retire without further reads. Bounds idle-seat cost; delta 1 bounds the loaded-text cost.

Constraints

Process

Design round first, in the skills seat's 专题 channel (chat), outcomes recorded here. Implementation dispatches only after the design round closes and the blockers above land.

Activity

  1. added
    pm:blocked
    domain:skills
    on Aug 12, 2026
  2. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor

    Design round CLOSED (joint with #7899) — decisions recorded

    • Whose decision: the maintainer, skills-seat PM session chat (session_012Gg6rMAti8ZaueWb6BRsDn), 2026-08-12.
    • Verbatim: 「同意,还有 分诊 PM 我经常需要重新开,他的skills 如果写在文件中,那我创建 routines 时候是不是可以简化。」 (approving the four-point design proposal as recommended; the second half is a design input, resolved below)

    Decisions:

    Additional design outcome (from the Routine question): the rewrite adds explicit role entry arguments — /pm-dispatch triage / /pm-dispatch steward / /pm-dispatch <domain> / /pm-dispatch epic:#<n> — so a Routine's prompt collapses to a one-liner invoking the skill; all seat behavior versions in git and updates ship as skill PRs, never as Routine re-creation. Routine-creation constraints survive as principles: create from the claude.ai UI with the GitHub connector attached (in-session create_trigger yields tool-less fired sessions), pin the model in the UI, smoke-fire once and judge by GitHub-visible output. Combined with probe-first startup (delta 3), an idle fired seat costs one query and exits.

    Implementation remains blocked on the PR chain (#7794 → #7765 → #7767); dispatch follows the recorded constraints (claude-fable-5, draft PR, human merge).


    Generated by Claude Code

  3. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor

    Batch conversion — this card becomes the carrier of a consolidated dispatch (sweep pattern).

    Sequencing is the PM's call (named non-escalation class); the maintainer prompted the consolidation in the seat chat (2026-08-12, verbatim: 「还有哪几个 skills 任务,是不是可以合并派发」).

    Composition — one cloud dev session (model: claude-fable-5), two PRs:

    Blocked-by collapses to #7755 alone (PR #7794 in the merge queue at this writing — its landed deltas are input to the distillation). #7765 / #7767 / #7899 are hereby batch members, not independent dispatch candidates; #7903 rides the same dispatch. Both PRs are ADR-class: draft, human merge.


    Generated by Claude Code

  4. added
    pm:dispatched
    and removed
    pm:blocked
    on Aug 12, 2026
  5. self-assigned this
    on Aug 12, 2026
  6. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor

    Claim: PM loop round 3 (skills seat) — consolidated batch carrier
    Session: session_012Gg6rMAti8ZaueWb6BRsDn
    Branch: claude/issue-7885-pm-skill-principles-rewrite (PR₁) + claude/issue-7903-os-dev-principles (PR₂, same dev session, branches independently off origin/main)
    Worktree: cloud session — its own container and clone
    Domain: domain:skills
    File surface: .claude/skills/pm-dispatch/SKILL.md (whole-file rewrite) + .claude/skills/pm-dispatch/references/** (incidents.md deleted per design B; compile-surfaces disposition per design) + scripts/pm/** (ratchet lowering + ID-lint + design-C scripts, and their workflow wiring) + .claude/agents/os-dev.md (PR₂). Stop on breach; explain in the report.
    Container & model: L instruction-architecture batch, mode:cloud, model: claude-fable-5 (mandatory clause — no downward discretion)
    Serial constraints cleared: predecessor PR #7794 MERGED 2026-08-12 03:54Z (merge commit 2570c755 verified on origin/main; SKILL.md = 2568 lines, os-dev.md = 686 lines at that ref); zero open PRs touch pm-dispatch/** or os-dev.md (the one open skills-root PR, #7837, touches dogfood-verification/SKILL.md only — no file overlap). Batch members #7765 / #7767 / #7899 / #7903 absorbed per the composition comment above; #7885's Blocked-by: #7755 cleared by the merge.


    Generated by Claude Code

  7. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor

    Dispatched (PM loop round 3, skills seat): cloud dev session session_01W3v2G9dvcfxkC4NsZ4JCE9, model: claude-fable-5, created 2026-08-12 03:57Z, outcome branch claude/issue-7885-pm-skill-principles-rewrite (+ independent claude/issue-7903-os-dev-principles for PR₂). Dispatch prompt carries: the five 2026-08-12 rulings verbatim, the closed design decisions A–D + role entry args + probe-first, the writing standard with the no-silent-semantic-loss red line (hard cap 700 — stop and report rather than raise), gate work (ratchet lowering, ID-lint, frame-sync adaptation), the two named 机制假设 to falsify, and the ADR-class terminal (two draft PRs, human merge). Collection: os-dev-report comment here + both draft PRs; PM subscribes to each PR the moment it exists.


    Generated by Claude Code

  8. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor
    {
      "issue": 7885,
      "status": "done",
      "branch": "claude/issue-7885-pm-skill-principles-rewrite (PR1) + claude/issue-7903-os-dev-principles (PR2)",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/7936 (PR1, Fixes #7885 #7765 #7767 #7899) + https://github.com/objectstack-ai/objectstack/pull/7938 (PR2, Fixes #7903)",
      "premise_still_valid": true,
      "summary": "Consolidated batch delivered as two independent draft PRs, both ADR-class (human merge, no queue, no auto-merge). PR1: pm-dispatch SKILL.md rewritten principles-only, 2568 -> 686 lines (hard cap 700 respected; ~500 target reported as unreachable without dropping rules), zero issue-ID citations, role entry args (triage/steward/domain/epic:#n) + probe-first startup, per-role duty sections; #7765 outage readings + cross-wall cron-over-send_later timer discipline + recovery anchor authored directly as principles; #7767 lost Guardrails bullet meaning restored (decisions belong to the maintainer / never dispatch assigned or needs-user-decision issues); #7899 adjudication protocol (human floor incl. six ruled additions, four-lens unanimity gates, veto-window with auto-adjudicated ledger, fable-5 pass, flip-back clause) in the triage duty section. references/incidents.md deleted (git history is the archive); five on-demand fact tables under references/ (judgment call flagged in the PR body); ratchet lowered to 686; new check:pm-skill-id-lint wired beside the ratchet with a self-expiring exact-count waiver (81) for os-dev.md so the two PRs stay merge-order independent; os-regen four-step and label vocabulary mechanized into scripts/pm/; frame-sync self-test fixture adapted to the ID-free frame. PR2: os-dev.md 686 -> 356 lines (target ~200-300 missed for semantics, deviation itemized in PR body), zero IDs, model pin and frame anchors kept verbatim. The PR1 body carries the sweep checklist (one line per member card) and the dropped-with-rationale list for line-by-line review.",
      "tests": "Local gates all green in the PR1 worktree at head 0f1b8ae: check:pm-skill-ratchet (686/686 + self-test 5/5), check:pm-skill-id-lint (8 files clean + self-test 9/9), check:skill-frame-sync (self-test 12/12; 4 copies isomorphic), check:skill-frame-freshness (current with origin/main), check:doc-authoring (375 files clean), check:nul-bytes (7244 files, no control bytes), pnpm --filter @objectstack/lint check:doc-formula-expressions (dependency closure built first; 24/24 self-test, corpus clean). PR2 worktree at head 9f739ef: check:agent-model-declared, check:skill-frame-sync, check:nul-bytes, check:doc-authoring all green. Both branches merged up to origin/main 2daafe1. CI on both PRs: in_progress at report time - the PM owns convergence. skip-changeset applied to both PRs via read-then-union label writes and read back.",
      "open_questions": [
        { "question": "SKILL.md landed at 686 lines vs the ~500 target (cap 700 kept); os-dev.md at 356 vs ~200-300. Accept, or name sections allowed to lose semantics?", "options": ["A: accept - red line kept, ratchet tightens opportunistically from 686", "B: name specific sections to cut lossy in a follow-up"], "recommendation": "A, because every remaining line is a rule, a criterion, or lookup data; the dropped-list already covers everything judged non-semantic." },
        { "question": "Five new on-demand references/ fact tables (platform-readings, seat-post-protocol, landing-operations, dispatch-runbook, review-checklist) follow the compile-surfaces pattern; design A's single-file wording was read as banning role-split loading, not data tables. Fold any back?", "options": ["A: keep - hot file stays principles-only, tables load at the moment their operation happens", "B: fold named tables back (requires raising the 700 cap by ruling)"], "recommendation": "A, because the maintainer's cost complaint targets the always-loaded text, and the tables are exactly the at-that-moment detail the ruling said not to keep as prose." },
        { "question": "send_later-during-outage mechanism assumption (#7765): platform docs confirm run-once + self-disable after fire; retry behavior during an account-wide outage is undocumented and unmeasured. The cron-over-send_later rule is therefore worded as conservative design rationale. Sufficient, or schedule a live falsification test?", "options": ["A: sufficient - conservative wording, revisit only if a live wall contradicts it", "B: run a deliberate dead-window send_later experiment next wall event"], "recommendation": "A, because the experiment needs a real outage window and the conservative design is safe under either answer." }
      ],
      "out_of_scope_findings": []
    }

    Generated by Claude Code


    Generated by Claude Code

  9. os-zhuang commented on Aug 12, 2026

    @os-zhuang
    ContributorAuthor

    Review: ACCEPT — PR #7936 (PR₁) + PR #7938 (PR₂), both at the ADR-class terminal: awaiting a human merge

    Verified against GitHub and the branches themselves, not the report's claims:

    • File surfaces match the claim exactly. PR₁: 15 files — SKILL.md (−2510/+628), incidents.md deleted (−1587), 5 new on-demand fact tables + compile-surfaces ID-scrub, ratchet script (MAX_LINES 2568 → 686, shrink-only — a tightening, not a weakening), new check:pm-skill-id-lint (+ lint.yml wiring, package.json script), frame-sync fixture adaptation, and the two design-C scripts (os-regen-merge.sh with the commit-before-regen ordering as its core, ensure-pm-labels.sh with retired labels deliberately absent). PR₂: exactly one file, os-dev.md 686 → 357 lines.
    • Measured on the branches: SKILL.md = 686 lines, #[0-9]{3,} matches = 0; os-dev.md = 357 lines, matches = 0; model: opus frame anchor kept. Two zero-hit suspicions falsified per the negative-reading discipline: git stash is 0 in the OLD SKILL.md too (that rule lives in CLAUDE.md/hooks/os-dev — parity, not loss); queue governance is present in Chinese (合并队列 ×4, 队列 ×28 — the English grep was my artifact).
    • Sweep checklist verified per member: pm-dispatch SKILL: 5-hour usage-limit outages — queryable signals, cross-wall recovery timer (hourly cron, not send_later chains), wall-death playbook anchor #7765's substance is in §断粮与跨墙恢复 + references/platform-readings.md (readings, three blind spots, cron-over-send_later with the 机制假设 honestly worded as conservative design rationale — the docs-level verification the dispatch asked for); pm-dispatch SKILL Guardrails: dangling sentence fragment "someone else, never dispatch a needs-user-decision issue." — the bullet it belonged to is lost #7767's lost bullet is restored whole in §Guardrails (both prohibitions, plus the state-model rows carrying the second half); pm-dispatch step 8: triage-seat four-lens auto-adjudication of high-confidence decision cards — human floor for feature-add / ADR / protocol-change (maintainer-directed) #7899's protocol is in the triage duty section with both ruling quotes, the full human floor (incl. all six ruled additions), gates, veto-window ledger, and the fable-5 pass requirement.
    • Dropped-with-rationale list reviewed line by line (7 items): all are histories, superseded states, worked-example numbers, completed one-time actions, or navigation data — no standing rule lost; item 6 (counted-titles micro-rule) is acceptably dropped (no remaining anchor in the rewritten text).
    • CI: both PRs fully green — ESLint and TypeScript Type Check conclusions = success on each; PR₁'s Check Changeset success (skip-changeset applied at creation and read back).
    • Deviations accepted: 686 vs ~500 and 357 vs ~200–300 — the no-silent-semantic-loss red line was the binding constraint and both caps were respected; the ratchet now enforces 686 and tightens opportunistically.
    • Open questions Q1/Q2/Q3: seat recommends A / A / A (accept sizes; keep the on-demand fact tables — the always-loaded text is what the ruling priced, and the tables are the compile-surfaces pattern; conservative timer wording suffices). The maintainer's merge constitutes acceptance unless stated otherwise; any B is a follow-up card, not a blocker.
    • Form notes, no action: PR₁ sits ready-for-review rather than draft — ADR-class requires it visibly hanging, which it is; the human-merge constraint is unchanged. Effect of landing: every PM session's protocol load drops 2568 → 686 lines (~73%), os-dev sessions 686 → 357; Routine prompts can collapse to /pm-dispatch triage one-liners.

    Terminal state per the skills governance ruling: both PRs stay visibly hanging — the maintainer reviews and merges by hand. On landing, this card and #7765 / #7767 / #7899 close via PR₁, #7903 via PR₂; the batch dev session archives at that point.


    Generated by Claude Code

  10. removed
    pm:dispatched
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skills

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions