ai-core-framework 0.3.0 → 0.4.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/README.md +5 -5
- package/agents/business-analyst.md +6 -6
- package/agents/developer.md +2 -2
- package/agents/qa-tester.md +3 -3
- package/agents/scrum-master.md +6 -6
- package/agents/tech-lead.md +4 -4
- package/docs/config/backlog.schema.json +1 -1
- package/docs/config/release.schema.json +1 -1
- package/docs/config/ticket.schema.json +1 -1
- package/package.json +1 -1
- package/rules/00-global-rules.md +9 -9
- package/rules/08-definition-of-done.md +1 -1
- package/scripts/ai-core.sh +8 -8
- package/scripts/generate-views.sh +2 -2
- package/scripts/log-user-request.sh +2 -2
- package/scripts/setup-project.sh +34 -26
- package/scripts/sync-platforms.sh +3 -3
- package/scripts/validate-audit-log.sh +1 -1
- package/scripts/validate-docs.sh +4 -4
- package/scripts/validate-permissions.sh +2 -2
- package/scripts/validate-state.sh +4 -4
- package/scripts/workflow.sh +9 -9
- package/skills/brainstorming/SKILL.md +1 -1
- package/skills/development-implement-task/SKILL.md +5 -5
- package/skills/meta-generate-views/SKILL.md +8 -8
- package/skills/meta-request-log/SKILL.md +4 -4
- package/skills/meta-sprint-report/SKILL.md +2 -2
- package/skills/meta-ticket-health/SKILL.md +1 -1
- package/skills/meta-validate-audit-log/SKILL.md +1 -1
- package/skills/meta-validate-permissions/SKILL.md +1 -1
- package/skills/meta-validate-state/SKILL.md +2 -2
- package/skills/planning-analyze-requirements/SKILL.md +7 -7
- package/skills/planning-backlog-status/SKILL.md +6 -6
- package/skills/planning-groom-ticket/SKILL.md +4 -4
- package/skills/planning-mark-ready/SKILL.md +2 -2
- package/skills/planning-plan-refactor/SKILL.md +2 -2
- package/skills/planning-plan-sprint/SKILL.md +3 -3
- package/skills/planning-prioritize-backlog/SKILL.md +2 -2
- package/skills/planning-write-plan/SKILL.md +1 -1
- package/skills/project-discover-codebase/SKILL.md +1 -1
- package/skills/project-setup-project/SKILL.md +7 -7
- package/skills/qa-bug-status/SKILL.md +1 -1
- package/skills/qa-report-bug/SKILL.md +7 -7
- package/skills/qa-smoke-test/SKILL.md +3 -3
- package/skills/qa-verify-fix/SKILL.md +3 -3
- package/skills/release-hotfix/SKILL.md +2 -2
- package/skills/release-release/SKILL.md +1 -1
- package/skills/release-rollback/SKILL.md +1 -1
- package/skills/review-create-pr/SKILL.md +2 -2
- package/skills/review-merge-pr/SKILL.md +1 -1
- package/skills/using-ai-core/SKILL.md +2 -3
- package/skills/verification-before-done/SKILL.md +1 -1
- package/templates/ci/ai-core-governance.yml +7 -7
- package/templates/pr/pull-request-template.md +1 -1
- package/templates/project/CODEOWNERS +1 -1
- package/templates/project/project-structure.yaml +16 -16
- package/workflows/bug-lifecycle.md +3 -3
- package/workflows/feature-lifecycle.md +2 -2
- package/workflows/sprint-lifecycle.md +2 -2
|
@@ -42,13 +42,12 @@ If command metadata and user intent conflict, explain the conflict and stop.
|
|
|
42
42
|
|
|
43
43
|
## Source Of Truth
|
|
44
44
|
|
|
45
|
-
- `docs/runtime
|
|
45
|
+
- `docs/runtime/` is AI Core runtime: state plus operational runtime docs.
|
|
46
46
|
- `docs/project/` is human-readable project and product documentation.
|
|
47
|
-
- `docs/runtime/` also contains operational AI Core documentation.
|
|
48
47
|
- `docs/config/` is project configuration.
|
|
49
48
|
- Root-level framework folders are portable framework code.
|
|
50
49
|
|
|
51
|
-
Keep backlog, tickets, releases, bugs, sprints, and audit records under `docs/runtime
|
|
50
|
+
Keep backlog, tickets, releases, bugs, sprints, and audit records under `docs/runtime/`. Generate human-readable summaries in `docs/runtime/views/` and keep longer narrative project/product docs in `docs/project/`.
|
|
52
51
|
|
|
53
52
|
## Guided Report
|
|
54
53
|
|
|
@@ -14,7 +14,7 @@ Before saying a workflow step is complete:
|
|
|
14
14
|
1. Identify what proves the claim.
|
|
15
15
|
2. Run or inspect the relevant verification.
|
|
16
16
|
3. Read the result.
|
|
17
|
-
4. Record evidence in `docs/runtime/
|
|
17
|
+
4. Record evidence in `docs/runtime/test-runs/`, `docs/runtime/verifications/`, or the ticket.
|
|
18
18
|
5. Only then report completion.
|
|
19
19
|
|
|
20
20
|
## Required Evidence
|
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
- "docs/config/**"
|
|
8
8
|
- "docs/**"
|
|
9
9
|
- "hooks/**"
|
|
10
|
-
- "docs/runtime
|
|
10
|
+
- "docs/runtime/**"
|
|
11
11
|
- "rules/**"
|
|
12
12
|
- "scripts/**"
|
|
13
13
|
- "skills/**"
|
|
@@ -21,7 +21,7 @@ on:
|
|
|
21
21
|
- "docs/config/**"
|
|
22
22
|
- "docs/**"
|
|
23
23
|
- "hooks/**"
|
|
24
|
-
- "docs/runtime
|
|
24
|
+
- "docs/runtime/**"
|
|
25
25
|
- "rules/**"
|
|
26
26
|
- "scripts/**"
|
|
27
27
|
- "skills/**"
|
|
@@ -55,23 +55,23 @@ jobs:
|
|
|
55
55
|
- name: Validate ticket schemas
|
|
56
56
|
run: |
|
|
57
57
|
set -e
|
|
58
|
-
for ticket in docs/runtime/
|
|
58
|
+
for ticket in docs/runtime/tickets/*.json; do
|
|
59
59
|
if [ ! -f "$ticket" ]; then continue; fi
|
|
60
60
|
ajv validate -s docs/config/ticket.schema.json -d "$ticket"
|
|
61
61
|
done
|
|
62
62
|
|
|
63
63
|
- name: Validate backlog schema
|
|
64
64
|
run: |
|
|
65
|
-
if [ ! -f "docs/runtime/
|
|
65
|
+
if [ ! -f "docs/runtime/backlog/backlog.json" ]; then
|
|
66
66
|
echo "No backlog file, skipping"
|
|
67
67
|
exit 0
|
|
68
68
|
fi
|
|
69
|
-
ajv validate -s docs/config/backlog.schema.json -d docs/runtime/
|
|
69
|
+
ajv validate -s docs/config/backlog.schema.json -d docs/runtime/backlog/backlog.json
|
|
70
70
|
|
|
71
71
|
- name: Validate release schemas
|
|
72
72
|
run: |
|
|
73
73
|
set -e
|
|
74
|
-
for release in docs/runtime/
|
|
74
|
+
for release in docs/runtime/releases/*.json; do
|
|
75
75
|
if [ ! -f "$release" ]; then continue; fi
|
|
76
76
|
ajv validate -s docs/config/release.schema.json -d "$release"
|
|
77
77
|
done
|
|
@@ -95,7 +95,7 @@ jobs:
|
|
|
95
95
|
- name: Check state history immutability
|
|
96
96
|
if: github.event_name == 'pull_request'
|
|
97
97
|
run: |
|
|
98
|
-
CHANGED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'docs/runtime/
|
|
98
|
+
CHANGED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'docs/runtime/tickets/*.json' || true)
|
|
99
99
|
if [ -z "$CHANGED" ]; then
|
|
100
100
|
echo "No ticket changes"
|
|
101
101
|
exit 0
|
|
@@ -11,7 +11,7 @@ Instructions for developer:
|
|
|
11
11
|
|
|
12
12
|
<!-- 1-3 sentences: what does this PR do and why? -->
|
|
13
13
|
|
|
14
|
-
**Ticket**: [TICKET-XXX](./docs/runtime/
|
|
14
|
+
**Ticket**: [TICKET-XXX](./docs/runtime/tickets/TICKET-XXX.json) <!-- Auto-filled by /create-pr -->
|
|
15
15
|
|
|
16
16
|
**Type**: <!-- feature | bugfix | hotfix | refactor | chore | docs -->
|
|
17
17
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/templates/ @tech-leads
|
|
9
9
|
/workflows/ @tech-leads
|
|
10
10
|
/docs/config/ @scrum-masters @tech-leads
|
|
11
|
-
/docs/runtime/
|
|
11
|
+
/docs/runtime/ @scrum-masters @tech-leads
|
|
12
12
|
/docs/runtime/adr/ @tech-leads
|
|
13
13
|
/docs/project/specs/ @product-owners @tech-leads
|
|
14
14
|
/docs/project/plans/ @tech-leads
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
# Framework folders remain framework-only. Runtime state and project docs live outside them.
|
|
3
3
|
|
|
4
4
|
state:
|
|
5
|
-
root: "docs/runtime
|
|
6
|
-
tickets: "docs/runtime/
|
|
7
|
-
backlog: "docs/runtime/
|
|
8
|
-
bugs: "docs/runtime/
|
|
9
|
-
sprints: "docs/runtime/
|
|
10
|
-
releases: "docs/runtime/
|
|
11
|
-
metrics: "docs/runtime/
|
|
12
|
-
views: "docs/runtime/
|
|
13
|
-
test_runs: "docs/runtime/
|
|
14
|
-
incidents: "docs/runtime/
|
|
15
|
-
audit_log: "docs/runtime/
|
|
5
|
+
root: "docs/runtime"
|
|
6
|
+
tickets: "docs/runtime/tickets"
|
|
7
|
+
backlog: "docs/runtime/backlog"
|
|
8
|
+
bugs: "docs/runtime/bugs"
|
|
9
|
+
sprints: "docs/runtime/sprints"
|
|
10
|
+
releases: "docs/runtime/releases"
|
|
11
|
+
metrics: "docs/runtime/metrics"
|
|
12
|
+
views: "docs/runtime/views"
|
|
13
|
+
test_runs: "docs/runtime/test-runs"
|
|
14
|
+
incidents: "docs/runtime/incidents"
|
|
15
|
+
audit_log: "docs/runtime/audit-log.jsonl"
|
|
16
16
|
|
|
17
17
|
project_docs:
|
|
18
18
|
root: "docs/project"
|
|
@@ -36,9 +36,9 @@ runtime_docs:
|
|
|
36
36
|
incidents: "docs/runtime/incidents"
|
|
37
37
|
|
|
38
38
|
backlog:
|
|
39
|
-
source_of_truth: "docs/runtime/
|
|
40
|
-
ticket_details: "docs/runtime/
|
|
41
|
-
generated_views: "docs/runtime/
|
|
39
|
+
source_of_truth: "docs/runtime/backlog/backlog.json"
|
|
40
|
+
ticket_details: "docs/runtime/tickets/TICKET-XXX.json"
|
|
41
|
+
generated_views: "docs/runtime/views"
|
|
42
42
|
|
|
43
43
|
ticket_docs:
|
|
44
44
|
spec_path_field: "spec_path"
|
|
@@ -53,7 +53,7 @@ refactor:
|
|
|
53
53
|
requires_adr_when_architectural: true
|
|
54
54
|
|
|
55
55
|
release:
|
|
56
|
-
records: "docs/runtime/
|
|
56
|
+
records: "docs/runtime/releases/vX.Y.Z.json"
|
|
57
57
|
schema: "docs/config/release.schema.json"
|
|
58
58
|
template: "templates/release/release-record-template.json"
|
|
59
59
|
requires_rollback_verification: true
|
|
@@ -65,7 +65,7 @@ scripts:
|
|
|
65
65
|
command_runner: "scripts/ai-core.sh"
|
|
66
66
|
workflow_handlers: "scripts/workflow.sh"
|
|
67
67
|
audit_validator: "scripts/validate-audit-log.sh"
|
|
68
|
-
audit_log: "docs/runtime/
|
|
68
|
+
audit_log: "docs/runtime/audit-log.jsonl"
|
|
69
69
|
|
|
70
70
|
ci:
|
|
71
71
|
governance_template: "templates/ci/ai-core-governance.yml"
|
|
@@ -10,7 +10,7 @@ Make bugs reproducible, prioritized, fixed with regression coverage, and verifie
|
|
|
10
10
|
|
|
11
11
|
1. Discovery
|
|
12
12
|
- Any agent or user reports a defect with `/report-bug`.
|
|
13
|
-
- Bug is created in `docs/runtime/
|
|
13
|
+
- Bug is created in `docs/runtime/bugs/` with status `NEW` or `NEEDS_MORE_INFO`.
|
|
14
14
|
|
|
15
15
|
2. Triage
|
|
16
16
|
- BA runs `/triage-bug` with Tech Lead and QA input.
|
|
@@ -46,8 +46,8 @@ Make bugs reproducible, prioritized, fixed with regression coverage, and verifie
|
|
|
46
46
|
|
|
47
47
|
## 📊 Artifacts
|
|
48
48
|
|
|
49
|
-
- `docs/runtime/
|
|
50
|
-
- Linked ticket in `docs/runtime/
|
|
49
|
+
- `docs/runtime/bugs/BUG-XXX.json`
|
|
50
|
+
- Linked ticket in `docs/runtime/tickets/`
|
|
51
51
|
- Verification report
|
|
52
52
|
- Regression tests
|
|
53
53
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
3. BA writes User Story (INVEST)
|
|
83
83
|
4. BA writes ≥3 AC scenarios (Gherkin)
|
|
84
84
|
5. BA creates `docs/project/specs/TICKET-XXX-<slug>.md`
|
|
85
|
-
6. BA creates `docs/runtime/
|
|
85
|
+
6. BA creates `docs/runtime/tickets/TICKET-XXX.json` with `spec_path`
|
|
86
86
|
7. BA output HANDOFF → tech-lead
|
|
87
87
|
|
|
88
88
|
### Gates
|
|
@@ -181,7 +181,7 @@ Each requirement should finish in one session (< 30 minutes of BA work).
|
|
|
181
181
|
- Sort by priority (MUST > SHOULD > COULD)
|
|
182
182
|
- Pull tickets into sprint until capacity is reached (30 points default)
|
|
183
183
|
- Assign tickets to sprint
|
|
184
|
-
3. Create `docs/runtime/
|
|
184
|
+
3. Create `docs/runtime/sprints/SPRINT-XXX.json`
|
|
185
185
|
|
|
186
186
|
### Gates
|
|
187
187
|
- ✅ Total points ≤ team capacity
|
|
@@ -46,8 +46,8 @@ Ensure sprint commitments are realistic, tracked, and closed with factual metric
|
|
|
46
46
|
|
|
47
47
|
## 📊 Artifacts
|
|
48
48
|
|
|
49
|
-
- `docs/runtime/
|
|
50
|
-
- `docs/runtime/
|
|
49
|
+
- `docs/runtime/sprints/SPRINT-XXX.json`
|
|
50
|
+
- `docs/runtime/metrics/`
|
|
51
51
|
- Retrospective notes
|
|
52
52
|
- Sprint report
|
|
53
53
|
|