design-base-unattended
베이스 설계의 무인 팔 — 좌석·드라이버가 파견하면 베이스 문서의 토론·저장(드라이버면 동결까지)을, `--split` 이면 감사 뒤 분할 점검과 트래커 발행을 돈다 (질문은 park·정지 기록으로)
- License 许可
- MIT
- 所属仓库
- Nharu/cc-cmds
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- design-base-unattended
- notes
- 설계 흐름은 `design-discuss-unattended` 를 치환과 함께 읽어 돈다. 분할 단계의 멈춤 자리는 닫힌 다섯 개이고, 마지막 줄은 「베이스 분할을 마쳤습니다.」다.
- usage
- /cc-cmds:design-base-unattended <brief-or-doc-path> [<task-sentence>] | --split <문서>
- options
- [ { "kind": "positional", "name": "<brief-or-doc-path>", "summary": "좌석 파견: `docs/design-brief/{slug}.md` — `design-base` 좌석이 쓴 인터뷰 브리프. 드라이버 파견: 베이스 설계 문서 경로(메인 워크트리 절대 경로 — 아직 없을 수 있다).", "required": true, "parse_note": "`$ARGUMENTS`의 첫 `.md` 토큰. 어느 파견인지는 `CC_PIPELINE_RUN_ID` 의 유무로 가른다." }, { "kind": "positional", "name": "<task-sentence>", "summary": "드라이버 파견에서만 — 매니페스트 `## 의도` 의 첫 줄.", "required": false, "parse_note": "첫 `.md` 토큰 이후의 모든 내용. 좌석 파견과 `--split` 에서는 무시한다." }, { "kind": "flag", "name": "--split <문서>", "default": "off", "summary": "분할 단계 — 감사를 마친 베이스 문서를 다시 점검하고 매니페스트 `베이스 발행` 행대로 트래커에 발행하거나 문서만으로 기록한다. 드라이버 파견에서만 쓴다.", "parse_note": "`--split` 다음의 첫 `.md` 토큰이 베이스 문서 경로(메인 워크트리 절대 경로)다." } ]
- description
- 베이스 설계의 무인 팔 — 좌석·드라이버가 파견하면 베이스 문서의 토론·저장(드라이버면 동결까지)을, `--split` 이면 감사 뒤 분할 점검과 트래커 발행을 돈다 (질문은 park·정지 기록으로)
- when_to_use
- 사람이 직접 부르지 않는다. `design-base` 리드 좌석이 Step 2 승인 뒤 `claude -p` 로 파견하거나(다리), autopilot 이 베이스 런의 설계 단계와 분할 단계로 파견한다(스테이지)
- disable-model-invocation
- true
03 SKILL.md 正文
Run the unattended part of /cc-cmds:design-base in a headless session, without ever asking a human. In the design flow it is design-discuss-unattended with substitutions, saving (and, under driver dispatch, freezing) a base design document. In split mode it checks the audited document again and publishes its tickets as the run's frozen 베이스 발행 row says.
Team communication is English. Everything written for a person — the saved document, presentation.md, a park or halt record — is Korean.
This file is a separate arm so that "it has no human-question surface" is a whole-file predicate scripts/lint-unattended-surfaces.sh can check. The document grammar, the predicates, the issue-body rules and the registry are defined in ${CLAUDE_SKILL_DIR}/../_common/base-design.md; read it before Step 0.
Control-Flow Invariants
These rules MUST stay near the top of this file: post-compaction reattaches only the first ~5K tokens with priority.
CFI-U0 — There is no human-question surface
The question tool is absent from the Step 0 roster and from every step below, in both modes. Reaching a point that would have asked is a halt, never an improvised answer and never a silent default. This substitution is total and covers the shared team protocol: wherever _common/agent-team-protocol.md's reconcile ladder or its escalation cases terminate in a question to the user, this arm resolves that terminus to park. The protocol file is neither forked nor edited; this sentence is the substitution rule. Under seat dispatch park is the park record; under driver dispatch and in split mode it is the halt record.
The remaining invariants are those of ${CLAUDE_SKILL_DIR}/../design-discuss-unattended/SKILL.md — CFI-L1 through CFI-L4 — read and followed as written, with this arm in place of that one. In split mode CFI-L3 holds unchanged: no notification surface, no pipeline sidecar, a halt record only.
What is read from design-discuss-unattended
Read ${CLAUDE_SKILL_DIR}/../design-discuss-unattended/SKILL.md and take from it, unchanged: the discriminator CC_PIPELINE_RUN_ID and the two dispatchers; the park record and the halt record (driver dispatch) and their mechanics; the nine park sites and the seven driver-dispatch sites. One driver site is renamed here: slicing-unknown reads split-unrepairable — a base document has no slicing section, and the repair that can fail is the one of base-split.py check (Step 7U below).
Two rules are added to what is taken. This arm's own halt records write **스킬**: design-base-unattended, never the discuss arm's name the record template fixes — the gate reads that line to refuse the seat's answer to a base run's ladder halt. A resumed turn follows the two ladder branches of the discuss arm's ### Resumed turns (잔여로 두고 동결 and 골격 재검토) as written; in this arm the ladder halt's **추천** is always (없음), so both answers come from a person.
Per-grade disposition
The attended skill marks its ask points with a judgment grade (${CLAUDE_SKILL_DIR}/../_common/judgment-grade.md); this arm's disposition is per grade, as in design-discuss-unattended:
등급 0— no disposition is needed; an already-written rule determines the answer. The split mode's duplicate rule is one: a normalized-title equality with an open item stops the stage, and any other candidate is recorded and passed.등급 1— reachable only under driver dispatch, only as a Step 5U walkthrough disposition that does not change the skeleton, emitted as one bundled설계-쟁점judgment exactly asdesign-discuss-unattendeddescribes. A disposition that touches## 티켓 간 계약or## 티켓 분할is skeleton (below) and never reaches this grade.등급 2— the park record under seat dispatch, the halt record under driver dispatch and in split mode, then stop.
Workflow — design flow
Steps 0–2
Read Step 0, Step 1 and Step 2 of design-discuss-unattended and follow them, with two differences. Its re-entry exemption of the document-present guard and its Re-entered with a carried answer do not apply here: a halt of this design flow is not in the gate's re-entry table, so a person's answer to it comes back only by re-attaching the halted session, never as a card to a fresh one. Its Re-entered on a re-entry card applies here, with the guard's exemption for that card: a re-entry card (CC_PIPELINE_REENTRY_CARD) does not come from that table, and this flow re-enters on it at the same points. And the default roster under driver dispatch is this one, frozen here and read, never chosen.
- `설계 로스터` | 역할=architecture | 범위=the requirement's structure, contracts and interfaces across the affected surfaces, and the alternatives to them | 모델=opus
- `설계 로스터` | 역할=codebase-impact | 범위=the files, call sites, tests and conventions the design touches, read from the tree | 모델=opus
- `설계 로스터` | 역할=split | 범위=the ticket graph: contracts between tickets, dependency edges, owned and shared files per repository, critical path and parallel width, checked against _common/base-design.md predicates | 모델=opus
- `설계 로스터` | 역할=verification | 범위=settle the discussion's verifiable claims against the tree per _common/verification.md, pre-registering claim and expected result | 모델=sonnet
Under seat dispatch the brief's header names writer=design-base; reader=design-base-unattended; the version token cc-design-brief v1, owner-doc=, the eight blocks and the terminator are guarded exactly as design-discuss-unattended guards them. **슬라이스 수** reads 없음, and ## 요구사항 carries the publish line 발행: … as information for the document, never as an instruction to publish.
Steps 3–4: Interim body
Read ### Step 3 · Step 4: Interim body of design-discuss-unattended — which reads the base skill's Step 3 and Step 4 with its substitutions 1–6 — and add three:
- The document is a base document. Step 4's section list is replaced by the template of
base-design.md§1: the discriminator line,## 티켓 간 계약with one### 계약 C<n> —block per contract, and## 티켓 분할with its header fields, the base ticket and one### 티켓 T<n> —block per ticket.## 구현 슬라이싱and## 테스트 설계are not written. - Every member prompt carries the constraint "Decide nothing below the contract level: a ticket's implementation is its own later design." The split seat drafts the graph; the synthesis runs
base-split.py checkonce on the saved document and fixes what it reports before the save completes. - The skeleton grows. For Step 5U's skeleton predicate,
## 티켓 간 계약and## 티켓 분할are part of the skeleton beside the binding tier, read by section identity — a disposition that writes inside either fits no enumerated write form.
Step 5 (seat dispatch) · Steps 5U–6U (driver dispatch)
Read and follow design-discuss-unattended's Step 5, Step 5U and Step 6U as written.
Step 7U: Coherence, split check, residual ladder, freeze (driver dispatch)
Read design-discuss-unattended's Step 7U and follow its five jobs in order, with the second replaced:
- Split check. Run
"${CLAUDE_SKILL_DIR}/../../orchestrator/base-split.py" check <문서>throughgate.sh exec --surface 읽기, by path. Repair each reported violation in place and run it again until it exits 0. A repair that needs a decision the authors did not make — moving an owned file between tickets, removing an edge, accepting a depth above two without a reason the document already states — → haltsplit-unrepairable, with the check's output lines in관측 상세.
The freeze is unchanged and byte-identical: **상태**: 동결됨 on the status line, then the literal 「설계 문서를 동결했습니다.」 on its own line, the document path and its whole-file sha256.
Workflow — split mode (--split <문서>)
Driver dispatch only: CC_PIPELINE_RUN_ID, CC_PIPELINE_RUN_DIR, CC_PIPELINE_STAGE_ID and CC_PIPELINE_MANIFEST are read by name. Every Bash command goes through gate.sh exec; plugin scripts are called by path as argv0, never behind an interpreter. BS below is ${CLAUDE_SKILL_DIR}/../../orchestrator/base-split.py, OUT is ${CC_PIPELINE_RUN_DIR}/split/${CC_PIPELINE_STAGE_ID}/. --split reads both document kinds, **문서 종류**: 베이스 설계 and **문서 종류**: 티켓 배달 설계, and BS check adds the second kind's checks by itself; a ticket-delivery run comes here with the same steps. In this order:
-
Check.
BS check <문서>(--surface 읽기). Any violation → haltsplit-check-failed, the output lines in관측 상세. -
Open audit items. An entry of
## 미해결 이슈 / 트레이드오프at상태: 대기→ haltaudit-open-items, naming each entry. -
Publish row. Read the manifest's
## 인가for exactly one row- `베이스 발행` | 트래커=<github|clickup|없음> | 대상=<owner/name|목록 id|->— on aclickuprow optionally followed by| 원 티켓=<task id>— in the form ofbase-design.md§6. None, several, or one that does not fit that form → haltpublish-not-authorized. The row is the whole of the decision; the brief and the document's publish line are not read for it. It is an authorization only because it is frozen, and the freeze is the driver's: the row counts only when the manifest's binding digest serializes it, which the installed driver does when${CLAUDE_SKILL_DIR}/../../orchestrator/run.shnames the row literal in its binding set. Confirm that before reading the row as an authorization —grep -n -F '베이스 발행' <run.sh>throughgate.sh exec --surface 읽기— and when it finds nothing, haltpublish-not-authorizedstating that the installed driver does not freeze the row. A row the digest does not cover can be written after kickoff without moving the digest, so reading it would let an unfrozen line authorize tracker writes. -
Registry. When
docs/design-base/<slug>.tickets.mdexists beside the document, its headerdoc-sha256must equal the document's current whole-filesha256→ otherwise haltsplit-check-failed. -
Duplicates (
트래커other than없음). Before any tracker write, for the base ticket and then every ticket, runsimilar-items.py <github|clickup> --title '<발행 제목>' --body-file /dev/null --lexical-only --format json(by path from${CLAUDE_SKILL_DIR}/../../orchestrator/; GitHub with--repo <대상>, ClickUp with--list <대상>), declared--surface 읽기 --reach 협업. The body is empty on purpose: the plan's body files do not exist yet, and the duplicate rule is a title rule. A lookup that did not run to the end is not "no duplicate" (base-design.md§5): a non-zero exit, output that is not JSON, astatusother thansemantic/partial/lexical(unavailableincluded), or anoticesaying only part of the open items was compared → halttracker-errorwith the command's output verbatim in하네스 오류; nothing has been written. The same-title rule reads the JSON'ssame_title, nevercandidates:same_titleholds every fetched open item whose normalized title (NFC, whitespace folded, trimmed) equals the query title, counted over the whole corpus, whilecandidatesis only the lexical top and can leave a same-title item out (base-design.md§5). An item insame_title→ haltduplicate-ticketwith both titles and the item's reference; nothing has been written. This split's own items are not duplicates: on a resume the registry already holds rows for what an earlier attempt made, so skip the query for a base or ticket whose registry row is발행됨or발행중(step 7 settles a발행중row byresolve), and drop fromsame_titleandcandidatesany item whose reference equals a참조the registry records. Without this, every resume would stop on the tickets it made itself. Keep every other ticket candidate for step 7 (등급 0,base-design.md§5). A base-title candidate is not recorded — the registry's base row has no유사 후보field andrecordrefuses--similaron it — so keep it for step 9 instead. -
Plan (
트래커other than없음). On aclickuprow, read the list's fields first:similar-items.py clickup --lexical-only --list-fields <대상> [--task-fields <원 티켓>] --log "$OUT/fields.json"(by path from${CLAUDE_SKILL_DIR}/../../orchestrator/;--task-fieldsonly when the row carries원 티켓), declared--surface 트리밖쓰기 --reach 협업— it sends GETs only, asks no judgment model, and writes only--log. A non-zero exit, or a document whose"partial"istrue(itsreasonsays why:limit,budget,page-failed,task-failed, or a token problem), is a read that did not run to the end → halttracker-errorwith the summary line and thereasonverbatim in하네스 오류; nothing has been written. ThenBS plan <문서> --row '<행>' --out "$OUT", with--fields "$OUT/fields.json"on ClickUp — it writes the body files andplan.jsonl(and on ClickUpfields-plan.json) under the run directory and nothing on a tracker. Exit 3 → haltsplit-check-failedwith its reason line. -
Publish (
트래커other than없음). Take the entries ofplan.jsonlin order and run eachargvas given — this stage never builds or edits an argv — throughgate.sh exec --surface 외부상태변경 --reach 협업. A step-5 candidate of a ticket entry is recorded withBS record … --entry <id> --plan "$OUT/plan.jsonl" --similar '<참조 목록>'once its row exists; the base entry takes no--similar.create:BS record … --entry <id> --state 발행중first, then the argv, thenBS record … --entry <id> --state 발행됨 --ref <URL>from its output (--node-id <id>besides for ClickUp), before the next entry.edit·relate: the argv, thenBS record … --entry <id> --state 발행됨 --ref -.resolve: a row left발행중by an earlier attempt. Read the target with the step-5 command —similar-items.py <github|clickup> --title '<entry title>' --body-file /dev/null --lexical-only --format jsonwith the same target flag, declared--surface 읽기 --reach 협업— and count the JSON'ssame_title(the open items whose normalized title equals the entry'stitle, over the whole fetched corpus): one →--state 발행됨with its reference (--node-idbesides for ClickUp); none →--state 없음, and the next plan creates it again; several → halttracker-error. A read that did not run to the end, as in step 5, is not "none": write no--state 없음and halttracker-errorwith the output verbatim in하네스 오류.wait: runBS planagain after the entries before it are recorded, and continue with the new plan until it holds nowait.
Any tracker error, any non-zero exit of an argv, or a
recordrefusal → halttracker-error, the failing argv and its error verbatim in하네스 오류, and the registry path in관측 상세— the registry shows exactly how far the split got and is the idempotent ledger of the next attempt.On ClickUp, read the result back once the plan holds no
wait: run the step-6 lookup again with--task-fieldsfor the base's and every ticket's노드 idfrom the registry and--log "$OUT/fields.observed.json"(same declaration; a partial document → halttracker-erroras in step 6), thenBS check <문서> --observed "$OUT/fields.observed.json" --plan "$OUT/fields-plan.json" --row '<행>'(--surface 읽기). Exit 0 is the confirmation. Exit 1 → haltsplit-check-failedwith itsobserved <티켓> <필드> <계획> <관측>lines in관측 상세— do not write over a difference; the tickets exist, and which side is right is a person's call. -
No tracker.
트래커=없음→ in place of steps 5–7,BS record <문서> --row '<행>' --doc-only. Noplanruns and no tracker command is issued. -
Terminal. End with the line 「베이스 분할을 마쳤습니다.」 as the last line of the terminal message, preceded by the registry path. Ahead of the registry path, when step 5 ran: one line
베이스 제목 유사 후보: <참조 목록|없음>. Name no next step.
Split-mode sites are a closed set of five, all first-failure sites: split-check-failed · audit-open-items · publish-not-authorized · duplicate-ticket · tracker-error. The record is cc-pipeline-halt v1 of ${CLAUDE_SKILL_DIR}/../_common/pipeline-sidecar.md §4, at ${CC_PIPELINE_RUN_DIR}/halt/${CC_PIPELINE_STAGE_ID}.md, with the site after the step identifier in 스텝 (Split 7 / tracker-error); stop at the first site reached. Each site has one 분류: split-check-failed · publish-not-authorized · tracker-error → precondition-failed; audit-open-items · duplicate-ticket → gate-unanswerable (a person decides the open entry, or whether the candidate is the same work). One exception: an act the gate parked (exit 11) is gate-unanswerable at whichever site it stopped, with the gate's 도달 판정 in 관측 상세, so a refusal by the gate is never filed as a tracker error. Adding a site takes on the closed-set duty of design-discuss-unattended. A split halt that offers options carries a **선택지 리스크** line, after **추천 근거** (after the option block when there is neither), by §4's bullet on **선택지 리스크**: one risk per option from that site's facts — for duplicate-ticket, what a second ticket for the same work or a skipped ticket for different work costs. The halts this arm inherits from the discuss arm carry the line by that arm's rules.
Re-entered with a carried answer (split mode only). A fresh split session can be handed a person's answer to an earlier attempt's split halt: the routing shift's carry act writes an answer card and starts this mode with CC_PIPELINE_HALT_ANSWER set to its path and the ordinary --split prompt. When it is set:
- Read the card and check the digest. Its
**중단 기록**is the earlier attempt's halt record and**기록 다이제스트**that record's sha256. Computeshasum -a 256of the record and compare; a difference is a halt with분류: precondition-failednaming both values — the answer was given to other bytes. - Run steps 1–9 from the top, from what is on disk — the document, the registry and the run directory's
split/output — and apply the card's option at the site the record names as the answer to its**질문 문면**. The registry is idempotent on resume (steps 5 and 7), so the steps before that site redo nothing an earlier attempt finished. Do not ask that question again. There is no document-present exemption: this mode saves no document and has no such guard. - If the first site that fails is not the record's, or its question is not the record's, do not apply the answer: write a new halt record for the site reached now, with the card's path in its
관측 상세. - Never rewrite the carried record — the card's
**중단 기록**belongs to the earlier attempt, and the answer is bound to its digest. - A fixed answer is not an option. When the card's label is
원인 해소 후 재개and the carried record has no option line in its**선택지**:block, do not apply it as an option: follow the sentence on that fixed answer in the resume paragraph of${CLAUDE_SKILL_DIR}/../_common/pipeline-sidecar.md§4, which comes before items 2 and 3.
Re-entered on a re-entry card (split mode). When CC_PIPELINE_REENTRY_CARD names a card whose **스테이지** equals CC_PIPELINE_STAGE_ID, the gate moved a resume whose bound account ran out to this new session (${CLAUDE_SKILL_DIR}/../_common/pipeline-sidecar.md §4.2). Read it once, at entry; an answer card set too comes first. Run steps 1–9 from the top, from the document and the registry: the registry is the idempotent ledger of what the cut session published (step 5 skips a 발행됨 or 발행중 row's query, step 7's resolve settles a 발행중 row), so nothing published is published again. OUT is this attempt's own directory and is built afresh by step 6.
Constraints
- NO code modifications. The registry is written only by
BS record; the base document is never edited in split mode. - Every member prompt carries CFI-U0 verbatim, the no-banner sentence of
design-discuss-unattended's Constraints and its research paragraph verbatim. - Under driver dispatch and in split mode every Bash command goes through
gate.sh execwith the--reachdiscipline ofimplement-unattended's CFI-U7; call external commands directly, never insidebash -c; read pipeline variables by name, never with bareenv. - Never reach a notification surface; never write
pipeline-grantorpipeline-run.
Task: $ARGUMENTS