@sushanglewis/lincoln 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/.claude/agents/pm.md +2 -2
- package/framework/.claude/agents/security-reviewer.md +57 -0
- package/framework/.claude/harnesses/codex.yaml +31 -2
- package/framework/.claude/harnesses/command-map.yaml +4 -0
- package/framework/.claude/harnesses/opencode.yaml +33 -3
- package/framework/.claude/hooks/hooks.yaml +37 -0
- package/framework/.claude/hooks/on-session-start.sh +20 -5
- package/framework/.claude/hooks/on-stop.sh +22 -0
- package/framework/.claude/hooks/pre-tool-use.sh +22 -0
- package/framework/.claude/mcp/mcp.yaml +34 -0
- package/framework/.claude/policies/friction.yaml +18 -0
- package/framework/.claude/policies/security.yaml +46 -0
- package/framework/.claude/schemas/design-review-feedback.json +32 -0
- package/framework/.claude/schemas/stage-definition.schema.json +22 -0
- package/framework/.claude/skills/clarify-requirements/SKILL.md +1 -0
- package/framework/.claude/skills/clarify-requirements/prompts/main.md +44 -10
- package/framework/.claude/stages/clarify.yaml +3 -1
- package/framework/.claude/stages/phase-1-p0-design.yaml +44 -0
- package/framework/.claude/stages/phase-1-p0-implement.yaml +47 -0
- package/framework/.claude/stages/phase-2-p1-design.yaml +53 -0
- package/framework/.claude/stages/phase-2-p1-implement.yaml +45 -0
- package/framework/.claude/workflows/framework-self-improvement.yaml +100 -0
- package/framework/.claude/workflows/interview-to-knowledge.yaml +1 -0
- package/framework/.claude-plugin/marketplace.json +2 -2
- package/framework/.claude-plugin/plugin.json +1 -1
- package/framework/.version-bump.json +1 -1
- package/framework/README.en.md +24 -5
- package/framework/README.md +24 -5
- package/framework/RELEASE.md +22 -0
- package/framework/SKILL.md +15 -6
- package/framework/manifest.json +93 -37
- package/framework/scripts/check-harness-drift.sh +11 -1
- package/framework/scripts/lincoln-setup.py +17 -0
- package/framework/scripts/lincoln_condenser.py +110 -0
- package/framework/scripts/lincoln_friction.py +266 -0
- package/framework/scripts/lincoln_harness_adapter.py +185 -13
- package/framework/scripts/lincoln_mr_mine.py +146 -0
- package/framework/scripts/lincoln_recall.py +142 -0
- package/framework/scripts/lincoln_trace.py +119 -3
- package/framework/scripts/security_analyzer.py +234 -0
- package/framework/scripts/stage_loader.py +124 -1
- package/framework/tools/lincoln/package-lock.json +2 -2
- package/framework/tools/lincoln/package.json +1 -1
- package/framework/tools/lincoln-installer/package.json +6 -1
- package/package.json +6 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
schema_version: 3.0.0
|
|
2
|
+
id: phase-1-p0-design
|
|
3
|
+
name: Phase 1 P0 Design
|
|
4
|
+
description: 'Design Phase 1 / P0 recommendations from the LEW-70 research baseline:
|
|
5
|
+
|
|
6
|
+
SecurityAnalyzer + ConfirmationPolicy, harness distribution for
|
|
7
|
+
|
|
8
|
+
Claude Code/Codex/OpenCode, and declarative hook/MCP configuration.
|
|
9
|
+
|
|
10
|
+
'
|
|
11
|
+
prerequisite_stage: explore-opensource
|
|
12
|
+
next_stage: phase-1-p0-implement
|
|
13
|
+
human_gate: true
|
|
14
|
+
agent:
|
|
15
|
+
primary: lc-architect
|
|
16
|
+
reviewers:
|
|
17
|
+
- lc-engineer
|
|
18
|
+
handoff_to: lc-pm
|
|
19
|
+
skills:
|
|
20
|
+
required: []
|
|
21
|
+
optional: []
|
|
22
|
+
artifacts:
|
|
23
|
+
required:
|
|
24
|
+
- '{process_slug}/designs/phase-1-p0-harness-security-design.md'
|
|
25
|
+
context:
|
|
26
|
+
goal: 'Produce an approved design document for the highest-priority borrowable
|
|
27
|
+
|
|
28
|
+
patterns before any implementation PR is opened.
|
|
29
|
+
|
|
30
|
+
'
|
|
31
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
32
|
+
|
|
33
|
+
- human_gate 必须获得人类 PM 显式确认。
|
|
34
|
+
|
|
35
|
+
'
|
|
36
|
+
gates:
|
|
37
|
+
entry:
|
|
38
|
+
- check: previous_stage_completed
|
|
39
|
+
args:
|
|
40
|
+
- explore-opensource
|
|
41
|
+
exit:
|
|
42
|
+
- check: artifacts_present
|
|
43
|
+
workflows:
|
|
44
|
+
- framework-self-improvement
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
schema_version: 3.0.0
|
|
2
|
+
id: phase-1-p0-implement
|
|
3
|
+
name: Phase 1 P0 Implement
|
|
4
|
+
description: 'Implement Phase 1 / P0 recommendations from the approved design document.
|
|
5
|
+
|
|
6
|
+
'
|
|
7
|
+
prerequisite_stage: phase-1-p0-design
|
|
8
|
+
next_stage: phase-2-p1-design
|
|
9
|
+
human_gate: false
|
|
10
|
+
agent:
|
|
11
|
+
primary: lc-engineer
|
|
12
|
+
reviewers:
|
|
13
|
+
- lc-qa
|
|
14
|
+
handoff_to: lc-pm
|
|
15
|
+
skills:
|
|
16
|
+
required: []
|
|
17
|
+
optional: []
|
|
18
|
+
artifacts:
|
|
19
|
+
required:
|
|
20
|
+
- .claude/policies/security.yaml
|
|
21
|
+
- .claude/hooks/pre-tool-use.sh
|
|
22
|
+
- .claude/hooks/hooks.yaml
|
|
23
|
+
- .claude/mcp/mcp.yaml
|
|
24
|
+
- .claude/harnesses/codex.yaml
|
|
25
|
+
- .claude/harnesses/opencode.yaml
|
|
26
|
+
- scripts/security_analyzer.py
|
|
27
|
+
- scripts/lincoln_harness_adapter.py
|
|
28
|
+
- scripts/lincoln-setup.py
|
|
29
|
+
- scripts/check-harness-drift.sh
|
|
30
|
+
context:
|
|
31
|
+
goal: 'Implement the approved P0 design and verify with tests and static checks.
|
|
32
|
+
|
|
33
|
+
'
|
|
34
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
35
|
+
|
|
36
|
+
- 所有变更必须通过测试与 static-check.sh。
|
|
37
|
+
|
|
38
|
+
'
|
|
39
|
+
gates:
|
|
40
|
+
entry:
|
|
41
|
+
- check: previous_stage_completed
|
|
42
|
+
args:
|
|
43
|
+
- phase-1-p0-design
|
|
44
|
+
exit:
|
|
45
|
+
- check: artifacts_present
|
|
46
|
+
workflows:
|
|
47
|
+
- framework-self-improvement
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
schema_version: 3.0.0
|
|
2
|
+
id: phase-2-p1-design
|
|
3
|
+
name: Phase 2 P1 Design
|
|
4
|
+
description: 'Design Phase 2 / P1 recommendations from the LEW-70 research baseline:
|
|
5
|
+
|
|
6
|
+
friction-based learning + recall precheck, EventLog + Condenser,
|
|
7
|
+
|
|
8
|
+
skill marketplace + git caching, sub-agent delegation, and MR knowledge mining.
|
|
9
|
+
|
|
10
|
+
'
|
|
11
|
+
prerequisite_stage: phase-1-p0-implement
|
|
12
|
+
next_stage: phase-2-p1-implement
|
|
13
|
+
human_gate: true
|
|
14
|
+
agent:
|
|
15
|
+
primary: lc-architect
|
|
16
|
+
reviewers:
|
|
17
|
+
- lc-engineer
|
|
18
|
+
- lc-researcher
|
|
19
|
+
handoff_to: lc-pm
|
|
20
|
+
parallel_specialists:
|
|
21
|
+
- lc-architect
|
|
22
|
+
- lc-security-reviewer
|
|
23
|
+
merge_strategy: priority
|
|
24
|
+
output_schema: .claude/schemas/design-review-feedback.json
|
|
25
|
+
skills:
|
|
26
|
+
required: []
|
|
27
|
+
optional: []
|
|
28
|
+
artifacts:
|
|
29
|
+
required:
|
|
30
|
+
- '{process_slug}/designs/phase-2-p1-learning-eventlog-subagents-design.md'
|
|
31
|
+
context:
|
|
32
|
+
goal: 'Produce an approved design document for P1 borrowable patterns before
|
|
33
|
+
|
|
34
|
+
any implementation PR is opened.
|
|
35
|
+
|
|
36
|
+
'
|
|
37
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
38
|
+
|
|
39
|
+
- human_gate 必须获得人类 PM 显式确认。
|
|
40
|
+
|
|
41
|
+
- Lincoln 不自研底层执行器;所有设计必须适配 Claude Code / Codex / OpenCode。
|
|
42
|
+
|
|
43
|
+
'
|
|
44
|
+
gates:
|
|
45
|
+
entry:
|
|
46
|
+
- check: previous_stage_completed
|
|
47
|
+
args:
|
|
48
|
+
- phase-1-p0-implement
|
|
49
|
+
exit:
|
|
50
|
+
- check: artifacts_present
|
|
51
|
+
- check: human_approved
|
|
52
|
+
workflows:
|
|
53
|
+
- framework-self-improvement
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
schema_version: 3.0.0
|
|
2
|
+
id: phase-2-p1-implement
|
|
3
|
+
name: Phase 2 P1 Implement
|
|
4
|
+
description: 'Implement Phase 2 / P1 recommendations from the approved design document.
|
|
5
|
+
|
|
6
|
+
'
|
|
7
|
+
prerequisite_stage: phase-2-p1-design
|
|
8
|
+
next_stage: product-design-docs
|
|
9
|
+
human_gate: false
|
|
10
|
+
agent:
|
|
11
|
+
primary: lc-engineer
|
|
12
|
+
reviewers:
|
|
13
|
+
- lc-qa
|
|
14
|
+
handoff_to: lc-pm
|
|
15
|
+
skills:
|
|
16
|
+
required: []
|
|
17
|
+
optional: []
|
|
18
|
+
artifacts:
|
|
19
|
+
required:
|
|
20
|
+
- .claude/policies/friction.yaml
|
|
21
|
+
- .claude/schemas/design-review-feedback.json
|
|
22
|
+
- scripts/lincoln_friction.py
|
|
23
|
+
- scripts/lincoln_recall.py
|
|
24
|
+
- scripts/lincoln_condenser.py
|
|
25
|
+
- scripts/lincoln_mr_mine.py
|
|
26
|
+
- scripts/lincoln_trace.py
|
|
27
|
+
- scripts/stage_loader.py
|
|
28
|
+
context:
|
|
29
|
+
goal: 'Implement the approved P1 design and verify with tests and static checks.
|
|
30
|
+
|
|
31
|
+
'
|
|
32
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
33
|
+
|
|
34
|
+
- 所有变更必须通过测试与 static-check.sh。
|
|
35
|
+
|
|
36
|
+
'
|
|
37
|
+
gates:
|
|
38
|
+
entry:
|
|
39
|
+
- check: previous_stage_completed
|
|
40
|
+
args:
|
|
41
|
+
- phase-2-p1-design
|
|
42
|
+
exit:
|
|
43
|
+
- check: artifacts_present
|
|
44
|
+
workflows:
|
|
45
|
+
- framework-self-improvement
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
workflow:
|
|
2
|
+
name: framework-self-improvement
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: 持续改进 Lincoln 框架本身的工作流(安全门控、harness 分发、摩擦学习、事件追踪、子代理委托)
|
|
5
|
+
execution_mode: team
|
|
6
|
+
engine: everything-claude-code
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- id: workflow-router
|
|
10
|
+
name: 工作流路由
|
|
11
|
+
description: 会话开场引导后,选择最适合当前场景的工作流模板
|
|
12
|
+
action: lc-workflow-router
|
|
13
|
+
|
|
14
|
+
- id: clarify
|
|
15
|
+
name: 需求澄清
|
|
16
|
+
description: 与人类 PM 多轮澄清,形成统一需求文档
|
|
17
|
+
human_gate: true
|
|
18
|
+
action: clarify-requirements
|
|
19
|
+
artifacts:
|
|
20
|
+
- "{process_slug}/pages/docs/requirements.html"
|
|
21
|
+
exit_checks:
|
|
22
|
+
- check: requirements_has_background_problem_solution_acceptance
|
|
23
|
+
- check: human_approved
|
|
24
|
+
|
|
25
|
+
- id: explore-opensource
|
|
26
|
+
name: 开源方案探索
|
|
27
|
+
description: 调研可复用的开源方案并记录决策
|
|
28
|
+
action: lc-explore-opensource
|
|
29
|
+
artifacts:
|
|
30
|
+
- "{process_slug}/docs/research/{change_name}-oss-options.md"
|
|
31
|
+
exit_checks:
|
|
32
|
+
- check: oss_research_complete
|
|
33
|
+
|
|
34
|
+
- id: phase-1-p0-design
|
|
35
|
+
name: Phase 1 P0 设计
|
|
36
|
+
description: 设计 P0 安全门控与 harness 分发方案
|
|
37
|
+
human_gate: true
|
|
38
|
+
action: draft-product-design
|
|
39
|
+
artifacts:
|
|
40
|
+
- "{process_slug}/designs/phase-1-p0-harness-security-design.md"
|
|
41
|
+
exit_checks:
|
|
42
|
+
- check: design_docs_complete
|
|
43
|
+
- check: design_docs_human_approved
|
|
44
|
+
|
|
45
|
+
- id: phase-1-p0-implement
|
|
46
|
+
name: Phase 1 P0 实现
|
|
47
|
+
description: 实现 P0 安全门控与 harness 分发
|
|
48
|
+
action: implement
|
|
49
|
+
artifacts:
|
|
50
|
+
- ".claude/policies/security.yaml"
|
|
51
|
+
- ".claude/hooks/pre-tool-use.sh"
|
|
52
|
+
- ".claude/hooks/hooks.yaml"
|
|
53
|
+
- ".claude/mcp/mcp.yaml"
|
|
54
|
+
- ".claude/harnesses/codex.yaml"
|
|
55
|
+
- ".claude/harnesses/opencode.yaml"
|
|
56
|
+
- "scripts/security_analyzer.py"
|
|
57
|
+
- "scripts/lincoln_harness_adapter.py"
|
|
58
|
+
- "scripts/lincoln-setup.py"
|
|
59
|
+
- "scripts/check-harness-drift.sh"
|
|
60
|
+
exit_checks:
|
|
61
|
+
- check: artifacts_present
|
|
62
|
+
|
|
63
|
+
- id: phase-2-p1-design
|
|
64
|
+
name: Phase 2 P1 设计
|
|
65
|
+
description: 设计 P1 摩擦学习、事件追踪扩展、子代理委托与 MR 知识挖掘方案
|
|
66
|
+
human_gate: true
|
|
67
|
+
action: draft-product-design
|
|
68
|
+
artifacts:
|
|
69
|
+
- "{process_slug}/designs/phase-2-p1-learning-eventlog-subagents-design.md"
|
|
70
|
+
exit_checks:
|
|
71
|
+
- check: design_docs_complete
|
|
72
|
+
- check: design_docs_human_approved
|
|
73
|
+
|
|
74
|
+
- id: phase-2-p1-implement
|
|
75
|
+
name: Phase 2 P1 实现
|
|
76
|
+
description: 实现 P1 摩擦学习、事件追踪扩展、子代理委托与 MR 知识挖掘
|
|
77
|
+
action: implement
|
|
78
|
+
artifacts:
|
|
79
|
+
- ".claude/policies/friction.yaml"
|
|
80
|
+
- ".claude/schemas/design-review-feedback.json"
|
|
81
|
+
- "scripts/lincoln_friction.py"
|
|
82
|
+
- "scripts/lincoln_recall.py"
|
|
83
|
+
- "scripts/lincoln_condenser.py"
|
|
84
|
+
- "scripts/lincoln_mr_mine.py"
|
|
85
|
+
- "scripts/lincoln_trace.py"
|
|
86
|
+
- "scripts/stage_loader.py"
|
|
87
|
+
exit_checks:
|
|
88
|
+
- check: artifacts_present
|
|
89
|
+
|
|
90
|
+
- id: sync-knowledge
|
|
91
|
+
name: 同步到知识库
|
|
92
|
+
description: 将业务与技术知识沉淀到 Obsidian vault
|
|
93
|
+
trigger: on_pr_merge
|
|
94
|
+
action: sync-to-knowledge
|
|
95
|
+
artifacts:
|
|
96
|
+
- "knowledge/03-features/{feature_slug}.md"
|
|
97
|
+
exit_checks:
|
|
98
|
+
- check: feature_doc_has_business_and_technical_sections
|
|
99
|
+
- check: feature_doc_has_links
|
|
100
|
+
- check: no_conflict_with_existing_knowledge
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{
|
|
10
10
|
"name": "lincoln",
|
|
11
11
|
"description": "AI-Native product R&D collaboration system for Conductor + Claude Code. Orchestrates stages, gates, artifacts, skills, and roles across product, design, and engineering into a repeatable workflow from recordings to GitHub Issues to Obsidian knowledge base.",
|
|
12
|
-
"version": "1.
|
|
12
|
+
"version": "1.7.0",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "Lincoln contributors"
|
|
15
15
|
},
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
|
-
"version": "1.
|
|
31
|
+
"version": "1.7.0"
|
|
32
32
|
}
|
package/framework/README.en.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> [中文](README.md) | English
|
|
4
4
|
|
|
5
|
+
**TL;DR** — Lincoln is an AI-Native R&D workflow system that brings stage-driven discipline, human gates, and repeatable SOPs to Claude Code, Codex, and OpenCode — from requirements to shipped knowledge.
|
|
6
|
+
|
|
5
7
|
Lincoln is an AI-Native R&D workflow system spanning **IDEs, agent harnesses, code hosting, knowledge management, skills, plugins, and automation**. It runs on **stages** for rhythm, **gates** for quality, and **repeatable SOPs** as its backbone, chaining requirements clarification, product design, prototyping, TDD planning, OpenSpec proposals, task splitting, implementation, and knowledge-base distillation into one human-AI collaborative pipeline.
|
|
6
8
|
|
|
7
9
|
- **Whole lifecycle, not a point tool**: every stage has explicit role, skill, and artifact contracts — agents step in at the right moments instead of replacing human judgment.
|
|
@@ -10,9 +12,9 @@ Lincoln is an AI-Native R&D workflow system spanning **IDEs, agent harnesses, co
|
|
|
10
12
|
|
|
11
13
|
## Latest Release
|
|
12
14
|
|
|
13
|
-
[](RELEASE.md)
|
|
14
16
|
|
|
15
|
-
**v1.
|
|
17
|
+
**v1.7.0** is released: SecurityAnalyzer pre-tool-use gating, Trace 2.0 event log, session friction scoring and knowledge recall, plus multi-dimensional stakeholder analysis in the clarify stage.
|
|
16
18
|
|
|
17
19
|
See the full release notes in [RELEASE.md](RELEASE.md).
|
|
18
20
|
|
|
@@ -113,7 +115,11 @@ First time? Read [USAGE.md](USAGE.md) for the full installation and usage guide.
|
|
|
113
115
|
|
|
114
116
|
### Stage-Driven Workflow Engine
|
|
115
117
|
|
|
116
|
-
Each stage is defined in `.claude/stages/<stage-id>.yaml` with its role, skills, gates, and artifacts. The `workflow-stage.yaml` runtime state drives agent context injection, while Lincoln's stage loader handles stage validation, artifact recording, and gate advancement.
|
|
118
|
+
Each stage is defined in `.claude/stages/<stage-id>.yaml` with its role, skills, gates, and artifacts. The `workflow-stage.yaml` runtime state drives agent context injection, while Lincoln's stage loader handles stage validation, artifact recording, and gate advancement. `--render-stage` batch rendering generates all missing artifact pages declared by a stage in a single command.
|
|
119
|
+
|
|
120
|
+
### Artifact Traceability
|
|
121
|
+
|
|
122
|
+
Lincoln assigns stable IDs such as `feature/*`, `page/*`, `field/*`, and `doc/*` to requirements, pages, fields, documents, and other artifacts. Downstream stages trace upstream work by ID instead of guessing paths. To trace an artifact, just tell the Agent "Look up doc/requirement-001".
|
|
117
123
|
|
|
118
124
|
### Preset SOP Workflow Templates
|
|
119
125
|
|
|
@@ -128,14 +134,14 @@ Each stage is defined in `.claude/stages/<stage-id>.yaml` with its role, skills,
|
|
|
128
134
|
|
|
129
135
|
See [`.claude/workflows/README.md`](.claude/workflows/README.md) for the full template catalog.
|
|
130
136
|
|
|
131
|
-
### Issue Work Packages
|
|
137
|
+
### Markdown-First Issue Work Packages
|
|
132
138
|
|
|
133
139
|
Every requirement maps to one GitHub issue and one Lincoln feature branch. The `issue-<N>/` work package contains:
|
|
134
140
|
|
|
135
141
|
- `index.html` — human-facing portal aggregating stage status, navigation, and artifacts
|
|
136
142
|
- `workflow-stage.yaml` — machine-readable state and handoff protocol
|
|
137
143
|
- `documents.yaml` — artifact index and human-approval status
|
|
138
|
-
- `pages/docs/` —
|
|
144
|
+
- `pages/docs/` — pages for requirements, PRDs, designs, TDD plans; narrative docs are Markdown-first and can be authored as Markdown chapters with `mermaid` diagrams, rendered by the local `mermaid.min.js` runtime
|
|
139
145
|
- `pages/prototype/` — interactive HTML prototypes
|
|
140
146
|
- `handoffs/` — stage handoff documents
|
|
141
147
|
|
|
@@ -154,6 +160,7 @@ Lincoln is AI-Native — **you don't need to type terminal commands**. Describe
|
|
|
154
160
|
| List all active Lincoln branches | Lists stage status and blockers for every issue branch |
|
|
155
161
|
| Run benchmark | Generates a Lincoln session benchmark report |
|
|
156
162
|
| Start the PM research workflow | Enters the `pm-research` research chain |
|
|
163
|
+
| Look up doc/requirement-001 | Traces the artifact by stable ID |
|
|
157
164
|
|
|
158
165
|
More commands and usage details are in [USAGE.md](USAGE.md).
|
|
159
166
|
|
|
@@ -201,6 +208,18 @@ Before submitting a PR, please read:
|
|
|
201
208
|
- [OpenSpec docs](https://github.com/Fission-AI/openspec)
|
|
202
209
|
- [Obsidian WikiLinks](https://help.obsidian.md/Linking+notes+and+files/Internal+links)
|
|
203
210
|
|
|
211
|
+
## Release History
|
|
212
|
+
|
|
213
|
+
| Version | Date | Key capabilities |
|
|
214
|
+
|---|---|---|
|
|
215
|
+
| v1.7.0 | 2026-09-05 | SecurityAnalyzer gating; Trace 2.0 event log; friction scoring/knowledge recall/trace condensation/MR mining; parallel specialist delegation; stakeholder analysis model |
|
|
216
|
+
| v1.6.3 | 2026-08-15 | Markdown-first issue-package documents; `--render-stage` batch rendering; local `mermaid.min.js` runtime |
|
|
217
|
+
| v1.6.2 | 2026-08-12 | `lc-init-branch` reads global Lincoln templates |
|
|
218
|
+
| v1.6.1 | 2026-08-11 | `lc-one-id` artifact traceability; portal annotation alignment |
|
|
219
|
+
| v1.6.0 | 2026-08-06 | Global npm plugin model; `@sushanglewis/lincoln` CLI; release-on-merge automation |
|
|
220
|
+
|
|
221
|
+
See [RELEASE.md](RELEASE.md) for full release notes.
|
|
222
|
+
|
|
204
223
|
## License
|
|
205
224
|
|
|
206
225
|
Lincoln is released under the [MIT License](LICENSE), Copyright (c) 2026 苏尚lewis (sushanglewis).
|
package/framework/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> 中文 | [English](README.en.md)
|
|
4
4
|
|
|
5
|
+
**TL;DR** — Lincoln is an AI-Native R&D workflow system that brings stage-driven discipline, human gates, and repeatable SOPs to Claude Code, Codex, and OpenCode — from requirements to shipped knowledge.
|
|
6
|
+
|
|
5
7
|
Lincoln 是一个贯穿 **IDE、Agent Harness、代码托管、知识管理、技能、插件与自动化程序** 的 AI-Native 研发工作流体系。它以**阶段**为节奏、以**门控**为质量保障、以**可重复 SOP** 为骨架,把需求澄清、产品设计、原型、TDD 计划、OpenSpec 提案、任务拆分、研发实现和知识库沉淀串成一条可人机协作的流水线。
|
|
6
8
|
|
|
7
9
|
- **全流程,而非单点工具**:每个阶段都有明确的角色、技能与产物约定——Agent 在恰当的节点介入,而不是替代人的判断。
|
|
@@ -10,9 +12,9 @@ Lincoln 是一个贯穿 **IDE、Agent Harness、代码托管、知识管理、
|
|
|
10
12
|
|
|
11
13
|
## 最新版本
|
|
12
14
|
|
|
13
|
-
[](RELEASE.md)
|
|
14
16
|
|
|
15
|
-
**v1.
|
|
17
|
+
**v1.7.0** 已发布:新增 SecurityAnalyzer 安全门控、Trace 2.0 事件日志与会话摩擦学习/知识召回能力,clarify 阶段支持多维度相关者分析。
|
|
16
18
|
|
|
17
19
|
查看完整发布说明:[RELEASE.md](RELEASE.md)
|
|
18
20
|
|
|
@@ -113,7 +115,11 @@ lincoln migrate-project --yes # 确认迁移
|
|
|
113
115
|
|
|
114
116
|
### 阶段驱动的工作流引擎
|
|
115
117
|
|
|
116
|
-
每个阶段定义在 `.claude/stages/<stage-id>.yaml`,内含角色、可调用的技能、门控条件与产物要求。`workflow-stage.yaml` 作为运行时状态,由 Lincoln 的阶段加载器驱动阶段校验、产物记录与 gate
|
|
118
|
+
每个阶段定义在 `.claude/stages/<stage-id>.yaml`,内含角色、可调用的技能、门控条件与产物要求。`workflow-stage.yaml` 作为运行时状态,由 Lincoln 的阶段加载器驱动阶段校验、产物记录与 gate 推进。`--render-stage` 批量渲染可一次生成某阶段声明的所有缺失文档页面。
|
|
119
|
+
|
|
120
|
+
### 产物追溯
|
|
121
|
+
|
|
122
|
+
Lincoln 为需求、页面、字段、文档等产物分配 `feature/*`、`page/*`、`field/*`、`doc/*` 稳定 ID。下游阶段按 ID 追溯上游产物,避免路径猜测带来的漂移。需要追溯时,直接对 Agent 说「查一下 doc/需求-001」即可。
|
|
117
123
|
|
|
118
124
|
### 预设 SOP 工作流模板
|
|
119
125
|
|
|
@@ -128,14 +134,14 @@ lincoln migrate-project --yes # 确认迁移
|
|
|
128
134
|
|
|
129
135
|
完整模板说明见 [`.claude/workflows/README.md`](.claude/workflows/README.md)。
|
|
130
136
|
|
|
131
|
-
### Issue
|
|
137
|
+
### Markdown-first Issue 工作包
|
|
132
138
|
|
|
133
139
|
每个需求对应一个 GitHub issue 和一个 Lincoln feature 分支。工作包目录 `issue-<N>/` 包含:
|
|
134
140
|
|
|
135
141
|
- `index.html` — 人读门户,聚合阶段状态、导航与产物
|
|
136
142
|
- `workflow-stage.yaml` — 机器状态与 handoff 协议
|
|
137
143
|
- `documents.yaml` — 产物索引与 human 确认状态
|
|
138
|
-
- `pages/docs/` — 需求、PRD、设计、TDD
|
|
144
|
+
- `pages/docs/` — 需求、PRD、设计、TDD 计划等页面,叙事类文档采用 Markdown-first,可直接用 Markdown 章节和 `mermaid` 流程图编写,渲染时自动加载本地 `mermaid.min.js` 运行时
|
|
139
145
|
- `pages/prototype/` — 可交互原型 HTML 页面
|
|
140
146
|
- `handoffs/` — 阶段交接文档
|
|
141
147
|
|
|
@@ -154,6 +160,7 @@ Lincoln 是 AI-Native 工作流——**你不需要在终端输入任何命令**
|
|
|
154
160
|
| 列出所有活跃分支 | 列出所有 issue 分支的阶段状态与等待对象 |
|
|
155
161
|
| 运行 benchmark | 生成 Lincoln 会话基准评测报告 |
|
|
156
162
|
| 启动 PM 研究工作流 | 进入 `pm-research` 研究链路 |
|
|
163
|
+
| 查一下 doc/需求-001 | 调用 `lc-one-id` 按稳定 ID 追溯产物 |
|
|
157
164
|
|
|
158
165
|
更多命令与用法见 [USAGE.md](USAGE.md)。
|
|
159
166
|
|
|
@@ -201,6 +208,18 @@ Lincoln 的 `.claude/` 是开放的系统提示层,欢迎基于同一套元模
|
|
|
201
208
|
- [OpenSpec 文档](https://github.com/Fission-AI/openspec)
|
|
202
209
|
- [Obsidian WikiLinks](https://help.obsidian.md/Linking+notes+and+files/Internal+links)
|
|
203
210
|
|
|
211
|
+
## 版本记录
|
|
212
|
+
|
|
213
|
+
| 版本 | 日期 | 关键能力 |
|
|
214
|
+
|---|---|---|
|
|
215
|
+
| v1.7.0 | 2026-09-05 | SecurityAnalyzer 安全门控;Trace 2.0 事件日志;摩擦学习/知识召回/Trace 浓缩/MR 挖掘;并行专家子代理委托;相关者分析模型 |
|
|
216
|
+
| v1.6.3 | 2026-08-15 | Markdown-first issue-package 文档;`--render-stage` 批量渲染;Mermaid 图表本地渲染 |
|
|
217
|
+
| v1.6.2 | 2026-08-12 | `lc-init-branch` 改读全局 Lincoln 模板 |
|
|
218
|
+
| v1.6.1 | 2026-08-11 | `lc-one-id` 产物追溯 skill;portal 注解对齐 |
|
|
219
|
+
| v1.6.0 | 2026-08-06 | 全局 npm 插件模型;`@sushanglewis/lincoln` CLI;release-on-merge 自动化 |
|
|
220
|
+
|
|
221
|
+
完整发布说明见 [RELEASE.md](RELEASE.md)。
|
|
222
|
+
|
|
204
223
|
## License
|
|
205
224
|
|
|
206
225
|
Lincoln 本体以 [MIT License](LICENSE) 发布,Copyright (c) 2026 苏尚lewis (sushanglewis)。
|
package/framework/RELEASE.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Lincoln v1.7.0 Release Notes
|
|
2
|
+
|
|
3
|
+
**Release date:** 2026-09-05
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- **SecurityAnalyzer pre-tool-use 安全门控 (#115)** — 新增 `scripts/security_analyzer.py` 与 `.claude/policies/security.yaml`:对 Bash 副作用命令(`rm -rf`、强推、危险重定向等)做风险分类与策略匹配,命中时要求人类确认后才允许执行;包含路径规范化与命令分段解析的防绕过修复。
|
|
8
|
+
- **Harness 分发能力翻转 (#115)** — hooks/skills 从默认关闭翻转为默认启用(opt-out);新增 `.claude/harnesses/hooks.yaml` 与 `.claude/harnesses/mcp.yaml` 声明式配置,`lincoln_harness_adapter.py` 为 codex/opencode 生成对应产物,保持三 harness 无漂移。
|
|
9
|
+
- **Trace 2.0 事件日志 (#115)** — Trace schema 升级到 2.0.0:阶段生命周期、gate 审批、产物记录、工作流完成等事件自动落盘到实例级 `.trace/`,支持 `node_id` 关联与后续审计分析。
|
|
10
|
+
- **P1 学习能力四件套 (#115)** — 会话结束时 `lincoln_friction.py` 对会话摩擦打分(`friction.yaml` 策略);会话开始时 `lincoln_recall.py` 按当前阶段召回相关知识;`lincoln_condenser.py` 对超长 trace 做浓缩摘要;`lincoln_mr_mine.py` 提供 GitHub PR/MR 模式挖掘 CLI。
|
|
11
|
+
- **并行专家子代理委托 (#115)** — stage 定义新增 `agent.parallel_specialists`、`merge_strategy`(priority/vote/consensus)与 `output_schema`,`stage_loader` 在阶段准入时校验委托配置;新增 `lc-security-reviewer` 安全审查角色与设计评审反馈 JSON schema。
|
|
12
|
+
- **framework-self-improvement 工作流 (#115)** — 注册 `phase-1-p0-design/implement`、`phase-2-p1-design/implement` 四个阶段,形成「调研 → 设计 → 实现 → 学习」的框架自我改进闭环,并接入 `lc-wf-framework-self-improvement` 命令。
|
|
13
|
+
- **多维度相关者分析模型 (#114)** — `clarify` 阶段新增 `stakeholders.html` 必需产物,`clarify-requirements` prompt 增加相关者识别/影响力-态度分析步骤,PM 角色职责同步更新。
|
|
14
|
+
|
|
15
|
+
## Migration Notes
|
|
16
|
+
|
|
17
|
+
- 全局插件用户升级:`npm update -g @sushanglewis/lincoln` 后重跑 `lincoln install --yes`,把新 hooks、安全策略与技能同步到 `~/.claude/`(以及 codex/opencode 对应目录)。
|
|
18
|
+
- 安全门控默认生效且为人类确认制(confirm_required),不是自动阻断;策略可在项目 `.claude/policies/security.yaml` 中按需调整。
|
|
19
|
+
- 无破坏性变更:现有 issue 工作包、`.lincoln.yaml` 激活方式与阶段协议均保持兼容。
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
1
23
|
# Lincoln v1.6.3 Release Notes
|
|
2
24
|
|
|
3
25
|
**Release date:** 2026-08-14
|
package/framework/SKILL.md
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Lincoln
|
|
3
|
-
description: Lincoln AI-Native R&D workflow system —
|
|
3
|
+
description: Lincoln AI-Native R&D workflow system — global npm plugin and agent harness templates
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Lincoln
|
|
7
7
|
|
|
8
|
-
After this skill is installed,
|
|
8
|
+
After this skill is installed, set up Lincoln globally on your machine:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
|
|
11
|
+
npm install -g @sushanglewis/lincoln
|
|
12
|
+
lincoln install --yes
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
`npm install -g` installs the CLI and bundled framework payload. `lincoln install --yes` syncs hooks, agents, skills, scripts, and the full runtime framework to `~/.claude/`, `~/.codex/`, and `~/.opencode/`.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
You can also target specific harnesses:
|
|
17
18
|
|
|
18
19
|
```bash
|
|
19
|
-
|
|
20
|
+
lincoln install --yes --harnesses claude-code,opencode
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To update an existing Lincoln installation while preserving your user data, run:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
lincoln update
|
|
20
27
|
```
|
|
21
28
|
|
|
22
29
|
Use `--dry-run` to preview changes or `--no-tui --format json` for scripted updates.
|
|
23
30
|
|
|
24
31
|
For the agent-mediated setup flow, ask your Agent to run `/lc-setup` instead.
|
|
32
|
+
|
|
33
|
+
> **Deprecated**: the old `npx lincoln-install` / `npx lincoln-update` wrappers are still present but no longer recommended. If your project previously used the vendored framework model, run `lincoln migrate-project --yes` to switch to the global plugin model.
|