yaaw-se 0.3.3 → 0.3.4

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.
Files changed (52) hide show
  1. package/dist/cli/commands/install.js +1 -1
  2. package/dist/cli/commands/install.js.map +1 -1
  3. package/dist/installer/status.js +74 -0
  4. package/dist/installer/status.js.map +1 -1
  5. package/dist/installer/verify.d.ts +2 -1
  6. package/dist/installer/verify.js +6 -2
  7. package/dist/installer/verify.js.map +1 -1
  8. package/dist/integrations/codex-runtime.d.ts +39 -0
  9. package/dist/integrations/codex-runtime.js +89 -0
  10. package/dist/integrations/codex-runtime.js.map +1 -1
  11. package/dist/integrations/codex.js +103 -16
  12. package/dist/integrations/codex.js.map +1 -1
  13. package/dist/payload/integrations/codex/yaaw-runtime.md +38 -10
  14. package/dist/payload/payload-files.json +95 -55
  15. package/dist/payload/payload.json +1 -1
  16. package/dist/payload/yaaw-core/system/core/context-loading.md +12 -8
  17. package/dist/payload/yaaw-core/system/core/dispatch-execution.md +18 -2
  18. package/dist/payload/yaaw-core/system/core/execution-context.md +31 -23
  19. package/dist/payload/yaaw-core/system/core/invalidation.md +29 -12
  20. package/dist/payload/yaaw-core/system/core/io-contract.md +8 -0
  21. package/dist/payload/yaaw-core/system/core/lifecycle.md +11 -16
  22. package/dist/payload/yaaw-core/system/core/routing.md +7 -7
  23. package/dist/payload/yaaw-core/system/core/transitions.md +2 -5
  24. package/dist/payload/yaaw-core/system/registries/handoff-policy.json +85 -0
  25. package/dist/payload/yaaw-core/system/roles/orchestrator.md +16 -14
  26. package/dist/payload/yaaw-core/system/rules/repository-identity.md +31 -17
  27. package/dist/payload/yaaw-core/system/schemas/evidence-v1.schema.json +28 -0
  28. package/dist/payload/yaaw-core/system/schemas/evidence-v2.schema.json +19 -0
  29. package/dist/payload/yaaw-core/system/schemas/evidence.schema.json +20 -31
  30. package/dist/payload/yaaw-core/system/schemas/repository-identity.schema.json +47 -0
  31. package/dist/payload/yaaw-core/system/schemas/review-v1.schema.json +19 -0
  32. package/dist/payload/yaaw-core/system/schemas/review-v2.schema.json +17 -0
  33. package/dist/payload/yaaw-core/system/schemas/review.schema.json +26 -13
  34. package/dist/payload/yaaw-core/system/templates/evidence.json +19 -2
  35. package/dist/payload/yaaw-core/system/templates/handoff.json +9 -15
  36. package/dist/payload/yaaw-core/system/templates/observed-state.json +13 -1
  37. package/dist/payload/yaaw-core/system/templates/review.md +14 -5
  38. package/dist/payload/yaaw-core/system/tools/orchestration-runtime.mjs +689 -0
  39. package/dist/payload/yaaw-core/system/tools/repository-identity.mjs +92 -0
  40. package/dist/payload/yaaw-core/system/workflows/implementation/implement-ticket.md +4 -0
  41. package/dist/payload/yaaw-core/system/workflows/implementation/repair-ticket.md +4 -0
  42. package/dist/payload/yaaw-core/system/workflows/implementation/verify-ticket.md +3 -0
  43. package/dist/payload/yaaw-core/system/workflows/orchestration/determine-next-action.md +15 -15
  44. package/dist/payload/yaaw-core/system/workflows/orchestration/dispatch.md +22 -16
  45. package/dist/payload/yaaw-core/system/workflows/orchestration/inspect-state.md +12 -15
  46. package/dist/payload/yaaw-core/system/workflows/orchestration/recover-interruption.md +4 -0
  47. package/dist/payload/yaaw-core/system/workflows/orchestration/route.md +19 -11
  48. package/dist/payload/yaaw-core/system/workflows/planning/replan.md +4 -0
  49. package/dist/payload/yaaw-core/system/workflows/review/inspect-change.md +4 -1
  50. package/dist/tui/configuration-updates.js +12 -1
  51. package/dist/tui/configuration-updates.js.map +1 -1
  52. package/package.json +1 -1
@@ -1,36 +1,25 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "yaaw.evidence/v1",
3
+ "$id": "yaaw.evidence",
4
4
  "type": "object",
5
- "required": ["schema", "id", "ticket", "ticket_revision", "spec_revision", "kind", "repository", "workflow", "commands", "checks"],
6
- "properties": {
7
- "schema": {"const": "yaaw.evidence/v1"},
8
- "id": {"type": "string", "pattern": "^EVIDENCE-TASK-[0-9]+-V[0-9]+$"},
9
- "ticket": {"type": "string", "pattern": "^TASK-[0-9]+$"},
10
- "ticket_revision": {"type": "integer", "minimum": 1},
11
- "spec_revision": {"type": "integer", "minimum": 1},
12
- "kind": {"enum": ["implementation_verification", "repair_verification", "review_verification", "recovery"]},
13
- "repository": {
14
- "type": "object",
15
- "required": ["head_commit", "dirty", "worktree_digest"],
16
- "properties": {
17
- "head_commit": {"type": "string", "minLength": 1},
18
- "dirty": {"type": "boolean"},
19
- "worktree_digest": {"type": "string", "minLength": 1}
20
- },
21
- "additionalProperties": false
5
+ "required": [
6
+ "schema",
7
+ "id",
8
+ "ticket",
9
+ "ticket_revision",
10
+ "spec_revision",
11
+ "kind",
12
+ "repository",
13
+ "workflow",
14
+ "commands",
15
+ "checks"
16
+ ],
17
+ "oneOf": [
18
+ {
19
+ "$ref": "evidence-v1.schema.json"
22
20
  },
23
- "workflow": {"type": "string", "minLength": 1},
24
- "commands": {
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "required": ["command", "result"],
29
- "properties": {"command": {"type": "string"}, "result": {"type": "string"}},
30
- "additionalProperties": false
31
- }
32
- },
33
- "checks": {"type": "array", "items": {"type": "string"}}
34
- },
35
- "additionalProperties": false
21
+ {
22
+ "$ref": "evidence-v2.schema.json"
23
+ }
24
+ ]
36
25
  }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "yaaw.repository-identity/v2",
4
+ "type": "object",
5
+ "required": ["schema","algorithm","status","workspace_scope","git_root_relation","head_commit","dirty","worktree_digest","components","changed_paths","error"],
6
+ "properties": {
7
+ "schema": {"const": "yaaw.repository-identity/v2"},
8
+ "algorithm": {"type": ["string","null"], "enum": ["yaaw-worktree-v1","yaaw-worktree-v2",null]},
9
+ "status": {"enum": ["READY","UNVERSIONED","UNAVAILABLE","ROOT_MISMATCH","IDENTITY_FAILED"]},
10
+ "workspace_scope": {"type": "string", "minLength": 1},
11
+ "git_root_relation": {"enum": ["same","ancestor","none","unknown"]},
12
+ "head_commit": {"type": ["string","null"]},
13
+ "dirty": {"type": ["boolean","null"]},
14
+ "worktree_digest": {"type": ["string","null"]},
15
+ "components": {
16
+ "anyOf": [
17
+ {"type": "null"},
18
+ {
19
+ "type": "object",
20
+ "required": ["status_sha256","unstaged_diff_sha256","staged_diff_sha256","untracked_manifest_sha256"],
21
+ "properties": {
22
+ "status_sha256": {"type": "string"},
23
+ "unstaged_diff_sha256": {"type": "string"},
24
+ "staged_diff_sha256": {"type": "string"},
25
+ "untracked_manifest_sha256": {"type": "string"}
26
+ },
27
+ "additionalProperties": false
28
+ }
29
+ ]
30
+ },
31
+ "changed_paths": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "required": ["path","kind"],
36
+ "properties": {
37
+ "path": {"type": "string", "minLength": 1},
38
+ "kind": {"enum": ["tracked","untracked"]},
39
+ "sha256": {"type": "string"}
40
+ },
41
+ "additionalProperties": false
42
+ }
43
+ },
44
+ "error": {"type": ["string","null"]}
45
+ },
46
+ "additionalProperties": false
47
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "yaaw.review/v1",
4
+ "type": "object",
5
+ "required": ["schema","ticket","round","result","ticket_revision","spec_revision","reviewed_head_commit","reviewed_dirty","reviewed_worktree_digest","evidence"],
6
+ "properties": {
7
+ "schema": {"const": "yaaw.review/v1"},
8
+ "ticket": {"type": "string", "pattern": "^TASK-[0-9]+$"},
9
+ "round": {"type": "integer", "minimum": 1},
10
+ "result": {"enum": ["PASS","REPAIR","REPLAN","BLOCKED"]},
11
+ "ticket_revision": {"type": "integer", "minimum": 0},
12
+ "spec_revision": {"type": "integer", "minimum": 0},
13
+ "reviewed_head_commit": {"type": ["string","null"]},
14
+ "reviewed_dirty": {"type": ["boolean","null"]},
15
+ "reviewed_worktree_digest": {"type": ["string","null"]},
16
+ "evidence": {"type": "array", "items": {"type": "string"}}
17
+ },
18
+ "additionalProperties": false
19
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "yaaw.review/v2",
4
+ "type": "object",
5
+ "required": ["schema","ticket","round","result","ticket_revision","spec_revision","repository","evidence"],
6
+ "properties": {
7
+ "schema": {"const": "yaaw.review/v2"},
8
+ "ticket": {"type": "string", "pattern": "^TASK-[0-9]+$"},
9
+ "round": {"type": "integer", "minimum": 1},
10
+ "result": {"enum": ["PASS","REPAIR","REPLAN","BLOCKED"]},
11
+ "ticket_revision": {"type": "integer", "minimum": 0},
12
+ "spec_revision": {"type": "integer", "minimum": 0},
13
+ "repository": {"$ref": "repository-identity.schema.json"},
14
+ "evidence": {"type": "array", "items": {"type": "string"}}
15
+ },
16
+ "additionalProperties": false
17
+ }
@@ -1,19 +1,32 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "yaaw.review/v1",
3
+ "$id": "yaaw.review",
4
4
  "type": "object",
5
- "required": ["schema", "ticket", "round", "result", "ticket_revision", "spec_revision", "reviewed_head_commit", "reviewed_dirty", "reviewed_worktree_digest", "evidence"],
5
+ "required": [
6
+ "schema",
7
+ "ticket",
8
+ "round",
9
+ "result",
10
+ "ticket_revision",
11
+ "spec_revision",
12
+ "evidence"
13
+ ],
6
14
  "properties": {
7
- "schema": {"const": "yaaw.review/v1"},
8
- "ticket": {"type": "string", "pattern": "^TASK-[0-9]+$"},
9
- "round": {"type": "integer", "minimum": 1},
10
- "result": {"enum": ["PASS", "REPAIR", "REPLAN", "BLOCKED"]},
11
- "ticket_revision": {"type": "integer", "minimum": 1},
12
- "spec_revision": {"type": "integer", "minimum": 1},
13
- "reviewed_head_commit": {"type": "string", "minLength": 1},
14
- "reviewed_dirty": {"type": "boolean"},
15
- "reviewed_worktree_digest": {"type": "string", "minLength": 1},
16
- "evidence": {"type": "array", "items": {"type": "string"}, "minItems": 1}
15
+ "result": {
16
+ "enum": [
17
+ "PASS",
18
+ "REPAIR",
19
+ "REPLAN",
20
+ "BLOCKED"
21
+ ]
22
+ }
17
23
  },
18
- "additionalProperties": false
24
+ "oneOf": [
25
+ {
26
+ "$ref": "review-v1.schema.json"
27
+ },
28
+ {
29
+ "$ref": "review-v2.schema.json"
30
+ }
31
+ ]
19
32
  }
@@ -1,11 +1,28 @@
1
1
  {
2
- "schema": "yaaw.evidence/v1",
2
+ "schema": "yaaw.evidence/v2",
3
3
  "id": "EVIDENCE-TASK-000-V1",
4
4
  "ticket": "TASK-000",
5
5
  "ticket_revision": 1,
6
6
  "spec_revision": 1,
7
7
  "kind": "implementation_verification",
8
- "repository": {"head_commit": "COMMIT", "dirty": true, "worktree_digest": "DIGEST"},
8
+ "repository": {
9
+ "schema": "yaaw.repository-identity/v2",
10
+ "algorithm": "yaaw-worktree-v2",
11
+ "status": "READY",
12
+ "workspace_scope": ".",
13
+ "git_root_relation": "same",
14
+ "head_commit": "COMMIT",
15
+ "dirty": false,
16
+ "worktree_digest": "sha256:DIGEST",
17
+ "components": {
18
+ "status_sha256": "HASH",
19
+ "unstaged_diff_sha256": "HASH",
20
+ "staged_diff_sha256": "HASH",
21
+ "untracked_manifest_sha256": "HASH"
22
+ },
23
+ "changed_paths": [],
24
+ "error": null
25
+ },
9
26
  "workflow": "implementation.verify-ticket",
10
27
  "commands": [],
11
28
  "checks": []
@@ -16,31 +16,25 @@
16
16
  "reads": [],
17
17
  "writes": [],
18
18
  "forbidden_writes": [],
19
- "revisions": {
20
- "product": 1,
21
- "engineering": 1,
22
- "spec": 1,
23
- "ticket": 1
24
- },
19
+ "revisions": {"product": 1, "engineering": 1, "spec": 1, "ticket": 1},
25
20
  "expertise": [],
26
21
  "host_expertise": [],
27
22
  "expected_output": "implementation_evidence",
28
- "result_vocabulary": [
29
- "SUCCESS",
30
- "REVIEW_REQUIRED",
31
- "REPLAN_REQUIRED",
32
- "PRECONDITION_UNSATISFIED",
33
- "BLOCKED"
34
- ],
23
+ "result_vocabulary": ["SUCCESS", "REVIEW_REQUIRED", "REPLAN_REQUIRED", "PRECONDITION_UNSATISFIED", "BLOCKED"],
35
24
  "repository_requirement": "IDENTITY",
36
25
  "repository": {
26
+ "schema": "yaaw.repository-identity/v2",
27
+ "algorithm": "yaaw-worktree-v2",
37
28
  "status": "READY",
38
29
  "workspace_scope": ".",
39
30
  "git_root_relation": "same",
40
31
  "head_commit": "COMMIT",
41
32
  "dirty": false,
42
- "worktree_digest": "DIGEST",
33
+ "worktree_digest": "sha256:DIGEST",
34
+ "components": {"status_sha256": "HASH", "unstaged_diff_sha256": "HASH", "staged_diff_sha256": "HASH", "untracked_manifest_sha256": "HASH"},
35
+ "changed_paths": [],
43
36
  "error": null
44
37
  },
45
- "transition_sequence": 0
38
+ "transition_sequence": 0,
39
+ "cause": null
46
40
  }
@@ -13,13 +13,25 @@
13
13
  "repair_required": false
14
14
  },
15
15
  "repository": {
16
+ "schema": "yaaw.repository-identity/v2",
17
+ "algorithm": null,
16
18
  "status": "UNVERSIONED",
17
19
  "workspace_scope": ".",
18
20
  "git_root_relation": "none",
19
21
  "head_commit": null,
20
22
  "dirty": null,
21
23
  "worktree_digest": null,
22
- "error": null
24
+ "components": null,
25
+ "changed_paths": [],
26
+ "error": "workspace is not versioned"
27
+ },
28
+ "acceptance": {
29
+ "active_ticket": null,
30
+ "source_current": null,
31
+ "review_present": null,
32
+ "review_repository_current": null,
33
+ "verification_repository_current": null,
34
+ "stale_reason": null
23
35
  },
24
36
  "transition_sequence": 0,
25
37
  "claims": {},
@@ -1,13 +1,22 @@
1
1
  ---
2
- schema: yaaw.review/v1
2
+ schema: yaaw.review/v2
3
3
  ticket: TASK-XXX
4
4
  round: 1
5
5
  result: RESULT
6
6
  ticket_revision: 1
7
7
  spec_revision: 1
8
- reviewed_head_commit: COMMIT
9
- reviewed_dirty: true
10
- reviewed_worktree_digest: DIGEST
8
+ repository:
9
+ schema: yaaw.repository-identity/v2
10
+ algorithm: yaaw-worktree-v2
11
+ status: READY
12
+ workspace_scope: .
13
+ git_root_relation: same
14
+ head_commit: COMMIT
15
+ dirty: true
16
+ worktree_digest: sha256:DIGEST
17
+ components: {}
18
+ changed_paths: []
19
+ error: null
11
20
  evidence: []
12
21
  ---
13
22
  # REVIEW-TASK-XXX-R1
@@ -19,7 +28,7 @@ evidence: []
19
28
  ## Findings
20
29
 
21
30
  ## Changeability assessment
22
- Record only materially relevant principles. Use `PASS`, `FAIL`, or `NOT_APPLICABLE`; do not use subjective scores. Blocking failures must cite concrete engineering impact rather than style preference.
31
+ Record only materially relevant principles. Use PASS, FAIL, or NOT_APPLICABLE; do not use subjective scores. Blocking failures must cite concrete engineering impact rather than style preference.
23
32
 
24
33
  ## Verification
25
34