dsh-spec-gate
开发工具 活跃维护

dsh-spec-gate

boomzikazita/dsh-spec-gate

内置苏格拉底式访谈机制自动完成需求歧义评分,支持不可变Seed锁定,可在交付前拦截模糊需求,保障需求表述清晰、实现基准稳定,减少交付返工。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
9 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:boomzikazita/dsh-spec-gate
git clone https://github.com/boomzikazita/dsh-spec-gate.git
git clone git@github.com:boomzikazita/dsh-spec-gate.git
README.md main

dsh-spec-gate

Specification gate plugin for DeepSeek Harness (dsh). Turns vague requirements into locked, verifiable specifications before work begins — and refuses to hand over deliverables that don't meet them.

Borrows two ideas from Ouroboros, adapted for content production (writing / analysis / reports):

  • Interview gate: vague request → Socratic questioning to expose hidden assumptions → ambiguity score (converged at ≤ 0.2 before proceeding)
  • Acceptance gate: before delivery, mechanically check the draft against the locked Seed (keyword coverage, hard constraints, word count) + semantic alignment hint for the agent

Pairs with dsh-cybernetics: acceptance failures are written to the events log and feed the cybernetic feedback loop.

Tools

Tool Purpose
spec_interview_assess Ambiguity scoring: judge 8 dimensions (audience / purpose / format / data / scope / tone / acceptance / deadline) as clear / assumed / missing; returns score + questions to ask
spec_seed_build Lock an immutable Seed (goal / dimensions / acceptance criteria / constraints) after the interview converges; hash-keyed, never overwritten
spec_gate_evaluate Pre-delivery acceptance: mechanical checks against the Seed + AC coverage hints; fails closed

Install

dsh plugin --profile web add github:boomzikazita/dsh-spec-gate

Configure

# cordis.patch.yml (or the plugin's own bundle patch)
- insert:
    - id: spec-gate
      name: 'dsh-spec-gate'
      config:
        seedsDir: '~/.dsh/spec-gate/seeds'
        eventsLog: '~/.dsh/spec-gate/events.jsonl'
        convergeThreshold: 0.2
        hardGate: false  # block write/edit before a Seed exists (default off)

Usage Flow

  1. Vague request arrives → run spec_interview_assess → clarify missing dimensions until score ≤ 0.2
  2. Lock the spec: spec_seed_build → returns seed_id
  3. Produce the deliverable
  4. Verify: spec_gate_evaluate(draft, seed_id) → only hand over on pass

License

MIT